Full Site Editing - Version 3.30395

Version Description

Download this release

Release Info

Developer automattic
Plugin Icon wp plugin Full Site Editing
Version 3.30395
Comparing to
See all releases

Code changes from version 3.30293 to 3.30395

build_meta.txt CHANGED
@@ -1,3 +1,3 @@
1
- commit_hash=6d992b316c02c92facff03ce24d61ce8505efaaf
2
- commit_url=https://github.com/Automattic/wp-calypso/commit/6d992b316c02c92facff03ce24d61ce8505efaaf
3
- build_number=3.30293
1
+ commit_hash=3a786a05407bd58126b7c0c16c777ff4e88beffd
2
+ commit_url=https://github.com/Automattic/wp-calypso/commit/3a786a05407bd58126b7c0c16c777ff4e88beffd
3
+ build_number=3.30395
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.30293
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.30293' );
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.30395
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.30395' );
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.30293
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.30395
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' => '544e3c586807b20b1f7d84913942d8cc');
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' => 'b261003c44e622e0072d574e2bb9446a');
whats-new/dist/whats-new.js CHANGED
@@ -1 +1 @@
1
- !function(){var t={2680:function(t,e,n){"use strict";var r=n(7286),o=n(9429),i=o(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&i(t,".prototype.")>-1?o(n):n}},9429:function(t,e,n){"use strict";var r=n(4090),o=n(7286),i=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,i),a=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(f){u=null}t.exports=function(t){var e=c(r,s,arguments);if(a&&u){var n=a(e,"length");n.configurable&&u(e,"length",{value:1+p(0,t.length-(arguments.length-1))})}return e};var l=function(){return c(r,i,arguments)};u?u(t.exports,"apply",{value:l}):t.exports.apply=l},3421:function(t,e){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\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 o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(n,r){function o(){void 0!==i&&t.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==e&&(i=function(n){t.removeListener(e,o),r(n)},t.once("error",i)),t.once(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function a(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function u(t,e,n,r){var o,i,s,u;if(c(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),s=i[e]),void 0===s)s=i[e]=n,++t._eventsCount;else if("function"==typeof s?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=a(t))>0&&s.length>o&&!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,u=p,console&&console.warn&&console.warn(u)}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 l(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function f(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]: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}(o):d(o,o.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(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),i.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},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(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},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var a=i[t];if(void 0===a)return!1;if("function"==typeof a)r(a,this,e);else{var u=a.length,p=d(a,u);for(n=0;n<u;++n)r(p[n],this,e)}return!0},i.prototype.addListener=function(t,e){return u(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return u(this,t,e,!0)},i.prototype.once=function(t,e){return c(e),this.on(t,l(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,l(this,t,e)),this},i.prototype.removeListener=function(t,e){var n,r,o,i,s;if(c(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(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.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 o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);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},i.prototype.listeners=function(t){return f(this,t,!0)},i.prototype.rawListeners=function(t){return f(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},7795:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(e+i);for(var s,c=n.call(arguments,1),a=function(){if(this instanceof s){var e=i.apply(this,c.concat(n.call(arguments)));return Object(e)===e?e:this}return i.apply(t,c.concat(n.call(arguments)))},u=Math.max(0,i.length-c.length),p=[],l=0;l<u;l++)p.push("$"+l);if(s=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(a),i.prototype){var f=function(){};f.prototype=i.prototype,s.prototype=new f,f.prototype=null}return s}},4090:function(t,e,n){"use strict";var r=n(7795);t.exports=Function.prototype.bind||r},7286:function(t,e,n){"use strict";var r,o=SyntaxError,i=Function,s=TypeError,c=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(e){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(x){a=null}var u=function(){throw new s},p=a?function(){try{return u}catch(t){try{return a(arguments,"callee").get}catch(e){return u}}}():u,l=n(2636)(),f=Object.getPrototypeOf||function(t){return t.__proto__},h={},d="undefined"==typeof Uint8Array?r:f(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):r,"%Symbol%":l?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":d,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},m=function t(e){var n;if("%AsyncFunction%"===e)n=c("async function () {}");else if("%GeneratorFunction%"===e)n=c("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=c("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(n=f(o.prototype))}return y[e]=n,n},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=n(4090),v=n(3198),b=w.call(Function.call,Array.prototype.concat),_=w.call(Function.apply,Array.prototype.splice),C=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,A=function(t){var e=S(t,0,1),n=S(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return C(t,E,(function(t,e,n,o){r[r.length]=n?C(o,P,"$1"):e||t})),r},j=function(t,e){var n,r=t;if(v(g,r)&&(r="%"+(n=g[r])[0]+"%"),v(y,r)){var i=y[r];if(i===h&&(i=m(r)),void 0===i&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');var n=A(t),r=n.length>0?n[0]:"",i=j("%"+r+"%",e),c=i.name,u=i.value,p=!1,l=i.alias;l&&(r=l[0],_(n,b([0,1],l)));for(var f=1,h=!0;f<n.length;f+=1){var d=n[f],m=S(d,0,1),g=S(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(p=!0),v(y,c="%"+(r+="."+d)+"%"))u=y[c];else if(null!=u){if(!(d in u)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(a&&f+1>=n.length){var w=a(u,d);u=(h=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:u[d]}else h=v(u,d),u=u[d];h&&!p&&(y[c]=u)}}return u}},2636:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(6679);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},6679:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3198:function(t,e,n){"use strict";var r=n(4090);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},4495:function(t,e,n){"use strict";var r=n(212),o=n(9561);function i(){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=i,i.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 o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.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 o=1;o<n;o++)r[o]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=t>>>24&255,r[o++]=t>>>16&255,r[o++]=t>>>8&255,r[o++]=255&t}else for(r[o++]=255&t,r[o++]=t>>>8&255,r[o++]=t>>>16&255,r[o++]=t>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},8032:function(t,e,n){"use strict";var r=n(212),o=n(4495),i=n(713),s=n(9561),c=r.sum32,a=r.sum32_4,u=r.sum32_5,p=i.ch32,l=i.maj32,f=i.s0_256,h=i.s1_256,d=i.g0_256,y=i.g1_256,m=o.BlockHash,g=[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 w(){if(!(this instanceof w))return new w;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(w,m),t.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.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]=a(y(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],m=this.h[2],g=this.h[3],w=this.h[4],v=this.h[5],b=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=u(_,h(w),p(w,v,b),this.k[r],n[r]),S=c(f(o),l(o,i,m));_=b,b=v,v=w,w=c(g,C),g=m,m=i,i=o,o=c(C,S)}this.h[0]=c(this.h[0],o),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],m),this.h[3]=c(this.h[3],g),this.h[4]=c(this.h[4],w),this.h[5]=c(this.h[5],v),this.h[6]=c(this.h[6],b),this.h[7]=c(this.h[7],_)},w.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 o(t,e,n){return t&e^~t&n}function i(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?o(e,n,r):1===t||3===t?s(e,n,r):2===t?i(e,n,r):void 0},e.ch32=o,e.maj32=i,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),o=n(1285);function i(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 c(t){return 1===t.length?"0"+t:t}function a(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=o,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),o=0;o<t.length;o+=2)n.push(parseInt(t[o]+t[o+1],16))}else for(var r=0,o=0;o<t.length;o++){var s=t.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(t,o)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++o)),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(o=0;o<t.length;o++)n[o]=0|t[o];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=c(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var o=t[r];"little"===e&&(o=s(o)),n+=a(o.toString(16))}return n},e.zero2=c,e.zero8=a,e.join32=function(t,e,n,o){var i=n-e;r(i%4==0);for(var s=new Array(i/4),c=0,a=e;c<s.length;c++,a+=4){var u;u="big"===o?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],s[c]=u>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,o=0;r<t.length;r++,o+=4){var i=t[r];"big"===e?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}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,o){return t+e+n+r+o>>>0},e.sum64=function(t,e,n,r){var o=t[e],i=r+t[e+1]>>>0,s=(i<r?1:0)+n+o;t[e]=s>>>0,t[e+1]=i},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,o,i,s,c){var a=0,u=e;return a+=(u=u+r>>>0)<e?1:0,a+=(u=u+i>>>0)<i?1:0,t+n+o+s+(a+=(u=u+c>>>0)<c?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,o,i,s,c){return e+r+i+c>>>0},e.sum64_5_hi=function(t,e,n,r,o,i,s,c,a,u){var p=0,l=e;return p+=(l=l+r>>>0)<e?1:0,p+=(l=l+i>>>0)<i?1:0,p+=(l=l+c>>>0)<c?1:0,t+n+o+s+a+(p+=(l=l+u>>>0)<u?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,o,i,s,c,a,u){return e+r+i+c+u>>>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}}},6590: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,o=24*r,i=7*o,s=365.25*o;function c(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,a){a=a||{};var u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!c)return;var a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(t);if("number"===u&&isFinite(t))return a.long?function(t){var i=Math.abs(t);if(i>=o)return c(t,i,o,"day");if(i>=r)return c(t,i,r,"hour");if(i>=n)return c(t,i,n,"minute");if(i>=e)return c(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=r)return Math.round(t/r)+"h";if(i>=n)return Math.round(t/n)+"m";if(i>=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))}},9500:function(t,e,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,s=r&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=c&&a&&"function"==typeof a.get?a.get:null,p=c&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,w="function"==typeof BigInt?BigInt.prototype.valueOf:null,v=Object.getOwnPropertySymbols,b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C=Object.prototype.propertyIsEnumerable,S=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),E=n(3260).custom,P=E&&O(E)?E:null,A="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function j(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function x(t){return String(t).replace(/"/g,"&quot;")}function q(t){return!("[object Array]"!==Z(t)||A&&"object"==typeof t&&A in t)}function O(t){if(_)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!b)return!1;try{return b.call(t),!0}catch(e){}return!1}t.exports=function t(e,n,r,o){var c=n||{};if(k(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(k(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!k(c,"customInspect")||c.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(k(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return N(e,c);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var y=void 0===c.depth?5:c.depth;if(void 0===r&&(r=0),r>=y&&y>0&&"object"==typeof e)return q(e)?"[Array]":"[Object]";var v=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=Array(t.indent+1).join(" ")}return{base:n,prev:Array(e+1).join(n)}}(c,r);if(void 0===o)o=[];else if(L(o,e)>=0)return"[Circular]";function C(e,n,i){if(n&&(o=o.slice()).push(n),i){var s={depth:c.depth};return k(c,"quoteStyle")&&(s.quoteStyle=c.quoteStyle),t(e,s,r+1,o)}return t(e,c,r+1,o)}if("function"==typeof e){var E=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),F=U(e,C);return"[Function"+(E?": "+E:" (anonymous)")+"]"+(F.length>0?" { "+F.join(", ")+" }":"")}if(O(e)){var R=_?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):b.call(e);return"object"!=typeof e||_?R:I(R)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var D="<"+String(e.nodeName).toLowerCase(),W=e.attributes||[],B=0;B<W.length;B++)D+=" "+W[B].name+"="+j(x(W[B].value),"double",c);return D+=">",e.childNodes&&e.childNodes.length&&(D+="..."),D+="</"+String(e.nodeName).toLowerCase()+">"}if(q(e)){if(0===e.length)return"[]";var z=U(e,C);return v&&!function(t){for(var e=0;e<t.length;e++)if(L(t[e],"\n")>=0)return!1;return!0}(z)?"["+M(z,v)+"]":"[ "+z.join(", ")+" ]"}if(function(t){return!("[object Error]"!==Z(t)||A&&"object"==typeof t&&A in t)}(e)){var V=U(e,C);return 0===V.length?"["+String(e)+"]":"{ ["+String(e)+"] "+V.join(", ")+" }"}if("object"==typeof e&&a){if(P&&"function"==typeof e[P])return e[P]();if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{u.call(t)}catch(D){return!0}return t instanceof Map}catch(e){}return!1}(e)){var G=[];return s.call(e,(function(t,n){G.push(C(n,e,!0)+" => "+C(t,e))})),T("Map",i.call(e),G,v)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{i.call(t)}catch(e){return!0}return t instanceof Set}catch(n){}return!1}(e)){var H=[];return p.call(e,(function(t){H.push(C(t,e))})),T("Set",u.call(e),H,v)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(D){return!0}return t instanceof WeakMap}catch(e){}return!1}(e))return $("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(D){return!0}return t instanceof WeakSet}catch(e){}return!1}(e))return $("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(e){}return!1}(e))return $("WeakRef");if(function(t){return!("[object Number]"!==Z(t)||A&&"object"==typeof t&&A in t)}(e))return I(C(Number(e)));if(function(t){if(!t||"object"!=typeof t||!w)return!1;try{return w.call(t),!0}catch(e){}return!1}(e))return I(C(w.call(e)));if(function(t){return!("[object Boolean]"!==Z(t)||A&&"object"==typeof t&&A in t)}(e))return I(d.call(e));if(function(t){return!("[object String]"!==Z(t)||A&&"object"==typeof t&&A in t)}(e))return I(C(String(e)));if(!function(t){return!("[object Date]"!==Z(t)||A&&"object"==typeof t&&A in t)}(e)&&!function(t){return!("[object RegExp]"!==Z(t)||A&&"object"==typeof t&&A in t)}(e)){var J=U(e,C),Q=S?S(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",X=!Q&&A&&Object(e)===e&&A in e?Z(e).slice(8,-1):K?"Object":"",Y=(Q||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(X||K?"["+[].concat(X||[],K||[]).join(": ")+"] ":"");return 0===J.length?Y+"{}":v?Y+"{"+M(J,v)+"}":Y+"{ "+J.join(", ")+" }"}return String(e)};var F=Object.prototype.hasOwnProperty||function(t){return t in this};function k(t,e){return F.call(t,e)}function Z(t){return y.call(t)}function L(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function N(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return N(t.slice(0,e.maxStringLength),e)+r}return j(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,R),"single",e)}function R(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function I(t){return"Object("+t+")"}function $(t){return t+" { ? }"}function T(t,e,n,r){return t+" ("+e+") {"+(r?M(n,r):n.join(", "))+"}"}function M(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+t.join(","+n)+"\n"+e.prev}function U(t,e){var n=q(t),r=[];if(n){r.length=t.length;for(var o=0;o<t.length;o++)r[o]=k(t,o)?e(t[o],t):""}var i,s="function"==typeof v?v(t):[];if(_){i={};for(var c=0;c<s.length;c++)i["$"+s[c]]=s[c]}for(var a in t)k(t,a)&&(n&&String(Number(a))===a&&a<t.length||_&&i["$"+a]instanceof Symbol||(/[^\w$]/.test(a)?r.push(e(a,t)+": "+e(t[a],t)):r.push(a+": "+e(t[a],t))));if("function"==typeof v)for(var u=0;u<s.length;u++)C.call(t,s[u])&&r.push("["+e(s[u])+"]: "+e(t[s[u]],t));return r}},8650:function(t){var e,n=window.ProgressEvent,r=!!n;try{e=new n("loaded"),r="loaded"===e.type,e=null}catch(o){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){"use strict";var e=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:r,RFC3986:o}},9126:function(t,e,n){"use strict";var r=n(6845),o=n(9166),i=n(5527);t.exports={formats:i,parse:o,stringify:r}},9166:function(t,e,n){"use strict";var r=n(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!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},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},a=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=c?i.slice(0,c.index):i,p=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;p.push(u)}for(var l=0;n.depth>0&&null!==(c=s.exec(i))&&l<n.depth;){if(l+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;p.push(c[1])}return c&&p.push("["+i.slice(c.index)+"]"),function(t,e,n,r){for(var o=r?e:a(e,n),i=t.length-1;i>=0;--i){var s,c=t[i];if("[]"===c&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=parseInt(u,10);n.parseArrays||""!==u?!isNaN(p)&&c!==u&&String(p)===u&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(s=[])[p]=o:s[u]=o:s={0:o}}o=s}return o}(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,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:s.allowSparse,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,u={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,f=p.split(e.delimiter,l),h=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?d="utf-8":"utf8=%26%2310003%3B"===f[n]&&(d="iso-8859-1"),h=n,n=f.length);for(n=0;n<f.length;++n)if(n!==h){var y,m,g=f[n],w=g.indexOf("]="),v=-1===w?g.indexOf("="):w+1;-1===v?(y=e.decoder(g,s.decoder,d,"key"),m=e.strictNullHandling?null:""):(y=e.decoder(g.slice(0,v),s.decoder,d,"key"),m=r.maybeMap(a(g.slice(v+1),e),(function(t){return e.decoder(t,s.decoder,d,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=c(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(u,y)?u[y]=r.combine(u[y],m):u[y]=m}return u}(t,n):t,l=n.plainObjects?Object.create(null):{},f=Object.keys(p),h=0;h<f.length;++h){var d=f[h],y=u(d,p[d],n,"string"==typeof t);l=r.merge(l,y,n)}return!0===n.allowSparse?l:r.compact(l)}},6845:function(t,e,n){"use strict";var r=n(4294),o=n(2493),i=n(5527),s=Object.prototype.hasOwnProperty,c={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,u=Array.prototype.push,p=function(t,e){u.apply(t,a(e)?e:[e])},l=Date.prototype.toISOString,f=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,n,i,s,c,u,l,f,d,y,m,g,w,v,b){var _,C=e;if(b.has(e))throw new RangeError("Cyclic object value");if("function"==typeof l?C=l(n,C):C instanceof Date?C=y(C):"comma"===i&&a(C)&&(C=o.maybeMap(C,(function(t){return t instanceof Date?y(t):t}))),null===C){if(s)return u&&!w?u(n,h.encoder,v,"key",m):n;C=""}if("string"==typeof(_=C)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||o.isBuffer(C))return u?[g(w?n:u(n,h.encoder,v,"key",m))+"="+g(u(C,h.encoder,v,"value",m))]:[g(n)+"="+g(String(C))];var S,E=[];if(void 0===C)return E;if("comma"===i&&a(C))S=[{value:C.length>0?C.join(",")||null:void 0}];else if(a(l))S=l;else{var P=Object.keys(C);S=f?P.sort(f):P}for(var A=0;A<S.length;++A){var j=S[A],x="object"==typeof j&&void 0!==j.value?j.value:C[j];if(!c||null!==x){var q=a(C)?"function"==typeof i?i(n,j):n:n+(d?"."+j:"["+j+"]");b.set(e,!0);var O=r();p(E,t(x,q,i,s,c,u,l,f,d,y,m,g,w,v,O))}}return E};t.exports=function(t,e){var n,o=t,u=function(t){if(!t)return h;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||h.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(!s.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],o=h.filter;return("function"==typeof t.filter||a(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof u.filter?o=(0,u.filter)("",o):a(u.filter)&&(n=u.filter);var l,f=[];if("object"!=typeof o||null===o)return"";l=e&&e.arrayFormat in c?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var y=c[l];n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var m=r(),g=0;g<n.length;++g){var w=n[g];u.skipNulls&&null===o[w]||p(f,d(o[w],w,y,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,m))}var v=f.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),v.length>0?b+v:""}},2493:function(t,e,n){"use strict";var r=n(5527),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=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:c,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"}],n=[],r=0;r<e.length;++r)for(var o=e[r],s=o.obj[o.prop],c=Object.keys(s),a=0;a<c.length;++a){var u=c[a],p=s[u];"object"==typeof p&&null!==p&&-1===n.indexOf(p)&&(e.push({obj:s,prop:u}),n.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(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(o){return r}},encode:function(t,e,n,o,i){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===n)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",u=0;u<c.length;++u){var p=c.charCodeAt(u);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===r.RFC1738&&(40===p||41===p)?a+=c.charAt(u):p<128?a+=s[p]:p<2048?a+=s[192|p>>6]+s[128|63&p]:p<55296||p>=57344?a+=s[224|p>>12]+s[128|p>>6&63]+s[128|63&p]:(u+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(u)),a+=s[240|p>>18]+s[128|p>>12&63]+s[128|p>>6&63]+s[128|63&p])}return a},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(i(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(i(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return i(e)&&!i(n)&&(s=c(e,r)),i(e)&&i(n)?(n.forEach((function(n,i){if(o.call(e,i)){var s=e[i];s&&"object"==typeof s&&n&&"object"==typeof n?e[i]=t(s,n,r):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var s=n[i];return o.call(e,i)?e[i]=t(e[i],s,r):e[i]=s,e}),s)}}},4294:function(t,e,n){"use strict";var r=n(7286),o=n(2680),i=n(9500),s=r("%TypeError%"),c=r("%WeakMap%",!0),a=r("%Map%",!0),u=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),l=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),y=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new s("Side channel does not contain "+i(t))},get:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return u(t,r)}else if(a){if(e)return f(e,r)}else if(n)return function(t,e){var n=y(t,e);return n&&n.value}(n,r)},has:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return l(t,r)}else if(a){if(e)return d(e,r)}else if(n)return function(t,e){return!!y(t,e)}(n,r);return!1},set:function(r,o){c&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new c),p(t,r,o)):a?(e||(e=new a),h(e,r,o)):(n||(n={key:{},next:null}),function(t,e,n){var r=y(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,o))}};return r}},9239:function(t,e,n){"object"==typeof window&&window.whatsNewAssetsUrl&&(n.p=window.whatsNewAssetsUrl)},8814:function(t,e,n){"use strict";var r=n(9818);const o={whatsNew:!1};(0,r.registerStore)("automattic/whats-new",{reducer:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,e=arguments.length>1?arguments[1]:void 0;return"TOGGLE_FEATURE"===e.type?{whatsNew:!t.whatsNew}:t},actions:{toggleWhatsNew:()=>({type:"TOGGLE_FEATURE"})},selectors:{isWhatsNewActive:t=>t.whatsNew}})},5840:function(t,e,n){"use strict";var r=n(9307),o=(n(9239),n(6115)),i=n(3585),s=n(5609),c=n(5736),a=n(8817),u=n(9196);const __=c.__;function p(){const[t,e]=(0,u.useState)(!1);return(0,r.useEffect)((()=>{t&&(0,o.jN)("calypso_block_editor_whats_new_open")}),[t]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.Fill,{name:"ToolsMoreMenuGroup"},(0,r.createElement)(s.MenuItem,{onClick:()=>e(!0)},__("What's new","full-site-editing"))),t&&(0,r.createElement)(i.Z,{onClose:()=>e(!1)}))}(0,a.registerPlugin)("whats-new",{render:()=>(0,r.createElement)(p,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";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},9792:function(t,e,n){"use strict";n.d(e,{jN:function(){return f}});var r=n(2699),o=n(4898),i=(n(3421),n(2819)),s=(n(9377),n(6209),n(9358));n(1694);const c=["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"];let a,u=Promise.resolve();function p(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(u=(0,o.ve)("//stats.wp.com/w.js?63"));const l=new r.EventEmitter;function f(t,e){if(e=e||{},(0,s.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,i.includes)(c,t)){if(a){const t=a(e);e={...e,...t}}e=(0,i.omitBy)(e,(t=>void 0===t)),(0,s.Z)('Recording event "%s" with actual props %o',t,e),p(["recordEvent",t,e]),l.emit("record-event",t,e)}else(0,s.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),o=n.n(r);e.Z=o()("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 p}});var r=n(7896),o=n(9307),i=n(4333),s=n(5736),c=n(9196);const a=(0,c.createContext)(null);function u(){var t,e;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return"";const e=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=t.toLowerCase();return(e.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(t=s.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language:"")}function p(){const t=(0,c.useContext)(a),e=!!t,[n,r]=(0,c.useState)(u());return(0,c.useEffect)((()=>{if(!e)return r(u()),s.subscribe((()=>{r(u())}))}),[e]),t||n||"en"}(0,i.createHigherOrderComponent)((t=>e=>{const n=p();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 c},lZ:function(){return a},_W:function(){return p},Yt:function(){return l}});var r=n(8049);const o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function c(t){return s().has(t)}function a(t,e){const n=s();c(t)?(o(`Adding a callback for an existing script from "${t}"`),n.get(t).add(e)):(o(`Adding a callback for a new script from "${t}"`),n.set(t,new Set([e])))}function u(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=s(),r=n.get(t);if(r){o(`Executing callbacks for "${t}"`+(null===e?" with success":` with error "${e}"`)),r.forEach((t=>{"function"==typeof t&&t(e)})),n.delete(t)}}function p(){const t=this.getAttribute("src");o(`Handling successful request for "${t}"`),u(t),this.onload=null}function l(){const t=this.getAttribute("src");o(`Handling failed request for "${t}"`),u(t,new Error(`Failed to load script "${t}"`)),this.onerror=null}},5606:function(t,e,n){"use strict";n.d(e,{C:function(){return c},k:function(){return a}});var r=n(8049),o=n.n(r),i=n(3340);const s=o()("lib/load-script/dom-operations");function c(t){s(`Creating script element for "${t}"`);const e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=i._W,e.onerror=i.Yt,e}function a(t){s("Attaching element to head"),document.head.appendChild(t)}},4898:function(t,e,n){"use strict";n.d(e,{ve:function(){return c}});var r=n(8049),o=n.n(r),i=n(3340),s=n(5606);o()("package/load-script");function c(t,e){if(!(0,i.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise(((e,n)=>{(0,i.lZ)(t,(t=>{null===t?e():n(t)}))}));(0,i.lZ)(t,e)}},3585:function(t,e,n){"use strict";var r=n(9307),o=n(849),i=n(5609),s=n(6656),c=n(9196),a=n(1202),u=n(8552),p=n(869);n(6590);e.Z=t=>{let{onClose:e}=t;const[n,l]=(0,c.useState)(null),__=(0,s.useI18n)().__,f=(0,o.bU)();return(0,c.useEffect)((()=>{const t=(0,a.Z)();t.request=u.ZP,t.req.get({path:`/whats-new/list?_locale=${f}`,apiNamespace:"wpcom/v2"}).then((t=>{l(t)}))}),[f]),n?(0,r.createElement)(i.Guide,{className:"whats-new-guide__main",contentLabel:__("What's New at WordPress.com","full-site-editing"),finishButtonText:__("Close","full-site-editing"),onFinish:e},n.map(((t,e)=>(0,r.createElement)(p.Z,{pageNumber:e+1,isLastPage:e===n.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(9307),o=n(6115),i=n(5609),s=n(6656),c=n(9196);e.Z=function(t){let{description:e,heading:n,imageSrc:a,isLastPage:u,link:p,pageNumber:l}=t;const __=(0,s.useI18n)().__;return(0,c.useEffect)((()=>{(0,o.jN)("wpcom_whats_new_slide_view",{slide_number:l,is_last_slide:u})}),[u,l]),(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"},a&&(0,r.createElement)("img",{src:a,alt:e,"aria-hidden":"true",className:"whats-new-page__image"})))}},8552:function(t,e,n){"use strict";var r=n(8049),o=n.n(r),i=n(8650),s=n.n(i),c=n(8767),a=n(2884),u=n.n(a);const p=o()("wpcom-proxy-request"),l="https://public-api.wordpress.com",f=window.location.protocol+"//"+window.location.host;let h=null;const d=(()=>{let t=!1;try{window.postMessage({toString:function(){t=!0}},"*")}catch(e){}return t})(),y=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(t){return!1}})();let m,g=null,w=!1;const v={},b=!!window.ProgressEvent&&!!window.FormData;p('using "origin": %o',f);const _=(t,e)=>{const n=Object.assign({},t);p("request(%o)",n),g||A();const r=(0,c.Z)();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=b,n.method=String(n.method||"GET").toUpperCase(),p("params object: %o",n);const o=new window.XMLHttpRequest;if(o.params=n,v[r]=o,"function"==typeof e){let t=!1;const n=n=>{if(t)return;t=!0;const r=n.response||o.response;p("body: ",r),p("headers: ",n.headers),e(null,r,n.headers)},r=n=>{if(t)return;t=!0;const r=n.error||n.err||n;p("error: ",r),p("headers: ",n.headers),e(r,null,n.headers)};o.addEventListener("load",n),o.addEventListener("abort",r),o.addEventListener("error",r)}return"function"==typeof n.onStreamRecord&&(h=n.onStreamRecord,delete n.onStreamRecord),w?S(n):(p("buffering API request since proxying <iframe> is not yet loaded"),m.push(n)),o},C=(t,e)=>"function"==typeof e?_(t,e):new Promise(((e,n)=>{_(t,((t,r)=>{t?n(t):e(r)}))}));function S(t){p("sending API request to proxy <iframe> %o",t),t.formData&&function(t){if(!window.chrome||!y)return;for(let e=0;e<t.length;e++){const n=P(t[e][1]);n&&(t[e][1]=new window.File([n],n.name,{type:n.type}))}}(t.formData),g.contentWindow.postMessage(d?JSON.stringify(t):t,l)}function E(t){return t&&"[object File]"===Object.prototype.toString.call(t)}function P(t){return E(t)?t:"object"==typeof t&&E(t.fileContents)?t.fileContents:null}function A(){p("install()"),g&&(p("uninstall()"),window.removeEventListener("message",j),document.body.removeChild(g),w=!1,g=null),m=[],window.addEventListener("message",j),g=document.createElement("iframe"),g.src=l+"/wp-admin/rest-proxy/?v=2.0#"+f,g.style.display="none",document.body.appendChild(g)}function j(t){if(p("onmessage"),t.origin!==l)return void p("ignoring message... %o !== %o",t.origin,l);if(t.source!==g.contentWindow)return void p("ignoring message... iframe elements do not match");let{data:e}=t;if(!e)return p("no `data`, bailing");if("ready"===e)return void function(){if(p('proxy <iframe> "load" event'),w=!0,m){for(let t=0;t<m.length;t++)S(m[t]);m=null}}();if(d&&"string"==typeof e&&(e=JSON.parse(e)),e.upload||e.download)return function(t){p('got "progress" event: %o',t);const e=v[t.callbackId];if(e){const n=new(s())("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...");const n=e[e.length-1];if(!(n in v))return p("bailing, no matching request with callback: %o",n);const r=v[n],{params:o}=r,i=e[0];let c=e[1];const a=e[2];var f;if(207===c||delete v[n],o.metaAPI?c="metaAPIupdated"===i?200:500:p("got %o status code for URL: %o",c,o.path),"object"==typeof a&&(a.status=c,f=a["Content-Type"],/^application[/]x-ndjson($|;)/.test(f)&&207===c))h(i);else if(c&&2===Math.floor(c/100))!function(t,e,n){const r=new(s())("load");r.data=r.body=r.response=e,r.headers=n,t.dispatchEvent(r)}(r,i,a);else{!function(t,e,n){const r=new(s())("error");r.error=r.err=e,r.headers=n,t.dispatchEvent(r)}(r,u()(o,c,i),a)}}e.ZP=C},1202:function(t,e,n){"use strict";n.d(e,{Z:function(){return m}});var r=n(8049),o=n.n(r),i=n(9728),s=n(7114),c=n(35),a=n(2836),u=n(6870),p=n(2579),l=n(4308),f=n(3818),h=n(781),d=n(3918);const y=o()("wpcom");function m(t,e){if(!(this instanceof m))return new m(t,e);"function"==typeof t&&(e=t,t=null),t&&(y("Token defined: %s…",t.substring(0,6)),this.token=t);this.request=e||((t,e)=>{y("No request handler. Failing."),e(new Error("No request handler provided"))}),this.req=new h.Z(this),this.pinghub=new f.Z(this),this.apiVersion="1.1"}m.prototype.me=function(){return new a.Z(this)},m.prototype.domains=function(){return new c.Z(this)},m.prototype.domain=function(t){return new s.Z(t,this)},m.prototype.site=function(t){return new p.Z(t,this)},m.prototype.users=function(){return new l.Z(this)},m.prototype.plans=function(){return new u.Z(this)},m.prototype.batch=function(){return new i.Z(this)},m.prototype.freshlyPressed=function(t,e){return this.req.get("/freshly-pressed",t,e)},m.prototype.sendRequest=function(t,e,n,r){const o="WARN! Don use `sendRequest() anymore. Use `this.req` method.";return console&&console.warn?console.warn(o):console.log(o),d.Z.call(this,t,e,n,r)},m.Batch=i.Z,m.Domain=s.Z,m.Domains=c.Z,m.Me=a.Z,m.Pinghub=f.Z,m.Plans=u.Z,m.Request=h.Z,m.Site=p.Z,m.Users=l.Z,Promise.prototype.timeout||(Promise.prototype.timeout=function(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4;const n=new Promise(((n,r)=>{t=setTimeout((()=>{r(new Error("Action timed out while waiting for response."))}),e)})),r=()=>(clearTimeout(t),this);return Promise.race([this.then(r).catch(r),n])})},9728:function(t,e){"use strict";class n{constructor(t){if(!(this instanceof n))return new n(t);this.wpcom=t,this.urls=[]}add(t){return this.urls.push(t),this}run(){let 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)}}e.Z=n},6398:function(t,e){"use strict";class n{constructor(t,e){if(!(this instanceof n))return new n(t,e);this._domain=t,this._subpath="/domains/"+this._domain+"/dns",this.wpcom=e}add(t,e,n){return"function"==typeof e&&(n=e,e={}),this.wpcom.req.post(this._subpath+"/add",e,t,n)}delete(t,e,n){return this.wpcom.req.post(this._subpath+"/delete",e,t,n)}setDefaultARecords(t,e){return this.wpcom.req.post(this._subpath+"/set-default-a-records",t,null,e)}}e.Z=n},4449:function(t,e){"use strict";class n{constructor(t,e,r){if(!(this instanceof n))return new n(t,e,r);t&&(this._email=t),this._domain=e,this._subpath="/domains/"+this._domain+"/email/",this.wpcom=r}forward(t,e,n){const r={destination:t};return this.wpcom.req.post(this._subpath+this._email,e,r,n)}add(t,e,n,r){"function"==typeof n&&(r=n,n={});const o={mailbox:t,destination:e};return this.wpcom.req.post(this._subpath+"new",n,o,r)}delete(t,e,n){return this.wpcom.req.del(this._subpath+t+"/delete",e,n)}}e.Z=n},7114:function(t,e,n){"use strict";var r=n(6398),o=n(4449);const i="/domains/";class s{constructor(t,e){if(!(this instanceof s))return new s(t,e);this._id=t,this.wpcom=e}status(t,e){return this.wpcom.req.get(i+this._id+"/status",t,e)}isAvailable(t,e){return this.wpcom.req.get(i+this._id+"/is-available",t,e)}isMappable(t,e){return this.wpcom.req.get(i+this._id+"/is-mappable",t,e)}canRedirect(t,e,n){const r=i+t+"/"+this._id+"/can-redirect";return this.wpcom.req.get(r,e,n)}emailForwards(t,e){return this.wpcom.req.get(i+this._id+"/email",t,e)}nameserversList(t,e){return this.wpcom.req.get(i+this._id+"/nameservers",t,e)}updateNameservers(t,e,n){const r={nameservers:t};return this.wpcom.req.post(i+this._id+"/nameservers",e,r,n)}dnsList(t,e){return this.wpcom.req.get(i+this._id+"/dns",t,e)}googleAppsList(t,e){return this.wpcom.req.get(i+this._id+"/google-apps",t,e)}resendICANN(t,e){return this.wpcom.req.post(i+this._id+"/resend-icann",t,e)}email(t){return new o.Z(t,this._id,this.wpcom)}dns(){return new r.Z(this._id,this.wpcom)}mappingSetupInfo(t,e,n){return this.wpcom.req.get(i+this._id+"/mapping-setup-info/"+t,e,n)}mappingStatus(t,e){return this.wpcom.req.get(i+this._id+"/mapping-status",t,e)}updateConnectionModeAndGetMappingStatus(t,e,n){const r={mode:t};return this.wpcom.req.post(i+this._id+"/mapping-status",e,r,n)}}e.Z=s},35:function(t,e){"use strict";const n="/domains/";class r{constructor(t){if(!(this instanceof r))return new r(t);this.wpcom=t}suggestions(t,e){return"string"==typeof t&&(t={query:t}),this.wpcom.req.get(n+"suggestions",t,e)}suggestionsExamples(t,e){return this.wpcom.req.get(n+"suggestions/examples",t,e)}supportedCountries(t,e){return this.wpcom.req.get(n+"supported-countries",t,e)}supportedStates(t,e,r){const o=n+"supported-states/"+t;return this.wpcom.req.get(o,e,r)}}e.Z=r},2921:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/connected-applications/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get(r+this._id,t,e)}delete(t,e){return this.wpcom.req.del(r+this._id+"/delete",t,e)}}},2836:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(2921),o=n(2769),i=n(2695),s=n(7699),c=n(9814);function a(t){if(!(this instanceof a))return new a(t);this.wpcom=t}a.prototype.get=function(t,e){return this.wpcom.req.get("/me",t,e)},a.prototype.billingHistory=function(t,e){return this.wpcom.req.get("/me/billing-history",t,e)},a.prototype.postsList=function(t,e){return this.wpcom.req.get("/me/posts",t,e)},a.prototype.sites=function(t,e){return this.wpcom.req.get("/me/sites",t,e)},a.prototype.likes=function(t,e){return this.wpcom.req.get("/me/likes",t,e)},a.prototype.connectedApps=function(t,e){return this.wpcom.req.get("/me/connected-applications",t,e)},a.prototype.keyringConnections=function(t,e){return this.wpcom.req.get("/me/connections",t,e)},a.prototype.publicizeConnections=function(t,e){return this.wpcom.req.get("/me/publicize-connections",t,e)},a.prototype.settings=function(){return new s.Z(this.wpcom)},a.prototype.connectedApp=function(t){return new r.Z(t,this.wpcom)},a.prototype.publicizeConnection=function(t){return new i.Z(t,this.wpcom)},a.prototype.twoStep=function(){return new c.Z(this.wpcom)},a.prototype.keyringConnection=function(t){return new o.Z(t,this.wpcom)}},2769:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/connections/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get({path:r+this._id,apiNamespace:"wpcom/v2"},t,e)}delete(t,e){return this.wpcom.req.get({path:r+this._id,apiNamespace:"wpcom/v2",method:"DELETE"},t,e)}}},2695:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/publicize-connections/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get(r+this._id,t,e)}add(t,e,n){return this.wpcom.req.post(r+"new",t,e,n)}update(t,e,n){return this.wpcom.req.put(r+this._id,t,e,n)}delete(t,e){return this.wpcom.req.del(r+this._id+"/delete",t,e)}}},7699:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(142),o=n(9283);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("/me/settings",t,e)},i.prototype.update=function(t,e,n){return this.wpcom.req.put("/me/settings/",t,e,n)},i.prototype.profileLinks=function(){return new o.Z(this.wpcom)},i.prototype.password=function(){return new r.Z(this.wpcom)}},142:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});class r{constructor(t){if(!(this instanceof r))return new r(t);this.wpcom=t}validate(t,e,n){return this.wpcom.req.post("/me/settings/password/validate",e,{password:t},n)}}},9283:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/me/settings/profile-links";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(r,t,e)},o.prototype.mine=o.prototype.get,o.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)},o.prototype.del=function(t,e,n){const o=r+"/"+t+"/delete";return this.wpcom.req.del(o,e,n)},o.prototype.delete=o.prototype.del},9814:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(4086);class o{constructor(t){if(!(this instanceof o))return new o(t);this.wpcom=t}get(t,e){return this.wpcom.req.get("/me/two-step/",t,e)}sms(){return new r.Z(this.wpcom)}}},4086:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});class r{constructor(t){if(!(this instanceof r))return new r(t);this.wpcom=t}send(t,e){return this.wpcom.req.post("/me/two-step/sms/new",t,e)}}},6870:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r="/plans";class o{constructor(t){if(!(this instanceof o))return new o(t);this.wpcom=t}list(t,e){return this.wpcom.req.get(r,t,e)}features(t,e){return this.wpcom.req.get("/plans/features",t,e)}}},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){const n="/sites/"+this._sid+"/categories/slug:"+this._slug;return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){const r="/sites/"+this._sid+"/categories/new";return this.wpcom.req.post(r,t,e,n)},r.prototype.update=function(t,e,n){const 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){const 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 o}});var r=n(7369);function o(t,e,n,r){if(!n)throw new Error("`site id` is not correctly defined");if(!(this instanceof o))return new o(t,e,n,r);this.wpcom=r,this._cid=t,this._pid=e,this._sid=n}o.prototype.get=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.get(n,t,e)},o.prototype.replies=function(t,e){const n="/sites/"+this._sid+"/posts/"+this._pid+"/replies/";return this.wpcom.req.get(n,t,e)},o.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;const r="/sites/"+this._sid+"/posts/"+this._pid+"/replies/new";return this.wpcom.req.post(r,t,e,n)},o.prototype.update=function(t,e,n){"function"==typeof e&&(n=e,e=t,t={}),e="string"==typeof e?{content:e}:e;const r="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.put(r,t,e,n)},o.prototype.reply=function(t,e,n){"function"==typeof e&&(n=e,e=t,t={}),e="string"==typeof e?{content:e}:e;const r="/sites/"+this._sid+"/comments/"+this._cid+"/replies/new";return this.wpcom.req.post(r,t,e,n)},o.prototype.del=o.prototype.delete=function(t,e){const n="/sites/"+this._sid+"/comments/"+this._cid+"/delete";return this.wpcom.req.del(n,t,e)},o.prototype.like=function(){return(0,r.Z)(this._cid,this._sid,this.wpcom)},o.prototype.likesList=function(t,e){const 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){const n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e){const 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){const n="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine/delete";return this.wpcom.req.del(n,t,e)}},2096:function(t,e){"use strict";class n{constructor(t,e){if(!t)throw new Error("`site id` is not correctly defined");if(!(this instanceof n))return new n(t,e);this.wpcom=e,this._sid=t,this.path=`/sites/${this._sid}/vouchers`}list(){let 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)}get(t){let 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(`${this.path}/${t}`,e,n)}assign(t){let 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(`${this.path}/${t}/assign`,e,{},n)}}e.Z=n},7569:function(t,e){"use strict";class n{constructor(t,e){if(!(this instanceof n))return new n(t,e);this._sid=t,this.path=`/sites/${this._sid}/domains`,this.wpcom=e}getPrimary(t,e){return this.wpcom.req.get(`${this.path}/primary`,t,e)}setPrimary(t,e){return this.wpcom.req.put(`${this.path}/primary`,{},{domain:t},e)}getRedirect(t,e){return this.wpcom.req.get(`${this.path}/redirect`,t,e)}setRedirect(t,e){return"string"==typeof t&&(t={location:t}),this.wpcom.req.put(`${this.path}/redirect`,{},t,e)}}e.Z=n},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){const n="/sites/"+this._sid+"/follows/mine";return this.wpcom.req.get(n,t,e)},r.prototype.follow=r.prototype.add=function(t,e){const n="/sites/"+this._sid+"/follows/new";return this.wpcom.req.put(n,t,null,e)},r.prototype.unfollow=r.prototype.del=function(t,e){const 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(8049),o=n.n(r),i=n(209),s=n(3388),c=n(1832),a=n(2096),u=n(7569),p=n(8447),l=n(8837),f=n(361),h=n(3164),d=n(7187),y=n(150),m=n(5489),g=n(1986),w=n(1753),v=n(4866),b=n(9426);const _=o()("wpcom:site");class C{constructor(t,e){if(!(this instanceof C))return new C(t,e);this.wpcom=e,_("set %o site id",t),this._id=encodeURIComponent(t),this.path=`/sites/${this._id}`}get(t,e){return this.wpcom.req.get(this.path,t,e)}post(t){return new h.Z(t,this._id,this.wpcom)}addPost(t,e){return new h.Z(null,this._id,this.wpcom).add(t,e)}deletePost(t,e){return new h.Z(t,this._id,this.wpcom).delete(e)}media(t){return new l.Z(t,this._id,this.wpcom)}addMediaFiles(t,e,n){return new l.Z(null,this._id,this.wpcom).addFiles(t,e,n)}addMediaUrls(t,e,n){return new l.Z(null,this._id,this.wpcom).addUrls(t,e,n)}deleteMedia(t,e){return new l.Z(t,this._id,this.wpcom).del(e)}comment(t){return new c.Z(t,null,this._id,this.wpcom)}follow(){return new p.Z(this._id,this.wpcom)}plugin(t){return new f.Z(t,this._id,this.wpcom)}wpcomPlugin(t){return new v.Z(t,this._id,this.wpcom)}category(t){return new s.Z(t,this._id,this.wpcom)}tag(t){return new m.Z(t,this._id,this.wpcom)}taxonomy(t){return new g.Z(t,this._id,this.wpcom)}creditVouchers(){return new a.Z(this._id,this.wpcom)}postType(t){return new d.Z(t,this._id,this.wpcom)}settings(){return new y.Z(this._id,this.wpcom)}domain(){return new u.Z(this._id,this.wpcom)}postCounts(){let 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(`${this.path}/post-counts/${t}`,e,n)}renderShortcode(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(`${this.path}/shortcodes/render`,e,n)}renderEmbed(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(`${this.path}/embeds/render`,e,n)}statsReferrersSpamNew(t,e){const n=`${this.path}/stats/referrers/spam/new`;return this.wpcom.req.post(n,{domain:t},null,e)}statsReferrersSpamDelete(t,e){const n=`${this.path}/stats/referrers/spam/delete`;return this.wpcom.req.post(n,{domain:t},null,e)}statsVideo(t,e,n){const r=`${this.path}/stats/video/${t}`;return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(r,e,n)}statsPostViews(t,e,n){const r=`${this.path}/stats/post/${t}`;return"function"==typeof e&&(n=e,e={}),this.wpcom.req.get(r,e,n)}wordAds(){return new w.Z(this._id,this.wpcom)}}(0,b.Z)(C,i.Z,((t,e)=>`/sites/${e._id}/${t.subpath}`)),e.Z=C},8837:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(8049),o=n.n(r),i=n(6426);const s=o()("wpcom:media");function c(t){const e=[];let n,r,o,c;for(t=Array.isArray(t)?t:[t],n=0;n<t.length;n++){r=t[n],"string"==typeof r&&(r=(0,i.U)(r));const a=!!r._readableState,u="undefined"!=typeof File&&r instanceof File;if(s("isStream: %s",a),s("isFile: %s",u),!u&&!a){for(o in r)s("add %o => %o",o,r[o]),"file"!==o&&(c="attrs["+n+"]["+o+"]",e.push([c,r[o]]));r=r.file,"string"==typeof r&&(r=(0,i.U)(r))}e.push(["media[]",r])}return e}function a(t,e,n){if(!(this instanceof a))return new a(t,e,n);this.wpcom=n,this._sid=e,this._id=t,this._id||s("WARN: media `id` is not defined")}a.prototype.get=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;t.apiVersion=t.apiVersion||"1.2";const n="/sites/"+this._sid+"/media/"+this._id;return this.wpcom.req.get(n,t,e)},a.prototype.update=function(t,e,n){const r={path:"/sites/"+this._sid+"/media/"+this._id};return this.wpcom.req.put(r,t,e,n)},a.prototype.edit=function(t,e,n){"function"!=typeof e&&e||(n=e,e=t,t={});const r={path:"/sites/"+this._sid+"/media/"+this._id+"/edit"};if(e&&e.media){r.formData=[["media",e.media]],delete e.media;for(const t in e)r.formData.push([`attrs[${t}]`,e[t]]);e=null}return this.wpcom.req.put(r,t,e,n)},a.prototype.addFiles=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={}));const r={path:"/sites/"+this._sid+"/media/new",formData:c(e)};return this.wpcom.req.post(r,t,null,n)},a.prototype.addUrls=function(t,e,n){void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={}));const r="/sites/"+this._sid+"/media/new",o={media_urls:[]};let i,s,c,a;for(e=Array.isArray(e)?e:[e],i=0;i<e.length;i++){if(s=e[i],"string"==typeof s)c=s;else{for(a in o.attrs||(o.attrs=[]),o.attrs[i]={},s)"url"!==a&&(o.attrs[i][a]=s[a]);c=s.url}o.media_urls.push(c)}return this.wpcom.req.post(r,t,o,n)},a.prototype.delete=a.prototype.del=function(t,e){const n="/sites/"+this._sid+"/media/"+this._id+"/delete";return this.wpcom.req.del(n,t,e)}},361:function(t,e){"use strict";class n{constructor(t,e,r){if(!(this instanceof n))return new n(t,e,r);if(!t)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(t),this._sid=e,this.wpcom=r;const o=`/sites/${this._sid}/plugins`;this.pluginPath=`${o}/${this._slug}`}get(t,e){return this.wpcom.req.get(this.pluginPath,t,e)}update(t,e,n){return this.wpcom.req.put(this.pluginPath,t,e,n)}updateVersion(t,e){return this.wpcom.req.put(`${this.pluginPath}/update`,t,e)}install(t,e){const n={slug:this._slug};return this.wpcom.req.post(`/sites/${this._sid}/plugins/install`,t,n,e)}delete(t,e){return this.wpcom.req.put(`${this.pluginPath}/delete`,t,e)}activate(t,e){return this.update(t,{active:!0},e)}deactivate(t,e){return this.update(t,{active:!1},e)}enableAutoupdate(t,e){return this.update(t,{autoupdate:!0},e)}disableAutoupdate(t,e){return this.update(t,{autoupdate:!1},e)}}e.Z=n},7187:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});class r{constructor(t,e,n){if(!e)throw new TypeError("`siteId` is not correctly defined");if(!t)throw new TypeError("`postType` is not correctly defined");if(!(this instanceof r))return new r(t,e,n);this.wpcom=n,this._siteId=encodeURIComponent(e),this._postType=encodeURIComponent(t),this._rootPath=`/sites/${this._siteId}/post-types/${this._postType}`}taxonomiesList(t,e){const n=`${this._rootPath}/taxonomies`;return this.wpcom.req.get(n,t,e)}}},3164:function(t,e,n){"use strict";var r=n(8049),o=n.n(r),i=n(8729),s=n(1832),c=n(9932),a=n(3185),u=n(2250),p=n(9426);const l=o()("wpcom:post");class f{constructor(t,e,n){if(!(this instanceof f))return new f(t,e,n);this.wpcom=n,this._sid=e,this.path=`/sites/${this._sid}/posts`,"object"!=typeof(t=t||{})?this._id=t:(this._id=t.id,this._slug=t.slug)}id(t){this._id=t}slug(t){this._slug=t}getPostPath(){return`${this.path}/${this._id}`}get(t,e){return!this._id&&this._slug?this.getBySlug(t,e):this.wpcom.req.get(this.getPostPath(),t,e)}getBySlug(t,e){return this.wpcom.req.get(`${this.path}/slug:${this._slug}`,t,e)}add(t,e,n){return void 0===n&&(void 0===e?(e=t,t={}):"function"==typeof e&&(n=e,e=t,t={})),this.wpcom.req.post(`${this.path}/new`,t,e).then((t=>{if(this._id=t.ID,l("Set post _id: %s",this._id),this._slug=t.slug,l("Set post _slug: %s",this._slug),"function"!=typeof n)return Promise.resolve(t);n(null,t)})).catch((t=>{if("function"!=typeof n)return Promise.reject(t);n(t)}))}update(t,e,n){return this.wpcom.req.put(this.getPostPath(),t,e,n)}delete(t,e){const n=`${this.getPostPath()}/delete`;return this.wpcom.req.del(n,t,e)}del(t,e){return this.delete(t,e)}restore(t,e){return this.wpcom.req.put(`${this.getPostPath()}/restore`,t,null,e)}related(t,e){return this.wpcom.req.put(`${this.getPostPath()}/related`,t,null,e)}comment(t){return new s.Z(t,this._id,this._sid,this.wpcom)}comments(t,e){return new s.Z(null,this._id,this._sid,this.wpcom).replies(t,e)}like(){return new c.Z(this._id,this._sid,this.wpcom)}reblog(){return new a.Z(this._id,this._sid,this.wpcom)}subscriber(){return new u.Z(this._id,this._sid,this.wpcom)}}(0,p.Z)(f,i.Z,((t,e)=>`/sites/${e._sid}/posts/${e._id}/${t.subpath}`)),e.Z=f},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){const n="/sites/"+this._sid+"/posts/"+this._pid+"/likes/mine";return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e){const 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){const 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){const 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"));const 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){"use strict";class n{constructor(t,e,r){if(!e)throw new Error("`side id` is not correctly defined");if(!t)throw new Error("`post id` is not correctly defined");if(!(this instanceof n))return new n(t,e,r);this.wpcom=r,this._id=t,this._sid=e,this.path=`/sites/${this._sid}/posts/${this._id}/subscribers`}mine(t,e){return this.wpcom.req.get(`${this.path}/mine`,t,e)}add(t,e){return this.wpcom.req.put(`${this.path}/new`,t,null,e)}del(t,e){return this.wpcom.req.del(`${this.path}/mine/delete`,t,e)}}n.prototype.state=n.prototype.mine,n.prototype.delete=n.prototype.del,e.Z=n},150:function(t,e){"use strict";class n{constructor(t,e){if(!t)throw new Error("`site id` is not correctly defined");if(!(this instanceof n))return new n(t,e);this.wpcom=e,this._sid=t,this.path=`/sites/${this._sid}/settings`}get(t,e){return this.wpcom.req.get(this.path,t,e)}getOption(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const n={fields:"settings"};return new Promise(((r,o)=>{this.wpcom.req.get(this.path,n,((n,i)=>{if(n)return e(n),o(n);if(!i)return e(),r();const s=i.settings;return s&&void 0!==s[t]?(e(null,s[t]),r(s[t])):(e(null,i),r(i))}))}))}update(t,e,n){return this.wpcom.req.put(this.path,t,e,n)}setOption(t,e,n){return this.wpcom.req.put(this.path,{},{[t]:e},n)}}e.Z=n},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){const n="/sites/"+this._sid+"/tags/slug:"+this._slug;return this.wpcom.req.get(n,t,e)},r.prototype.add=function(t,e,n){const r="/sites/"+this._sid+"/tags/new";return this.wpcom.req.post(r,t,e,n)},r.prototype.update=function(t,e,n){const 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){const 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(4046);class o{constructor(t,e,n){if(!e)throw new TypeError("`siteId` is not correctly defined");if(!t)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof o))return new o(t,e,n);this.wpcom=n,this._siteId=encodeURIComponent(e),this._taxonomy=encodeURIComponent(t),this._rootPath=`/sites/${this._siteId}/taxonomies/${this._taxonomy}`}termsList(t,e){const n=`${this._rootPath}/terms`;return this.wpcom.req.get(n,t,e)}term(t){return new r.Z(t,this._taxonomy,this._siteId,this.wpcom)}}e.Z=o},4046:function(t,e){"use strict";class n{constructor(t,e,r,o){if(!r)throw new TypeError("`siteId` is not correctly defined");if(!e)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof n))return new n(t,e,r,o);this.wpcom=o,this._siteId=encodeURIComponent(r),this._taxonomy=encodeURIComponent(e),this._term=encodeURIComponent(t),this._taxonomyPath=`/sites/${this._siteId}/taxonomies/${this._taxonomy}/terms`}get(t,e){if(!this._term)throw new Error("`term` is not correctly defined");"function"==typeof t&&(e=t,t={});const n=`${this._taxonomyPath}/slug:${this._term}`;return this.wpcom.req.get(n,t,e)}add(t,e){if(!t||!t.name)throw new Error("`params.name` is not correctly defined");const n=`${this._taxonomyPath}/new`;return this.wpcom.req.post(n,t,e)}delete(t){if(!this._term)throw new Error("`term` is not correctly defined");const e=`${this._taxonomyPath}/slug:${this._term}/delete`;return this.wpcom.req.del(e,t)}update(t,e){if(!this._term)throw new Error("`term` is not correctly defined");const n=`${this._taxonomyPath}/slug:${this._term}`;return this.wpcom.req.put(n,t,e)}}e.Z=n},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(3243),o=n(4549),i=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 o.Z(this._sid,this.wpcom)},s.prototype.earnings=function(){return new r.Z(this._sid,this.wpcom)},s.prototype.tos=function(){return new i.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){const 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){const r="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(r,t,e,n)},r.prototype.sign=function(t,e){const n="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(n,t,{tos:"signed"},e)}},4866:function(t,e){"use strict";class n{constructor(t,e,r){if(!(this instanceof n))return new n(t,e,r);if(!t)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(t),this._sid=e,this.wpcom=r;const o=`/sites/${this._sid}/wpcom-plugins`;this.pluginPath=`${o}/${this._slug}`}update(t,e,n){return this.wpcom.req.put(this.pluginPath,t,e,n)}activate(t,e){return this.update(t,{active:!0},e)}deactivate(t,e){return this.update(t,{active:!1},e)}}e.Z=n},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 i}});var r=n(8049);const o=n.n(r)()("wpcom:pinghub");function i(t){if(!(this instanceof i))return new i(t);this.wpcom=t,this.conns={}}i.prototype.connect=function(t,e){o("connect",t,e);const n=this,r={action:"connect",path:"/pinghub"+t},i=this.conns[t]=this.wpcom.req.get(r,(function(){}));i.onload=function(n){o("onload",t,n),e(null,n)},i.onerror=i.onabort=i.onclose=function(r){o("onerror",t,r),n.remove(t),e(r,null)}},i.prototype.disconnect=function(t){o("disconnect",t);const e={action:"disconnect",path:"/pinghub"+t};this.wpcom.req.get(e,(function(){}))},i.prototype.remove=function(t){o("remove",t),delete this.conns[t]}},781:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(3918);function o(t){this.wpcom=t}o.prototype.get=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r.Z.call(this.wpcom,t,e,null,n)},o.prototype.post=o.prototype.put=function(t,e,n,o){return void 0===o&&(void 0===n?(n=e,e={}):"function"==typeof n&&(o=n,n=e,e={})),(t="string"==typeof t?{path:t}:t).method=t.method||"post",r.Z.call(this.wpcom,t,e,n,o)},o.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 s}});var r=n(8049);const o=n.n(r)()("wpcom:runtime"),i=(t,e)=>function(n,r){const o=e(t,this);return this.wpcom.req.get(o,n,r)};function s(t,e,n){e.forEach((e=>{o("Adding %o",(e="object"==typeof e?e:{name:e}).name),t.prototype[e.name]=i(e,n)}))}},3918:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(8049),o=n.n(r),i=n(9126),s=n.n(i);const c=o()("wpcom:send-request"),a=o()("wpcom:send-request:res");function u(t,e,n,r){return c("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,c("apiVersion: %o",t.apiVersion),delete e.apiVersion):t.apiVersion=this.apiVersion,e.apiNamespace&&(t.apiNamespace=e.apiNamespace,c("apiNamespace: %o",t.apiNamespace),delete e.apiNamespace),e.proxyOrigin&&(t.proxyOrigin=e.proxyOrigin,c("proxyOrigin: %o",t.proxyOrigin),delete e.proxyOrigin),e=s().stringify(e,{arrayFormat:"brackets"}),t.query=e,n&&(t.body=n),c("params: %o",t),"function"==typeof r?this.request(t,(function(t,e,n){a(e),r(t,e,n)})):new Promise(((e,n)=>{this.request(t,((t,r)=>{a(r),t?n(t):e(r)}))}))}},8049:function(t,e,n){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;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){let 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=(()=>{let t=!1;return()=>{t||(t=!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||(()=>{}),t.exports=n(2632)(e);const{formatters:r}=t.exports;r.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2632:function(t,e,n){t.exports=function(t){function e(t){let n,o,i,s=null;function c(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(!c.enabled)return;const i=c,s=Number(new Date),a=s-(n||s);i.diff=a,i.prev=n,i.curr=s,n=s,r[0]=e.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");let u=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if("%%"===t)return"%";u++;const o=e.formatters[n];if("function"==typeof o){const e=r[u];t=o.call(i,e),r.splice(u,1),u--}return t})),e.formatArgs.call(i,r);const p=i.log||e.log;p.apply(i,r)}return c.namespace=t,c.useColors=e.useColors(),c.color=e.selectColor(t),c.extend=r,c.destroy=e.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==e.namespaces&&(o=e.namespaces,i=e.enabled(t)),i),set:t=>{s=t}}),"function"==typeof e.init&&e.init(c),c}function r(t,n){const 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(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;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;let 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((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),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 i}});var o=new Uint8Array(16);function i(){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(o)}},708:function(t,e,n){"use strict";for(var r=n(6525),o=[],i=0;i<256;++i)o.push((i+256).toString(16).substr(1));e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[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),o=n(708);e.Z=function(t,e,n){var i=(t=t||{}).random||(t.rng||r.Z)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(var s=0;s<16;++s)e[n+s]=i[s];return e}return(0,o.Z)(i)}},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),o=n(7260);function i(t,e){if(e)if("number"==typeof e)s(t,e);else{e.status_code&&s(t,e.status_code),e.error&&(t.name=a(e.error)),e.error_description&&(t.message=e.error_description);var n=e.errors;if(n)i(t,n.length?n[0]:n);for(var r in e)t[r]=e[r];t.status&&(e.method||e.path)&&c(t)}}function s(t,e){t.name=a(o[e]),t.status=t.statusCode=e,c(t)}function c(t){var e=t.status,n=t.method,r=t.path,o=e+" status code",i=n||r;i&&(o+=' for "'),n&&(o+=n),i&&(o+=" "),r&&(o+=r),i&&(o+='"'),t.message=o}function a(t){return r(String(t).replace(/error$/i,""),"error")}t.exports=function t(){for(var e=new Error,n=0;n<arguments.length;n++)i(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"}},9196:function(t){"use strict";t.exports=window.React},2819:function(t){"use strict";t.exports=window.lodash},5609:function(t){"use strict";t.exports=window.wp.components},4333:function(t){"use strict";t.exports=window.wp.compose},9818:function(t){"use strict";t.exports=window.wp.data},9307:function(t){"use strict";t.exports=window.wp.element},5736:function(t){"use strict";t.exports=window.wp.i18n},8817:function(t){"use strict";t.exports=window.wp.plugins},6656:function(t){"use strict";t.exports=window.wp.reactI18n},3260:function(){},7896: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},r.apply(this,arguments)}n.d(e,{Z:function(){return r}})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.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={2680:function(t,e,r){"use strict";var n=r(7286),o=r(9429),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},9429:function(t,e,r){"use strict";var n=r(4090),o=r(7286),i=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),a=o("%Reflect.apply%",!0)||n.call(s,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(f){c=null}t.exports=function(t){var e=a(n,s,arguments);if(u&&c){var r=u(e,"length");r.configurable&&c(e,"length",{value:1+p(0,t.length-(arguments.length-1))})}return e};var l=function(){return a(n,i,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l},3421:function(t,e){"use strict";var r=decodeURIComponent,n=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(t,e){try{return e(t)}catch(r){return t}}},2699:function(t){"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(r,n){function o(){void 0!==i&&t.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==e&&(i=function(r){t.removeListener(e,o),n(r)},t.once("error",i)),t.once(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function c(t,e,r,n){var o,i,s,c;if(a(r),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),s=i[e]),void 0===s)s=i[e]=r,++t._eventsCount;else if("function"==typeof s?s=i[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=u(t))>0&&s.length>o&&!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,c=p,console&&console.warn&&console.warn(c)}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 l(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=p.bind(n);return o.listener=r,n.wrapFn=o,o}function f(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(o):d(o,o.length)}function h(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),i.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},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(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},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)n(u,this,e);else{var c=u.length,p=d(u,c);for(r=0;r<c;++r)n(p[r],this,e)}return!0},i.prototype.addListener=function(t,e){return c(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return c(this,t,e,!0)},i.prototype.once=function(t,e){return a(e),this.on(t,l(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,l(this,t,e)),this},i.prototype.removeListener=function(t,e){var r,n,o,i,s;if(a(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){s=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,o),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},i.prototype.listeners=function(t){return f(this,t,!0)},i.prototype.rawListeners=function(t){return f(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},7795:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(e+i);for(var s,a=r.call(arguments,1),u=function(){if(this instanceof s){var e=i.apply(this,a.concat(r.call(arguments)));return Object(e)===e?e:this}return i.apply(t,a.concat(r.call(arguments)))},c=Math.max(0,i.length-a.length),p=[],l=0;l<c;l++)p.push("$"+l);if(s=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var f=function(){};f.prototype=i.prototype,s.prototype=new f,f.prototype=null}return s}},4090:function(t,e,r){"use strict";var n=r(7795);t.exports=Function.prototype.bind||n},7286:function(t,e,r){"use strict";var n,o=SyntaxError,i=Function,s=TypeError,a=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(A){u=null}var c=function(){throw new s},p=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(e){return c}}}():c,l=r(2636)(),f=Object.getPrototypeOf||function(t){return t.__proto__},h={},d="undefined"==typeof Uint8Array?n:f(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":d,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},m=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=f(o.prototype))}return y[e]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=r(4090),v=r(3198),_=w.call(Function.call,Array.prototype.concat),b=w.call(Function.apply,Array.prototype.splice),S=w.call(Function.call,String.prototype.replace),C=w.call(Function.call,String.prototype.slice),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,x=function(t){var e=C(t,0,1),r=C(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return S(t,P,(function(t,e,r,o){n[n.length]=r?S(o,E,"$1"):e||t})),n},O=function(t,e){var r,n=t;if(v(g,n)&&(n="%"+(r=g[n])[0]+"%"),v(y,n)){var i=y[n];if(i===h&&(i=m(n)),void 0===i&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');var r=x(t),n=r.length>0?r[0]:"",i=O("%"+n+"%",e),a=i.name,c=i.value,p=!1,l=i.alias;l&&(n=l[0],b(r,_([0,1],l)));for(var f=1,h=!0;f<r.length;f+=1){var d=r[f],m=C(d,0,1),g=C(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(p=!0),v(y,a="%"+(n+="."+d)+"%"))c=y[a];else if(null!=c){if(!(d in c)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&f+1>=r.length){var w=u(c,d);c=(h=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:c[d]}else h=v(c,d),c=c[d];h&&!p&&(y[a]=c)}}return c}},2636:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(6679);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},6679:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3198:function(t,e,r){"use strict";var n=r(4090);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},4495:function(t,e,r){"use strict";var n=r(212),o=r(9561);function i(){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=i,i.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var o=1;o<r;o++)n[o]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)n[o++]=0;n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=t>>>24&255,n[o++]=t>>>16&255,n[o++]=t>>>8&255,n[o++]=255&t}else for(n[o++]=255&t,n[o++]=t>>>8&255,n[o++]=t>>>16&255,n[o++]=t>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,i=8;i<this.padLength;i++)n[o++]=0;return n}},8032:function(t,e,r){"use strict";var n=r(212),o=r(4495),i=r(713),s=r(9561),a=n.sum32,u=n.sum32_4,c=n.sum32_5,p=i.ch32,l=i.maj32,f=i.s0_256,h=i.s1_256,d=i.g0_256,y=i.g1_256,m=o.BlockHash,g=[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 w(){if(!(this instanceof w))return new w;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(w,m),t.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=u(y(r[n-2]),r[n-7],d(r[n-15]),r[n-16]);var o=this.h[0],i=this.h[1],m=this.h[2],g=this.h[3],w=this.h[4],v=this.h[5],_=this.h[6],b=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var S=c(b,h(w),p(w,v,_),this.k[n],r[n]),C=a(f(o),l(o,i,m));b=_,_=v,v=w,w=a(g,S),g=m,m=i,i=o,o=a(S,C)}this.h[0]=a(this.h[0],o),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],g),this.h[4]=a(this.h[4],w),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],_),this.h[7]=a(this.h[7],b)},w.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},713:function(t,e,r){"use strict";var n=r(212).rotr32;function o(t,e,r){return t&e^~t&r}function i(t,e,r){return t&e^t&r^e&r}function s(t,e,r){return t^e^r}e.ft_1=function(t,e,r,n){return 0===t?o(e,r,n):1===t||3===t?s(e,r,n):2===t?i(e,r,n):void 0},e.ch32=o,e.maj32=i,e.p32=s,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},212:function(t,e,r){"use strict";var n=r(9561),o=r(1285);function i(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 a(t){return 1===t.length?"0"+t:t}function u(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=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)r.push(parseInt(t[o]+t[o+1],16))}else for(var n=0,o=0;o<t.length;o++){var s=t.charCodeAt(o);s<128?r[n++]=s:s<2048?(r[n++]=s>>6|192,r[n++]=63&s|128):i(t,o)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++o)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(o=0;o<t.length;o++)r[o]=0|t[o];return r},e.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=a(t[r].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t[n];"little"===e&&(o=s(o)),r+=u(o.toString(16))}return r},e.zero2=a,e.zero8=u,e.join32=function(t,e,r,o){var i=r-e;n(i%4==0);for(var s=new Array(i/4),a=0,u=e;a<s.length;a++,u+=4){var c;c="big"===o?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],s[a]=c>>>0}return s},e.split32=function(t,e){for(var r=new Array(4*t.length),n=0,o=0;n<t.length;n++,o+=4){var i=t[n];"big"===e?(r[o]=i>>>24,r[o+1]=i>>>16&255,r[o+2]=i>>>8&255,r[o+3]=255&i):(r[o+3]=i>>>24,r[o+2]=i>>>16&255,r[o+1]=i>>>8&255,r[o]=255&i)}return r},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,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},e.sum32_5=function(t,e,r,n,o){return t+e+r+n+o>>>0},e.sum64=function(t,e,r,n){var o=t[e],i=n+t[e+1]>>>0,s=(i<n?1:0)+r+o;t[e]=s>>>0,t[e+1]=i},e.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,o,i,s,a){var u=0,c=e;return u+=(c=c+n>>>0)<e?1:0,u+=(c=c+i>>>0)<i?1:0,t+r+o+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},e.sum64_4_lo=function(t,e,r,n,o,i,s,a){return e+n+i+a>>>0},e.sum64_5_hi=function(t,e,r,n,o,i,s,a,u,c){var p=0,l=e;return p+=(l=l+n>>>0)<e?1:0,p+=(l=l+i>>>0)<i?1:0,p+=(l=l+a>>>0)<a?1:0,t+r+o+s+u+(p+=(l=l+c>>>0)<c?1:0)>>>0},e.sum64_5_lo=function(t,e,r,n,o,i,s,a,u,c){return e+n+i+a+c>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>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 r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},5978:function(t,e){var r,n;n="undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:this,t.exports=function(n){"use strict";var o,i=(n=n||{}).Base64,s="2.6.4",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(t){for(var e={},r=0,n=t.length;r<n;r++)e[t.charAt(r)]=r;return e}(a),c=String.fromCharCode,p=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?c(192|e>>>6)+c(128|63&e):c(224|e>>>12&15)+c(128|e>>>6&63)+c(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return c(240|e>>>18&7)+c(128|e>>>12&63)+c(128|e>>>6&63)+c(128|63&e)},l=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,f=function(t){return t.replace(l,p)},h=function(t){var e=[0,2,1][t.length%3],r=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0);return[a.charAt(r>>>18),a.charAt(r>>>12&63),e>=2?"=":a.charAt(r>>>6&63),e>=1?"=":a.charAt(63&r)].join("")},d=n.btoa&&"function"==typeof n.btoa?function(t){return n.btoa(t)}:function(t){if(t.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return t.replace(/[\s\S]{1,3}/g,h)},y=function(t){return d(f(String(t)))},m=function(t){return t.replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"})).replace(/=/g,"")},g=function(t,e){return e?m(y(t)):y(t)},w=function(t){return g(t,!0)};n.Uint8Array&&(o=function(t,e){for(var r="",n=0,o=t.length;n<o;n+=3){var i=t[n],s=t[n+1],u=t[n+2],c=i<<16|s<<8|u;r+=a.charAt(c>>>18)+a.charAt(c>>>12&63)+(void 0!==s?a.charAt(c>>>6&63):"=")+(void 0!==u?a.charAt(63&c):"=")}return e?m(r):r});var v,_=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(t){switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return c(55296+(e>>>10))+c(56320+(1023&e));case 3:return c((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return c((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},S=function(t){return t.replace(_,b)},C=function(t){var e=t.length,r=e%4,n=(e>0?u[t.charAt(0)]<<18:0)|(e>1?u[t.charAt(1)]<<12:0)|(e>2?u[t.charAt(2)]<<6:0)|(e>3?u[t.charAt(3)]:0),o=[c(n>>>16),c(n>>>8&255),c(255&n)];return o.length-=[0,0,2,1][r],o.join("")},P=n.atob&&"function"==typeof n.atob?function(t){return n.atob(t)}:function(t){return t.replace(/\S{1,4}/g,C)},E=function(t){return P(String(t).replace(/[^A-Za-z0-9\+\/]/g,""))},x=function(t){return S(P(t))},O=function(t){return String(t).replace(/[-_]/g,(function(t){return"-"==t?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},A=function(t){return x(O(t))};n.Uint8Array&&(v=function(t){return Uint8Array.from(E(O(t)),(function(t){return t.charCodeAt(0)}))});var j=function(){var t=n.Base64;return n.Base64=i,t};if(n.Base64={VERSION:s,atob:E,btoa:d,fromBase64:A,toBase64:g,utob:f,encode:g,encodeURI:w,btou:S,decode:A,noConflict:j,fromUint8Array:o,toUint8Array:v},"function"==typeof Object.defineProperty){var k=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",k((function(){return A(this)}))),Object.defineProperty(String.prototype,"toBase64",k((function(t){return g(this,t)}))),Object.defineProperty(String.prototype,"toBase64URI",k((function(){return g(this,!0)})))}}return n.Meteor&&(Base64=n.Base64),t.exports?t.exports.Base64=n.Base64:void 0===(r=function(){return n.Base64}.apply(e,[]))||(t.exports=r),{Base64:n.Base64}}(n)},6590:function(){},9561:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},1378:function(t){var e=1e3,r=60*e,n=60*r,o=24*n,i=7*o,s=365.25*o;function a(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,u){u=u||{};var c=typeof t;if("string"===c&&t.length>0)return function(t){if((t=String(t)).length>100)return;var a=/^(-?(?:\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(!a)return;var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(t);if("number"===c&&isFinite(t))return u.long?function(t){var i=Math.abs(t);if(i>=o)return a(t,i,o,"day");if(i>=n)return a(t,i,n,"hour");if(i>=r)return a(t,i,r,"minute");if(i>=e)return a(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=n)return Math.round(t/n)+"h";if(i>=r)return Math.round(t/r)+"m";if(i>=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))}},9500:function(t,e,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,s=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&u&&"function"==typeof u.get?u.get:null,p=a&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,w="function"==typeof BigInt?BigInt.prototype.valueOf:null,v=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,b="function"==typeof Symbol&&"object"==typeof Symbol.iterator,S=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),P=r(3260).custom,E=P&&k(P)?P:null,x="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function O(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function A(t){return String(t).replace(/"/g,"&quot;")}function j(t){return!("[object Array]"!==R(t)||x&&"object"==typeof t&&x in t)}function k(t){if(b)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!_)return!1;try{return _.call(t),!0}catch(e){}return!1}t.exports=function t(e,r,n,o){var a=r||{};if(q(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!q(a,"customInspect")||a.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return Z(e,a);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var y=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=y&&y>0&&"object"==typeof e)return j(e)?"[Array]":"[Object]";var v=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(a,n);if(void 0===o)o=[];else if(F(o,e)>=0)return"[Circular]";function S(e,r,i){if(r&&(o=o.slice()).push(r),i){var s={depth:a.depth};return q(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),t(e,s,n+1,o)}return t(e,a,n+1,o)}if("function"==typeof e){var P=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),U=M(e,S);return"[Function"+(P?": "+P:" (anonymous)")+"]"+(U.length>0?" { "+U.join(", ")+" }":"")}if(k(e)){var L=b?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(e);return"object"!=typeof e||b?L:N(L)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var $="<"+String(e.nodeName).toLowerCase(),H=e.attributes||[],z=0;z<H.length;z++)$+=" "+H[z].name+"="+O(A(H[z].value),"double",a);return $+=">",e.childNodes&&e.childNodes.length&&($+="..."),$+="</"+String(e.nodeName).toLowerCase()+">"}if(j(e)){if(0===e.length)return"[]";var B=M(e,S);return v&&!function(t){for(var e=0;e<t.length;e++)if(F(t[e],"\n")>=0)return!1;return!0}(B)?"["+D(B,v)+"]":"[ "+B.join(", ")+" ]"}if(function(t){return!("[object Error]"!==R(t)||x&&"object"==typeof t&&x in t)}(e)){var W=M(e,S);return 0===W.length?"["+String(e)+"]":"{ ["+String(e)+"] "+W.join(", ")+" }"}if("object"==typeof e&&u){if(E&&"function"==typeof e[E])return e[E]();if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch($){return!0}return t instanceof Map}catch(e){}return!1}(e)){var V=[];return s.call(e,(function(t,r){V.push(S(r,e,!0)+" => "+S(t,e))})),T("Map",i.call(e),V,v)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(e){return!0}return t instanceof Set}catch(r){}return!1}(e)){var G=[];return p.call(e,(function(t){G.push(S(t,e))})),T("Set",c.call(e),G,v)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch($){return!0}return t instanceof WeakMap}catch(e){}return!1}(e))return I("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch($){return!0}return t instanceof WeakSet}catch(e){}return!1}(e))return I("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(e){}return!1}(e))return I("WeakRef");if(function(t){return!("[object Number]"!==R(t)||x&&"object"==typeof t&&x in t)}(e))return N(S(Number(e)));if(function(t){if(!t||"object"!=typeof t||!w)return!1;try{return w.call(t),!0}catch(e){}return!1}(e))return N(S(w.call(e)));if(function(t){return!("[object Boolean]"!==R(t)||x&&"object"==typeof t&&x in t)}(e))return N(d.call(e));if(function(t){return!("[object String]"!==R(t)||x&&"object"==typeof t&&x in t)}(e))return N(S(String(e)));if(!function(t){return!("[object Date]"!==R(t)||x&&"object"==typeof t&&x in t)}(e)&&!function(t){return!("[object RegExp]"!==R(t)||x&&"object"==typeof t&&x in t)}(e)){var J=M(e,S),X=C?C(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",Q=!X&&x&&Object(e)===e&&x in e?R(e).slice(8,-1):K?"Object":"",Y=(X||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(Q||K?"["+[].concat(Q||[],K||[]).join(": ")+"] ":"");return 0===J.length?Y+"{}":v?Y+"{"+D(J,v)+"}":Y+"{ "+J.join(", ")+" }"}return String(e)};var U=Object.prototype.hasOwnProperty||function(t){return t in this};function q(t,e){return U.call(t,e)}function R(t){return y.call(t)}function F(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Z(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Z(t.slice(0,e.maxStringLength),e)+n}return O(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,L),"single",e)}function L(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function N(t){return"Object("+t+")"}function I(t){return t+" { ? }"}function T(t,e,r,n){return t+" ("+e+") {"+(n?D(r,n):r.join(", "))+"}"}function D(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+t.join(","+r)+"\n"+e.prev}function M(t,e){var r=j(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=q(t,o)?e(t[o],t):""}var i,s="function"==typeof v?v(t):[];if(b){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var u in t)q(t,u)&&(r&&String(Number(u))===u&&u<t.length||b&&i["$"+u]instanceof Symbol||(/[^\w$]/.test(u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof v)for(var c=0;c<s.length;c++)S.call(t,s[c])&&n.push("["+e(s[c])+"]: "+e(t[s[c]],t));return n}},8650:function(t){var e,r=window.ProgressEvent,n=!!r;try{e=new r("loaded"),n="loaded"===e.type,e=null}catch(o){n=!1}t.exports=n?r:"function"==typeof document.createEvent?function(t,e){var r=document.createEvent("Event");return r.initEvent(t,!1,!1),e?(r.lengthComputable=Boolean(e.lengthComputable),r.loaded=Number(e.loaded)||0,r.total=Number(e.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}:function(t,e){var r=document.createEventObject();return r.type=t,e?(r.lengthComputable=Boolean(e.lengthComputable),r.loaded=Number(e.loaded)||0,r.total=Number(e.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}},5527:function(t){"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC1738",o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:n,RFC3986:o}},9126:function(t,e,r){"use strict";var n=r(6845),o=r(9166),i=r(5527);t.exports={formats:i,parse:o,stringify:n}},9166:function(t,e,r){"use strict";var n=r(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=a?i.slice(0,a.index):i,p=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;p.push(c)}for(var l=0;r.depth>0&&null!==(a=s.exec(i))&&l<r.depth;){if(l+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(a[1])}return a&&p.push("["+i.slice(a.index)+"]"),function(t,e,r,n){for(var o=n?e:u(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if("[]"===a&&r.parseArrays)s=[].concat(o);else{s=r.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,p=parseInt(c,10);r.parseArrays||""!==c?!isNaN(p)&&a!==c&&String(p)===c&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(s=[])[p]=o:s[c]=o:s={0:o}}o=s}return o}(p,e,r,n)}};t.exports=function(t,e){var r=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,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:s.allowSparse,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||n.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 r.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var r,c={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,f=p.split(e.delimiter,l),h=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?d="utf-8":"utf8=%26%2310003%3B"===f[r]&&(d="iso-8859-1"),h=r,r=f.length);for(r=0;r<f.length;++r)if(r!==h){var y,m,g=f[r],w=g.indexOf("]="),v=-1===w?g.indexOf("="):w+1;-1===v?(y=e.decoder(g,s.decoder,d,"key"),m=e.strictNullHandling?null:""):(y=e.decoder(g.slice(0,v),s.decoder,d,"key"),m=n.maybeMap(u(g.slice(v+1),e),(function(t){return e.decoder(t,s.decoder,d,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=a(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(c,y)?c[y]=n.combine(c[y],m):c[y]=m}return c}(t,r):t,l=r.plainObjects?Object.create(null):{},f=Object.keys(p),h=0;h<f.length;++h){var d=f[h],y=c(d,p[d],r,"string"==typeof t);l=n.merge(l,y,r)}return!0===r.allowSparse?l:n.compact(l)}},6845:function(t,e,r){"use strict";var n=r(4294),o=r(2493),i=r(5527),s=Object.prototype.hasOwnProperty,a={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,p=function(t,e){c.apply(t,u(e)?e:[e])},l=Date.prototype.toISOString,f=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,r,i,s,a,c,l,f,d,y,m,g,w,v,_){var b,S=e;if(_.has(e))throw new RangeError("Cyclic object value");if("function"==typeof l?S=l(r,S):S instanceof Date?S=y(S):"comma"===i&&u(S)&&(S=o.maybeMap(S,(function(t){return t instanceof Date?y(t):t}))),null===S){if(s)return c&&!w?c(r,h.encoder,v,"key",m):r;S=""}if("string"==typeof(b=S)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||o.isBuffer(S))return c?[g(w?r:c(r,h.encoder,v,"key",m))+"="+g(c(S,h.encoder,v,"value",m))]:[g(r)+"="+g(String(S))];var C,P=[];if(void 0===S)return P;if("comma"===i&&u(S))C=[{value:S.length>0?S.join(",")||null:void 0}];else if(u(l))C=l;else{var E=Object.keys(S);C=f?E.sort(f):E}for(var x=0;x<C.length;++x){var O=C[x],A="object"==typeof O&&void 0!==O.value?O.value:S[O];if(!a||null!==A){var j=u(S)?"function"==typeof i?i(r,O):r:r+(d?"."+O:"["+O+"]");_.set(e,!0);var k=n();p(P,t(A,j,i,s,a,c,l,f,d,y,m,g,w,v,k))}}return P};t.exports=function(t,e){var r,o=t,c=function(t){if(!t)return h;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||h.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 r=i.default;if(void 0!==t.format){if(!s.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=i.formatters[r],o=h.filter;return("function"==typeof t.filter||u(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof c.filter?o=(0,c.filter)("",o):u(c.filter)&&(r=c.filter);var l,f=[];if("object"!=typeof o||null===o)return"";l=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var y=a[l];r||(r=Object.keys(o)),c.sort&&r.sort(c.sort);for(var m=n(),g=0;g<r.length;++g){var w=r[g];c.skipNulls&&null===o[w]||p(f,d(o[w],w,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var v=f.join(c.delimiter),_=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),v.length>0?_+v:""}},2493:function(t,e,r){"use strict";var n=r(5527),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],s=o.obj[o.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],p=s[c];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:s,prop:c}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(t,e,r,o,i){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<a.length;++c){var p=a.charCodeAt(c);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===n.RFC1738&&(40===p||41===p)?u+=a.charAt(c):p<128?u+=s[p]:p<2048?u+=s[192|p>>6]+s[128|63&p]:p<55296||p>=57344?u+=s[224|p>>12]+s[128|p>>6&63]+s[128|63&p]:(c+=1,p=65536+((1023&p)<<10|1023&a.charCodeAt(c)),u+=s[240|p>>18]+s[128|p>>12&63]+s[128|p>>6&63]+s[128|63&p])}return u},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(i(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var s=e;return i(e)&&!i(r)&&(s=a(e,n)),i(e)&&i(r)?(r.forEach((function(r,i){if(o.call(e,i)){var s=e[i];s&&"object"==typeof s&&r&&"object"==typeof r?e[i]=t(s,r,n):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var s=r[i];return o.call(e,i)?e[i]=t(e[i],s,n):e[i]=s,e}),s)}}},7375:function(t,e){"use strict";var r=Object.prototype.hasOwnProperty;function n(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return null}}function o(t){try{return encodeURIComponent(t)}catch(e){return null}}e.stringify=function(t,e){e=e||"";var n,i,s=[];for(i in"string"!=typeof e&&(e="?"),t)if(r.call(t,i)){if((n=t[i])||null!=n&&!isNaN(n)||(n=""),i=o(i),n=o(n),null===i||null===n)continue;s.push(i+"="+n)}return s.length?e+s.join("&"):""},e.parse=function(t){for(var e,r=/([^=?#&]+)=?([^&]*)/g,o={};e=r.exec(t);){var i=n(e[1]),s=n(e[2]);null===i||null===s||i in o||(o[i]=s)}return o}},7245:function(t){"use strict";t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},4294:function(t,e,r){"use strict";var n=r(7286),o=r(2680),i=r(9500),s=n("%TypeError%"),a=n("%WeakMap%",!0),u=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),l=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),y=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new s("Side channel does not contain "+i(t))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return c(t,n)}else if(u){if(e)return f(e,n)}else if(r)return function(t,e){var r=y(t,e);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return l(t,n)}else if(u){if(e)return d(e,n)}else if(r)return function(t,e){return!!y(t,e)}(r,n);return!1},set:function(n,o){a&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new a),p(t,n,o)):u?(e||(e=new u),h(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=y(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n}},9239:function(t,e,r){"object"==typeof window&&window.whatsNewAssetsUrl&&(r.p=window.whatsNewAssetsUrl)},8814:function(t,e,r){"use strict";var n=r(9818);const o={whatsNew:!1};(0,n.registerStore)("automattic/whats-new",{reducer:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,e=arguments.length>1?arguments[1]:void 0;return"TOGGLE_FEATURE"===e.type?{whatsNew:!t.whatsNew}:t},actions:{toggleWhatsNew:()=>({type:"TOGGLE_FEATURE"})},selectors:{isWhatsNewActive:t=>t.whatsNew}})},5840:function(t,e,r){"use strict";var n=r(9307),o=(r(9239),r(6115)),i=r(3585),s=r(5609),a=r(5736),u=r(8817),c=r(9196);const __=a.__;function p(){const[t,e]=(0,c.useState)(!1);return(0,n.useEffect)((()=>{t&&(0,o.jN)("calypso_block_editor_whats_new_open")}),[t]),(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.Fill,{name:"ToolsMoreMenuGroup"},(0,n.createElement)(s.MenuItem,{onClick:()=>e(!0)},__("What's new","full-site-editing"))),t&&(0,n.createElement)(i.Z,{onClose:()=>e(!1)}))}(0,u.registerPlugin)("whats-new",{render:()=>(0,n.createElement)(p,null)})},6115:function(t,e,r){"use strict";r.d(e,{jN:function(){return n.jN}});r(1694),r(6209),r(9377);var n=r(9792);r(3722)},9377:function(t,e,r){"use strict";let n=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){n=null}))},9792:function(t,e,r){"use strict";r.d(e,{jN:function(){return f}});var n=r(2699),o=r(4898),i=(r(3421),r(2819)),s=(r(9377),r(6209),r(9358));r(1694);const 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"];let u,c=Promise.resolve();function p(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(c=(0,o.ve)("//stats.wp.com/w.js?63"));const l=new n.EventEmitter;function f(t,e){if(e=e||{},(0,s.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,i.includes)(a,t)){if(u){const t=u(e);e={...e,...t}}e=(0,i.omitBy)(e,(t=>void 0===t)),(0,s.Z)('Recording event "%s" with actual props %o',t,e),p(["recordEvent",t,e]),l.emit("record-event",t,e)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(t,e,r){"use strict";r(9792)},6209:function(t,e,r){"use strict";r(4)},9358:function(t,e,r){"use strict";var n=r(8049),o=r.n(n);e.Z=o()("calypso:analytics")},1694:function(t,e,r){"use strict";r(9358)},4:function(t,e,r){"use strict";r(8032)},849:function(t,e,r){"use strict";r.d(e,{bU:function(){return p}});var n=r(7896),o=r(9307),i=r(4333),s=r(5736),a=r(9196);const u=(0,a.createContext)(null);function c(){var t,e;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return"";const e=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],r=t.toLowerCase();return(e.includes(r)?r.replace("_","-"):r.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(t=s.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language:"")}function p(){const t=(0,a.useContext)(u),e=!!t,[r,n]=(0,a.useState)(c());return(0,a.useEffect)((()=>{if(!e)return n(c()),s.subscribe((()=>{n(c())}))}),[e]),t||r||"en"}(0,i.createHigherOrderComponent)((t=>e=>{const r=p();return(0,o.createElement)(t,(0,n.Z)({locale:r},e))}),"withLocale")},3340:function(t,e,r){"use strict";r.d(e,{hg:function(){return a},lZ:function(){return u},_W:function(){return p},Yt:function(){return l}});var n=r(8049);const o=r.n(n)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function a(t){return s().has(t)}function u(t,e){const r=s();a(t)?(o(`Adding a callback for an existing script from "${t}"`),r.get(t).add(e)):(o(`Adding a callback for a new script from "${t}"`),r.set(t,new Set([e])))}function c(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const r=s(),n=r.get(t);if(n){o(`Executing callbacks for "${t}"`+(null===e?" with success":` with error "${e}"`)),n.forEach((t=>{"function"==typeof t&&t(e)})),r.delete(t)}}function p(){const t=this.getAttribute("src");o(`Handling successful request for "${t}"`),c(t),this.onload=null}function l(){const t=this.getAttribute("src");o(`Handling failed request for "${t}"`),c(t,new Error(`Failed to load script "${t}"`)),this.onerror=null}},5606:function(t,e,r){"use strict";r.d(e,{C:function(){return a},k:function(){return u}});var n=r(8049),o=r.n(n),i=r(3340);const s=o()("lib/load-script/dom-operations");function a(t){s(`Creating script element for "${t}"`);const e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=i._W,e.onerror=i.Yt,e}function u(t){s("Attaching element to head"),document.head.appendChild(t)}},4898:function(t,e,r){"use strict";r.d(e,{ve:function(){return a}});var n=r(8049),o=r.n(n),i=r(3340),s=r(5606);o()("package/load-script");function a(t,e){if(!(0,i.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise(((e,r)=>{(0,i.lZ)(t,(t=>{null===t?e():r(t)}))}));(0,i.lZ)(t,e)}},3585:function(t,e,r){"use strict";var n=r(9307),o=r(849),i=r(5609),s=r(6656),a=r(9196),u=r(1202),c=r(8552),p=r(869);r(6590);e.Z=t=>{let{onClose:e}=t;const[r,l]=(0,a.useState)(null),__=(0,s.useI18n)().__,f=(0,o.bU)();return(0,a.useEffect)((()=>{const t=(0,u.Z)();t.request=c.ZP,t.req.get({path:`/whats-new/list?_locale=${f}`,apiNamespace:"wpcom/v2"}).then((t=>{l(t)}))}),[f]),r?(0,n.createElement)(i.Guide,{className:"whats-new-guide__main",contentLabel:__("What's New at WordPress.com","full-site-editing"),finishButtonText:__("Close","full-site-editing"),onFinish:e},r.map(((t,e)=>(0,n.createElement)(p.Z,{pageNumber:e+1,isLastPage:e===r.length-1,description:t.description,heading:t.heading,imageSrc:t.imageSrc,link:t.link})))):null}},869:function(t,e,r){"use strict";var n=r(9307),o=r(6115),i=r(5609),s=r(6656),a=r(9196);e.Z=function(t){let{description:e,heading:r,imageSrc:u,isLastPage:c,link:p,pageNumber:l}=t;const __=(0,s.useI18n)().__;return(0,a.useEffect)((()=>{(0,o.jN)("wpcom_whats_new_slide_view",{slide_number:l,is_last_slide:c})}),[c,l]),(0,n.createElement)(i.GuidePage,{className:"whats-new-page__container"},(0,n.createElement)("div",{className:"whats-new-page__text"},r&&(0,n.createElement)("h1",{className:"whats-new-page__heading"},r),(0,n.createElement)("div",{className:"whats-new-page__description"},e&&(0,n.createElement)("p",null,e),p&&(0,n.createElement)(i.Button,{className:"whats-new-page__link",href:p,isTertiary:!0,isLink:!0,target:"_blank"},__("Learn more","full-site-editing")))),(0,n.createElement)("div",{className:"whats-new-page__visual"},u&&(0,n.createElement)("img",{src:u,alt:e,"aria-hidden":"true",className:"whats-new-page__image"})))}},8552:function(t,e,r){"use strict";var n=r(8049),o=r.n(n),i=r(8650),s=r.n(i),a=r(8767),u=r(2884),c=r.n(u);const p=o()("wpcom-proxy-request"),l="https://public-api.wordpress.com",f=window.location.protocol+"//"+window.location.host;let h=null;const d=(()=>{let t=!1;try{window.postMessage({toString:function(){t=!0}},"*")}catch(e){}return t})(),y=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(t){return!1}})();let m,g=null,w=!1;const v={},_=!!window.ProgressEvent&&!!window.FormData;p('using "origin": %o',f);const b=(t,e)=>{const r=Object.assign({},t);p("request(%o)",r),g||x();const n=(0,a.Z)();r.callback=n,r.supports_args=!0,r.supports_error_obj=!0,r.supports_progress=_,r.method=String(r.method||"GET").toUpperCase(),p("params object: %o",r);const o=new window.XMLHttpRequest;if(o.params=r,v[n]=o,"function"==typeof e){let t=!1;const r=r=>{if(t)return;t=!0;const n=r.response||o.response;p("body: ",n),p("headers: ",r.headers),e(null,n,r.headers)},n=r=>{if(t)return;t=!0;const n=r.error||r.err||r;p("error: ",n),p("headers: ",r.headers),e(n,null,r.headers)};o.addEventListener("load",r),o.addEventListener("abort",n),o.addEventListener("error",n)}return"function"==typeof r.onStreamRecord&&(h=r.onStreamRecord,delete r.onStreamRecord),w?C(r):(p("buffering API request since proxying <iframe> is not yet loaded"),m.push(r)),o},S=(t,e)=>"function"==typeof e?b(t,e):new Promise(((e,r)=>{b(t,((t,n)=>{t?r(t):e(n)}))}));function C(t){p("sending API request to proxy <iframe> %o",t),t.formData&&function(t){if(!window.chrome||!y)return;for(let e=0;e<t.length;e++){const r=E(t[e][1]);r&&(t[e][1]=new window.File([r],r.name,{type:r.type}))}}(t.formData),g.contentWindow.postMessage(d?JSON.stringify(t):t,l)}function P(t){return t&&"[object File]"===Object.prototype.toString.call(t)}function E(t){return P(t)?t:"object"==typeof t&&P(t.fileContents)?t.fileContents:null}function x(){p("install()"),g&&(p("uninstall()"),window.removeEventListener("message",O),document.body.removeChild(g),w=!1,g=null),m=[],window.addEventListener("message",O),g=document.createElement("iframe"),g.src=l+"/wp-admin/rest-proxy/?v=2.0#"+f,g.style.display="none",document.body.appendChild(g)}function O(t){if(p("onmessage"),t.origin!==l)return void p("ignoring message... %o !== %o",t.origin,l);if(t.source!==g.contentWindow)return void p("ignoring message... iframe elements do not match");let{data:e}=t;if(!e)return p("no `data`, bailing");if("ready"===e)return void function(){if(p('proxy <iframe> "load" event'),w=!0,m){for(let t=0;t<m.length;t++)C(m[t]);m=null}}();if(d&&"string"==typeof e&&(e=JSON.parse(e)),e.upload||e.download)return function(t){p('got "progress" event: %o',t);const e=v[t.callbackId];if(e){const r=new(s())("progress",t);(t.upload?e.upload:e).dispatchEvent(r)}}(e);if(!e.length)return p("`e.data` doesn't appear to be an Array, bailing...");const r=e[e.length-1];if(!(r in v))return p("bailing, no matching request with callback: %o",r);const n=v[r],{params:o}=n,i=e[0];let a=e[1];const u=e[2];var f;if(207===a||delete v[r],o.metaAPI?a="metaAPIupdated"===i?200:500:p("got %o status code for URL: %o",a,o.path),"object"==typeof u&&(u.status=a,f=u["Content-Type"],/^application[/]x-ndjson($|;)/.test(f)&&207===a))h(i);else if(a&&2===Math.floor(a/100))!function(t,e,r){const n=new(s())("load");n.data=n.body=n.response=e,n.headers=r,t.dispatchEvent(n)}(n,i,u);else{!function(t,e,r){const n=new(s())("error");n.error=n.err=e,n.headers=r,t.dispatchEvent(n)}(n,c()(o,a,i),u)}}e.ZP=S},1202:function(t,e,r){"use strict";r.d(e,{Z:function(){return m}});var n=r(8049),o=r.n(n),i=r(9728),s=r(7114),a=r(35),u=r(2836),c=r(6870),p=r(2579),l=r(4308),f=r(3818),h=r(781),d=r(3918);const y=o()("wpcom");function m(t,e){if(!(this instanceof m))return new m(t,e);"function"==typeof t&&(e=t,t=null),t&&(y("Token defined: %s…",t.substring(0,6)),this.token=t);this.request=e||((t,e)=>{y("No request handler. Failing."),e(new Error("No request handler provided"))}),this.req=new h.Z(this),this.pinghub=new f.Z(this),this.apiVersion="1.1"}m.prototype.me=function(){return new u.Z(this)},m.prototype.domains=function(){return new a.Z(this)},m.prototype.domain=function(t){return new s.Z(t,this)},m.prototype.site=function(t){return new p.Z(t,this)},m.prototype.users=function(){return new l.Z(this)},m.prototype.plans=function(){return new c.Z(this)},m.prototype.batch=function(){return new i.Z(this)},m.prototype.freshlyPressed=function(t,e){return this.req.get("/freshly-pressed",t,e)},m.prototype.sendRequest=function(t,e,r,n){const o="WARN! Don use `sendRequest() anymore. Use `this.req` method.";return console&&console.warn?console.warn(o):console.log(o),d.Z.call(this,t,e,r,n)},m.Batch=i.Z,m.Domain=s.Z,m.Domains=a.Z,m.Me=u.Z,m.Pinghub=f.Z,m.Plans=c.Z,m.Request=h.Z,m.Site=p.Z,m.Users=l.Z,Promise.prototype.timeout||(Promise.prototype.timeout=function(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4;const r=new Promise(((r,n)=>{t=setTimeout((()=>{n(new Error("Action timed out while waiting for response."))}),e)})),n=()=>(clearTimeout(t),this);return Promise.race([this.then(n).catch(n),r])})},9728:function(t,e){"use strict";class r{constructor(t){if(!(this instanceof r))return new r(t);this.wpcom=t,this.urls=[]}add(t){return this.urls.push(t),this}run(){let 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)}}e.Z=r},6398:function(t,e){"use strict";class r{constructor(t,e){if(!(this instanceof r))return new r(t,e);this._domain=t,this._subpath="/domains/"+this._domain+"/dns",this.wpcom=e}add(t,e,r){return"function"==typeof e&&(r=e,e={}),this.wpcom.req.post(this._subpath+"/add",e,t,r)}delete(t,e,r){return this.wpcom.req.post(this._subpath+"/delete",e,t,r)}setDefaultARecords(t,e){return this.wpcom.req.post(this._subpath+"/set-default-a-records",t,null,e)}}e.Z=r},4449:function(t,e){"use strict";class r{constructor(t,e,n){if(!(this instanceof r))return new r(t,e,n);t&&(this._email=t),this._domain=e,this._subpath="/domains/"+this._domain+"/email/",this.wpcom=n}forward(t,e,r){const n={destination:t};return this.wpcom.req.post(this._subpath+this._email,e,n,r)}add(t,e,r,n){"function"==typeof r&&(n=r,r={});const o={mailbox:t,destination:e};return this.wpcom.req.post(this._subpath+"new",r,o,n)}delete(t,e,r){return this.wpcom.req.del(this._subpath+t+"/delete",e,r)}}e.Z=r},7114:function(t,e,r){"use strict";var n=r(6398),o=r(4449);const i="/domains/";class s{constructor(t,e){if(!(this instanceof s))return new s(t,e);this._id=t,this.wpcom=e}status(t,e){return this.wpcom.req.get(i+this._id+"/status",t,e)}isAvailable(t,e){return this.wpcom.req.get(i+this._id+"/is-available",t,e)}isMappable(t,e){return this.wpcom.req.get(i+this._id+"/is-mappable",t,e)}canRedirect(t,e,r){const n=i+t+"/"+this._id+"/can-redirect";return this.wpcom.req.get(n,e,r)}emailForwards(t,e){return this.wpcom.req.get(i+this._id+"/email",t,e)}nameserversList(t,e){return this.wpcom.req.get(i+this._id+"/nameservers",t,e)}updateNameservers(t,e,r){const n={nameservers:t};return this.wpcom.req.post(i+this._id+"/nameservers",e,n,r)}dnsList(t,e){return this.wpcom.req.get(i+this._id+"/dns",t,e)}googleAppsList(t,e){return this.wpcom.req.get(i+this._id+"/google-apps",t,e)}resendICANN(t,e){return this.wpcom.req.post(i+this._id+"/resend-icann",t,e)}email(t){return new o.Z(t,this._id,this.wpcom)}dns(){return new n.Z(this._id,this.wpcom)}mappingSetupInfo(t,e,r){return this.wpcom.req.get(i+this._id+"/mapping-setup-info/"+t,e,r)}mappingStatus(t,e){return this.wpcom.req.get(i+this._id+"/mapping-status",t,e)}updateConnectionModeAndGetMappingStatus(t,e,r){const n={mode:t};return this.wpcom.req.post(i+this._id+"/mapping-status",e,n,r)}}e.Z=s},35:function(t,e){"use strict";const r="/domains/";class n{constructor(t){if(!(this instanceof n))return new n(t);this.wpcom=t}suggestions(t,e){return"string"==typeof t&&(t={query:t}),this.wpcom.req.get(r+"suggestions",t,e)}suggestionsExamples(t,e){return this.wpcom.req.get(r+"suggestions/examples",t,e)}supportedCountries(t,e){return this.wpcom.req.get(r+"supported-countries",t,e)}supportedStates(t,e,n){const o=r+"supported-states/"+t;return this.wpcom.req.get(o,e,n)}}e.Z=n},2921:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});const n="/me/connected-applications/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get(n+this._id,t,e)}delete(t,e){return this.wpcom.req.del(n+this._id+"/delete",t,e)}}},2836:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(2921),o=r(2769),i=r(2695),s=r(7699),a=r(9814);function u(t){if(!(this instanceof u))return new u(t);this.wpcom=t}u.prototype.get=function(t,e){return this.wpcom.req.get("/me",t,e)},u.prototype.billingHistory=function(t,e){return this.wpcom.req.get("/me/billing-history",t,e)},u.prototype.postsList=function(t,e){return this.wpcom.req.get("/me/posts",t,e)},u.prototype.sites=function(t,e){return this.wpcom.req.get("/me/sites",t,e)},u.prototype.likes=function(t,e){return this.wpcom.req.get("/me/likes",t,e)},u.prototype.connectedApps=function(t,e){return this.wpcom.req.get("/me/connected-applications",t,e)},u.prototype.keyringConnections=function(t,e){return this.wpcom.req.get("/me/connections",t,e)},u.prototype.publicizeConnections=function(t,e){return this.wpcom.req.get("/me/publicize-connections",t,e)},u.prototype.settings=function(){return new s.Z(this.wpcom)},u.prototype.connectedApp=function(t){return new n.Z(t,this.wpcom)},u.prototype.publicizeConnection=function(t){return new i.Z(t,this.wpcom)},u.prototype.twoStep=function(){return new a.Z(this.wpcom)},u.prototype.keyringConnection=function(t){return new o.Z(t,this.wpcom)}},2769:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});const n="/me/connections/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get({path:n+this._id,apiNamespace:"wpcom/v2"},t,e)}delete(t,e){return this.wpcom.req.get({path:n+this._id,apiNamespace:"wpcom/v2",method:"DELETE"},t,e)}}},2695:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});const n="/me/publicize-connections/";class o{constructor(t,e){if(!(this instanceof o))return new o(t,e);this._id=t,this.wpcom=e}get(t,e){return this.wpcom.req.get(n+this._id,t,e)}add(t,e,r){return this.wpcom.req.post(n+"new",t,e,r)}update(t,e,r){return this.wpcom.req.put(n+this._id,t,e,r)}delete(t,e){return this.wpcom.req.del(n+this._id+"/delete",t,e)}}},7699:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(142),o=r(9283);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("/me/settings",t,e)},i.prototype.update=function(t,e,r){return this.wpcom.req.put("/me/settings/",t,e,r)},i.prototype.profileLinks=function(){return new o.Z(this.wpcom)},i.prototype.password=function(){return new n.Z(this.wpcom)}},142:function(t,e,r){"use strict";r.d(e,{Z:function(){return n}});class n{constructor(t){if(!(this instanceof n))return new n(t);this.wpcom=t}validate(t,e,r){return this.wpcom.req.post("/me/settings/password/validate",e,{password:t},r)}}},9283:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});const n="/me/settings/profile-links";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(n,t,e)},o.prototype.mine=o.prototype.get,o.prototype.add=function(t,e,r){"function"==typeof e&&(r=e,e={}),t instanceof Array||(t=[t]),e.apiVersion="1.2";return this.wpcom.req.post("/me/settings/profile-links/new",e,{links:t},r)},o.prototype.del=function(t,e,r){const o=n+"/"+t+"/delete";return this.wpcom.req.del(o,e,r)},o.prototype.delete=o.prototype.del},9814:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(4086);class o{constructor(t){if(!(this instanceof o))return new o(t);this.wpcom=t}get(t,e){return this.wpcom.req.get("/me/two-step/",t,e)}sms(){return new n.Z(this.wpcom)}}},4086:function(t,e,r){"use strict";r.d(e,{Z:function(){return n}});class n{constructor(t){if(!(this instanceof n))return new n(t);this.wpcom=t}send(t,e){return this.wpcom.req.post("/me/two-step/sms/new",t,e)}}},6870:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});const n="/plans";class o{constructor(t){if(!(this instanceof o))return new o(t);this.wpcom=t}list(t,e){return this.wpcom.req.get(n,t,e)}features(t,e){return this.wpcom.req.get("/plans/features",t,e)}}},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,r){"use strict";function n(t,e,r){if(!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof n))return new n(t,e,r);this.wpcom=r,this._sid=e,this._slug=t}r.d(e,{Z:function(){return n}}),n.prototype.slug=function(t){this._slug=t},n.prototype.get=function(t,e){const r="/sites/"+this._sid+"/categories/slug:"+this._slug;return this.wpcom.req.get(r,t,e)},n.prototype.add=function(t,e,r){const n="/sites/"+this._sid+"/categories/new";return this.wpcom.req.post(n,t,e,r)},n.prototype.update=function(t,e,r){const n="/sites/"+this._sid+"/categories/slug:"+this._slug;return this.wpcom.req.put(n,t,e,r)},n.prototype.delete=n.prototype.del=function(t,e){const r="/sites/"+this._sid+"/categories/slug:"+this._slug+"/delete";return this.wpcom.req.del(r,t,e)}},1832:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(7369);function o(t,e,r,n){if(!r)throw new Error("`site id` is not correctly defined");if(!(this instanceof o))return new o(t,e,r,n);this.wpcom=n,this._cid=t,this._pid=e,this._sid=r}o.prototype.get=function(t,e){const r="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.get(r,t,e)},o.prototype.replies=function(t,e){const r="/sites/"+this._sid+"/posts/"+this._pid+"/replies/";return this.wpcom.req.get(r,t,e)},o.prototype.add=function(t,e,r){void 0===r&&(void 0===e?(e=t,t={}):"function"==typeof e&&(r=e,e=t,t={})),e="string"==typeof e?{content:e}:e;const n="/sites/"+this._sid+"/posts/"+this._pid+"/replies/new";return this.wpcom.req.post(n,t,e,r)},o.prototype.update=function(t,e,r){"function"==typeof e&&(r=e,e=t,t={}),e="string"==typeof e?{content:e}:e;const n="/sites/"+this._sid+"/comments/"+this._cid;return this.wpcom.req.put(n,t,e,r)},o.prototype.reply=function(t,e,r){"function"==typeof e&&(r=e,e=t,t={}),e="string"==typeof e?{content:e}:e;const n="/sites/"+this._sid+"/comments/"+this._cid+"/replies/new";return this.wpcom.req.post(n,t,e,r)},o.prototype.del=o.prototype.delete=function(t,e){const r="/sites/"+this._sid+"/comments/"+this._cid+"/delete";return this.wpcom.req.del(r,t,e)},o.prototype.like=function(){return(0,n.Z)(this._cid,this._sid,this.wpcom)},o.prototype.likesList=function(t,e){const r="/sites/"+this._sid+"/comments/"+this._cid+"/likes";return this.wpcom.req.get(r,t,e)}},7369:function(t,e,r){"use strict";function n(t,e,r){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 n))return new n(t,e,r);this.wpcom=r,this._cid=t,this._sid=e}r.d(e,{Z:function(){return n}}),n.prototype.mine=n.prototype.state=function(t,e){const r="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine";return this.wpcom.req.get(r,t,e)},n.prototype.add=function(t,e){const r="/sites/"+this._sid+"/comments/"+this._cid+"/likes/new";return this.wpcom.req.post(r,t,e)},n.prototype.del=n.prototype.delete=function(t,e){const r="/sites/"+this._sid+"/comments/"+this._cid+"/likes/mine/delete";return this.wpcom.req.del(r,t,e)}},2096:function(t,e){"use strict";class r{constructor(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,this.path=`/sites/${this._sid}/vouchers`}list(){let 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)}get(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return e.apiNamespace="wpcom/v2",this.wpcom.req.get(`${this.path}/${t}`,e,r)}assign(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return e.apiNamespace="wpcom/v2",this.wpcom.req.post(`${this.path}/${t}/assign`,e,{},r)}}e.Z=r},7569:function(t,e){"use strict";class r{constructor(t,e){if(!(this instanceof r))return new r(t,e);this._sid=t,this.path=`/sites/${this._sid}/domains`,this.wpcom=e}getPrimary(t,e){return this.wpcom.req.get(`${this.path}/primary`,t,e)}setPrimary(t,e){return this.wpcom.req.put(`${this.path}/primary`,{},{domain:t},e)}getRedirect(t,e){return this.wpcom.req.get(`${this.path}/redirect`,t,e)}setRedirect(t,e){return"string"==typeof t&&(t={location:t}),this.wpcom.req.put(`${this.path}/redirect`,{},t,e)}}e.Z=r},8447:function(t,e,r){"use strict";function n(t,e){if(!t)throw new Error("`site id` is not correctly defined");if(!(this instanceof n))return new n(t,e);this.wpcom=e,this._sid=t}r.d(e,{Z:function(){return n}}),n.prototype.mine=n.prototype.state=function(t,e){const r="/sites/"+this._sid+"/follows/mine";return this.wpcom.req.get(r,t,e)},n.prototype.follow=n.prototype.add=function(t,e){const r="/sites/"+this._sid+"/follows/new";return this.wpcom.req.put(r,t,null,e)},n.prototype.unfollow=n.prototype.del=function(t,e){const r="/sites/"+this._sid+"/follows/mine/delete";return this.wpcom.req.del(r,t,null,e)}},2579:function(t,e,r){"use strict";var n=r(8049),o=r.n(n),i=r(209),s=r(3388),a=r(1832),u=r(2096),c=r(7569),p=r(8447),l=r(8837),f=r(361),h=r(3164),d=r(7187),y=r(150),m=r(5489),g=r(1986),w=r(1753),v=r(4866),_=r(9426);const b=o()("wpcom:site");class S{constructor(t,e){if(!(this instanceof S))return new S(t,e);this.wpcom=e,b("set %o site id",t),this._id=encodeURIComponent(t),this.path=`/sites/${this._id}`}get(t,e){return this.wpcom.req.get(this.path,t,e)}post(t){return new h.Z(t,this._id,this.wpcom)}addPost(t,e){return new h.Z(null,this._id,this.wpcom).add(t,e)}deletePost(t,e){return new h.Z(t,this._id,this.wpcom).delete(e)}media(t){return new l.Z(t,this._id,this.wpcom)}addMediaFiles(t,e,r){return new l.Z(null,this._id,this.wpcom).addFiles(t,e,r)}addMediaUrls(t,e,r){return new l.Z(null,this._id,this.wpcom).addUrls(t,e,r)}deleteMedia(t,e){return new l.Z(t,this._id,this.wpcom).del(e)}comment(t){return new a.Z(t,null,this._id,this.wpcom)}follow(){return new p.Z(this._id,this.wpcom)}plugin(t){return new f.Z(t,this._id,this.wpcom)}wpcomPlugin(t){return new v.Z(t,this._id,this.wpcom)}category(t){return new s.Z(t,this._id,this.wpcom)}tag(t){return new m.Z(t,this._id,this.wpcom)}taxonomy(t){return new g.Z(t,this._id,this.wpcom)}creditVouchers(){return new u.Z(this._id,this.wpcom)}postType(t){return new d.Z(t,this._id,this.wpcom)}settings(){return new y.Z(this._id,this.wpcom)}domain(){return new c.Z(this._id,this.wpcom)}postCounts(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"post",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return"function"==typeof e&&(r=e,e={}),this.wpcom.req.get(`${this.path}/post-counts/${t}`,e,r)}renderShortcode(t,e,r){if("string"!=typeof t)throw new TypeError("expected a url String");return"function"==typeof e&&(r=e,e={}),(e=e||{}).shortcode=t,this.wpcom.req.get(`${this.path}/shortcodes/render`,e,r)}renderEmbed(t,e,r){if("string"!=typeof t)throw new TypeError("expected an embed String");return"function"==typeof e&&(r=e,e={}),(e=e||{}).embed_url=t,this.wpcom.req.get(`${this.path}/embeds/render`,e,r)}statsReferrersSpamNew(t,e){const r=`${this.path}/stats/referrers/spam/new`;return this.wpcom.req.post(r,{domain:t},null,e)}statsReferrersSpamDelete(t,e){const r=`${this.path}/stats/referrers/spam/delete`;return this.wpcom.req.post(r,{domain:t},null,e)}statsVideo(t,e,r){const n=`${this.path}/stats/video/${t}`;return"function"==typeof e&&(r=e,e={}),this.wpcom.req.get(n,e,r)}statsPostViews(t,e,r){const n=`${this.path}/stats/post/${t}`;return"function"==typeof e&&(r=e,e={}),this.wpcom.req.get(n,e,r)}wordAds(){return new w.Z(this._id,this.wpcom)}}(0,_.Z)(S,i.Z,((t,e)=>`/sites/${e._id}/${t.subpath}`)),e.Z=S},8837:function(t,e,r){"use strict";r.d(e,{Z:function(){return c}});var n=r(8049),o=r.n(n),i=r(8183),s=r(6426);const a=o()("wpcom:media");function u(t){const e=[];let r,n,o,i;for(t=Array.isArray(t)?t:[t],r=0;r<t.length;r++){n=t[r],"string"==typeof n&&(n=(0,s.U)(n));const u=!!n._readableState,c="undefined"!=typeof File&&n instanceof File;if(a("isStream: %s",u),a("isFile: %s",c),!c&&!u){for(o in n)a("add %o => %o",o,n[o]),"file"!==o&&(i="attrs["+r+"]["+o+"]",e.push([i,n[o]]));n=n.file,"string"==typeof n&&(n=(0,s.U)(n))}e.push(["media[]",n])}return e}function c(t,e,r){if(!(this instanceof c))return new c(t,e,r);this.wpcom=r,this._sid=e,this._id=t,this._id||a("WARN: media `id` is not defined")}c.prototype.get=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;t.apiVersion=t.apiVersion||"1.2";const r="/sites/"+this._sid+"/media/"+this._id;return this.wpcom.req.get(r,t,e)},c.prototype.update=function(t,e,r){const n={path:"/sites/"+this._sid+"/media/"+this._id};return this.wpcom.req.put(n,t,e,r)},c.prototype.edit=function(t,e,r){"function"!=typeof e&&e||(r=e,e=t,t={});const n={path:"/sites/"+this._sid+"/media/"+this._id+"/edit"};if(e&&e.media){n.formData=[["media",e.media]],delete e.media;for(const t in e)n.formData.push([`attrs[${t}]`,e[t]]);e=null}return this.wpcom.req.put(n,t,e,r)},c.prototype.addFiles=function(t,e,r){void 0===r&&(void 0===e?(e=t,t={}):"function"==typeof e&&(r=e,e=t,t={}));const n=[];if(e=(e=Array.isArray(e)?e:[e]).filter((t=>!t.type||!t.type.startsWith("video/")||(n.push(t),!1))),n.length){return new i.Z(this.wpcom,this._sid).startUpload(n)}const o={path:"/sites/"+this._sid+"/media/new",formData:u(e)};return this.wpcom.req.post(o,t,null,r)},c.prototype.addUrls=function(t,e,r){void 0===r&&(void 0===e?(e=t,t={}):"function"==typeof e&&(r=e,e=t,t={}));const n="/sites/"+this._sid+"/media/new",o={media_urls:[]};let i,s,a,u;for(e=Array.isArray(e)?e:[e],i=0;i<e.length;i++){if(s=e[i],"string"==typeof s)a=s;else{for(u in o.attrs||(o.attrs=[]),o.attrs[i]={},s)"url"!==u&&(o.attrs[i][u]=s[u]);a=s.url}o.media_urls.push(a)}return this.wpcom.req.post(n,t,o,r)},c.prototype.delete=c.prototype.del=function(t,e){const r="/sites/"+this._sid+"/media/"+this._id+"/delete";return this.wpcom.req.del(r,t,e)}},361:function(t,e){"use strict";class r{constructor(t,e,n){if(!(this instanceof r))return new r(t,e,n);if(!t)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(t),this._sid=e,this.wpcom=n;const o=`/sites/${this._sid}/plugins`;this.pluginPath=`${o}/${this._slug}`}get(t,e){return this.wpcom.req.get(this.pluginPath,t,e)}update(t,e,r){return this.wpcom.req.put(this.pluginPath,t,e,r)}updateVersion(t,e){return this.wpcom.req.put(`${this.pluginPath}/update`,t,e)}install(t,e){const r={slug:this._slug};return this.wpcom.req.post(`/sites/${this._sid}/plugins/install`,t,r,e)}delete(t,e){return this.wpcom.req.put(`${this.pluginPath}/delete`,t,e)}activate(t,e){return this.update(t,{active:!0},e)}deactivate(t,e){return this.update(t,{active:!1},e)}enableAutoupdate(t,e){return this.update(t,{autoupdate:!0},e)}disableAutoupdate(t,e){return this.update(t,{autoupdate:!1},e)}}e.Z=r},7187:function(t,e,r){"use strict";r.d(e,{Z:function(){return n}});class n{constructor(t,e,r){if(!e)throw new TypeError("`siteId` is not correctly defined");if(!t)throw new TypeError("`postType` is not correctly defined");if(!(this instanceof n))return new n(t,e,r);this.wpcom=r,this._siteId=encodeURIComponent(e),this._postType=encodeURIComponent(t),this._rootPath=`/sites/${this._siteId}/post-types/${this._postType}`}taxonomiesList(t,e){const r=`${this._rootPath}/taxonomies`;return this.wpcom.req.get(r,t,e)}}},3164:function(t,e,r){"use strict";var n=r(8049),o=r.n(n),i=r(8729),s=r(1832),a=r(9932),u=r(3185),c=r(2250),p=r(9426);const l=o()("wpcom:post");class f{constructor(t,e,r){if(!(this instanceof f))return new f(t,e,r);this.wpcom=r,this._sid=e,this.path=`/sites/${this._sid}/posts`,"object"!=typeof(t=t||{})?this._id=t:(this._id=t.id,this._slug=t.slug)}id(t){this._id=t}slug(t){this._slug=t}getPostPath(){return`${this.path}/${this._id}`}get(t,e){return!this._id&&this._slug?this.getBySlug(t,e):this.wpcom.req.get(this.getPostPath(),t,e)}getBySlug(t,e){return this.wpcom.req.get(`${this.path}/slug:${this._slug}`,t,e)}add(t,e,r){return void 0===r&&(void 0===e?(e=t,t={}):"function"==typeof e&&(r=e,e=t,t={})),this.wpcom.req.post(`${this.path}/new`,t,e).then((t=>{if(this._id=t.ID,l("Set post _id: %s",this._id),this._slug=t.slug,l("Set post _slug: %s",this._slug),"function"!=typeof r)return Promise.resolve(t);r(null,t)})).catch((t=>{if("function"!=typeof r)return Promise.reject(t);r(t)}))}update(t,e,r){return this.wpcom.req.put(this.getPostPath(),t,e,r)}delete(t,e){const r=`${this.getPostPath()}/delete`;return this.wpcom.req.del(r,t,e)}del(t,e){return this.delete(t,e)}restore(t,e){return this.wpcom.req.put(`${this.getPostPath()}/restore`,t,null,e)}related(t,e){return this.wpcom.req.put(`${this.getPostPath()}/related`,t,null,e)}comment(t){return new s.Z(t,this._id,this._sid,this.wpcom)}comments(t,e){return new s.Z(null,this._id,this._sid,this.wpcom).replies(t,e)}like(){return new a.Z(this._id,this._sid,this.wpcom)}reblog(){return new u.Z(this._id,this._sid,this.wpcom)}subscriber(){return new c.Z(this._id,this._sid,this.wpcom)}}(0,p.Z)(f,i.Z,((t,e)=>`/sites/${e._sid}/posts/${e._id}/${t.subpath}`)),e.Z=f},9932:function(t,e,r){"use strict";function n(t,e,r){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 n))return new n(t,e,r);this.wpcom=r,this._pid=t,this._sid=e}r.d(e,{Z:function(){return n}}),n.prototype.mine=n.prototype.state=function(t,e){const r="/sites/"+this._sid+"/posts/"+this._pid+"/likes/mine";return this.wpcom.req.get(r,t,e)},n.prototype.add=function(t,e){const r="/sites/"+this._sid+"/posts/"+this._pid+"/likes/new";return this.wpcom.req.put(r,t,null,e)},n.prototype.del=n.prototype.delete=function(t,e){const r="/sites/"+this._sid+"/posts/"+this._pid+"/likes/mine/delete";return this.wpcom.req.del(r,t,e)}},3185:function(t,e,r){"use strict";function n(t,e,r){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 n))return new n(t,e,r);this.wpcom=r,this._pid=t,this._sid=e}r.d(e,{Z:function(){return n}}),n.prototype.mine=n.prototype.state=function(t,e){const r="/sites/"+this._sid+"/posts/"+this._pid+"/reblogs/mine";return this.wpcom.req.get(r,t,e)},n.prototype.add=function(t,e,r){if("function"==typeof e&&(r=e,e=t,t={}),e&&!e.destination_site_id)return r(new Error("destination_site_id is not defined"));const n="/sites/"+this._sid+"/posts/"+this._pid+"/reblogs/new";return this.wpcom.req.put(n,t,e,r)},n.prototype.to=function(t,e,r){return void 0===r&&(void 0===e?e=null:"function"==typeof e&&(r=e,e=null)),this.add({note:e,destination_site_id:t},r)}},2250:function(t,e){"use strict";class r{constructor(t,e,n){if(!e)throw new Error("`side 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._id=t,this._sid=e,this.path=`/sites/${this._sid}/posts/${this._id}/subscribers`}mine(t,e){return this.wpcom.req.get(`${this.path}/mine`,t,e)}add(t,e){return this.wpcom.req.put(`${this.path}/new`,t,null,e)}del(t,e){return this.wpcom.req.del(`${this.path}/mine/delete`,t,e)}}r.prototype.state=r.prototype.mine,r.prototype.delete=r.prototype.del,e.Z=r},150:function(t,e){"use strict";class r{constructor(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,this.path=`/sites/${this._sid}/settings`}get(t,e){return this.wpcom.req.get(this.path,t,e)}getOption(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const r={fields:"settings"};return new Promise(((n,o)=>{this.wpcom.req.get(this.path,r,((r,i)=>{if(r)return e(r),o(r);if(!i)return e(),n();const s=i.settings;return s&&void 0!==s[t]?(e(null,s[t]),n(s[t])):(e(null,i),n(i))}))}))}update(t,e,r){return this.wpcom.req.put(this.path,t,e,r)}setOption(t,e,r){return this.wpcom.req.put(this.path,{},{[t]:e},r)}}e.Z=r},5489:function(t,e,r){"use strict";function n(t,e,r){if(!e)throw new Error("`site id` is not correctly defined");if(!(this instanceof n))return new n(t,e,r);this.wpcom=r,this._sid=e,this._slug=t}r.d(e,{Z:function(){return n}}),n.prototype.slug=function(t){this._slug=t},n.prototype.get=function(t,e){const r="/sites/"+this._sid+"/tags/slug:"+this._slug;return this.wpcom.req.get(r,t,e)},n.prototype.add=function(t,e,r){const n="/sites/"+this._sid+"/tags/new";return this.wpcom.req.post(n,t,e,r)},n.prototype.update=function(t,e,r){const n="/sites/"+this._sid+"/tags/slug:"+this._slug;return this.wpcom.req.put(n,t,e,r)},n.prototype.delete=n.prototype.del=function(t,e){const r="/sites/"+this._sid+"/tags/slug:"+this._slug+"/delete";return this.wpcom.req.del(r,t,e)}},1986:function(t,e,r){"use strict";var n=r(4046);class o{constructor(t,e,r){if(!e)throw new TypeError("`siteId` is not correctly defined");if(!t)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof o))return new o(t,e,r);this.wpcom=r,this._siteId=encodeURIComponent(e),this._taxonomy=encodeURIComponent(t),this._rootPath=`/sites/${this._siteId}/taxonomies/${this._taxonomy}`}termsList(t,e){const r=`${this._rootPath}/terms`;return this.wpcom.req.get(r,t,e)}term(t){return new n.Z(t,this._taxonomy,this._siteId,this.wpcom)}}e.Z=o},4046:function(t,e){"use strict";class r{constructor(t,e,n,o){if(!n)throw new TypeError("`siteId` is not correctly defined");if(!e)throw new TypeError("`taxonomy` is not correctly defined");if(!(this instanceof r))return new r(t,e,n,o);this.wpcom=o,this._siteId=encodeURIComponent(n),this._taxonomy=encodeURIComponent(e),this._term=encodeURIComponent(t),this._taxonomyPath=`/sites/${this._siteId}/taxonomies/${this._taxonomy}/terms`}get(t,e){if(!this._term)throw new Error("`term` is not correctly defined");"function"==typeof t&&(e=t,t={});const r=`${this._taxonomyPath}/slug:${this._term}`;return this.wpcom.req.get(r,t,e)}add(t,e){if(!t||!t.name)throw new Error("`params.name` is not correctly defined");const r=`${this._taxonomyPath}/new`;return this.wpcom.req.post(r,t,e)}delete(t){if(!this._term)throw new Error("`term` is not correctly defined");const e=`${this._taxonomyPath}/slug:${this._term}/delete`;return this.wpcom.req.del(e,t)}update(t,e){if(!this._term)throw new Error("`term` is not correctly defined");const r=`${this._taxonomyPath}/slug:${this._term}`;return this.wpcom.req.put(r,t,e)}}e.Z=r},3243:function(t,e,r){"use strict";function n(t,e){if(!(this instanceof n))return new n(t,e);this._sid=t,this.wpcom=e}r.d(e,{Z:function(){return n}}),n.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/earnings",t,e)}},1753:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var n=r(3243),o=r(4549),i=r(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 o.Z(this._sid,this.wpcom)},s.prototype.earnings=function(){return new n.Z(this._sid,this.wpcom)},s.prototype.tos=function(){return new i.Z(this._sid,this.wpcom)}},4549:function(t,e,r){"use strict";function n(t,e){if(!(this instanceof n))return new n(t,e);this._sid=t,this.wpcom=e}r.d(e,{Z:function(){return n}}),n.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/settings",t,e)},n.prototype.update=function(t,e,r){const n="/sites/"+this._sid+"/wordads/settings";return this.wpcom.req.post(n,t,e,r)}},1731:function(t,e,r){"use strict";function n(t,e){if(!(this instanceof n))return new n(t,e);this._sid=t,this.wpcom=e}r.d(e,{Z:function(){return n}}),n.prototype.get=function(t,e){return this.wpcom.req.get("/sites/"+this._sid+"/wordads/tos",t,e)},n.prototype.update=function(t,e,r){const n="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(n,t,e,r)},n.prototype.sign=function(t,e){const r="/sites/"+this._sid+"/wordads/tos";return this.wpcom.req.post(r,t,{tos:"signed"},e)}},4866:function(t,e){"use strict";class r{constructor(t,e,n){if(!(this instanceof r))return new r(t,e,n);if(!t)throw new Error("`slug` is not correctly defined");this._slug=encodeURIComponent(t),this._sid=e,this.wpcom=n;const o=`/sites/${this._sid}/wpcom-plugins`;this.pluginPath=`${o}/${this._slug}`}update(t,e,r){return this.wpcom.req.put(this.pluginPath,t,e,r)}activate(t,e){return this.update(t,{active:!0},e)}deactivate(t,e){return this.update(t,{active:!1},e)}}e.Z=r},8183:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var n=r(6666),o=r(801),i=r(8837);class s{constructor(t,e){(0,n.Z)(this,"createGetJwtRequest",(t=>{const e={path:"/sites/"+this._sid+"/media/videopress-upload-jwt",apiNamespace:"wpcom/v2"};return t&&(e.key=t),this.wpcom.req.post(e,{},null,null)})),(0,n.Z)(this,"startUpload",(t=>{const e=t[0];return new Promise(((t,r)=>{const n=this.resumableUploader({onError:t=>r(t),onSuccess:e=>{new i.Z(e.mediaId,this._sid,this.wpcom).get().then((e=>t({media:[e]}))).catch((t=>r(t)))},onProgress:()=>{}});return this.createGetJwtRequest().then((t=>n(e,t)))}))})),(0,n.Z)(this,"resumableUploader",(t=>{let{onError:e,onProgress:r,onSuccess:n}=t;const i={};return(t,s)=>{const a=new o.gq(t,{onError:e,onProgress:r,endpoint:"https://public-api.wordpress.com/rest/v1.1/video-uploads/"+this._sid+"/",removeFingerprintOnSuccess:!0,withCredentials:!1,autoRetry:!0,overridePatchMethod:!1,chunkSize:5e5,allowedFileTypes:["video/*"],metadata:{filename:t.name,filetype:t.type},retryDelays:[0,1e3,3e3,5e3,1e4],onAfterResponse:(t,e)=>{if(e.getStatus()>=400)return;const r=e.getHeader("x-videopress-upload-guid"),o=e.getHeader("x-videopress-upload-media-id"),s=e.getHeader("x-videopress-upload-src-url");if(r&&o&&s)return void(n&&n({mediaId:Number(o),guid:r,src:s}));const a={"x-videopress-upload-key-token":"token","x-videopress-upload-key":"key"},u={};Object.keys(a).forEach((function(t){const r=e.getHeader(t);r&&(u[a[t]]=r)})),u.key&&u.token&&(i[u.key]=u.token)},onBeforeRequest:t=>{const e=t._method;if(["HEAD","OPTIONS"].indexOf(e)>=0&&(t._method="GET",t.setHeader("X-HTTP-Method-Override",e)),["DELETE","PUT","PATCH"].indexOf(e)>=0&&(t._method="POST",t.setHeader("X-HTTP-Method-Override",e)),t._xhr.open(t._method,t._url,!0),Object.keys(t._headers).map((function(e){t.setHeader(e,t._headers[e])})),"POST"===e){if(!!!s.upload_token)throw"should never happen";t.setHeader("x-videopress-upload-token",s.upload_token)}if(["OPTIONS","GET","HEAD","DELETE","PUT","PATCH"].indexOf(e)>=0){const r=new URL(t._url).pathname.split("/"),n=r[r.length-1];if(i[n])t.setHeader("x-videopress-upload-token",i[n]);else if("HEAD"===e)return this.createGetJwtRequest(n).then((e=>(i[n]=e.token,t.setHeader("x-videopress-upload-token",e.token),t)))}return Promise.resolve(t)}});return a.findPreviousUploads().then((function(t){t.length&&a.resumeFromPreviousUpload(t[0]),a.start()})),a}})),this.wpcom=t,this._sid=e}}},4308:function(t,e,r){"use strict";function n(t){if(!(this instanceof n))return new n(t);this.wpcom=t}r.d(e,{Z:function(){return n}}),n.prototype.suggest=function(t,e){return this.wpcom.req.get("/users/suggest",t,e)}},6426:function(t,e,r){"use strict";function n(){throw new Error("Cannot call fs functions within the browser")}r.d(e,{U:function(){return n}})},3818:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(8049);const o=r.n(n)()("wpcom:pinghub");function i(t){if(!(this instanceof i))return new i(t);this.wpcom=t,this.conns={}}i.prototype.connect=function(t,e){o("connect",t,e);const r=this,n={action:"connect",path:"/pinghub"+t},i=this.conns[t]=this.wpcom.req.get(n,(function(){}));i.onload=function(r){o("onload",t,r),e(null,r)},i.onerror=i.onabort=i.onclose=function(n){o("onerror",t,n),r.remove(t),e(n,null)}},i.prototype.disconnect=function(t){o("disconnect",t);const e={action:"disconnect",path:"/pinghub"+t};this.wpcom.req.get(e,(function(){}))},i.prototype.remove=function(t){o("remove",t),delete this.conns[t]}},781:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(3918);function o(t){this.wpcom=t}o.prototype.get=function(t,e,r){return"function"==typeof e&&(r=e,e={}),n.Z.call(this.wpcom,t,e,null,r)},o.prototype.post=o.prototype.put=function(t,e,r,o){return void 0===o&&(void 0===r?(r=e,e={}):"function"==typeof r&&(o=r,r=e,e={})),(t="string"==typeof t?{path:t}:t).method=t.method||"post",n.Z.call(this.wpcom,t,e,r,o)},o.prototype.del=function(t,e,r){return"function"==typeof e&&(r=e,e={}),this.post(t,e,null,r)}},9426:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var n=r(8049);const o=r.n(n)()("wpcom:runtime"),i=(t,e)=>function(r,n){const o=e(t,this);return this.wpcom.req.get(o,r,n)};function s(t,e,r){e.forEach((e=>{o("Adding %o",(e="object"==typeof e?e:{name:e}).name),t.prototype[e.name]=i(e,r)}))}},3918:function(t,e,r){"use strict";r.d(e,{Z:function(){return c}});var n=r(8049),o=r.n(n),i=r(9126),s=r.n(i);const a=o()("wpcom:send-request"),u=o()("wpcom:send-request:res");function c(t,e,r,n){return a("sendRequest(%o )",(t="string"==typeof t?{path:t}:t).path),t.method=(t.method||"get").toUpperCase(),"function"==typeof e&&(n=e,e={}),"function"==typeof r&&(n=r,r=null),(e=e||{}).apiVersion?(t.apiVersion=e.apiVersion,a("apiVersion: %o",t.apiVersion),delete e.apiVersion):t.apiVersion=this.apiVersion,e.apiNamespace&&(t.apiNamespace=e.apiNamespace,a("apiNamespace: %o",t.apiNamespace),delete e.apiNamespace),e.proxyOrigin&&(t.proxyOrigin=e.proxyOrigin,a("proxyOrigin: %o",t.proxyOrigin),delete e.proxyOrigin),e=s().stringify(e,{arrayFormat:"brackets"}),t.query=e,r&&(t.body=r),a("params: %o",t),"function"==typeof n?this.request(t,(function(t,e,r){u(e),n(t,e,r)})):new Promise(((e,r)=>{this.request(t,((t,n)=>{u(n),t?r(t):e(n)}))}))}},8049:function(t,e,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;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(n++,"%c"===t&&(o=n))})),e.splice(o,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(r){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(r){}!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=(()=>{let t=!1;return()=>{t||(t=!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||(()=>{}),t.exports=r(2632)(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2632:function(t,e,r){t.exports=function(t){function e(t){let r,o,i,s=null;function a(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];if(!a.enabled)return;const i=a,s=Number(new Date),u=s-(r||s);i.diff=u,i.prev=r,i.curr=s,r=s,n[0]=e.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");let c=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,((t,r)=>{if("%%"===t)return"%";c++;const o=e.formatters[r];if("function"==typeof o){const e=n[c];t=o.call(i,e),n.splice(c,1),c--}return t})),e.formatArgs.call(i,n);const p=i.log||e.log;p.apply(i,n)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=n,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==e.namespaces&&(o=e.namespaces,i=e.enabled(t)),i),set:t=>{s=t}}),"function"==typeof e.init&&e.init(a),a}function n(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}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(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].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;let r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(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((r=>{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},9699:function(t,e,r){"use strict";r.d(e,{Z:function(){return h}});var n=r(391),o=r(5701),i=r(6558),s=r(9686);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),t}var p=function(){function t(e){a(this,t),this._file=e,this.size=e.size}return c(t,[{key:"slice",value:function(t,e){if((0,i.Z)())return(0,s.Z)(this._file.slice(t,e));var r=this._file.slice(t,e);return Promise.resolve({value:r})}},{key:"close",value:function(){}}]),t}(),l=function(){function t(e,r){a(this,t),this._chunkSize=r,this._buffer=void 0,this._bufferOffset=0,this._reader=e,this._done=!1}return c(t,[{key:"slice",value:function(t,e){return t<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(t,e)}},{key:"_readUntilEnoughDataOrDone",value:function(t,e){var r=this,n=e<=this._bufferOffset+f(this._buffer);if(this._done||n){var o=this._getDataFromBuffer(t,e),i=null==o&&this._done;return Promise.resolve({value:o,done:i})}return this._reader.read().then((function(n){var o=n.value;return n.done?r._done=!0:void 0===r._buffer?r._buffer=o:r._buffer=function(t,e){if(t.concat)return t.concat(e);if(t instanceof Blob)return new Blob([t,e],{type:t.type});if(t.set){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}throw new Error("Unknown data type")}(r._buffer,o),r._readUntilEnoughDataOrDone(t,e)}))}},{key:"_getDataFromBuffer",value:function(t,e){t>this._bufferOffset&&(this._buffer=this._buffer.slice(t-this._bufferOffset),this._bufferOffset=t);var r=0===f(this._buffer);return this._done&&r?null:this._buffer.slice(0,e-t)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),t}();function f(t){return void 0===t?0:void 0!==t.size?t.size:t.length}var h=function(){function t(){a(this,t)}return c(t,[{key:"openFile",value:function(t,e){return(0,n.Z)()&&t&&void 0!==t.uri?(0,o.Z)(t.uri).then((function(t){return new p(t)})).catch((function(t){throw new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(t))})):"function"==typeof t.slice&&void 0!==t.size?Promise.resolve(new p(t)):"function"==typeof t.read?(e=+e,isFinite(e)?Promise.resolve(new l(t,e)):Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option"))):Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment"))}}]),t}()},1055:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(391);function o(t,e){return(0,n.Z)()?Promise.resolve(function(t,e){var r=t.exif?function(t){var e=0;if(0===t.length)return e;for(var r=0;r<t.length;r++){e=(e<<5)-e+t.charCodeAt(r),e&=e}return e}(JSON.stringify(t.exif)):"noexif";return["tus-rn",t.name||"noname",t.size||"nosize",r,e.endpoint].join("/")}(t,e)):Promise.resolve(["tus-br",t.name,t.type,t.size,t.lastModified,e.endpoint].join("-"))}},321:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),t}r.d(e,{Z:function(){return s}});var s=function(){function t(){n(this,t)}return i(t,[{key:"createRequest",value:function(t,e){return new a(t,e)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),t}(),a=function(){function t(e,r){n(this,t),this._xhr=new XMLHttpRequest,this._xhr.open(e,r,!0),this._method=e,this._url=r,this._headers={}}return i(t,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(t,e){this._xhr.setRequestHeader(t,e),this._headers[t]=e}},{key:"getHeader",value:function(t){return this._headers[t]}},{key:"setProgressHandler",value:function(t){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(e){e.lengthComputable&&t(e.loaded)})}},{key:"send",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(r,n){t._xhr.onload=function(){r(new u(t._xhr))},t._xhr.onerror=function(t){n(t)},t._xhr.send(e)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),t}(),u=function(){function t(e){n(this,t),this._xhr=e}return i(t,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(t){return this._xhr.getResponseHeader(t)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),t}()},801:function(t,e,r){"use strict";r.d(e,{gq:function(){return _}});var n=r(4220),o=r(7967),i=r(2933),s=r(321),a=r(9699),u=r(1055);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function h(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){w(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function w(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v=g({},n.Z.defaultOptions,{httpStack:new s.Z,fileReader:new a.Z,urlStorage:i.H?new i.n:new o.Z,fingerprint:u.Z}),_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(a,t);var e,r,o,i,s=(e=a,function(){var t,r=y(e);if(d()){var n=y(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return h(this,t)});function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,a),e=g({},v,{},e),s.call(this,t,e)}return r=a,i=[{key:"terminate",value:function(t,e,r){return e=g({},v,{},e),n.Z.terminate(t,e,r)}}],(o=null)&&l(r.prototype,o),i&&l(r,i),a}(n.Z),b=window,S=b.XMLHttpRequest,C=b.Blob;S&&C&&C.prototype.slice},6558:function(t,e){"use strict";e.Z=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)}},391:function(t,e){"use strict";e.Z=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()}},9686:function(t,e,r){"use strict";function n(t){return new Promise((function(e,r){var n=new FileReader;n.onload=function(){var t=new Uint8Array(n.result);e({value:t})},n.onerror=function(t){r(t)},n.readAsArrayBuffer(t)}))}r.d(e,{Z:function(){return n}})},5701:function(t,e,r){"use strict";function n(t){return new Promise((function(e,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var t=n.response;e(t)},n.onerror=function(t){r(t)},n.open("GET",t),n.send()}))}r.d(e,{Z:function(){return n}})},2933:function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}r.d(e,{H:function(){return s},n:function(){return a}});var o=!1;try{o="localStorage"in window;var i="tusSupport";localStorage.setItem(i,localStorage.getItem(i))}catch(u){if(u.code!==u.SECURITY_ERR&&u.code!==u.QUOTA_EXCEEDED_ERR)throw u;o=!1}var s=o,a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r,o;return e=t,r=[{key:"findAllUploads",value:function(){var t=this._findEntries("tus::");return Promise.resolve(t)}},{key:"findUploadsByFingerprint",value:function(t){var e=this._findEntries("tus::".concat(t,"::"));return Promise.resolve(e)}},{key:"removeUpload",value:function(t){return localStorage.removeItem(t),Promise.resolve()}},{key:"addUpload",value:function(t,e){var r=Math.round(1e12*Math.random()),n="tus::".concat(t,"::").concat(r);return localStorage.setItem(n,JSON.stringify(e)),Promise.resolve(n)}},{key:"_findEntries",value:function(t){for(var e=[],r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(0===n.indexOf(t))try{var o=JSON.parse(localStorage.getItem(n));o.urlStorageKey=n,e.push(o)}catch(u){}}return e}}],r&&n(e.prototype,r),o&&n(e,o),t}()},9677:function(t,e){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function i(t){var e="function"==typeof Map?new Map:void 0;return i=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return s(t,arguments,c(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,t)},i(t)}function s(t,e,r){return s=a()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&u(o,r.prototype),o},s.apply(null,arguments)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(i,t);var e,r=(e=i,function(){var t,r=c(e);if(a()){var n=c(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return o(this,t)});function i(t){var e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(n(this,i),(e=r.call(this,t)).originalRequest=s,e.originalResponse=a,e.causingError=o,null!=o&&(t+=", caused by ".concat(o.toString())),null!=s){var u=s.getHeader("X-Request-ID")||"n/a",c=s.getMethod(),p=s.getURL(),l=a?a.getStatus():"n/a",f=a?a.getBody()||"":"n/a";t+=", originated from request (method: ".concat(c,", url: ").concat(p,", response code: ").concat(l,", response text: ").concat(f,", request id: ").concat(u,")")}return e.message=t,e}return i}(i(Error));e.Z=p},8489:function(t,e,r){"use strict";r.d(e,{c:function(){return o}});var n=!1;function o(t){n&&console.log(t)}},7967:function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}r.d(e,{Z:function(){return o}});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r,o;return e=t,(r=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(t){return Promise.resolve([])}},{key:"removeUpload",value:function(t){return Promise.resolve()}},{key:"addUpload",value:function(t,e){return Promise.resolve(null)}}])&&n(e.prototype,r),o&&n(e,o),t}()},4220:function(t,e,r){"use strict";var n=r(5978),o=r(4846),i=r.n(o),s=r(9677),a=r(8489),u=r(4104);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var h={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,_onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:null,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},d=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this._urlStorage=this.options.urlStorage,this.file=e,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var e,r,n;return e=t,r=[{key:"findPreviousUploads",value:function(){var t=this;return this.options.fingerprint(this.file,this.options).then((function(e){return t._urlStorage.findUploadsByFingerprint(e)}))}},{key:"resumeFromPreviousUpload",value:function(t){this.url=t.uploadUrl||null,this._parallelUploadUrls=t.parallelUploadUrls||null,this._urlStorageKey=t.urlStorageKey}},{key:"start",value:function(){var t=this,e=this.file;if(e)if(this.options.endpoint||this.options.uploadUrl){var r=this.options.retryDelays;null==r||"[object Array]"===Object.prototype.toString.call(r)?(this.options.parallelUploads>1&&["uploadUrl","uploadSize","uploadLengthDeferred"].forEach((function(e){t.options[e]&&t._emitError(new Error("tus: cannot use the ".concat(e," option when parallelUploads is enabled")))})),this.options.fingerprint(e,this.options).then((function(r){return null==r?(0,a.c)("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage."):(0,a.c)("Calculated fingerprint: ".concat(r)),t._fingerprint=r,t._source?t._source:t.options.fileReader.openFile(e,t.options.chunkSize)})).then((function(e){t._source=e,t.options.parallelUploads>1||null!=t._parallelUploadUrls?t._startParallelUpload():t._startSingleUpload()})).catch((function(e){t._emitError(e)}))):this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var e=this,r=this._size=this._source.size,n=0;this._parallelUploads=[];var o=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,i=function(t,e,r){for(var n=Math.floor(t/e),o=[],i=0;i<e;i++)o.push({start:n*i,end:n*(i+1)});return o[e-1].end=t,r&&o.forEach((function(t,e){t.uploadUrl=r[e]||null})),o}(this._source.size,o,this._parallelUploadUrls);this._parallelUploadUrls=new Array(i.length);var s,u=i.map((function(o,s){var a=0;return e._source.slice(o.start,o.end).then((function(u){var c=u.value;return new Promise((function(u,l){var f=p({},e.options,{uploadUrl:o.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,metadata:{},headers:p({},e.options.headers,{"Upload-Concat":"partial"}),onSuccess:u,onError:l,onProgress:function(t){n=n-a+t,a=t,e._emitProgress(n,r)},_onUploadUrlAvailable:function(){e._parallelUploadUrls[s]=h.url,e._parallelUploadUrls.filter((function(t){return!!t})).length===i.length&&e._saveUploadInUrlStorage()}}),h=new t(c,f);h.start(),e._parallelUploads.push(h)}))}))}));Promise.all(u).then((function(){(s=e._openRequest("POST",e.options.endpoint)).setHeader("Upload-Concat","final;".concat(e._parallelUploadUrls.join(" ")));var t=y(e.options.metadata);return""!==t&&s.setHeader("Upload-Metadata",t),e._sendRequest(s,null)})).then((function(t){if(m(t.getStatus(),200)){var r=t.getHeader("Location");null!=r?(e.url=_(e.options.endpoint,r),(0,a.c)("Created upload at ".concat(e.url)),e._emitSuccess()):e._emitHttpError(s,t,"tus: invalid or missing Location header")}else e._emitHttpError(s,t,"tus: unexpected response while creating upload")})).catch((function(t){e._emitError(t)}))}},{key:"_startSingleUpload",value:function(){if(this.options.uploadLengthDeferred)this._size=null;else if(null!=this.options.uploadSize){if(this._size=+this.options.uploadSize,isNaN(this._size))return void this._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(this._size=this._source.size,null==this._size)return void this._emitError(new Error("tus: cannot automatically derive upload's size from input and must be specified manually using the `uploadSize` option"));return this._aborted=!1,null!=this.url?((0,a.c)("Resuming upload from previous URL: ".concat(this.url)),void this._resumeUpload()):null!=this.options.uploadUrl?((0,a.c)("Resuming upload from provided URL: ".concat(this.options.url)),this.url=this.options.uploadUrl,void this._resumeUpload()):((0,a.c)("Creating a new upload"),void this._createUpload())}},{key:"abort",value:function(e){var r=this;if(arguments.length>1&&"function"==typeof arguments[1])throw new Error("tus: the abort function does not accept a callback since v2 anymore; please use the returned Promise instead");return null!=this._parallelUploads&&this._parallelUploads.forEach((function(t){t.abort(e)})),null!==this._req&&(this._req.abort(),this._source.close()),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),e&&null!=this.url?t.terminate(this.url,this.options).then((function(){return r._removeFromUrlStorage()})):Promise.resolve()}},{key:"_emitHttpError",value:function(t,e,r,n){this._emitError(new s.Z(r,n,t,e))}},{key:"_emitError",value:function(t){var e=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),v(t,this._retryAttempt,this.options))){var r=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){e.start()}),r))}if("function"!=typeof this.options.onError)throw t;this.options.onError(t)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(t,e){"function"==typeof this.options.onProgress&&this.options.onProgress(t,e)}},{key:"_emitChunkComplete",value:function(t,e,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(t,e,r)}},{key:"_createUpload",value:function(){var t=this;if(this.options.endpoint){var e=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?e.setHeader("Upload-Defer-Length",1):e.setHeader("Upload-Length",this._size);var r,n=y(this.options.metadata);""!==n&&e.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,r=this._addChunkToRequest(e)):r=this._sendRequest(e,null),r.then((function(r){if(m(r.getStatus(),200)){var n=r.getHeader("Location");if(null!=n){if(t.url=_(t.options.endpoint,n),(0,a.c)("Created upload at ".concat(t.url)),"function"==typeof t.options._onUploadUrlAvailable&&t.options._onUploadUrlAvailable(),0===t._size)return t._emitSuccess(),void t._source.close();t._saveUploadInUrlStorage(),t.options.uploadDataDuringCreation?t._handleUploadResponse(e,r):(t._offset=0,t._performUpload())}else t._emitHttpError(e,r,"tus: invalid or missing Location header")}else t._emitHttpError(e,r,"tus: unexpected response while creating upload")})).catch((function(r){t._emitHttpError(e,null,"tus: failed to create upload",r)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var t=this,e=this._openRequest("HEAD",this.url);this._sendRequest(e,null).then((function(r){var n=r.getStatus();if(!m(n,200))return m(n,400)&&t._removeFromUrlStorage(),423===n?void t._emitHttpError(e,r,"tus: upload is currently locked; retry later"):t.options.endpoint?(t.url=null,void t._createUpload()):void t._emitHttpError(e,r,"tus: unable to resume upload (new upload cannot be created without an endpoint)");var o=parseInt(r.getHeader("Upload-Offset"),10);if(isNaN(o))t._emitHttpError(e,r,"tus: invalid or missing offset value");else{var i=parseInt(r.getHeader("Upload-Length"),10);if(!isNaN(i)||t.options.uploadLengthDeferred){if("function"==typeof t.options._onUploadUrlAvailable&&t.options._onUploadUrlAvailable(),o===i)return t._emitProgress(i,i),void t._emitSuccess();t._offset=o,t._performUpload()}else t._emitHttpError(e,r,"tus: invalid or missing length value")}})).catch((function(r){t._emitHttpError(e,null,"tus: failed to resume upload",r)}))}},{key:"_performUpload",value:function(){var t,e=this;this._aborted||(this.options.overridePatchMethod?(t=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):t=this._openRequest("PATCH",this.url),t.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(t).then((function(r){m(r.getStatus(),200)?e._handleUploadResponse(t,r):e._emitHttpError(t,r,"tus: unexpected response while uploading chunk")})).catch((function(r){e._aborted||e._emitHttpError(t,null,"tus: failed to upload chunk at offset ".concat(e._offset),r)})))}},{key:"_addChunkToRequest",value:function(t){var e=this,r=this._offset,n=this._offset+this.options.chunkSize;return t.setProgressHandler((function(t){e._emitProgress(r+t,e._size)})),t.setHeader("Content-Type","application/offset+octet-stream"),(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(r,n).then((function(r){var n=r.value,o=r.done;return e.options.uploadLengthDeferred&&o&&(e._size=e._offset+(n&&n.size?n.size:0),t.setHeader("Upload-Length",e._size)),null===n?e._sendRequest(t):(e._emitProgress(e._offset,e._size),e._sendRequest(t,n))}))}},{key:"_handleUploadResponse",value:function(t,e){var r=parseInt(e.getHeader("Upload-Offset"),10);if(isNaN(r))this._emitHttpError(t,e,"tus: invalid or missing offset value");else{if(this._emitProgress(r,this._size),this._emitChunkComplete(r-this._offset,r,this._size),this._offset=r,r==this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(t,e){var r=g(t,e,this.options);return this._req=r,r}},{key:"_removeFromUrlStorage",value:function(){var t=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(e){t._emitError(e)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var t=this;if(this.options.storeFingerprintForResuming&&this._fingerprint){var e={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};this._parallelUploads?e.parallelUploadUrls=this._parallelUploadUrls:e.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,e).then((function(e){return t._urlStorageKey=e})).catch((function(e){t._emitError(e)}))}}},{key:"_sendRequest",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(t,e,this.options)}}],n=[{key:"terminate",value:function(e,r){if(arguments.length>1&&"function"==typeof arguments[arguments.length-1])throw new Error("tus: the terminate function does not accept a callback since v2 anymore; please use the returned Promise instead");void 0===r&&(r={});var n=g("DELETE",e,r);return w(n,null,r).then((function(t){if(204!==t.getStatus())throw new s.Z("tus: unexpected response while terminating upload",null,n,t)})).catch((function(o){if(o instanceof s.Z||(o=new s.Z("tus: failed to terminate upload",o,n,null)),!v(o,0,r))throw o;var i=r.retryDelays[0],a=r.retryDelays.slice(1),u=p({},r,{retryDelays:a});return new Promise((function(t){return setTimeout(t,i)})).then((function(){return t.terminate(e,u)}))}))}}],r&&f(e.prototype,r),n&&f(e,n),t}();function y(t){var e=[];for(var r in t)e.push("".concat(r," ").concat(n.Base64.encode(t[r])));return e.join(",")}function m(t,e){return t>=e&&t<e+100}function g(t,e,r){var n=r.httpStack.createRequest(t,e);n.setHeader("Tus-Resumable","1.0.0");var o=r.headers||{};for(var i in o)n.setHeader(i,o[i]);if(r.addRequestId){var s=(0,u.Z)();n.setHeader("X-Request-ID",s)}return n}function w(t,e,r){return("function"==typeof r.onBeforeRequest?Promise.resolve(r.onBeforeRequest(t)):Promise.resolve()).then((function(){return t.send(e).then((function(e){return("function"==typeof r.onAfterResponse?Promise.resolve(r.onAfterResponse(t,e)):Promise.resolve()).then((function(){return e}))}))}))}function v(t,e,r){if(null==r.retryDelays||e>=r.retryDelays.length||null==t.originalRequest)return!1;if(r&&"function"==typeof r.onShouldRetry)return r.onShouldRetry(t,e,r);var n,o=t.originalResponse?t.originalResponse.getStatus():0;return(!m(o,400)||409===o||423===o)&&(n=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(n=!1),n)}function _(t,e){return new(i())(e,t).toString()}d.defaultOptions=h,e.Z=d},4104:function(t,e,r){"use strict";function n(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}r.d(e,{Z:function(){return n}})},3830:function(t,e,r){"use strict";var n=r(956);t.exports=function(){var t=n.apply(n,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():""}},4846:function(t,e,r){"use strict";var n=r(7245),o=r(7375),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p=/^[a-zA-Z]:/;function l(t){return(t||"").toString().replace(i,"")}var f=[["#","hash"],["?","query"],function(t,e){return y(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function d(t){var e,r=("undefined"!=typeof window||"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).location||{},n={},o=typeof(t=t||r);if("blob:"===t.protocol)n=new g(unescape(t.pathname),{});else if("string"===o)for(e in n=new g(t,{}),h)delete n[e];else if("object"===o){for(e in t)e in h||(n[e]=t[e]);void 0===n.slashes&&(n.slashes=a.test(t.href))}return n}function y(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function m(t,e){t=(t=l(t)).replace(s,""),e=e||{};var r,n=c.exec(t),o=n[1]?n[1].toLowerCase():"",i=!!n[2],a=!!n[3],u=0;return i?a?(r=n[2]+n[3]+n[4],u=n[2].length+n[3].length):(r=n[2]+n[4],u=n[2].length):a?(r=n[3]+n[4],u=n[3].length):r=n[4],"file:"===o?u>=2&&(r=r.slice(2)):y(o)?r=n[4]:o?i&&(r=r.slice(2)):u>=2&&y(e.protocol)&&(r=n[4]),{protocol:o,slashes:i||y(o),slashesCount:u,rest:r}}function g(t,e,r){if(t=(t=l(t)).replace(s,""),!(this instanceof g))return new g(t,e,r);var i,a,u,c,h,w,v=f.slice(),_=typeof e,b=this,S=0;for("object"!==_&&"string"!==_&&(r=e,e=null),r&&"function"!=typeof r&&(r=o.parse),i=!(a=m(t||"",e=d(e))).protocol&&!a.slashes,b.slashes=a.slashes||i&&e.slashes,b.protocol=a.protocol||e.protocol||"",t=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||p.test(t))||!a.slashes&&(a.protocol||a.slashesCount<2||!y(b.protocol)))&&(v[3]=[/(.*)/,"pathname"]);S<v.length;S++)"function"!=typeof(c=v[S])?(u=c[0],w=c[1],u!=u?b[w]=t:"string"==typeof u?~(h="@"===u?t.lastIndexOf(u):t.indexOf(u))&&("number"==typeof c[2]?(b[w]=t.slice(0,h),t=t.slice(h+c[2])):(b[w]=t.slice(h),t=t.slice(0,h))):(h=u.exec(t))&&(b[w]=h[1],t=t.slice(0,h.index)),b[w]=b[w]||i&&c[3]&&e[w]||"",c[4]&&(b[w]=b[w].toLowerCase())):t=c(t,b);r&&(b.query=r(b.query)),i&&e.slashes&&"/"!==b.pathname.charAt(0)&&(""!==b.pathname||""!==e.pathname)&&(b.pathname=function(t,e){if(""===t)return e;for(var r=(e||"/").split("/").slice(0,-1).concat(t.split("/")),n=r.length,o=r[n-1],i=!1,s=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),s++):s&&(0===n&&(i=!0),r.splice(n,1),s--);return i&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(b.pathname,e.pathname)),"/"!==b.pathname.charAt(0)&&y(b.protocol)&&(b.pathname="/"+b.pathname),n(b.port,b.protocol)||(b.host=b.hostname,b.port=""),b.username=b.password="",b.auth&&(~(h=b.auth.indexOf(":"))?(b.username=b.auth.slice(0,h),b.username=encodeURIComponent(decodeURIComponent(b.username)),b.password=b.auth.slice(h+1),b.password=encodeURIComponent(decodeURIComponent(b.password))):b.username=encodeURIComponent(decodeURIComponent(b.auth)),b.auth=b.password?b.username+":"+b.password:b.username),b.origin="file:"!==b.protocol&&y(b.protocol)&&b.host?b.protocol+"//"+b.host:"null",b.href=b.toString()}g.prototype={set:function(t,e,r){var i=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(r||o.parse)(e)),i[t]=e;break;case"port":i[t]=e,n(e,i.protocol)?e&&(i.host=i.hostname+":"+e):(i.host=i.hostname,i[t]="");break;case"hostname":i[t]=e,i.port&&(e+=":"+i.port),i.host=e;break;case"host":i[t]=e,u.test(e)?(e=e.split(":"),i.port=e.pop(),i.hostname=e.join(":")):(i.hostname=e,i.port="");break;case"protocol":i.protocol=e.toLowerCase(),i.slashes=!r;break;case"pathname":case"hash":if(e){var s="pathname"===t?"/":"#";i[t]=e.charAt(0)!==s?s+e:e}else i[t]=e;break;case"username":case"password":i[t]=encodeURIComponent(e);break;case"auth":var a=e.indexOf(":");~a?(i.username=e.slice(0,a),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=e.slice(a+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(e))}for(var c=0;c<f.length;c++){var p=f[c];p[4]&&(i[p[1]]=i[p[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin="file:"!==i.protocol&&y(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(t){t&&"function"==typeof t||(t=o.stringify);var e,r=this,n=r.host,i=r.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var s=i+(r.protocol&&r.slashes||y(r.protocol)?"//":"");return r.username?(s+=r.username,r.password&&(s+=":"+r.password),s+="@"):r.password?(s+=":"+r.password,s+="@"):"file:"!==r.protocol&&y(r.protocol)&&!n&&"/"!==r.pathname&&(s+="@"),(":"===n[n.length-1]||u.test(r.hostname)&&!r.port)&&(n+=":"),s+=n+r.pathname,(e="object"==typeof r.query?t(r.query):r.query)&&(s+="?"!==e.charAt(0)?"?"+e:e),r.hash&&(s+=r.hash),s}},g.extractProtocol=m,g.location=d,g.trimLeft=l,g.qs=o,t.exports=g},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,r){"use strict";var n;r.d(e,{Z:function(){return i}});var o=new Uint8Array(16);function i(){if(!n&&!(n="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 n(o)}},708:function(t,e,r){"use strict";for(var n=r(6525),o=[],i=0;i<256;++i)o.push((i+256).toString(16).substr(1));e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]).toLowerCase();if(!(0,n.Z)(r))throw TypeError("Stringified UUID is invalid");return r}},8767:function(t,e,r){"use strict";var n=r(5302),o=r(708);e.Z=function(t,e,r){var i=(t=t||{}).random||(t.rng||n.Z)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){r=r||0;for(var s=0;s<16;++s)e[r+s]=i[s];return e}return(0,o.Z)(i)}},6525:function(t,e,r){"use strict";var n=r(2686);e.Z=function(t){return"string"==typeof t&&n.Z.test(t)}},2884:function(t,e,r){var n=r(3830),o=r(7260);function i(t,e){if(e)if("number"==typeof e)s(t,e);else{e.status_code&&s(t,e.status_code),e.error&&(t.name=u(e.error)),e.error_description&&(t.message=e.error_description);var r=e.errors;if(r)i(t,r.length?r[0]:r);for(var n in e)t[n]=e[n];t.status&&(e.method||e.path)&&a(t)}}function s(t,e){t.name=u(o[e]),t.status=t.statusCode=e,a(t)}function a(t){var e=t.status,r=t.method,n=t.path,o=e+" status code",i=r||n;i&&(o+=' for "'),r&&(o+=r),i&&(o+=" "),n&&(o+=n),i&&(o+='"'),t.message=o}function u(t){return n(String(t).replace(/error$/i,""),"error")}t.exports=function t(){for(var e=new Error,r=0;r<arguments.length;r++)i(e,arguments[r]);"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"}},9196:function(t){"use strict";t.exports=window.React},2819:function(t){"use strict";t.exports=window.lodash},5609:function(t){"use strict";t.exports=window.wp.components},4333:function(t){"use strict";t.exports=window.wp.compose},9818:function(t){"use strict";t.exports=window.wp.data},9307:function(t){"use strict";t.exports=window.wp.element},5736:function(t){"use strict";t.exports=window.wp.i18n},8817:function(t){"use strict";t.exports=window.wp.plugins},6656:function(t){"use strict";t.exports=window.wp.reactI18n},3260:function(){},6666:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,{Z:function(){return n}})},7896:function(t,e,r){"use strict";function n(){return n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}r.d(e,{Z:function(){return n}})}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}();var n={};!function(){"use strict";r.r(n);r(5840),r(8814)}(),window.EditingToolkit=n}();