Version Description
- New Onboarding Launch: fix plans data-store integration (https://github.com/Automattic/wp-calypso/pull/49304)
- Refunds: update copy to reflect 14-day refunds (https://github.com/Automattic/wp-calypso/pull/48872)
- Editing toolkit: clean out contributors list in readme (https://github.com/Automattic/wp-calypso/pull/49182)
- Fix untranslated text in Domain Picker (https://github.com/Automattic/wp-calypso/pull/49168)
- Use @automattic/format-currency package to format prices in Plan Store (https://github.com/Automattic/wp-calypso/pull/49293)
- Patterns and SPT: Add pattern_meta is_web param to calls to the ptk/patterns endpoint (https://github.com/Automattic/wp-calypso/pull/49166)
- Switch on block pattern modifications (https://github.com/Automattic/wp-calypso/pull/48848)
Download this release
Release Info
Developer | mciampini |
Plugin | Full Site Editing |
Version | 2.13 |
Comparing to | |
See all releases |
Code changes from version 2.12 to 2.13
- block-patterns/class-block-patterns-from-api.php +5 -2
- common/data-stores/launch.ts +2 -0
- common/dist/data-stores.asset.php +1 -1
- common/dist/data-stores.js +3 -3
- editor-gutenboarding-launch/dist/editor-gutenboarding-launch.asset.php +1 -1
- editor-gutenboarding-launch/dist/editor-gutenboarding-launch.js +1 -1
- editor-site-launch/dist/editor-site-launch.asset.php +1 -1
- editor-site-launch/dist/editor-site-launch.js +4 -4
- editor-site-launch/src/attach-launch-sidebar.tsx +2 -1
- editor-site-launch/src/launch-menu/index.tsx +15 -7
- editor-site-launch/src/launch-progress/index.tsx +7 -3
- editor-site-launch/src/launch-steps/domain-step/index.tsx +5 -19
- editor-site-launch/src/launch-steps/final-step/index.tsx +26 -14
- editor-site-launch/src/launch-steps/plan-step/index.tsx +21 -11
- full-site-editing-plugin.php +3 -3
- premium-content/dist/premium-content.asset.php +1 -1
- premium-content/dist/premium-content.js +1 -1
- readme.txt +11 -2
- starter-page-templates/class-starter-page-templates.php +11 -5
- wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.asset.php +1 -1
- wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.js +1 -1
- wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php +1 -1
- wpcom-block-editor-nux/dist/wpcom-block-editor-nux.js +1 -1
- wpcom-block-editor-welcome-tour/README.md +2 -2
- wpcom-block-editor-welcome-tour/dist/wpcom-block-editor-welcome-tour.asset.php +1 -1
- wpcom-block-editor-welcome-tour/dist/wpcom-block-editor-welcome-tour.js +1 -1
block-patterns/class-block-patterns-from-api.php
CHANGED
@@ -123,7 +123,9 @@ class Block_Patterns_From_API {
|
|
123 |
$request_url = esc_url_raw(
|
124 |
add_query_arg(
|
125 |
array(
|
126 |
-
'site'
|
|
|
|
|
127 |
),
|
128 |
'https://public-api.wordpress.com/rest/v1/ptk/patterns/' . $this->get_block_patterns_locale()
|
129 |
)
|
@@ -150,7 +152,8 @@ class Block_Patterns_From_API {
|
|
150 |
$request_url = esc_url_raw(
|
151 |
add_query_arg(
|
152 |
array(
|
153 |
-
'tags'
|
|
|
154 |
),
|
155 |
'https://public-api.wordpress.com/rest/v1/ptk/patterns/' . $this->get_block_patterns_locale()
|
156 |
)
|
123 |
$request_url = esc_url_raw(
|
124 |
add_query_arg(
|
125 |
array(
|
126 |
+
'site' => $override_source_site,
|
127 |
+
'tags' => 'pattern',
|
128 |
+
'pattern_meta' => 'is_web',
|
129 |
),
|
130 |
'https://public-api.wordpress.com/rest/v1/ptk/patterns/' . $this->get_block_patterns_locale()
|
131 |
)
|
152 |
$request_url = esc_url_raw(
|
153 |
add_query_arg(
|
154 |
array(
|
155 |
+
'tags' => 'pattern',
|
156 |
+
'pattern_meta' => 'is_web',
|
157 |
),
|
158 |
'https://public-api.wordpress.com/rest/v1/ptk/patterns/' . $this->get_block_patterns_locale()
|
159 |
)
|
common/data-stores/launch.ts
CHANGED
@@ -3,4 +3,6 @@
|
|
3 |
*/
|
4 |
import { Launch } from '@automattic/data-stores';
|
5 |
|
|
|
|
|
6 |
Launch.register();
|
3 |
*/
|
4 |
import { Launch } from '@automattic/data-stores';
|
5 |
|
6 |
+
export type LaunchStepType = Launch.LaunchStepType;
|
7 |
+
|
8 |
Launch.register();
|
common/dist/data-stores.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => '4d40d6cb3202aa2dde7c06143f7e4172');
|
common/dist/data-stores.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={5270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},4180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},1232:function(e,t,n){var r=n(5270);e.exports=function(e){if(Array.isArray(e))return r(e)}},8111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},2954:function(e){function t(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(c){return void n(c)}u.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function u(e){t(a,o,i,u,s,"next",e)}function s(e){t(a,o,i,u,s,"throw",e)}u(void 0)}))}}},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},5198:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},4564:function(e,t,n){var r=n(2588),o=n(1549),i=n(6983);e.exports=function(e){var t=o();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return i(this,n)}}},1260:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},8527:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},2588:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},270:function(e,t,n){var r=n(742);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},1549:function(e){e.exports=function(){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(e){return!1}}},1557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(u){r=!0,o=u}finally{try{_n||null==a.return||a.return()}finally{if(r)throw o}}return n}}},7365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},1359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(1260);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},2220:function(e,t,n){var r=n(8834);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},8834:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},6983:function(e,t,n){var r=n(8921),o=n(8111);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},742:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},1068:function(e,t,n){var r=n(4180),o=n(981),i=n(6487),a=n(7365);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},5182:function(e,t,n){var r=n(1232),o=n(1557),i=n(6487),a=n(1359);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},4209:function(e,t,n){var r=n(8921);e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},4582:function(e,t,n){var r=n(8921),o=n(4209);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)}},8921:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},6487:function(e,t,n){var r=n(5270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,a,c;if(u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=s(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),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(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return s(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)r(s,this,t);else{var c=s.length,l=h(s,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var 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(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5695:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,o=t.cmp&&(n=t.cmp,function(e){return function(t,r){var o={key:t,value:e[t]},i={key:r,value:e[r]};return n(o,i)}}),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(t)-1,s=Object.keys(t).sort(o&&o(t));for(a="",n=0;n<s.length;n++){var c=s[n],l=e(t[c]);l&&(a&&(a+=","),a+=JSON.stringify(c)+":"+l)}return i.splice(u,1),"{"+a+"}"}}(e)}},7201:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},4983:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],l=0;(s=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},6590:function(e,t,n){"use strict";var r=n(7201);e.exports=r},4495:function(e,t,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}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(e<<=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++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>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}},5079:function(e,t,n){"use strict";var r=n(212),o=n(4495),i=n(713),a=r.rotl32,u=r.sum32,s=r.sum32_5,c=i.ft_1,l=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(p,l),e.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var o=this.h[0],i=this.h[1],l=this.h[2],p=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var h=~~(r/20),m=s(a(o,5),c(h,i,l,p),d,n[r],f[h]);d=p,p=l,l=a(i,30),i=o,o=m}this.h[0]=u(this.h[0],o),this.h[1]=u(this.h[1],i),this.h[2]=u(this.h[2],l),this.h[3]=u(this.h[3],p),this.h[4]=u(this.h[4],d)},p.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?a(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(9561),o=n(1285);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=u(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=a(o)),n+=s(o.toString(16))}return n},t.zero2=u,t.zero8=s,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var a=new Array(i/4),u=0,s=t;u<a.length;u++,s+=4){var c;c="big"===o?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[u]=c>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(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},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,a=(i<r?1:0)+n+o;e[t]=a>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,a,u){var s=0,c=t;return s+=(c=c+r>>>0)<t?1:0,s+=(c=c+i>>>0)<i?1:0,e+n+o+a+(s+=(c=c+u>>>0)<u?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,a,u){return t+r+i+u>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,a,u,s,c){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+i>>>0)<i?1:0,l+=(f=f+u>>>0)<u?1:0,e+n+o+a+s+(l+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,a,u,s,c){return t+r+i+u+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},7010:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=u(n(3804)),i=u(n(3631)),a=u(n(2586));function u(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function c(e,t){var n,a,u,l,f,p,d,h,m=[],g={};for(p=0;p<e.length;p++)if("string"!==(f=e[p]).type){if(!t.hasOwnProperty(f.value)||void 0===t[f.value])throw new Error("Invalid interpolation, missing component node: `"+f.value+"`");if("object"!==r(t[f.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+f.value+"`","\n> "+s);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],u=p;break}m.push(t[f.value])}else m.push(f.value);return n&&(l=function(e,t){var n,r,o=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+o.value+"`")}(u,e),d=c(e.slice(u+1,l),t),a=o.default.cloneElement(n,{},d),m.push(a),l<e.length-1&&(h=c(e.slice(l+1),t),m=m.concat(h))),1===m.length?m[0]:(m.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,i.default)(g))}t.Z=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(s=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,a.default)(t);try{return c(i,n)}catch(u){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+u.message+"`");return t}}},2586:function(e){"use strict";function t(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},7839:function(e,t,n){var r=n(2699),o=n(1285);function i(e){if(!(this instanceof i))return new i(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=i,o(i,r.EventEmitter),Object.defineProperty(i.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),i.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},i.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},i.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},i.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},i.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},i.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},i.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},i.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o,a=365.25*o;function u(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,s){s=s||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!u)return;var s=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"weeks":case"week":case"w":return s*i;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&isFinite(e))return s.long?function(e){var i=Math.abs(e);if(i>=o)return u(e,i,o,"day");if(i>=r)return u(e,i,r,"hour");if(i>=n)return u(e,i,n,"minute");if(i>=t)return u(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=r)return Math.round(e/r)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7320:function(e){"use strict";
|
2 |
/*
|
3 |
object-assign
|
4 |
(c) Sindre Sorhus
|
5 |
@license MIT
|
6 |
-
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var a,u,s=o(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))n.call(a,l)&&(s[l]=a[l]);if(t){u=t(a);for(var f=0;f<u.length;f++)r.call(a,u[f])&&(s[u[f]]=a[u[f]])}}return s}},8650:function(e){var t,n=window.ProgressEvent,r=!!n;try{t=new n("loaded"),r="loaded"===t.type,t=null}catch(o){r=!1}e.exports=r?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},5527:function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(2493),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},9126:function(e,t,n){"use strict";var r=n(6845),o=n(9166),i=n(5527);e.exports={formats:i,parse:o,stringify:r}},9166:function(e,t,n){"use strict";var r=n(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=u?i.slice(0,u.index):i,l=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&null!==(u=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+i.slice(u.index)+"]"),function(e,t,n,r){for(var o=r?t:s(t,n),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&u!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:a[c]=o:a={0:o}}o=a}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,c={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=l.split(t.delimiter,f),d=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?h="utf-8":"utf8=%26%2310003%3B"===p[n]&&(h="iso-8859-1"),d=n,n=p.length);for(n=0;n<p.length;++n)if(n!==d){var m,g,v=p[n],y=v.indexOf("]="),S=-1===y?v.indexOf("="):y+1;-1===S?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,S),a.decoder,h,"key"),g=r.maybeMap(s(v.slice(S+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=u(g)),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g),o.call(c,m)?c[m]=r.combine(c[m],g):c[m]=g}return c}(e,n):e,f=n.plainObjects?Object.create(null):{},p=Object.keys(l),d=0;d<p.length;++d){var h=p[d],m=c(h,l[h],n,"string"==typeof e);f=r.merge(f,m,n)}return r.compact(f)}},6845:function(e,t,n){"use strict";var r=n(2493),o=n(5527),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,s=Array.prototype.push,c=function(e,t){s.apply(e,u(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,o,i,a,s,l,f,d,h,m,g,v){var y,S=t;if("function"==typeof l?S=l(n,S):S instanceof Date?S=h(S):"comma"===o&&u(S)&&(S=r.maybeMap(S,(function(e){return e instanceof Date?h(e):e})).join(",")),null===S){if(i)return s&&!g?s(n,p.encoder,v,"key"):n;S=""}if("string"==typeof(y=S)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(S))return s?[m(g?n:s(n,p.encoder,v,"key"))+"="+m(s(S,p.encoder,v,"value"))]:[m(n)+"="+m(String(S))];var b,E=[];if(void 0===S)return E;if(u(l))b=l;else{var _=Object.keys(S);b=f?_.sort(f):_}for(var w=0;w<b.length;++w){var O=b[w],C=S[O];if(!a||null!==C){var T=u(S)?"function"==typeof o?o(n,O):n:n+(d?"."+O:"["+O+"]");c(E,e(C,T,o,i,a,s,l,f,d,h,m,g,v))}}return E};e.exports=function(e,t){var n,r=e,s=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=p.filter;return("function"==typeof e.filter||u(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof s.filter?r=(0,s.filter)("",r):u(s.filter)&&(n=s.filter);var l,f=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=a[l];n||(n=Object.keys(r)),s.sort&&n.sort(s.sort);for(var m=0;m<n.length;++m){var g=n[m];s.skipNulls&&null===r[g]||c(f,d(r[g],g,h,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var v=f.join(s.delimiter),y=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},2493:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],u=Object.keys(a),s=0;s<u.length;++s){var c=u[s],l=a[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],i=0;i<r.length;++i)void 0!==r[i]&&o.push(r[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var r=e.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(e,t,n){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",a=0;a<o.length;++a){var u=o.charCodeAt(a);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122?i+=o.charAt(a):u<128?i+=r[u]:u<2048?i+=r[192|u>>6]+r[128|63&u]:u<55296||u>=57344?i+=r[224|u>>12]+r[128|u>>6&63]+r[128|63&u]:(a+=1,u=65536+((1023&u)<<10|1023&o.charCodeAt(a)),i+=r[240|u>>18]+r[128|u>>12&63]+r[128|u>>6&63]+r[128|63&u])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(r,i,a){if(!i)return r;if("object"!=typeof i){if(n(r))r.push(i);else{if(!r||"object"!=typeof r)return[r,i];(a&&(a.plainObjects||a.allowPrototypes)||!t.call(Object.prototype,i))&&(r[i]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(i);var u=r;return n(r)&&!n(i)&&(u=o(r,a)),n(r)&&n(i)?(i.forEach((function(n,o){if(t.call(r,o)){var i=r[o];i&&"object"==typeof i&&n&&"object"==typeof n?r[o]=e(i,n,a):r.push(n)}else r[o]=n})),r):Object.keys(i).reduce((function(n,r){var o=i[r];return t.call(n,r)?n[r]=e(n[r],o,a):n[r]=o,n}),u)}}},3631:function(e,t,n){"use strict";var r=n(3804),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(7201),a=n(4983),u=n(6590),s="function"==typeof Symbol&&Symbol.iterator;function c(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function l(e,t,n,r){var i,u=typeof e;if("undefined"!==u&&"boolean"!==u||(e=null),null===e||"string"===u||"number"===u||"object"===u&&e.$$typeof===o)return n(r,e,""===t?"."+c(e,0):t),1;var f=0,p=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)f+=l(i=e[d],p+c(i,d),n,r);else{var h=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var m,g=h.call(e),v=0;!(m=g.next()).done;)f+=l(i=m.value,p+c(i,v++),n,r)}else if("object"===u){0;var y=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return f}var f=/\/+/g;function p(e){return(""+e).replace(f,"$&/")}var d,h,m=g,g=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},v=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function y(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function S(e,t,n){var o,a,u=e.result,s=e.keyPrefix,c=e.func,l=e.context,f=c.call(l,t,e.count++);Array.isArray(f)?b(f,u,n,i.thatReturnsArgument):null!=f&&(r.isValidElement(f)&&(o=f,a=s+(!f.key||t&&t.key===f.key?"":p(f.key)+"/")+n,f=r.cloneElement(o,{key:a},void 0!==o.props?o.props.children:void 0)),u.push(f))}function b(e,t,n,r,o){var i="";null!=n&&(i=p(n)+"/");var a=y.getPooled(t,i,r,o);!function(e,t,n){null==e||l(e,"",t,n)}(e,S,a),y.release(a)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},(h=y).instancePool=[],h.getPooled=d||m,h.poolSize||(h.poolSize=10),h.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return u(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return u(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)b(e[n],t,n,i.thatReturnsArgument);return t}},3208:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,{fetchDomainSuggestions:function(){return x},receiveCategories:function(){return A},receiveDomainAvailability:function(){return P},receiveDomainSuggestionsError:function(){return R},receiveDomainSuggestionsSuccess:function(){return N}});var o={};n.r(o),n.d(o,{__internalGetDomainSuggestions:function(){return yt},getCategories:function(){return vt},isAvailable:function(){return gt}});var i={};n.r(i),n.d(i,{resetPlan:function(){return Ut},setFeatures:function(){return Ft},setFeaturesByType:function(){return Dt},setPlanProducts:function(){return Mt},setPlans:function(){return jt}});var a={};n.r(a),n.d(a,{getDefaultFreePlan:function(){return Gt},getDefaultPaidPlan:function(){return zt},getFeatures:function(){return Bt},getFeaturesByType:function(){return Vt},getPlanByPath:function(){return Qt},getPlanByPeriodAgnosticSlug:function(){return qt},getPlanByProductId:function(){return Wt},getPlanProduct:function(){return Zt},getPlanProductById:function(){return Yt},getPlansProducts:function(){return Kt},getPrices:function(){return Jt},getSupportedPlans:function(){return $t},isPlanEcommerce:function(){return Xt},isPlanFree:function(){return en},isPlanProductFree:function(){return tn}});var u={};n.r(u),n.d(u,{getSupportedPlans:function(){return un}});var s={};n.r(s),n.d(s,{getSite:function(){return wn},getSiteDomains:function(){return On}});var c={};n.r(c),n.d(c,{getNewSite:function(){return In},getNewSiteError:function(){return An},getPrimarySiteDomain:function(){return Mn},getSite:function(){return Rn},getSiteDomains:function(){return jn},getSiteSubdomain:function(){return Un},getSiteTitle:function(){return Ln},getState:function(){return Tn},isFetchingSite:function(){return xn},isFetchingSiteDetails:function(){return Pn},isNewSite:function(){return Nn},isSiteLaunched:function(){return Fn},isSiteLaunching:function(){return Dn}});var l={};n.r(l),n.d(l,{closeFocusedLaunch:function(){return ar},closeSidebar:function(){return or},confirmDomainSelection:function(){return Zn},disablePersistentSuccessView:function(){return hr},enableExperimental:function(){return ur},enablePersistentSuccessView:function(){return dr},hideModalTitle:function(){return pr},openFocusedLaunch:function(){return ir},openSidebar:function(){return rr},setDomain:function(){return Jn},setDomainSearch:function(){return Xn},setModalDismissible:function(){return cr},setPlanProductId:function(){return er},setSidebarFullscreen:function(){return zn},setSiteTitle:function(){return Kn},setStep:function(){return $n},showModalTitle:function(){return fr},showSiteTitleStep:function(){return sr},unsetDomain:function(){return Qn},unsetModalDismissible:function(){return lr},unsetPlanProductId:function(){return tr},unsetSidebarFullscreen:function(){return Gn},updatePlan:function(){return nr}});var f={};n.r(f),n.d(f,{getFirstIncompleteStep:function(){return Ir},getLaunchSequence:function(){return mr},getLaunchStep:function(){return gr},getPaidPlanProductId:function(){return _r},getSelectedDomain:function(){return Sr},getSelectedPlan:function(){return Er},getSelectedPlanProductId:function(){return br},getSiteTitle:function(){return Ar},getState:function(){return vr},hasPaidDomain:function(){return yr},hasSelectedDomain:function(){return wr},isFlowCompleted:function(){return Cr},isFlowStarted:function(){return Tr},isStepCompleted:function(){return Or}});var p={};n.r(p),n.d(p,{getAllFeatures:function(){return Hr},getRecommendedPlanSlug:function(){return Br}});var d,h=window.wp.data,m="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(d||(d={}));var g,v,y,S,b=n(1260),E=n.n(b),_=n(417),w=n.n(_),O=n(5695),C=n.n(O)(),T={state:d.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},I=(0,h.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?w()(w()({},e),{},{state:d.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?w()(w()({},e),{},{state:d.Success,data:w()(w()({},e.data),{},E()({},C(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?w()(w()({},e),{},{state:d.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?w()(w()({},e),{},E()({},t.domainName,t.availability)):e}}),A=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},x=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},P=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},N=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},R=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}},L=n(9126),F=n(5182),D=n.n(F),j=n(8049),M=n.n(j),U=n(7010);g={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},v=["(","?"],y={")":["("],":":["?","?:"]},S=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var k={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function H(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(S);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(y[n]){if(y[n][0]===o){n=y[n][1]||n;break}}else if(v.indexOf(o)>=0||g[o]<g[n]){a.push(o);break}i.push(o)}y[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,u,s=[];for(n=0;n<e.length;n++){if(a=e[n],i=k[a]){for(r=i.length,o=Array(r);r--;)o[r]=s.pop();try{u=i.apply(null,o)}catch(c){return c}}else u=t.hasOwnProperty(a)?t[a]:+a;s.push(u)}return s[0]}(t,e)}}var B={contextDelimiter:"",onMissingKey:null};function V(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},B)this.options[n]=void 0!==t&&n in t?t[n]:B[n]}V.prototype.getPluralForm=function(e,t){var n,r,o,i=this.pluralForms[e];return i||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=function(e){var t=H(e);return function(e){return+t({n:e})}}(r)),i=this.pluralForms[e]=o),i(t)},V.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,u;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(u=this.data[e][a])&&u[i]?u[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var W=n(7839),Y=n.n(W),q=n(5079),z=n.n(q),G=n(2699),$=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function K(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace($,(function(){var e,r,o,i,a;return e=arguments[3],r=arguments[5],"%"===(i=arguments[9])?"%":("*"===(o=arguments[7])&&(o=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(a=t[0][r]):(void 0===e&&(e=n),n++,a=t[e-1]),"f"===i?a=parseFloat(a)||0:"d"===i&&(a=parseInt(a)||0),void 0!==o&&("f"===i?a=a.toFixed(o):"s"===i&&(a=a.substr(0,o))),null!=a?a:"")}))}function J(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,u=void 0===n?".":n,s="";return(s=(i?
|
7 |
/*
|
8 |
* Exposes number format capability
|
9 |
*
|
@@ -11,4 +11,4 @@ object-assign
|
|
11 |
* @license See CREDITS.md
|
12 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
13 |
*/
|
14 |
-
function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(o,i):""+Math.round(o)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(u)}var Q=M()("i18n-calypso"),Z="number_format_decimals",X="number_format_thousands_sep",ee="messages",te=[function(e){return e}],ne={};function re(){se.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function oe(e){return Array.prototype.slice.call(e)}function ie(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&re("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",oe(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&re("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",oe(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function ae(e,t){return e.dcnpgettext(ee,t.context,t.original,t.plural,t.count)}function ue(e,t){for(var n=te.length-1;n>=0;n--){var r=te[n](Object.assign({},t)),o=r.context?r.context+""+r.original:r.original;if(e.state.locale[o])return ae(e.state.tannin,r)}return null}function se(){if(!(this instanceof se))return new se;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:Y()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new G.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}se.throwErrors=!1,se.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},se.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},se.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},se.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return J(e,n,r,o)},se.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},se.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],i=function(e,t){var n=!1===t?"":String(t);if(void 0!==ne[n+e])return ne[n+e];var r=z()().update(e).digest("hex");return ne[n+e]=t?r.substr(0,t):r},a=function(e){return function(t){return t.context?(t.original=i(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=i(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)te.push(a(!1));else{var u=o.substr(5).indexOf("-");if(u<0){var s=Number(o.substr(5));te.push(a(s))}else for(var c=Number(o.substr(5,u)),l=Number(o.substr(6+u)),f=c;f<=l;f++)te.push(a(f))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new V(E()({},ee,this.state.locale)),this.state.numberFormatSettings.decimal_point=ae(this.state.tannin,ie([Z])),this.state.numberFormatSettings.thousands_sep=ae(this.state.tannin,ie([X])),this.state.numberFormatSettings.decimal_point===Z&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===X&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},se.prototype.getLocale=function(){return this.state.locale},se.prototype.getLocaleSlug=function(){return this.state.localeSlug},se.prototype.getLocaleVariant=function(){return this.state.localeVariant},se.prototype.isRtl=function(){return"rtl"===this.state.textDirection},se.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},se.prototype.hasTranslation=function(){return!!ue(this,ie(arguments))},se.prototype.translate=function(){var e=ie(arguments),t=ue(this,e);if(t||(t=ae(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=K.apply(void 0,D()(n))}catch(o){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[r](o):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=(0,U.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},se.prototype.reRenderTranslations=function(){Q("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},se.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},se.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var ce=se,le=n(85),fe=n.n(le),pe=n(5198),de=n.n(pe),he=n(8111),me=n.n(he),ge=n(270),ve=n.n(ge),ye=n(4564),Se=n.n(ye),be=window.wp.element,Ee=n(3804),_e=n.n(Ee);var we=n(1068),Oe=n.n(we);var Ce=n(8527),Te=n.n(Ce),Ie=n(6718),Ae=window.wp.compose;var xe=new ce,Pe=(xe.numberFormat.bind(xe),xe.translate.bind(xe)),Ne=(xe.configure.bind(xe),xe.setLocale.bind(xe),xe.getLocale.bind(xe),xe.getLocaleSlug.bind(xe),xe.getLocaleVariant.bind(xe),xe.isRtl.bind(xe),xe.addTranslations.bind(xe),xe.reRenderTranslations.bind(xe),xe.registerComponentUpdateHook.bind(xe),xe.registerTranslateHook.bind(xe),xe.state,xe.stateObserver,xe.on.bind(xe),xe.off.bind(xe),xe.emit.bind(xe),function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)}}(xe),function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(xe),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,Ie.useSubscription)(t)}var r=(0,Ae.createHigherOrderComponent)((function(e){return(0,Ee.forwardRef)((function(t,r){var o=n();return(0,be.createElement)(e,Te()({},t,{isRtl:o,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(xe)),Re=(Ne.useRtl,Ne.withRtl,n(2954)),Le=n.n(Re),Fe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),De=new Uint8Array(16);function je(){if(!Fe)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fe(De)}for(var Me=[],Ue=0;Ue<256;++Ue)Me[Ue]=(Ue+256).toString(16).substr(1);var ke=function(e,t){var n=t||0,r=Me;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var He,Be=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||je)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||ke(o)},Ve=n(2884),We=n.n(Ve),Ye=n(8650),qe=n.n(Ye),ze=M()("wpcom-proxy-request"),Ge="https://public-api.wordpress.com",$e=window.location.protocol+"//"+window.location.host,Ke=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),Je=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),Qe=null,Ze=!1,Xe={},et=!!window.ProgressEvent&&!!window.FormData;ze('using "origin": %o',$e);var tt=function(e,t){var n=Object.assign({},e);ze("request(%o)",n),Qe||at();var r=Be();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=et,n.method=String(n.method||"GET").toUpperCase(),ze("params object: %o",n);var o=new window.XMLHttpRequest;if(o.params=n,Xe[r]=o,"function"==typeof t){var i=!1,a=function(e){if(!i){i=!0;var n=e.error||e.err||e;ze("error: ",n),ze("headers: ",e.headers),t(n,null,e.headers)}};o.addEventListener("load",(function(e){if(!i){i=!0;var n=e.response||o.response;ze("body: ",n),ze("headers: ",e.headers),t(null,n,e.headers)}})),o.addEventListener("abort",a),o.addEventListener("error",a)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,Ze?rt(n):(ze("buffering API request since proxying <iframe> is not yet loaded"),He.push(n)),o},nt=function(e,t){return"function"==typeof t?tt(e,t):new Promise((function(t,n){tt(e,(function(e,r){e?n(e):t(r)}))}))};function rt(e){ze("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!Je)return;for(var t=0;t<e.length;t++){var n=it(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),Qe.contentWindow.postMessage(Ke?JSON.stringify(e):e,Ge)}function ot(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function it(e){return ot(e)?e:"object"==typeof e&&ot(e.fileContents)?e.fileContents:null}function at(){ze("install()"),Qe&&(ze("uninstall()"),window.removeEventListener("message",ut),document.body.removeChild(Qe),Ze=!1,Qe=null),He=[],window.addEventListener("message",ut),(Qe=document.createElement("iframe")).src=Ge+"/wp-admin/rest-proxy/?v=2.0#"+$e,Qe.style.display="none",document.body.appendChild(Qe)}function ut(e){if(ze("onmessage"),e.origin===Ge)if(e.source===Qe.contentWindow){var t=e.data;if(!t)return ze("no `data`, bailing");if("ready"!==t){if(Ke&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){ze('got "progress" event: %o',e);var t=Xe[e.callbackId];if(t){var n=new(qe())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return ze("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in Xe))return ze("bailing, no matching request with callback: %o",n);var r,o=Xe[n],i=o.params,a=t[0],u=t[1],s=t[2];if(207===u||delete Xe[n],i.metaAPI?u="metaAPIupdated"===a?200:500:ze("got %o status code for URL: %o",u,i.path),"object"==typeof s)if(s.status=u,r=s["Content-Type"],/^application[/]x-ndjson($|;)/.test(r))return void st(o,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),s);if(u&&2===Math.floor(u/100))!function(e,t,n){var r=new(qe())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(o,a,s);else st(o,We()(i,u,a),s)}else!function(){if(ze('proxy <iframe> "load" event'),Ze=!0,He){for(var e=0;e<He.length;e++)rt(He[e]);He=null}}()}else ze("ignoring message... iframe elements do not match");else ze("ignoring message... %o !== %o",e.origin,Ge)}function st(e,t,n){var r=new(qe())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}var ct,lt=nt,ft=function(e){return{type:"WPCOM_REQUEST",request:e}},pt=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},dt={WPCOM_REQUEST:function(e){var t=e.request;return lt(t)},FETCH_AND_PARSE:(ct=Le()(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return o=e.sent,e.t0=o.ok,e.next=7,o.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return ct.apply(this,arguments)}),RELOAD_PROXY:function(){at()},REQUEST_ALL_BLOGS_ACCESS:function(){return nt({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}},ht=regeneratorRuntime.mark(vt),mt=regeneratorRuntime.mark(yt),gt=regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,pt(n);case 4:return r=e.sent,o=r.body,e.abrupt("return",P(t,o));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",P(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function vt(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,pt("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",A(e.body));case 4:case"end":return t.stop()}}),ht)}function yt(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.query){n.next=2;break}return n.abrupt("return",R("Empty query"));case 2:return n.next=4,x();case 4:return n.prev=4,n.next=7,ft({apiVersion:"1.1",path:"/domains/suggestions",query:(0,L.stringify)(e)});case 7:t=n.sent,n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(4),n.abrupt("return",R(n.t0.message||Pe("Error while fetching server response")));case 13:if(t&&""!==t){n.next=15;break}return n.abrupt("return",R(Pe("Invalid response from the server")));case 15:return n.abrupt("return",N(e,t));case 16:case"end":return n.stop()}}),mt,null,[[4,10]])}var St,bt=function(e){function t(t,n){return w()(w()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(D()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),D()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t(n,r);return(0,h.select)(m).__internalGetDomainSuggestions(o)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t(n,r);return(0,h.select)("core/data").isResolving(m,"__internalGetDomainSuggestions",[o])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[C(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}},Et=!1;St={vendor:"variation2_front"}.vendor,Et||(Et=!0,(0,h.registerStore)(m,{actions:r,controls:dt,reducer:I,resolvers:o,selectors:bt(St)}));var _t="Free",wt="Personal",Ot="Premium",Ct="Business",Tt="Ecommerce",It="automattic/onboard/plans",At=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],xt=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],Pt=[_t,wt,Ot,Ct,Tt],Nt=["free_plan"].concat(At,xt),Rt={USD:{format:"SYMBOL_THEN_AMOUNT",symbol:"$",decimal:2},GBP:{format:"SYMBOL_THEN_AMOUNT",symbol:"£",decimal:2},JPY:{format:"SYMBOL_THEN_AMOUNT",symbol:"¥",decimal:0},BRL:{format:"SYMBOL_THEN_AMOUNT",symbol:"R$",decimal:2},EUR:{format:"SYMBOL_THEN_AMOUNT",symbol:"€",decimal:2},NZD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NZ$",decimal:2},AUD:{format:"SYMBOL_THEN_AMOUNT",symbol:"A$",decimal:2},CAD:{format:"SYMBOL_THEN_AMOUNT",symbol:"C$",decimal:2},IDR:{format:"AMOUNT_THEN_SYMBOL",symbol:"Rp",decimal:0},INR:{format:"AMOUNT_THEN_SYMBOL",symbol:"₹",decimal:0},ILS:{format:"AMOUNT_THEN_SYMBOL",symbol:"₪",decimal:2},RUB:{format:"AMOUNT_THEN_SYMBOL",symbol:"₽",decimal:2},MXN:{format:"SYMBOL_THEN_AMOUNT",symbol:"MX$",decimal:2},SEK:{format:"AMOUNT_THEN_SYMBOL",symbol:"SEK",decimal:2},HUF:{format:"AMOUNT_THEN_SYMBOL",symbol:"Ft",decimal:0},CHF:{format:"AMOUNT_THEN_SYMBOL",symbol:"CHF",decimal:2},CZK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kč",decimal:2},DKK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Dkr",decimal:2},HKD:{format:"AMOUNT_THEN_SYMBOL",symbol:"HK$",decimal:2},NOK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kr",decimal:2},PHP:{format:"AMOUNT_THEN_SYMBOL",symbol:"₱",decimal:2},PLN:{format:"AMOUNT_THEN_SYMBOL",symbol:"PLN",decimal:2},SGD:{format:"SYMBOL_THEN_AMOUNT",symbol:"S$",decimal:2},TWD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NT$",decimal:0},THB:{format:"SYMBOL_THEN_AMOUNT",symbol:"฿",decimal:2},TRY:{format:"AMOUNT_THEN_SYMBOL",symbol:"TL",decimal:2}},Lt=(0,h.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return t.features;default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return t.featuresByType;default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans;default:return e}}}),Ft=function(e){return{type:"SET_FEATURES",features:e}},Dt=function(e){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e}},jt=function(e){return{type:"SET_PLANS",plans:e}},Mt=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},Ut=function(){return{type:"RESET_PLAN"}},kt=window.wp.deprecated,Ht=n.n(kt),Bt=function(e){return e.features},Vt=function(e){return e.featuresByType},Wt=function(e,t){if(t)return(0,h.select)(It).getSupportedPlans().find((function(e){return e.productIds.indexOf(t)>-1}))},Yt=function(e,t){if(t)return(0,h.select)(It).getPlansProducts().find((function(e){return e.productId===t}))},qt=function(e,t){if(t)return(0,h.select)(It).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===t}))},zt=function(e,t){return(0,h.select)(It).getSupportedPlans(t).find((function(e){return"Premium"===e.periodAgnosticSlug}))},Gt=function(e,t){return(0,h.select)(It).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===_t}))},$t=function(e,t){return e.plans},Kt=function(e,t){return e.planProducts},Jt=function(e,t){return Ht()("getPrices",{alternative:"getPlanProduct().price"}),(0,h.select)(It).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},Qt=function(e,t){if(t){var n=(0,h.select)(It).getPlansProducts().find((function(e){return e.pathSlug===t}));if(n)return(0,h.select)(It).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===(null==n?void 0:n.periodAgnosticSlug)}))}},Zt=function(e,t,n){if(t&&n){var r=(0,h.select)(It).getPlansProducts();return t===_t?r.find((function(e){return e.periodAgnosticSlug===t})):r.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},Xt=function(e,t){return t===Tt},en=function(e,t){return t===_t},tn=function(e,t){return 1===t},nn=regeneratorRuntime.mark(un);function rn(e){var t=Rt[e.currency_code],n=12*e.raw_price;return Number.isInteger(n)||(n=n.toFixed(t.decimal)),"AMOUNT_THEN_SYMBOL"===t.format?"".concat(n).concat(t.symbol):"".concat(t.symbol).concat(n)}function on(e){return e.reduce((function(e,t){var n;return e[t.id]={id:t.id,name:t.name,description:t.description,type:null!==(n=t.type)&&void 0!==n?n:"checkbox"},e}),{})}function an(e,t){var n=Nt.reduce((function(n,r){var o=e.find((function(e){return e.product_slug===r}));if(!o)return n;var i,a,u,s=t.find((function(e){return e.productIds.indexOf(o.product_id)>-1}));return n.push({productId:o.product_id,billingPeriod:31===o.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:s.periodAgnosticSlug,storeSlug:o.product_slug,rawPrice:o.raw_price,pathSlug:o.path_slug,price:31===(null==o?void 0:o.bill_period)||0===o.raw_price?o.formatted_price:(i=o,a=Rt[i.currency_code],u=i.raw_price/12,Number.isInteger(u)||(u=u.toFixed(a.decimal)),"AMOUNT_THEN_SYMBOL"===a.format?"".concat(u).concat(a.symbol):"".concat(a.symbol).concat(u)),annualPrice:31===(null==o?void 0:o.bill_period)?rn(o):o.formatted_price}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===At[t]})),r=e.find((function(e){return e.storeSlug===xt[t]}));if(n&&r){var o=12*r.rawPrice,i=n.rawPrice,a=Math.round(100*(1-i/o));n.annualDiscount=a,r.annualDiscount=a}},n=0;n<At.length;n++)t(n)}(n),n}function un(){var e,t,n,r,o,i,a,u=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:"en",s.next=3,ft({path:"/plans",query:(0,L.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,pt("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=s.sent,r=n.body,o=r.plans.map((function(e){return{description:e.tagline,features:e.highlighted_features,storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:e.nonlocalized_short_name===_t,isPopular:e.nonlocalized_short_name===Ot,periodAgnosticSlug:e.nonlocalized_short_name,productIds:e.products.map((function(e){return e.plan_id}))}})),i=an(t,o),a=on(r.features),s.next=13,jt(o);case 13:return s.next=15,Mt(i);case 15:return s.next=17,Ft(a);case 17:return s.next=19,Dt(r.features_by_type);case 19:case"end":return s.stop()}}),nn)}var sn=!1;sn||(sn=!0,(0,h.registerStore)(It,{resolvers:u,actions:i,controls:dt,reducer:Lt,selectors:a}));var cn,ln,fn,pn="automattic/site",dn=n(2220),hn=n.n(dn),mn=n(4582),gn=n.n(mn);!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(cn||(cn={})),function(e){e.INTERNAL="internal"}(ln||(ln={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(fn||(fn={}));var vn=(0,h.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),yn=(0,h.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:vn,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return w()(w()({},e),{},E()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],hn()(e,[n].map(gn())));return w()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?w()(w()({},e),{},E()({},t.siteId,w()(w()({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:fn.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:fn.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:fn.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?w()(w()({},e),{},E()({},t.siteId,t.domains)):e}});function Sn(e){var t=regeneratorRuntime.mark(c),n=regeneratorRuntime.mark(h),r=regeneratorRuntime.mark(m),o=regeneratorRuntime.mark(g),i=regeneratorRuntime.mark(v),a=function(){return{type:"FETCH_NEW_SITE"}},u=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},s=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function c(n){var r,o,i,a,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,o=hn()(n,["authToken"]),i={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},a=w()(w()(w()({},i),o),{},{validate:!1}),t.next=8,ft({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:r});case 8:return c=t.sent,t.next=11,u(c);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,s(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var l=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},f=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},p=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},d=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function h(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f(e);case 2:return t.prev=2,t.next=5,ft({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,p(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,d(e,ln.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function m(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ft({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),r)}function g(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ft({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),o)}function v(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,ft({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,l(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),i,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:v,receiveSiteTitle:l,fetchNewSite:a,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:u,receiveNewSiteFailed:s,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:c,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:h,launchSiteStart:f,launchSiteSuccess:p,launchSiteFailure:d,getCart:m,setCart:g}}var bn=regeneratorRuntime.mark(wn),En=regeneratorRuntime.mark(On);function wn(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,h.dispatch)(pn).fetchSite();case 2:return n.prev=2,n.next=5,ft({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,h.dispatch)(pn).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,h.dispatch)(pn).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),bn,null,[[2,10]])}function On(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,ft({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,h.dispatch)(pn).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),En,null,[[0,8]])}var Cn,Tn=function(e){return e},In=function(e){return e.newSite.data},An=function(e){return e.newSite.error},xn=function(e){return e.newSite.isFetching},Pn=function(e){return e.isFetchingSiteDetails},Nn=function(e){return!!e.newSite.data},Rn=function(e,t){return e.sites[t]},Ln=function(e,t){var n;return null===(n=(0,h.select)(pn).getSite(t))||void 0===n?void 0:n.name},Fn=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===fn.SUCCESS},Dn=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===fn.IN_PROGRESS},jn=function(e,t){return e.sitesDomains[t]},Mn=function(e,t){var n;return null===(n=(0,h.select)(pn).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},Un=function(e,t){var n;return null===(n=(0,h.select)(pn).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))},kn=!1;Cn={client_id:"",client_secret:""},kn||(kn=!0,(0,h.registerStore)(pn,{actions:Sn(Cn),controls:dt,reducer:yn,resolvers:s,selectors:c}));var Hn=window.wp.dataControls,Bn="automattic/launch",Vn="automattic/onboard/plans",Wn={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},Yn=[Wn.Name,Wn.Domain,Wn.Plan,Wn.Final],qn=(0,h.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wn.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isExperimental:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_EXPERIMENTAL"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e},shouldDisplaySuccessView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_SUCCESS_VIEW"===t.type||"DISABLE_SUCCESS_VIEW"!==t.type&&e}}),zn=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},Gn=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},$n=function(e){return{type:"SET_STEP",step:e}},Kn=function(e){return{type:"SET_SITE_TITLE",title:e}},Jn=function(e){return{type:"SET_DOMAIN",domain:e}},Qn=function(){return{type:"UNSET_DOMAIN"}},Zn=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},Xn=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},er=function(e){return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},tr=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function nr(e){return er(e)}var rr=function(){return{type:"OPEN_SIDEBAR"}},or=function(){return{type:"CLOSE_SIDEBAR"}},ir=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},ar=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},ur=function(){return{type:"ENABLE_EXPERIMENTAL"}},sr=function(){return{type:"SHOW_SITE_TITLE_STEP"}},cr=function(){return{type:"SET_MODAL_DISMISSIBLE"}},lr=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},fr=function(){return{type:"SHOW_MODAL_TITLE"}},pr=function(){return{type:"HIDE_MODAL_TITLE"}},dr=function(){return{type:"ENABLE_SUCCESS_VIEW"}},hr=function(){return{type:"DISABLE_SUCCESS_VIEW"}},mr=function(){return Yn},gr=function(){return Wn},vr=function(e){return e},yr=function(e){return!!e.domain&&!e.domain.is_free},Sr=function(e){return e.domain},br=function(e){return e.planProductId},Er=function(e){return(0,h.select)(Vn).getPlanByProductId(e.planProductId)},_r=function(e){var t=e.planProductId,n=(0,h.select)(Vn).isPlanProductFree(t);return t&&!n?e.planProductId:void 0},wr=function(e){return!!Sr(e)||e.confirmedDomainSelection},Or=function(e,t){if(t===Wn.Plan)return!!br(e);if(t===Wn.Name){var n=(0,h.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===Wn.Domain&&(0,h.select)(Bn).hasSelectedDomain()},Cr=function(e){return Yn.slice(0,Yn.length-1).every((function(t){return Or(e,t)}))},Tr=function(e){return Yn.some((function(t){return Or(e,t)}))},Ir=function(e){return Yn.find((function(t){return!Or(e,t)}))},Ar=function(e){return null==e?void 0:e.siteTitle};var xr,Pr,Nr,Rr,Lr,Fr,Dr=(Pr=xr="WP_LAUNCH",Nr=xr+"_TS",Rr={},Lr={getItem:function(e){return Rr.hasOwnProperty(e)?Rr[e]:null},setItem:function(e,t){Rr[e]=String(t)},removeItem:function(e){delete Rr[e]}},Fr=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:Lr,{storageKey:Pr,storage:{getItem:function(e){var t=Fr.getItem(Nr);return t&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(t)&&!new URLSearchParams(window.location.search).has("fresh")?Fr.getItem(e):(Fr.removeItem(Pr),Fr.removeItem(Nr),null)},setItem:function(e,t){Fr.setItem(Nr,JSON.stringify(Date.now())),Fr.setItem(e,t)}}});(0,h.use)(h.plugins.persistence,Dr);var jr=!1;jr||(jr=!0,(0,h.registerStore)(Bn,{actions:l,controls:Hn.controls,reducer:qn,selectors:f,persist:["domain","domainSearch","planProductId","confirmedDomainSelection","isExperimental","isSiteTitleStepVisible","shouldDisplaySuccessView"]}));var Mr="automattic/wpcom-features",Ur={domain:{id:"domain",minSupportedPlan:wt},store:{id:"store",minSupportedPlan:"Ecommerce"},seo:{id:"seo",minSupportedPlan:Ct},plugins:{id:"plugins",minSupportedPlan:Ct},"ad-free":{id:"ad-free",minSupportedPlan:wt},"image-storage":{id:"image-storage",minSupportedPlan:Ot},"video-storage":{id:"video-storage",minSupportedPlan:Ot},support:{id:"support",minSupportedPlan:Ct}},kr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ur;return e},Hr=function(e){return e},Br=function(e,t){var n=Hr(e);if(t.length)return t.reduce((function(e,t){var r=n[t].minSupportedPlan;return Pt.indexOf(r)>Pt.indexOf(e)?r:e}),n[t[0]].minSupportedPlan)},Vr=!1;Vr||(Vr=!0,(0,h.registerStore)(Mr,{controls:Hn.controls,reducer:kr,selectors:p}))},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];if(r.enabled){var a=r,u=Number(new Date),s=u-(n||u);a.diff=s,a.prev=n,a.curr=u,n=u,o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var c=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var i=o[c];e=r.call(a,i),o.splice(c,1),c--}return e})),t.formatArgs.call(a,o);var l=a.log||t.log;l.apply(a,o)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=o,r.extend=i,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function i(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(a)),r(t.skips.map(a).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},8186:function(e,t,n){"use strict";var r=n(7320),o=n(3804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,i=o.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=i[0];var a=i[1];return i=e.value,e.getCurrentValue===t&&e.subscribe===n||(i=t(),a({getCurrentValue:t,subscribe:n,value:i})),o.useDebugValue(i),o.useEffect((function(){function e(){if(!o){var e=t();a((function(o){return o.getCurrentValue!==t||o.subscribe!==n||o.value===e?o:r({},o,{value:e})}))}}var o=!1,i=n(e);return e(),function(){o=!0,i()}}),[t,n]),i}},6718:function(e,t,n){"use strict";e.exports=n(8186)},2884:function(e,t,n){var r=n(3830),o=n(7260);function i(e,t){if(t)if("number"==typeof t)a(e,t);else{t.status_code&&a(e,t.status_code),t.error&&(e.name=s(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)i(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&u(e)}}function a(e,t){e.name=s(o[t]),e.status=e.statusCode=t,u(e)}function u(e){var t=e.status,n=e.method,r=e.path,o=t+" status code",i=n||r;i&&(o+=' for "'),n&&(o+=n),i&&(o+=" "),r&&(o+=r),i&&(o+='"'),e.message=o}function s(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)i(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.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"}},3804:function(e){"use strict";e.exports=window.React}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(3208)}());
|
1 |
+
!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={5270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},4180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},1232:function(e,t,n){var r=n(5270);e.exports=function(e){if(Array.isArray(e))return r(e)}},8111:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},2954:function(e){function t(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=e.apply(n,r);function a(e){t(s,i,o,a,u,"next",e)}function u(e){t(s,i,o,a,u,"throw",e)}a(void 0)}))}}},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},5198:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},4564:function(e,t,n){var r=n(2588),i=n(1549),o=n(6983);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var s=r(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return o(this,n)}}},1260:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},8527:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},2588:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},270:function(e,t,n){var r=n(742);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},1549:function(e){e.exports=function(){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(e){return!1}}},1557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(_n=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(a){r=!0,i=a}finally{try{_n||null==s.return||s.return()}finally{if(r)throw i}}return n}}},7365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},1359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(1260);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},2220:function(e,t,n){var r=n(8834);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},8834:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},6983:function(e,t,n){var r=n(8921),i=n(8111);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},742:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},1068:function(e,t,n){var r=n(4180),i=n(981),o=n(6487),s=n(7365);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()}},5182:function(e,t,n){var r=n(1232),i=n(1557),o=n(6487),s=n(1359);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},4209:function(e,t,n){var r=n(8921);e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},4582:function(e,t,n){var r=n(8921),i=n(4209);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)}},8921:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},6487:function(e,t,n){var r=n(5270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,s,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=g(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5695:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,s;if(Array.isArray(t)){for(s="[",n=0;n<t.length;n++)n&&(s+=","),s+=e(t[n])||"null";return s+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var a=o.push(t)-1,u=Object.keys(t).sort(i&&i(t));for(s="",n=0;n<u.length;n++){var c=u[n],l=e(t[c]);l&&(s&&(s+=","),s+=JSON.stringify(c)+":"+l)}return o.splice(a,1),"{"+s+"}"}}(e)}},7201:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},4983:function(e){"use strict";e.exports=function(e,t,n,r,i,o,s,a){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,s,a],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},6590:function(e,t,n){"use strict";var r=n(7201);e.exports=r},4495:function(e,t,n){"use strict";var r=n(212),i=n(9561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},5079:function(e,t,n){"use strict";var r=n(212),i=n(4495),o=n(713),s=r.rotl32,a=r.sum32,u=r.sum32_5,c=o.ft_1,l=i.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,l),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],f=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var g=~~(r/20),m=u(s(i,5),c(g,o,l,f),d,n[r],p[g]);d=f,f=l,l=s(o,30),o=i,i=m}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],f),this.h[4]=a(this.h[4],d)},f.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(9561),i=n(1285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=u(i.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+n+i+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,u,c){var l=0,p=t;return l+=(p=p+r>>>0)<t?1:0,l+=(p=p+o>>>0)<o?1:0,l+=(p=p+a>>>0)<a?1:0,e+n+i+s+u+(l+=(p=p+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,u,c){return t+r+o+a+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},7010:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=a(n(3804)),o=a(n(3631)),s=a(n(2586));function a(e){return e&&e.__esModule?e:{default:e}}var u=void 0;function c(e,t){var n,s,a,l,p,f,d,g,m=[],h={};for(f=0;f<e.length;f++)if("string"!==(p=e[f]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+u);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],a=f;break}m.push(t[p.value])}else m.push(p.value);return n&&(l=function(e,t){var n,r,i=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}(a,e),d=c(e.slice(a+1,l),t),s=i.default.cloneElement(n,{},d),m.push(s),l<e.length-1&&(g=c(e.slice(l+1),t),m=m.concat(g))),1===m.length?m[0]:(m.forEach((function(e,t){e&&(h["interpolation-child-"+t]=e)})),(0,o.default)(h))}t.Z=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(u=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var o=(0,s.default)(t);try{return c(o,n)}catch(a){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+a.message+"`");return t}}},2586:function(e){"use strict";function t(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},7839:function(e,t,n){var r=n(2699),i=n(1285);function o(e){if(!(this instanceof o))return new o(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=o,i(o,r.EventEmitter),Object.defineProperty(o.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),o.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},o.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},o.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},o.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},o.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},o.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},o.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},o.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,u){u=u||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).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(e);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*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return u.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7320:function(e){"use strict";
|
2 |
/*
|
3 |
object-assign
|
4 |
(c) Sindre Sorhus
|
5 |
@license MIT
|
6 |
+
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var s,a,u=i(e),c=1;c<arguments.length;c++){for(var l in s=Object(arguments[c]))n.call(s,l)&&(u[l]=s[l]);if(t){a=t(s);for(var p=0;p<a.length;p++)r.call(s,a[p])&&(u[a[p]]=s[a[p]])}}return u}},8650:function(e){var t,n=window.ProgressEvent,r=!!n;try{t=new n("loaded"),r="loaded"===t.type,t=null}catch(i){r=!1}e.exports=r?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},5527:function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(2493),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},9126:function(e,t,n){"use strict";var r=n(6845),i=n(9166),o=n(5527);e.exports={formats:o,parse:i,stringify:r}},9166:function(e,t,n){"use strict";var r=n(2493),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=a?o.slice(0,a.index):o,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var p=0;n.depth>0&&null!==(a=s.exec(o))&&p<n.depth;){if(p+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+o.slice(a.index)+"]"),function(e,t,n,r){for(var i=r?t:u(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&a!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(s=[])[l]=i:s[c]=i:s={0:i}}i=s}return i}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,c={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=l.split(t.delimiter,p),d=-1,g=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?g="utf-8":"utf8=%26%2310003%3B"===f[n]&&(g="iso-8859-1"),d=n,n=f.length);for(n=0;n<f.length;++n)if(n!==d){var m,h,y=f[n],v=y.indexOf("]="),b=-1===v?y.indexOf("="):v+1;-1===b?(m=t.decoder(y,s.decoder,g,"key"),h=t.strictNullHandling?null:""):(m=t.decoder(y.slice(0,b),s.decoder,g,"key"),h=r.maybeMap(u(y.slice(b+1),t),(function(e){return t.decoder(e,s.decoder,g,"value")}))),h&&t.interpretNumericEntities&&"iso-8859-1"===g&&(h=a(h)),y.indexOf("[]=")>-1&&(h=o(h)?[h]:h),i.call(c,m)?c[m]=r.combine(c[m],h):c[m]=h}return c}(e,n):e,p=n.plainObjects?Object.create(null):{},f=Object.keys(l),d=0;d<f.length;++d){var g=f[d],m=c(g,l[g],n,"string"==typeof e);p=r.merge(p,m,n)}return r.compact(p)}},6845:function(e,t,n){"use strict";var r=n(2493),i=n(5527),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,p=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,i,o,s,u,l,p,d,g,m,h,y){var v,b=t;if("function"==typeof l?b=l(n,b):b instanceof Date?b=g(b):"comma"===i&&a(b)&&(b=r.maybeMap(b,(function(e){return e instanceof Date?g(e):e})).join(",")),null===b){if(o)return u&&!h?u(n,f.encoder,y,"key"):n;b=""}if("string"==typeof(v=b)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(b))return u?[m(h?n:u(n,f.encoder,y,"key"))+"="+m(u(b,f.encoder,y,"value"))]:[m(n)+"="+m(String(b))];var S,E=[];if(void 0===b)return E;if(a(l))S=l;else{var _=Object.keys(b);S=p?_.sort(p):_}for(var w=0;w<S.length;++w){var C=S[w],O=b[C];if(!s||null!==O){var P=a(b)?"function"==typeof i?i(n,C):n:n+(d?"."+C:"["+C+"]");c(E,e(O,P,i,o,s,u,l,p,d,g,m,h,y))}}return E};e.exports=function(e,t){var n,r=e,u=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],s=f.filter;return("function"==typeof e.filter||a(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof u.filter?r=(0,u.filter)("",r):a(u.filter)&&(n=u.filter);var l,p=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=s[l];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var m=0;m<n.length;++m){var h=n[m];u.skipNulls&&null===r[h]||c(p,d(r[h],h,g,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var y=p.join(u.delimiter),v=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),y.length>0?v+y:""}},2493:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],i=0;i<t.length;++i)for(var o=t[i],s=o.obj[o.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],l=s[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:s,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var i=[],o=0;o<r.length;++o)void 0!==r[o]&&i.push(r[o]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",s=0;s<i.length;++s){var a=i.charCodeAt(s);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=i.charAt(s):a<128?o+=r[a]:a<2048?o+=r[192|a>>6]+r[128|63&a]:a<55296||a>=57344?o+=r[224|a>>12]+r[128|a>>6&63]+r[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&i.charCodeAt(s)),o+=r[240|a>>18]+r[128|a>>12&63]+r[128|a>>6&63]+r[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(t(e[i]));return r}return t(e)},merge:function e(r,o,s){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(s&&(s.plainObjects||s.allowPrototypes)||!t.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var a=r;return n(r)&&!n(o)&&(a=i(r,s)),n(r)&&n(o)?(o.forEach((function(n,i){if(t.call(r,i)){var o=r[i];o&&"object"==typeof o&&n&&"object"==typeof n?r[i]=e(o,n,s):r.push(n)}else r[i]=n})),r):Object.keys(o).reduce((function(n,r){var i=o[r];return t.call(n,r)?n[r]=e(n[r],i,s):n[r]=i,n}),a)}}},3631:function(e,t,n){"use strict";var r=n(3804),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(7201),s=n(4983),a=n(6590),u="function"==typeof Symbol&&Symbol.iterator;function c(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function l(e,t,n,r){var o,a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===i)return n(r,e,""===t?"."+c(e,0):t),1;var p=0,f=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=l(o=e[d],f+c(o,d),n,r);else{var g=function(e){var t=e&&(u&&e[u]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(g){0;for(var m,h=g.call(e),y=0;!(m=h.next()).done;)p+=l(o=m.value,f+c(o,y++),n,r)}else if("object"===a){0;var v=""+e;s(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return p}var p=/\/+/g;function f(e){return(""+e).replace(p,"$&/")}var d,g,m=h,h=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},y=function(e){var t=this;s(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function b(e,t,n){var i,s,a=e.result,u=e.keyPrefix,c=e.func,l=e.context,p=c.call(l,t,e.count++);Array.isArray(p)?S(p,a,n,o.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(i=p,s=u+(!p.key||t&&t.key===p.key?"":f(p.key)+"/")+n,p=r.cloneElement(i,{key:s},void 0!==i.props?i.props.children:void 0)),a.push(p))}function S(e,t,n,r,i){var o="";null!=n&&(o=f(n)+"/");var s=v.getPooled(t,o,r,i);!function(e,t,n){null==e||l(e,"",t,n)}(e,b,s),v.release(s)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},(g=v).instancePool=[],g.getPooled=d||m,g.poolSize||(g.poolSize=10),g.release=y;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return a(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return a(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;s(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)S(e[n],t,n,o.thatReturnsArgument);return t}},1467:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,{fetchDomainSuggestions:function(){return R},receiveCategories:function(){return T},receiveDomainAvailability:function(){return x},receiveDomainSuggestionsError:function(){return F},receiveDomainSuggestionsSuccess:function(){return A}});var i={};n.r(i),n.d(i,{__internalGetDomainSuggestions:function(){return bt},getCategories:function(){return vt},isAvailable:function(){return yt}});var o={};n.r(o),n.d(o,{resetPlan:function(){return kt},setFeatures:function(){return Lt},setFeaturesByType:function(){return Nt},setPlanProducts:function(){return Mt},setPlans:function(){return jt}});var s={};n.r(s),n.d(s,{getDefaultFreePlan:function(){return zt},getDefaultPaidPlan:function(){return Kt},getFeatures:function(){return Bt},getFeaturesByType:function(){return Ht},getPlanByPath:function(){return Yt},getPlanByPeriodAgnosticSlug:function(){return Wt},getPlanByProductId:function(){return $t},getPlanProduct:function(){return Qt},getPlanProductById:function(){return Gt},getPlansProducts:function(){return Zt},getPrices:function(){return Jt},getSupportedPlans:function(){return qt},isPlanEcommerce:function(){return Xt},isPlanFree:function(){return en},isPlanProductFree:function(){return tn}});var a={};n.r(a),n.d(a,{getSupportedPlans:function(){return fn}});var u={};n.r(u),n.d(u,{getSite:function(){return Tn},getSiteDomains:function(){return Rn}});var c={};n.r(c),n.d(c,{getNewSite:function(){return Fn},getNewSiteError:function(){return Dn},getPrimarySiteDomain:function(){return Hn},getSite:function(){return Mn},getSiteDomains:function(){return Bn},getSiteSubdomain:function(){return $n},getSiteTitle:function(){return kn},getState:function(){return An},isFetchingSite:function(){return Ln},isFetchingSiteDetails:function(){return Nn},isNewSite:function(){return jn},isSiteLaunched:function(){return Un},isSiteLaunching:function(){return Vn}});var l={};n.r(l),n.d(l,{closeFocusedLaunch:function(){return pr},closeSidebar:function(){return cr},confirmDomainSelection:function(){return rr},disablePersistentSuccessView:function(){return br},enableExperimental:function(){return fr},enablePersistentSuccessView:function(){return vr},hideModalTitle:function(){return yr},openFocusedLaunch:function(){return lr},openSidebar:function(){return ur},setDomain:function(){return tr},setDomainSearch:function(){return ir},setModalDismissible:function(){return gr},setPlanProductId:function(){return or},setSidebarFullscreen:function(){return Yn},setSiteTitle:function(){return er},setStep:function(){return Xn},showModalTitle:function(){return hr},showSiteTitleStep:function(){return dr},unsetDomain:function(){return nr},unsetModalDismissible:function(){return mr},unsetPlanProductId:function(){return sr},unsetSidebarFullscreen:function(){return Qn},updatePlan:function(){return ar}});var p={};n.r(p),n.d(p,{getCurrentStep:function(){return Lr},getFirstIncompleteStep:function(){return Fr},getLaunchSequence:function(){return Sr},getLaunchStep:function(){return Er},getPaidPlanProductId:function(){return Ir},getSelectedDomain:function(){return Cr},getSelectedPlan:function(){return Pr},getSelectedPlanProductId:function(){return Or},getSiteTitle:function(){return Dr},getState:function(){return _r},hasPaidDomain:function(){return wr},hasSelectedDomain:function(){return Tr},isFlowCompleted:function(){return xr},isFlowStarted:function(){return Ar},isStepCompleted:function(){return Rr}});var f={};n.r(f),n.d(f,{getAllFeatures:function(){return Kr},getRecommendedPlanSlug:function(){return zr}});var d,g=window.wp.data,m="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(d||(d={}));var h,y,v,b,S=n(1260),E=n.n(S),_=n(417),w=n.n(_),C=n(5695),O=n.n(C)(),P={state:d.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},I=(0,g.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?w()(w()({},e),{},{state:d.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?w()(w()({},e),{},{state:d.Success,data:w()(w()({},e.data),{},E()({},O(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?w()(w()({},e),{},{state:d.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?w()(w()({},e),{},E()({},t.domainName,t.availability)):e}}),T=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},R=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},x=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},A=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},F=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}},D=n(9126),L=n(5182),N=n.n(L),j=n(8049),M=n.n(j),k=n(7010);h={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},y=["(","?"],v={")":["("],":":["?","?:"]},b=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var U={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function V(e){var t=function(e){for(var t,n,r,i,o=[],s=[];t=e.match(b);){for(n=t[0],(r=e.substr(0,t.index).trim())&&o.push(r);i=s.pop();){if(v[n]){if(v[n][0]===i){n=v[n][1]||n;break}}else if(y.indexOf(i)>=0||h[i]<h[n]){s.push(i);break}o.push(i)}v[n]||s.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&o.push(e),o.concat(s.reverse())}(e);return function(e){return function(e,t){var n,r,i,o,s,a,u=[];for(n=0;n<e.length;n++){if(s=e[n],o=U[s]){for(r=o.length,i=Array(r);r--;)i[r]=u.pop();try{a=o.apply(null,i)}catch(c){return c}}else a=t.hasOwnProperty(s)?t[s]:+s;u.push(a)}return u[0]}(t,e)}}var B={contextDelimiter:"",onMissingKey:null};function H(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},B)this.options[n]=void 0!==t&&n in t?t[n]:B[n]}H.prototype.getPluralForm=function(e,t){var n,r,i,o=this.pluralForms[e];return o||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=function(e){var t=V(e);return function(e){return+t({n:e})}}(r)),o=this.pluralForms[e]=i),o(t)},H.prototype.dcnpgettext=function(e,t,n,r,i){var o,s,a;return o=void 0===i?0:this.getPluralForm(e,i),s=n,t&&(s=t+this.options.contextDelimiter+n),(a=this.data[e][s])&&a[o]?a[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)};var $=n(7839),G=n.n($),W=n(5079),K=n.n(W),z=n(2699),q=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function Z(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(q,(function(){var e,r,i,o,s;return e=arguments[3],r=arguments[5],"%"===(o=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(s=t[0][r]):(void 0===e&&(e=n),n++,s=t[e-1]),"f"===o?s=parseFloat(s)||0:"d"===o&&(s=parseInt(s)||0),void 0!==i&&("f"===o?s=s.toFixed(i):"s"===o&&(s=s.substr(0,i))),null!=s?s:"")}))}function J(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,s=void 0===r?",":r,a=void 0===n?".":n,u="";return(u=(o?
|
7 |
/*
|
8 |
* Exposes number format capability
|
9 |
*
|
11 |
* @license See CREDITS.md
|
12 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
13 |
*/
|
14 |
+
function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(u[0]=u[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(u[1]||"").length<o&&(u[1]=u[1]||"",u[1]+=new Array(o-u[1].length+1).join("0")),u.join(a)}var Y=M()("i18n-calypso"),Q="number_format_decimals",X="number_format_thousands_sep",ee="messages",te=[function(e){return e}],ne={};function re(){ue.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function ie(e){return Array.prototype.slice.call(e)}function oe(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&re("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",ie(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&re("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",ie(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function se(e,t){return e.dcnpgettext(ee,t.context,t.original,t.plural,t.count)}function ae(e,t){for(var n=te.length-1;n>=0;n--){var r=te[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return se(e.state.tannin,r)}return null}function ue(){if(!(this instanceof ue))return new ue;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:G()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new z.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}ue.throwErrors=!1,ue.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},ue.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},ue.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},ue.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return J(e,n,r,i)},ue.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},ue.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==ne[n+e])return ne[n+e];var r=K()().update(e).digest("hex");return ne[n+e]=t?r.substr(0,t):r},s=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)te.push(s(!1));else{var a=i.substr(5).indexOf("-");if(a<0){var u=Number(i.substr(5));te.push(s(u))}else for(var c=Number(i.substr(5,a)),l=Number(i.substr(6+a)),p=c;p<=l;p++)te.push(s(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new H(E()({},ee,this.state.locale)),this.state.numberFormatSettings.decimal_point=se(this.state.tannin,oe([Q])),this.state.numberFormatSettings.thousands_sep=se(this.state.tannin,oe([X])),this.state.numberFormatSettings.decimal_point===Q&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===X&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},ue.prototype.getLocale=function(){return this.state.locale},ue.prototype.getLocaleSlug=function(){return this.state.localeSlug},ue.prototype.getLocaleVariant=function(){return this.state.localeVariant},ue.prototype.isRtl=function(){return"rtl"===this.state.textDirection},ue.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},ue.prototype.hasTranslation=function(){return!!ae(this,oe(arguments))},ue.prototype.translate=function(){var e=oe(arguments),t=ae(this,e);if(t||(t=se(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=Z.apply(void 0,N()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=(0,k.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},ue.prototype.reRenderTranslations=function(){Y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},ue.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},ue.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var ce=ue,le=n(85),pe=n.n(le),fe=n(5198),de=n.n(fe),ge=n(8111),me=n.n(ge),he=n(270),ye=n.n(he),ve=n(4564),be=n.n(ve),Se=window.wp.element,Ee=n(3804),_e=n.n(Ee);var we=n(1068),Ce=n.n(we);var Oe=n(8527),Pe=n.n(Oe),Ie=n(6718),Te=window.wp.compose;var Re=new ce,xe=Re.numberFormat.bind(Re),Ae=Re.translate.bind(Re),Fe=(Re.configure.bind(Re),Re.setLocale.bind(Re),Re.getLocale.bind(Re),Re.getLocaleSlug.bind(Re),Re.getLocaleVariant.bind(Re),Re.isRtl.bind(Re),Re.addTranslations.bind(Re),Re.reRenderTranslations.bind(Re),Re.registerComponentUpdateHook.bind(Re),Re.registerTranslateHook.bind(Re),Re.state,Re.stateObserver,Re.on.bind(Re),Re.off.bind(Re),Re.emit.bind(Re),function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)}}(Re),function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Re),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,Ie.useSubscription)(t)}var r=(0,Te.createHigherOrderComponent)((function(e){return(0,Ee.forwardRef)((function(t,r){var i=n();return(0,Se.createElement)(e,Pe()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Re)),De=(Fe.useRtl,Fe.withRtl,n(2954)),Le=n.n(De),Ne="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),je=new Uint8Array(16);function Me(){if(!Ne)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ne(je)}for(var ke=[],Ue=0;Ue<256;++Ue)ke[Ue]=(Ue+256).toString(16).substr(1);var Ve=function(e,t){var n=t||0,r=ke;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var Be,He=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||Me)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||Ve(i)},$e=n(2884),Ge=n.n($e),We=n(8650),Ke=n.n(We),ze=M()("wpcom-proxy-request"),qe="https://public-api.wordpress.com",Ze=window.location.protocol+"//"+window.location.host,Je=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),Ye=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),Qe=null,Xe=!1,et={},tt=!!window.ProgressEvent&&!!window.FormData;ze('using "origin": %o',Ze);var nt=function(e,t){var n=Object.assign({},e);ze("request(%o)",n),Qe||at();var r=He();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=tt,n.method=String(n.method||"GET").toUpperCase(),ze("params object: %o",n);var i=new window.XMLHttpRequest;if(i.params=n,et[r]=i,"function"==typeof t){var o=!1,s=function(e){if(!o){o=!0;var n=e.error||e.err||e;ze("error: ",n),ze("headers: ",e.headers),t(n,null,e.headers)}};i.addEventListener("load",(function(e){if(!o){o=!0;var n=e.response||i.response;ze("body: ",n),ze("headers: ",e.headers),t(null,n,e.headers)}})),i.addEventListener("abort",s),i.addEventListener("error",s)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,Xe?it(n):(ze("buffering API request since proxying <iframe> is not yet loaded"),Be.push(n)),i},rt=function(e,t){return"function"==typeof t?nt(e,t):new Promise((function(t,n){nt(e,(function(e,r){e?n(e):t(r)}))}))};function it(e){ze("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!Ye)return;for(var t=0;t<e.length;t++){var n=st(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),Qe.contentWindow.postMessage(Je?JSON.stringify(e):e,qe)}function ot(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function st(e){return ot(e)?e:"object"==typeof e&&ot(e.fileContents)?e.fileContents:null}function at(){ze("install()"),Qe&&(ze("uninstall()"),window.removeEventListener("message",ut),document.body.removeChild(Qe),Xe=!1,Qe=null),Be=[],window.addEventListener("message",ut),(Qe=document.createElement("iframe")).src=qe+"/wp-admin/rest-proxy/?v=2.0#"+Ze,Qe.style.display="none",document.body.appendChild(Qe)}function ut(e){if(ze("onmessage"),e.origin===qe)if(e.source===Qe.contentWindow){var t=e.data;if(!t)return ze("no `data`, bailing");if("ready"!==t){if(Je&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){ze('got "progress" event: %o',e);var t=et[e.callbackId];if(t){var n=new(Ke())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return ze("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in et))return ze("bailing, no matching request with callback: %o",n);var r,i=et[n],o=i.params,s=t[0],a=t[1],u=t[2];if(207===a||delete et[n],o.metaAPI?a="metaAPIupdated"===s?200:500:ze("got %o status code for URL: %o",a,o.path),"object"==typeof u)if(u.status=a,r=u["Content-Type"],/^application[/]x-ndjson($|;)/.test(r))return void ct(i,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),u);if(a&&2===Math.floor(a/100))!function(e,t,n){var r=new(Ke())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(i,s,u);else ct(i,Ge()(o,a,s),u)}else!function(){if(ze('proxy <iframe> "load" event'),Xe=!0,Be){for(var e=0;e<Be.length;e++)it(Be[e]);Be=null}}()}else ze("ignoring message... iframe elements do not match");else ze("ignoring message... %o !== %o",e.origin,qe)}function ct(e,t,n){var r=new(Ke())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}var lt,pt=rt,ft=function(e){return{type:"WPCOM_REQUEST",request:e}},dt=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},gt={WPCOM_REQUEST:function(e){var t=e.request;return pt(t)},FETCH_AND_PARSE:(lt=Le()(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return lt.apply(this,arguments)}),RELOAD_PROXY:function(){at()},REQUEST_ALL_BLOGS_ACCESS:function(){return rt({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}},mt=regeneratorRuntime.mark(vt),ht=regeneratorRuntime.mark(bt),yt=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,dt(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",x(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",x(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function vt(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,dt("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",T(e.body));case 4:case"end":return t.stop()}}),mt)}function bt(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.query){n.next=2;break}return n.abrupt("return",F("Empty query"));case 2:return n.next=4,R();case 4:return n.prev=4,n.next=7,ft({apiVersion:"1.1",path:"/domains/suggestions",query:(0,D.stringify)(e)});case 7:t=n.sent,n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(4),n.abrupt("return",F(n.t0.message||Ae("Error while fetching server response")));case 13:if(t&&""!==t){n.next=15;break}return n.abrupt("return",F(Ae("Invalid response from the server")));case 15:return n.abrupt("return",A(e,t));case 16:case"end":return n.stop()}}),ht,null,[[4,10]])}var St,Et=function(e){function t(t,n){return w()(w()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(N()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),N()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,g.select)(m).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,g.select)("core/data").isResolving(m,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[O(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}},_t=!1;St={vendor:"variation2_front"}.vendor,_t||(_t=!0,(0,g.registerStore)(m,{actions:r,controls:gt,reducer:I,resolvers:i,selectors:Et(St)}));var wt="Free",Ct="Personal",Ot="Premium",Pt="Business",It="Ecommerce",Tt="automattic/onboard/plans",Rt=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],xt=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],At=[wt,Ct,Ot,Pt,It],Ft=["free_plan"].concat(Rt,xt),Dt=(0,g.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return t.features;default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return t.featuresByType;default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans;default:return e}}}),Lt=function(e){return{type:"SET_FEATURES",features:e}},Nt=function(e){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e}},jt=function(e){return{type:"SET_PLANS",plans:e}},Mt=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},kt=function(){return{type:"RESET_PLAN"}},Ut=window.wp.deprecated,Vt=n.n(Ut),Bt=function(e){return e.features},Ht=function(e){return e.featuresByType},$t=function(e,t){if(t)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.productIds.indexOf(t)>-1}))},Gt=function(e,t){if(t)return(0,g.select)(Tt).getPlansProducts().find((function(e){return e.productId===t}))},Wt=function(e,t){if(t)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===t}))},Kt=function(e,t){return(0,g.select)(Tt).getSupportedPlans(t).find((function(e){return"Premium"===e.periodAgnosticSlug}))},zt=function(e,t){return(0,g.select)(Tt).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===wt}))},qt=function(e,t){return e.plans},Zt=function(e,t){return e.planProducts},Jt=function(e,t){return Vt()("getPrices",{alternative:"getPlanProduct().price"}),(0,g.select)(Tt).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},Yt=function(e,t){if(t){var n=(0,g.select)(Tt).getPlansProducts().find((function(e){return e.pathSlug===t}));if(n)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===(null==n?void 0:n.periodAgnosticSlug)}))}},Qt=function(e,t,n){if(t&&n){var r=(0,g.select)(Tt).getPlansProducts();return t===wt?r.find((function(e){return e.periodAgnosticSlug===t})):r.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},Xt=function(e,t){return t===It},en=function(e,t){return t===wt},tn=function(e,t){return 1===t},nn={AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function rn(e){return nn[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}function on(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=rn(t);if(!r||isNaN(e))return null;var i=w()(w()({},r),n),o=i.decimal,s=i.grouping,a=i.precision,u=i.symbol,c=e<0?"-":"",l=xe(Math.abs(e),{decimals:a,thousandsSep:s,decPoint:o});return n.stripZeros&&(l=sn(l,o)),"".concat(c).concat(u).concat(l)}function sn(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}var an=regeneratorRuntime.mark(fn);function un(e){return on(12*e.raw_price,e.currency_code)}function cn(e){return on(e.raw_price,e.currency_code)}function ln(e){return e.reduce((function(e,t){var n;return e[t.id]={id:t.id,name:t.name,description:t.description,type:null!==(n=t.type)&&void 0!==n?n:"checkbox"},e}),{})}function pn(e,t){var n=Ft.reduce((function(n,r){var i=e.find((function(e){return e.product_slug===r}));if(!i)return n;var o,s=t.find((function(e){return e.productIds.indexOf(i.product_id)>-1}));return n.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:s.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?cn(i):(o=i,on(o.raw_price/12,o.currency_code)),annualPrice:31===(null==i?void 0:i.bill_period)?un(i):cn(i)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===Rt[t]})),r=e.find((function(e){return e.storeSlug===xt[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,s=Math.round(100*(1-o/i));n.annualDiscount=s,r.annualDiscount=s}},n=0;n<Rt.length;n++)t(n)}(n),n}function fn(){var e,t,n,r,i,o,s,a=arguments;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:"en",u.next=3,ft({path:"/plans",query:(0,D.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=u.sent,u.next=6,dt("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=u.sent,r=n.body,i=r.plans.map((function(e){return{description:e.tagline,features:e.highlighted_features,storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:e.nonlocalized_short_name===wt,isPopular:e.nonlocalized_short_name===Ot,periodAgnosticSlug:e.nonlocalized_short_name,productIds:e.products.map((function(e){return e.plan_id}))}})),o=pn(t,i),s=ln(r.features),u.next=13,jt(i);case 13:return u.next=15,Mt(o);case 15:return u.next=17,Lt(s);case 17:return u.next=19,Nt(r.features_by_type);case 19:case"end":return u.stop()}}),an)}var dn=!1;dn||(dn=!0,(0,g.registerStore)(Tt,{resolvers:a,actions:o,controls:gt,reducer:Dt,selectors:s}));var gn,mn,hn,yn="automattic/site",vn=n(2220),bn=n.n(vn),Sn=n(4582),En=n.n(Sn);!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(gn||(gn={})),function(e){e.INTERNAL="internal"}(mn||(mn={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(hn||(hn={}));var wn=(0,g.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),Cn=(0,g.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:wn,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return w()(w()({},e),{},E()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],bn()(e,[n].map(En())));return w()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?w()(w()({},e),{},E()({},t.siteId,w()(w()({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?w()(w()({},e),{},E()({},t.siteId,t.domains)):e}});function On(e){var t=regeneratorRuntime.mark(c),n=regeneratorRuntime.mark(g),r=regeneratorRuntime.mark(m),i=regeneratorRuntime.mark(h),o=regeneratorRuntime.mark(y),s=function(){return{type:"FETCH_NEW_SITE"}},a=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},u=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function c(n){var r,i,o,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,i=bn()(n,["authToken"]),o={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},s=w()(w()(w()({},o),i),{},{validate:!1}),t.next=8,ft({path:"/sites/new",apiVersion:"1.1",method:"post",body:s,token:r});case 8:return c=t.sent,t.next=11,a(c);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,u(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var l=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},p=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},f=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},d=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function g(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p(e);case 2:return t.prev=2,t.next=5,ft({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,f(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,d(e,mn.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function m(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ft({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),r)}function h(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ft({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),i)}function y(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,ft({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,l(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),o,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:y,receiveSiteTitle:l,fetchNewSite:s,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:a,receiveNewSiteFailed:u,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:c,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:g,launchSiteStart:p,launchSiteSuccess:f,launchSiteFailure:d,getCart:m,setCart:h}}var Pn=regeneratorRuntime.mark(Tn),In=regeneratorRuntime.mark(Rn);function Tn(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,g.dispatch)(yn).fetchSite();case 2:return n.prev=2,n.next=5,ft({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,g.dispatch)(yn).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,g.dispatch)(yn).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),Pn,null,[[2,10]])}function Rn(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,ft({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,g.dispatch)(yn).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),In,null,[[0,8]])}var xn,An=function(e){return e},Fn=function(e){return e.newSite.data},Dn=function(e){return e.newSite.error},Ln=function(e){return e.newSite.isFetching},Nn=function(e){return e.isFetchingSiteDetails},jn=function(e){return!!e.newSite.data},Mn=function(e,t){return e.sites[t]},kn=function(e,t){var n;return null===(n=(0,g.select)(yn).getSite(t))||void 0===n?void 0:n.name},Un=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===hn.SUCCESS},Vn=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===hn.IN_PROGRESS},Bn=function(e,t){return e.sitesDomains[t]},Hn=function(e,t){var n;return null===(n=(0,g.select)(yn).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},$n=function(e,t){var n;return null===(n=(0,g.select)(yn).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))},Gn=!1;xn={client_id:"",client_secret:""},Gn||(Gn=!0,(0,g.registerStore)(yn,{actions:On(xn),controls:gt,reducer:Cn,resolvers:u,selectors:c}));var Wn=window.wp.dataControls,Kn="automattic/launch",zn="automattic/onboard/plans",qn={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},Zn=[qn.Name,qn.Domain,qn.Plan,qn.Final],Jn=(0,g.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isExperimental:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_EXPERIMENTAL"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e},shouldDisplaySuccessView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_SUCCESS_VIEW"===t.type||"DISABLE_SUCCESS_VIEW"!==t.type&&e}}),Yn=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},Qn=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},Xn=function(e){return{type:"SET_STEP",step:e}},er=function(e){return{type:"SET_SITE_TITLE",title:e}},tr=function(e){return{type:"SET_DOMAIN",domain:e}},nr=function(){return{type:"UNSET_DOMAIN"}},rr=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},ir=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},or=function(e){return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},sr=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function ar(e){return or(e)}var ur=function(){return{type:"OPEN_SIDEBAR"}},cr=function(){return{type:"CLOSE_SIDEBAR"}},lr=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},pr=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},fr=function(){return{type:"ENABLE_EXPERIMENTAL"}},dr=function(){return{type:"SHOW_SITE_TITLE_STEP"}},gr=function(){return{type:"SET_MODAL_DISMISSIBLE"}},mr=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},hr=function(){return{type:"SHOW_MODAL_TITLE"}},yr=function(){return{type:"HIDE_MODAL_TITLE"}},vr=function(){return{type:"ENABLE_SUCCESS_VIEW"}},br=function(){return{type:"DISABLE_SUCCESS_VIEW"}},Sr=function(){return Zn},Er=function(){return qn},_r=function(e){return e},wr=function(e){return!!e.domain&&!e.domain.is_free},Cr=function(e){return e.domain},Or=function(e){return e.planProductId},Pr=function(e){return(0,g.select)(zn).getPlanByProductId(e.planProductId)},Ir=function(e){var t=e.planProductId,n=(0,g.select)(zn).isPlanProductFree(t);return t&&!n?e.planProductId:void 0},Tr=function(e){return!!Cr(e)||e.confirmedDomainSelection},Rr=function(e,t){if(t===qn.Plan)return!!Or(e);if(t===qn.Name){var n=(0,g.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===qn.Domain&&(0,g.select)(Kn).hasSelectedDomain()},xr=function(e){return Zn.slice(0,Zn.length-1).every((function(t){return Rr(e,t)}))},Ar=function(e){return Zn.some((function(t){return Rr(e,t)}))},Fr=function(e){return Zn.find((function(t){return!Rr(e,t)}))},Dr=function(e){return null==e?void 0:e.siteTitle},Lr=function(e){return e.step};var Nr,jr,Mr,kr,Ur,Vr,Br=(jr=Nr="WP_LAUNCH",Mr=Nr+"_TS",kr={},Ur={getItem:function(e){return kr.hasOwnProperty(e)?kr[e]:null},setItem:function(e,t){kr[e]=String(t)},removeItem:function(e){delete kr[e]}},Vr=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:Ur,{storageKey:jr,storage:{getItem:function(e){var t=Vr.getItem(Mr);return t&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(t)&&!new URLSearchParams(window.location.search).has("fresh")?Vr.getItem(e):(Vr.removeItem(jr),Vr.removeItem(Mr),null)},setItem:function(e,t){Vr.setItem(Mr,JSON.stringify(Date.now())),Vr.setItem(e,t)}}});(0,g.use)(g.plugins.persistence,Br);var Hr=!1;Hr||(Hr=!0,(0,g.registerStore)(Kn,{actions:l,controls:Wn.controls,reducer:Jn,selectors:p,persist:["domain","domainSearch","planProductId","confirmedDomainSelection","isExperimental","isSiteTitleStepVisible","shouldDisplaySuccessView"]}));var $r="automattic/wpcom-features",Gr={domain:{id:"domain",minSupportedPlan:Ct},store:{id:"store",minSupportedPlan:"Ecommerce"},seo:{id:"seo",minSupportedPlan:Pt},plugins:{id:"plugins",minSupportedPlan:Pt},"ad-free":{id:"ad-free",minSupportedPlan:Ct},"image-storage":{id:"image-storage",minSupportedPlan:Ot},"video-storage":{id:"video-storage",minSupportedPlan:Ot},support:{id:"support",minSupportedPlan:Pt}},Wr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gr;return e},Kr=function(e){return e},zr=function(e,t){var n=Kr(e);if(t.length)return t.reduce((function(e,t){var r=n[t].minSupportedPlan;return At.indexOf(r)>At.indexOf(e)?r:e}),n[t[0]].minSupportedPlan)},qr=!1;qr||(qr=!0,(0,g.registerStore)($r,{controls:Wn.controls,reducer:Wr,selectors:f}))},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var o=i[c];e=r.call(s,o),i.splice(c,1),c--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},8186:function(e,t,n){"use strict";var r=n(7320),i=n(3804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var s=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),s({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();s((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},6718:function(e,t,n){"use strict";e.exports=n(8186)},2884:function(e,t,n){var r=n(3830),i=n(7260);function o(e,t){if(t)if("number"==typeof t)s(e,t);else{t.status_code&&s(e,t.status_code),t.error&&(e.name=u(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&a(e)}}function s(e,t){e.name=u(i[t]),e.status=e.statusCode=t,a(e)}function a(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function u(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.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"}},3804:function(e){"use strict";e.exports=window.React}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(1467)}());
|
editor-gutenboarding-launch/dist/editor-gutenboarding-launch.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '5319dcaff88943e9b27a7214d56b05e5');
|
editor-gutenboarding-launch/dist/editor-gutenboarding-launch.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},232:function(e,t,n){var r=n(270);e.exports=function(e){if(Array.isArray(e))return r(e)}},954:function(e){function t(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var s=e.apply(n,r);function a(e){t(s,o,i,a,u,"next",e)}function u(e){t(s,o,i,a,u,"throw",e)}a(void 0)}))}}},260:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(_n=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(a){r=!0,o=a}finally{try{_n||null==s.return||s.return()}finally{if(r)throw o}}return n}}},365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(260);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},68:function(e,t,n){var r=n(180),o=n(981),i=n(487),s=n(365);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||s()}},182:function(e,t,n){var r=n(232),o=n(557),i=n(487),s=n(359);e.exports=function(e){return r(e)||o(e)||i(e)||s()}},487:function(e,t,n){var r=n(270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,s,c;if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=u(e))>0&&s.length>o&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):p(o,o.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),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(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=p(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var 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(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return h(this,e,!0)},i.prototype.rawListeners=function(e){return h(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},495:function(e,t,n){"use strict";var r=n(212),o=n(561);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}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(e<<=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++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>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}},32:function(e,t,n){"use strict";var r=n(212),o=n(495),i=n(713),s=n(561),a=r.sum32,u=r.sum32_4,c=r.sum32_5,l=i.ch32,f=i.maj32,h=i.s0_256,d=i.s1_256,p=i.g0_256,v=i.g1_256,g=o.BlockHash,m=[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 y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(v(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],w=this.h[5],C=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var _=c(b,d(y),l(y,w,C),this.k[r],n[r]),F=a(h(o),f(o,i,g));b=C,C=w,w=y,y=a(m,_),m=g,g=i,i=o,o=a(_,F)}this.h[0]=a(this.h[0],o),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],w),this.h[6]=a(this.h[6],C),this.h[7]=a(this.h[7],b)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?s(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(561),o=n(285);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(e,o)?(s=65536+((1023&s)<<10)+(1023&e.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<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=s(o)),n+=u(o.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var s=new Array(i/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===o?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(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},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,s=(i<r?1:0)+n+o;e[t]=s>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+i>>>0)<i?1:0,e+n+o+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,s,a){return t+r+i+a>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,s,a,u,c){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+i>>>0)<i?1:0,l+=(f=f+a>>>0)<a?1:0,e+n+o+s+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,s,a,u,c){return t+r+i+a+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o,s=365.25*o;function a(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,u){u=u||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).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(e);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*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return u.long?function(e){var i=Math.abs(e);if(i>=o)return a(e,i,o,"day");if(i>=r)return a(e,i,r,"hour");if(i>=n)return a(e,i,n,"minute");if(i>=t)return a(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=r)return Math.round(e/r)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},885:function(e,t,n){"use strict";n.r(t);var r=n(954),o=n.n(r),i=window.wp.i18n,s=window.wp.domReady,a=n.n(s),u=window.wp.hooks,c=window.wp.data,l=n(49),f=n.n(l),h=f()("calypso:analytics");n(32);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(68);var d=n(417),p=n.n(d),v=(n(182),window.lodash),g=(n(421),n(699)),m=f()("lib/load-script/callback-handler"),y=new Map;function w(){return y}function C(e){return w().has(e)}function b(e,t){var n=w();C(e)?(m('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(m('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=w(),r=n.get(e);if(r){var o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));m(o),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function F(){var e=this.getAttribute("src");m('Handling successful request for "'.concat(e,'"')),_(e),this.onload=null}function x(){var e=this.getAttribute("src");m('Handling failed request for "'.concat(e,'"')),_(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var O=f()("lib/load-script/dom-operations");f()("package/load-script");function L(e,t){var n;if(!C(e)&&(n=function(e){O('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=F,t.onerror=x,t}(e),O("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){b(e,(function(e){null===e?t():n(e)}))}));b(e,t)}var j,S=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function A(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&L("//stats.wp.com/w2.js?1");var k=new g.EventEmitter;function E(e,t){if(h('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,v.includes)(S,e)){if(j){var n=j(t);t=p()(p()({},t),n)}t=(0,v.omitBy)(t,v.isUndefined),h('Recording event "%s" with actual props %o',e,t),A(["recordEvent",e,t]),k.emit("record-event",e,t)}else h('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}window["a8c-fse-common-data-stores"],window.wp.editor;a()((function(){M(),(0,u.addAction)("setGutenboardingStatus","a8c-gutenboarding",M)}));var P=!1;function M(){var e,t,n,r,s,a,u=null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding;if(!P&&null!==(n=window)&&void 0!==n&&null!==(r=n.calypsoifyGutenberg)&&void 0!==r&&r.isSiteUnlaunched&&null!==(s=window)&&void 0!==s&&null!==(a=s.calypsoifyGutenberg)&&void 0!==a&&a.launchUrl){var l;P=!0;var f=setInterval((function(){(l=(0,c.select)("automattic/site").getSite(window._currentSiteId))&&clearInterval(f)}),100),h=setInterval((function(){var e,t,n,r,s=document.querySelector(".edit-post-header__settings");if(s){clearInterval(h);var a=null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isExperimental,f=null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.launchUrl,d=function(){var e=o()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.dispatch)("core/editor").savePost();case 2:window.top.location.href=f;case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=document.querySelector("body");if(p){p.classList.add("editor-gutenberg-launch__fse-overrides");var v=s.querySelector(".editor-post-publish-button__button"),g=document.createElement("a");g.href=f,g.target="_top",g.className="editor-gutenberg-launch__launch-button components-button is-primary";var m=document.createTextNode((0,i.__)("Launch","full-site-editing"));g.appendChild(m),g.addEventListener("click",(function(e){var t,n;e.preventDefault();var r,o,i=u&&(null===(r=l)||void 0===r||null===(o=r.plan)||void 0===o?void 0:o.is_free),s=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.isFocusedLaunchFlow;E("calypso_newsite_editor_launch_click",{is_new_flow:i,is_experimental:a}),i?(a&&(0,c.dispatch)("automattic/launch").enableExperimental(),(0,c.dispatch)("automattic/launch").openSidebar(),setTimeout((function(){(0,c.dispatch)("core/editor").savePost()}),1e3)):s?((0,c.dispatch)("automattic/launch").openFocusedLaunch(),setTimeout((function(){(0,c.dispatch)("core/editor").savePost()}),1e3)):d()})),s.prepend(g),v&&s.prepend(v)}}}))}}},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var c=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var i=o[c];e=r.call(s,i),o.splice(c,1),c--}return e})),t.formatArgs.call(s,o);var l=s.log||t.log;l.apply(s,o)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=o,r.extend=i,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function i(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(885)}());
|
1 |
+
!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},232:function(e,t,n){var r=n(270);e.exports=function(e){if(Array.isArray(e))return r(e)}},954:function(e){function t(e,t,n,r,o,i,s){try{var u=e[i](s),a=u.value}catch(c){return void n(c)}u.done?t(a):Promise.resolve(a).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var s=e.apply(n,r);function u(e){t(s,o,i,u,a,"next",e)}function a(e){t(s,o,i,u,a,"throw",e)}u(void 0)}))}}},260:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(_n=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(u){r=!0,o=u}finally{try{_n||null==s.return||s.return()}finally{if(r)throw o}}return n}}},365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(260);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},68:function(e,t,n){var r=n(180),o=n(981),i=n(487),s=n(365);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||s()}},182:function(e,t,n){var r=n(232),o=n(557),i=n(487),s=n(359);e.exports=function(e){return r(e)||o(e)||i(e)||s()}},487:function(e,t,n){var r=n(270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,o),r(n)},e.once("error",i)),e.once(t,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,s,c;if(u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=a(e))>0&&s.length>o&&!s.warned){s.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=s.length,c=f,console&&console.warn&&console.warn(c)}return e}function f(){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(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):p(o,o.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),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(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var a=i[e];if(void 0===a)return!1;if("function"==typeof a)r(a,this,t);else{var c=a.length,f=p(a,c);for(n=0;n<c;++n)r(f[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return u(t),this.on(e,l(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,l(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,s;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var 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(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return h(this,e,!0)},i.prototype.rawListeners=function(e){return h(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},495:function(e,t,n){"use strict";var r=n(212),o=n(561);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}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(e<<=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++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>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}},32:function(e,t,n){"use strict";var r=n(212),o=n(495),i=n(713),s=n(561),u=r.sum32,a=r.sum32_4,c=r.sum32_5,f=i.ch32,l=i.maj32,h=i.s0_256,d=i.s1_256,p=i.g0_256,v=i.g1_256,g=o.BlockHash,m=[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 y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(v(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],w=this.h[5],C=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var _=c(b,d(y),f(y,w,C),this.k[r],n[r]),F=u(h(o),l(o,i,g));b=C,C=w,w=y,y=u(m,_),m=g,g=i,i=o,o=u(_,F)}this.h[0]=u(this.h[0],o),this.h[1]=u(this.h[1],i),this.h[2]=u(this.h[2],g),this.h[3]=u(this.h[3],m),this.h[4]=u(this.h[4],y),this.h[5]=u(this.h[5],w),this.h[6]=u(this.h[6],C),this.h[7]=u(this.h[7],b)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?s(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(561),o=n(285);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(e,o)?(s=65536+((1023&s)<<10)+(1023&e.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<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=u(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=s(o)),n+=a(o.toString(16))}return n},t.zero2=u,t.zero8=a,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var s=new Array(i/4),u=0,a=t;u<s.length;u++,a+=4){var c;c="big"===o?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],s[u]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(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},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,s=(i<r?1:0)+n+o;e[t]=s>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,s,u){var a=0,c=t;return a+=(c=c+r>>>0)<t?1:0,a+=(c=c+i>>>0)<i?1:0,e+n+o+s+(a+=(c=c+u>>>0)<u?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,s,u){return t+r+i+u>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,s,u,a,c){var f=0,l=t;return f+=(l=l+r>>>0)<t?1:0,f+=(l=l+i>>>0)<i?1:0,f+=(l=l+u>>>0)<u?1:0,e+n+o+s+a+(f+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,s,u,a,c){return t+r+i+u+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o,s=365.25*o;function u(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,a){a=a||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!u)return;var a=parseFloat(u[1]);switch((u[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*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===c&&isFinite(e))return a.long?function(e){var i=Math.abs(e);if(i>=o)return u(e,i,o,"day");if(i>=r)return u(e,i,r,"hour");if(i>=n)return u(e,i,n,"minute");if(i>=t)return u(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=r)return Math.round(e/r)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},885:function(e,t,n){"use strict";n.r(t);var r=n(954),o=n.n(r),i=window.wp.i18n,s=window.wp.domReady,u=n.n(s),a=window.wp.hooks,c=window.wp.data,f=n(49),l=n.n(f),h=l()("calypso:analytics");n(32);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(68);var d=n(417),p=n.n(d),v=(n(182),window.lodash),g=(n(421),n(699)),m=l()("lib/load-script/callback-handler"),y=new Map;function w(){return y}function C(e){return w().has(e)}function b(e,t){var n=w();C(e)?(m('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(m('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=w(),r=n.get(e);if(r){var o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));m(o),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function F(){var e=this.getAttribute("src");m('Handling successful request for "'.concat(e,'"')),_(e),this.onload=null}function x(){var e=this.getAttribute("src");m('Handling failed request for "'.concat(e,'"')),_(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var O=l()("lib/load-script/dom-operations");l()("package/load-script");function L(e,t){var n;if(!C(e)&&(n=function(e){O('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=F,t.onerror=x,t}(e),O("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){b(e,(function(e){null===e?t():n(e)}))}));b(e,t)}var j,S=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function A(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&L("//stats.wp.com/w2.js?1");var k=new g.EventEmitter;function E(e,t){if(h('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,v.includes)(S,e)){if(j){var n=j(t);t=p()(p()({},t),n)}t=(0,v.omitBy)(t,v.isUndefined),h('Recording event "%s" with actual props %o',e,t),A(["recordEvent",e,t]),k.emit("record-event",e,t)}else h('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}window["a8c-fse-common-data-stores"],window.wp.editor;u()((function(){M(),(0,a.addAction)("setGutenboardingStatus","a8c-gutenboarding",M)}));var P=!1;function M(){var e,t,n,r,s,u,a=null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding;if(!P&&null!==(n=window)&&void 0!==n&&null!==(r=n.calypsoifyGutenberg)&&void 0!==r&&r.isSiteUnlaunched&&null!==(s=window)&&void 0!==s&&null!==(u=s.calypsoifyGutenberg)&&void 0!==u&&u.launchUrl){var f;P=!0;var l=setInterval((function(){(f=(0,c.select)("automattic/site").getSite(window._currentSiteId))&&clearInterval(l)}),100),h=setInterval((function(){var e,t,n,r,s=document.querySelector(".edit-post-header__settings");if(s){clearInterval(h);var u=null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isExperimental,l=null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.launchUrl,d=function(){var e=o()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.dispatch)("core/editor").savePost();case 2:window.top.location.href=l;case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=document.querySelector("body");if(p){p.classList.add("editor-gutenberg-launch__fse-overrides");var v=s.querySelector(".editor-post-publish-button__button"),g=document.createElement("a");g.href=l,g.target="_top",g.className="editor-gutenberg-launch__launch-button components-button is-primary";var m=document.createTextNode((0,i.__)("Launch","full-site-editing"));g.appendChild(m),g.addEventListener("click",(function(e){var t,n;e.preventDefault();var r,o,i=a&&(null===(r=f)||void 0===r||null===(o=r.plan)||void 0===o?void 0:o.is_free),s=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.isFocusedLaunchFlow;E("calypso_newsite_editor_launch_click",{is_new_flow:i,is_experimental:u}),i?(u&&(0,c.dispatch)("automattic/launch").enableExperimental(),(0,c.dispatch)("automattic/launch").openSidebar(),setTimeout((function(){(0,c.dispatch)("core/editor").savePost()}),1e3)):s?((0,c.dispatch)("automattic/launch").openFocusedLaunch(),setTimeout((function(){(0,c.dispatch)("core/editor").savePost()}),1e3)):d()})),s.prepend(g),v&&s.prepend(v)}}}))}}},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];if(r.enabled){var s=r,u=Number(new Date),a=u-(n||u);s.diff=a,s.prev=n,s.curr=u,n=u,o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var c=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var i=o[c];e=r.call(s,i),o.splice(c,1),c--}return e})),t.formatArgs.call(s,o);var f=s.log||t.log;f.apply(s,o)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=o,r.extend=i,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function i(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(885)}());
|
editor-site-launch/dist/editor-site-launch.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '91830dd5e094d5593ffd0b00649c02c8');
|
editor-site-launch/dist/editor-site-launch.js
CHANGED
@@ -3,12 +3,12 @@
|
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var a=i.apply(null,n);a&&e.push(a)}else if("object"===o)for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(n){return e}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,a,l;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=s(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):p(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return s(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)r(s,this,t);else{var l=s.length,u=p(s,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5695:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(t)-1,s=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<s.length;n++){var l=s[n],u=e(t[l]);u&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u)}return o.splice(c,1),"{"+a+"}"}}(e)}},7201:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},4983:function(e){"use strict";e.exports=function(e,t,n,r,i,o,a,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,c],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},6590:function(e,t,n){"use strict";var r=n(7201);e.exports=r},8051:function(e){"use strict";var t="__global_unique_id__";e.exports=function(){return window[t]=(window[t]||0)+1}},4495:function(e,t,n){"use strict";var r=n(212),i=n(9561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},5079:function(e,t,n){"use strict";var r=n(212),i=n(4495),o=n(713),a=r.rotl32,c=r.sum32,s=r.sum32_5,l=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,u),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],f=this.h[3],m=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),h=s(a(i,5),l(p,o,u,f),m,n[r],d[p]);m=f,f=u,u=a(o,30),o=i,i=h}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],u),this.h[3]=c(this.h[3],f),this.h[4]=c(this.h[4],m)},f.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},8032:function(e,t,n){"use strict";var r=n(212),i=n(4495),o=n(713),a=n(9561),c=r.sum32,s=r.sum32_4,l=r.sum32_5,u=o.ch32,d=o.maj32,f=o.s0_256,m=o.s1_256,p=o.g0_256,h=o.g1_256,g=i.BlockHash,v=[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 y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(h(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],v=this.h[3],y=this.h[4],_=this.h[5],b=this.h[6],E=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var S=l(E,m(y),u(y,_,b),this.k[r],n[r]),w=c(f(i),d(i,o,g));E=b,b=_,_=y,y=c(v,S),v=g,g=o,o=i,i=c(S,w)}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],g),this.h[3]=c(this.h[3],v),this.h[4]=c(this.h[4],y),this.h[5]=c(this.h[5],_),this.h[6]=c(this.h[6],b),this.h[7]=c(this.h[7],E)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(9561),i=n(1285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=s(i.toString(16))}return n},t.zero2=c,t.zero8=s,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var a=new Array(o/4),c=0,s=t;c<a.length;c++,s+=4){var l;l="big"===i?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[c]=l>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,c){var s=0,l=t;return s+=(l=l+r>>>0)<t?1:0,s+=(l=l+o>>>0)<o?1:0,e+n+i+a+(s+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,c){return t+r+o+c>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,c,s,l){var u=0,d=t;return u+=(d=d+r>>>0)<t?1:0,u+=(d=d+o>>>0)<o?1:0,u+=(d=d+c>>>0)<c?1:0,e+n+i+a+s+(u+=(d=d+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,c,s,l){return t+r+o+c+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},3463:function(e,t,n){"use strict";var r=n(8570),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return r.isMemo(e)?a:c[e.$$typeof]||i}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=m(n);i&&i!==p&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var c=s(t),h=s(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||h&&h[v]||c&&c[v])){var y=f(n,v);try{l(t,v,y)}catch(_){}}}}return t}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},7010:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(n(3804)),o=c(n(3631)),a=c(n(2586));function c(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function l(e,t){var n,a,c,u,d,f,m,p,h=[],g={};for(f=0;f<e.length;f++)if("string"!==(d=e[f]).type){if(!t.hasOwnProperty(d.value)||void 0===t[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==r(t[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+s);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){n=t[d.value],c=f;break}h.push(t[d.value])}else h.push(d.value);return n&&(u=function(e,t){var n,r,i=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}(c,e),m=l(e.slice(c+1,u),t),a=i.default.cloneElement(n,{},m),h.push(a),u<e.length-1&&(p=l(e.slice(u+1),t),h=h.concat(p))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,o.default)(g))}t.Z=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(s=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var o=(0,a.default)(t);try{return l(o,n)}catch(c){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+c.message+"`");return t}}},2586:function(e){"use strict";function t(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},7839:function(e,t,n){var r=n(2699),i=n(1285);function o(e){if(!(this instanceof o))return new o(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=o,i(o,r.EventEmitter),Object.defineProperty(o.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),o.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},o.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},o.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},o.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},o.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},o.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},o.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},o.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,a=365.25*i;function c(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,s){s=s||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var s=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"weeks":case"week":case"w":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===l&&isFinite(e))return s.long?function(e){var o=Math.abs(e);if(o>=i)return c(e,o,i,"day");if(o>=r)return c(e,o,r,"hour");if(o>=n)return c(e,o,n,"minute");if(o>=t)return c(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7320:function(e){"use strict";
|
7 |
/*
|
8 |
object-assign
|
9 |
(c) Sindre Sorhus
|
10 |
@license MIT
|
11 |
-
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,c,s=i(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))n.call(a,u)&&(s[u]=a[u]);if(t){c=t(a);for(var d=0;d<c.length;d++)r.call(a,c[d])&&(s[c[d]]=a[c[d]])}}return s}},99:function(e,t,n){var r=n(243);e.exports=m,e.exports.parse=o,e.exports.compile=function(e,t){return c(o(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,c="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],m=n.index;if(c+=e.slice(a,m),a=m+d.length,f)c+=f[1];else{var p=e[a],h=n[2],g=n[3],v=n[4],y=n[5],_=n[6],b=n[7];c&&(r.push(c),c="");var E=null!=h&&null!=p&&p!==h,S="+"===_||"*"===_,w="?"===_||"*"===_,x=n[2]||u,C=v||y;r.push({name:g||o++,prefix:h||"",delimiter:x,optional:w,repeat:S,partial:E,asterisk:!!b,pattern:C?l(C):b?".*":"[^"+s(x)+"]+?"})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",c=t||{},s=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var d,f=c[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var m=0;m<f.length;m++){if(d=s(f[m]),!n[l].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===m?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(f),!n[l].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",c=0;c<e.length;c++){var l=e[c];if("string"==typeof l)a+=s(l);else{var f=s(l.prefix),m="(?:"+l.pattern+")";t.push(l),l.repeat&&(m+="(?:"+f+m+")*"),a+=m=l.optional?l.partial?f+"("+m+")?":"(?:"+f+"("+m+"))?":f+"("+m+")"}}var p=s(n.delimiter||"/"),h=a.slice(-p.length)===p;return i||(a=(h?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&h?"":"(?="+p+"|$)",u(new RegExp("^"+a,d(n)),t)}function m(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(m(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},243:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},8650:function(e){var t,n=window.ProgressEvent,r=!!n;try{t=new n("loaded"),r="loaded"===t.type,t=null}catch(i){r=!1}e.exports=r?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},8262:function(e,t,n){"use strict";var r=n(3586);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},3980:function(e,t,n){e.exports=n(8262)()},3586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5527:function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(2493),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},a)},9126:function(e,t,n){"use strict";var r=n(6845),i=n(9166),o=n(5527);e.exports={formats:o,parse:i,stringify:r}},9166:function(e,t,n){"use strict";var r=n(2493),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=c?o.slice(0,c.index):o,u=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&null!==(c=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+o.slice(c.index)+"]"),function(e,t,n,r){for(var i=r?t:s(t,n),o=e.length-1;o>=0;--o){var a,c=e[o];if("[]"===c&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&c!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:a[l]=i:a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),m=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?p="utf-8":"utf8=%26%2310003%3B"===f[n]&&(p="iso-8859-1"),m=n,n=f.length);for(n=0;n<f.length;++n)if(n!==m){var h,g,v=f[n],y=v.indexOf("]="),_=-1===y?v.indexOf("="):y+1;-1===_?(h=t.decoder(v,a.decoder,p,"key"),g=t.strictNullHandling?null:""):(h=t.decoder(v.slice(0,_),a.decoder,p,"key"),g=r.maybeMap(s(v.slice(_+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=c(g)),v.indexOf("[]=")>-1&&(g=o(g)?[g]:g),i.call(l,h)?l[h]=r.combine(l[h],g):l[h]=g}return l}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),m=0;m<f.length;++m){var p=f[m],h=l(p,u[p],n,"string"==typeof e);d=r.merge(d,h,n)}return r.compact(d)}},6845:function(e,t,n){"use strict";var r=n(2493),i=n(5527),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,s=Array.prototype.push,l=function(e,t){s.apply(e,c(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},m=function e(t,n,i,o,a,s,u,d,m,p,h,g,v){var y,_=t;if("function"==typeof u?_=u(n,_):_ instanceof Date?_=p(_):"comma"===i&&c(_)&&(_=r.maybeMap(_,(function(e){return e instanceof Date?p(e):e})).join(",")),null===_){if(o)return s&&!g?s(n,f.encoder,v,"key"):n;_=""}if("string"==typeof(y=_)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(_))return s?[h(g?n:s(n,f.encoder,v,"key"))+"="+h(s(_,f.encoder,v,"value"))]:[h(n)+"="+h(String(_))];var b,E=[];if(void 0===_)return E;if(c(u))b=u;else{var S=Object.keys(_);b=d?S.sort(d):S}for(var w=0;w<b.length;++w){var x=b[w],C=_[x];if(!a||null!==C){var k=c(_)?"function"==typeof i?i(n,x):n:n+(m?"."+x:"["+x+"]");l(E,e(C,k,i,o,a,s,u,d,m,p,h,g,v))}}return E};e.exports=function(e,t){var n,r=e,s=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=f.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof s.filter?r=(0,s.filter)("",r):c(s.filter)&&(n=s.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[u];n||(n=Object.keys(r)),s.sort&&n.sort(s.sort);for(var h=0;h<n.length;++h){var g=n[h];s.skipNulls&&null===r[g]||l(d,m(r[g],g,p,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var v=d.join(s.delimiter),y=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},2493:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],i=0;i<t.length;++i)for(var o=t[i],a=o.obj[o.prop],c=Object.keys(a),s=0;s<c.length;++s){var l=c[s],u=a[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var i=[],o=0;o<r.length;++o)void 0!==r[o]&&i.push(r[o]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<i.length;++a){var c=i.charCodeAt(a);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?o+=i.charAt(a):c<128?o+=r[c]:c<2048?o+=r[192|c>>6]+r[128|63&c]:c<55296||c>=57344?o+=r[224|c>>12]+r[128|c>>6&63]+r[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(a)),o+=r[240|c>>18]+r[128|c>>12&63]+r[128|c>>6&63]+r[128|63&c])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(t(e[i]));return r}return t(e)},merge:function e(r,o,a){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(a&&(a.plainObjects||a.allowPrototypes)||!t.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var c=r;return n(r)&&!n(o)&&(c=i(r,a)),n(r)&&n(o)?(o.forEach((function(n,i){if(t.call(r,i)){var o=r[i];o&&"object"==typeof o&&n&&"object"==typeof n?r[i]=e(o,n,a):r.push(n)}else r[i]=n})),r):Object.keys(o).reduce((function(n,r){var i=o[r];return t.call(n,r)?n[r]=e(n[r],i,a):n[r]=i,n}),c)}}},3631:function(e,t,n){"use strict";var r=n(3804),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(7201),a=n(4983),c=n(6590),s="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var o,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===i)return n(r,e,""===t?"."+l(e,0):t),1;var d=0,f=""===t?".":t+":";if(Array.isArray(e))for(var m=0;m<e.length;m++)d+=u(o=e[m],f+l(o,m),n,r);else{var p=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(p){0;for(var h,g=p.call(e),v=0;!(h=g.next()).done;)d+=u(o=h.value,f+l(o,v++),n,r)}else if("object"===c){0;var y=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return d}var d=/\/+/g;function f(e){return(""+e).replace(d,"$&/")}var m,p,h=g,g=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},v=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function y(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function _(e,t,n){var i,a,c=e.result,s=e.keyPrefix,l=e.func,u=e.context,d=l.call(u,t,e.count++);Array.isArray(d)?b(d,c,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(i=d,a=s+(!d.key||t&&t.key===d.key?"":f(d.key)+"/")+n,d=r.cloneElement(i,{key:a},void 0!==i.props?i.props.children:void 0)),c.push(d))}function b(e,t,n,r,i){var o="";null!=n&&(o=f(n)+"/");var a=y.getPooled(t,o,r,i);!function(e,t,n){null==e||u(e,"",t,n)}(e,_,a),y.release(a)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},m=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},(p=y).instancePool=[],p.getPooled=m||h,p.poolSize||(p.poolSize=10),p.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)b(e[n],t,n,o.thatReturnsArgument);return t}},6866:function(e,t){"use strict";
|
12 |
/** @license React v16.13.1
|
13 |
* react-is.production.min.js
|
14 |
*
|
@@ -16,7 +16,7 @@ object-assign
|
|
16 |
*
|
17 |
* This source code is licensed under the MIT license found in the
|
18 |
* LICENSE file in the root directory of this source tree.
|
19 |
-
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case c:case a:case m:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case h:case s:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=i,t.Profiler=c,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return S(e)||E(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===a||e===m||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===v)},t.typeOf=E},8570:function(e,t,n){"use strict";e.exports=n(6866)},1379:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,{getSite:function(){return qe},getSiteDomains:function(){return $e}});var i={};n.r(i),n.d(i,{getNewSite:function(){return Ge},getNewSiteError:function(){return Ye},getPrimarySiteDomain:function(){return rt},getSite:function(){return Je},getSiteDomains:function(){return nt},getSiteSubdomain:function(){return it},getSiteTitle:function(){return Ze},getState:function(){return We},isFetchingSite:function(){return Ke},isFetchingSiteDetails:function(){return Xe},isNewSite:function(){return Qe},isSiteLaunched:function(){return et},isSiteLaunching:function(){return tt}});var o={};n.r(o),n.d(o,{resetPlan:function(){return Nt},setFeatures:function(){return wt},setFeaturesByType:function(){return xt},setPlanProducts:function(){return kt},setPlans:function(){return Ct}});var a={};n.r(a),n.d(a,{getDefaultFreePlan:function(){return Ft},getDefaultPaidPlan:function(){return Rt},getFeatures:function(){return Ot},getFeaturesByType:function(){return Tt},getPlanByPath:function(){return Bt},getPlanByPeriodAgnosticSlug:function(){return Dt},getPlanByProductId:function(){return It},getPlanProduct:function(){return Vt},getPlanProductById:function(){return Lt},getPlansProducts:function(){return jt},getPrices:function(){return Ut},getSupportedPlans:function(){return Mt},isPlanEcommerce:function(){return Ht},isPlanFree:function(){return zt},isPlanProductFree:function(){return qt}});var c={};n.r(c),n.d(c,{getSupportedPlans:function(){return Xt}});var s={};n.r(s),n.d(s,{fetchDomainSuggestions:function(){return dn},receiveCategories:function(){return un},receiveDomainAvailability:function(){return fn},receiveDomainSuggestionsError:function(){return pn},receiveDomainSuggestionsSuccess:function(){return mn}});var l={};n.r(l),n.d(l,{__internalGetDomainSuggestions:function(){return sr},getCategories:function(){return cr},isAvailable:function(){return ar}});var u={};n.r(u),n.d(u,{closeFocusedLaunch:function(){return Ir},closeSidebar:function(){return Or},confirmDomainSelection:function(){return xr},disablePersistentSuccessView:function(){return Br},enableExperimental:function(){return Lr},enablePersistentSuccessView:function(){return Ur},hideModalTitle:function(){return jr},openFocusedLaunch:function(){return Tr},openSidebar:function(){return Ar},setDomain:function(){return Sr},setDomainSearch:function(){return Cr},setModalDismissible:function(){return Rr},setPlanProductId:function(){return kr},setSidebarFullscreen:function(){return yr},setSiteTitle:function(){return Er},setStep:function(){return br},showModalTitle:function(){return Mr},showSiteTitleStep:function(){return Dr},unsetDomain:function(){return wr},unsetModalDismissible:function(){return Fr},unsetPlanProductId:function(){return Nr},unsetSidebarFullscreen:function(){return _r},updatePlan:function(){return Pr}});var d={};n.r(d),n.d(d,{getFirstIncompleteStep:function(){return Zr},getLaunchSequence:function(){return Vr},getLaunchStep:function(){return Hr},getPaidPlanProductId:function(){return Yr},getSelectedDomain:function(){return $r},getSelectedPlan:function(){return Gr},getSelectedPlanProductId:function(){return Wr},getSiteTitle:function(){return ei},getState:function(){return zr},hasPaidDomain:function(){return qr},hasSelectedDomain:function(){return Kr},isFlowCompleted:function(){return Qr},isFlowStarted:function(){return Jr},isStepCompleted:function(){return Xr}});var f={};n.r(f),n.d(f,{getAllFeatures:function(){return ia},getRecommendedPlanSlug:function(){return oa}});window["a8c-fse-common-data-stores"];var m="automattic/site",p="automattic/launch",h=window.wp.element,g=n(3804),v=n.n(g),y=window.wp.data,_=window.wp.plugins,b=window.wp.hooks,E=n(417),S=n.n(E),w=window.wp.url,x=function(e){window.location.href=e},C=g.createContext({siteId:0,redirectTo:x,getCurrentLaunchFlowUrl:function(){try{return window.location.href}catch(e){return}},openCheckout:function(e,t){x((0,w.addQueryArgs)("/checkout/".concat(e),S()({preLaunch:1},!t&&{redirect_to:"/home/".concat(e)})))},flow:"launch"}),k=n(8527),N=n.n(k),P=window.wp.compose,A=(0,g.createContext)("en"),O=function(e){var t=e.children,n=e.localeSlug;return(0,h.createElement)(A.Provider,{value:n},t)};function T(){return(0,g.useContext)(A)}(0,P.createHigherOrderComponent)((function(e){return function(t){var n=T();return(0,h.createElement)(e,N()({locale:n},t))}}),"withLocale");var I=n(1068),L=n.n(I),D=n(2779),R=n.n(D),F=window.wp.i18n,M=window.wp.components;function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var V,H,z,q=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=function(e,t){if(null==e)return{};var n,r,i=U(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["icon","size"]);return(0,h.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},$=window.wp.primitives,W=(0,h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,h.createElement)($.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),G=(0,h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)($.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Y="automattic/site",K=n(2220),X=n.n(K),Q=n(4582),J=n.n(Q),Z=n(1260),ee=n.n(Z);!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(V||(V={})),function(e){e.INTERNAL="internal"}(H||(H={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(z||(z={}));var te=(0,y.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),ne=(0,y.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:te,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return S()(S()({},e),{},ee()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],X()(e,[n].map(J())));return S()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?S()(S()({},e),{},ee()({},t.siteId,S()(S()({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:z.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:z.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:z.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?S()(S()({},e),{},ee()({},t.siteId,t.domains)):e}}),re=n(2954),ie=n.n(re),oe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),ae=new Uint8Array(16);function ce(){if(!oe)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oe(ae)}for(var se=[],le=0;le<256;++le)se[le]=(le+256).toString(16).substr(1);var ue=function(e,t){var n=t||0,r=se;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var de,fe=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||ce)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||ue(i)},me=n(2884),pe=n.n(me),he=n(8650),ge=n.n(he),ve=n(8049),ye=n.n(ve),_e=ye()("wpcom-proxy-request"),be="https://public-api.wordpress.com",Ee=window.location.protocol+"//"+window.location.host,Se=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),we=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),xe=null,Ce=!1,ke={},Ne=!!window.ProgressEvent&&!!window.FormData;_e('using "origin": %o',Ee);var Pe=function(e,t){var n=Object.assign({},e);_e("request(%o)",n),xe||Le();var r=fe();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=Ne,n.method=String(n.method||"GET").toUpperCase(),_e("params object: %o",n);var i=new window.XMLHttpRequest;if(i.params=n,ke[r]=i,"function"==typeof t){var o=!1,a=function(e){if(!o){o=!0;var n=e.error||e.err||e;_e("error: ",n),_e("headers: ",e.headers),t(n,null,e.headers)}};i.addEventListener("load",(function(e){if(!o){o=!0;var n=e.response||i.response;_e("body: ",n),_e("headers: ",e.headers),t(null,n,e.headers)}})),i.addEventListener("abort",a),i.addEventListener("error",a)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,Ce?Oe(n):(_e("buffering API request since proxying <iframe> is not yet loaded"),de.push(n)),i},Ae=function(e,t){return"function"==typeof t?Pe(e,t):new Promise((function(t,n){Pe(e,(function(e,r){e?n(e):t(r)}))}))};function Oe(e){_e("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!we)return;for(var t=0;t<e.length;t++){var n=Ie(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),xe.contentWindow.postMessage(Se?JSON.stringify(e):e,be)}function Te(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function Ie(e){return Te(e)?e:"object"==typeof e&&Te(e.fileContents)?e.fileContents:null}function Le(){_e("install()"),xe&&(_e("uninstall()"),window.removeEventListener("message",De),document.body.removeChild(xe),Ce=!1,xe=null),de=[],window.addEventListener("message",De),(xe=document.createElement("iframe")).src=be+"/wp-admin/rest-proxy/?v=2.0#"+Ee,xe.style.display="none",document.body.appendChild(xe)}function De(e){if(_e("onmessage"),e.origin===be)if(e.source===xe.contentWindow){var t=e.data;if(!t)return _e("no `data`, bailing");if("ready"!==t){if(Se&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){_e('got "progress" event: %o',e);var t=ke[e.callbackId];if(t){var n=new(ge())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return _e("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in ke))return _e("bailing, no matching request with callback: %o",n);var r,i=ke[n],o=i.params,a=t[0],c=t[1],s=t[2];if(207===c||delete ke[n],o.metaAPI?c="metaAPIupdated"===a?200:500:_e("got %o status code for URL: %o",c,o.path),"object"==typeof s)if(s.status=c,r=s["Content-Type"],/^application[/]x-ndjson($|;)/.test(r))return void Re(i,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),s);if(c&&2===Math.floor(c/100))!function(e,t,n){var r=new(ge())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(i,a,s);else Re(i,pe()(o,c,a),s)}else!function(){if(_e('proxy <iframe> "load" event'),Ce=!0,de){for(var e=0;e<de.length;e++)Oe(de[e]);de=null}}()}else _e("ignoring message... iframe elements do not match");else _e("ignoring message... %o !== %o",e.origin,be)}function Re(e,t,n){var r=new(ge())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}var Fe,Me=Ae,je=function(e){return{type:"WPCOM_REQUEST",request:e}},Ue=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},Be={WPCOM_REQUEST:function(e){var t=e.request;return Me(t)},FETCH_AND_PARSE:(Fe=ie()(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return Fe.apply(this,arguments)}),RELOAD_PROXY:function(){Le()},REQUEST_ALL_BLOGS_ACCESS:function(){return Ae({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}};function Ve(e){var t=regeneratorRuntime.mark(l),n=regeneratorRuntime.mark(p),r=regeneratorRuntime.mark(h),i=regeneratorRuntime.mark(g),o=regeneratorRuntime.mark(v),a=function(){return{type:"FETCH_NEW_SITE"}},c=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},s=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function l(n){var r,i,o,a,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,i=X()(n,["authToken"]),o={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},a=S()(S()(S()({},o),i),{},{validate:!1}),t.next=8,je({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:r});case 8:return l=t.sent,t.next=11,c(l);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,s(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var u=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},d=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},f=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},m=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function p(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d(e);case 2:return t.prev=2,t.next=5,je({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,f(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,m(e,H.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function h(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,je({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),r)}function g(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,je({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),i)}function v(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,je({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,u(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),o,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:v,receiveSiteTitle:u,fetchNewSite:a,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:c,receiveNewSiteFailed:s,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:l,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:p,launchSiteStart:d,launchSiteSuccess:f,launchSiteFailure:m,getCart:h,setCart:g}}var He=regeneratorRuntime.mark(qe),ze=regeneratorRuntime.mark($e);function qe(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,y.dispatch)(Y).fetchSite();case 2:return n.prev=2,n.next=5,je({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,y.dispatch)(Y).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,y.dispatch)(Y).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),He,null,[[2,10]])}function $e(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,je({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,y.dispatch)(Y).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),ze,null,[[0,8]])}var We=function(e){return e},Ge=function(e){return e.newSite.data},Ye=function(e){return e.newSite.error},Ke=function(e){return e.newSite.isFetching},Xe=function(e){return e.isFetchingSiteDetails},Qe=function(e){return!!e.newSite.data},Je=function(e,t){return e.sites[t]},Ze=function(e,t){var n;return null===(n=(0,y.select)(Y).getSite(t))||void 0===n?void 0:n.name},et=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===z.SUCCESS},tt=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===z.IN_PROGRESS},nt=function(e,t){return e.sitesDomains[t]},rt=function(e,t){var n;return null===(n=(0,y.select)(Y).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},it=function(e,t){var n;return null===(n=(0,y.select)(Y).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))},ot=!1;var at="free_plan",ct="personal-bundle",st="value_bundle",lt="business-bundle",ut="ecommerce-bundle",dt="Free",ft="Personal",mt="Premium",pt="Business",ht="Ecommerce",gt="automattic/onboard/plans",vt=[ct,st,lt,ut],yt=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],_t=[dt,ft,mt,pt,ht],bt=[at].concat(vt,yt),Et={USD:{format:"SYMBOL_THEN_AMOUNT",symbol:"$",decimal:2},GBP:{format:"SYMBOL_THEN_AMOUNT",symbol:"£",decimal:2},JPY:{format:"SYMBOL_THEN_AMOUNT",symbol:"¥",decimal:0},BRL:{format:"SYMBOL_THEN_AMOUNT",symbol:"R$",decimal:2},EUR:{format:"SYMBOL_THEN_AMOUNT",symbol:"€",decimal:2},NZD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NZ$",decimal:2},AUD:{format:"SYMBOL_THEN_AMOUNT",symbol:"A$",decimal:2},CAD:{format:"SYMBOL_THEN_AMOUNT",symbol:"C$",decimal:2},IDR:{format:"AMOUNT_THEN_SYMBOL",symbol:"Rp",decimal:0},INR:{format:"AMOUNT_THEN_SYMBOL",symbol:"₹",decimal:0},ILS:{format:"AMOUNT_THEN_SYMBOL",symbol:"₪",decimal:2},RUB:{format:"AMOUNT_THEN_SYMBOL",symbol:"₽",decimal:2},MXN:{format:"SYMBOL_THEN_AMOUNT",symbol:"MX$",decimal:2},SEK:{format:"AMOUNT_THEN_SYMBOL",symbol:"SEK",decimal:2},HUF:{format:"AMOUNT_THEN_SYMBOL",symbol:"Ft",decimal:0},CHF:{format:"AMOUNT_THEN_SYMBOL",symbol:"CHF",decimal:2},CZK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kč",decimal:2},DKK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Dkr",decimal:2},HKD:{format:"AMOUNT_THEN_SYMBOL",symbol:"HK$",decimal:2},NOK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kr",decimal:2},PHP:{format:"AMOUNT_THEN_SYMBOL",symbol:"₱",decimal:2},PLN:{format:"AMOUNT_THEN_SYMBOL",symbol:"PLN",decimal:2},SGD:{format:"SYMBOL_THEN_AMOUNT",symbol:"S$",decimal:2},TWD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NT$",decimal:0},THB:{format:"SYMBOL_THEN_AMOUNT",symbol:"฿",decimal:2},TRY:{format:"AMOUNT_THEN_SYMBOL",symbol:"TL",decimal:2}},St=(0,y.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return t.features;default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return t.featuresByType;default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans;default:return e}}}),wt=function(e){return{type:"SET_FEATURES",features:e}},xt=function(e){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e}},Ct=function(e){return{type:"SET_PLANS",plans:e}},kt=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},Nt=function(){return{type:"RESET_PLAN"}},Pt=window.wp.deprecated,At=n.n(Pt),Ot=function(e){return e.features},Tt=function(e){return e.featuresByType},It=function(e,t){if(t)return(0,y.select)(gt).getSupportedPlans().find((function(e){return e.productIds.indexOf(t)>-1}))},Lt=function(e,t){if(t)return(0,y.select)(gt).getPlansProducts().find((function(e){return e.productId===t}))},Dt=function(e,t){if(t)return(0,y.select)(gt).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===t}))},Rt=function(e,t){return(0,y.select)(gt).getSupportedPlans(t).find((function(e){return"Premium"===e.periodAgnosticSlug}))},Ft=function(e,t){return(0,y.select)(gt).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===dt}))},Mt=function(e,t){return e.plans},jt=function(e,t){return e.planProducts},Ut=function(e,t){return At()("getPrices",{alternative:"getPlanProduct().price"}),(0,y.select)(gt).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},Bt=function(e,t){if(t){var n=(0,y.select)(gt).getPlansProducts().find((function(e){return e.pathSlug===t}));if(n)return(0,y.select)(gt).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===(null==n?void 0:n.periodAgnosticSlug)}))}},Vt=function(e,t,n){if(t&&n){var r=(0,y.select)(gt).getPlansProducts();return t===dt?r.find((function(e){return e.periodAgnosticSlug===t})):r.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},Ht=function(e,t){return t===ht},zt=function(e,t){return t===dt},qt=function(e,t){return 1===t},$t=n(9126),Wt=regeneratorRuntime.mark(Xt);function Gt(e){var t=Et[e.currency_code],n=12*e.raw_price;return Number.isInteger(n)||(n=n.toFixed(t.decimal)),"AMOUNT_THEN_SYMBOL"===t.format?"".concat(n).concat(t.symbol):"".concat(t.symbol).concat(n)}function Yt(e){return e.reduce((function(e,t){var n;return e[t.id]={id:t.id,name:t.name,description:t.description,type:null!==(n=t.type)&&void 0!==n?n:"checkbox"},e}),{})}function Kt(e,t){var n=bt.reduce((function(n,r){var i=e.find((function(e){return e.product_slug===r}));if(!i)return n;var o,a,c,s=t.find((function(e){return e.productIds.indexOf(i.product_id)>-1}));return n.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:s.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?i.formatted_price:(o=i,a=Et[o.currency_code],c=o.raw_price/12,Number.isInteger(c)||(c=c.toFixed(a.decimal)),"AMOUNT_THEN_SYMBOL"===a.format?"".concat(c).concat(a.symbol):"".concat(a.symbol).concat(c)),annualPrice:31===(null==i?void 0:i.bill_period)?Gt(i):i.formatted_price}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===vt[t]})),r=e.find((function(e){return e.storeSlug===yt[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,a=Math.round(100*(1-o/i));n.annualDiscount=a,r.annualDiscount=a}},n=0;n<vt.length;n++)t(n)}(n),n}function Xt(){var e,t,n,r,i,o,a,c=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:"en",s.next=3,je({path:"/plans",query:(0,$t.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,Ue("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=s.sent,r=n.body,i=r.plans.map((function(e){return{description:e.tagline,features:e.highlighted_features,storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:e.nonlocalized_short_name===dt,isPopular:e.nonlocalized_short_name===mt,periodAgnosticSlug:e.nonlocalized_short_name,productIds:e.products.map((function(e){return e.plan_id}))}})),o=Kt(t,i),a=Yt(r.features),s.next=13,Ct(i);case 13:return s.next=15,kt(o);case 15:return s.next=17,wt(a);case 17:return s.next=19,xt(r.features_by_type);case 19:case"end":return s.stop()}}),Wt)}var Qt=!1;function Jt(){return Qt||(Qt=!0,(0,y.registerStore)(gt,{resolvers:c,actions:o,controls:Be,reducer:St,selectors:a})),gt}var Zt,en="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(Zt||(Zt={}));var tn,nn,rn,on,an=n(5695),cn=n.n(an)(),sn={state:Zt.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},ln=(0,y.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sn,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?S()(S()({},e),{},{state:Zt.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?S()(S()({},e),{},{state:Zt.Success,data:S()(S()({},e.data),{},ee()({},cn(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?S()(S()({},e),{},{state:Zt.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?S()(S()({},e),{},ee()({},t.domainName,t.availability)):e}}),un=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},dn=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},fn=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},mn=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},pn=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}},hn=n(5182),gn=n.n(hn),vn=n(7010);tn={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},nn=["(","?"],rn={")":["("],":":["?","?:"]},on=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var yn={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function bn(e){var t=function(e){for(var t,n,r,i,o=[],a=[];t=e.match(on);){for(n=t[0],(r=e.substr(0,t.index).trim())&&o.push(r);i=a.pop();){if(rn[n]){if(rn[n][0]===i){n=rn[n][1]||n;break}}else if(nn.indexOf(i)>=0||tn[i]<tn[n]){a.push(i);break}o.push(i)}rn[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&o.push(e),o.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,i,o,a,c,s=[];for(n=0;n<e.length;n++){if(a=e[n],o=yn[a]){for(r=o.length,i=Array(r);r--;)i[r]=s.pop();try{c=o.apply(null,i)}catch(l){return l}}else c=t.hasOwnProperty(a)?t[a]:+a;s.push(c)}return s[0]}(t,e)}}var En={contextDelimiter:"",onMissingKey:null};function Sn(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},En)this.options[n]=void 0!==t&&n in t?t[n]:En[n]}Sn.prototype.getPluralForm=function(e,t){var n,r,i,o=this.pluralForms[e];return o||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=function(e){var t=bn(e);return function(e){return+t({n:e})}}(r)),o=this.pluralForms[e]=i),o(t)},Sn.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,c;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[o]?c[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)};var wn=n(7839),xn=n.n(wn),Cn=n(5079),kn=n.n(Cn),Nn=n(2699),Pn=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function An(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(Pn,(function(){var e,r,i,o,a;return e=arguments[3],r=arguments[5],"%"===(o=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(a=t[0][r]):(void 0===e&&(e=n),n++,a=t[e-1]),"f"===o?a=parseFloat(a)||0:"d"===o&&(a=parseInt(a)||0),void 0!==i&&("f"===o?a=a.toFixed(i):"s"===o&&(a=a.substr(0,i))),null!=a?a:"")}))}function On(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,c=void 0===n?".":n,s="";return(s=(o?
|
20 |
/*
|
21 |
* Exposes number format capability
|
22 |
*
|
@@ -24,4 +24,4 @@ object-assign
|
|
24 |
* @license See CREDITS.md
|
25 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
26 |
*/
|
27 |
-
function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<o&&(s[1]=s[1]||"",s[1]+=new Array(o-s[1].length+1).join("0")),s.join(c)}var Tn=ye()("i18n-calypso"),In="number_format_decimals",Ln="number_format_thousands_sep",Dn="messages",Rn=[function(e){return e}],Fn={};function Mn(){Hn.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function jn(e){return Array.prototype.slice.call(e)}function Un(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&Mn("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",jn(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&Mn("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",jn(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function Bn(e,t){return e.dcnpgettext(Dn,t.context,t.original,t.plural,t.count)}function Vn(e,t){for(var n=Rn.length-1;n>=0;n--){var r=Rn[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return Bn(e.state.tannin,r)}return null}function Hn(){if(!(this instanceof Hn))return new Hn;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:xn()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new Nn.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Hn.throwErrors=!1,Hn.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},Hn.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},Hn.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},Hn.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return On(e,n,r,i)},Hn.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Hn.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==Fn[n+e])return Fn[n+e];var r=kn()().update(e).digest("hex");return Fn[n+e]=t?r.substr(0,t):r},a=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)Rn.push(a(!1));else{var c=i.substr(5).indexOf("-");if(c<0){var s=Number(i.substr(5));Rn.push(a(s))}else for(var l=Number(i.substr(5,c)),u=Number(i.substr(6+c)),d=l;d<=u;d++)Rn.push(a(d))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new Sn(ee()({},Dn,this.state.locale)),this.state.numberFormatSettings.decimal_point=Bn(this.state.tannin,Un([In])),this.state.numberFormatSettings.thousands_sep=Bn(this.state.tannin,Un([Ln])),this.state.numberFormatSettings.decimal_point===In&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===Ln&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},Hn.prototype.getLocale=function(){return this.state.locale},Hn.prototype.getLocaleSlug=function(){return this.state.localeSlug},Hn.prototype.getLocaleVariant=function(){return this.state.localeVariant},Hn.prototype.isRtl=function(){return"rtl"===this.state.textDirection},Hn.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},Hn.prototype.hasTranslation=function(){return!!Vn(this,Un(arguments))},Hn.prototype.translate=function(){var e=Un(arguments),t=Vn(this,e);if(t||(t=Bn(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=An.apply(void 0,gn()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=(0,vn.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},Hn.prototype.reRenderTranslations=function(){Tn("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},Hn.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},Hn.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var zn=Hn,qn=n(85),$n=n.n(qn),Wn=n(5198),Gn=n.n(Wn),Yn=n(8111),Kn=n.n(Yn),Xn=n(270),Qn=n.n(Xn),Jn=n(4564),Zn=n.n(Jn);var er=n(6718);var tr=new zn,nr=(tr.numberFormat.bind(tr),tr.translate.bind(tr)),rr=(tr.configure.bind(tr),tr.setLocale.bind(tr),tr.getLocale.bind(tr),tr.getLocaleSlug.bind(tr),tr.getLocaleVariant.bind(tr),tr.isRtl.bind(tr),tr.addTranslations.bind(tr),tr.reRenderTranslations.bind(tr),tr.registerComponentUpdateHook.bind(tr),tr.registerTranslateHook.bind(tr),tr.state,tr.stateObserver,tr.on.bind(tr),tr.off.bind(tr),tr.emit.bind(tr),function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)}}(tr),function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(tr),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,er.useSubscription)(t)}var r=(0,P.createHigherOrderComponent)((function(e){return(0,g.forwardRef)((function(t,r){var i=n();return(0,h.createElement)(e,N()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(tr)),ir=(rr.useRtl,rr.withRtl,regeneratorRuntime.mark(cr)),or=regeneratorRuntime.mark(sr),ar=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,Ue(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",fn(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",fn(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function cr(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ue("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",un(e.body));case 4:case"end":return t.stop()}}),ir)}function sr(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.query){n.next=2;break}return n.abrupt("return",pn("Empty query"));case 2:return n.next=4,dn();case 4:return n.prev=4,n.next=7,je({apiVersion:"1.1",path:"/domains/suggestions",query:(0,$t.stringify)(e)});case 7:t=n.sent,n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(4),n.abrupt("return",pn(n.t0.message||nr("Error while fetching server response")));case 13:if(t&&""!==t){n.next=15;break}return n.abrupt("return",pn(nr("Invalid response from the server")));case 15:return n.abrupt("return",mn(e,t));case 16:case"end":return n.stop()}}),or,null,[[4,10]])}var lr=function(e){function t(t,n){return S()(S()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(gn()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),gn()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,y.select)(en).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,y.select)("core/data").isResolving(en,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[cn(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}},ur=!1;function dr(e){var t=e.vendor;return ur||(ur=!0,(0,y.registerStore)(en,{actions:s,controls:Be,reducer:ln,resolvers:l,selectors:lr(t)})),en}var fr=window.wp.dataControls,mr="automattic/launch",pr="automattic/onboard/plans",hr={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},gr=[hr.Name,hr.Domain,hr.Plan,hr.Final],vr=(0,y.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hr.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isExperimental:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_EXPERIMENTAL"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e},shouldDisplaySuccessView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_SUCCESS_VIEW"===t.type||"DISABLE_SUCCESS_VIEW"!==t.type&&e}}),yr=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},_r=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},br=function(e){return{type:"SET_STEP",step:e}},Er=function(e){return{type:"SET_SITE_TITLE",title:e}},Sr=function(e){return{type:"SET_DOMAIN",domain:e}},wr=function(){return{type:"UNSET_DOMAIN"}},xr=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},Cr=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},kr=function(e){return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},Nr=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function Pr(e){return kr(e)}var Ar=function(){return{type:"OPEN_SIDEBAR"}},Or=function(){return{type:"CLOSE_SIDEBAR"}},Tr=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},Ir=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},Lr=function(){return{type:"ENABLE_EXPERIMENTAL"}},Dr=function(){return{type:"SHOW_SITE_TITLE_STEP"}},Rr=function(){return{type:"SET_MODAL_DISMISSIBLE"}},Fr=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},Mr=function(){return{type:"SHOW_MODAL_TITLE"}},jr=function(){return{type:"HIDE_MODAL_TITLE"}},Ur=function(){return{type:"ENABLE_SUCCESS_VIEW"}},Br=function(){return{type:"DISABLE_SUCCESS_VIEW"}},Vr=function(){return gr},Hr=function(){return hr},zr=function(e){return e},qr=function(e){return!!e.domain&&!e.domain.is_free},$r=function(e){return e.domain},Wr=function(e){return e.planProductId},Gr=function(e){return(0,y.select)(pr).getPlanByProductId(e.planProductId)},Yr=function(e){var t=e.planProductId,n=(0,y.select)(pr).isPlanProductFree(t);return t&&!n?e.planProductId:void 0},Kr=function(e){return!!$r(e)||e.confirmedDomainSelection},Xr=function(e,t){if(t===hr.Plan)return!!Wr(e);if(t===hr.Name){var n=(0,y.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===hr.Domain&&(0,y.select)(mr).hasSelectedDomain()},Qr=function(e){return gr.slice(0,gr.length-1).every((function(t){return Xr(e,t)}))},Jr=function(e){return gr.some((function(t){return Xr(e,t)}))},Zr=function(e){return gr.find((function(t){return!Xr(e,t)}))},ei=function(e){return null==e?void 0:e.siteTitle};var ti,ni,ri,ii,oi,ai,ci=(ni=ti="WP_LAUNCH",ri=ti+"_TS",ii={},oi={getItem:function(e){return ii.hasOwnProperty(e)?ii[e]:null},setItem:function(e,t){ii[e]=String(t)},removeItem:function(e){delete ii[e]}},ai=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:oi,{storageKey:ni,storage:{getItem:function(e){var t=ai.getItem(ri);return t&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(t)&&!new URLSearchParams(window.location.search).has("fresh")?ai.getItem(e):(ai.removeItem(ni),ai.removeItem(ri),null)},setItem:function(e,t){ai.setItem(ri,JSON.stringify(Date.now())),ai.setItem(e,t)}}});(0,y.use)(y.plugins.persistence,ci);var si=!1;var li,ui=(li={client_id:"",client_secret:""},ot||(ot=!0,(0,y.registerStore)(Y,{actions:Ve(li),controls:Be,reducer:ne,resolvers:r,selectors:i})),Y),di=Jt(),fi=dr({vendor:"variation2_front"}),mi=(si||(si=!0,(0,y.registerStore)(mr,{actions:u,controls:fr.controls,reducer:vr,selectors:d,persist:["domain","domainSearch","planProductId","confirmedDomainSelection","isExperimental","isSiteTitleStepVisible","shouldDisplaySuccessView"]})),mr);function pi(){var e=g.useContext(C).siteId,t=(0,y.useSelect)((function(t){return t(ui).getPrimarySiteDomain(e)}));return{sitePrimaryDomain:t,siteSubdomain:(0,y.useSelect)((function(t){return t(ui).getSiteSubdomain(e)})),hasPaidDomain:t&&!(null!=t&&t.is_subdomain)}}var hi=(0,F.__)("Site Title","full-site-editing"),gi=function(e){var t=e.currentSiteTitle;return(void 0===t?"":t)===hi},vi=function(e){return""!==e&&!gi({currentSiteTitle:e})},yi=function(e,t){return{product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}},_i=function(e,t){return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t}}},bi=function(e){return!!e.is_domain_registration},Ei=function(e){return[at,ct,st,lt,ut].indexOf(e.product_slug)>-1};function Si(){var e=g.useContext(C),t=e.siteId,n=e.flow,r=e.openCheckout,i=(0,y.useSelect)((function(e){return e(mi).getState()})),o=i.planProductId,a=i.domain,c=(0,y.useSelect)((function(e){return e(di).getPlanProductById(o)})),s=(0,y.useSelect)((function(e){return e(di).getPlanByProductId(o)})),l=(0,y.useSelect)((function(e){return e(di).isPlanEcommerce(null==s?void 0:s.periodAgnosticSlug)})),u=pi().siteSubdomain,d=(0,y.useDispatch)(ui),f=d.getCart,m=d.setCart;return{goToCheckout:function(){var e=ie()(regeneratorRuntime.mark((function e(){var i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a&&_i(a,n),o=c&&yi(c,n),e.next=4,f(t);case 4:return s=e.sent,e.next=7,m(t,S()(S()({},s),{},{products:[o,i]}));case 7:r((null==u?void 0:u.domain)||t.toString(),l);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}function wi(){var e,t,n=g.useContext(C).siteId,r=(0,y.useSelect)((function(e){return e(ui).getSite(n)})),i=(0,y.useSelect)((function(e){return e(ui).isSiteLaunched(n)})),o=(0,y.useSelect)((function(e){return e(ui).isSiteLaunching(n)})),a=(0,y.useSelect)((function(e){return e(ui).isFetchingSiteDetails()}));return{sitePlan:null==r?void 0:r.plan,isPaidPlan:r&&!(null!==(e=r.plan)&&void 0!==e&&e.is_free),isSiteLaunched:i,isSiteLaunching:o,selectedFeatures:null==r||null===(t=r.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!a}}var xi=function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h1":r;return g.createElement(i,{className:R()("onboarding-title",t)},n)},Ci=function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h2":r;return g.createElement(i,{className:R()("onboarding-subtitle",t)},n)},ki={__:F.__,_n:F._n,_nx:F._nx,_x:F._x,isRTL:F.isRTL,setLocaleData:F.setLocaleData},Ni=g.createContext(Oi()),Pi=function(){return g.useContext(Ni)};(0,P.createHigherOrderComponent)((function(e){return function(t){var n=Pi();return(0,h.createElement)(e,N()({},n,t))}}),"withI18n");function Ai(e,t,n){var r=e[t],i=n.hasFilter,o=n.applyFilters;return i("preTranslation")||i("postTranslation")?function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var c=o("preTranslation",i,t,n);return o("postTranslation",r.apply(void 0,gn()(c)),c,t,n)}:r}function Oi(e,t){var n=e?(0,F.createI18n)(e):ki,r=e?function(t,n){return function(e,t,n){return("string"==typeof n?"".concat(n,"",t):t)in e}(e,t,n)}:void 0,i=null!=t?t:(0,b.createHooks)(),o=i.addFilter,a=i.removeFilter,c={addFilter:o,removeFilter:a,hasFilter:i.hasFilter,applyFilters:i.applyFilters};return{__:Ai(n,"__",c),_n:Ai(n,"_n",c),_nx:Ai(n,"_nx",c),_x:Ai(n,"_x",c),isRTL:n.isRTL,localeData:e,hasTranslation:r,addFilter:o,removeFilter:a}}var Ti=(0,h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)($.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Ii=(0,h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)($.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Li=function(e){var t=e.className,n=e.children,r=e.sticky,i=void 0===r?null:r,o="";return!0===i&&(o="is-sticky"),!1===i&&(o="no-sticky"),(0,h.createElement)("div",{className:R()("action-buttons",t,o)},n)},Di=function(e){var t=e.className,n=e.children,r=X()(e,["className","children"]),__=Pi().__;return(0,h.createElement)(M.Button,N()({className:R()("action_buttons__button action-buttons__back",t),isLink:!0},r),n||__("Go back","full-site-editing"))},Ri=function(e){var t=e.className,n=e.children,r=X()(e,["className","children"]),__=Pi().__;return(0,h.createElement)(M.Button,N()({className:R()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||__("Continue","full-site-editing"))},Fi=function(e){var t=e.className,n=e.children,r=e.arrow,i=void 0===r?"right":r,o=X()(e,["className","children","arrow"]);return(0,h.createElement)(M.Button,N()({className:R()("action_buttons__button action-buttons__arrow action-buttons__arrow--".concat(i),t)},o),"left"===i&&(0,h.createElement)(q,{icon:Ti}),n,"right"===i&&(0,h.createElement)(q,{icon:Ii}))},Mi=function(e){var t=e.children;return(0,h.createElement)(h.Fragment,null,t)};function ji(e,t,n){void 0===n&&(n={});var r=n.maxWait,i=(0,g.useRef)(null),o=(0,g.useRef)([]),a=n.leading,c=(0,g.useRef)(!1),s=(0,g.useRef)(null),l=(0,g.useRef)(!1),u=(0,g.useRef)(e);u.current=e;var d=(0,g.useCallback)((function(){clearTimeout(s.current),clearTimeout(i.current),i.current=null,o.current=[],s.current=null,c.current=!1}),[]);(0,g.useEffect)((function(){return function(){l.current=!0}}),[]);return[(0,g.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(o.current=e,clearTimeout(s.current),!s.current&&a&&!c.current)return u.current.apply(u,e),void(c.current=!0);s.current=setTimeout((function(){d(),l.current||u.current.apply(u,e)}),t),r&&!i.current&&(i.current=setTimeout((function(){var e=o.current;d(),l.current||u.current.apply(null,e)}),r))}),[r,t,d,a]),d,function(){s.current&&(u.current.apply(null,o.current),d())}]}function Ui(){var e=(0,g.useContext)(C).siteId,t=(0,y.useSelect)((function(t){return t(ui).getSiteTitle(e)})),n=(0,y.useSelect)((function(e){return e(mi)})).getSiteTitle(),r=(0,y.useDispatch)(mi).setSiteTitle,i=ji((0,y.useDispatch)(ui).saveSiteTitle,1e3),o=L()(i,1)[0],a=void 0===n;return(0,g.useEffect)((function(){a||o(e,n)}),[n,o,e,a]),{title:a?t:n,updateTitle:r}}var Bi=function(e){var t=e.onPrevStep,n=e.onNextStep,r=Ui(),i=r.title,o=r.updateTitle,a=function(){null==n||n()};return(0,h.createElement)(Mi,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(xi,null,(0,F.__)("Name your site","full-site-editing")),(0,h.createElement)(Ci,null,(0,F.__)("Pick a name for your site.","full-site-editing"))),(0,h.createElement)(Li,{sticky:!1},(0,h.createElement)(Ri,{onClick:a,disabled:!(null!=i&&i.trim())}))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)("form",{onSubmit:a},(0,h.createElement)(M.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:o,value:i||"",spellCheck:!1,autoComplete:"off",placeholder:(0,F.__)("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,h.createElement)("div",{className:"nux-launch-step__input-hint"},(0,h.createElement)(M.Tip,{size:18}),(0,h.createElement)("span",null,(0,F.__)("Don't worry, you can change it later.","full-site-editing"))))),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Li,{sticky:!0},(0,h.createElement)(Di,{onClick:function(){null==t||t()}}),(0,h.createElement)(Ri,{onClick:a,disabled:!(null!=i&&i.trim())}))))},Vi=window.lodash,Hi=(0,h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)($.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),zi=ye()("calypso:analytics");n(8032);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(3421);var qi=ye()("lib/load-script/callback-handler"),$i=new Map;function Wi(){return $i}function Gi(e){return Wi().has(e)}function Yi(e,t){var n=Wi();Gi(e)?(qi('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(qi('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function Ki(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Wi(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));qi(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function Xi(){var e=this.getAttribute("src");qi('Handling successful request for "'.concat(e,'"')),Ki(e),this.onload=null}function Qi(){var e=this.getAttribute("src");qi('Handling failed request for "'.concat(e,'"')),Ki(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var Ji=ye()("lib/load-script/dom-operations");ye()("package/load-script");function Zi(e,t){var n;if(!Gi(e)&&(n=function(e){Ji('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=Xi,t.onerror=Qi,t}(e),Ji("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){Yi(e,(function(e){null===e?t():n(e)}))}));Yi(e,t)}var eo,to=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function no(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&Zi("//stats.wp.com/w2.js?1");var ro=new Nn.EventEmitter;function io(e,t){if(zi('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,Vi.includes)(to,e)){if(eo){var n=eo(t);t=S()(S()({},t),n)}t=(0,Vi.omitBy)(t,Vi.isUndefined),zi('Recording event "%s" with actual props %o',e,t),no(["recordEvent",e,t]),ro.emit("record-event",e,t)}else zi('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var oo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),ao=new Uint8Array(16);function co(){if(!oo)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oo(ao)}for(var so=[],lo=0;lo<256;++lo)so[lo]=(lo+256).toString(16).substr(1);var uo=function(e,t){var n=t||0,r=so;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var fo=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||co)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||uo(i)};var mo=["en","ja","es","pt","fr","pt-br"],po={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},ho=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],go=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],vo="http://__domain__.invalid",yo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(po[r]||r,".").concat(e)),n}},_o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,i){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=(po[i]||i)+r.pathname),r}},bo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=(po[r]||r)+n.pathname),n}},Eo={"wordpress.com/support/":bo(ho),"wordpress.com/blog/":bo(mo,/^\/blog\/?$/),"wordpress.com/tos/":yo("wordpress.com",go),"jetpack.com":yo("jetpack.com",["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]),"en.support.wordpress.com":_o("/support",ho),"en.blog.wordpress.com":_o("/blog",mo,/^\/$/),"en.forums.wordpress.com":yo("forums.wordpress.com",["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"]),"automattic.com/privacy/":bo(["en","fr","de"]),"automattic.com/cookies/":bo(["en","fr","de"]),"wordpress.com/help/contact/":function(e,t,n){return n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),bo(ho)(e,t))},"wordpress.com":yo("wordpress.com",go)};function So(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(e),vo)}catch(a){return e}if(n.origin===vo)return e;if(n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/")),(!t||"en"===t)&&"en.wordpress.com"===n.host)return n.host="wordpress.com",n.href;"en.wordpress.com"===n.host&&(n.host="wordpress.com");for(var i=[n.host,n.host+n.pathname,n.host+n.pathname.substr(0,1+n.pathname.indexOf("/",1))],o=i.length-1;o>=0;o--)if(i[o]in Eo)return Eo[i[o]](n,t,r).href;return e}function wo(){var e=T();return(0,g.useCallback)((function(t,n,r){return So(t,n||e,r)}),[e])}(0,P.createHigherOrderComponent)((function(e){return function(t){var n=wo();return(0,h.createElement)(e,N()({localizeUrl:n},t))}}),"withLocalizeUrl");var xo=(0,h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)($.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),Co=function(e){var t=e.children,n=e.className,r=e.id,i=e.position,o=void 0===i?"bottom center":i,a=e.noArrow,c=void 0===a||a,s=(0,g.useState)(!1),l=L()(s,2),u=l[0],d=l[1];return(0,h.createElement)((function(e){return(0,h.createElement)(M.Button,e)}),{icon:xo,onClick:function(e){d(!u),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},u&&(0,h.createElement)(M.Popover,{id:r,className:R()("info-tooltip__content",n),onClose:function(){d(!1)},position:o,noArrow:c},t))},ko="radio",No="button",Po="individual-item",Ao=g.forwardRef((function(e,t){var n=e.type,r=e.disabled,i=X()(e,["type","disabled"]);return"button"===n?(0,h.createElement)("div",i):(0,h.createElement)("button",N()({ref:t,disabled:r},i))})),Oo=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,o=e.railcarId,a=e.hstsRequired,c=void 0!==a&&a,s=e.isFree,l=void 0!==s&&s,u=e.isExistingSubdomain,d=void 0!==u&&u,f=e.isRecommended,m=void 0!==f&&f,p=e.onSelect,v=e.onRender,y=e.selected,_=e.type,b=void 0===_?ko:_,E=e.buttonRef,__=Pi().__,S=wo(),w=(0,P.useViewportMatch)("small","<"),x=n.indexOf("."),C=n.slice(0,x),k=n.slice(x),N=g.useState(),A=L()(N,2),O=A[0],T=A[1],I=g.useState(),D=L()(I,2),j=D[0],U=D[1],B=__(b===Po?"Default":"Free","full-site-editing"),V=w?__("Included in paid plans","full-site-editing"):(0,h.createInterpolateElement)(__("<strong>First year included</strong> in paid plans","full-site-editing"),{strong:(0,h.createElement)("strong",null)}),H=b===Po?V:__(w?"Free":"Included in plans","full-site-editing");g.useEffect((function(){n!==O&&j!==o&&o&&(v(),T(n),U(o))}),[n,O,j,o,v]);var z=function(){j&&function(e){io("calypso_traintracks_interact",{railcar:e.railcarId,action:e.action})}({action:"domain_selected",railcarId:j}),p(n)};return(0,h.createElement)(Ao,{ref:E,type:b,key:C,className:R()("domain-picker__suggestion-item",{"is-free":l,"is-selected":y,"is-unavailable":t},"type-".concat(b)),onClick:"button"!==b?z:void 0,disabled:t},b===ko&&(r?(0,h.createElement)(M.Spinner,null):(0,h.createElement)("span",{className:R()("domain-picker__suggestion-radio-circle",{"is-checked":y,"is-unavailable":t})})),(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,h.createElement)("span",{className:R()("domain-picker__domain-wrapper",{"with-margin":!c})},(0,h.createElement)("span",{className:"domain-picker__domain-sub-domain"},C),(0,h.createElement)("span",{className:"domain-picker__domain-tld"},k)),m&&!t&&(0,h.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),c&&(0,h.createElement)(Co,{position:w?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,h.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,h.createElement)("b",null,k),learn_more_link:(0,h.createElement)("a",{target:"_blank",rel:"noreferrer",href:S("https://wordpress.com/support/https-ssl")})}))),d&&b!==Po&&(0,h.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,h.createElement)("div",{className:R()("domain-picker__price",{"is-paid":!l})},t&&__("Unavailable","full-site-editing"),l&&!t&&B,!l&&!t&&(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"domain-picker__price-cost"},(0,F.sprintf)(__("%s/year","full-site-editing"),i)),(0,h.createElement)("span",{className:"domain-picker__price-inclusive"}," ",H," "),(0,h.createElement)("span",{className:"domain-picker__price-renewal"},(0,F.sprintf)(__("Renews at: %s /year","full-site-editing"),i)))),b===No&&(r?(0,h.createElement)(M.Spinner,null):(0,h.createElement)("div",{className:"domain-picker__action"},(0,h.createElement)(M.Button,{ref:E,isSecondary:!0,className:R()("domain-picker__suggestion-select-button",{"is-selected":y&&!t}),disabled:t,onClick:z},__(y&&!t?"Selected":"Select","full-site-editing")))))},To=g.forwardRef((function(e,t){return(0,h.createElement)(Oo,N()({},e,{buttonRef:t}))})),Io=function(e){var t=e.type;return(0,h.createElement)("div",{className:R()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,h.createElement)("div",{className:"domain-picker__price placeholder"}))},Lo=function(e){var t=e.onClick;return(0,h.createElement)("label",{className:"domain-picker__suggestion-item contains-link"},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,h.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},(0,F.__)("Already own a domain?","full-site-editing")),(0,h.createElement)("div",null,(0,h.createElement)("span",{className:"domain-picker__item-tip"},(0,F.__)("You can use it as your site's address","full-site-editing")))),(0,h.createElement)(Fi,{arrow:"right",onClick:t},(0,F.__)("Use a domain I own","full-site-editing")))};function Do(e,t){return e===t}function Ro(e,t,n){var r=n&&n.equalityFn?n.equalityFn:Do,i=(0,g.useState)(e),o=i[0],a=i[1],c=ji((0,g.useCallback)((function(e){return a(e)}),[]),t,n),s=c[0],l=c[1],u=(0,g.useRef)(e);return(0,g.useEffect)((function(){r(u.current,e)||(s(e),u.current=e)}),[e,s,r]),[o,l]}var Fo=dr({vendor:"variation2_front"}),Mo=["available","available_premium"];var jo=(0,h.createElement)($.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,h.createElement)($.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),Uo=function(e){var t=e.onSelect,n=e.selected,__=Pi().__,r=(0,h.useState)(!1),i=L()(r,2),o=i[0],a=i[1],c=function(e){a(!1),t(e)},s=(0,y.useSelect)((function(e){return e(Fo).getCategories()}));return(0,h.createElement)("div",{className:R()("domain-categories",{"is-open":o})},(0,h.createElement)(M.Button,{className:"domain-categories__dropdown-button",onClick:function(){return a(!o)}},(0,h.createElement)("span",null,n||__("All Categories","full-site-editing")),(0,h.createElement)(q,{icon:jo,size:16})),(0,h.createElement)("ul",{className:"domain-categories__item-group"},(0,h.createElement)("li",{className:R()("domain-categories__item",{"is-selected":!n})},(0,h.createElement)(M.Button,{onClick:function(){return c()}},__("View all","full-site-editing"))),s.map((function(e){var t=e.slug,r=e.title;return(0,h.createElement)("li",{key:t,className:R()("domain-categories__item",{"is-selected":t===n})},(0,h.createElement)(M.Button,{onClick:function(){return c(t)}},r))}))))},Bo=function(){var e=Pi(),__=e.__,t=e.isRTL;return(0,h.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},(0,h.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,h.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,h.createElement)("tspan",{fill:"#999"},(0,h.createElement)("tspan",null,"https://")),(0,h.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))},Vo=function(e){var t=e.groupItems,n=e.children;return t?(0,h.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,h.createElement)(g.Fragment,null,n)},Ho=function(e){var t=e.children;return(0,h.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)},zo=function(e){var t,n=e.header,r=e.showDomainCategories,i=e.onDomainSelect,o=e.onExistingSubdomainSelect,a=e.quantity,c=void 0===a?5:a,s=e.quantityExpanded,l=void 0===s?10:s,u=e.onDomainSearchBlur,d=void 0===u?Vi.noop:u,f=e.analyticsFlowId,m=e.analyticsUiAlgo,p=e.initialDomainSearch,_=void 0===p?"":p,b=e.onSetDomainSearch,E=void 0===b?Vi.noop:b,S=e.currentDomain,w=e.isCheckingDomainAvailability,x=e.existingSubdomain,C=e.segregateFreeAndPaid,k=void 0!==C&&C,N=e.showSearchField,P=void 0===N||N,A=e.itemType,O=void 0===A?ko:A,T=e.locale,I=e.areDependenciesLoading,D=void 0!==I&&I,R=e.orderSubDomainsLast,F=void 0!==R&&R,j=e.onUseYourDomainClick,__=Pi().__,U=__("Search for a domain","full-site-editing"),B=(0,g.useState)(!1),V=L()(B,2),H=V[0],z=V[1],$=(0,g.useState)(_),W=L()($,2),G=W[0],Y=W[1],K=(0,g.useState)(),X=L()(K,2),Q=X[0],J=X[1],Z=(0,y.useSelect)((function(e){return e(Fo).getDomainSuggestionVendor()})),ee=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",r=Ro(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",300),i=L()(r,1)[0],o=(0,y.useDispatch)(Fo).invalidateResolutionForStoreSelector;return(0,y.useSelect)((function(r){if(i&&!(i.length<2)){var a=r(Fo),c=a.getDomainSuggestions,s=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:c(i,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:e+1,locale:n,category_slug:t}),state:s(),errorMessage:l(),retryRequest:function(){o("__internalGetDomainSuggestions")}}}}),[i,t,e])}(G.trim(),l,Q,T)||{},te=ee.allDomainSuggestions,ne=ee.errorMessage,re=ee.state,ie=ee.retryRequest,oe=null==te?void 0:te.slice(x?1:0,H?l:c),ae=function(e,t,n){var r=g.useState(),i=L()(r,2),o=i[0],a=i[1],c=t&&Array.isArray(e)?[t].concat(gn()(e)):e;if(g.useEffect((function(){var e=null==c?void 0:c.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=c&&c.length&&!e&&a(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==o?void 0:o.domain_name)}))))return o}(oe,x,S);ae&&(null==oe||oe.push(ae));var ce=(0,y.useSelect)((function(e){return e(Fo).getDomainAvailabilities()}),[]);(0,g.useEffect)((function(){z(!1)}),[G]);var se=(0,g.useState)(),le=L()(se,2),ue=le[0],de=le[1];(0,g.useEffect)((function(){te&&de(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat(fo().replace(/-/g,""),"-").concat(e)}("suggestion"))}),[te,de]),(0,g.useEffect)((function(){P||Y(_)}),[_,P]);var fe=v().useRef([]);(0,g.useEffect)((function(){var e,t;H&&(null===(e=fe.current[c])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[H,c]);var me=function(e,t,n,r){var i,o="/domains/search/".concat(Z,"/").concat(f).concat(Q?"/"+Q:"");io("calypso_traintracks_render",{railcar:(i={uiAlgo:"/".concat(f,"/").concat(m),fetchAlgo:o,query:G,railcarId:t,result:r?e+"#recommended":e,uiPosition:n}).railcarId,ui_algo:i.uiAlgo,ui_position:i.uiPosition,fetch_algo:i.fetchAlgo,rec_result:i.result,fetch_query:i.query})},pe=re===Zt.Failure,he=(null===(t=G.trim)||void 0===t?void 0:t.call(G).length)<=1,ge=!pe&&!he,ve=!pe&&he,ye=c;ae&&(ye+=1),j&&(ye+=1),x&&(ye-=1);var _e=["professional"];return x&&_e.unshift("sub-domain"),F&&_e.reverse(),(0,h.createElement)("div",{className:"domain-picker"},n&&n,P&&(0,h.createElement)("div",{className:"domain-picker__search"},(0,h.createElement)("div",{className:"domain-picker__search-icon"},(0,h.createElement)(q,{icon:Hi})),(0,h.createElement)(M.TextControl,{hideLabelFromVision:!0,label:U,placeholder:U,onChange:function(e){Y(e),E(e)},onBlur:function(e){d&&d(e.currentTarget.value)},value:G,dir:"ltr"})),pe&&(0,h.createElement)(M.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,h.createElement)("p",{className:"domain-picker__error-message"},ne||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,h.createElement)(M.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:ie},__("Retry","full-site-editing"))),(ge||D)&&(0,h.createElement)("div",{className:"domain-picker__body"},r&&(0,h.createElement)("div",{className:"domain-picker__aside"},(0,h.createElement)(Uo,{selected:Q,onSelect:J})),(0,h.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,h.createElement)("div",{className:"domain-picker__sugggested-items-container"},_e.map((function(e){return"sub-domain"===e?(0,h.createElement)(g.Fragment,{key:e},k&&(0,h.createElement)(Ho,null,__("Keep sub-domain","full-site-editing")),(0,h.createElement)(Vo,{key:e,groupItems:k},!D&&x&&(0,h.createElement)(To,{key:null==x?void 0:x.domain_name,domain:null==x?void 0:x.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:ue?"".concat(ue,0):void 0,onRender:function(){return me(null==x?void 0:x.domain_name,"".concat(ue,0),0,!1)},selected:(null==S?void 0:S.domain_name)===(null==x?void 0:x.domain_name),onSelect:function(){null==o||o(null==x?void 0:x.domain_name)},type:O})||(0,h.createElement)(Io,{type:O}))):(0,h.createElement)(g.Fragment,{key:e},k&&(0,h.createElement)(Ho,null,__("Professional domains","full-site-editing")),(0,h.createElement)(Vo,{key:e,groupItems:k},!D&&(null==oe?void 0:oe.map((function(e,t){var n,r=null!=x&&x.domain_name?t+1:t,o=1===r,a=null===(n=ce[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,c=!a||(null==Mo?void 0:Mo.indexOf(a))>-1;return(0,h.createElement)(To,{ref:function(e){fe.current[r]=e},key:e.domain_name,isUnavailable:!c,domain:e.domain_name,cost:e.cost,isLoading:(null==S?void 0:S.domain_name)===e.domain_name&&w,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:o,railcarId:ue?"".concat(ue).concat(r):void 0,onRender:function(){return me(e.domain_name,"".concat(ue).concat(r),r,o)},onSelect:function(){i(e)},selected:(null==S?void 0:S.domain_name)===e.domain_name,type:O})})))||(0,Vi.times)(ye,(function(e){return(0,h.createElement)(Io,{type:O,key:e})})),j&&!!oe&&(0,h.createElement)(Lo,{onClick:j})))}))),!H&&c<l&&(null==te?void 0:te.length)&&(null==te?void 0:te.length)>c&&(0,h.createElement)("div",{className:"domain-picker__show-more"},(0,h.createElement)(M.Button,{onClick:function(){return z(!0)},isLink:!0},__("View more results","full-site-editing"))))),ve&&!D&&(0,h.createElement)("div",{className:"domain-picker__empty-state"},(0,h.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,h.createElement)("div",null,(0,h.createElement)(Bo,null))))};function qo(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:""}}function $o(){var e=function(){var e=g.useContext(C).siteId,t=(0,y.useDispatch)(ui).getCart,n=g.useState(void 0),r=L()(n,2),i=r[0],o=r[1];return g.useEffect((function(){ie()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return bi(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}(),t=null==e?void 0:e.meta;return(0,y.useSelect)((function(e){var n;return t?null===(n=e(fi).getDomainSuggestions(t,{quantity:1,include_wordpressdotcom:!1,include_dotblogsubdomain:!1}))||void 0===n?void 0:n[0]:void 0}))}function Wo(){var e,t=(0,y.useDispatch)(mi),n=t.setDomain,r=t.unsetDomain,i=t.unsetPlanProductId,o=t.confirmDomainSelection,a=(0,y.useSelect)((function(e){return e(mi).getState()})),c=a.domain,s=a.planProductId,l=a.confirmedDomainSelection,u=(0,y.useSelect)((function(e){return e(di).isPlanProductFree(s)})),d=pi(),f=d.siteSubdomain,m=d.hasPaidDomain,p=d.sitePrimaryDomain;return c?e=c:m?e=qo(null==p?void 0:p.domain):l&&(e=qo(null==f?void 0:f.domain)),{onDomainSelect:function(e){o(),n(e),u&&i()},onExistingSubdomainSelect:function(){o(),r()},selectedDomain:c,currentDomain:e}}function Go(){var e,t,n=(0,y.useSelect)((function(e){return e(mi).getState()})).domainSearch,r=Ui().title,i=wi().isLoadingSite,o=pi().siteSubdomain,a=(0,y.useDispatch)(mi).setDomainSearch,c=n.trim()||r;c&&!gi({currentSiteTitle:c})||(c=null!==(e=null==o||null===(t=o.domain)||void 0===t?void 0:t.split(".")[0])&&void 0!==e?e:"");return{domainSearch:c,isLoading:i,setDomainSearch:a}}var Yo="gutenboarding",Ko=function(e){var t=e.onPrevStep,n=e.onNextStep,r=(0,y.useSelect)((function(e){return e(p).getState()})).plan,i=Wo().currentDomain,o=pi().siteSubdomain,a=Go(),c=a.domainSearch,s=a.setDomainSearch,l=(0,y.useDispatch)(p),u=l.setDomain,d=l.unsetDomain,f=l.unsetPlan,m=l.confirmDomainSelection,g=function(){m(),null==n||n()};return(0,h.createElement)(Mi,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(xi,null,(0,F.__)("Choose a domain","full-site-editing")),(0,h.createElement)(Ci,null,(0,F.__)("Free for the first year with any paid plan.","full-site-editing"))),(0,h.createElement)(Li,{sticky:!1},(0,h.createElement)(Ri,{onClick:g,disabled:!c}))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(zo,{analyticsFlowId:Yo,initialDomainSearch:c,onSetDomainSearch:s,onDomainSearchBlur:function(e){io("calypso_newsite_domain_search_blur",{flow:Yo,query:e,where:"editor_domain_modal"})},currentDomain:i||qo(null==o?void 0:o.domain),existingSubdomain:qo(null==o?void 0:o.domain),onDomainSelect:function(e){m(),u(e),null!=r&&r.isFree&&f()},onExistingSubdomainSelect:function(){d()},analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:document.documentElement.lang})),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Li,{sticky:!0},(0,h.createElement)(Di,{onClick:function(){null==t||t()}}),(0,h.createElement)(Ri,{onClick:g,disabled:!c}))))},Xo=(0,h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)($.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),Qo=(0,h.createElement)(q,{icon:Xo,size:17}),Jo=(0,h.createElement)(q,{icon:G,size:17}),Zo=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var ea=function(e){var t=e.features,n=e.domain,r=e.isFree,i=void 0!==r&&r,o=e.isOpen,a=void 0!==o&&o,c=e.onPickDomain,s=e.disabledLabel,l=e.multiColumn,u=void 0!==l&&l,d=function(e,t,__){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:Qo,domainMessage:(0,h.createElement)(h.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",Zo)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:Qo,domainMessage:(0,h.createElement)(h.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",Zo)}},PAID_DOMAIN:{FREE_PLAN:{className:"plans-feature-list__domain-summary is-free",icon:Jo,domainMessage:(0,h.createElement)("span",null,(0,h.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:(0,h.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{className:"plans-feature-list__domain-summary is-picked",icon:Qo,domainMessage:(0,h.createElement)("span",null,(0,h.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:(0,h.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(i,n,Pi().__);return(0,h.createElement)("div",{className:"plans-feature-list",hidden:!a},(0,h.createElement)("ul",{className:R()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":u})},s?(0,h.createElement)("li",{className:"plans-feature-list__item plans-feature-list__item--disabled-message"},Jo," ",(0,h.createElement)("span",null,s)):d&&(0,h.createElement)("li",{className:"plans-feature-list__item"},(0,h.createElement)(M.Button,{className:d.className,onClick:c,isLink:!0},d.icon,d.domainMessage)),t.map((function(e,t){return(0,h.createElement)("li",{key:t,className:"plans-feature-list__item"},Qo," ",(0,h.createElement)("span",null,e))}))))};var ta="automattic/wpcom-features",na={domain:{id:"domain",minSupportedPlan:ft},store:{id:"store",minSupportedPlan:"Ecommerce"},seo:{id:"seo",minSupportedPlan:pt},plugins:{id:"plugins",minSupportedPlan:pt},"ad-free":{id:"ad-free",minSupportedPlan:ft},"image-storage":{id:"image-storage",minSupportedPlan:mt},"video-storage":{id:"video-storage",minSupportedPlan:mt},support:{id:"support",minSupportedPlan:pt}},ra=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:na;return e},ia=function(e){return e},oa=function(e,t){var n=ia(e);if(t.length)return t.reduce((function(e,t){var r=n[t].minSupportedPlan;return _t.indexOf(r)>_t.indexOf(e)?r:e}),n[t[0]].minSupportedPlan)},aa=!1;var ca=Jt(),sa=(aa||(aa=!0,(0,y.registerStore)(ta,{controls:fr.controls,reducer:ra,selectors:f})),ta),la=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),ua=function(e){var t=e.slug,n=e.name,r=e.tagline,i=e.isPopular,o=void 0!==i&&i,a=e.isFree,c=void 0!==a&&a,s=e.domain,l=e.features,u=e.onSelect,d=e.onPickDomainClick,f=e.onToggleExpandAll,m=e.allPlansExpanded,p=e.disabledLabel,v=e.CTAVariation,_=void 0===v?"NORMAL":v,b=e.popularBadgeVariation,E=void 0===b?"ON_TOP":b,__=Pi().__,S=(0,y.useSelect)((function(e){return e(ca).getPlanProduct(t,"ANNUALLY")})),w=g.useState(!1),x=L()(w,2),C=x[0],k=x[1],N=(0,P.useViewportMatch)("mobile",">=");g.useEffect((function(){k(m)}),[m]);var A=m||N||o||C;return(0,h.createElement)("div",{className:R()("plan-item",{"is-popular":o,"is-open":A,"badge-next-to-name":"NEXT_TO_NAME"===E})},o&&"ON_TOP"===E&&(0,h.createElement)("span",{className:"plan-item__badge"},__("Popular","full-site-editing")),(0,h.createElement)("div",{className:R()("plan-item__viewport",{"is-popular":o})},(0,h.createElement)("div",{className:"plan-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",onClick:function(){return k((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&k((function(e){return!e}))},className:"plan-item__summary"},(0,h.createElement)("div",{className:R()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===E})},(0,h.createElement)("div",{className:"plan-item__name"},n),o&&"NEXT_TO_NAME"===E&&(0,h.createElement)("span",{className:"plan-item__badge-next-to-name"},__("Popular","full-site-editing"))),r&&(0,h.createElement)("p",{className:"plan-item__tagline"},r),(0,h.createElement)("div",{className:"plan-item__price"},(0,h.createElement)("div",{className:R()("plan-item__price-amount",{"is-loading":!(null!=S&&S.price)})},(null==S?void 0:S.price)||" ")),!A&&(0,h.createElement)("div",{className:"plan-item__dropdown-chevron"},la)),(0,h.createElement)("div",{hidden:!A},(0,h.createElement)("div",{className:"plan-item__price-note"},__(c?"free forever":"per month, billed yearly","full-site-editing")),(0,h.createElement)("div",{className:"plan-item__actions"},"NORMAL"===_?(0,h.createElement)(M.Button,{className:"plan-item__select-button",onClick:function(){u(null==S?void 0:S.productId)},isPrimary:!0,disabled:!!p},(0,h.createElement)("span",null,__(p||"Choose","full-site-editing"))):(0,h.createElement)(M.Button,{className:"plan-item__select-button full-width",onClick:function(){u(null==S?void 0:S.productId)},isPrimary:o,disabled:!!p},(0,h.createElement)("span",null,p?__(p,"full-site-editing"):(0,F.sprintf)(__("Select %s","full-site-editing"),n)))),(0,h.createElement)(ea,{features:l,domain:s,isFree:c,isOpen:A,onPickDomain:d,disabledLabel:p&&(0,F.sprintf)(__("%s is not included","full-site-editing"),null==s?void 0:s.domain_name)})))),o&&!N&&(0,h.createElement)(M.Button,{onClick:f,className:"plan-item__mobile-expand-all-plans",isLink:!0},__(m?"Collapse all plans":"Expand all plans","full-site-editing")))},da=function(e){var t=e.selectedPlanProductId,n=e.onPlanSelect,r=e.onPickDomainClick,i=e.currentDomain,o=e.disabledPlans,a=e.locale,c=e.showTaglines,s=void 0!==c&&c,l=e.CTAVariation,u=void 0===l?"NORMAL":l,d=e.popularBadgeVariation,f=void 0===d?"ON_TOP":d,m=e.customTagLines,p=e.defaultAllPlansExpanded,v=void 0!==p&&p,_=(0,y.useSelect)((function(e){return e(ca).getSupportedPlans(a)})),b=(0,g.useState)(v),E=L()(b,2),S=E[0],w=E[1];return(0,h.createElement)("div",{className:"plans-table"},_.map((function(e){var a,c;return e&&(0,h.createElement)(ua,{popularBadgeVariation:f,allPlansExpanded:S,key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,domain:i,tagline:null!==(a=s&&(null==m?void 0:m[e.periodAgnosticSlug]))&&void 0!==a?a:e.description,CTAVariation:u,features:null!==(c=e.features)&&void 0!==c?c:[],isPopular:e.isPopular,isFree:e.isFree,name:null==e?void 0:e.title.toString(),isSelected:e.productIds.indexOf(t)>-1,onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return w((function(e){return!e}))},disabledLabel:null==o?void 0:o[e.periodAgnosticSlug]})})))},fa=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),ma=function(e){var t=e.slug,n=e.name,r=e.description,i=e.features,o=e.domain,a=e.badge,c=e.isFree,s=void 0!==c&&c,l=e.isOpen,u=void 0!==l&&l,d=e.isPrimary,f=void 0!==d&&d,m=e.onSelect,p=e.onPickDomainClick,g=e.onToggle,v=e.disabledLabel,__=Pi().__,_=(0,y.useSelect)((function(e){return e(pr).getPlanProduct(t,"ANNUALLY")})),b=function(){!v&&(null==g||g(t,!u))};return(0,h.createElement)("div",{className:R()("plans-accordion-item",{"is-open":u,"is-primary":f,"has-badge":!!a,"is-disabled":!!v})},a&&(0,h.createElement)("div",{className:"plans-accordion-item__badge"},(0,h.createElement)("span",null,a)),(0,h.createElement)("div",{className:"plans-accordion-item__viewport"},(0,h.createElement)("div",{className:"plans-accordion-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",onClick:b,onKeyDown:function(e){return 32===e.keyCode&&b()},className:"plans-accordion-item__header"},(0,h.createElement)("div",{className:"plans-accordion-item__heading"},(0,h.createElement)("div",{className:"plans-accordion-item__name"},n),(0,h.createElement)("div",{className:"plans-accordion-item__description"},r)),(0,h.createElement)("div",{className:"plans-accordion-item__price"},(0,h.createElement)("div",{className:R()("plans-accordion-item__price-amount",{"is-loading":!(null!=_&&_.price)})},(null==_?void 0:_.price)||" ",(null==_?void 0:_.price)&&(0,h.createElement)("span",null,__("/mo","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion-item__price-note"},__(s?"free forever":"billed annually","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion-item__disabled-label"},v),!u&&(0,h.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},fa)),(0,h.createElement)("div",{className:"plans-accordion-item__actions",hidden:!u},(0,h.createElement)(Ri,{"data-e2e-button":s?"freePlan":"paidPlan",onClick:function(){m(null==_?void 0:_.productId)}},__("Select","full-site-editing"))),(0,h.createElement)(ea,{features:i,domain:o,isFree:s,isOpen:u,onPickDomain:p,multiColumn:!0}))))},pa=function(e){var t=e.isOpen,n=void 0!==t&&t,r=e.multiColumn,i=void 0!==r&&r,o=Array.from(Array(10).keys());return(0,h.createElement)("div",{className:"plans-feature-list",hidden:!n},(0,h.createElement)("ul",{className:R()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":i})},o.map((function(e){return(0,h.createElement)("li",{key:e,className:"plans-feature-list__item"},(0,h.createElement)("span",{className:"plans-feature-list__placeholder"},""))}))))},ha=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),ga=function(e){var t=e.isOpen,n=e.isPrimary;return(0,h.createElement)("div",{className:R()("plans-accordion-item",{"is-open":t,"is-primary":n})},(0,h.createElement)("div",{className:"plans-accordion-item__viewport"},(0,h.createElement)("div",{className:"plans-accordion-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},(0,h.createElement)("div",{className:"plans-accordion-item__heading"},(0,h.createElement)("div",{className:"plans-accordion-item__name"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,h.createElement)("div",{className:"plans-accordion-item__description"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,h.createElement)("div",{className:"plans-accordion-item__price"},(0,h.createElement)("div",{className:"plans-accordion-item__price-amount"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,h.createElement)("div",{className:"plans-accordion-item__price-note"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,h.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!t&&(0,h.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},ha)),(0,h.createElement)("div",{className:"plans-accordion-item__actions",hidden:!t},(0,h.createElement)(Ri,{disabled:!0},(0,h.createElement)("span",null,""))),(0,h.createElement)(pa,{isOpen:t,multiColumn:!0}))))},va=(0,h.createElement)(M.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(M.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),ya=function(e){var t,n=e.selectedFeatures,r=void 0===n?[]:n,i=e.selectedPlanProductId,o=e.onPlanSelect,a=e.onPickDomainClick,c=e.currentDomain,s=e.disabledPlans,l=e.locale,__=Pi().__,u=(0,y.useSelect)((function(e){return e(ca).getSupportedPlans(l)})),d=!(null!=u&&u.length),f=(0,y.useSelect)((function(e){return e(ca).getDefaultPaidPlan(l)})),m=(0,y.useSelect)((function(e){return e(sa).getRecommendedPlanSlug(r)})),p=(0,y.useSelect)((function(e){return e(ca).getPlanByPeriodAgnosticSlug(m)})),v=p||f,_=__(p?"Recommended for you":"Popular","full-site-editing"),b=u.filter((function(e){return e.periodAgnosticSlug!==(null==v?void 0:v.periodAgnosticSlug)})),E=[null==v?void 0:v.periodAgnosticSlug],S=(0,g.useState)(E),w=L()(S,2),x=w[0],C=w[1],k=!d&&x.length>=u.length,N=function(e,t){C(t?[].concat(gn()(x),[e]):x.filter((function(t){return t!==e})))};return(0,h.createElement)("div",{className:"plans-accordion"},(0,h.createElement)("div",{className:"plans-accordion__plan-item-group"},d?(0,h.createElement)(ga,{isOpen:!0,isPrimary:!0}):v&&(0,h.createElement)(h.Fragment,null,p&&(0,h.createElement)("div",{className:"plans-accordion__recommend-hint"},(0,h.createElement)(q,{icon:va,size:16}),(0,h.createElement)("span",null,__("Based on the features you selected.","full-site-editing"))),(0,h.createElement)(ma,{key:v.periodAgnosticSlug,slug:v.periodAgnosticSlug,name:null==v?void 0:v.title.toString(),description:null==v?void 0:v.description.toString(),features:null!==(t=v.features)&&void 0!==t?t:[],domain:c,badge:_,isFree:v.isFree,isOpen:!0,isPrimary:!0,isSelected:!!i&&v.productIds.indexOf(i)>-1,onSelect:o,onPickDomainClick:a}))),(0,h.createElement)("div",{className:"plans-accordion__actions"},(0,h.createElement)(M.Button,{className:"plans-accordion__toggle-all-button",onClick:function(){C(k?E:u.map((function(e){return e.periodAgnosticSlug})))},isLink:!0},__(k?"Collapse all plans":"Show all plans","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion__plan-item-group"},d?[1,2,3,4].map((function(e){return(0,h.createElement)(ga,{key:e})})):b.map((function(e){var t;return(0,h.createElement)(ma,{key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:null!==(t=e.features)&&void 0!==t?t:[],domain:c,isFree:e.isFree,isOpen:x.indexOf(e.periodAgnosticSlug)>-1&&!(null!=s&&s[e.periodAgnosticSlug]),isSelected:e.productIds.indexOf(i)>-1,onSelect:o,onPickDomainClick:a,onToggle:N,disabledLabel:null==s?void 0:s[e.periodAgnosticSlug]})}))))},_a=(0,h.createElement)(q,{icon:Xo,size:25}),ba=function(e){var t=e.onSelect,n=e.locale,__=Pi().__,r=(0,y.useSelect)((function(e){return e(ca).getFeatures()})),i=(0,y.useSelect)((function(e){return e(ca).getFeaturesByType()})),o=(0,y.useSelect)((function(e){return e(ca).getSupportedPlans(n)})),a=(0,y.useSelect)((function(e){return o.map((function(t){return e(ca).getPlanProduct(t.periodAgnosticSlug,"ANNUALLY")}))})),c=!(null!=o&&o.length),s=[1,2,3,4,5];return(0,h.createElement)("div",{className:"plans-details"},(0,h.createElement)("table",{className:"plans-details__table"},(0,h.createElement)("thead",null,(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",null,__("Feature","full-site-editing")),c?s.map((function(e){return(0,h.createElement)("th",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder"},""))})):o.map((function(e){return(0,h.createElement)("th",{key:e.periodAgnosticSlug},e.title)})))),c?(0,h.createElement)("tbody",null,s.map((function(e,t){return(0,h.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,h.createElement)("th",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),s.map((function(e){return(0,h.createElement)("td",{key:e})})))}))):i.map((function(e){var t;return(0,h.createElement)("tbody",{key:e.id},e.name&&(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map((function(e,t){return(0,h.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,h.createElement)("th",null,r[e].name),o.map((function(t,n){var r;return"storage"===e?(0,h.createElement)("td",{key:n},t.storage):(0,h.createElement)("td",{key:n},null!==(r=t.featuresSlugs)&&void 0!==r&&r[e]?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"hidden"},__("Available","full-site-editing")),_a):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing"))))})))})))})),(0,h.createElement)("tbody",null,(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",{colSpan:6},__("Sign up","full-site-editing"))),(0,h.createElement)("tr",{className:"plans-details__feature-row",key:"price"},(0,h.createElement)("th",null,__("Monthly subscription (billed yearly)","full-site-editing")),c?s.map((function(e){return(0,h.createElement)("td",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder"},""))})):o.map((function(e,t){var n;return(0,h.createElement)("td",{key:e.periodAgnosticSlug},null===(n=a[t])||void 0===n?void 0:n.price)}))),(0,h.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},(0,h.createElement)("th",null),c?s.map((function(e){return(0,h.createElement)("td",{key:e},(0,h.createElement)(M.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},(0,h.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," ")})):o.map((function(e,n){return(0,h.createElement)("td",{key:e.periodAgnosticSlug},(0,h.createElement)(M.Button,{className:"plans-details__select-button",onClick:function(){var e;t(null===(e=a[n])||void 0===e?void 0:e.productId)},isPrimary:!0},(0,h.createElement)("span",null,__("Select","full-site-editing"))))}))))))},Ea=ye()("plans-grid"),Sa=function(e){var t=e.header,n=e.selectedFeatures,r=e.currentPlanProductId,i=e.currentDomain,o=e.onPlanSelect,a=e.onPickDomainClick,c=e.disabledPlans,s=e.isAccordion,l=e.locale,u=e.showPlanTaglines,d=void 0!==u&&u,f=e.CTAVariation,m=void 0===f?"NORMAL":f,p=e.popularBadgeVariation,g=void 0===p?"ON_TOP":p,v=e.customTagLines,y=e.hidePlansComparison,_=void 0!==y&&y,b=e.defaultAllPlansExpanded,E=void 0!==b&&b,__=Pi().__;return s&&Ea("PlansGrid accordion version is active"),(0,h.createElement)("div",{className:"plans-grid"},t&&(0,h.createElement)("div",{className:"plans-grid__header"},t),(0,h.createElement)("div",{className:"plans-grid__table"},(0,h.createElement)("div",{className:"plans-grid__table-container"},s?(0,h.createElement)(ya,{selectedFeatures:n,selectedPlanProductId:r,onPlanSelect:o,currentDomain:i,onPickDomainClick:a,disabledPlans:c,locale:l}):(0,h.createElement)(da,{popularBadgeVariation:g,CTAVariation:m,selectedPlanProductId:r,onPlanSelect:o,customTagLines:v,currentDomain:i,onPickDomainClick:a,disabledPlans:c,locale:l,showTaglines:d,defaultAllPlansExpanded:E}))),!_&&(0,h.createElement)("div",{className:"plans-grid__details"},(0,h.createElement)("div",{className:"plans-grid__details-heading"},(0,h.createElement)(xi,{tagName:"h2"},__("Detailed comparison","full-site-editing"))),(0,h.createElement)("div",{className:"plans-grid__details-container"},(0,h.createElement)(ba,{onSelect:o,locale:l}))))},wa=function(e){var t,n=e.onPrevStep,r=e.onNextStep,i=(0,y.useSelect)((function(e){return e(p).getSelectedDomain()})),o=(0,y.useSelect)((function(e){return e(p).getLaunchStep()})),a=(0,y.useDispatch)(p),c=a.updatePlan,s=a.setStep,l=wi().selectedFeatures,u=i&&!i.is_free;return(0,h.createElement)(Mi,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(xi,null,(0,F.__)("Select a plan","full-site-editing")),(0,h.createElement)(Ci,null,(0,F.__)("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within 30 days.","full-site-editing")))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(Sa,{currentDomain:i,onPlanSelect:function(e){c(e),null==r||r()},onPickDomainClick:function(){s(o.Domain)},disabledPlans:u?ee()({},at,(0,F.__)("Unavailable with domain","full-site-editing")):void 0,isAccordion:!0,selectedFeatures:l,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Li,{sticky:!0},(0,h.createElement)(Di,{onClick:function(){null==n||n()}}))))};function xa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ca=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var ka=function(e){function t(e,r,s,l,f){for(var m,p,h,g,b,S=0,w=0,x=0,C=0,k=0,I=0,D=h=m=0,F=0,M=0,j=0,U=0,B=s.length,V=B-1,H="",z="",q="",$="";F<B;){if(p=s.charCodeAt(F),F===V&&0!==w+C+x+S&&(0!==w&&(p=47===w?10:47),C=x=S=0,B++,V++),0===w+C+x+S){if(F===V&&(0<M&&(H=H.replace(d,"")),0<H.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:H+=s.charAt(F)}p=59}switch(p){case 123:for(m=(H=H.trim()).charCodeAt(0),h=1,U=++F;F<B;){switch(p=s.charCodeAt(F)){case 123:h++;break;case 125:h--;break;case 47:switch(p=s.charCodeAt(F+1)){case 42:case 47:e:{for(D=F+1;D<V;++D)switch(s.charCodeAt(D)){case 47:if(42===p&&42===s.charCodeAt(D-1)&&F+2!==D){F=D+1;break e}break;case 10:if(47===p){F=D+1;break e}}F=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;F++<V&&s.charCodeAt(F)!==p;);}if(0===h)break;F++}switch(h=s.substring(U,F),0===m&&(m=(H=H.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<M&&(H=H.replace(d,"")),p=H.charCodeAt(1)){case 100:case 109:case 115:case 45:M=r;break;default:M=T}if(U=(h=t(r,M,h,p,f+1)).length,0<L&&(b=c(3,h,M=n(T,H,j),r,P,N,U,p,f,l),H=M.join(""),void 0!==b&&0===(U=(h=b.trim()).length)&&(p=0,h="")),0<U)switch(p){case 115:H=H.replace(E,a);case 100:case 109:case 45:h=H+"{"+h+"}";break;case 107:h=(H=H.replace(v,"$1 $2"))+"{"+h+"}",h=1===O||2===O&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=H+h,112===l&&(z+=h,h="")}else h="";break;default:h=t(r,n(r,H,j),h,l,f+1)}q+=h,h=j=M=D=m=0,H="",p=s.charCodeAt(++F);break;case 125:case 59:if(1<(U=(H=(0<M?H.replace(d,""):H).trim()).length))switch(0===D&&(m=H.charCodeAt(0),45===m||96<m&&123>m)&&(U=(H=H.replace(" ",":")).length),0<L&&void 0!==(b=c(1,H,r,e,P,N,z.length,l,f,l))&&0===(U=(H=b.trim()).length)&&(H="\0\0"),m=H.charCodeAt(0),p=H.charCodeAt(1),m){case 0:break;case 64:if(105===p||99===p){$+=H+s.charAt(F);break}default:58!==H.charCodeAt(U-1)&&(z+=i(H,m,p,H.charCodeAt(2)))}j=M=D=m=0,H="",p=s.charCodeAt(++F)}}switch(p){case 13:case 10:47===w?w=0:0===1+m&&107!==l&&0<H.length&&(M=1,H+="\0"),0<L*R&&c(0,H,r,e,P,N,z.length,l,f,l),N=1,P++;break;case 59:case 125:if(0===w+C+x+S){N++;break}default:switch(N++,g=s.charAt(F),p){case 9:case 32:if(0===C+S+w)switch(k){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===C+w+S&&(M=j=1,g="\f"+g);break;case 108:if(0===C+w+S+A&&0<D)switch(F-D){case 2:112===k&&58===s.charCodeAt(F-3)&&(A=k);case 8:111===I&&(A=I)}break;case 58:0===C+w+S&&(D=F);break;case 44:0===w+x+C+S&&(M=1,g+="\r");break;case 34:case 39:0===w&&(C=C===p?0:0===C?p:C);break;case 91:0===C+w+x&&S++;break;case 93:0===C+w+x&&S--;break;case 41:0===C+w+S&&x--;break;case 40:if(0===C+w+S){if(0===m)switch(2*k+3*I){case 533:break;default:m=1}x++}break;case 64:0===w+x+C+S+D+h&&(h=1);break;case 42:case 47:if(!(0<C+S+x))switch(w){case 0:switch(2*p+3*s.charCodeAt(F+1)){case 235:w=47;break;case 220:U=F,w=42}break;case 42:47===p&&42===k&&U+2!==F&&(33===s.charCodeAt(U+2)&&(z+=s.substring(U,F+1)),g="",w=0)}}0===w&&(H+=g)}I=k,k=p,F++}if(0<(U=z.length)){if(M=r,0<L&&(void 0!==(b=c(2,z,M,e,P,N,U,l,f,l))&&0===(z=b).length))return $+z+q;if(z=M.join(",")+"{"+z+"}",0!=O*A){switch(2!==O||o(z,2)||(A=0),A){case 111:z=z.replace(_,":-moz-$1")+z;break;case 112:z=z.replace(y,"::-webkit-input-$1")+z.replace(y,"::-moz-$1")+z.replace(y,":-ms-input-$1")+z}A=0}}return $+z+q}function n(e,t,n){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<o;++c)t[c]=r(e,t[c],n).trim();break;default:var s=c=0;for(t=[];c<o;++c)for(var l=0;l<a;++l)t[s++]=r(e[l]+" ",i[c],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",c=2*t+3*n+4*r;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===O||2===O&&o(s,1)?"-webkit-"+s+s:s}if(0===O||2===O&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return m.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(b,"tb");break;case 232:s=a.replace(b,"tb-rl");break;case 220:s=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(x,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function c(e,t,n,r,i,o,a,c,s,u){for(var d,f=0,m=t;f<L;++f)switch(d=I[f].call(l,e,m,n,r,i,o,a,c,s,u)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?O=1:(O=2,D=e):O=0),s}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<L){var i=c(-1,n,r,r,P,N,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(T,r,n,0,0);return 0<L&&(void 0!==(i=c(-2,o,r,r,P,N,o.length,0,0,0))&&(o=i)),"",A=0,N=P=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,m=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,_=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,w=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,N=1,P=1,A=0,O=1,T=[],I=[],L=0,D=null,R=0;return l.use=function e(t){switch(t){case void 0:case null:L=I.length=0;break;default:if("function"==typeof t)I[L++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},l.set=s,void 0!==e&&s(e),l},Na="/*|*/";function Pa(e){e&&Aa.current.insert(e+"}")}var Aa={current:null},Oa=function(e,t,n,r,i,o,a,c,s,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Aa.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+Na;break;case 3:switch(c){case 102:case 112:return Aa.current.insert(n[0]+t),"";default:return t+(0===l?Na:"")}case-2:t.split("/*|*/}").forEach(Pa)}},Ta=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new ka(t);var i,o={};i=e.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(Oa),a=function(e,t,n,i){var o=t.name;Aa.current=n,r(e,t.styles),i&&(s.inserted[o]=!0)};var s={key:n,sheet:new Ca({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:a};return s},Ia=n(7111),La=n.n(Ia);var Da=function(e){for(var t,n=e.length,r=n^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},Ra={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Fa=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},Ma=/[A-Z]|^ms/g,ja=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ua=function(e){return 45===e.charCodeAt(1)},Ba=function(e){return null!=e&&"boolean"!=typeof e},Va=Fa((function(e){return Ua(e)?e:e.replace(Ma,"-$&").toLowerCase()})),Ha=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ja,(function(e,t,n){return qa={name:t,styles:n,next:qa},t}))}return 1===Ra[e]||Ua(e)||"number"!=typeof t||0===t?t:t+"px"};function za(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return qa={name:n.name,styles:n.styles,next:qa},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)qa={name:i.name,styles:i.styles,next:qa},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=za(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":Ba(a)&&(r+=Va(o)+":"+Ha(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=za(e,t,a,!1);switch(o){case"animation":case"animationName":r+=Va(o)+":"+c+";";break;default:r+=o+"{"+c+"}"}}else for(var s=0;s<a.length;s++)Ba(a[s])&&(r+=Va(o)+":"+Ha(o,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=qa,a=n(e);return qa=o,za(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var qa,$a=/label:\s*([^\s;\n{]+)\s*;/g;var Wa=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";qa=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=za(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=za(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);$a.lastIndex=0;for(var c,s="";null!==(c=$a.exec(i));)s+="-"+c[1];return{name:Da(i)+s,styles:i,next:qa}},Ga=(Object.prototype.hasOwnProperty,(0,g.createContext)("undefined"!=typeof HTMLElement?Ta():null)),Ya=(0,g.createContext)({}),Ka=(Ga.Provider,function(e){var t=function(t,n){return(0,g.createElement)(Ga.Consumer,null,(function(r){return e(t,r,n)}))};return(0,g.forwardRef)(t)});function Xa(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Qa=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}};g.Component;var Ja=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var c in a="",o)o[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function Za(e,t,n){var r=[],i=Xa(e,r,n);return r.length<2?n:i+t(r)}Ka((function(e,t){return(0,g.createElement)(Ya.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Wa(n,t.registered);return Qa(t,i,!1),t.key+"-"+i.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return Za(t.registered,r,Ja(n))},theme:n},o=e.children(i);return!0,o}))}));var ec=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};n(3463);function tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var nc=function(e,t){return"function"==typeof t?t(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tc(n,!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tc(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},rc=ec((function(e){return ec((function(t){return nc(e,t)}))})),ic=function(e){return(0,g.createElement)(Ya.Consumer,null,(function(t){return e.theme!==t&&(t=rc(t)(e.theme)),(0,g.createElement)(Ya.Provider,{value:t},e.children)}))};var oc="#F6F7F7",ac="#DCDCDE",cc="#8E9196",sc="#646970",lc="#2C3338",uc="#008A20",dc="#FFF",fc="#000",mc={colors:{background:oc,surface:dc,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#2271B1",highlightBorder:"#043959",highlightOver:"#135E96",success:uc,discount:uc,disabledPaymentButtons:oc,disabledPaymentButtonsAccent:ac,disabledButtons:"#A7AAAD",borderColor:"#C3C4C7",borderColorLight:ac,borderColorDark:sc,upcomingStepBackground:ac,textColor:lc,textColorLight:sc,textColorDark:fc,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:fc,applePayButtonRollOverColor:lc,noticeBackground:lc,defaultNoticeIconBackground:cc,textColorOnDarkBackground:dc,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:oc,placeHolderTextColor:cc},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}},pc=n(9976),hc=n.n(pc),gc=n(3980),vc=n.n(gc);function yc(e){return e.filter((function(e){return e})).join(" ")}var _c=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,bc=Fa((function(e){return _c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ec=function(e){return"theme"!==e&&"innerRef"!==e},Sc=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?bc:Ec};function wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wc(n,!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wc(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cc=function e(t,n){var r,i,o;void 0!==n&&(r=n.label,o=n.target,i=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var a=t.__emotion_real===t,c=a&&t.__emotion_base||t;"function"!=typeof i&&a&&(i=t.__emotion_forwardProp);var s=i||Sc(c),l=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var f=u.length,m=1;m<f;m++)d.push(u[m],u[0][m])}var p=Ka((function(e,t,n){return(0,g.createElement)(Ya.Consumer,null,(function(r){var a=l&&e.as||c,u="",f=[],m=e;if(null==e.theme){for(var p in m={},e)m[p]=e[p];m.theme=r}"string"==typeof e.className?u=Xa(t.registered,f,e.className):null!=e.className&&(u=e.className+" ");var h=Wa(d.concat(f),t.registered,m);Qa(t,h,"string"==typeof a);u+=t.key+"-"+h.name,void 0!==o&&(u+=" "+o);var v=l&&void 0===i?Sc(a):s,y={};for(var _ in e)l&&"as"===_||v(_)&&(y[_]=e[_]);return y.className=u,y.ref=n||e.innerRef,(0,g.createElement)(a,y)}))}));return p.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=c,p.__emotion_styles=d,p.__emotion_forwardProp=i,Object.defineProperty(p,"toString",{value:function(){return"."+o}}),p.withComponent=function(t,r){return e(t,void 0!==r?xc({},n||{},{},r):n).apply(void 0,d)},p}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Cc[e]=Cc(e)}));var kc=Cc;function Nc(){var e=hc()(["\n\tmargin: 2em;\n\ttext-align: center;\n"]);return Nc=function(){return e},e}var Pc=ye()("composite-checkout:checkout-error-boundary"),Ac=kc.div(Nc()),Oc=function(e){Qn()(n,e);var t=Zn()(n);function n(e){var r;return $n()(this,n),r=t.call(this,e),ee()(Kn()(r),"state",{hasError:!1,currentError:null}),r}return Gn()(n,[{key:"componentDidCatch",value:function(e,t){if(this.props.onError){var n="".concat(e.message,"; Stack: ").concat(e.stack,"; Component Stack: ").concat(t.componentStack);Pc("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,h.createElement)(Tc,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(v().Component);function Tc(e){var t=e.errorMessage;return(0,h.createElement)(Ac,null,t)}function Ic(){var e=hc()(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: theme.weights.normal;\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"]);return Ic=function(){return e},e}var Lc=kc("button")(Ic(),(function(e){return e.fullWidth?"100%":"auto"}),(function(e){return"paypal"===e.buttonType?"50px":"2px"}),(function(e){return"text-button"===e.buttonType?"0":"10px 15px"}),(function(e){return!e.buttonType||e.disabled?"1px solid "+e.theme.colors.borderColor:"0"}),Mc,Fc,Uc,Rc,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),Fc,(function(e){return e.disabled?"not-allowed":"pointer"}),Rc,Uc,Fc,(function(e){var t=e.buttonType;return"grayscale( ".concat("primary"===t||"paypal"===t?"0":"100"," ) invert( 0 );")}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),Mc,jc,jc,Mc),Dc=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,i=e.children,o=e.fullWidth,a=X()(e,["className","buttonType","isBusy","children","fullWidth"]),c=yc(["checkout-button"].concat(gn()(n?["is-status-"+n]:[]),gn()(r?["is-busy"]:[]),gn()(t?[t]:[])));return(0,h.createElement)(Lc,N()({fullWidth:o,buttonType:n,className:c},a),i)};function Rc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function Fc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledButtons;switch(n){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function Mc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function jc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtonsAccent;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function Uc(e){return"text-button"===e.buttonType?"underline":"none"}function Bc(){var e=hc()(["\n\tfill: #fff;\n"]);return Bc=function(){return e},e}function Vc(e){var t=e.className,n=e.id;return(0,h.createElement)(Hc,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},(0,h.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,h.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),(0,h.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},(0,h.createElement)("rect",{width:"20",height:"20"})))}Vc.propTypes={className:vc().string,id:vc().string};var Hc=kc.svg(Bc());var zc,qc,$c,Wc=function(e){var t=e.value,n=e.onClick,r=e.ariaLabel,i=X()(e,["value","onClick","ariaLabel"]);return(0,h.createElement)(Dc,N()({onClick:n,buttonType:"primary","aria-label":r},i),t)};function Gc(){var e=hc()(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"]);return Gc=function(){return e},e}function Yc(){var e=hc()(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"]);return Yc=function(){return e},e}function Kc(){var e=hc()(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"]);return Kc=function(){return e},e}function Xc(){var e=hc()(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]);return Xc=function(){return e},e}function Qc(){var e=hc()(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"]);return Qc=function(){return e},e}function Jc(){var e=hc()(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"]);return Jc=function(){return e},e}function Zc(){var e=hc()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"]);return Zc=function(){return e},e}function es(){var e=hc()(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return es=function(){return e},e}function ts(){var e=hc()(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return ts=function(){return e},e}function ns(){var e=hc()(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"]);return ns=function(){return e},e}function rs(){var e=hc()(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"]);return rs=function(){return e},e}function is(){var e=hc()(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"]);return is=function(){return e},e}function os(){var e=hc()(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"]);return os=function(){return e},e}function as(){var e=hc()(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"]);return as=function(){return e},e}function cs(){var e=hc()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"]);return cs=function(){return e},e}function ss(){var e=hc()(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"]);return ss=function(){return e},e}!function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(zc||(zc={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL"}(qc||(qc={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}($c||($c={}));ye()("composite-checkout:checkout"),kc.div(ss(),(function(e){return e.theme.colors.outline}));var ls=kc.div(cs(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),us=kc.div(as(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),ds=function(e){var t=e.children,n=e.className;return(0,h.createElement)(us,{className:yc([n,"checkout__summary-area"])},t)},fs=kc.div(os(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}));var ms=kc.div(is(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),ps=kc.div(rs(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var hs=kc.div(ns(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp})),gs=kc.div(ts(),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),vs=kc.div(es(),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function ys(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,c=e.validatingButtonAriaLabel,s=e.isStepActive,l=e.isStepComplete,u=e.className,d=e.stepNumber,f=e.stepId,m=e.titleContent,p=e.goToThisStep,g=e.goToNextStep,v=e.activeStepContent,y=e.formStatus,_=e.completeStepContent,b=e.onError,__=Pi().__;return(0,h.createElement)(Oc,{errorMessage:t||__("There was an error with this step."),onError:b},(0,h.createElement)(hs,{className:u},(0,h.createElement)(Ss,{id:f,stepNumber:d,title:m,isActive:s,isComplete:l,onEdit:y===zc.READY&&l&&p&&!s?p:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,h.createElement)(gs,{isVisible:s,className:"checkout-steps__step-content"},v,g&&s&&(0,h.createElement)(Wc,{onClick:g,value:y===zc.VALIDATING?o||__("Please wait…"):i||__("Continue"),ariaLabel:y===zc.VALIDATING?c||__("Please wait…"):a||__("Continue to next step"),buttonType:"primary",disabled:y!==zc.READY,isBusy:y===zc.VALIDATING})),l&&_?(0,h.createElement)(vs,{isVisible:!s,className:"checkout-steps__step-complete-content"},_):null))}ys.propTypes={errorMessage:vc().string,onError:vc().func,editButtonAriaLabel:vc().string,editButtonText:vc().string,nextStepButtonText:vc().string,nextStepButtonAriaLabel:vc().string,isStepActive:vc().bool.isRequired,isStepComplete:vc().bool.isRequired,className:vc().string,stepNumber:vc().number,stepId:vc().string.isRequired,titleContent:vc().node.isRequired,goToThisStep:vc().func,goToNextStep:vc().func,activeStepContent:vc().node,formStatus:vc().string,completeStepContent:vc().node,validatingButtonText:vc().string,validatingButtonAriaLabel:vc().string};var _s=kc.span(Zc(),(function(e){return e.isActive?e.theme.colors.textColorDark:e.theme.colors.textColor}),(function(e){return e.isActive?e.theme.weights.bold:e.theme.weights.normal}),(function(e){return e.fullWidth?"0":"8px"}),(function(e){return e.fullWidth?"0":"8px"})),bs=kc.h2(Jc(),(function(e){return e.isComplete||e.isActive?"8px":"0"})),Es=kc(Dc)(Qc());function Ss(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,c=e.onEdit,s=e.editButtonText,l=e.editButtonAriaLabel,__=Pi().__,u=!!c;return(0,h.createElement)(bs,{isComplete:a,isActive:o,className:yc([n,"checkout-step__header"])},(0,h.createElement)(Ns,{isComplete:a,isActive:o,id:t},r||null),(0,h.createElement)(_s,{fullWidth:!u,isActive:o},i),u&&(0,h.createElement)(Es,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:c,"aria-label":l||__("Edit this step")},s||__("Edit")))}var ws=kc.div(Xc()),xs=kc.div(Kc(),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),Cs=kc.div(Yc(),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(n)return r.colors.highlight;if(t)return r.colors.success;return r.colors.upcomingStepBackground}),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(t||n)return r.colors.surface;return r.colors.textColor}),(function(e){return e.isComplete?"0":"1"})),ks=kc(Cs)(Gc(),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function Ns(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return(0,h.createElement)(ws,{className:yc([r,"checkout-step__stepper"])},(0,h.createElement)(xs,{isComplete:a},(0,h.createElement)(Cs,{isComplete:a,isActive:n},i),(0,h.createElement)(ks,null,(0,h.createElement)(Vc,{id:o}))))}Ss.propTypes={id:vc().string,className:vc().string,stepNumber:vc().number,title:vc().node.isRequired,isActive:vc().bool,isComplete:vc().bool,editButtonText:vc().string,editButtonAriaLabel:vc().string,onEdit:vc().func},Ns.propTypes={id:vc().string,className:vc().string,isComplete:vc().bool,isActive:vc().bool};var Ps,As,Os=(0,h.createElement)(q,{icon:Xo,size:17}),Ts=function(e){var t=e.onNextStep,n=e.onPrevStep,r=(0,y.useSelect)((function(e){return e(p).getSelectedDomain()})),i=(0,y.useSelect)((function(e){return e(p).getSelectedPlan()})),o=(0,y.useSelect)((function(e){var t;return e("automattic/onboard/plans").getPrices((null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en")})),a=(0,y.useSelect)((function(e){return e(p).getLaunchStep()})),c=(0,y.useSelect)((function(e){return e(p).isStepCompleted})),s=(0,y.useSelect)((function(e){return e(p).isFlowCompleted()})),l=Ui().title,u=pi().siteSubdomain,d=function(){var e,t=T(),n=Go().domainSearch;return null===(e=(0,y.useSelect)((function(e){if(n&&!(n.length<2))return e(fi).getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:t})}),[n]))||void 0===e?void 0:e[0]}(),f=Go().domainSearch,m=(0,y.useDispatch)(p).setStep,g=(0,h.createElement)("div",{className:"nux-launch__summary-item"},(0,h.createElement)("p",null,(0,F.__)("Site","full-site-editing"),": ",l)),v=(0,h.createElement)("div",{className:"nux-launch__summary-item"},null!=r&&r.domain_name?(0,h.createElement)("p",null,(0,F.__)("Custom domain","full-site-editing"),": ",r.domain_name):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",null,(0,F.__)("Free site address","full-site-editing"),": ",null==u?void 0:u.domain),(0,h.createElement)(M.Tip,null,f?(0,h.createInterpolateElement)((0,F.__)("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:(0,h.createElement)("span",{className:R()("nux-launch__summary-item__domain-name",{"is-loading":!d})},(null==d?void 0:d.domain_name)||"loading-example.com"),Link:(0,h.createElement)(M.Button,{isLink:!0,onClick:function(){return m(a.Domain)}})}):(0,F.__)("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),_=(0,h.createElement)("div",{className:"nux-launch__summary-item"},!i||null!=i&&i.isFree?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,h.createElement)("p",null,(0,F.__)("Plan subscription: Free forever","full-site-editing")),(0,h.createElement)(M.Tip,null,(0,h.createInterpolateElement)((0,F.__)("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer 30-day full-refunds, guaranteed.","full-site-editing"),{Link:(0,h.createElement)(M.Button,{isLink:!0,onClick:function(){return m(a.Plan)}})}))):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",i.title),(0,F.__)("Plan subscription","full-site-editing"),": ",o[i.storeSlug]," ",(0,F.__)("per month, billed yearly","full-site-editing")));return(0,h.createElement)(Mi,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(xi,null,(0,F.__)("Launch your site","full-site-editing")),(0,h.createElement)(Ci,null,(0,F.__)("Your site will be made public and ready to share with others.","full-site-editing")))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(ic,{theme:mc},(0,h.createElement)(ls,null,c(a.Plan)&&(0,h.createElement)(ds,null,(0,h.createElement)(fs,{className:"nux-launch__feature-list"},(0,h.createElement)("h3",{className:"nux-launch__feature-list-title"},(0,F.__)("Included in your plan","full-site-editing")),(0,h.createElement)("ul",{className:"nux-launch__feature-item-group"},null==i?void 0:i.features.map((function(e,t){return(0,h.createElement)("li",{key:t,className:"nux-launch__feature-item"},Os," ",e)}))),(0,h.createElement)("p",null,(0,F.__)("Questions?","full-site-editing")," ",(0,h.createElement)(M.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},(0,F.__)("Ask a Happiness Engineer","full-site-editing"))))),(0,h.createElement)(ms,null,(0,h.createElement)(ys,{isStepActive:!1,titleContent:(0,F.__)("Your site name","full-site-editing"),isStepComplete:c(a.Name),goToThisStep:function(){return m(a.Name)},completeStepContent:g,stepId:"name",formStatus:zc.READY}),(0,h.createElement)(ys,{isStepActive:!1,titleContent:(0,F.__)("Your domain","full-site-editing"),isStepComplete:c(a.Domain),goToThisStep:function(){return m(a.Domain)},completeStepContent:v,stepId:"domain",formStatus:zc.READY}),(0,h.createElement)(ys,{isStepActive:!1,titleContent:(0,F.__)("Your plan","full-site-editing"),isStepComplete:c(a.Plan),goToThisStep:function(){return m(a.Plan)},completeStepContent:_,stepId:"plan",formStatus:zc.READY}),(0,h.createElement)(ps,null,(0,h.createElement)(M.Button,{isPrimary:!0,disabled:!s,onClick:t,className:"nux-launch__submit-button"},(0,F.__)("Launch your site","full-site-editing"))))))),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Li,{sticky:!0},(0,h.createElement)(Di,{onClick:function(){null==n||n()}}))))},Is=function(e){var t,n=e.onSubmit,r=(0,y.useSelect)((function(e){return e(p).getState()})).step,i=(0,y.useSelect)((function(e){return e(p).getLaunchStep()})),o=(0,y.useSelect)((function(e){return e(p).getLaunchSequence()})),a=(0,y.useSelect)((function(e){return e(p).getFirstIncompleteStep()})),c=(0,y.useDispatch)(p),s=c.setStep,l=c.setSidebarFullscreen,u=c.unsetSidebarFullscreen,d=(t={},ee()(t,i.Name,Bi),ee()(t,i.Domain,Ko),ee()(t,i.Plan,wa),ee()(t,i.Final,Ts),t),f=o.indexOf(r),m=d[r];return g.useEffect((function(){a&&a!==i.Name&&s(a)}),[]),(0,h.createElement)(m,{onPrevStep:function(){var e=f-1;e<0&&(e=0,l()),s(o[e])},onNextStep:function(){var e=f+1;e>o.length-1&&(null==n||n()),u(),s(o[e])}})},Ls=(0,h.createElement)(M.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(M.Circle,{cx:"12",cy:"12",r:"5"})),Ds=function(e){var t=e.title,n=e.isCompleted,r=e.isCurrent,i=e.isDisabled,o=e.onClick;return(0,h.createElement)(M.Button,{className:R()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:o,disabled:i,isLink:!0},(0,h.createElement)(q,{icon:n?Xo:Ls,size:16}),(0,h.createElement)("span",null,t))},Rs=function(e){var t,n=e.onMenuItemClick,__=Pi().__,r=(0,y.useSelect)((function(e){return e(p).getState()})).step,i=(0,y.useSelect)((function(e){return e(p).getLaunchStep()})),o=(0,y.useSelect)((function(e){return e(p).getLaunchSequence()})),a=(0,y.useSelect)((function(e){return e(p).isStepCompleted})),c=(0,y.useSelect)((function(e){return e(p).isFlowCompleted()})),s=(t={},ee()(t,i.Name,__("Name your site","full-site-editing")),ee()(t,i.Domain,__("Select a domain","full-site-editing")),ee()(t,i.Plan,__("Select a plan","full-site-editing")),ee()(t,i.Final,__("Launch your site","full-site-editing")),t),l=(0,y.useDispatch)(p).setStep;return(0,h.createElement)("div",{className:"nux-launch-menu"},(0,h.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,h.createElement)("div",{className:"nux-launch-menu__item-group"},o.map((function(e){return(0,h.createElement)(Ds,{key:e,title:s[e],isCompleted:a(e),isCurrent:e===r,onClick:function(){return function(e){l(e),n(e)}(e)},isDisabled:e===i.Final&&!c})}))))},Fs=function(){var e=(0,y.useDispatch)(p),t=e.setStep,n=e.unsetSidebarFullscreen,r=(0,y.useSelect)((function(e){return e(p).getLaunchSequence()}));return(0,h.createElement)("div",{className:"nux-launch-sidebar"},(0,h.createElement)("div",{className:"nux-launch-sidebar__header"},(0,h.createElement)(xi,null,(0,F.__)("You're almost there!","full-site-editing")),(0,h.createElement)(Ci,null,(0,F.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,h.createElement)("div",{className:"nux-launch-sidebar__body"},(0,h.createElement)(Rs,{onMenuItemClick:function(){n()}})),(0,h.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,h.createElement)(Li,{sticky:!0},(0,h.createElement)(Ri,{onClick:function(){t(r[0]),n()}},(0,F.__)("Get Started","full-site-editing")))))},Ms=function(){var __=Pi().__,e=(0,y.useSelect)((function(e){return e(p).getState()})).step,t=(0,y.useSelect)((function(e){return e(p).getLaunchSequence()})),n=t.indexOf(e)+1,r=t.length,i=(0,F.sprintf)(__("%1$d of %2$d","full-site-editing"),n,r);return(0,h.createElement)("div",{className:"nux-launch-progress"},i)},js=function(e){var t=e.onClose,n=g.useContext(C).siteId,r=(0,y.useSelect)((function(e){return e(p).getState()})),i=r.step,o=r.isSidebarFullscreen,a=g.useState(!1),c=L()(a,2),s=c[0],l=c[1],u=(0,y.useDispatch)(m).launchSite;return function(){var e=g.useContext(C),t=e.siteId,n=e.redirectTo,r=(0,y.useSelect)((function(e){return e(mi).getState()})).planProductId,i=(0,y.useSelect)((function(e){return e(di).isPlanProductFree(r)})),o=wi().isSiteLaunched,a=pi().siteSubdomain,c=Si().goToCheckout;g.useEffect((function(){if(o){if(!i)return void c();n("/home/".concat((null==a?void 0:a.domain)||t))}}),[o])}(),(0,h.createElement)(M.Modal,{open:!0,className:R()("nux-launch-modal","step-".concat(i),o?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},s?(0,h.createElement)("div",{className:"nux-launch-modal-body__launching"},(0,F.__)("Hooray! Your site will be ready shortly.","full-site-editing")):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("div",{className:"nux-launch-modal-body"},(0,h.createElement)("div",{className:"nux-launch-modal-header"},(0,h.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,h.createElement)(q,{icon:W,size:36})),(0,h.createElement)(Ms,null)),(0,h.createElement)(Is,{onSubmit:function(){u(n),l(!0)}})),(0,h.createElement)("div",{className:"nux-launch-modal-aside"},(0,h.createElement)(Fs,null)),(0,h.createElement)(M.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":(0,F.__)("Close dialog","full-site-editing"),disabled:!t},(0,h.createElement)("span",null,(0,h.createElement)(q,{icon:G,size:24})))))},Us=function(e){var t=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat("https://wordpress.com").concat(t))},Bs=function(){try{var e,t;return null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.currentCalypsoUrl}catch(n){return window.location.href}},Vs=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="a8c.wpcom-block-editor.openCheckoutModal",o=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.isFocusedLaunchFlow;if((0,b.hasAction)(i)&&o)(0,b.doAction)(i);else{var a=(0,w.addQueryArgs)("/checkout/".concat(e),S()({},!r&&{redirect_to:"/home/".concat(e)}));Us(a)}};function Hs(){return(Hs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function zs(e){return"/"===e.charAt(0)}function qs(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}Ps="a8c-editor-site-launch",As={render:function(){var e,t=(0,y.useSelect)((function(e){return e(p).getState()})).isSidebarOpen,n=(0,y.useDispatch)(p),r=n.closeSidebar,i=n.setSidebarFullscreen,o=n.unsetSidebarFullscreen;return g.useEffect((function(){window.innerWidth<782?i():o()}),[t,i,o]),g.useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,b.hasAction)(e)&&(0,b.doAction)(e,{hidden:t})}),[t]),t?(0,h.createElement)(O,{localeSlug:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale},(0,h.createElement)(C.Provider,{value:{siteId:window._currentSiteId,flow:Yo,redirectTo:Us,openCheckout:Vs}},(0,h.createElement)(js,{onClose:r}))):null}},(0,_.registerPlugin)(Ps,As);var $s=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&zs(e),a=t&&zs(t),c=o||a;if(e&&zs(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var s=i[i.length-1];n="."===s||".."===s||""===s}else n=!1;for(var l=0,u=i.length;u>=0;u--){var d=i[u];"."===d?qs(i,u):".."===d?(qs(i,u),l++):l&&(qs(i,u),l--)}if(!c)for(;l--;l)i.unshift("..");!c||""===i[0]||i[0]&&zs(i[0])||i.unshift("");var f=i.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};function Ws(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var Gs=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=Ws(t),i=Ws(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},Ys="Invariant failed";var Ks=function(e,t){if(!e)throw new Error(Ys)};function Xs(e){return"/"===e.charAt(0)?e:"/"+e}function Qs(e){return"/"===e.charAt(0)?e.substr(1):e}function Js(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Zs(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function el(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function tl(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Hs({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=$s(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function nl(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var rl=!("undefined"==typeof window||!window.document||!window.document.createElement);function il(e,t){t(window.confirm(e))}var ol="popstate",al="hashchange";function cl(){try{return window.history.state||{}}catch(e){return{}}}function sl(e){void 0===e&&(e={}),rl||Ks(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,c=void 0!==a&&a,s=o.getUserConfirmation,l=void 0===s?il:s,u=o.keyLength,d=void 0===u?6:u,f=e.basename?Zs(Xs(e.basename)):"";function m(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return f&&(o=Js(o,f)),tl(o,r,n)}function p(){return Math.random().toString(36).substr(2,d)}var h=nl();function g(e){Hs(P,e),P.length=n.length,h.notifyListeners(P.location,P.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||b(m(e.state))}function y(){b(m(cl()))}var _=!1;function b(e){if(_)_=!1,g();else{h.confirmTransitionTo(e,"POP",l,(function(t){t?g({action:"POP",location:e}):function(e){var t=P.location,n=S.indexOf(t.key);-1===n&&(n=0);var r=S.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(_=!0,x(i))}(e)}))}}var E=m(cl()),S=[E.key];function w(e){return f+el(e)}function x(e){n.go(e)}var C=0;function k(e){1===(C+=e)&&1===e?(window.addEventListener(ol,v),i&&window.addEventListener(al,y)):0===C&&(window.removeEventListener(ol,v),i&&window.removeEventListener(al,y))}var N=!1;var P={length:n.length,action:"POP",location:E,createHref:w,push:function(e,t){var i="PUSH",o=tl(e,t,p(),P.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=w(o),a=o.key,s=o.state;if(r)if(n.pushState({key:a,state:s},null,t),c)window.location.href=t;else{var l=S.indexOf(P.location.key),u=S.slice(0,l+1);u.push(o.key),S=u,g({action:i,location:o})}else window.location.href=t}}))},replace:function(e,t){var i="REPLACE",o=tl(e,t,p(),P.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=w(o),a=o.key,s=o.state;if(r)if(n.replaceState({key:a,state:s},null,t),c)window.location.replace(t);else{var l=S.indexOf(P.location.key);-1!==l&&(S[l]=o.key),g({action:i,location:o})}else window.location.replace(t)}}))},go:x,goBack:function(){x(-1)},goForward:function(){x(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return N||(k(1),N=!0),function(){return N&&(N=!1,k(-1)),t()}},listen:function(e){var t=h.appendListener(e);return k(1),function(){k(-1),t()}}};return P}var ll="hashchange",ul={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Qs(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Qs,decodePath:Xs},slash:{encodePath:Xs,decodePath:Xs}};function dl(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function fl(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function ml(e){window.location.replace(dl(window.location.href)+"#"+e)}function pl(e){void 0===e&&(e={}),rl||Ks(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?il:r,o=n.hashType,a=void 0===o?"slash":o,c=e.basename?Zs(Xs(e.basename)):"",s=ul[a],l=s.encodePath,u=s.decodePath;function d(){var e=u(fl());return c&&(e=Js(e,c)),tl(e)}var f=nl();function m(e){Hs(C,e),C.length=t.length,f.notifyListeners(C.location,C.action)}var p=!1,h=null;function g(){var e,t,n=fl(),r=l(n);if(n!==r)ml(r);else{var o=d(),a=C.location;if(!p&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(h===el(o))return;h=null,function(e){if(p)p=!1,m();else{var t="POP";f.confirmTransitionTo(e,t,i,(function(n){n?m({action:t,location:e}):function(e){var t=C.location,n=b.lastIndexOf(el(t));-1===n&&(n=0);var r=b.lastIndexOf(el(e));-1===r&&(r=0);var i=n-r;i&&(p=!0,E(i))}(e)}))}}(o)}}var v=fl(),y=l(v);v!==y&&ml(y);var _=d(),b=[el(_)];function E(e){t.go(e)}var S=0;function w(e){1===(S+=e)&&1===e?window.addEventListener(ll,g):0===S&&window.removeEventListener(ll,g)}var x=!1;var C={length:t.length,action:"POP",location:_,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=dl(window.location.href)),n+"#"+l(c+el(e))},push:function(e,t){var n="PUSH",r=tl(e,void 0,void 0,C.location);f.confirmTransitionTo(r,n,i,(function(e){if(e){var t=el(r),i=l(c+t);if(fl()!==i){h=t,function(e){window.location.hash=e}(i);var o=b.lastIndexOf(el(C.location)),a=b.slice(0,o+1);a.push(t),b=a,m({action:n,location:r})}else m()}}))},replace:function(e,t){var n="REPLACE",r=tl(e,void 0,void 0,C.location);f.confirmTransitionTo(r,n,i,(function(e){if(e){var t=el(r),i=l(c+t);fl()!==i&&(h=t,ml(i));var o=b.indexOf(el(C.location));-1!==o&&(b[o]=t),m({action:n,location:r})}}))},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(e){void 0===e&&(e=!1);var t=f.setPrompt(e);return x||(w(1),x=!0),function(){return x&&(x=!1,w(-1)),t()}},listen:function(e){var t=f.appendListener(e);return w(1),function(){w(-1),t()}}};return C}function hl(e,t,n){return Math.min(Math.max(e,t),n)}function gl(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,o=t.initialIndex,a=void 0===o?0:o,c=t.keyLength,s=void 0===c?6:c,l=nl();function u(e){Hs(g,e),g.length=g.entries.length,l.notifyListeners(g.location,g.action)}function d(){return Math.random().toString(36).substr(2,s)}var f=hl(a,0,i.length-1),m=i.map((function(e){return tl(e,void 0,"string"==typeof e?d():e.key||d())})),p=el;function h(e){var t=hl(g.index+e,0,g.entries.length-1),r=g.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var g={length:m.length,action:"POP",location:m[f],index:f,entries:m,createHref:p,push:function(e,t){var r="PUSH",i=tl(e,t,d(),g.location);l.confirmTransitionTo(i,r,n,(function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),u({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=tl(e,t,d(),g.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(g.entries[g.index]=i,u({action:r,location:i}))}))},go:h,goBack:function(){h(-1)},goForward:function(){h(1)},canGo:function(e){var t=g.index+e;return t>=0&&t<g.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return g}var vl=n(8051),yl=n.n(vl),_l=1073741823;function bl(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var El=v().createContext||function(e,t){var n,r,i="__create-react-context-"+yl()()+"__",o=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=bl(t.props.value),t}La()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):_l,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(g.Component);o.childContextTypes=((n={})[i]=vc().object.isRequired,n);var a=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}La()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?_l:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?_l:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(g.Component);return a.contextTypes=((r={})[i]=vc().object,r),{Provider:o,Consumer:a}},Sl=n(99),wl=n.n(Sl),xl=(n(8570),function(e){var t=El();return t.displayName=e,t}("Router")),Cl=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}xa(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return v().createElement(xl.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(v().Component);var kl=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=gl(t.props),t}return xa(t,e),t.prototype.render=function(){return v().createElement(Cl,{history:this.history,children:this.props.children})},t}(v().Component);var Nl=function(e){function t(){return e.apply(this,arguments)||this}xa(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(v().Component);var Pl={},Al=0;function Ol(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(Pl[e])return Pl[e];var t=wl().compile(e);return Al<1e4&&(Pl[e]=t,Al++),t}(e)(t,{pretty:!0})}function Tl(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return v().createElement(xl.Consumer,null,(function(e){e||Ks(!1);var r=e.history,o=e.staticContext,a=i?r.push:r.replace,c=tl(t?"string"==typeof n?Ol(n,t.params):Hs({},n,{pathname:Ol(n.pathname,t.params)}):n);return o?(a(c),null):v().createElement(Nl,{onMount:function(){a(c)},onUpdate:function(e,t){var n,r,i=tl(t.to);n=i,r=Hs({},c,{key:i.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&Gs(n.state,r.state)||a(c)},to:n})}))}var Il={},Ll=0;function Dl(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,c=void 0!==a&&a,s=n.sensitive,l=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=Il[n]||(Il[n]={});if(r[e])return r[e];var i=[],o={regexp:wl()(e,i,t),keys:i};return Ll<1e4&&(r[e]=o,Ll++),o}(n,{end:o,strict:c,sensitive:l}),i=r.regexp,a=r.keys,s=i.exec(e);if(!s)return null;var u=s[0],d=s.slice(1),f=e===u;return o&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var Rl=function(e){function t(){return e.apply(this,arguments)||this}return xa(t,e),t.prototype.render=function(){var e=this;return v().createElement(xl.Consumer,null,(function(t){t||Ks(!1);var n=e.props.location||t.location,r=Hs({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?Dl(n.pathname,e.props):t.match}),i=e.props,o=i.children,a=i.component,c=i.render;return Array.isArray(o)&&0===o.length&&(o=null),v().createElement(xl.Provider,{value:r},r.match?o?"function"==typeof o?o(r):o:a?v().createElement(a,r):c?c(r):null:"function"==typeof o?o(r):null)}))},t}(v().Component);function Fl(e){return"/"===e.charAt(0)?e:"/"+e}function Ml(e,t){if(!e)return t;var n=Fl(e);return 0!==t.pathname.indexOf(n)?t:Hs({},t,{pathname:t.pathname.substr(n.length)})}function jl(e){return"string"==typeof e?e:el(e)}function Ul(e){return function(){Ks(!1)}}function Bl(){}v().Component;var Vl=function(e){function t(){return e.apply(this,arguments)||this}return xa(t,e),t.prototype.render=function(){var e=this;return v().createElement(xl.Consumer,null,(function(t){t||Ks(!1);var n,r,i=e.props.location||t.location;return v().Children.forEach(e.props.children,(function(e){if(null==r&&v().isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?Dl(i.pathname,Hs({},e.props,{path:o})):t.match}})),r?v().cloneElement(n,{location:i,computedMatch:r}):null}))},t}(v().Component);var Hl=v().useContext;function zl(){return Hl(xl).history}function ql(){return Hl(xl).location}var $l,Wl=function(e){var t=e.selector,n=ql().pathname;return g.useEffect((function(){var e;t?null===(e=document.querySelector(t))||void 0===e||e.scrollTo(0,0):window.scrollTo(0,0)}),[t,n]),null};!function(e){e.Summary="/",e.PlanDetails="/plan-details",e.DomainDetails="/domain-details",e.Success="/success"}($l||($l={}));v().Component;v().Component;var Gl=function(e,t){return"function"==typeof e?e(t):e},Yl=function(e,t){return"string"==typeof e?tl(e,null,null,t):e},Kl=function(e){return e},Xl=v().forwardRef;void 0===Xl&&(Xl=Kl);var Ql=Xl((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=U(e,["innerRef","navigate","onClick"]),a=o.target,c=Hs({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=Kl!==Xl&&t||n,v().createElement("a",c)}));var Jl=Xl((function(e,t){var n=e.component,r=void 0===n?Ql:n,i=e.replace,o=e.to,a=e.innerRef,c=U(e,["component","replace","to","innerRef"]);return v().createElement(xl.Consumer,null,(function(e){e||Ks(!1);var n=e.history,s=Yl(Gl(o,e.location),e.location),l=s?n.createHref(s):"",u=Hs({},c,{href:l,navigate:function(){var t=Gl(o,e.location);(i?n.replace:n.push)(t)}});return Kl!==Xl?u.ref=t||a:u.innerRef=a,v().createElement(r,u)}))})),Zl=function(e){return e},eu=v().forwardRef;void 0===eu&&(eu=Zl);eu((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,o=void 0===i?"active":i,a=e.activeStyle,c=e.className,s=e.exact,l=e.isActive,u=e.location,d=e.strict,f=e.style,m=e.to,p=e.innerRef,h=U(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return v().createElement(xl.Consumer,null,(function(e){e||Ks(!1);var n=u||e.location,i=Yl(Gl(m,n),n),g=i.pathname,y=g&&g.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=y?Dl(n.pathname,{path:y,exact:s,strict:d}):null,b=!!(l?l(_,n):_),E=b?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(c,o):c,S=b?Hs({},f,{},a):f,w=Hs({"aria-current":b&&r||null,className:E,style:S,to:i},h);return Zl!==eu?w.ref=t||p:w.innerRef=p,v().createElement(Jl,w)}))}));function tu(){var e=function(){var e=g.useContext(C).siteId,t=(0,y.useDispatch)(ui).getCart,n=g.useState(void 0),r=L()(n,2),i=r[0],o=r[1];return g.useEffect((function(){ie()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return Ei(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}();return null==e?void 0:e.product_id}var nu=function(e){var t=e.label,n=e.badgeText;return(0,h.createElement)("div",{className:"focused-launch-summary-item__leading-side"},(0,h.createElement)("span",{className:"focused-launch-summary-item__leading-side-label"},t),n?(0,h.createElement)("span",{className:"focused-launch-summary-item__leading-side-badge"},n):null)},ru=function(e){var t=e.nodeType,n=e.children;return(0,h.createElement)("div",{className:R()({"focused-launch-summary-item__warning-note":"WARNING"===t,"focused-launch-summary-item__price-cost":"PRICE"===t})},n)},iu=function(e){var t=e.children,n=e.isSelected,r=void 0!==n&&n,i=e.readOnly,o=void 0!==i&&i,a=e.isLoading,c=X()(e,["children","isSelected","readOnly","isLoading"]);return(0,h.createElement)("button",N()({},c,{disabled:o,className:R()("focused-launch-summary__item",{"is-selected":r,"is-readonly":o,"is-loading":a})}),null==t?void 0:t[0],null==t?void 0:t[1])},ou="focused-launch",au=(0,h.createElement)(M.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(M.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),cu=(0,h.createElement)(M.SVG,{className:"focused-launch-summary__info-icon",viewBox:"0 0 24 24",width:"16"},(0,h.createElement)(M.Circle,{cx:"12",cy:"12",stroke:"#8C8F94",strokeWidth:"2",r:"10",fill:"transparent"}),(0,h.createElement)(M.Rect,{x:"10.5",y:"5",width:"3",height:"3",fill:"#8C8F94"}),(0,h.createElement)(M.Rect,{x:"10.5",y:"10",width:"3",height:"8",fill:"#8C8F94"})),su=function(e){var t=e.input,n=e.commentary,r=e.highlighted;return(0,h.createElement)("div",{className:R()("focused-launch-summary__step",{highlighted:r})},(0,h.createElement)("div",{className:"focused-launch-summary__data-input"},(0,h.createElement)("div",{className:"focused-launch-summary__section"},t)),(0,h.createElement)("div",{className:"focused-launch-summary__side-commentary"},n))},lu=function(e){var t=e.stepIndex,n=e.value,r=e.onChange,i=e.onBlur;return(0,h.createElement)(su,{highlighted:!0,input:(0,h.createElement)(M.TextControl,{className:"focused-launch-summary__input",label:(0,h.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),(0,F.__)("Name your site","full-site-editing")),value:n,onChange:r,onBlur:i})})},uu=function(e){var t=e.stepIndex,n=e.existingSubdomain,r=e.currentDomain,i=e.initialDomainSearch,o=e.hasPaidDomain,a=e.onDomainSelect,c=e.onExistingSubdomainSelect,s=e.isLoading,l=e.highlighted,u=T();return(0,h.createElement)(su,{highlighted:!!l,input:o?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},(0,F.__)("Your domain","full-site-editing"),(0,h.createElement)(M.Tooltip,{position:"top center",text:(0,F.__)("Changes to your purchased domain can be managed from your Domains page.","full-site-editing")},(0,h.createElement)("span",null,cu)),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,h.createElement)(q,{icon:au}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("<strong>Unique domains</strong> help build brand trust","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),(0,h.createElement)(iu,{readOnly:!0},(0,h.createElement)(nu,{label:(null==r?void 0:r.domain_name)||""}),(0,h.createElement)(ru,{nodeType:"PRICE"},(0,h.createElement)(q,{icon:Xo,size:18})," ",(0,F.__)("Purchased","full-site-editing")))):(0,h.createElement)(h.Fragment,null,(0,h.createElement)(zo,{header:(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),(0,F.__)("Confirm your domain","full-site-editing")),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,h.createElement)(q,{icon:au}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("<strong>46.9%</strong> of registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),areDependenciesLoading:s,existingSubdomain:n,currentDomain:r,onDomainSelect:a,onExistingSubdomainSelect:c,initialDomainSearch:i,showSearchField:!1,analyticsFlowId:ou,analyticsUiAlgo:"summary_domain_step",quantity:3,quantityExpanded:3,itemType:"individual-item",locale:u,orderSubDomainsLast:!0}),(0,h.createElement)(Jl,{to:$l.DomainDetails,className:"focused-launch-summary__details-link"},(0,F.__)("View all domains","full-site-editing"))),commentary:(0,h.createElement)(h.Fragment,null,o?(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("<strong>Unique domains</strong> help build brand recognition and trust","full-site-editing"),{strong:(0,h.createElement)("strong",null)})):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("<strong>46.9%</strong> of globally registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})),(0,h.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(q,{icon:Xo}),(0,F.__)("Stand out with a unique domain","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(q,{icon:Xo}),(0,F.__)("Easy to remember and easy to share","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(q,{icon:Xo}),(0,F.__)("Builds brand recognition and trust","full-site-editing")))))})},du=function(e){var t,n=e.stepIndex,r=e.highlighted,i=e.hasPaidPlan,o=void 0!==i&&i,a=e.hasPaidDomain,c=void 0!==a&&a,s=e.selectedPaidDomain,l=void 0!==s&&s,u=(0,y.useDispatch)(mi).setPlanProductId,d=(0,y.useSelect)((function(e){return e(mi).getSelectedPlanProductId()})),f=(0,y.useSelect)((function(e){return e(mi).getPaidPlanProductId()})),m=(0,y.useSelect)((function(e){return e(pr).getPlanByProductId(d)})),p=(0,y.useSelect)((function(e){return e(pr).getPlanByProductId(f)})),v=(t=T(),{defaultPaidPlan:(0,y.useSelect)((function(e){return e(di).getDefaultPaidPlan(t)})),defaultFreePlan:(0,y.useSelect)((function(e){return e(di).getDefaultFreePlan(t)}))}),_=v.defaultPaidPlan,b=v.defaultFreePlan,E=g.useState(),S=L()(E,2),w=S[0],x=S[1];g.useEffect((function(){p&&_&&p.periodAgnosticSlug!==_.periodAgnosticSlug&&x(p)}),[p,_,w]);var C=function(e){return e&&e.periodAgnosticSlug===(null==m?void 0:m.periodAgnosticSlug)},k=wi().sitePlan,N=w?[_,w,b]:[_,b],P=(0,y.useSelect)((function(e){return N.map((function(t){return e(pr).getPlanProduct(null==t?void 0:t.periodAgnosticSlug,"ANNUALLY")}))}));return(0,h.createElement)(su,{highlighted:!!r,input:o?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},(0,F.__)("Your plan","full-site-editing"),(0,h.createElement)(M.Tooltip,{position:"top center",text:(0,F.__)("Changes to your purchased plan can be managed from your Plans page.","full-site-editing")},(0,h.createElement)("span",null,cu)),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,h.createElement)(q,{icon:au}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),(0,h.createElement)("div",null,(0,h.createElement)(iu,{readOnly:!0},(0,h.createElement)(nu,{label:(0,F.sprintf)((0,F.__)("%s Plan","full-site-editing"),null==k?void 0:k.product_name_short)}),(0,h.createElement)(ru,{nodeType:"PRICE"},(0,h.createElement)(q,{icon:Xo,size:18})," ",(0,F.__)("Purchased","full-site-editing"))))):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},n&&"".concat(n,". "),(0,F.__)("Confirm your plan","full-site-editing")),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,h.createElement)(q,{icon:au}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("Grow your business with <strong>WordPress Business</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)}))),(0,h.createElement)("div",null,N.map((function(e,t){var n,r;return e?(0,h.createElement)(iu,{key:e.periodAgnosticSlug,isLoading:!b||!_,onClick:function(){var e;return u(null===(e=P[t])||void 0===e?void 0:e.productId)},isSelected:C(e),readOnly:e.isFree&&(c||l)},(0,h.createElement)(nu,{label:(0,F.sprintf)((0,F.__)("%s Plan","full-site-editing"),null!==(n=e.title)&&void 0!==n?n:""),badgeText:e.isPopular?(0,F.__)("Popular","full-site-editing"):""}),e.isFree?(0,h.createElement)(ru,{nodeType:c||l?"WARNING":"PRICE"},c||l?(0,F.__)("Not available with your domain selection","full-site-editing"):(0,F.__)("Free","full-site-editing")):(0,h.createElement)(ru,{nodeType:"PRICE"},(0,h.createElement)("span",null,null===(r=P[t])||void 0===r?void 0:r.price),(0,h.createElement)("span",null,(0,F.__)("/mo","full-site-editing")))):(0,h.createElement)(iu,{key:t,isLoading:!0})}))),(0,h.createElement)(Jl,{to:$l.PlanDetails,className:"focused-launch-summary__details-link"},(0,F.__)("View all plans","full-site-editing"))),commentary:o?(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("Monetize your site with <strong>WordPress Premium</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})),(0,h.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(q,{icon:Xo}),(0,F.__)("Advanced tools and customization","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(q,{icon:Xo}),(0,F.__)("Unlimited premium themes","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(q,{icon:Xo}),(0,F.__)("Accept payments","full-site-editing"))))})},fu=function(){var e=(0,y.useSelect)((function(e){var t=e(mi).getState(),n=t.isSiteTitleStepVisible,r=t.domain,i=t.planProductId;return[e(mi).hasSelectedDomain(),n,r,i]})),t=L()(e,4),n=t[0],r=t[1],i=t[2],o=t[3],a=(0,y.useSelect)((function(e){return e(pr).isPlanProductFree(o)})),c=(0,y.useDispatch)(ui).launchSite,s=(0,y.useDispatch)(mi),l=s.setModalDismissible,u=s.showModalTitle,d=s.showSiteTitleStep,f=Ui(),m=f.title,p=f.updateTitle,v=pi(),_=v.siteSubdomain,b=v.hasPaidDomain,E=Wo(),S=E.onDomainSelect,w=E.onExistingSubdomainSelect,x=E.currentDomain,k=Go(),N=k.domainSearch,P=k.isLoading,A=wi().isPaidPlan,O=g.useContext(C),T=O.siteId,I=O.redirectTo,D=Si().goToCheckout;g.useEffect((function(){l(),u()}),[l,u]),g.useEffect((function(){r||vi(m)||d()}),[m,d,r]);var R=!!o||!!n||vi(m),M=!!n||!!o,j=[],U=[];r&&U.push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(lu,{stepIndex:n?t:void 0,key:t,value:m||"",onChange:p})})),(b?j:U).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(uu,{highlighted:R,stepIndex:n?t:void 0,key:t,existingSubdomain:qo(null==_?void 0:_.domain),currentDomain:x,initialDomainSearch:N,hasPaidDomain:b,isLoading:P,onDomainSelect:S,onExistingSubdomainSelect:w})})),(A?j:U).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(du,{highlighted:M,hasPaidPlan:A,selectedPaidDomain:i&&!i.is_free,hasPaidDomain:b,stepIndex:n?t:void 0,key:t})}));var B=m&&(b||n)&&(A||o);return(0,h.createElement)("div",{className:"focused-launch-container"},(0,h.createElement)("div",{className:"focused-launch-summary__section"},(0,h.createElement)(xi,{tagName:"h2"},b&&A?(0,F.__)("You're ready to launch","full-site-editing"):(0,F.__)("You're almost there","full-site-editing")),(0,h.createElement)(Ci,{tagName:"p",className:"focused-launch-summary__caption"},b&&A?(0,F.__)("You're good to go! Launch your site and share your site address.","full-site-editing"):(0,F.__)("Prepare for launch! Confirm a few final things before you take it live.","full-site-editing"))),j.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:!1})})),U.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:U.length>1})})),(0,h.createElement)("div",{className:"focused-launch-summary__actions-wrapper"},(0,h.createElement)(Li,{className:"focused-launch-summary__launch-action-bar"},(0,h.createElement)(Ri,{className:"focused-launch-summary__launch-button",disabled:!B,onClick:function(){c(T),!i&&a||D()}},(0,F.__)("Launch your site","full-site-editing"))),(0,h.createElement)("div",{className:"focused-launch-summary__ask-for-help"},(0,h.createElement)("p",null,(0,F.__)("Questions? Our experts can assist.","full-site-editing")),(0,h.createElement)("a",{href:"/help",onClick:function(e){var t=e.target.getAttribute("href");t&&(I(t),e.preventDefault())}},(0,F.__)("Ask a Happiness Engineer","full-site-editing")))))},mu=function(e){var t=e.className,n=X()(e,["className"]);return(0,h.createElement)(Di,N()({},n,{className:R()("go-back-button__focused-launch",t)}),(0,h.createElement)(q,{icon:Ti}),(0,F.__)("Go back","full-site-editing"))},pu="domain_step",hu=function(){var e=g.useContext(C),t=e.getCurrentLaunchFlowUrl,n=e.redirectTo,r=T(),i=pi().siteSubdomain,o=Go(),a=o.domainSearch,c=o.setDomainSearch,s=Wo(),l=s.onDomainSelect,u=s.onExistingSubdomainSelect,d=s.currentDomain,f=zl(),m=function(){f.goBack()},p=t();return(0,h.createElement)("div",{className:"focused-launch-container"},(0,h.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,h.createElement)(mu,{onClick:m})),(0,h.createElement)("div",{className:"focused-launch-details__header"},(0,h.createElement)(xi,null,(0,F.__)("Choose a domain","full-site-editing")),(0,h.createElement)(Ci,null,(0,F.__)("Free for the first year with any paid plan.","full-site-editing"))),(0,h.createElement)("div",{className:"focused-launch-details__body"},(0,h.createElement)(zo,{initialDomainSearch:a,onSetDomainSearch:c,onDomainSearchBlur:function(e){io("calypso_newsite_domain_search_blur",{flow:ou,query:e,where:pu})},currentDomain:d,existingSubdomain:qo(null==i?void 0:i.domain),onDomainSelect:function(e){l(e),m()},onExistingSubdomainSelect:function(){u(),m()},analyticsFlowId:ou,analyticsUiAlgo:pu,segregateFreeAndPaid:!0,locale:r,itemType:No,onUseYourDomainClick:function(){var e="/start/new-launch/domains-launch/use-your-domain?siteSlug=".concat(null==i?void 0:i.domain,"&source=").concat(p);n(e)}})))},gu=function(){var e=T(),t=(0,y.useSelect)((function(e){return e(mi).getSelectedDomain()})),n=(0,y.useSelect)((function(e){return e(mi).getSelectedPlanProductId()})),r=zl(),i=(0,y.useDispatch)(mi).updatePlan,o=t&&!t.is_free,a=function(){r.goBack()};return(0,h.createElement)("div",{className:"focused-launch-container focused-launch-container--wide"},(0,h.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,h.createElement)(mu,{onClick:a})),(0,h.createElement)("div",{className:"focused-launch-details__header"},(0,h.createElement)(xi,{tagName:"h2"},(0,F.__)("Select a plan","full-site-editing")),(0,h.createElement)(Ci,{tagName:"h3"},(0,F.__)("There's no risk, you can cancel for a full refund within 30 days.","full-site-editing"))),(0,h.createElement)("div",{className:"focused-launch-details__body"},(0,h.createElement)(Sa,{currentDomain:t,onPlanSelect:function(e){i(e),a()},currentPlanProductId:n,onPickDomainClick:a,customTagLines:{Free:(0,F.__)("Best for getting started","full-site-editing"),Business:(0,F.__)("Best for small businesses","full-site-editing")},showPlanTaglines:!0,popularBadgeVariation:"NEXT_TO_NAME",disabledPlans:o?ee()({},"Free",(0,F.__)("Unavailable with domain","full-site-editing")):void 0,CTAVariation:"FULL_WIDTH",locale:e,hidePlansComparison:!0,defaultAllPlansExpanded:!0})))},vu=(0,h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)($.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"})),yu=function(e){var t=e.className;return(0,h.createElement)(M.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 356 136",role:"presentation",className:t},(0,h.createElement)(M.Rect,{x:"314.913",y:"59.963",width:"7",height:"22",rx:"3.5",transform:"rotate(-50 314.913 59.963)",fill:"#984A9C"}),(0,h.createElement)(M.Rect,{y:"121.876",width:"5.091",height:"16",rx:"2.545",transform:"rotate(-50 0 121.876)",fill:"#64CA43"}),(0,h.createElement)(M.Rect,{x:"21.447",y:"85.104",width:"7",height:"22",rx:"3.5",transform:"rotate(-120 21.447 85.104)",fill:"#37E788"}),(0,h.createElement)(M.Rect,{x:"75",y:"61.64",width:"4",height:"12.571",rx:"2",transform:"rotate(130 75 61.64)",fill:"#FF2D55"}),(0,h.createElement)(M.Rect,{x:"247.461",y:"63.86",width:"4.773",height:"15",rx:"2.386",transform:"rotate(118 247.461 63.86)",fill:"#E7C037"}),(0,h.createElement)(M.Rect,{x:"97",y:"2.529",width:"4.773",height:"15",rx:"2.386",transform:"rotate(-32 97 2.53)",fill:"#117AC9"}),(0,h.createElement)(M.Rect,{x:"323.638",y:"110.513",width:"5.091",height:"16",rx:"2.545",transform:"rotate(40 323.638 110.513)",fill:"#3361CC"}),(0,h.createElement)(M.Rect,{x:"160.138",y:"27",width:"7",height:"22",rx:"3.5",transform:"rotate(40 160.138 27)",fill:"#FF8085"}),(0,h.createElement)(M.Circle,{cx:"40.5",cy:"101.095",r:"4.5",fill:"#F0B849"}),(0,h.createElement)(M.Circle,{cx:"20.928",cy:"47.751",r:"3",fill:"#BF5AF2"}),(0,h.createElement)(M.Circle,{cx:"341",cy:"134",r:"2",fill:"#F0C930"}),(0,h.createElement)(M.Circle,{cx:"131",cy:"83",r:"2",fill:"#3361CC"}),(0,h.createElement)(M.Circle,{cx:"214.5",cy:"13.5",r:"2.5",fill:"#37E688"}),(0,h.createElement)(M.Circle,{cx:"352.763",cy:"98.263",r:"3",fill:"#09A884"}),(0,h.createElement)(M.Circle,{cx:"285.181",cy:"60.541",r:"3",fill:"#FF3B30"}))},_u=function(){var e=g.useContext(C),t=e.redirectTo,n=e.siteId,r=(0,y.useSelect)((function(e){return e(ui).isSiteLaunching(n)})),i=(0,y.useDispatch)(mi),o=i.unsetModalDismissible,a=i.hideModalTitle,c=i.closeFocusedLaunch,s=i.disablePersistentSuccessView,l=pi(),u=l.siteSubdomain,d=l.sitePrimaryDomain,f=g.useState(""),m=L()(f,2),p=m[0],v=m[1],_=g.useState(!1),b=L()(_,2),E=b[0],S=b[1];g.useEffect((function(){v("https://".concat(null==d?void 0:d.domain))}),[d]),g.useEffect((function(){o(),a()}),[o,a]);return(0,h.createElement)("div",{className:"focused-launch-container focused-launch-success__wrapper"},(0,h.createElement)(yu,{className:"focused-launch-success__confetti"}),(0,h.createElement)(xi,{tagName:"h2"},(0,F.__)("Hooray!","full-site-editing")),(0,h.createElement)(Ci,{tagName:"h3"},r?(0,F.__)("Your site will be live shortly.","__i18n_text_domain__"):(0,F.__)("Congratulations, your website is now live. We're excited to watch you grow with WordPress.","full-site-editing")),!r&&(0,h.createElement)(h.Fragment,null,(0,h.createElement)("div",{className:"focused-launch-success__url-wrapper"},(0,h.createElement)("span",{className:"focused-launch-success__url-field"},p),(0,h.createElement)("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"focused-launch-success__url-link","aria-label":(0,F.__)("Visit site","full-site-editing")},(0,h.createElement)(q,{icon:vu,size:16})),(0,h.createElement)(M.ClipboardButton,{text:p,onCopy:function(){return S(!0)},onFinishCopy:function(){return S(!1)},className:"focused-launch-success__url-copy-button"},E?(0,F.__)("Copied!","full-site-editing"):(0,F.__)("Copy Link","full-site-editing"))),(0,h.createElement)(Ri,{onClick:function(){s(),c()},className:"focused-launch-success__continue-editing-button"},(0,F.__)("Continue Editing","full-site-editing")),(0,h.createElement)(Di,{onClick:function(){s(),t("/home/".concat(null==u?void 0:u.domain))}},(0,F.__)("Back home","full-site-editing"))))},bu=function(){var e=wi(),t=e.isSiteLaunched,n=e.isSiteLaunching,r=(0,y.useDispatch)(mi).enablePersistentSuccessView,i=(0,y.useSelect)((function(e){var t=e(mi).getState(),n=t.planProductId,r=t.shouldDisplaySuccessView;return[e(mi).hasSelectedDomain(),n,r]})),o=L()(i,3),a=o[0],c=o[1],s=o[2];g.useEffect((function(){t&&r()}),[t,r]);var l=$o(),u=(0,y.useDispatch)(mi).setDomain;g.useEffect((function(){!a&&l&&u(l)}),[a,l,u]);var d=tu(),f=(0,y.useDispatch)(mi).setPlanProductId;return g.useEffect((function(){!c&&d&&f(d)}),[c,d,f]),(0,h.createElement)(kl,{initialEntries:[$l.Summary,$l.Success],initialIndex:s?1:0},(0,h.createElement)(Wl,{selector:".components-modal__content"}),(t||n)&&(0,h.createElement)(Tl,{to:$l.Success}),(0,h.createElement)(Vl,null,(0,h.createElement)(Rl,{path:$l.DomainDetails},(0,h.createElement)(hu,null)),(0,h.createElement)(Rl,{path:$l.PlanDetails},(0,h.createElement)(gu,null)),(0,h.createElement)(Rl,{path:$l.Success},(0,h.createElement)(_u,null)),(0,h.createElement)(Rl,{path:$l.Summary},(0,h.createElement)(fu,null))))},Eu=function(e){var t=e.locale,n=void 0===t?"en":t,r=e.siteId,i=e.openCheckout,o=e.redirectTo,a=e.getCurrentLaunchFlowUrl,c=(0,y.useSelect)((function(e){return e(mi).getState()})),s=c.isModalDismissible,l=c.isModalTitleVisible,u=c.shouldDisplaySuccessView,d=(0,y.useDispatch)(mi).closeFocusedLaunch;return(0,h.createElement)(O,{localeSlug:n},(0,h.createElement)(M.Modal,{open:!0,className:R()("launch__focused-modal",{"launch__focused-modal--hide-title":!l}),overlayClassName:R()("launch__focused-modal-overlay",{"launch__focused-modal-overlay--delay-animation-in":u}),bodyOpenClassName:"has-focused-launch-modal",onRequestClose:d,title:(0,F.__)("Complete setup","full-site-editing"),icon:(0,h.createElement)(q,{icon:W,size:36}),isDismissible:s,shouldCloseOnEsc:s,shouldCloseOnClickOutside:s},(0,h.createElement)("div",{className:"launch__focused-modal-body"},(0,h.createElement)(C.Provider,{value:{siteId:r,redirectTo:o,openCheckout:i,flow:ou,getCurrentLaunchFlowUrl:a}},(0,h.createElement)(bu,null)))))};!function(e,t){(0,_.registerPlugin)(e,t)}("a8c-editor-editor-focused-launch",{render:function(){var e,t=window._currentSiteId,n=(0,y.useSelect)((function(e){var n=e(p).getState();return[n.isFocusedLaunchOpen,n.shouldDisplaySuccessView,e(m).isSiteLaunched(t)]})),r=L()(n,3),i=r[0],o=r[1],a=r[2];return g.useEffect((function(){a&&document.body.classList.add("is-focused-launch-complete")}),[a]),i||o?(0,h.createElement)(Eu,{locale:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale,openCheckout:Vs,redirectTo:Us,siteId:t,getCurrentLaunchFlowUrl:Bs}):null}})},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var a=r,c=Number(new Date),s=c-(n||c);a.diff=s,a.prev=n,a.curr=c,n=c,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var l=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=t.formatters[n];if("function"==typeof r){var o=i[l];e=r.call(a,o),i.splice(l,1),l--}return e})),t.formatArgs.call(a,i);var u=a.log||t.log;u.apply(a,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(a)),r(t.skips.map(a).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},8186:function(e,t,n){"use strict";var r=n(7320),i=n(3804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var a=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),a({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();a((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},6718:function(e,t,n){"use strict";e.exports=n(8186)},2884:function(e,t,n){var r=n(3830),i=n(7260);function o(e,t){if(t)if("number"==typeof t)a(e,t);else{t.status_code&&a(e,t.status_code),t.error&&(e.name=s(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&c(e)}}function a(e,t){e.name=s(i[t]),e.status=e.statusCode=t,c(e)}function c(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function s(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.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"}},3804:function(e){"use strict";e.exports=window.React}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(1379)}());
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var a=i.apply(null,n);a&&e.push(a)}else if("object"===o)for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(n){return e}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,a,l;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=s(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):f(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return s(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)r(s,this,t);else{var l=s.length,u=f(s,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5695:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(t)-1,s=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<s.length;n++){var l=s[n],u=e(t[l]);u&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u)}return o.splice(c,1),"{"+a+"}"}}(e)}},7201:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},4983:function(e){"use strict";e.exports=function(e,t,n,r,i,o,a,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,c],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},6590:function(e,t,n){"use strict";var r=n(7201);e.exports=r},8051:function(e){"use strict";var t="__global_unique_id__";e.exports=function(){return window[t]=(window[t]||0)+1}},4495:function(e,t,n){"use strict";var r=n(212),i=n(9561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},5079:function(e,t,n){"use strict";var r=n(212),i=n(4495),o=n(713),a=r.rotl32,c=r.sum32,s=r.sum32_5,l=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(p,u),e.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],p=this.h[3],m=this.h[4];for(r=0;r<n.length;r++){var f=~~(r/20),h=s(a(i,5),l(f,o,u,p),m,n[r],d[f]);m=p,p=u,u=a(o,30),o=i,i=h}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],u),this.h[3]=c(this.h[3],p),this.h[4]=c(this.h[4],m)},p.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},8032:function(e,t,n){"use strict";var r=n(212),i=n(4495),o=n(713),a=n(9561),c=r.sum32,s=r.sum32_4,l=r.sum32_5,u=o.ch32,d=o.maj32,p=o.s0_256,m=o.s1_256,f=o.g0_256,h=o.g1_256,g=i.BlockHash,v=[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 y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(h(n[r-2]),n[r-7],f(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],v=this.h[3],y=this.h[4],b=this.h[5],_=this.h[6],E=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var S=l(E,m(y),u(y,b,_),this.k[r],n[r]),w=c(p(i),d(i,o,g));E=_,_=b,b=y,y=c(v,S),v=g,g=o,o=i,i=c(S,w)}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],g),this.h[3]=c(this.h[3],v),this.h[4]=c(this.h[4],y),this.h[5]=c(this.h[5],b),this.h[6]=c(this.h[6],_),this.h[7]=c(this.h[7],E)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(9561),i=n(1285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=s(i.toString(16))}return n},t.zero2=c,t.zero8=s,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var a=new Array(o/4),c=0,s=t;c<a.length;c++,s+=4){var l;l="big"===i?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[c]=l>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,c){var s=0,l=t;return s+=(l=l+r>>>0)<t?1:0,s+=(l=l+o>>>0)<o?1:0,e+n+i+a+(s+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,c){return t+r+o+c>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,c,s,l){var u=0,d=t;return u+=(d=d+r>>>0)<t?1:0,u+=(d=d+o>>>0)<o?1:0,u+=(d=d+c>>>0)<c?1:0,e+n+i+a+s+(u+=(d=d+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,c,s,l){return t+r+o+c+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},3463:function(e,t,n){"use strict";var r=n(8570),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return r.isMemo(e)?a:c[e.$$typeof]||i}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=m(n);i&&i!==f&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var c=s(t),h=s(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||h&&h[v]||c&&c[v])){var y=p(n,v);try{l(t,v,y)}catch(b){}}}}return t}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},7010:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(n(3804)),o=c(n(3631)),a=c(n(2586));function c(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function l(e,t){var n,a,c,u,d,p,m,f,h=[],g={};for(p=0;p<e.length;p++)if("string"!==(d=e[p]).type){if(!t.hasOwnProperty(d.value)||void 0===t[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==r(t[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+s);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){n=t[d.value],c=p;break}h.push(t[d.value])}else h.push(d.value);return n&&(u=function(e,t){var n,r,i=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}(c,e),m=l(e.slice(c+1,u),t),a=i.default.cloneElement(n,{},m),h.push(a),u<e.length-1&&(f=l(e.slice(u+1),t),h=h.concat(f))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,o.default)(g))}t.Z=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(s=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var o=(0,a.default)(t);try{return l(o,n)}catch(c){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+c.message+"`");return t}}},2586:function(e){"use strict";function t(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},7839:function(e,t,n){var r=n(2699),i=n(1285);function o(e){if(!(this instanceof o))return new o(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=o,i(o,r.EventEmitter),Object.defineProperty(o.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),o.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},o.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},o.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},o.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},o.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},o.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},o.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},o.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,a=365.25*i;function c(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,s){s=s||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var s=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"weeks":case"week":case"w":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===l&&isFinite(e))return s.long?function(e){var o=Math.abs(e);if(o>=i)return c(e,o,i,"day");if(o>=r)return c(e,o,r,"hour");if(o>=n)return c(e,o,n,"minute");if(o>=t)return c(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7320:function(e){"use strict";
|
7 |
/*
|
8 |
object-assign
|
9 |
(c) Sindre Sorhus
|
10 |
@license MIT
|
11 |
+
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,c,s=i(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))n.call(a,u)&&(s[u]=a[u]);if(t){c=t(a);for(var d=0;d<c.length;d++)r.call(a,c[d])&&(s[c[d]]=a[c[d]])}}return s}},99:function(e,t,n){var r=n(243);e.exports=m,e.exports.parse=o,e.exports.compile=function(e,t){return c(o(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,c="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],p=n[1],m=n.index;if(c+=e.slice(a,m),a=m+d.length,p)c+=p[1];else{var f=e[a],h=n[2],g=n[3],v=n[4],y=n[5],b=n[6],_=n[7];c&&(r.push(c),c="");var E=null!=h&&null!=f&&f!==h,S="+"===b||"*"===b,w="?"===b||"*"===b,C=n[2]||u,x=v||y;r.push({name:g||o++,prefix:h||"",delimiter:C,optional:w,repeat:S,partial:E,asterisk:!!_,pattern:x?l(x):_?".*":"[^"+s(C)+"]+?"})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",c=t||{},s=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var d,p=c[u.name];if(null==p){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var m=0;m<p.length;m++){if(d=s(p[m]),!n[l].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===m?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(p),!n[l].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",c=0;c<e.length;c++){var l=e[c];if("string"==typeof l)a+=s(l);else{var p=s(l.prefix),m="(?:"+l.pattern+")";t.push(l),l.repeat&&(m+="(?:"+p+m+")*"),a+=m=l.optional?l.partial?p+"("+m+")?":"(?:"+p+"("+m+"))?":p+"("+m+")"}}var f=s(n.delimiter||"/"),h=a.slice(-f.length)===f;return i||(a=(h?a.slice(0,-f.length):a)+"(?:"+f+"(?=$))?"),a+=o?"$":i&&h?"":"(?="+f+"|$)",u(new RegExp("^"+a,d(n)),t)}function m(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(m(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},243:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},8650:function(e){var t,n=window.ProgressEvent,r=!!n;try{t=new n("loaded"),r="loaded"===t.type,t=null}catch(i){r=!1}e.exports=r?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},8262:function(e,t,n){"use strict";var r=n(3586);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},3980:function(e,t,n){e.exports=n(8262)()},3586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5527:function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(2493),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},a)},9126:function(e,t,n){"use strict";var r=n(6845),i=n(9166),o=n(5527);e.exports={formats:o,parse:i,stringify:r}},9166:function(e,t,n){"use strict";var r=n(2493),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=c?o.slice(0,c.index):o,u=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&null!==(c=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+o.slice(c.index)+"]"),function(e,t,n,r){for(var i=r?t:s(t,n),o=e.length-1;o>=0;--o){var a,c=e[o];if("[]"===c&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&c!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:a[l]=i:a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,d),m=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?f="utf-8":"utf8=%26%2310003%3B"===p[n]&&(f="iso-8859-1"),m=n,n=p.length);for(n=0;n<p.length;++n)if(n!==m){var h,g,v=p[n],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(h=t.decoder(v,a.decoder,f,"key"),g=t.strictNullHandling?null:""):(h=t.decoder(v.slice(0,b),a.decoder,f,"key"),g=r.maybeMap(s(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,f,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===f&&(g=c(g)),v.indexOf("[]=")>-1&&(g=o(g)?[g]:g),i.call(l,h)?l[h]=r.combine(l[h],g):l[h]=g}return l}(e,n):e,d=n.plainObjects?Object.create(null):{},p=Object.keys(u),m=0;m<p.length;++m){var f=p[m],h=l(f,u[f],n,"string"==typeof e);d=r.merge(d,h,n)}return r.compact(d)}},6845:function(e,t,n){"use strict";var r=n(2493),i=n(5527),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,s=Array.prototype.push,l=function(e,t){s.apply(e,c(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},m=function e(t,n,i,o,a,s,u,d,m,f,h,g,v){var y,b=t;if("function"==typeof u?b=u(n,b):b instanceof Date?b=f(b):"comma"===i&&c(b)&&(b=r.maybeMap(b,(function(e){return e instanceof Date?f(e):e})).join(",")),null===b){if(o)return s&&!g?s(n,p.encoder,v,"key"):n;b=""}if("string"==typeof(y=b)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(b))return s?[h(g?n:s(n,p.encoder,v,"key"))+"="+h(s(b,p.encoder,v,"value"))]:[h(n)+"="+h(String(b))];var _,E=[];if(void 0===b)return E;if(c(u))_=u;else{var S=Object.keys(b);_=d?S.sort(d):S}for(var w=0;w<_.length;++w){var C=_[w],x=b[C];if(!a||null!==x){var k=c(b)?"function"==typeof i?i(n,C):n:n+(m?"."+C:"["+C+"]");l(E,e(x,k,i,o,a,s,u,d,m,f,h,g,v))}}return E};e.exports=function(e,t){var n,r=e,s=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=p.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof s.filter?r=(0,s.filter)("",r):c(s.filter)&&(n=s.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=a[u];n||(n=Object.keys(r)),s.sort&&n.sort(s.sort);for(var h=0;h<n.length;++h){var g=n[h];s.skipNulls&&null===r[g]||l(d,m(r[g],g,f,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var v=d.join(s.delimiter),y=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},2493:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],i=0;i<t.length;++i)for(var o=t[i],a=o.obj[o.prop],c=Object.keys(a),s=0;s<c.length;++s){var l=c[s],u=a[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var i=[],o=0;o<r.length;++o)void 0!==r[o]&&i.push(r[o]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<i.length;++a){var c=i.charCodeAt(a);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?o+=i.charAt(a):c<128?o+=r[c]:c<2048?o+=r[192|c>>6]+r[128|63&c]:c<55296||c>=57344?o+=r[224|c>>12]+r[128|c>>6&63]+r[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(a)),o+=r[240|c>>18]+r[128|c>>12&63]+r[128|c>>6&63]+r[128|63&c])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(t(e[i]));return r}return t(e)},merge:function e(r,o,a){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(a&&(a.plainObjects||a.allowPrototypes)||!t.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var c=r;return n(r)&&!n(o)&&(c=i(r,a)),n(r)&&n(o)?(o.forEach((function(n,i){if(t.call(r,i)){var o=r[i];o&&"object"==typeof o&&n&&"object"==typeof n?r[i]=e(o,n,a):r.push(n)}else r[i]=n})),r):Object.keys(o).reduce((function(n,r){var i=o[r];return t.call(n,r)?n[r]=e(n[r],i,a):n[r]=i,n}),c)}}},3631:function(e,t,n){"use strict";var r=n(3804),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(7201),a=n(4983),c=n(6590),s="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var o,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===i)return n(r,e,""===t?"."+l(e,0):t),1;var d=0,p=""===t?".":t+":";if(Array.isArray(e))for(var m=0;m<e.length;m++)d+=u(o=e[m],p+l(o,m),n,r);else{var f=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(f){0;for(var h,g=f.call(e),v=0;!(h=g.next()).done;)d+=u(o=h.value,p+l(o,v++),n,r)}else if("object"===c){0;var y=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return d}var d=/\/+/g;function p(e){return(""+e).replace(d,"$&/")}var m,f,h=g,g=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},v=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function y(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function b(e,t,n){var i,a,c=e.result,s=e.keyPrefix,l=e.func,u=e.context,d=l.call(u,t,e.count++);Array.isArray(d)?_(d,c,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(i=d,a=s+(!d.key||t&&t.key===d.key?"":p(d.key)+"/")+n,d=r.cloneElement(i,{key:a},void 0!==i.props?i.props.children:void 0)),c.push(d))}function _(e,t,n,r,i){var o="";null!=n&&(o=p(n)+"/");var a=y.getPooled(t,o,r,i);!function(e,t,n){null==e||u(e,"",t,n)}(e,b,a),y.release(a)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},m=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},(f=y).instancePool=[],f.getPooled=m||h,f.poolSize||(f.poolSize=10),f.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)_(e[n],t,n,o.thatReturnsArgument);return t}},6866:function(e,t){"use strict";
|
12 |
/** @license React v16.13.1
|
13 |
* react-is.production.min.js
|
14 |
*
|
16 |
*
|
17 |
* This source code is licensed under the MIT license found in the
|
18 |
* LICENSE file in the root directory of this source tree.
|
19 |
+
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case c:case a:case m:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case h:case s:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=i,t.Profiler=c,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return S(e)||E(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===a||e===m||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=E},8570:function(e,t,n){"use strict";e.exports=n(6866)},1164:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,{getSite:function(){return He},getSiteDomains:function(){return Ge}});var i={};n.r(i),n.d(i,{getNewSite:function(){return qe},getNewSiteError:function(){return Ye},getPrimarySiteDomain:function(){return rt},getSite:function(){return Je},getSiteDomains:function(){return nt},getSiteSubdomain:function(){return it},getSiteTitle:function(){return Qe},getState:function(){return We},isFetchingSite:function(){return Ke},isFetchingSiteDetails:function(){return Xe},isNewSite:function(){return Ze},isSiteLaunched:function(){return et},isSiteLaunching:function(){return tt}});var o={};n.r(o),n.d(o,{resetPlan:function(){return Ot},setFeatures:function(){return kt},setFeaturesByType:function(){return Pt},setPlanProducts:function(){return At},setPlans:function(){return Nt}});var a={};n.r(a),n.d(a,{getDefaultFreePlan:function(){return Bt},getDefaultPaidPlan:function(){return Mt},getFeatures:function(){return Dt},getFeaturesByType:function(){return Lt},getPlanByPath:function(){return $t},getPlanByPeriodAgnosticSlug:function(){return jt},getPlanByProductId:function(){return Rt},getPlanProduct:function(){return Ht},getPlanProductById:function(){return Ft},getPlansProducts:function(){return Vt},getPrices:function(){return zt},getSupportedPlans:function(){return Ut},isPlanEcommerce:function(){return Gt},isPlanFree:function(){return Wt},isPlanProductFree:function(){return qt}});var c={};n.r(c),n.d(c,{getSupportedPlans:function(){return Kn}});var s={};n.r(s),n.d(s,{fetchDomainSuggestions:function(){return or},receiveCategories:function(){return ir},receiveDomainAvailability:function(){return ar},receiveDomainSuggestionsError:function(){return sr},receiveDomainSuggestionsSuccess:function(){return cr}});var l={};n.r(l),n.d(l,{__internalGetDomainSuggestions:function(){return mr},getCategories:function(){return pr},isAvailable:function(){return dr}});var u={};n.r(u),n.d(u,{closeFocusedLaunch:function(){return jr},closeSidebar:function(){return Rr},confirmDomainSelection:function(){return Ar},disablePersistentSuccessView:function(){return Gr},enableExperimental:function(){return Mr},enablePersistentSuccessView:function(){return Hr},hideModalTitle:function(){return $r},openFocusedLaunch:function(){return Fr},openSidebar:function(){return Lr},setDomain:function(){return Pr},setDomainSearch:function(){return Or},setModalDismissible:function(){return Ur},setPlanProductId:function(){return Tr},setSidebarFullscreen:function(){return wr},setSiteTitle:function(){return kr},setStep:function(){return xr},showModalTitle:function(){return zr},showSiteTitleStep:function(){return Br},unsetDomain:function(){return Nr},unsetModalDismissible:function(){return Vr},unsetPlanProductId:function(){return Ir},unsetSidebarFullscreen:function(){return Cr},updatePlan:function(){return Dr}});var d={};n.r(d),n.d(d,{getCurrentStep:function(){return ai},getFirstIncompleteStep:function(){return ii},getLaunchSequence:function(){return Wr},getLaunchStep:function(){return qr},getPaidPlanProductId:function(){return Qr},getSelectedDomain:function(){return Xr},getSelectedPlan:function(){return Jr},getSelectedPlanProductId:function(){return Zr},getSiteTitle:function(){return oi},getState:function(){return Yr},hasPaidDomain:function(){return Kr},hasSelectedDomain:function(){return ei},isFlowCompleted:function(){return ni},isFlowStarted:function(){return ri},isStepCompleted:function(){return ti}});var p={};n.r(p),n.d(p,{getAllFeatures:function(){return ua},getRecommendedPlanSlug:function(){return da}});window["a8c-fse-common-data-stores"];var m="automattic/site",f="automattic/launch",h=window.wp.element,g=n(3804),v=n.n(g),y=window.wp.data,b=window.wp.plugins,_=window.wp.hooks,E=n(417),S=n.n(E),w=window.wp.url,C=function(e){window.location.href=e},x=g.createContext({siteId:0,redirectTo:C,getCurrentLaunchFlowUrl:function(){try{return window.location.href}catch(e){return}},openCheckout:function(e,t){C((0,w.addQueryArgs)("/checkout/".concat(e),S()({preLaunch:1},!t&&{redirect_to:"/home/".concat(e)})))},flow:"launch"}),k=n(8527),P=n.n(k),N=window.wp.compose,A=(0,g.createContext)("en"),O=function(e){var t=e.children,n=e.localeSlug;return(0,h.createElement)(A.Provider,{value:n},t)};function T(){return(0,g.useContext)(A)}(0,N.createHigherOrderComponent)((function(e){return function(t){var n=T();return(0,h.createElement)(e,P()({locale:n},t))}}),"withLocale");var I=n(1068),D=n.n(I),L=n(2779),R=n.n(L),F=window.wp.i18n,j=window.wp.components;function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var V,z,$,H=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=function(e,t){if(null==e)return{};var n,r,i=B(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["icon","size"]);return(0,h.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},G=window.wp.primitives,W=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,h.createElement)(G.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),q=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Y="automattic/site",K=n(2220),X=n.n(K),Z=n(4582),J=n.n(Z),Q=n(1260),ee=n.n(Q);!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(V||(V={})),function(e){e.INTERNAL="internal"}(z||(z={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}($||($={}));var te=(0,y.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),ne=(0,y.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:te,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return S()(S()({},e),{},ee()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],X()(e,[n].map(J())));return S()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?S()(S()({},e),{},ee()({},t.siteId,S()(S()({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:$.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:$.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:$.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?S()(S()({},e),{},ee()({},t.siteId,t.domains)):e}}),re=n(2954),ie=n.n(re),oe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),ae=new Uint8Array(16);function ce(){if(!oe)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oe(ae)}for(var se=[],le=0;le<256;++le)se[le]=(le+256).toString(16).substr(1);var ue=function(e,t){var n=t||0,r=se;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var de,pe=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||ce)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||ue(i)},me=n(2884),fe=n.n(me),he=n(8650),ge=n.n(he),ve=n(8049),ye=n.n(ve),be=ye()("wpcom-proxy-request"),_e="https://public-api.wordpress.com",Ee=window.location.protocol+"//"+window.location.host,Se=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),we=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),Ce=null,xe=!1,ke={},Pe=!!window.ProgressEvent&&!!window.FormData;be('using "origin": %o',Ee);var Ne=function(e,t){var n=Object.assign({},e);be("request(%o)",n),Ce||De();var r=pe();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=Pe,n.method=String(n.method||"GET").toUpperCase(),be("params object: %o",n);var i=new window.XMLHttpRequest;if(i.params=n,ke[r]=i,"function"==typeof t){var o=!1,a=function(e){if(!o){o=!0;var n=e.error||e.err||e;be("error: ",n),be("headers: ",e.headers),t(n,null,e.headers)}};i.addEventListener("load",(function(e){if(!o){o=!0;var n=e.response||i.response;be("body: ",n),be("headers: ",e.headers),t(null,n,e.headers)}})),i.addEventListener("abort",a),i.addEventListener("error",a)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,xe?Oe(n):(be("buffering API request since proxying <iframe> is not yet loaded"),de.push(n)),i},Ae=function(e,t){return"function"==typeof t?Ne(e,t):new Promise((function(t,n){Ne(e,(function(e,r){e?n(e):t(r)}))}))};function Oe(e){be("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!we)return;for(var t=0;t<e.length;t++){var n=Ie(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),Ce.contentWindow.postMessage(Se?JSON.stringify(e):e,_e)}function Te(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function Ie(e){return Te(e)?e:"object"==typeof e&&Te(e.fileContents)?e.fileContents:null}function De(){be("install()"),Ce&&(be("uninstall()"),window.removeEventListener("message",Le),document.body.removeChild(Ce),xe=!1,Ce=null),de=[],window.addEventListener("message",Le),(Ce=document.createElement("iframe")).src=_e+"/wp-admin/rest-proxy/?v=2.0#"+Ee,Ce.style.display="none",document.body.appendChild(Ce)}function Le(e){if(be("onmessage"),e.origin===_e)if(e.source===Ce.contentWindow){var t=e.data;if(!t)return be("no `data`, bailing");if("ready"!==t){if(Se&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){be('got "progress" event: %o',e);var t=ke[e.callbackId];if(t){var n=new(ge())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return be("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in ke))return be("bailing, no matching request with callback: %o",n);var r,i=ke[n],o=i.params,a=t[0],c=t[1],s=t[2];if(207===c||delete ke[n],o.metaAPI?c="metaAPIupdated"===a?200:500:be("got %o status code for URL: %o",c,o.path),"object"==typeof s)if(s.status=c,r=s["Content-Type"],/^application[/]x-ndjson($|;)/.test(r))return void Re(i,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),s);if(c&&2===Math.floor(c/100))!function(e,t,n){var r=new(ge())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(i,a,s);else Re(i,fe()(o,c,a),s)}else!function(){if(be('proxy <iframe> "load" event'),xe=!0,de){for(var e=0;e<de.length;e++)Oe(de[e]);de=null}}()}else be("ignoring message... iframe elements do not match");else be("ignoring message... %o !== %o",e.origin,_e)}function Re(e,t,n){var r=new(ge())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}var Fe,je=Ae,Me=function(e){return{type:"WPCOM_REQUEST",request:e}},Be=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},Ue={WPCOM_REQUEST:function(e){var t=e.request;return je(t)},FETCH_AND_PARSE:(Fe=ie()(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return Fe.apply(this,arguments)}),RELOAD_PROXY:function(){De()},REQUEST_ALL_BLOGS_ACCESS:function(){return Ae({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}};function Ve(e){var t=regeneratorRuntime.mark(l),n=regeneratorRuntime.mark(f),r=regeneratorRuntime.mark(h),i=regeneratorRuntime.mark(g),o=regeneratorRuntime.mark(v),a=function(){return{type:"FETCH_NEW_SITE"}},c=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},s=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function l(n){var r,i,o,a,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,i=X()(n,["authToken"]),o={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},a=S()(S()(S()({},o),i),{},{validate:!1}),t.next=8,Me({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:r});case 8:return l=t.sent,t.next=11,c(l);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,s(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var u=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},d=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},p=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},m=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function f(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d(e);case 2:return t.prev=2,t.next=5,Me({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,p(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,m(e,z.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function h(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Me({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),r)}function g(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Me({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),i)}function v(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Me({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,u(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),o,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:v,receiveSiteTitle:u,fetchNewSite:a,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:c,receiveNewSiteFailed:s,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:l,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:f,launchSiteStart:d,launchSiteSuccess:p,launchSiteFailure:m,getCart:h,setCart:g}}var ze=regeneratorRuntime.mark(He),$e=regeneratorRuntime.mark(Ge);function He(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,y.dispatch)(Y).fetchSite();case 2:return n.prev=2,n.next=5,Me({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,y.dispatch)(Y).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,y.dispatch)(Y).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),ze,null,[[2,10]])}function Ge(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Me({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,y.dispatch)(Y).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),$e,null,[[0,8]])}var We=function(e){return e},qe=function(e){return e.newSite.data},Ye=function(e){return e.newSite.error},Ke=function(e){return e.newSite.isFetching},Xe=function(e){return e.isFetchingSiteDetails},Ze=function(e){return!!e.newSite.data},Je=function(e,t){return e.sites[t]},Qe=function(e,t){var n;return null===(n=(0,y.select)(Y).getSite(t))||void 0===n?void 0:n.name},et=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===$.SUCCESS},tt=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===$.IN_PROGRESS},nt=function(e,t){return e.sitesDomains[t]},rt=function(e,t){var n;return null===(n=(0,y.select)(Y).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},it=function(e,t){var n;return null===(n=(0,y.select)(Y).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))},ot=!1;var at,ct,st,lt,ut="free_plan",dt="personal-bundle",pt="value_bundle",mt="business-bundle",ft="ecommerce-bundle",ht="Free",gt="Personal",vt="Premium",yt="Business",bt="Ecommerce",_t="automattic/onboard/plans",Et=[dt,pt,mt,ft],St=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],wt=[ht,gt,vt,yt,bt],Ct=[ut].concat(Et,St),xt=(0,y.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return t.features;default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return t.featuresByType;default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans;default:return e}}}),kt=function(e){return{type:"SET_FEATURES",features:e}},Pt=function(e){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e}},Nt=function(e){return{type:"SET_PLANS",plans:e}},At=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},Ot=function(){return{type:"RESET_PLAN"}},Tt=window.wp.deprecated,It=n.n(Tt),Dt=function(e){return e.features},Lt=function(e){return e.featuresByType},Rt=function(e,t){if(t)return(0,y.select)(_t).getSupportedPlans().find((function(e){return e.productIds.indexOf(t)>-1}))},Ft=function(e,t){if(t)return(0,y.select)(_t).getPlansProducts().find((function(e){return e.productId===t}))},jt=function(e,t){if(t)return(0,y.select)(_t).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===t}))},Mt=function(e,t){return(0,y.select)(_t).getSupportedPlans(t).find((function(e){return"Premium"===e.periodAgnosticSlug}))},Bt=function(e,t){return(0,y.select)(_t).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===ht}))},Ut=function(e,t){return e.plans},Vt=function(e,t){return e.planProducts},zt=function(e,t){return It()("getPrices",{alternative:"getPlanProduct().price"}),(0,y.select)(_t).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},$t=function(e,t){if(t){var n=(0,y.select)(_t).getPlansProducts().find((function(e){return e.pathSlug===t}));if(n)return(0,y.select)(_t).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===(null==n?void 0:n.periodAgnosticSlug)}))}},Ht=function(e,t,n){if(t&&n){var r=(0,y.select)(_t).getPlansProducts();return t===ht?r.find((function(e){return e.periodAgnosticSlug===t})):r.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},Gt=function(e,t){return t===bt},Wt=function(e,t){return t===ht},qt=function(e,t){return 1===t},Yt=n(9126),Kt=n(5182),Xt=n.n(Kt),Zt=n(7010);at={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},ct=["(","?"],st={")":["("],":":["?","?:"]},lt=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Jt={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function Qt(e){var t=function(e){for(var t,n,r,i,o=[],a=[];t=e.match(lt);){for(n=t[0],(r=e.substr(0,t.index).trim())&&o.push(r);i=a.pop();){if(st[n]){if(st[n][0]===i){n=st[n][1]||n;break}}else if(ct.indexOf(i)>=0||at[i]<at[n]){a.push(i);break}o.push(i)}st[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&o.push(e),o.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,i,o,a,c,s=[];for(n=0;n<e.length;n++){if(a=e[n],o=Jt[a]){for(r=o.length,i=Array(r);r--;)i[r]=s.pop();try{c=o.apply(null,i)}catch(l){return l}}else c=t.hasOwnProperty(a)?t[a]:+a;s.push(c)}return s[0]}(t,e)}}var en={contextDelimiter:"",onMissingKey:null};function tn(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},en)this.options[n]=void 0!==t&&n in t?t[n]:en[n]}tn.prototype.getPluralForm=function(e,t){var n,r,i,o=this.pluralForms[e];return o||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=function(e){var t=Qt(e);return function(e){return+t({n:e})}}(r)),o=this.pluralForms[e]=i),o(t)},tn.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,c;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[o]?c[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)};var nn=n(7839),rn=n.n(nn),on=n(5079),an=n.n(on),cn=n(2699),sn=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function ln(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(sn,(function(){var e,r,i,o,a;return e=arguments[3],r=arguments[5],"%"===(o=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(a=t[0][r]):(void 0===e&&(e=n),n++,a=t[e-1]),"f"===o?a=parseFloat(a)||0:"d"===o&&(a=parseInt(a)||0),void 0!==i&&("f"===o?a=a.toFixed(i):"s"===o&&(a=a.substr(0,i))),null!=a?a:"")}))}function un(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,c=void 0===n?".":n,s="";return(s=(o?
|
20 |
/*
|
21 |
* Exposes number format capability
|
22 |
*
|
24 |
* @license See CREDITS.md
|
25 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
26 |
*/
|
27 |
+
function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<o&&(s[1]=s[1]||"",s[1]+=new Array(o-s[1].length+1).join("0")),s.join(c)}var dn=ye()("i18n-calypso"),pn="number_format_decimals",mn="number_format_thousands_sep",fn="messages",hn=[function(e){return e}],gn={};function vn(){wn.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function yn(e){return Array.prototype.slice.call(e)}function bn(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&vn("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",yn(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&vn("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",yn(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function En(e,t){return e.dcnpgettext(fn,t.context,t.original,t.plural,t.count)}function Sn(e,t){for(var n=hn.length-1;n>=0;n--){var r=hn[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return En(e.state.tannin,r)}return null}function wn(){if(!(this instanceof wn))return new wn;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:rn()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new cn.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}wn.throwErrors=!1,wn.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},wn.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},wn.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},wn.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return un(e,n,r,i)},wn.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},wn.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==gn[n+e])return gn[n+e];var r=an()().update(e).digest("hex");return gn[n+e]=t?r.substr(0,t):r},a=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)hn.push(a(!1));else{var c=i.substr(5).indexOf("-");if(c<0){var s=Number(i.substr(5));hn.push(a(s))}else for(var l=Number(i.substr(5,c)),u=Number(i.substr(6+c)),d=l;d<=u;d++)hn.push(a(d))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new tn(ee()({},fn,this.state.locale)),this.state.numberFormatSettings.decimal_point=En(this.state.tannin,bn([pn])),this.state.numberFormatSettings.thousands_sep=En(this.state.tannin,bn([mn])),this.state.numberFormatSettings.decimal_point===pn&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===mn&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},wn.prototype.getLocale=function(){return this.state.locale},wn.prototype.getLocaleSlug=function(){return this.state.localeSlug},wn.prototype.getLocaleVariant=function(){return this.state.localeVariant},wn.prototype.isRtl=function(){return"rtl"===this.state.textDirection},wn.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},wn.prototype.hasTranslation=function(){return!!Sn(this,bn(arguments))},wn.prototype.translate=function(){var e=bn(arguments),t=Sn(this,e);if(t||(t=En(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=ln.apply(void 0,Xt()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=(0,Zt.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},wn.prototype.reRenderTranslations=function(){dn("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},wn.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},wn.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var Cn=wn,xn=n(85),kn=n.n(xn),Pn=n(5198),Nn=n.n(Pn),An=n(8111),On=n.n(An),Tn=n(270),In=n.n(Tn),Dn=n(4564),Ln=n.n(Dn);var Rn=n(6718);var Fn=new Cn,jn=Fn.numberFormat.bind(Fn),Mn=Fn.translate.bind(Fn),Bn=(Fn.configure.bind(Fn),Fn.setLocale.bind(Fn),Fn.getLocale.bind(Fn),Fn.getLocaleSlug.bind(Fn),Fn.getLocaleVariant.bind(Fn),Fn.isRtl.bind(Fn),Fn.addTranslations.bind(Fn),Fn.reRenderTranslations.bind(Fn),Fn.registerComponentUpdateHook.bind(Fn),Fn.registerTranslateHook.bind(Fn),Fn.state,Fn.stateObserver,Fn.on.bind(Fn),Fn.off.bind(Fn),Fn.emit.bind(Fn),function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)}}(Fn),function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Fn),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,Rn.useSubscription)(t)}var r=(0,N.createHigherOrderComponent)((function(e){return(0,g.forwardRef)((function(t,r){var i=n();return(0,h.createElement)(e,P()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Fn)),Un=(Bn.useRtl,Bn.withRtl,{AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}});function Vn(e){return Un[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}function zn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Vn(t);if(!r||isNaN(e))return null;var i=S()(S()({},r),n),o=i.decimal,a=i.grouping,c=i.precision,s=i.symbol,l=e<0?"-":"",u=jn(Math.abs(e),{decimals:c,thousandsSep:a,decPoint:o});return n.stripZeros&&(u=$n(u,o)),"".concat(l).concat(s).concat(u)}function $n(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}var Hn=regeneratorRuntime.mark(Kn);function Gn(e){return zn(12*e.raw_price,e.currency_code)}function Wn(e){return zn(e.raw_price,e.currency_code)}function qn(e){return e.reduce((function(e,t){var n;return e[t.id]={id:t.id,name:t.name,description:t.description,type:null!==(n=t.type)&&void 0!==n?n:"checkbox"},e}),{})}function Yn(e,t){var n=Ct.reduce((function(n,r){var i=e.find((function(e){return e.product_slug===r}));if(!i)return n;var o,a=t.find((function(e){return e.productIds.indexOf(i.product_id)>-1}));return n.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?Wn(i):(o=i,zn(o.raw_price/12,o.currency_code)),annualPrice:31===(null==i?void 0:i.bill_period)?Gn(i):Wn(i)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===Et[t]})),r=e.find((function(e){return e.storeSlug===St[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,a=Math.round(100*(1-o/i));n.annualDiscount=a,r.annualDiscount=a}},n=0;n<Et.length;n++)t(n)}(n),n}function Kn(){var e,t,n,r,i,o,a,c=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:"en",s.next=3,Me({path:"/plans",query:(0,Yt.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,Be("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=s.sent,r=n.body,i=r.plans.map((function(e){return{description:e.tagline,features:e.highlighted_features,storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:e.nonlocalized_short_name===ht,isPopular:e.nonlocalized_short_name===vt,periodAgnosticSlug:e.nonlocalized_short_name,productIds:e.products.map((function(e){return e.plan_id}))}})),o=Yn(t,i),a=qn(r.features),s.next=13,Nt(i);case 13:return s.next=15,At(o);case 15:return s.next=17,kt(a);case 17:return s.next=19,Pt(r.features_by_type);case 19:case"end":return s.stop()}}),Hn)}var Xn=!1;function Zn(){return Xn||(Xn=!0,(0,y.registerStore)(_t,{resolvers:c,actions:o,controls:Ue,reducer:xt,selectors:a})),_t}var Jn,Qn="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(Jn||(Jn={}));var er=n(5695),tr=n.n(er)(),nr={state:Jn.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},rr=(0,y.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nr,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?S()(S()({},e),{},{state:Jn.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?S()(S()({},e),{},{state:Jn.Success,data:S()(S()({},e.data),{},ee()({},tr(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?S()(S()({},e),{},{state:Jn.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?S()(S()({},e),{},ee()({},t.domainName,t.availability)):e}}),ir=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},or=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},ar=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},cr=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},sr=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}},lr=regeneratorRuntime.mark(pr),ur=regeneratorRuntime.mark(mr),dr=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,Be(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",ar(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",ar(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function pr(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Be("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",ir(e.body));case 4:case"end":return t.stop()}}),lr)}function mr(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.query){n.next=2;break}return n.abrupt("return",sr("Empty query"));case 2:return n.next=4,or();case 4:return n.prev=4,n.next=7,Me({apiVersion:"1.1",path:"/domains/suggestions",query:(0,Yt.stringify)(e)});case 7:t=n.sent,n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(4),n.abrupt("return",sr(n.t0.message||Mn("Error while fetching server response")));case 13:if(t&&""!==t){n.next=15;break}return n.abrupt("return",sr(Mn("Invalid response from the server")));case 15:return n.abrupt("return",cr(e,t));case 16:case"end":return n.stop()}}),ur,null,[[4,10]])}var fr=function(e){function t(t,n){return S()(S()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(Xt()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),Xt()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,y.select)(Qn).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,y.select)("core/data").isResolving(Qn,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[tr(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}},hr=!1;function gr(e){var t=e.vendor;return hr||(hr=!0,(0,y.registerStore)(Qn,{actions:s,controls:Ue,reducer:rr,resolvers:l,selectors:fr(t)})),Qn}var vr=window.wp.dataControls,yr="automattic/launch",br="automattic/onboard/plans",_r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},Er=[_r.Name,_r.Domain,_r.Plan,_r.Final],Sr=(0,y.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_r.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isExperimental:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_EXPERIMENTAL"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e},shouldDisplaySuccessView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_SUCCESS_VIEW"===t.type||"DISABLE_SUCCESS_VIEW"!==t.type&&e}}),wr=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},Cr=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},xr=function(e){return{type:"SET_STEP",step:e}},kr=function(e){return{type:"SET_SITE_TITLE",title:e}},Pr=function(e){return{type:"SET_DOMAIN",domain:e}},Nr=function(){return{type:"UNSET_DOMAIN"}},Ar=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},Or=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},Tr=function(e){return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},Ir=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function Dr(e){return Tr(e)}var Lr=function(){return{type:"OPEN_SIDEBAR"}},Rr=function(){return{type:"CLOSE_SIDEBAR"}},Fr=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},jr=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},Mr=function(){return{type:"ENABLE_EXPERIMENTAL"}},Br=function(){return{type:"SHOW_SITE_TITLE_STEP"}},Ur=function(){return{type:"SET_MODAL_DISMISSIBLE"}},Vr=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},zr=function(){return{type:"SHOW_MODAL_TITLE"}},$r=function(){return{type:"HIDE_MODAL_TITLE"}},Hr=function(){return{type:"ENABLE_SUCCESS_VIEW"}},Gr=function(){return{type:"DISABLE_SUCCESS_VIEW"}},Wr=function(){return Er},qr=function(){return _r},Yr=function(e){return e},Kr=function(e){return!!e.domain&&!e.domain.is_free},Xr=function(e){return e.domain},Zr=function(e){return e.planProductId},Jr=function(e){return(0,y.select)(br).getPlanByProductId(e.planProductId)},Qr=function(e){var t=e.planProductId,n=(0,y.select)(br).isPlanProductFree(t);return t&&!n?e.planProductId:void 0},ei=function(e){return!!Xr(e)||e.confirmedDomainSelection},ti=function(e,t){if(t===_r.Plan)return!!Zr(e);if(t===_r.Name){var n=(0,y.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===_r.Domain&&(0,y.select)(yr).hasSelectedDomain()},ni=function(e){return Er.slice(0,Er.length-1).every((function(t){return ti(e,t)}))},ri=function(e){return Er.some((function(t){return ti(e,t)}))},ii=function(e){return Er.find((function(t){return!ti(e,t)}))},oi=function(e){return null==e?void 0:e.siteTitle},ai=function(e){return e.step};var ci,si,li,ui,di,pi,mi=(si=ci="WP_LAUNCH",li=ci+"_TS",ui={},di={getItem:function(e){return ui.hasOwnProperty(e)?ui[e]:null},setItem:function(e,t){ui[e]=String(t)},removeItem:function(e){delete ui[e]}},pi=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:di,{storageKey:si,storage:{getItem:function(e){var t=pi.getItem(li);return t&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(t)&&!new URLSearchParams(window.location.search).has("fresh")?pi.getItem(e):(pi.removeItem(si),pi.removeItem(li),null)},setItem:function(e,t){pi.setItem(li,JSON.stringify(Date.now())),pi.setItem(e,t)}}});(0,y.use)(y.plugins.persistence,mi);var fi=!1;var hi,gi=(hi={client_id:"",client_secret:""},ot||(ot=!0,(0,y.registerStore)(Y,{actions:Ve(hi),controls:Ue,reducer:ne,resolvers:r,selectors:i})),Y),vi=Zn(),yi=gr({vendor:"variation2_front"}),bi=(fi||(fi=!0,(0,y.registerStore)(yr,{actions:u,controls:vr.controls,reducer:Sr,selectors:d,persist:["domain","domainSearch","planProductId","confirmedDomainSelection","isExperimental","isSiteTitleStepVisible","shouldDisplaySuccessView"]})),yr);function _i(){var e=g.useContext(x).siteId,t=(0,y.useSelect)((function(t){return t(gi).getPrimarySiteDomain(e)}));return{sitePrimaryDomain:t,siteSubdomain:(0,y.useSelect)((function(t){return t(gi).getSiteSubdomain(e)})),hasPaidDomain:t&&!(null!=t&&t.is_subdomain)}}var Ei=(0,F.__)("Site Title","full-site-editing"),Si=function(e){var t=e.currentSiteTitle;return(void 0===t?"":t)===Ei},wi=function(e){return""!==e&&!Si({currentSiteTitle:e})},Ci=function(e,t){return{product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}},xi=function(e,t){return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t}}},ki=function(e){return!!e.is_domain_registration},Pi=function(e){return[ut,dt,pt,mt,ft].indexOf(e.product_slug)>-1};function Ni(){var e=g.useContext(x),t=e.siteId,n=e.flow,r=e.openCheckout,i=(0,y.useSelect)((function(e){return e(bi).getState()})),o=i.planProductId,a=i.domain,c=(0,y.useSelect)((function(e){return e(vi).getPlanProductById(o)})),s=(0,y.useSelect)((function(e){return e(vi).getPlanByProductId(o)})),l=(0,y.useSelect)((function(e){return e(vi).isPlanEcommerce(null==s?void 0:s.periodAgnosticSlug)})),u=_i().siteSubdomain,d=(0,y.useDispatch)(gi),p=d.getCart,m=d.setCart;return{goToCheckout:function(){var e=ie()(regeneratorRuntime.mark((function e(){var i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a&&xi(a,n),o=c&&Ci(c,n),e.next=4,p(t);case 4:return s=e.sent,e.next=7,m(t,S()(S()({},s),{},{products:[o,i]}));case 7:r((null==u?void 0:u.domain)||t.toString(),l);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}function Ai(){var e,t,n=g.useContext(x).siteId,r=(0,y.useSelect)((function(e){return e(gi).getSite(n)})),i=(0,y.useSelect)((function(e){return e(gi).isSiteLaunched(n)})),o=(0,y.useSelect)((function(e){return e(gi).isSiteLaunching(n)})),a=(0,y.useSelect)((function(e){return e(gi).isFetchingSiteDetails()}));return{sitePlan:null==r?void 0:r.plan,isPaidPlan:r&&!(null!==(e=r.plan)&&void 0!==e&&e.is_free),isSiteLaunched:i,isSiteLaunching:o,selectedFeatures:null==r||null===(t=r.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!a}}var Oi=function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h1":r;return g.createElement(i,{className:R()("onboarding-title",t)},n)},Ti=function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h2":r;return g.createElement(i,{className:R()("onboarding-subtitle",t)},n)},Ii={__:F.__,_n:F._n,_nx:F._nx,_x:F._x,isRTL:F.isRTL,setLocaleData:F.setLocaleData},Di=g.createContext(Fi()),Li=function(){return g.useContext(Di)};(0,N.createHigherOrderComponent)((function(e){return function(t){var n=Li();return(0,h.createElement)(e,P()({},n,t))}}),"withI18n");function Ri(e,t,n){var r=e[t],i=n.hasFilter,o=n.applyFilters;return i("preTranslation")||i("postTranslation")?function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var c=o("preTranslation",i,t,n);return o("postTranslation",r.apply(void 0,Xt()(c)),c,t,n)}:r}function Fi(e,t){var n=e?(0,F.createI18n)(e):Ii,r=e?function(t,n){return function(e,t,n){return("string"==typeof n?"".concat(n,"",t):t)in e}(e,t,n)}:void 0,i=null!=t?t:(0,_.createHooks)(),o=i.addFilter,a=i.removeFilter,c={addFilter:o,removeFilter:a,hasFilter:i.hasFilter,applyFilters:i.applyFilters};return{__:Ri(n,"__",c),_n:Ri(n,"_n",c),_nx:Ri(n,"_nx",c),_x:Ri(n,"_x",c),isRTL:n.isRTL,localeData:e,hasTranslation:r,addFilter:o,removeFilter:a}}var ji=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Mi=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Bi=function(e){var t=e.className,n=e.children,r=e.sticky,i=void 0===r?null:r,o="";return!0===i&&(o="is-sticky"),!1===i&&(o="no-sticky"),(0,h.createElement)("div",{className:R()("action-buttons",t,o)},n)},Ui=function(e){var t=e.className,n=e.children,r=X()(e,["className","children"]),__=Li().__;return(0,h.createElement)(j.Button,P()({className:R()("action_buttons__button action-buttons__back",t),isLink:!0},r),n||__("Go back","full-site-editing"))},Vi=function(e){var t=e.className,n=e.children,r=X()(e,["className","children"]),__=Li().__;return(0,h.createElement)(j.Button,P()({className:R()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||__("Continue","full-site-editing"))},zi=function(e){var t=e.className,n=e.children,r=e.arrow,i=void 0===r?"right":r,o=X()(e,["className","children","arrow"]);return(0,h.createElement)(j.Button,P()({className:R()("action_buttons__button action-buttons__arrow action-buttons__arrow--".concat(i),t)},o),"left"===i&&(0,h.createElement)(H,{icon:ji}),n,"right"===i&&(0,h.createElement)(H,{icon:Mi}))},$i=function(e){var t=e.children;return(0,h.createElement)(h.Fragment,null,t)};function Hi(e,t,n){void 0===n&&(n={});var r=n.maxWait,i=(0,g.useRef)(null),o=(0,g.useRef)([]),a=n.leading,c=(0,g.useRef)(!1),s=(0,g.useRef)(null),l=(0,g.useRef)(!1),u=(0,g.useRef)(e);u.current=e;var d=(0,g.useCallback)((function(){clearTimeout(s.current),clearTimeout(i.current),i.current=null,o.current=[],s.current=null,c.current=!1}),[]);(0,g.useEffect)((function(){return function(){l.current=!0}}),[]);return[(0,g.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(o.current=e,clearTimeout(s.current),!s.current&&a&&!c.current)return u.current.apply(u,e),void(c.current=!0);s.current=setTimeout((function(){d(),l.current||u.current.apply(u,e)}),t),r&&!i.current&&(i.current=setTimeout((function(){var e=o.current;d(),l.current||u.current.apply(null,e)}),r))}),[r,t,d,a]),d,function(){s.current&&(u.current.apply(null,o.current),d())}]}function Gi(){var e=(0,g.useContext)(x).siteId,t=(0,y.useSelect)((function(t){return t(gi).getSiteTitle(e)})),n=(0,y.useSelect)((function(e){return e(bi)})).getSiteTitle(),r=(0,y.useDispatch)(bi).setSiteTitle,i=Hi((0,y.useDispatch)(gi).saveSiteTitle,1e3),o=D()(i,1)[0],a=void 0===n;return(0,g.useEffect)((function(){a||o(e,n)}),[n,o,e,a]),{title:a?t:n,updateTitle:r}}var Wi=function(e){var t=e.onPrevStep,n=e.onNextStep,r=Gi(),i=r.title,o=r.updateTitle,a=function(){null==n||n()};return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Name your site","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Pick a name for your site.","full-site-editing"))),(0,h.createElement)(Bi,{sticky:!1},(0,h.createElement)(Vi,{onClick:a,disabled:!(null!=i&&i.trim())}))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)("form",{onSubmit:a},(0,h.createElement)(j.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:o,value:i||"",spellCheck:!1,autoComplete:"off",placeholder:(0,F.__)("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,h.createElement)("div",{className:"nux-launch-step__input-hint"},(0,h.createElement)(j.Tip,{size:18}),(0,h.createElement)("span",null,(0,F.__)("Don't worry, you can change it later.","full-site-editing"))))),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==t||t()}}),(0,h.createElement)(Vi,{onClick:a,disabled:!(null!=i&&i.trim())}))))},qi=window.lodash,Yi=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),Ki=ye()("calypso:analytics");n(8032);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(3421);var Xi=ye()("lib/load-script/callback-handler"),Zi=new Map;function Ji(){return Zi}function Qi(e){return Ji().has(e)}function eo(e,t){var n=Ji();Qi(e)?(Xi('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(Xi('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function to(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ji(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));Xi(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function no(){var e=this.getAttribute("src");Xi('Handling successful request for "'.concat(e,'"')),to(e),this.onload=null}function ro(){var e=this.getAttribute("src");Xi('Handling failed request for "'.concat(e,'"')),to(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var io=ye()("lib/load-script/dom-operations");ye()("package/load-script");function oo(e,t){var n;if(!Qi(e)&&(n=function(e){io('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=no,t.onerror=ro,t}(e),io("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){eo(e,(function(e){null===e?t():n(e)}))}));eo(e,t)}var ao,co=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function so(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&oo("//stats.wp.com/w2.js?1");var lo=new cn.EventEmitter;function uo(e,t){if(Ki('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,qi.includes)(co,e)){if(ao){var n=ao(t);t=S()(S()({},t),n)}t=(0,qi.omitBy)(t,qi.isUndefined),Ki('Recording event "%s" with actual props %o',e,t),so(["recordEvent",e,t]),lo.emit("record-event",e,t)}else Ki('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var po="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),mo=new Uint8Array(16);function fo(){if(!po)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return po(mo)}for(var ho=[],go=0;go<256;++go)ho[go]=(go+256).toString(16).substr(1);var vo=function(e,t){var n=t||0,r=ho;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var yo=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||fo)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||vo(i)};var bo=["en","ja","es","pt","fr","pt-br"],_o={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},Eo=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],So=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],wo="http://__domain__.invalid",Co=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(_o[r]||r,".").concat(e)),n}},xo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,i){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=(_o[i]||i)+r.pathname),r}},ko=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=(_o[r]||r)+n.pathname),n}},Po={"wordpress.com/support/":ko(Eo),"wordpress.com/blog/":ko(bo,/^\/blog\/?$/),"wordpress.com/tos/":Co("wordpress.com",So),"jetpack.com":Co("jetpack.com",["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]),"en.support.wordpress.com":xo("/support",Eo),"en.blog.wordpress.com":xo("/blog",bo,/^\/$/),"en.forums.wordpress.com":Co("forums.wordpress.com",["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"]),"automattic.com/privacy/":ko(["en","fr","de"]),"automattic.com/cookies/":ko(["en","fr","de"]),"wordpress.com/help/contact/":function(e,t,n){return n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),ko(Eo)(e,t))},"wordpress.com":Co("wordpress.com",So)};function No(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(e),wo)}catch(a){return e}if(n.origin===wo)return e;if(n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/")),(!t||"en"===t)&&"en.wordpress.com"===n.host)return n.host="wordpress.com",n.href;"en.wordpress.com"===n.host&&(n.host="wordpress.com");for(var i=[n.host,n.host+n.pathname,n.host+n.pathname.substr(0,1+n.pathname.indexOf("/",1))],o=i.length-1;o>=0;o--)if(i[o]in Po)return Po[i[o]](n,t,r).href;return e}function Ao(){var e=T();return(0,g.useCallback)((function(t,n,r){return No(t,n||e,r)}),[e])}(0,N.createHigherOrderComponent)((function(e){return function(t){var n=Ao();return(0,h.createElement)(e,P()({localizeUrl:n},t))}}),"withLocalizeUrl");var Oo=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),To=function(e){var t=e.children,n=e.className,r=e.id,i=e.position,o=void 0===i?"bottom center":i,a=e.noArrow,c=void 0===a||a,s=(0,g.useState)(!1),l=D()(s,2),u=l[0],d=l[1];return(0,h.createElement)((function(e){return(0,h.createElement)(j.Button,e)}),{icon:Oo,onClick:function(e){d(!u),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},u&&(0,h.createElement)(j.Popover,{id:r,className:R()("info-tooltip__content",n),onClose:function(){d(!1)},position:o,noArrow:c},t))},Io="radio",Do="button",Lo="individual-item",Ro=g.forwardRef((function(e,t){var n=e.type,r=e.disabled,i=X()(e,["type","disabled"]);return"button"===n?(0,h.createElement)("div",i):(0,h.createElement)("button",P()({ref:t,disabled:r},i))})),Fo=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,o=e.railcarId,a=e.hstsRequired,c=void 0!==a&&a,s=e.isFree,l=void 0!==s&&s,u=e.isExistingSubdomain,d=void 0!==u&&u,p=e.isRecommended,m=void 0!==p&&p,f=e.onSelect,v=e.onRender,y=e.selected,b=e.type,_=void 0===b?Io:b,E=e.buttonRef,__=Li().__,S=Ao(),w=(0,N.useViewportMatch)("small","<"),C=n.indexOf("."),x=n.slice(0,C),k=n.slice(C),P=g.useState(),A=D()(P,2),O=A[0],T=A[1],I=g.useState(),L=D()(I,2),M=L[0],B=L[1],U=__(_===Lo?"Default":"Free","full-site-editing"),V=w?__("Included in paid plans","full-site-editing"):(0,h.createInterpolateElement)(__("<strong>First year included</strong> in paid plans","full-site-editing"),{strong:(0,h.createElement)("strong",null)}),z=_===Lo?V:__(w?"Free":"Included with annual plans","full-site-editing");g.useEffect((function(){n!==O&&M!==o&&o&&(v(),T(n),B(o))}),[n,O,M,o,v]);var $=function(){M&&function(e){uo("calypso_traintracks_interact",{railcar:e.railcarId,action:e.action})}({action:"domain_selected",railcarId:M}),f(n)};return(0,h.createElement)(Ro,{ref:E,type:_,key:x,className:R()("domain-picker__suggestion-item",{"is-free":l,"is-selected":y,"is-unavailable":t},"type-".concat(_)),onClick:"button"!==_?$:void 0,disabled:t},_===Io&&(r?(0,h.createElement)(j.Spinner,null):(0,h.createElement)("span",{className:R()("domain-picker__suggestion-radio-circle",{"is-checked":y,"is-unavailable":t})})),(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,h.createElement)("span",{className:R()("domain-picker__domain-wrapper",{"with-margin":!c})},(0,h.createElement)("span",{className:"domain-picker__domain-sub-domain"},x),(0,h.createElement)("span",{className:"domain-picker__domain-tld"},k)),m&&!t&&(0,h.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),c&&(0,h.createElement)(To,{position:w?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,h.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,h.createElement)("b",null,k),learn_more_link:(0,h.createElement)("a",{target:"_blank",rel:"noreferrer",href:S("https://wordpress.com/support/https-ssl")})}))),d&&_!==Lo&&(0,h.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,h.createElement)("div",{className:R()("domain-picker__price",{"is-paid":!l})},t&&__("Unavailable","full-site-editing"),l&&!t&&U,!l&&!t&&(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"domain-picker__price-cost"},(0,F.sprintf)(__("%s/year","full-site-editing"),i)),(0,h.createElement)("span",{className:"domain-picker__price-inclusive"}," ",z," "),(0,h.createElement)("span",{className:"domain-picker__price-renewal"},(0,F.sprintf)(__("Renews at: %s /year","full-site-editing"),i)))),_===Do&&(r?(0,h.createElement)(j.Spinner,null):(0,h.createElement)("div",{className:"domain-picker__action"},(0,h.createElement)(j.Button,{ref:E,isSecondary:!0,className:R()("domain-picker__suggestion-select-button",{"is-selected":y&&!t}),disabled:t,onClick:$},__(y&&!t?"Selected":"Select","full-site-editing")))))},jo=g.forwardRef((function(e,t){return(0,h.createElement)(Fo,P()({},e,{buttonRef:t}))})),Mo=function(e){var t=e.type;return(0,h.createElement)("div",{className:R()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,h.createElement)("div",{className:"domain-picker__price placeholder"}))},Bo=function(e){var t=e.onClick;return(0,h.createElement)("label",{className:"domain-picker__suggestion-item contains-link"},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,h.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},(0,F.__)("Already own a domain?","full-site-editing")),(0,h.createElement)("div",null,(0,h.createElement)("span",{className:"domain-picker__item-tip"},(0,F._x)("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,h.createElement)(zi,{arrow:"right",onClick:t},(0,F._x)("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))};function Uo(e,t){return e===t}function Vo(e,t,n){var r=n&&n.equalityFn?n.equalityFn:Uo,i=(0,g.useState)(e),o=i[0],a=i[1],c=Hi((0,g.useCallback)((function(e){return a(e)}),[]),t,n),s=c[0],l=c[1],u=(0,g.useRef)(e);return(0,g.useEffect)((function(){r(u.current,e)||(s(e),u.current=e)}),[e,s,r]),[o,l]}var zo=gr({vendor:"variation2_front"}),$o=["available","available_premium"];var Ho=(0,h.createElement)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,h.createElement)(G.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),Go=function(e){var t=e.onSelect,n=e.selected,__=Li().__,r=(0,h.useState)(!1),i=D()(r,2),o=i[0],a=i[1],c=function(e){a(!1),t(e)},s=(0,y.useSelect)((function(e){return e(zo).getCategories()}));return(0,h.createElement)("div",{className:R()("domain-categories",{"is-open":o})},(0,h.createElement)(j.Button,{className:"domain-categories__dropdown-button",onClick:function(){return a(!o)}},(0,h.createElement)("span",null,n||__("All Categories","full-site-editing")),(0,h.createElement)(H,{icon:Ho,size:16})),(0,h.createElement)("ul",{className:"domain-categories__item-group"},(0,h.createElement)("li",{className:R()("domain-categories__item",{"is-selected":!n})},(0,h.createElement)(j.Button,{onClick:function(){return c()}},__("View all","full-site-editing"))),s.map((function(e){var t=e.slug,r=e.title;return(0,h.createElement)("li",{key:t,className:R()("domain-categories__item",{"is-selected":t===n})},(0,h.createElement)(j.Button,{onClick:function(){return c(t)}},r))}))))},Wo=function(){var e=Li(),__=e.__,t=e.isRTL;return(0,h.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},(0,h.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,h.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,h.createElement)("tspan",{fill:"#999"},(0,h.createElement)("tspan",null,"https://")),(0,h.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))},qo=function(e){var t=e.groupItems,n=e.children;return t?(0,h.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,h.createElement)(g.Fragment,null,n)},Yo=function(e){var t=e.children;return(0,h.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)},Ko=function(e){var t,n=e.header,r=e.showDomainCategories,i=e.onDomainSelect,o=e.onExistingSubdomainSelect,a=e.quantity,c=void 0===a?5:a,s=e.quantityExpanded,l=void 0===s?10:s,u=e.onDomainSearchBlur,d=void 0===u?qi.noop:u,p=e.analyticsFlowId,m=e.analyticsUiAlgo,f=e.initialDomainSearch,b=void 0===f?"":f,_=e.onSetDomainSearch,E=void 0===_?qi.noop:_,S=e.currentDomain,w=e.isCheckingDomainAvailability,C=e.existingSubdomain,x=e.segregateFreeAndPaid,k=void 0!==x&&x,P=e.showSearchField,N=void 0===P||P,A=e.itemType,O=void 0===A?Io:A,T=e.locale,I=e.areDependenciesLoading,L=void 0!==I&&I,R=e.orderSubDomainsLast,F=void 0!==R&&R,M=e.onUseYourDomainClick,__=Li().__,B=__("Search for a domain","full-site-editing"),U=(0,g.useState)(!1),V=D()(U,2),z=V[0],$=V[1],G=(0,g.useState)(b),W=D()(G,2),q=W[0],Y=W[1],K=(0,g.useState)(),X=D()(K,2),Z=X[0],J=X[1],Q=(0,y.useSelect)((function(e){return e(zo).getDomainSuggestionVendor()})),ee=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",r=Vo(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",300),i=D()(r,1)[0],o=(0,y.useDispatch)(zo).invalidateResolutionForStoreSelector;return(0,y.useSelect)((function(r){if(i&&!(i.length<2)){var a=r(zo),c=a.getDomainSuggestions,s=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:c(i,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:e+1,locale:n,category_slug:t}),state:s(),errorMessage:l(),retryRequest:function(){o("__internalGetDomainSuggestions")}}}}),[i,t,e])}(q.trim(),l,Z,T)||{},te=ee.allDomainSuggestions,ne=ee.errorMessage,re=ee.state,ie=ee.retryRequest,oe=null==te?void 0:te.slice(C?1:0,z?l:c),ae=function(e,t,n){var r=g.useState(),i=D()(r,2),o=i[0],a=i[1],c=t&&Array.isArray(e)?[t].concat(Xt()(e)):e;if(g.useEffect((function(){var e=null==c?void 0:c.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=c&&c.length&&!e&&a(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==o?void 0:o.domain_name)}))))return o}(oe,C,S);ae&&(null==oe||oe.push(ae));var ce=(0,y.useSelect)((function(e){return e(zo).getDomainAvailabilities()}),[]);(0,g.useEffect)((function(){$(!1)}),[q]);var se=(0,g.useState)(),le=D()(se,2),ue=le[0],de=le[1];(0,g.useEffect)((function(){te&&de(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat(yo().replace(/-/g,""),"-").concat(e)}("suggestion"))}),[te,de]),(0,g.useEffect)((function(){N||Y(b)}),[b,N]);var pe=v().useRef([]);(0,g.useEffect)((function(){var e,t;z&&(null===(e=pe.current[c])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[z,c]);var me=function(e,t,n,r){var i,o="/domains/search/".concat(Q,"/").concat(p).concat(Z?"/"+Z:"");uo("calypso_traintracks_render",{railcar:(i={uiAlgo:"/".concat(p,"/").concat(m),fetchAlgo:o,query:q,railcarId:t,result:r?e+"#recommended":e,uiPosition:n}).railcarId,ui_algo:i.uiAlgo,ui_position:i.uiPosition,fetch_algo:i.fetchAlgo,rec_result:i.result,fetch_query:i.query})},fe=re===Jn.Failure,he=(null===(t=q.trim)||void 0===t?void 0:t.call(q).length)<=1,ge=!fe&&!he,ve=!fe&&he,ye=c;ae&&(ye+=1),M&&(ye+=1),C&&(ye-=1);var be=["professional"];return C&&be.unshift("sub-domain"),F&&be.reverse(),(0,h.createElement)("div",{className:"domain-picker"},n&&n,N&&(0,h.createElement)("div",{className:"domain-picker__search"},(0,h.createElement)("div",{className:"domain-picker__search-icon"},(0,h.createElement)(H,{icon:Yi})),(0,h.createElement)(j.TextControl,{hideLabelFromVision:!0,label:B,placeholder:B,onChange:function(e){Y(e),E(e)},onBlur:function(e){d&&d(e.currentTarget.value)},value:q,dir:"ltr"})),fe&&(0,h.createElement)(j.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,h.createElement)("p",{className:"domain-picker__error-message"},ne||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,h.createElement)(j.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:ie},__("Retry","full-site-editing"))),(ge||L)&&(0,h.createElement)("div",{className:"domain-picker__body"},r&&(0,h.createElement)("div",{className:"domain-picker__aside"},(0,h.createElement)(Go,{selected:Z,onSelect:J})),(0,h.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,h.createElement)("div",{className:"domain-picker__sugggested-items-container"},be.map((function(e){return"sub-domain"===e?(0,h.createElement)(g.Fragment,{key:e},k&&(0,h.createElement)(Yo,null,__("Keep sub-domain","full-site-editing")),(0,h.createElement)(qo,{key:e,groupItems:k},!L&&C&&(0,h.createElement)(jo,{key:null==C?void 0:C.domain_name,domain:null==C?void 0:C.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:ue?"".concat(ue,0):void 0,onRender:function(){return me(null==C?void 0:C.domain_name,"".concat(ue,0),0,!1)},selected:(null==S?void 0:S.domain_name)===(null==C?void 0:C.domain_name),onSelect:function(){null==o||o(null==C?void 0:C.domain_name)},type:O})||(0,h.createElement)(Mo,{type:O}))):(0,h.createElement)(g.Fragment,{key:e},k&&(0,h.createElement)(Yo,null,__("Professional domains","full-site-editing")),(0,h.createElement)(qo,{key:e,groupItems:k},!L&&(null==oe?void 0:oe.map((function(e,t){var n,r=null!=C&&C.domain_name?t+1:t,o=1===r,a=null===(n=ce[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,c=!a||(null==$o?void 0:$o.indexOf(a))>-1;return(0,h.createElement)(jo,{ref:function(e){pe.current[r]=e},key:e.domain_name,isUnavailable:!c,domain:e.domain_name,cost:e.cost,isLoading:(null==S?void 0:S.domain_name)===e.domain_name&&w,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:o,railcarId:ue?"".concat(ue).concat(r):void 0,onRender:function(){return me(e.domain_name,"".concat(ue).concat(r),r,o)},onSelect:function(){i(e)},selected:(null==S?void 0:S.domain_name)===e.domain_name,type:O})})))||(0,qi.times)(ye,(function(e){return(0,h.createElement)(Mo,{type:O,key:e})})),M&&!!oe&&(0,h.createElement)(Bo,{onClick:M})))}))),!z&&c<l&&(null==te?void 0:te.length)&&(null==te?void 0:te.length)>c&&(0,h.createElement)("div",{className:"domain-picker__show-more"},(0,h.createElement)(j.Button,{onClick:function(){return $(!0)},isLink:!0},__("View more results","full-site-editing"))))),ve&&!L&&(0,h.createElement)("div",{className:"domain-picker__empty-state"},(0,h.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,h.createElement)("div",null,(0,h.createElement)(Wo,null))))};function Xo(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:""}}function Zo(){var e=function(){var e=g.useContext(x).siteId,t=(0,y.useDispatch)(gi).getCart,n=g.useState(void 0),r=D()(n,2),i=r[0],o=r[1];return g.useEffect((function(){ie()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return ki(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}(),t=null==e?void 0:e.meta;return(0,y.useSelect)((function(e){var n;return t?null===(n=e(yi).getDomainSuggestions(t,{quantity:1,include_wordpressdotcom:!1,include_dotblogsubdomain:!1}))||void 0===n?void 0:n[0]:void 0}))}function Jo(){var e,t=(0,y.useDispatch)(bi),n=t.setDomain,r=t.unsetDomain,i=t.unsetPlanProductId,o=t.confirmDomainSelection,a=(0,y.useSelect)((function(e){return e(bi).getState()})),c=a.domain,s=a.planProductId,l=a.confirmedDomainSelection,u=(0,y.useSelect)((function(e){return e(vi).isPlanProductFree(s)})),d=_i(),p=d.siteSubdomain,m=d.hasPaidDomain,f=d.sitePrimaryDomain;return c?e=c:m?e=Xo(null==f?void 0:f.domain):l&&(e=Xo(null==p?void 0:p.domain)),{onDomainSelect:function(e){o(),n(e),u&&i()},onExistingSubdomainSelect:function(){o(),r()},selectedDomain:c,currentDomain:e}}function Qo(){var e,t,n=(0,y.useSelect)((function(e){return e(bi).getState()})).domainSearch,r=Gi().title,i=Ai().isLoadingSite,o=_i().siteSubdomain,a=(0,y.useDispatch)(bi).setDomainSearch,c=n.trim()||r;c&&!Si({currentSiteTitle:c})||(c=null!==(e=null==o||null===(t=o.domain)||void 0===t?void 0:t.split(".")[0])&&void 0!==e?e:"");return{domainSearch:c,isLoading:i,setDomainSearch:a}}var ea="gutenboarding",ta=function(e){var t=e.onPrevStep,n=e.onNextStep,r=Jo(),i=r.onDomainSelect,o=r.onExistingSubdomainSelect,a=r.currentDomain,c=_i().siteSubdomain,s=Qo(),l=s.domainSearch,u=s.setDomainSearch,d=(0,y.useDispatch)(f).confirmDomainSelection,p=function(){d(),null==n||n()};return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Choose a domain","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Free for the first year with any paid plan.","full-site-editing"))),(0,h.createElement)(Bi,{sticky:!1},(0,h.createElement)(Vi,{onClick:p,disabled:!l}))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(Ko,{analyticsFlowId:ea,initialDomainSearch:l,onSetDomainSearch:u,onDomainSearchBlur:function(e){uo("calypso_newsite_domain_search_blur",{flow:ea,query:e,where:"editor_domain_modal"})},currentDomain:a||Xo(null==c?void 0:c.domain),existingSubdomain:Xo(null==c?void 0:c.domain),onDomainSelect:i,onExistingSubdomainSelect:o,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:document.documentElement.lang})),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==t||t()}}),(0,h.createElement)(Vi,{onClick:p,disabled:!l}))))},na=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),ra=(0,h.createElement)(H,{icon:na,size:17}),ia=(0,h.createElement)(H,{icon:q,size:17}),oa=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var aa=function(e){var t=e.features,n=e.domain,r=e.isFree,i=void 0!==r&&r,o=e.isOpen,a=void 0!==o&&o,c=e.onPickDomain,s=e.disabledLabel,l=e.multiColumn,u=void 0!==l&&l,d=function(e,t,__){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:ra,domainMessage:(0,h.createElement)(h.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",oa)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:ra,domainMessage:(0,h.createElement)(h.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",oa)}},PAID_DOMAIN:{FREE_PLAN:{className:"plans-feature-list__domain-summary is-free",icon:ia,domainMessage:(0,h.createElement)("span",null,(0,h.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:(0,h.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{className:"plans-feature-list__domain-summary is-picked",icon:ra,domainMessage:(0,h.createElement)("span",null,(0,h.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:(0,h.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(i,n,Li().__);return(0,h.createElement)("div",{className:"plans-feature-list",hidden:!a},(0,h.createElement)("ul",{className:R()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":u})},s?(0,h.createElement)("li",{className:"plans-feature-list__item plans-feature-list__item--disabled-message"},ia," ",(0,h.createElement)("span",null,s)):d&&(0,h.createElement)("li",{className:"plans-feature-list__item"},(0,h.createElement)(j.Button,{className:d.className,onClick:c,isLink:!0},d.icon,d.domainMessage)),t.map((function(e,t){return(0,h.createElement)("li",{key:t,className:"plans-feature-list__item"},ra," ",(0,h.createElement)("span",null,e))}))))};var ca="automattic/wpcom-features",sa={domain:{id:"domain",minSupportedPlan:gt},store:{id:"store",minSupportedPlan:"Ecommerce"},seo:{id:"seo",minSupportedPlan:yt},plugins:{id:"plugins",minSupportedPlan:yt},"ad-free":{id:"ad-free",minSupportedPlan:gt},"image-storage":{id:"image-storage",minSupportedPlan:vt},"video-storage":{id:"video-storage",minSupportedPlan:vt},support:{id:"support",minSupportedPlan:yt}},la=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sa;return e},ua=function(e){return e},da=function(e,t){var n=ua(e);if(t.length)return t.reduce((function(e,t){var r=n[t].minSupportedPlan;return wt.indexOf(r)>wt.indexOf(e)?r:e}),n[t[0]].minSupportedPlan)},pa=!1;var ma=Zn(),fa=(pa||(pa=!0,(0,y.registerStore)(ca,{controls:vr.controls,reducer:la,selectors:p})),ca),ha=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),ga=function(e){var t=e.slug,n=e.name,r=e.tagline,i=e.isPopular,o=void 0!==i&&i,a=e.isFree,c=void 0!==a&&a,s=e.domain,l=e.features,u=e.onSelect,d=e.onPickDomainClick,p=e.onToggleExpandAll,m=e.allPlansExpanded,f=e.disabledLabel,v=e.CTAVariation,b=void 0===v?"NORMAL":v,_=e.popularBadgeVariation,E=void 0===_?"ON_TOP":_,__=Li().__,S=(0,y.useSelect)((function(e){return e(ma).getPlanProduct(t,"ANNUALLY")})),w=g.useState(!1),C=D()(w,2),x=C[0],k=C[1],P=(0,N.useViewportMatch)("mobile",">=");g.useEffect((function(){k(m)}),[m]);var A=m||P||o||x;return(0,h.createElement)("div",{className:R()("plan-item",{"is-popular":o,"is-open":A,"badge-next-to-name":"NEXT_TO_NAME"===E})},o&&"ON_TOP"===E&&(0,h.createElement)("span",{className:"plan-item__badge"},__("Popular","full-site-editing")),(0,h.createElement)("div",{className:R()("plan-item__viewport",{"is-popular":o})},(0,h.createElement)("div",{className:"plan-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",onClick:function(){return k((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&k((function(e){return!e}))},className:"plan-item__summary"},(0,h.createElement)("div",{className:R()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===E})},(0,h.createElement)("div",{className:"plan-item__name"},n),o&&"NEXT_TO_NAME"===E&&(0,h.createElement)("span",{className:"plan-item__badge-next-to-name"},__("Popular","full-site-editing"))),r&&(0,h.createElement)("p",{className:"plan-item__tagline"},r),(0,h.createElement)("div",{className:"plan-item__price"},(0,h.createElement)("div",{className:R()("plan-item__price-amount",{"is-loading":!(null!=S&&S.price)})},(null==S?void 0:S.price)||" ")),!A&&(0,h.createElement)("div",{className:"plan-item__dropdown-chevron"},ha)),(0,h.createElement)("div",{hidden:!A},(0,h.createElement)("div",{className:"plan-item__price-note"},__(c?"free forever":"per month, billed yearly","full-site-editing")),(0,h.createElement)("div",{className:"plan-item__actions"},"NORMAL"===b?(0,h.createElement)(j.Button,{className:"plan-item__select-button",onClick:function(){u(null==S?void 0:S.productId)},isPrimary:!0,disabled:!!f},(0,h.createElement)("span",null,__(f||"Choose","full-site-editing"))):(0,h.createElement)(j.Button,{className:"plan-item__select-button full-width",onClick:function(){u(null==S?void 0:S.productId)},isPrimary:o,disabled:!!f},(0,h.createElement)("span",null,f?__(f,"full-site-editing"):(0,F.sprintf)(__("Select %s","full-site-editing"),n)))),(0,h.createElement)(aa,{features:l,domain:s,isFree:c,isOpen:A,onPickDomain:d,disabledLabel:f&&(0,F.sprintf)(__("%s is not included","full-site-editing"),null==s?void 0:s.domain_name)})))),o&&!P&&(0,h.createElement)(j.Button,{onClick:p,className:"plan-item__mobile-expand-all-plans",isLink:!0},__(m?"Collapse all plans":"Expand all plans","full-site-editing")))},va=function(e){var t=e.selectedPlanProductId,n=e.onPlanSelect,r=e.onPickDomainClick,i=e.currentDomain,o=e.disabledPlans,a=e.locale,c=e.showTaglines,s=void 0!==c&&c,l=e.CTAVariation,u=void 0===l?"NORMAL":l,d=e.popularBadgeVariation,p=void 0===d?"ON_TOP":d,m=e.customTagLines,f=e.defaultAllPlansExpanded,v=void 0!==f&&f,b=(0,y.useSelect)((function(e){return e(ma).getSupportedPlans(a)})),_=(0,g.useState)(v),E=D()(_,2),S=E[0],w=E[1];return(0,h.createElement)("div",{className:"plans-table"},b.map((function(e){var a,c;return e&&(0,h.createElement)(ga,{popularBadgeVariation:p,allPlansExpanded:S,key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,domain:i,tagline:null!==(a=s&&(null==m?void 0:m[e.periodAgnosticSlug]))&&void 0!==a?a:e.description,CTAVariation:u,features:null!==(c=e.features)&&void 0!==c?c:[],isPopular:e.isPopular,isFree:e.isFree,name:null==e?void 0:e.title.toString(),isSelected:e.productIds.indexOf(t)>-1,onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return w((function(e){return!e}))},disabledLabel:null==o?void 0:o[e.periodAgnosticSlug]})})))},ya=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),ba=function(e){var t=e.slug,n=e.name,r=e.description,i=e.features,o=e.domain,a=e.badge,c=e.isFree,s=void 0!==c&&c,l=e.isOpen,u=void 0!==l&&l,d=e.isPrimary,p=void 0!==d&&d,m=e.onSelect,f=e.onPickDomainClick,g=e.onToggle,v=e.disabledLabel,__=Li().__,b=(0,y.useSelect)((function(e){return e(br).getPlanProduct(t,"ANNUALLY")})),_=function(){!v&&(null==g||g(t,!u))};return(0,h.createElement)("div",{className:R()("plans-accordion-item",{"is-open":u,"is-primary":p,"has-badge":!!a,"is-disabled":!!v})},a&&(0,h.createElement)("div",{className:"plans-accordion-item__badge"},(0,h.createElement)("span",null,a)),(0,h.createElement)("div",{className:"plans-accordion-item__viewport"},(0,h.createElement)("div",{className:"plans-accordion-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",onClick:_,onKeyDown:function(e){return 32===e.keyCode&&_()},className:"plans-accordion-item__header"},(0,h.createElement)("div",{className:"plans-accordion-item__heading"},(0,h.createElement)("div",{className:"plans-accordion-item__name"},n),(0,h.createElement)("div",{className:"plans-accordion-item__description"},r)),(0,h.createElement)("div",{className:"plans-accordion-item__price"},(0,h.createElement)("div",{className:R()("plans-accordion-item__price-amount",{"is-loading":!(null!=b&&b.price)})},(null==b?void 0:b.price)||" ",(null==b?void 0:b.price)&&(0,h.createElement)("span",null,__("/mo","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion-item__price-note"},__(s?"free forever":"billed annually","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion-item__disabled-label"},v),!u&&(0,h.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},ya)),(0,h.createElement)("div",{className:"plans-accordion-item__actions",hidden:!u},(0,h.createElement)(Vi,{"data-e2e-button":s?"freePlan":"paidPlan",onClick:function(){m(null==b?void 0:b.productId)}},__("Select","full-site-editing"))),(0,h.createElement)(aa,{features:i,domain:o,isFree:s,isOpen:u,onPickDomain:f,multiColumn:!0}))))},_a=function(e){var t=e.isOpen,n=void 0!==t&&t,r=e.multiColumn,i=void 0!==r&&r,o=Array.from(Array(10).keys());return(0,h.createElement)("div",{className:"plans-feature-list",hidden:!n},(0,h.createElement)("ul",{className:R()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":i})},o.map((function(e){return(0,h.createElement)("li",{key:e,className:"plans-feature-list__item"},(0,h.createElement)("span",{className:"plans-feature-list__placeholder"},""))}))))},Ea=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),Sa=function(e){var t=e.isOpen,n=e.isPrimary;return(0,h.createElement)("div",{className:R()("plans-accordion-item",{"is-open":t,"is-primary":n})},(0,h.createElement)("div",{className:"plans-accordion-item__viewport"},(0,h.createElement)("div",{className:"plans-accordion-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},(0,h.createElement)("div",{className:"plans-accordion-item__heading"},(0,h.createElement)("div",{className:"plans-accordion-item__name"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,h.createElement)("div",{className:"plans-accordion-item__description"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,h.createElement)("div",{className:"plans-accordion-item__price"},(0,h.createElement)("div",{className:"plans-accordion-item__price-amount"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,h.createElement)("div",{className:"plans-accordion-item__price-note"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,h.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!t&&(0,h.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},Ea)),(0,h.createElement)("div",{className:"plans-accordion-item__actions",hidden:!t},(0,h.createElement)(Vi,{disabled:!0},(0,h.createElement)("span",null,""))),(0,h.createElement)(_a,{isOpen:t,multiColumn:!0}))))},wa=(0,h.createElement)(j.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(j.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Ca=function(e){var t,n=e.selectedFeatures,r=void 0===n?[]:n,i=e.selectedPlanProductId,o=e.onPlanSelect,a=e.onPickDomainClick,c=e.currentDomain,s=e.disabledPlans,l=e.locale,__=Li().__,u=(0,y.useSelect)((function(e){return e(ma).getSupportedPlans(l)})),d=!(null!=u&&u.length),p=(0,y.useSelect)((function(e){return e(ma).getDefaultPaidPlan(l)})),m=(0,y.useSelect)((function(e){return e(fa).getRecommendedPlanSlug(r)})),f=(0,y.useSelect)((function(e){return e(ma).getPlanByPeriodAgnosticSlug(m)})),v=f||p,b=__(f?"Recommended for you":"Popular","full-site-editing"),_=u.filter((function(e){return e.periodAgnosticSlug!==(null==v?void 0:v.periodAgnosticSlug)})),E=[null==v?void 0:v.periodAgnosticSlug],S=(0,g.useState)(E),w=D()(S,2),C=w[0],x=w[1],k=!d&&C.length>=u.length,P=function(e,t){x(t?[].concat(Xt()(C),[e]):C.filter((function(t){return t!==e})))};return(0,h.createElement)("div",{className:"plans-accordion"},(0,h.createElement)("div",{className:"plans-accordion__plan-item-group"},d?(0,h.createElement)(Sa,{isOpen:!0,isPrimary:!0}):v&&(0,h.createElement)(h.Fragment,null,f&&(0,h.createElement)("div",{className:"plans-accordion__recommend-hint"},(0,h.createElement)(H,{icon:wa,size:16}),(0,h.createElement)("span",null,__("Based on the features you selected.","full-site-editing"))),(0,h.createElement)(ba,{key:v.periodAgnosticSlug,slug:v.periodAgnosticSlug,name:null==v?void 0:v.title.toString(),description:null==v?void 0:v.description.toString(),features:null!==(t=v.features)&&void 0!==t?t:[],domain:c,badge:b,isFree:v.isFree,isOpen:!0,isPrimary:!0,isSelected:!!i&&v.productIds.indexOf(i)>-1,onSelect:o,onPickDomainClick:a}))),(0,h.createElement)("div",{className:"plans-accordion__actions"},(0,h.createElement)(j.Button,{className:"plans-accordion__toggle-all-button",onClick:function(){x(k?E:u.map((function(e){return e.periodAgnosticSlug})))},isLink:!0},__(k?"Collapse all plans":"Show all plans","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion__plan-item-group"},d?[1,2,3,4].map((function(e){return(0,h.createElement)(Sa,{key:e})})):_.map((function(e){var t;return(0,h.createElement)(ba,{key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:null!==(t=e.features)&&void 0!==t?t:[],domain:c,isFree:e.isFree,isOpen:C.indexOf(e.periodAgnosticSlug)>-1&&!(null!=s&&s[e.periodAgnosticSlug]),isSelected:e.productIds.indexOf(i)>-1,onSelect:o,onPickDomainClick:a,onToggle:P,disabledLabel:null==s?void 0:s[e.periodAgnosticSlug]})}))))},xa=(0,h.createElement)(H,{icon:na,size:25}),ka=function(e){var t=e.onSelect,n=e.locale,__=Li().__,r=(0,y.useSelect)((function(e){return e(ma).getFeatures()})),i=(0,y.useSelect)((function(e){return e(ma).getFeaturesByType()})),o=(0,y.useSelect)((function(e){return e(ma).getSupportedPlans(n)})),a=(0,y.useSelect)((function(e){return o.map((function(t){return e(ma).getPlanProduct(t.periodAgnosticSlug,"ANNUALLY")}))})),c=!(null!=o&&o.length),s=[1,2,3,4,5];return(0,h.createElement)("div",{className:"plans-details"},(0,h.createElement)("table",{className:"plans-details__table"},(0,h.createElement)("thead",null,(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",null,__("Feature","full-site-editing")),c?s.map((function(e){return(0,h.createElement)("th",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder"},""))})):o.map((function(e){return(0,h.createElement)("th",{key:e.periodAgnosticSlug},e.title)})))),c?(0,h.createElement)("tbody",null,s.map((function(e,t){return(0,h.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,h.createElement)("th",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),s.map((function(e){return(0,h.createElement)("td",{key:e})})))}))):i.map((function(e){var t;return(0,h.createElement)("tbody",{key:e.id},e.name&&(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map((function(e,t){return(0,h.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,h.createElement)("th",null,r[e].name),o.map((function(t,n){var r;return"storage"===e?(0,h.createElement)("td",{key:n},t.storage):(0,h.createElement)("td",{key:n},null!==(r=t.featuresSlugs)&&void 0!==r&&r[e]?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"hidden"},__("Available","full-site-editing")),xa):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing"))))})))})))})),(0,h.createElement)("tbody",null,(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",{colSpan:6},__("Sign up","full-site-editing"))),(0,h.createElement)("tr",{className:"plans-details__feature-row",key:"price"},(0,h.createElement)("th",null,__("Monthly subscription (billed yearly)","full-site-editing")),c?s.map((function(e){return(0,h.createElement)("td",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder"},""))})):o.map((function(e,t){var n;return(0,h.createElement)("td",{key:e.periodAgnosticSlug},null===(n=a[t])||void 0===n?void 0:n.price)}))),(0,h.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},(0,h.createElement)("th",null),c?s.map((function(e){return(0,h.createElement)("td",{key:e},(0,h.createElement)(j.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},(0,h.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," ")})):o.map((function(e,n){return(0,h.createElement)("td",{key:e.periodAgnosticSlug},(0,h.createElement)(j.Button,{className:"plans-details__select-button",onClick:function(){var e;t(null===(e=a[n])||void 0===e?void 0:e.productId)},isPrimary:!0},(0,h.createElement)("span",null,__("Select","full-site-editing"))))}))))))},Pa=ye()("plans-grid"),Na=function(e){var t=e.header,n=e.selectedFeatures,r=e.currentPlanProductId,i=e.currentDomain,o=e.onPlanSelect,a=e.onPickDomainClick,c=e.disabledPlans,s=e.isAccordion,l=e.locale,u=e.showPlanTaglines,d=void 0!==u&&u,p=e.CTAVariation,m=void 0===p?"NORMAL":p,f=e.popularBadgeVariation,g=void 0===f?"ON_TOP":f,v=e.customTagLines,y=e.hidePlansComparison,b=void 0!==y&&y,_=e.defaultAllPlansExpanded,E=void 0!==_&&_,__=Li().__;return s&&Pa("PlansGrid accordion version is active"),(0,h.createElement)("div",{className:"plans-grid"},t&&(0,h.createElement)("div",{className:"plans-grid__header"},t),(0,h.createElement)("div",{className:"plans-grid__table"},(0,h.createElement)("div",{className:"plans-grid__table-container"},s?(0,h.createElement)(Ca,{selectedFeatures:n,selectedPlanProductId:r,onPlanSelect:o,currentDomain:i,onPickDomainClick:a,disabledPlans:c,locale:l}):(0,h.createElement)(va,{popularBadgeVariation:g,CTAVariation:m,selectedPlanProductId:r,onPlanSelect:o,customTagLines:v,currentDomain:i,onPickDomainClick:a,disabledPlans:c,locale:l,showTaglines:d,defaultAllPlansExpanded:E}))),!b&&(0,h.createElement)("div",{className:"plans-grid__details"},(0,h.createElement)("div",{className:"plans-grid__details-heading"},(0,h.createElement)(Oi,{tagName:"h2"},__("Detailed comparison","full-site-editing"))),(0,h.createElement)("div",{className:"plans-grid__details-container"},(0,h.createElement)(ka,{onSelect:o,locale:l}))))},Aa=function(e){var t,n=e.onPrevStep,r=e.onNextStep,i=(0,y.useSelect)((function(e){var t=e(f);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),o=i.domain,a=i.LaunchStep,c=i.selectedPlanProductId,s=(0,y.useDispatch)(f),l=s.setPlanProductId,u=s.setStep,d=Ai().selectedFeatures,p=o&&!o.is_free;return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Select a plan","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.sprintf)((0,F.__)("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14)))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(Na,{currentPlanProductId:c,currentDomain:o,onPlanSelect:function(e){l(e),null==r||r()},onPickDomainClick:function(){u(a.Domain)},disabledPlans:p?{Free:(0,F.__)("Unavailable with domain","full-site-editing")}:void 0,isAccordion:!0,selectedFeatures:d,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==n||n()}}))))};function Oa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ta=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Ia=function(e){function t(e,r,s,l,p){for(var m,f,h,g,_,S=0,w=0,C=0,x=0,k=0,I=0,L=h=m=0,F=0,j=0,M=0,B=0,U=s.length,V=U-1,z="",$="",H="",G="";F<U;){if(f=s.charCodeAt(F),F===V&&0!==w+x+C+S&&(0!==w&&(f=47===w?10:47),x=C=S=0,U++,V++),0===w+x+C+S){if(F===V&&(0<j&&(z=z.replace(d,"")),0<z.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:z+=s.charAt(F)}f=59}switch(f){case 123:for(m=(z=z.trim()).charCodeAt(0),h=1,B=++F;F<U;){switch(f=s.charCodeAt(F)){case 123:h++;break;case 125:h--;break;case 47:switch(f=s.charCodeAt(F+1)){case 42:case 47:e:{for(L=F+1;L<V;++L)switch(s.charCodeAt(L)){case 47:if(42===f&&42===s.charCodeAt(L-1)&&F+2!==L){F=L+1;break e}break;case 10:if(47===f){F=L+1;break e}}F=L}}break;case 91:f++;case 40:f++;case 34:case 39:for(;F++<V&&s.charCodeAt(F)!==f;);}if(0===h)break;F++}switch(h=s.substring(B,F),0===m&&(m=(z=z.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<j&&(z=z.replace(d,"")),f=z.charCodeAt(1)){case 100:case 109:case 115:case 45:j=r;break;default:j=T}if(B=(h=t(r,j,h,f,p+1)).length,0<D&&(_=c(3,h,j=n(T,z,M),r,N,P,B,f,p,l),z=j.join(""),void 0!==_&&0===(B=(h=_.trim()).length)&&(f=0,h="")),0<B)switch(f){case 115:z=z.replace(E,a);case 100:case 109:case 45:h=z+"{"+h+"}";break;case 107:h=(z=z.replace(v,"$1 $2"))+"{"+h+"}",h=1===O||2===O&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=z+h,112===l&&($+=h,h="")}else h="";break;default:h=t(r,n(r,z,M),h,l,p+1)}H+=h,h=M=j=L=m=0,z="",f=s.charCodeAt(++F);break;case 125:case 59:if(1<(B=(z=(0<j?z.replace(d,""):z).trim()).length))switch(0===L&&(m=z.charCodeAt(0),45===m||96<m&&123>m)&&(B=(z=z.replace(" ",":")).length),0<D&&void 0!==(_=c(1,z,r,e,N,P,$.length,l,p,l))&&0===(B=(z=_.trim()).length)&&(z="\0\0"),m=z.charCodeAt(0),f=z.charCodeAt(1),m){case 0:break;case 64:if(105===f||99===f){G+=z+s.charAt(F);break}default:58!==z.charCodeAt(B-1)&&($+=i(z,m,f,z.charCodeAt(2)))}M=j=L=m=0,z="",f=s.charCodeAt(++F)}}switch(f){case 13:case 10:47===w?w=0:0===1+m&&107!==l&&0<z.length&&(j=1,z+="\0"),0<D*R&&c(0,z,r,e,N,P,$.length,l,p,l),P=1,N++;break;case 59:case 125:if(0===w+x+C+S){P++;break}default:switch(P++,g=s.charAt(F),f){case 9:case 32:if(0===x+S+w)switch(k){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===x+w+S&&(j=M=1,g="\f"+g);break;case 108:if(0===x+w+S+A&&0<L)switch(F-L){case 2:112===k&&58===s.charCodeAt(F-3)&&(A=k);case 8:111===I&&(A=I)}break;case 58:0===x+w+S&&(L=F);break;case 44:0===w+C+x+S&&(j=1,g+="\r");break;case 34:case 39:0===w&&(x=x===f?0:0===x?f:x);break;case 91:0===x+w+C&&S++;break;case 93:0===x+w+C&&S--;break;case 41:0===x+w+S&&C--;break;case 40:if(0===x+w+S){if(0===m)switch(2*k+3*I){case 533:break;default:m=1}C++}break;case 64:0===w+C+x+S+L+h&&(h=1);break;case 42:case 47:if(!(0<x+S+C))switch(w){case 0:switch(2*f+3*s.charCodeAt(F+1)){case 235:w=47;break;case 220:B=F,w=42}break;case 42:47===f&&42===k&&B+2!==F&&(33===s.charCodeAt(B+2)&&($+=s.substring(B,F+1)),g="",w=0)}}0===w&&(z+=g)}I=k,k=f,F++}if(0<(B=$.length)){if(j=r,0<D&&(void 0!==(_=c(2,$,j,e,N,P,B,l,p,l))&&0===($=_).length))return G+$+H;if($=j.join(",")+"{"+$+"}",0!=O*A){switch(2!==O||o($,2)||(A=0),A){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(y,"::-webkit-input-$1")+$.replace(y,"::-moz-$1")+$.replace(y,":-ms-input-$1")+$}A=0}}return G+$+H}function n(e,t,n){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<o;++c)t[c]=r(e,t[c],n).trim();break;default:var s=c=0;for(t=[];c<o;++c)for(var l=0;l<a;++l)t[s++]=r(e[l]+" ",i[c],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",c=2*t+3*n+4*r;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===O||2===O&&o(s,1)?"-webkit-"+s+s:s}if(0===O||2===O&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return m.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(_,"tb");break;case 232:s=a.replace(_,"tb-rl");break;case 220:s=a.replace(_,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),L(2!==t?r:r.replace(C,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function c(e,t,n,r,i,o,a,c,s,u){for(var d,p=0,m=t;p<D;++p)switch(d=I[p].call(l,e,m,n,r,i,o,a,c,s,u)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(L=null,e?"function"!=typeof e?O=1:(O=2,L=e):O=0),s}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var i=c(-1,n,r,r,N,P,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(T,r,n,0,0);return 0<D&&(void 0!==(i=c(-2,o,r,r,N,P,o.length,0,0,0))&&(o=i)),"",A=0,P=N=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,m=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,_=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,w=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,P=1,N=1,A=0,O=1,T=[],I=[],D=0,L=null,R=0;return l.use=function e(t){switch(t){case void 0:case null:D=I.length=0;break;default:if("function"==typeof t)I[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},l.set=s,void 0!==e&&s(e),l},Da="/*|*/";function La(e){e&&Ra.current.insert(e+"}")}var Ra={current:null},Fa=function(e,t,n,r,i,o,a,c,s,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Ra.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+Da;break;case 3:switch(c){case 102:case 112:return Ra.current.insert(n[0]+t),"";default:return t+(0===l?Da:"")}case-2:t.split("/*|*/}").forEach(La)}},ja=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Ia(t);var i,o={};i=e.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(Fa),a=function(e,t,n,i){var o=t.name;Ra.current=n,r(e,t.styles),i&&(s.inserted[o]=!0)};var s={key:n,sheet:new Ta({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:a};return s},Ma=n(7111),Ba=n.n(Ma);var Ua=function(e){for(var t,n=e.length,r=n^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},Va={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var za=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},$a=/[A-Z]|^ms/g,Ha=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ga=function(e){return 45===e.charCodeAt(1)},Wa=function(e){return null!=e&&"boolean"!=typeof e},qa=za((function(e){return Ga(e)?e:e.replace($a,"-$&").toLowerCase()})),Ya=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ha,(function(e,t,n){return Xa={name:t,styles:n,next:Xa},t}))}return 1===Va[e]||Ga(e)||"number"!=typeof t||0===t?t:t+"px"};function Ka(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Xa={name:n.name,styles:n.styles,next:Xa},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)Xa={name:i.name,styles:i.styles,next:Xa},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ka(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":Wa(a)&&(r+=qa(o)+":"+Ya(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=Ka(e,t,a,!1);switch(o){case"animation":case"animationName":r+=qa(o)+":"+c+";";break;default:r+=o+"{"+c+"}"}}else for(var s=0;s<a.length;s++)Wa(a[s])&&(r+=qa(o)+":"+Ya(o,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Xa,a=n(e);return Xa=o,Ka(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var Xa,Za=/label:\s*([^\s;\n{]+)\s*;/g;var Ja=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Xa=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Ka(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=Ka(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);Za.lastIndex=0;for(var c,s="";null!==(c=Za.exec(i));)s+="-"+c[1];return{name:Ua(i)+s,styles:i,next:Xa}},Qa=(Object.prototype.hasOwnProperty,(0,g.createContext)("undefined"!=typeof HTMLElement?ja():null)),ec=(0,g.createContext)({}),tc=(Qa.Provider,function(e){var t=function(t,n){return(0,g.createElement)(Qa.Consumer,null,(function(r){return e(t,r,n)}))};return(0,g.forwardRef)(t)});function nc(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var rc=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}};g.Component;var ic=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var c in a="",o)o[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function oc(e,t,n){var r=[],i=nc(e,r,n);return r.length<2?n:i+t(r)}tc((function(e,t){return(0,g.createElement)(ec.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Ja(n,t.registered);return rc(t,i,!1),t.key+"-"+i.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return oc(t.registered,r,ic(n))},theme:n},o=e.children(i);return!0,o}))}));var ac=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};n(3463);function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var sc=function(e,t){return"function"==typeof t?t(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cc(n,!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},lc=ac((function(e){return ac((function(t){return sc(e,t)}))})),uc=function(e){return(0,g.createElement)(ec.Consumer,null,(function(t){return e.theme!==t&&(t=lc(t)(e.theme)),(0,g.createElement)(ec.Provider,{value:t},e.children)}))};var dc="#F6F7F7",pc="#DCDCDE",mc="#8E9196",fc="#646970",hc="#2C3338",gc="#008A20",vc="#FFF",yc="#000",bc={colors:{background:dc,surface:vc,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#2271B1",highlightBorder:"#043959",highlightOver:"#135E96",success:gc,discount:gc,disabledPaymentButtons:dc,disabledPaymentButtonsAccent:pc,disabledButtons:"#A7AAAD",borderColor:"#C3C4C7",borderColorLight:pc,borderColorDark:fc,upcomingStepBackground:pc,textColor:hc,textColorLight:fc,textColorDark:yc,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:yc,applePayButtonRollOverColor:hc,noticeBackground:hc,defaultNoticeIconBackground:mc,textColorOnDarkBackground:vc,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:dc,placeHolderTextColor:mc},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}},_c=n(9976),Ec=n.n(_c),Sc=n(3980),wc=n.n(Sc);function Cc(e){return e.filter((function(e){return e})).join(" ")}var xc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kc=za((function(e){return xc.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Pc=function(e){return"theme"!==e&&"innerRef"!==e},Nc=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?kc:Pc};function Ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ac(n,!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ac(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tc=function e(t,n){var r,i,o;void 0!==n&&(r=n.label,o=n.target,i=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var a=t.__emotion_real===t,c=a&&t.__emotion_base||t;"function"!=typeof i&&a&&(i=t.__emotion_forwardProp);var s=i||Nc(c),l=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],u[0][m])}var f=tc((function(e,t,n){return(0,g.createElement)(ec.Consumer,null,(function(r){var a=l&&e.as||c,u="",p=[],m=e;if(null==e.theme){for(var f in m={},e)m[f]=e[f];m.theme=r}"string"==typeof e.className?u=nc(t.registered,p,e.className):null!=e.className&&(u=e.className+" ");var h=Ja(d.concat(p),t.registered,m);rc(t,h,"string"==typeof a);u+=t.key+"-"+h.name,void 0!==o&&(u+=" "+o);var v=l&&void 0===i?Nc(a):s,y={};for(var b in e)l&&"as"===b||v(b)&&(y[b]=e[b]);return y.className=u,y.ref=n||e.innerRef,(0,g.createElement)(a,y)}))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=c,f.__emotion_styles=d,f.__emotion_forwardProp=i,Object.defineProperty(f,"toString",{value:function(){return"."+o}}),f.withComponent=function(t,r){return e(t,void 0!==r?Oc({},n||{},{},r):n).apply(void 0,d)},f}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Tc[e]=Tc(e)}));var Ic=Tc;function Dc(){var e=Ec()(["\n\tmargin: 2em;\n\ttext-align: center;\n"]);return Dc=function(){return e},e}var Lc=ye()("composite-checkout:checkout-error-boundary"),Rc=Ic.div(Dc()),Fc=function(e){In()(n,e);var t=Ln()(n);function n(e){var r;return kn()(this,n),r=t.call(this,e),ee()(On()(r),"state",{hasError:!1,currentError:null}),r}return Nn()(n,[{key:"componentDidCatch",value:function(e,t){if(this.props.onError){var n="".concat(e.message,"; Stack: ").concat(e.stack,"; Component Stack: ").concat(t.componentStack);Lc("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,h.createElement)(jc,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(v().Component);function jc(e){var t=e.errorMessage;return(0,h.createElement)(Rc,null,t)}function Mc(){var e=Ec()(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: theme.weights.normal;\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"]);return Mc=function(){return e},e}var Bc=Ic("button")(Mc(),(function(e){return e.fullWidth?"100%":"auto"}),(function(e){return"paypal"===e.buttonType?"50px":"2px"}),(function(e){return"text-button"===e.buttonType?"0":"10px 15px"}),(function(e){return!e.buttonType||e.disabled?"1px solid "+e.theme.colors.borderColor:"0"}),$c,zc,Gc,Vc,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),zc,(function(e){return e.disabled?"not-allowed":"pointer"}),Vc,Gc,zc,(function(e){var t=e.buttonType;return"grayscale( ".concat("primary"===t||"paypal"===t?"0":"100"," ) invert( 0 );")}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),$c,Hc,Hc,$c),Uc=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,i=e.children,o=e.fullWidth,a=X()(e,["className","buttonType","isBusy","children","fullWidth"]),c=Cc(["checkout-button"].concat(Xt()(n?["is-status-"+n]:[]),Xt()(r?["is-busy"]:[]),Xt()(t?[t]:[])));return(0,h.createElement)(Bc,P()({fullWidth:o,buttonType:n,className:c},a),i)};function Vc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function zc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledButtons;switch(n){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function $c(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function Hc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtonsAccent;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function Gc(e){return"text-button"===e.buttonType?"underline":"none"}function Wc(){var e=Ec()(["\n\tfill: #fff;\n"]);return Wc=function(){return e},e}function qc(e){var t=e.className,n=e.id;return(0,h.createElement)(Yc,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},(0,h.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,h.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),(0,h.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},(0,h.createElement)("rect",{width:"20",height:"20"})))}qc.propTypes={className:wc().string,id:wc().string};var Yc=Ic.svg(Wc());var Kc,Xc,Zc,Jc=function(e){var t=e.value,n=e.onClick,r=e.ariaLabel,i=X()(e,["value","onClick","ariaLabel"]);return(0,h.createElement)(Uc,P()({onClick:n,buttonType:"primary","aria-label":r},i),t)};function Qc(){var e=Ec()(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"]);return Qc=function(){return e},e}function es(){var e=Ec()(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"]);return es=function(){return e},e}function ts(){var e=Ec()(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"]);return ts=function(){return e},e}function ns(){var e=Ec()(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]);return ns=function(){return e},e}function rs(){var e=Ec()(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"]);return rs=function(){return e},e}function is(){var e=Ec()(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"]);return is=function(){return e},e}function os(){var e=Ec()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"]);return os=function(){return e},e}function as(){var e=Ec()(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return as=function(){return e},e}function cs(){var e=Ec()(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return cs=function(){return e},e}function ss(){var e=Ec()(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"]);return ss=function(){return e},e}function ls(){var e=Ec()(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"]);return ls=function(){return e},e}function us(){var e=Ec()(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"]);return us=function(){return e},e}function ds(){var e=Ec()(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"]);return ds=function(){return e},e}function ps(){var e=Ec()(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"]);return ps=function(){return e},e}function ms(){var e=Ec()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"]);return ms=function(){return e},e}function fs(){var e=Ec()(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"]);return fs=function(){return e},e}!function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(Kc||(Kc={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL"}(Xc||(Xc={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(Zc||(Zc={}));ye()("composite-checkout:checkout"),Ic.div(fs(),(function(e){return e.theme.colors.outline}));var hs=Ic.div(ms(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),gs=Ic.div(ps(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),vs=function(e){var t=e.children,n=e.className;return(0,h.createElement)(gs,{className:Cc([n,"checkout__summary-area"])},t)},ys=Ic.div(ds(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}));var bs=Ic.div(us(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),_s=Ic.div(ls(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var Es=Ic.div(ss(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp})),Ss=Ic.div(cs(),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),ws=Ic.div(as(),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function Cs(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,c=e.validatingButtonAriaLabel,s=e.isStepActive,l=e.isStepComplete,u=e.className,d=e.stepNumber,p=e.stepId,m=e.titleContent,f=e.goToThisStep,g=e.goToNextStep,v=e.activeStepContent,y=e.formStatus,b=e.completeStepContent,_=e.onError,__=Li().__;return(0,h.createElement)(Fc,{errorMessage:t||__("There was an error with this step."),onError:_},(0,h.createElement)(Es,{className:u},(0,h.createElement)(Ns,{id:p,stepNumber:d,title:m,isActive:s,isComplete:l,onEdit:y===Kc.READY&&l&&f&&!s?f:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,h.createElement)(Ss,{isVisible:s,className:"checkout-steps__step-content"},v,g&&s&&(0,h.createElement)(Jc,{onClick:g,value:y===Kc.VALIDATING?o||__("Please wait…"):i||__("Continue"),ariaLabel:y===Kc.VALIDATING?c||__("Please wait…"):a||__("Continue to next step"),buttonType:"primary",disabled:y!==Kc.READY,isBusy:y===Kc.VALIDATING})),l&&b?(0,h.createElement)(ws,{isVisible:!s,className:"checkout-steps__step-complete-content"},b):null))}Cs.propTypes={errorMessage:wc().string,onError:wc().func,editButtonAriaLabel:wc().string,editButtonText:wc().string,nextStepButtonText:wc().string,nextStepButtonAriaLabel:wc().string,isStepActive:wc().bool.isRequired,isStepComplete:wc().bool.isRequired,className:wc().string,stepNumber:wc().number,stepId:wc().string.isRequired,titleContent:wc().node.isRequired,goToThisStep:wc().func,goToNextStep:wc().func,activeStepContent:wc().node,formStatus:wc().string,completeStepContent:wc().node,validatingButtonText:wc().string,validatingButtonAriaLabel:wc().string};var xs=Ic.span(os(),(function(e){return e.isActive?e.theme.colors.textColorDark:e.theme.colors.textColor}),(function(e){return e.isActive?e.theme.weights.bold:e.theme.weights.normal}),(function(e){return e.fullWidth?"0":"8px"}),(function(e){return e.fullWidth?"0":"8px"})),ks=Ic.h2(is(),(function(e){return e.isComplete||e.isActive?"8px":"0"})),Ps=Ic(Uc)(rs());function Ns(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,c=e.onEdit,s=e.editButtonText,l=e.editButtonAriaLabel,__=Li().__,u=!!c;return(0,h.createElement)(ks,{isComplete:a,isActive:o,className:Cc([n,"checkout-step__header"])},(0,h.createElement)(Ds,{isComplete:a,isActive:o,id:t},r||null),(0,h.createElement)(xs,{fullWidth:!u,isActive:o},i),u&&(0,h.createElement)(Ps,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:c,"aria-label":l||__("Edit this step")},s||__("Edit")))}var As=Ic.div(ns()),Os=Ic.div(ts(),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),Ts=Ic.div(es(),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(n)return r.colors.highlight;if(t)return r.colors.success;return r.colors.upcomingStepBackground}),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(t||n)return r.colors.surface;return r.colors.textColor}),(function(e){return e.isComplete?"0":"1"})),Is=Ic(Ts)(Qc(),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function Ds(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return(0,h.createElement)(As,{className:Cc([r,"checkout-step__stepper"])},(0,h.createElement)(Os,{isComplete:a},(0,h.createElement)(Ts,{isComplete:a,isActive:n},i),(0,h.createElement)(Is,null,(0,h.createElement)(qc,{id:o}))))}Ns.propTypes={id:wc().string,className:wc().string,stepNumber:wc().number,title:wc().node.isRequired,isActive:wc().bool,isComplete:wc().bool,editButtonText:wc().string,editButtonAriaLabel:wc().string,onEdit:wc().func},Ds.propTypes={id:wc().string,className:wc().string,isComplete:wc().bool,isActive:wc().bool};var Ls,Rs,Fs=(0,h.createElement)(H,{icon:na,size:17}),js=function(e){var t=e.onNextStep,n=e.onPrevStep,r=(0,y.useSelect)((function(e){var t=e(f);return{domain:t.getSelectedDomain(),plan:t.getSelectedPlan(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),i=r.domain,o=r.plan,a=r.LaunchStep,c=r.isStepCompleted,s=r.isFlowCompleted,l=r.planProductId,u=(0,y.useSelect)((function(e){return e("automattic/onboard/plans").getPlanProductById(l)})),d=Gi().title,p=_i().siteSubdomain,m=function(){var e,t=T(),n=Qo().domainSearch;return null===(e=(0,y.useSelect)((function(e){if(n&&!(n.length<2))return e(yi).getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:t})}),[n]))||void 0===e?void 0:e[0]}(),g=Qo().domainSearch,v=(0,y.useDispatch)(f).setStep,b=(0,h.createElement)("div",{className:"nux-launch__summary-item"},(0,h.createElement)("p",null,(0,F.__)("Site","full-site-editing"),": ",d)),_=(0,h.createElement)("div",{className:"nux-launch__summary-item"},null!=i&&i.domain_name?(0,h.createElement)("p",null,(0,F.__)("Custom domain","full-site-editing"),": ",i.domain_name):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",null,(0,F.__)("Free site address","full-site-editing"),": ",null==p?void 0:p.domain),(0,h.createElement)(j.Tip,null,g?(0,h.createInterpolateElement)((0,F.__)("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:(0,h.createElement)("span",{className:R()("nux-launch__summary-item__domain-name",{"is-loading":!m})},(null==m?void 0:m.domain_name)||"loading-example.com"),Link:(0,h.createElement)(j.Button,{isLink:!0,onClick:function(){return v(a.Domain)}})}):(0,F.__)("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),E=(0,h.createElement)("div",{className:"nux-launch__summary-item"},o&&u&&!o.isFree?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",o.title),(0,F.__)("Plan subscription","full-site-editing"),": ",u.price," ",(0,F.__)("per month, billed yearly","full-site-editing")):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,h.createElement)("p",null,(0,F.__)("Plan subscription: Free forever","full-site-editing")),(0,h.createElement)(j.Tip,null,(0,h.createInterpolateElement)((0,F.sprintf)((0,F.__)("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer %1$d-day full-refunds, guaranteed.","full-site-editing"),14),{Link:(0,h.createElement)(j.Button,{isLink:!0,onClick:function(){return v(a.Plan)}})}))));return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Launch your site","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Your site will be made public and ready to share with others.","full-site-editing")))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(uc,{theme:bc},(0,h.createElement)(hs,null,c(a.Plan)&&(0,h.createElement)(vs,null,(0,h.createElement)(ys,{className:"nux-launch__feature-list"},(0,h.createElement)("h3",{className:"nux-launch__feature-list-title"},(0,F.__)("Included in your plan","full-site-editing")),(0,h.createElement)("ul",{className:"nux-launch__feature-item-group"},null==o?void 0:o.features.map((function(e,t){return(0,h.createElement)("li",{key:t,className:"nux-launch__feature-item"},Fs," ",e)}))),(0,h.createElement)("p",null,(0,F.__)("Questions?","full-site-editing")," ",(0,h.createElement)(j.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},(0,F.__)("Ask a Happiness Engineer","full-site-editing"))))),(0,h.createElement)(bs,null,(0,h.createElement)(Cs,{isStepActive:!1,titleContent:(0,F.__)("Your site name","full-site-editing"),isStepComplete:c(a.Name),goToThisStep:function(){return v(a.Name)},completeStepContent:b,stepId:"name",formStatus:Kc.READY}),(0,h.createElement)(Cs,{isStepActive:!1,titleContent:(0,F.__)("Your domain","full-site-editing"),isStepComplete:c(a.Domain),goToThisStep:function(){return v(a.Domain)},completeStepContent:_,stepId:"domain",formStatus:Kc.READY}),(0,h.createElement)(Cs,{isStepActive:!1,titleContent:(0,F.__)("Your plan","full-site-editing"),isStepComplete:c(a.Plan),goToThisStep:function(){return v(a.Plan)},completeStepContent:E,stepId:"plan",formStatus:Kc.READY}),(0,h.createElement)(_s,null,(0,h.createElement)(j.Button,{isPrimary:!0,disabled:!s,onClick:t,className:"nux-launch__submit-button"},(0,F.__)("Launch your site","full-site-editing"))))))),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==n||n()}}))))},Ms=function(e){var t,n=e.onSubmit,r=(0,y.useSelect)((function(e){return e(f).getState()})).step,i=(0,y.useSelect)((function(e){return e(f).getLaunchStep()})),o=(0,y.useSelect)((function(e){return e(f).getLaunchSequence()})),a=(0,y.useSelect)((function(e){return e(f).getFirstIncompleteStep()})),c=(0,y.useDispatch)(f),s=c.setStep,l=c.setSidebarFullscreen,u=c.unsetSidebarFullscreen,d=(t={},ee()(t,i.Name,Wi),ee()(t,i.Domain,ta),ee()(t,i.Plan,Aa),ee()(t,i.Final,js),t),p=o.indexOf(r),m=d[r];return g.useEffect((function(){a&&a!==i.Name&&s(a)}),[]),(0,h.createElement)(m,{onPrevStep:function(){var e=p-1;e<0&&(e=0,l()),s(o[e])},onNextStep:function(){var e=p+1;e>o.length-1&&(null==n||n()),u(),s(o[e])}})},Bs=(0,h.createElement)(j.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(j.Circle,{cx:"12",cy:"12",r:"5"})),Us=function(e){var t=e.title,n=e.isCompleted,r=e.isCurrent,i=e.isDisabled,o=e.onClick;return(0,h.createElement)(j.Button,{className:R()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:o,disabled:i,isLink:!0},(0,h.createElement)(H,{icon:n?na:Bs,size:16}),(0,h.createElement)("span",null,t))},Vs=function(e){var t,n=e.onMenuItemClick,__=Li().__,r=(0,y.useSelect)((function(e){var t=e(f);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),i=r.currentStep,o=r.LaunchStep,a=r.LaunchSequence,c=r.isStepCompleted,s=r.isFlowCompleted,l=(t={},ee()(t,o.Name,__("Name your site","full-site-editing")),ee()(t,o.Domain,__("Select a domain","full-site-editing")),ee()(t,o.Plan,__("Select a plan","full-site-editing")),ee()(t,o.Final,__("Launch your site","full-site-editing")),t),u=(0,y.useDispatch)(f).setStep;return(0,h.createElement)("div",{className:"nux-launch-menu"},(0,h.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,h.createElement)("div",{className:"nux-launch-menu__item-group"},a.map((function(e){return(0,h.createElement)(Us,{key:e,title:l[e],isCompleted:c(e),isCurrent:e===i,onClick:function(){return function(e){u(e),n(e)}(e)},isDisabled:e===o.Final&&!s})}))))},zs=function(){var e=(0,y.useDispatch)(f),t=e.setStep,n=e.unsetSidebarFullscreen,r=(0,y.useSelect)((function(e){return e(f).getLaunchSequence()}));return(0,h.createElement)("div",{className:"nux-launch-sidebar"},(0,h.createElement)("div",{className:"nux-launch-sidebar__header"},(0,h.createElement)(Oi,null,(0,F.__)("You're almost there!","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,h.createElement)("div",{className:"nux-launch-sidebar__body"},(0,h.createElement)(Vs,{onMenuItemClick:function(){n()}})),(0,h.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Vi,{onClick:function(){t(r[0]),n()}},(0,F.__)("Get Started","full-site-editing")))))},$s=function(){var __=Li().__,e=(0,y.useSelect)((function(e){var t=e(f);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),t=e.currentStep,n=e.LaunchSequence,r=n.indexOf(t)+1,i=n.length,o=(0,F.sprintf)(__("%1$d of %2$d","full-site-editing"),r,i);return(0,h.createElement)("div",{className:"nux-launch-progress"},o)},Hs=function(e){var t=e.onClose,n=g.useContext(x).siteId,r=(0,y.useSelect)((function(e){return e(f).getState()})),i=r.step,o=r.isSidebarFullscreen,a=g.useState(!1),c=D()(a,2),s=c[0],l=c[1],u=(0,y.useDispatch)(m).launchSite;return function(){var e=g.useContext(x),t=e.siteId,n=e.redirectTo,r=(0,y.useSelect)((function(e){return e(bi).getState()})).planProductId,i=(0,y.useSelect)((function(e){return e(vi).isPlanProductFree(r)})),o=Ai().isSiteLaunched,a=_i().siteSubdomain,c=Ni().goToCheckout;g.useEffect((function(){if(o){if(!i)return void c();n("/home/".concat((null==a?void 0:a.domain)||t))}}),[o])}(),(0,h.createElement)(j.Modal,{open:!0,className:R()("nux-launch-modal","step-".concat(i),o?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},s?(0,h.createElement)("div",{className:"nux-launch-modal-body__launching"},(0,F.__)("Hooray! Your site will be ready shortly.","full-site-editing")):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("div",{className:"nux-launch-modal-body"},(0,h.createElement)("div",{className:"nux-launch-modal-header"},(0,h.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,h.createElement)(H,{icon:W,size:36})),(0,h.createElement)($s,null)),(0,h.createElement)(Ms,{onSubmit:function(){u(n),l(!0)}})),(0,h.createElement)("div",{className:"nux-launch-modal-aside"},(0,h.createElement)(zs,null)),(0,h.createElement)(j.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":(0,F.__)("Close dialog","full-site-editing"),disabled:!t},(0,h.createElement)("span",null,(0,h.createElement)(H,{icon:q,size:24})))))},Gs=function(e){var t=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat("https://wordpress.com").concat(t))},Ws=function(){try{var e,t;return null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.currentCalypsoUrl}catch(n){return window.location.href}},qs=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="a8c.wpcom-block-editor.openCheckoutModal",o=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.isFocusedLaunchFlow;if((0,_.hasAction)(i)&&o)(0,_.doAction)(i);else{var a=(0,w.addQueryArgs)("/checkout/".concat(e),S()({},!r&&{redirect_to:"/home/".concat(e)}));Gs(a)}};function Ys(){return(Ys=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ks(e){return"/"===e.charAt(0)}function Xs(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}Ls="a8c-editor-site-launch",Rs={render:function(){var e,t=(0,y.useSelect)((function(e){return e(f).getState()})).isSidebarOpen,n=(0,y.useDispatch)(f),r=n.closeSidebar,i=n.setSidebarFullscreen,o=n.unsetSidebarFullscreen;return g.useEffect((function(){window.innerWidth<782?i():o()}),[t,i,o]),g.useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,_.hasAction)(e)&&(0,_.doAction)(e,{hidden:t})}),[t]),t?(0,h.createElement)(O,{localeSlug:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale},(0,h.createElement)(x.Provider,{value:{siteId:window._currentSiteId,flow:ea,redirectTo:Gs,openCheckout:qs,getCurrentLaunchFlowUrl:Ws}},(0,h.createElement)(Hs,{onClose:r}))):null}},(0,b.registerPlugin)(Ls,Rs);var Zs=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&Ks(e),a=t&&Ks(t),c=o||a;if(e&&Ks(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var s=i[i.length-1];n="."===s||".."===s||""===s}else n=!1;for(var l=0,u=i.length;u>=0;u--){var d=i[u];"."===d?Xs(i,u):".."===d?(Xs(i,u),l++):l&&(Xs(i,u),l--)}if(!c)for(;l--;l)i.unshift("..");!c||""===i[0]||i[0]&&Ks(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function Js(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var Qs=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=Js(t),i=Js(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},el="Invariant failed";var tl=function(e,t){if(!e)throw new Error(el)};function nl(e){return"/"===e.charAt(0)?e:"/"+e}function rl(e){return"/"===e.charAt(0)?e.substr(1):e}function il(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function ol(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function al(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function cl(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Ys({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Zs(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function sl(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var ll=!("undefined"==typeof window||!window.document||!window.document.createElement);function ul(e,t){t(window.confirm(e))}var dl="popstate",pl="hashchange";function ml(){try{return window.history.state||{}}catch(e){return{}}}function fl(e){void 0===e&&(e={}),ll||tl(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,c=void 0!==a&&a,s=o.getUserConfirmation,l=void 0===s?ul:s,u=o.keyLength,d=void 0===u?6:u,p=e.basename?ol(nl(e.basename)):"";function m(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return p&&(o=il(o,p)),cl(o,r,n)}function f(){return Math.random().toString(36).substr(2,d)}var h=sl();function g(e){Ys(N,e),N.length=n.length,h.notifyListeners(N.location,N.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||_(m(e.state))}function y(){_(m(ml()))}var b=!1;function _(e){if(b)b=!1,g();else{h.confirmTransitionTo(e,"POP",l,(function(t){t?g({action:"POP",location:e}):function(e){var t=N.location,n=S.indexOf(t.key);-1===n&&(n=0);var r=S.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(b=!0,C(i))}(e)}))}}var E=m(ml()),S=[E.key];function w(e){return p+al(e)}function C(e){n.go(e)}var x=0;function k(e){1===(x+=e)&&1===e?(window.addEventListener(dl,v),i&&window.addEventListener(pl,y)):0===x&&(window.removeEventListener(dl,v),i&&window.removeEventListener(pl,y))}var P=!1;var N={length:n.length,action:"POP",location:E,createHref:w,push:function(e,t){var i="PUSH",o=cl(e,t,f(),N.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=w(o),a=o.key,s=o.state;if(r)if(n.pushState({key:a,state:s},null,t),c)window.location.href=t;else{var l=S.indexOf(N.location.key),u=S.slice(0,l+1);u.push(o.key),S=u,g({action:i,location:o})}else window.location.href=t}}))},replace:function(e,t){var i="REPLACE",o=cl(e,t,f(),N.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=w(o),a=o.key,s=o.state;if(r)if(n.replaceState({key:a,state:s},null,t),c)window.location.replace(t);else{var l=S.indexOf(N.location.key);-1!==l&&(S[l]=o.key),g({action:i,location:o})}else window.location.replace(t)}}))},go:C,goBack:function(){C(-1)},goForward:function(){C(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return P||(k(1),P=!0),function(){return P&&(P=!1,k(-1)),t()}},listen:function(e){var t=h.appendListener(e);return k(1),function(){k(-1),t()}}};return N}var hl="hashchange",gl={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+rl(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:rl,decodePath:nl},slash:{encodePath:nl,decodePath:nl}};function vl(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function yl(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function bl(e){window.location.replace(vl(window.location.href)+"#"+e)}function _l(e){void 0===e&&(e={}),ll||tl(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?ul:r,o=n.hashType,a=void 0===o?"slash":o,c=e.basename?ol(nl(e.basename)):"",s=gl[a],l=s.encodePath,u=s.decodePath;function d(){var e=u(yl());return c&&(e=il(e,c)),cl(e)}var p=sl();function m(e){Ys(x,e),x.length=t.length,p.notifyListeners(x.location,x.action)}var f=!1,h=null;function g(){var e,t,n=yl(),r=l(n);if(n!==r)bl(r);else{var o=d(),a=x.location;if(!f&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(h===al(o))return;h=null,function(e){if(f)f=!1,m();else{var t="POP";p.confirmTransitionTo(e,t,i,(function(n){n?m({action:t,location:e}):function(e){var t=x.location,n=_.lastIndexOf(al(t));-1===n&&(n=0);var r=_.lastIndexOf(al(e));-1===r&&(r=0);var i=n-r;i&&(f=!0,E(i))}(e)}))}}(o)}}var v=yl(),y=l(v);v!==y&&bl(y);var b=d(),_=[al(b)];function E(e){t.go(e)}var S=0;function w(e){1===(S+=e)&&1===e?window.addEventListener(hl,g):0===S&&window.removeEventListener(hl,g)}var C=!1;var x={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=vl(window.location.href)),n+"#"+l(c+al(e))},push:function(e,t){var n="PUSH",r=cl(e,void 0,void 0,x.location);p.confirmTransitionTo(r,n,i,(function(e){if(e){var t=al(r),i=l(c+t);if(yl()!==i){h=t,function(e){window.location.hash=e}(i);var o=_.lastIndexOf(al(x.location)),a=_.slice(0,o+1);a.push(t),_=a,m({action:n,location:r})}else m()}}))},replace:function(e,t){var n="REPLACE",r=cl(e,void 0,void 0,x.location);p.confirmTransitionTo(r,n,i,(function(e){if(e){var t=al(r),i=l(c+t);yl()!==i&&(h=t,bl(i));var o=_.indexOf(al(x.location));-1!==o&&(_[o]=t),m({action:n,location:r})}}))},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return C||(w(1),C=!0),function(){return C&&(C=!1,w(-1)),t()}},listen:function(e){var t=p.appendListener(e);return w(1),function(){w(-1),t()}}};return x}function El(e,t,n){return Math.min(Math.max(e,t),n)}function Sl(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,o=t.initialIndex,a=void 0===o?0:o,c=t.keyLength,s=void 0===c?6:c,l=sl();function u(e){Ys(g,e),g.length=g.entries.length,l.notifyListeners(g.location,g.action)}function d(){return Math.random().toString(36).substr(2,s)}var p=El(a,0,i.length-1),m=i.map((function(e){return cl(e,void 0,"string"==typeof e?d():e.key||d())})),f=al;function h(e){var t=El(g.index+e,0,g.entries.length-1),r=g.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var g={length:m.length,action:"POP",location:m[p],index:p,entries:m,createHref:f,push:function(e,t){var r="PUSH",i=cl(e,t,d(),g.location);l.confirmTransitionTo(i,r,n,(function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),u({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=cl(e,t,d(),g.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(g.entries[g.index]=i,u({action:r,location:i}))}))},go:h,goBack:function(){h(-1)},goForward:function(){h(1)},canGo:function(e){var t=g.index+e;return t>=0&&t<g.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return g}var wl=n(8051),Cl=n.n(wl),xl=1073741823;function kl(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var Pl=v().createContext||function(e,t){var n,r,i="__create-react-context-"+Cl()()+"__",o=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=kl(t.props.value),t}Ba()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):xl,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(g.Component);o.childContextTypes=((n={})[i]=wc().object.isRequired,n);var a=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Ba()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?xl:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?xl:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(g.Component);return a.contextTypes=((r={})[i]=wc().object,r),{Provider:o,Consumer:a}},Nl=n(99),Al=n.n(Nl),Ol=(n(8570),function(e){var t=Pl();return t.displayName=e,t}("Router")),Tl=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Oa(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return v().createElement(Ol.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(v().Component);var Il=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Sl(t.props),t}return Oa(t,e),t.prototype.render=function(){return v().createElement(Tl,{history:this.history,children:this.props.children})},t}(v().Component);var Dl=function(e){function t(){return e.apply(this,arguments)||this}Oa(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(v().Component);var Ll={},Rl=0;function Fl(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(Ll[e])return Ll[e];var t=Al().compile(e);return Rl<1e4&&(Ll[e]=t,Rl++),t}(e)(t,{pretty:!0})}function jl(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return v().createElement(Ol.Consumer,null,(function(e){e||tl(!1);var r=e.history,o=e.staticContext,a=i?r.push:r.replace,c=cl(t?"string"==typeof n?Fl(n,t.params):Ys({},n,{pathname:Fl(n.pathname,t.params)}):n);return o?(a(c),null):v().createElement(Dl,{onMount:function(){a(c)},onUpdate:function(e,t){var n,r,i=cl(t.to);n=i,r=Ys({},c,{key:i.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&Qs(n.state,r.state)||a(c)},to:n})}))}var Ml={},Bl=0;function Ul(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,c=void 0!==a&&a,s=n.sensitive,l=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=Ml[n]||(Ml[n]={});if(r[e])return r[e];var i=[],o={regexp:Al()(e,i,t),keys:i};return Bl<1e4&&(r[e]=o,Bl++),o}(n,{end:o,strict:c,sensitive:l}),i=r.regexp,a=r.keys,s=i.exec(e);if(!s)return null;var u=s[0],d=s.slice(1),p=e===u;return o&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var Vl=function(e){function t(){return e.apply(this,arguments)||this}return Oa(t,e),t.prototype.render=function(){var e=this;return v().createElement(Ol.Consumer,null,(function(t){t||tl(!1);var n=e.props.location||t.location,r=Ys({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?Ul(n.pathname,e.props):t.match}),i=e.props,o=i.children,a=i.component,c=i.render;return Array.isArray(o)&&0===o.length&&(o=null),v().createElement(Ol.Provider,{value:r},r.match?o?"function"==typeof o?o(r):o:a?v().createElement(a,r):c?c(r):null:"function"==typeof o?o(r):null)}))},t}(v().Component);function zl(e){return"/"===e.charAt(0)?e:"/"+e}function $l(e,t){if(!e)return t;var n=zl(e);return 0!==t.pathname.indexOf(n)?t:Ys({},t,{pathname:t.pathname.substr(n.length)})}function Hl(e){return"string"==typeof e?e:al(e)}function Gl(e){return function(){tl(!1)}}function Wl(){}v().Component;var ql=function(e){function t(){return e.apply(this,arguments)||this}return Oa(t,e),t.prototype.render=function(){var e=this;return v().createElement(Ol.Consumer,null,(function(t){t||tl(!1);var n,r,i=e.props.location||t.location;return v().Children.forEach(e.props.children,(function(e){if(null==r&&v().isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?Ul(i.pathname,Ys({},e.props,{path:o})):t.match}})),r?v().cloneElement(n,{location:i,computedMatch:r}):null}))},t}(v().Component);var Yl=v().useContext;function Kl(){return Yl(Ol).history}function Xl(){return Yl(Ol).location}var Zl,Jl=function(e){var t=e.selector,n=Xl().pathname;return g.useEffect((function(){var e;t?null===(e=document.querySelector(t))||void 0===e||e.scrollTo(0,0):window.scrollTo(0,0)}),[t,n]),null};!function(e){e.Summary="/",e.PlanDetails="/plan-details",e.DomainDetails="/domain-details",e.Success="/success"}(Zl||(Zl={}));v().Component;v().Component;var Ql=function(e,t){return"function"==typeof e?e(t):e},eu=function(e,t){return"string"==typeof e?cl(e,null,null,t):e},tu=function(e){return e},nu=v().forwardRef;void 0===nu&&(nu=tu);var ru=nu((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=B(e,["innerRef","navigate","onClick"]),a=o.target,c=Ys({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=tu!==nu&&t||n,v().createElement("a",c)}));var iu=nu((function(e,t){var n=e.component,r=void 0===n?ru:n,i=e.replace,o=e.to,a=e.innerRef,c=B(e,["component","replace","to","innerRef"]);return v().createElement(Ol.Consumer,null,(function(e){e||tl(!1);var n=e.history,s=eu(Ql(o,e.location),e.location),l=s?n.createHref(s):"",u=Ys({},c,{href:l,navigate:function(){var t=Ql(o,e.location);(i?n.replace:n.push)(t)}});return tu!==nu?u.ref=t||a:u.innerRef=a,v().createElement(r,u)}))})),ou=function(e){return e},au=v().forwardRef;void 0===au&&(au=ou);au((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,o=void 0===i?"active":i,a=e.activeStyle,c=e.className,s=e.exact,l=e.isActive,u=e.location,d=e.strict,p=e.style,m=e.to,f=e.innerRef,h=B(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return v().createElement(Ol.Consumer,null,(function(e){e||tl(!1);var n=u||e.location,i=eu(Ql(m,n),n),g=i.pathname,y=g&&g.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),b=y?Ul(n.pathname,{path:y,exact:s,strict:d}):null,_=!!(l?l(b,n):b),E=_?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(c,o):c,S=_?Ys({},p,{},a):p,w=Ys({"aria-current":_&&r||null,className:E,style:S,to:i},h);return ou!==au?w.ref=t||f:w.innerRef=f,v().createElement(iu,w)}))}));function cu(){var e=function(){var e=g.useContext(x).siteId,t=(0,y.useDispatch)(gi).getCart,n=g.useState(void 0),r=D()(n,2),i=r[0],o=r[1];return g.useEffect((function(){ie()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return Pi(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}();return null==e?void 0:e.product_id}var su=function(e){var t=e.label,n=e.badgeText;return(0,h.createElement)("div",{className:"focused-launch-summary-item__leading-side"},(0,h.createElement)("span",{className:"focused-launch-summary-item__leading-side-label"},t),n?(0,h.createElement)("span",{className:"focused-launch-summary-item__leading-side-badge"},n):null)},lu=function(e){var t=e.nodeType,n=e.children;return(0,h.createElement)("div",{className:R()({"focused-launch-summary-item__warning-note":"WARNING"===t,"focused-launch-summary-item__price-cost":"PRICE"===t})},n)},uu=function(e){var t=e.children,n=e.isSelected,r=void 0!==n&&n,i=e.readOnly,o=void 0!==i&&i,a=e.isLoading,c=X()(e,["children","isSelected","readOnly","isLoading"]);return(0,h.createElement)("button",P()({},c,{disabled:o,className:R()("focused-launch-summary__item",{"is-selected":r,"is-readonly":o,"is-loading":a})}),null==t?void 0:t[0],null==t?void 0:t[1])},du="focused-launch",pu=(0,h.createElement)(j.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(j.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),mu=(0,h.createElement)(j.SVG,{className:"focused-launch-summary__info-icon",viewBox:"0 0 24 24",width:"16"},(0,h.createElement)(j.Circle,{cx:"12",cy:"12",stroke:"#8C8F94",strokeWidth:"2",r:"10",fill:"transparent"}),(0,h.createElement)(j.Rect,{x:"10.5",y:"5",width:"3",height:"3",fill:"#8C8F94"}),(0,h.createElement)(j.Rect,{x:"10.5",y:"10",width:"3",height:"8",fill:"#8C8F94"})),fu=function(e){var t=e.input,n=e.commentary,r=e.highlighted;return(0,h.createElement)("div",{className:R()("focused-launch-summary__step",{highlighted:r})},(0,h.createElement)("div",{className:"focused-launch-summary__data-input"},(0,h.createElement)("div",{className:"focused-launch-summary__section"},t)),(0,h.createElement)("div",{className:"focused-launch-summary__side-commentary"},n))},hu=function(e){var t=e.stepIndex,n=e.value,r=e.onChange,i=e.onBlur;return(0,h.createElement)(fu,{highlighted:!0,input:(0,h.createElement)(j.TextControl,{className:"focused-launch-summary__input",label:(0,h.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),(0,F.__)("Name your site","full-site-editing")),value:n,onChange:r,onBlur:i})})},gu=function(e){var t=e.stepIndex,n=e.existingSubdomain,r=e.currentDomain,i=e.initialDomainSearch,o=e.hasPaidDomain,a=e.onDomainSelect,c=e.onExistingSubdomainSelect,s=e.isLoading,l=e.highlighted,u=T();return(0,h.createElement)(fu,{highlighted:!!l,input:o?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},(0,F.__)("Your domain","full-site-editing"),(0,h.createElement)(j.Tooltip,{position:"top center",text:(0,F.__)("Changes to your purchased domain can be managed from your Domains page.","full-site-editing")},(0,h.createElement)("span",null,mu)),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("<strong>Unique domains</strong> help build brand trust","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),(0,h.createElement)(uu,{readOnly:!0},(0,h.createElement)(su,{label:(null==r?void 0:r.domain_name)||""}),(0,h.createElement)(lu,{nodeType:"PRICE"},(0,h.createElement)(H,{icon:na,size:18})," ",(0,F.__)("Purchased","full-site-editing")))):(0,h.createElement)(h.Fragment,null,(0,h.createElement)(Ko,{header:(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),(0,F.__)("Confirm your domain","full-site-editing")),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("<strong>46.9%</strong> of registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),areDependenciesLoading:s,existingSubdomain:n,currentDomain:r,onDomainSelect:a,onExistingSubdomainSelect:c,initialDomainSearch:i,showSearchField:!1,analyticsFlowId:du,analyticsUiAlgo:"summary_domain_step",quantity:3,quantityExpanded:3,itemType:"individual-item",locale:u,orderSubDomainsLast:!0}),(0,h.createElement)(iu,{to:Zl.DomainDetails,className:"focused-launch-summary__details-link"},(0,F.__)("View all domains","full-site-editing"))),commentary:(0,h.createElement)(h.Fragment,null,o?(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("<strong>Unique domains</strong> help build brand recognition and trust","full-site-editing"),{strong:(0,h.createElement)("strong",null)})):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("<strong>46.9%</strong> of globally registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})),(0,h.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Stand out with a unique domain","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Easy to remember and easy to share","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Builds brand recognition and trust","full-site-editing")))))})},vu=function(e){var t,n=e.stepIndex,r=e.highlighted,i=e.hasPaidPlan,o=void 0!==i&&i,a=e.hasPaidDomain,c=void 0!==a&&a,s=e.selectedPaidDomain,l=void 0!==s&&s,u=(0,y.useDispatch)(bi).setPlanProductId,d=(0,y.useSelect)((function(e){return e(bi).getSelectedPlanProductId()})),p=(0,y.useSelect)((function(e){return e(bi).getPaidPlanProductId()})),m=(0,y.useSelect)((function(e){return e(br).getPlanByProductId(d)})),f=(0,y.useSelect)((function(e){return e(br).getPlanByProductId(p)})),v=(t=T(),{defaultPaidPlan:(0,y.useSelect)((function(e){return e(vi).getDefaultPaidPlan(t)})),defaultFreePlan:(0,y.useSelect)((function(e){return e(vi).getDefaultFreePlan(t)}))}),b=v.defaultPaidPlan,_=v.defaultFreePlan,E=g.useState(),S=D()(E,2),w=S[0],C=S[1];g.useEffect((function(){f&&b&&f.periodAgnosticSlug!==b.periodAgnosticSlug&&C(f)}),[f,b,w]);var x=function(e){return e&&e.periodAgnosticSlug===(null==m?void 0:m.periodAgnosticSlug)},k=Ai().sitePlan,P=w?[b,w,_]:[b,_],N=(0,y.useSelect)((function(e){return P.map((function(t){return e(br).getPlanProduct(null==t?void 0:t.periodAgnosticSlug,"ANNUALLY")}))}));return(0,h.createElement)(fu,{highlighted:!!r,input:o?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},(0,F.__)("Your plan","full-site-editing"),(0,h.createElement)(j.Tooltip,{position:"top center",text:(0,F.__)("Changes to your purchased plan can be managed from your Plans page.","full-site-editing")},(0,h.createElement)("span",null,mu)),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),(0,h.createElement)("div",null,(0,h.createElement)(uu,{readOnly:!0},(0,h.createElement)(su,{label:(0,F.sprintf)((0,F.__)("%s Plan","full-site-editing"),null==k?void 0:k.product_name_short)}),(0,h.createElement)(lu,{nodeType:"PRICE"},(0,h.createElement)(H,{icon:na,size:18})," ",(0,F.__)("Purchased","full-site-editing"))))):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},n&&"".concat(n,". "),(0,F.__)("Confirm your plan","full-site-editing")),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("Grow your business with <strong>WordPress Business</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)}))),(0,h.createElement)("div",null,P.map((function(e,t){var n,r;return e?(0,h.createElement)(uu,{key:e.periodAgnosticSlug,isLoading:!_||!b,onClick:function(){var e;return u(null===(e=N[t])||void 0===e?void 0:e.productId)},isSelected:x(e),readOnly:e.isFree&&(c||l)},(0,h.createElement)(su,{label:(0,F.sprintf)((0,F.__)("%s Plan","full-site-editing"),null!==(n=e.title)&&void 0!==n?n:""),badgeText:e.isPopular?(0,F.__)("Popular","full-site-editing"):""}),e.isFree?(0,h.createElement)(lu,{nodeType:c||l?"WARNING":"PRICE"},c||l?(0,F.__)("Not available with your domain selection","full-site-editing"):(0,F.__)("Free","full-site-editing")):(0,h.createElement)(lu,{nodeType:"PRICE"},(0,h.createElement)("span",null,null===(r=N[t])||void 0===r?void 0:r.price),(0,h.createElement)("span",null,(0,F.__)("/mo","full-site-editing")))):(0,h.createElement)(uu,{key:t,isLoading:!0})}))),(0,h.createElement)(iu,{to:Zl.PlanDetails,className:"focused-launch-summary__details-link"},(0,F.__)("View all plans","full-site-editing"))),commentary:o?(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("Monetize your site with <strong>WordPress Premium</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})),(0,h.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Advanced tools and customization","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Unlimited premium themes","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Accept payments","full-site-editing"))))})},yu=function(){var e=(0,y.useSelect)((function(e){var t=e(bi).getState(),n=t.isSiteTitleStepVisible,r=t.domain,i=t.planProductId;return[e(bi).hasSelectedDomain(),n,r,i]})),t=D()(e,4),n=t[0],r=t[1],i=t[2],o=t[3],a=(0,y.useSelect)((function(e){return e(br).isPlanProductFree(o)})),c=(0,y.useDispatch)(gi).launchSite,s=(0,y.useDispatch)(bi),l=s.setModalDismissible,u=s.showModalTitle,d=s.showSiteTitleStep,p=Gi(),m=p.title,f=p.updateTitle,v=_i(),b=v.siteSubdomain,_=v.hasPaidDomain,E=Jo(),S=E.onDomainSelect,w=E.onExistingSubdomainSelect,C=E.currentDomain,k=Qo(),P=k.domainSearch,N=k.isLoading,A=Ai().isPaidPlan,O=g.useContext(x),T=O.siteId,I=O.redirectTo,L=Ni().goToCheckout;g.useEffect((function(){l(),u()}),[l,u]),g.useEffect((function(){r||wi(m)||d()}),[m,d,r]);var R=!!o||!!n||wi(m),j=!!n||!!o,M=[],B=[];r&&B.push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(hu,{stepIndex:n?t:void 0,key:t,value:m||"",onChange:f})})),(_?M:B).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(gu,{highlighted:R,stepIndex:n?t:void 0,key:t,existingSubdomain:Xo(null==b?void 0:b.domain),currentDomain:C,initialDomainSearch:P,hasPaidDomain:_,isLoading:N,onDomainSelect:S,onExistingSubdomainSelect:w})})),(A?M:B).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(vu,{highlighted:j,hasPaidPlan:A,selectedPaidDomain:i&&!i.is_free,hasPaidDomain:_,stepIndex:n?t:void 0,key:t})}));var U=m&&(_||n)&&(A||o);return(0,h.createElement)("div",{className:"focused-launch-container"},(0,h.createElement)("div",{className:"focused-launch-summary__section"},(0,h.createElement)(Oi,{tagName:"h2"},_&&A?(0,F.__)("You're ready to launch","full-site-editing"):(0,F.__)("You're almost there","full-site-editing")),(0,h.createElement)(Ti,{tagName:"p",className:"focused-launch-summary__caption"},_&&A?(0,F.__)("You're good to go! Launch your site and share your site address.","full-site-editing"):(0,F.__)("Prepare for launch! Confirm a few final things before you take it live.","full-site-editing"))),M.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:!1})})),B.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:B.length>1})})),(0,h.createElement)("div",{className:"focused-launch-summary__actions-wrapper"},(0,h.createElement)(Bi,{className:"focused-launch-summary__launch-action-bar"},(0,h.createElement)(Vi,{className:"focused-launch-summary__launch-button",disabled:!U,onClick:function(){c(T),!i&&a||L()}},(0,F.__)("Launch your site","full-site-editing"))),(0,h.createElement)("div",{className:"focused-launch-summary__ask-for-help"},(0,h.createElement)("p",null,(0,F.__)("Questions? Our experts can assist.","full-site-editing")),(0,h.createElement)("a",{href:"/help",onClick:function(e){var t=e.target.getAttribute("href");t&&(I(t),e.preventDefault())}},(0,F.__)("Ask a Happiness Engineer","full-site-editing")))))},bu=function(e){var t=e.className,n=X()(e,["className"]);return(0,h.createElement)(Ui,P()({},n,{className:R()("go-back-button__focused-launch",t)}),(0,h.createElement)(H,{icon:ji}),(0,F.__)("Go back","full-site-editing"))},_u="domain_step",Eu=function(){var e=g.useContext(x),t=e.getCurrentLaunchFlowUrl,n=e.redirectTo,r=T(),i=_i().siteSubdomain,o=Qo(),a=o.domainSearch,c=o.setDomainSearch,s=Jo(),l=s.onDomainSelect,u=s.onExistingSubdomainSelect,d=s.currentDomain,p=Kl(),m=function(){p.goBack()},f=t();return(0,h.createElement)("div",{className:"focused-launch-container"},(0,h.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,h.createElement)(bu,{onClick:m})),(0,h.createElement)("div",{className:"focused-launch-details__header"},(0,h.createElement)(Oi,null,(0,F.__)("Choose a domain","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Free for the first year with any paid plan.","full-site-editing"))),(0,h.createElement)("div",{className:"focused-launch-details__body"},(0,h.createElement)(Ko,{initialDomainSearch:a,onSetDomainSearch:c,onDomainSearchBlur:function(e){uo("calypso_newsite_domain_search_blur",{flow:du,query:e,where:_u})},currentDomain:d,existingSubdomain:Xo(null==i?void 0:i.domain),onDomainSelect:function(e){l(e),m()},onExistingSubdomainSelect:function(){u(),m()},analyticsFlowId:du,analyticsUiAlgo:_u,segregateFreeAndPaid:!0,locale:r,itemType:Do,onUseYourDomainClick:function(){var e="/start/new-launch/domains-launch/use-your-domain?siteSlug=".concat(null==i?void 0:i.domain,"&source=").concat(f);n(e)}})))},Su=function(){var e=T(),t=(0,y.useSelect)((function(e){return e(bi).getSelectedDomain()})),n=(0,y.useSelect)((function(e){return e(bi).getSelectedPlanProductId()})),r=Kl(),i=(0,y.useDispatch)(bi).updatePlan,o=t&&!t.is_free,a=function(){r.goBack()};return(0,h.createElement)("div",{className:"focused-launch-container focused-launch-container--wide"},(0,h.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,h.createElement)(bu,{onClick:a})),(0,h.createElement)("div",{className:"focused-launch-details__header"},(0,h.createElement)(Oi,{tagName:"h2"},(0,F.__)("Select a plan","full-site-editing")),(0,h.createElement)(Ti,{tagName:"h3"},(0,F.sprintf)((0,F.__)("There's no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14))),(0,h.createElement)("div",{className:"focused-launch-details__body"},(0,h.createElement)(Na,{currentDomain:t,onPlanSelect:function(e){i(e),a()},currentPlanProductId:n,onPickDomainClick:a,customTagLines:{Free:(0,F.__)("Best for getting started","full-site-editing"),Business:(0,F.__)("Best for small businesses","full-site-editing")},showPlanTaglines:!0,popularBadgeVariation:"NEXT_TO_NAME",disabledPlans:o?ee()({},"Free",(0,F.__)("Unavailable with domain","full-site-editing")):void 0,CTAVariation:"FULL_WIDTH",locale:e,hidePlansComparison:!0,defaultAllPlansExpanded:!0})))},wu=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"})),Cu=function(e){var t=e.className;return(0,h.createElement)(j.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 356 136",role:"presentation",className:t},(0,h.createElement)(j.Rect,{x:"314.913",y:"59.963",width:"7",height:"22",rx:"3.5",transform:"rotate(-50 314.913 59.963)",fill:"#984A9C"}),(0,h.createElement)(j.Rect,{y:"121.876",width:"5.091",height:"16",rx:"2.545",transform:"rotate(-50 0 121.876)",fill:"#64CA43"}),(0,h.createElement)(j.Rect,{x:"21.447",y:"85.104",width:"7",height:"22",rx:"3.5",transform:"rotate(-120 21.447 85.104)",fill:"#37E788"}),(0,h.createElement)(j.Rect,{x:"75",y:"61.64",width:"4",height:"12.571",rx:"2",transform:"rotate(130 75 61.64)",fill:"#FF2D55"}),(0,h.createElement)(j.Rect,{x:"247.461",y:"63.86",width:"4.773",height:"15",rx:"2.386",transform:"rotate(118 247.461 63.86)",fill:"#E7C037"}),(0,h.createElement)(j.Rect,{x:"97",y:"2.529",width:"4.773",height:"15",rx:"2.386",transform:"rotate(-32 97 2.53)",fill:"#117AC9"}),(0,h.createElement)(j.Rect,{x:"323.638",y:"110.513",width:"5.091",height:"16",rx:"2.545",transform:"rotate(40 323.638 110.513)",fill:"#3361CC"}),(0,h.createElement)(j.Rect,{x:"160.138",y:"27",width:"7",height:"22",rx:"3.5",transform:"rotate(40 160.138 27)",fill:"#FF8085"}),(0,h.createElement)(j.Circle,{cx:"40.5",cy:"101.095",r:"4.5",fill:"#F0B849"}),(0,h.createElement)(j.Circle,{cx:"20.928",cy:"47.751",r:"3",fill:"#BF5AF2"}),(0,h.createElement)(j.Circle,{cx:"341",cy:"134",r:"2",fill:"#F0C930"}),(0,h.createElement)(j.Circle,{cx:"131",cy:"83",r:"2",fill:"#3361CC"}),(0,h.createElement)(j.Circle,{cx:"214.5",cy:"13.5",r:"2.5",fill:"#37E688"}),(0,h.createElement)(j.Circle,{cx:"352.763",cy:"98.263",r:"3",fill:"#09A884"}),(0,h.createElement)(j.Circle,{cx:"285.181",cy:"60.541",r:"3",fill:"#FF3B30"}))},xu=function(){var e=g.useContext(x),t=e.redirectTo,n=e.siteId,r=(0,y.useSelect)((function(e){return e(gi).isSiteLaunching(n)})),i=(0,y.useDispatch)(bi),o=i.unsetModalDismissible,a=i.hideModalTitle,c=i.closeFocusedLaunch,s=i.disablePersistentSuccessView,l=_i(),u=l.siteSubdomain,d=l.sitePrimaryDomain,p=g.useState(""),m=D()(p,2),f=m[0],v=m[1],b=g.useState(!1),_=D()(b,2),E=_[0],S=_[1];g.useEffect((function(){v("https://".concat(null==d?void 0:d.domain))}),[d]),g.useEffect((function(){o(),a()}),[o,a]);return(0,h.createElement)("div",{className:"focused-launch-container focused-launch-success__wrapper"},(0,h.createElement)(Cu,{className:"focused-launch-success__confetti"}),(0,h.createElement)(Oi,{tagName:"h2"},(0,F.__)("Hooray!","full-site-editing")),(0,h.createElement)(Ti,{tagName:"h3"},r?(0,F.__)("Your site will be live shortly.","__i18n_text_domain__"):(0,F.__)("Congratulations, your website is now live. We're excited to watch you grow with WordPress.","full-site-editing")),!r&&(0,h.createElement)(h.Fragment,null,(0,h.createElement)("div",{className:"focused-launch-success__url-wrapper"},(0,h.createElement)("span",{className:"focused-launch-success__url-field"},f),(0,h.createElement)("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"focused-launch-success__url-link","aria-label":(0,F.__)("Visit site","full-site-editing")},(0,h.createElement)(H,{icon:wu,size:16})),(0,h.createElement)(j.ClipboardButton,{text:f,onCopy:function(){return S(!0)},onFinishCopy:function(){return S(!1)},className:"focused-launch-success__url-copy-button"},E?(0,F.__)("Copied!","full-site-editing"):(0,F.__)("Copy Link","full-site-editing"))),(0,h.createElement)(Vi,{onClick:function(){s(),c()},className:"focused-launch-success__continue-editing-button"},(0,F.__)("Continue Editing","full-site-editing")),(0,h.createElement)(Ui,{onClick:function(){s(),t("/home/".concat(null==u?void 0:u.domain))}},(0,F.__)("Back home","full-site-editing"))))},ku=function(){var e=Ai(),t=e.isSiteLaunched,n=e.isSiteLaunching,r=(0,y.useDispatch)(bi).enablePersistentSuccessView,i=(0,y.useSelect)((function(e){var t=e(bi).getState(),n=t.planProductId,r=t.shouldDisplaySuccessView;return[e(bi).hasSelectedDomain(),n,r]})),o=D()(i,3),a=o[0],c=o[1],s=o[2];g.useEffect((function(){t&&r()}),[t,r]);var l=Zo(),u=(0,y.useDispatch)(bi).setDomain;g.useEffect((function(){!a&&l&&u(l)}),[a,l,u]);var d=cu(),p=(0,y.useDispatch)(bi).setPlanProductId;return g.useEffect((function(){!c&&d&&p(d)}),[c,d,p]),(0,h.createElement)(Il,{initialEntries:[Zl.Summary,Zl.Success],initialIndex:s?1:0},(0,h.createElement)(Jl,{selector:".components-modal__content"}),(t||n)&&(0,h.createElement)(jl,{to:Zl.Success}),(0,h.createElement)(ql,null,(0,h.createElement)(Vl,{path:Zl.DomainDetails},(0,h.createElement)(Eu,null)),(0,h.createElement)(Vl,{path:Zl.PlanDetails},(0,h.createElement)(Su,null)),(0,h.createElement)(Vl,{path:Zl.Success},(0,h.createElement)(xu,null)),(0,h.createElement)(Vl,{path:Zl.Summary},(0,h.createElement)(yu,null))))},Pu=function(e){var t=e.locale,n=void 0===t?"en":t,r=e.siteId,i=e.openCheckout,o=e.redirectTo,a=e.getCurrentLaunchFlowUrl,c=(0,y.useSelect)((function(e){return e(bi).getState()})),s=c.isModalDismissible,l=c.isModalTitleVisible,u=c.shouldDisplaySuccessView,d=(0,y.useDispatch)(bi).closeFocusedLaunch;return(0,h.createElement)(O,{localeSlug:n},(0,h.createElement)(j.Modal,{open:!0,className:R()("launch__focused-modal",{"launch__focused-modal--hide-title":!l}),overlayClassName:R()("launch__focused-modal-overlay",{"launch__focused-modal-overlay--delay-animation-in":u}),bodyOpenClassName:"has-focused-launch-modal",onRequestClose:d,title:(0,F.__)("Complete setup","full-site-editing"),icon:(0,h.createElement)(H,{icon:W,size:36}),isDismissible:s,shouldCloseOnEsc:s,shouldCloseOnClickOutside:s},(0,h.createElement)("div",{className:"launch__focused-modal-body"},(0,h.createElement)(x.Provider,{value:{siteId:r,redirectTo:o,openCheckout:i,flow:du,getCurrentLaunchFlowUrl:a}},(0,h.createElement)(ku,null)))))};!function(e,t){(0,b.registerPlugin)(e,t)}("a8c-editor-editor-focused-launch",{render:function(){var e,t=window._currentSiteId,n=(0,y.useSelect)((function(e){var n=e(f).getState();return[n.isFocusedLaunchOpen,n.shouldDisplaySuccessView,e(m).isSiteLaunched(t)]})),r=D()(n,3),i=r[0],o=r[1],a=r[2];return g.useEffect((function(){a&&document.body.classList.add("is-focused-launch-complete")}),[a]),i||o?(0,h.createElement)(Pu,{locale:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale,openCheckout:qs,redirectTo:Gs,siteId:t,getCurrentLaunchFlowUrl:Ws}):null}})},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var a=r,c=Number(new Date),s=c-(n||c);a.diff=s,a.prev=n,a.curr=c,n=c,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var l=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=t.formatters[n];if("function"==typeof r){var o=i[l];e=r.call(a,o),i.splice(l,1),l--}return e})),t.formatArgs.call(a,i);var u=a.log||t.log;u.apply(a,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(a)),r(t.skips.map(a).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},8186:function(e,t,n){"use strict";var r=n(7320),i=n(3804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var a=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),a({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();a((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},6718:function(e,t,n){"use strict";e.exports=n(8186)},2884:function(e,t,n){var r=n(3830),i=n(7260);function o(e,t){if(t)if("number"==typeof t)a(e,t);else{t.status_code&&a(e,t.status_code),t.error&&(e.name=s(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&c(e)}}function a(e,t){e.name=s(i[t]),e.status=e.statusCode=t,c(e)}function c(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function s(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.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"}},3804:function(e){"use strict";e.exports=window.React}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(1164)}());
|
editor-site-launch/src/attach-launch-sidebar.tsx
CHANGED
@@ -14,7 +14,7 @@ import { LocaleProvider } from '@automattic/i18n-utils';
|
|
14 |
import LaunchModal from './launch-modal';
|
15 |
import { LAUNCH_STORE } from './stores';
|
16 |
import { FLOW_ID } from './constants';
|
17 |
-
import { openCheckout, redirectToWpcomPath } from './utils';
|
18 |
|
19 |
const registerPlugin = ( name: string, settings: Omit< PluginSettings, 'icon' > ) =>
|
20 |
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
@@ -51,6 +51,7 @@ registerPlugin( 'a8c-editor-site-launch', {
|
|
51 |
flow: FLOW_ID,
|
52 |
redirectTo: redirectToWpcomPath,
|
53 |
openCheckout,
|
|
|
54 |
} }
|
55 |
>
|
56 |
<LaunchModal onClose={ closeSidebar } />
|
14 |
import LaunchModal from './launch-modal';
|
15 |
import { LAUNCH_STORE } from './stores';
|
16 |
import { FLOW_ID } from './constants';
|
17 |
+
import { openCheckout, redirectToWpcomPath, getCurrentLaunchFlowUrl } from './utils';
|
18 |
|
19 |
const registerPlugin = ( name: string, settings: Omit< PluginSettings, 'icon' > ) =>
|
20 |
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
51 |
flow: FLOW_ID,
|
52 |
redirectTo: redirectToWpcomPath,
|
53 |
openCheckout,
|
54 |
+
getCurrentLaunchFlowUrl,
|
55 |
} }
|
56 |
>
|
57 |
<LaunchModal onClose={ closeSidebar } />
|
editor-site-launch/src/launch-menu/index.tsx
CHANGED
@@ -10,7 +10,7 @@ import { useI18n } from '@automattic/react-i18n';
|
|
10 |
*/
|
11 |
import { LAUNCH_STORE } from '../stores';
|
12 |
import LaunchMenuItem from './item';
|
13 |
-
import type { LaunchStepType } from '../../../common/data-stores/launch
|
14 |
|
15 |
import './styles.scss';
|
16 |
|
@@ -20,11 +20,19 @@ interface Props {
|
|
20 |
|
21 |
const LaunchMenu: React.FunctionComponent< Props > = ( { onMenuItemClick } ) => {
|
22 |
const { __ } = useI18n();
|
23 |
-
|
24 |
-
const
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
const LaunchStepMenuItemTitles = {
|
30 |
[ LaunchStep.Name ]: __( 'Name your site', 'full-site-editing' ),
|
@@ -35,7 +43,7 @@ const LaunchMenu: React.FunctionComponent< Props > = ( { onMenuItemClick } ) =>
|
|
35 |
|
36 |
const { setStep } = useDispatch( LAUNCH_STORE );
|
37 |
|
38 |
-
const handleClick = ( step ) => {
|
39 |
setStep( step );
|
40 |
onMenuItemClick( step );
|
41 |
};
|
10 |
*/
|
11 |
import { LAUNCH_STORE } from '../stores';
|
12 |
import LaunchMenuItem from './item';
|
13 |
+
import type { LaunchStepType } from '../../../common/data-stores/launch';
|
14 |
|
15 |
import './styles.scss';
|
16 |
|
20 |
|
21 |
const LaunchMenu: React.FunctionComponent< Props > = ( { onMenuItemClick } ) => {
|
22 |
const { __ } = useI18n();
|
23 |
+
|
24 |
+
const { currentStep, LaunchStep, LaunchSequence, isStepCompleted, isFlowCompleted } = useSelect(
|
25 |
+
( select ) => {
|
26 |
+
const launchStore = select( LAUNCH_STORE );
|
27 |
+
return {
|
28 |
+
currentStep: launchStore.getCurrentStep(),
|
29 |
+
LaunchStep: launchStore.getLaunchStep(),
|
30 |
+
LaunchSequence: launchStore.getLaunchSequence(),
|
31 |
+
isStepCompleted: launchStore.isStepCompleted,
|
32 |
+
isFlowCompleted: launchStore.isFlowCompleted(),
|
33 |
+
};
|
34 |
+
}
|
35 |
+
);
|
36 |
|
37 |
const LaunchStepMenuItemTitles = {
|
38 |
[ LaunchStep.Name ]: __( 'Name your site', 'full-site-editing' ),
|
43 |
|
44 |
const { setStep } = useDispatch( LAUNCH_STORE );
|
45 |
|
46 |
+
const handleClick = ( step: string ) => {
|
47 |
setStep( step );
|
48 |
onMenuItemClick( step );
|
49 |
};
|
editor-site-launch/src/launch-progress/index.tsx
CHANGED
@@ -16,9 +16,13 @@ import './styles.scss';
|
|
16 |
const LaunchProgress: React.FunctionComponent = () => {
|
17 |
const { __ } = useI18n();
|
18 |
|
19 |
-
const {
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
22 |
|
23 |
const current = LaunchSequence.indexOf( currentStep ) + 1;
|
24 |
const total = LaunchSequence.length;
|
16 |
const LaunchProgress: React.FunctionComponent = () => {
|
17 |
const { __ } = useI18n();
|
18 |
|
19 |
+
const { currentStep, LaunchSequence } = useSelect( ( select ) => {
|
20 |
+
const launchStore = select( LAUNCH_STORE );
|
21 |
+
return {
|
22 |
+
currentStep: launchStore.getCurrentStep(),
|
23 |
+
LaunchSequence: launchStore.getLaunchSequence(),
|
24 |
+
};
|
25 |
+
} );
|
26 |
|
27 |
const current = LaunchSequence.indexOf( currentStep ) + 1;
|
28 |
const total = LaunchSequence.length;
|
editor-site-launch/src/launch-steps/domain-step/index.tsx
CHANGED
@@ -2,10 +2,9 @@
|
|
2 |
* External dependencies
|
3 |
*/
|
4 |
import * as React from 'react';
|
5 |
-
import {
|
6 |
import { __ } from '@wordpress/i18n';
|
7 |
import DomainPicker, { mockDomainSuggestion } from '@automattic/domain-picker';
|
8 |
-
import type { DomainSuggestions } from '@automattic/data-stores';
|
9 |
import { Title, SubTitle, ActionButtons, BackButton, NextButton } from '@automattic/onboarding';
|
10 |
import { recordTracksEvent } from '@automattic/calypso-analytics';
|
11 |
|
@@ -19,12 +18,11 @@ import { useDomainSelection, useSiteDomains, useDomainSearch } from '@automattic
|
|
19 |
import { FLOW_ID } from '../../constants';
|
20 |
|
21 |
const DomainStep: React.FunctionComponent< LaunchStepProps > = ( { onPrevStep, onNextStep } ) => {
|
22 |
-
const {
|
23 |
-
const { currentDomain } = useDomainSelection();
|
24 |
const { siteSubdomain } = useSiteDomains();
|
25 |
const { domainSearch, setDomainSearch } = useDomainSearch();
|
26 |
|
27 |
-
const {
|
28 |
|
29 |
const handleNext = () => {
|
30 |
confirmDomainSelection();
|
@@ -35,18 +33,6 @@ const DomainStep: React.FunctionComponent< LaunchStepProps > = ( { onPrevStep, o
|
|
35 |
onPrevStep?.();
|
36 |
};
|
37 |
|
38 |
-
const handleDomainSelect = ( suggestion: DomainSuggestions.DomainSuggestion ) => {
|
39 |
-
confirmDomainSelection();
|
40 |
-
setDomain( suggestion );
|
41 |
-
if ( plan?.isFree ) {
|
42 |
-
unsetPlan();
|
43 |
-
}
|
44 |
-
};
|
45 |
-
|
46 |
-
const handleExistingSubdomainSelect = () => {
|
47 |
-
unsetDomain();
|
48 |
-
};
|
49 |
-
|
50 |
const trackDomainSearchInteraction = ( query: string ) => {
|
51 |
recordTracksEvent( 'calypso_newsite_domain_search_blur', {
|
52 |
flow: FLOW_ID,
|
@@ -76,8 +62,8 @@ const DomainStep: React.FunctionComponent< LaunchStepProps > = ( { onPrevStep, o
|
|
76 |
onDomainSearchBlur={ trackDomainSearchInteraction }
|
77 |
currentDomain={ currentDomain || mockDomainSuggestion( siteSubdomain?.domain ) }
|
78 |
existingSubdomain={ mockDomainSuggestion( siteSubdomain?.domain ) }
|
79 |
-
onDomainSelect={
|
80 |
-
onExistingSubdomainSelect={
|
81 |
analyticsUiAlgo="editor_domain_modal"
|
82 |
segregateFreeAndPaid
|
83 |
locale={ document.documentElement.lang }
|
2 |
* External dependencies
|
3 |
*/
|
4 |
import * as React from 'react';
|
5 |
+
import { useDispatch } from '@wordpress/data';
|
6 |
import { __ } from '@wordpress/i18n';
|
7 |
import DomainPicker, { mockDomainSuggestion } from '@automattic/domain-picker';
|
|
|
8 |
import { Title, SubTitle, ActionButtons, BackButton, NextButton } from '@automattic/onboarding';
|
9 |
import { recordTracksEvent } from '@automattic/calypso-analytics';
|
10 |
|
18 |
import { FLOW_ID } from '../../constants';
|
19 |
|
20 |
const DomainStep: React.FunctionComponent< LaunchStepProps > = ( { onPrevStep, onNextStep } ) => {
|
21 |
+
const { onDomainSelect, onExistingSubdomainSelect, currentDomain } = useDomainSelection();
|
|
|
22 |
const { siteSubdomain } = useSiteDomains();
|
23 |
const { domainSearch, setDomainSearch } = useDomainSearch();
|
24 |
|
25 |
+
const { confirmDomainSelection } = useDispatch( LAUNCH_STORE );
|
26 |
|
27 |
const handleNext = () => {
|
28 |
confirmDomainSelection();
|
33 |
onPrevStep?.();
|
34 |
};
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
const trackDomainSearchInteraction = ( query: string ) => {
|
37 |
recordTracksEvent( 'calypso_newsite_domain_search_blur', {
|
38 |
flow: FLOW_ID,
|
62 |
onDomainSearchBlur={ trackDomainSearchInteraction }
|
63 |
currentDomain={ currentDomain || mockDomainSuggestion( siteSubdomain?.domain ) }
|
64 |
existingSubdomain={ mockDomainSuggestion( siteSubdomain?.domain ) }
|
65 |
+
onDomainSelect={ onDomainSelect }
|
66 |
+
onExistingSubdomainSelect={ onExistingSubdomainSelect }
|
67 |
analyticsUiAlgo="editor_domain_modal"
|
68 |
segregateFreeAndPaid
|
69 |
locale={ document.documentElement.lang }
|
editor-site-launch/src/launch-steps/final-step/index.tsx
CHANGED
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
5 |
import classnames from 'classnames';
|
6 |
import { ThemeProvider } from 'emotion-theming';
|
7 |
import { createInterpolateElement } from '@wordpress/element';
|
8 |
-
import { __ } from '@wordpress/i18n';
|
9 |
import { useDispatch, useSelect } from '@wordpress/data';
|
10 |
import { Button, Tip } from '@wordpress/components';
|
11 |
import { Icon, check } from '@wordpress/icons';
|
@@ -33,14 +33,23 @@ import './styles.scss';
|
|
33 |
const TickIcon = <Icon icon={ check } size={ 17 } />;
|
34 |
|
35 |
const FinalStep: React.FunctionComponent< LaunchStepProps > = ( { onNextStep, onPrevStep } ) => {
|
36 |
-
const domain
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
);
|
41 |
-
const LaunchStep = useSelect( ( select ) => select( LAUNCH_STORE ).getLaunchStep() );
|
42 |
-
const isStepCompleted = useSelect( ( select ) => select( LAUNCH_STORE ).isStepCompleted );
|
43 |
-
const isFlowCompleted = useSelect( ( select ) => select( LAUNCH_STORE ).isFlowCompleted() );
|
44 |
|
45 |
const { title } = useTitle();
|
46 |
const { siteSubdomain } = useSiteDomains();
|
@@ -101,10 +110,10 @@ const FinalStep: React.FunctionComponent< LaunchStepProps > = ( { onNextStep, on
|
|
101 |
|
102 |
const planSummary = (
|
103 |
<div className="nux-launch__summary-item">
|
104 |
-
{ plan && ! plan
|
105 |
<>
|
106 |
<p className="nux-launch__summary-item__plan-name">WordPress.com { plan.title }</p>
|
107 |
-
{ __( 'Plan subscription', 'full-site-editing' ) }: {
|
108 |
{ __( 'per month, billed yearly', 'full-site-editing' ) }
|
109 |
</>
|
110 |
) : (
|
@@ -113,10 +122,13 @@ const FinalStep: React.FunctionComponent< LaunchStepProps > = ( { onNextStep, on
|
|
113 |
<p>{ __( 'Plan subscription: Free forever', 'full-site-editing' ) }</p>
|
114 |
<Tip>
|
115 |
{ createInterpolateElement(
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
|
|
|
|
|
|
120 |
),
|
121 |
{
|
122 |
Link: <Button isLink onClick={ () => setStep( LaunchStep.Plan ) } />,
|
5 |
import classnames from 'classnames';
|
6 |
import { ThemeProvider } from 'emotion-theming';
|
7 |
import { createInterpolateElement } from '@wordpress/element';
|
8 |
+
import { __, sprintf } from '@wordpress/i18n';
|
9 |
import { useDispatch, useSelect } from '@wordpress/data';
|
10 |
import { Button, Tip } from '@wordpress/components';
|
11 |
import { Icon, check } from '@wordpress/icons';
|
33 |
const TickIcon = <Icon icon={ check } size={ 17 } />;
|
34 |
|
35 |
const FinalStep: React.FunctionComponent< LaunchStepProps > = ( { onNextStep, onPrevStep } ) => {
|
36 |
+
const { domain, plan, LaunchStep, isStepCompleted, isFlowCompleted, planProductId } = useSelect(
|
37 |
+
( select ) => {
|
38 |
+
const launchStore = select( LAUNCH_STORE );
|
39 |
+
return {
|
40 |
+
domain: launchStore.getSelectedDomain(),
|
41 |
+
plan: launchStore.getSelectedPlan(),
|
42 |
+
LaunchStep: launchStore.getLaunchStep(),
|
43 |
+
isStepCompleted: launchStore.isStepCompleted,
|
44 |
+
isFlowCompleted: launchStore.isFlowCompleted(),
|
45 |
+
planProductId: launchStore.getSelectedPlanProductId(),
|
46 |
+
};
|
47 |
+
}
|
48 |
+
);
|
49 |
+
|
50 |
+
const planProduct = useSelect( ( select ) =>
|
51 |
+
select( PLANS_STORE ).getPlanProductById( planProductId )
|
52 |
);
|
|
|
|
|
|
|
53 |
|
54 |
const { title } = useTitle();
|
55 |
const { siteSubdomain } = useSiteDomains();
|
110 |
|
111 |
const planSummary = (
|
112 |
<div className="nux-launch__summary-item">
|
113 |
+
{ plan && planProduct && ! plan.isFree ? (
|
114 |
<>
|
115 |
<p className="nux-launch__summary-item__plan-name">WordPress.com { plan.title }</p>
|
116 |
+
{ __( 'Plan subscription', 'full-site-editing' ) }: { planProduct.price }{ ' ' }
|
117 |
{ __( 'per month, billed yearly', 'full-site-editing' ) }
|
118 |
</>
|
119 |
) : (
|
122 |
<p>{ __( 'Plan subscription: Free forever', 'full-site-editing' ) }</p>
|
123 |
<Tip>
|
124 |
{ createInterpolateElement(
|
125 |
+
sprintf(
|
126 |
+
/* translators: pressing <Link> will redirect user to plan selection step; %1$d is the number of days */
|
127 |
+
__(
|
128 |
+
'<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer %1$d-day full-refunds, guaranteed.',
|
129 |
+
'full-site-editing'
|
130 |
+
),
|
131 |
+
14
|
132 |
),
|
133 |
{
|
134 |
Link: <Button isLink onClick={ () => setStep( LaunchStep.Plan ) } />,
|
editor-site-launch/src/launch-steps/plan-step/index.tsx
CHANGED
@@ -3,8 +3,7 @@
|
|
3 |
*/
|
4 |
import * as React from 'react';
|
5 |
import { useSelect, useDispatch } from '@wordpress/data';
|
6 |
-
import { __ } from '@wordpress/i18n';
|
7 |
-
import { Plans } from '@automattic/data-stores';
|
8 |
import PlansGrid from '@automattic/plans-grid';
|
9 |
import { Title, SubTitle, ActionButtons, BackButton } from '@automattic/onboarding';
|
10 |
import { useSite } from '@automattic/launch';
|
@@ -17,17 +16,23 @@ import { LAUNCH_STORE } from '../../stores';
|
|
17 |
import './styles.scss';
|
18 |
|
19 |
const PlanStep: React.FunctionComponent< LaunchStepProps > = ( { onPrevStep, onNextStep } ) => {
|
20 |
-
const domain = useSelect( ( select ) =>
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
const {
|
24 |
|
25 |
const { selectedFeatures } = useSite();
|
26 |
|
27 |
const hasPaidDomain = domain && ! domain.is_free;
|
28 |
|
29 |
-
const handleSelect = (
|
30 |
-
|
31 |
onNextStep?.();
|
32 |
};
|
33 |
|
@@ -45,22 +50,27 @@ const PlanStep: React.FunctionComponent< LaunchStepProps > = ( { onPrevStep, onN
|
|
45 |
<div>
|
46 |
<Title>{ __( 'Select a plan', 'full-site-editing' ) }</Title>
|
47 |
<SubTitle>
|
48 |
-
{
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
51 |
) }
|
52 |
</SubTitle>
|
53 |
</div>
|
54 |
</div>
|
55 |
<div className="nux-launch-step__body">
|
56 |
<PlansGrid
|
|
|
57 |
currentDomain={ domain }
|
58 |
onPlanSelect={ handleSelect }
|
59 |
onPickDomainClick={ handlePickDomain }
|
60 |
disabledPlans={
|
61 |
hasPaidDomain
|
62 |
? {
|
63 |
-
|
64 |
}
|
65 |
: undefined
|
66 |
}
|
3 |
*/
|
4 |
import * as React from 'react';
|
5 |
import { useSelect, useDispatch } from '@wordpress/data';
|
6 |
+
import { __, sprintf } from '@wordpress/i18n';
|
|
|
7 |
import PlansGrid from '@automattic/plans-grid';
|
8 |
import { Title, SubTitle, ActionButtons, BackButton } from '@automattic/onboarding';
|
9 |
import { useSite } from '@automattic/launch';
|
16 |
import './styles.scss';
|
17 |
|
18 |
const PlanStep: React.FunctionComponent< LaunchStepProps > = ( { onPrevStep, onNextStep } ) => {
|
19 |
+
const { domain, LaunchStep, selectedPlanProductId } = useSelect( ( select ) => {
|
20 |
+
const launchStore = select( LAUNCH_STORE );
|
21 |
+
return {
|
22 |
+
domain: launchStore.getSelectedDomain(),
|
23 |
+
LaunchStep: launchStore.getLaunchStep(),
|
24 |
+
selectedPlanProductId: launchStore.getSelectedPlanProductId(),
|
25 |
+
};
|
26 |
+
} );
|
27 |
|
28 |
+
const { setPlanProductId, setStep } = useDispatch( LAUNCH_STORE );
|
29 |
|
30 |
const { selectedFeatures } = useSite();
|
31 |
|
32 |
const hasPaidDomain = domain && ! domain.is_free;
|
33 |
|
34 |
+
const handleSelect = ( planProductId: number | undefined ) => {
|
35 |
+
setPlanProductId( planProductId );
|
36 |
onNextStep?.();
|
37 |
};
|
38 |
|
50 |
<div>
|
51 |
<Title>{ __( 'Select a plan', 'full-site-editing' ) }</Title>
|
52 |
<SubTitle>
|
53 |
+
{ sprintf(
|
54 |
+
/* translators: number of days */
|
55 |
+
__(
|
56 |
+
'Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within %1$d days.',
|
57 |
+
'full-site-editing'
|
58 |
+
),
|
59 |
+
14
|
60 |
) }
|
61 |
</SubTitle>
|
62 |
</div>
|
63 |
</div>
|
64 |
<div className="nux-launch-step__body">
|
65 |
<PlansGrid
|
66 |
+
currentPlanProductId={ selectedPlanProductId }
|
67 |
currentDomain={ domain }
|
68 |
onPlanSelect={ handleSelect }
|
69 |
onPickDomainClick={ handlePickDomain }
|
70 |
disabledPlans={
|
71 |
hasPaidDomain
|
72 |
? {
|
73 |
+
Free: __( 'Unavailable with domain', 'full-site-editing' ),
|
74 |
}
|
75 |
: undefined
|
76 |
}
|
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: 2.
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
@@ -35,7 +35,7 @@ namespace A8C\FSE;
|
|
35 |
*
|
36 |
* @var string
|
37 |
*/
|
38 |
-
define( 'PLUGIN_VERSION', '2.
|
39 |
|
40 |
// Always include these helper files for dotcom FSE.
|
41 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
@@ -278,7 +278,7 @@ add_action( 'current_screen', __NAMESPACE__ . '\load_block_patterns_from_api' );
|
|
278 |
* are loaded via load_block_patterns_from_api.
|
279 |
*/
|
280 |
function load_wpcom_block_patterns_modifications() {
|
281 |
-
if ( apply_filters( 'a8c_enable_block_patterns_modifications',
|
282 |
require_once __DIR__ . '/block-patterns/class-block-patterns-modifications.php';
|
283 |
}
|
284 |
}
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
+
* Version: 2.13
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
35 |
*
|
36 |
* @var string
|
37 |
*/
|
38 |
+
define( 'PLUGIN_VERSION', '2.13' );
|
39 |
|
40 |
// Always include these helper files for dotcom FSE.
|
41 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
278 |
* are loaded via load_block_patterns_from_api.
|
279 |
*/
|
280 |
function load_wpcom_block_patterns_modifications() {
|
281 |
+
if ( apply_filters( 'a8c_enable_block_patterns_modifications', true ) ) {
|
282 |
require_once __DIR__ . '/block-patterns/class-block-patterns-modifications.php';
|
283 |
}
|
284 |
}
|
premium-content/dist/premium-content.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '1c032e4170e148965e718086fc49c0e1');
|
premium-content/dist/premium-content.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function a(e,t,n,r){var i,o,s,a;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):f(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var l=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw l.context=s,l}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var a=c.length,u=f(c,a);for(n=0;n<a;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return a(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return a(this,e,t,!0)},o.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return m(this,e,!0)},o.prototype.rawListeners=function(e){return m(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},201:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},983:function(e){"use strict";e.exports=function(e,t,n,r,i,o,s,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=[n,r,i,o,s,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return a[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},590:function(e,t,n){"use strict";var r=n(201);e.exports=r},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},79:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=r.rotl32,l=r.sum32,c=r.sum32_5,a=o.ft_1,u=i.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function m(){if(!(this instanceof m))return new m;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(m,u),e.exports=m,m.blockSize=512,m.outSize=160,m.hmacStrength=80,m.padLength=64,m.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],m=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var f=~~(r/20),g=c(s(i,5),a(f,o,u,m),d,n[r],p[f]);d=m,m=u,u=s(o,30),o=i,i=g}this.h[0]=l(this.h[0],i),this.h[1]=l(this.h[1],o),this.h[2]=l(this.h[2],u),this.h[3]=l(this.h[3],m),this.h[4]=l(this.h[4],d)},m.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=l(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},t.zero2=l,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),l=0,c=t;l<s.length;l++,c+=4){var a;a="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[l]=a>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,l){var c=0,a=t;return c+=(a=a+r>>>0)<t?1:0,c+=(a=a+o>>>0)<o?1:0,e+n+i+s+(c+=(a=a+l>>>0)<l?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,l){return t+r+o+l>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,l,c,a){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+o>>>0)<o?1:0,u+=(p=p+l>>>0)<l?1:0,e+n+i+s+c+(u+=(p=p+a>>>0)<a?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,l,c,a){return t+r+o+l+a>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},10:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=l(n(804)),o=l(n(631)),s=l(n(586));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function a(e,t){var n,s,l,u,p,m,d,f,g=[],h={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}g.push(t[p.value])}else g.push(p.value);return n&&(u=function(e,t){var n,r,i=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}(l,e),d=a(e.slice(l+1,u),t),s=i.default.cloneElement(n,{},d),g.push(s),u<e.length-1&&(f=a(e.slice(u+1),t),g=g.concat(f))),1===g.length?g[0]:(g.forEach((function(e,t){e&&(h["interpolation-child-"+t]=e)})),(0,o.default)(h))}t.Z=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var o=(0,s.default)(t);try{return a(o,n)}catch(l){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+l.message+"`");return t}}},586:function(e){"use strict";function t(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},839:function(e,t,n){var r=n(699),i=n(285);function o(e){if(!(this instanceof o))return new o(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=o,i(o,r.EventEmitter),Object.defineProperty(o.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),o.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},o.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},o.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},o.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},o.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},o.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},o.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},o.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function l(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!l)return;var c=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===a&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return l(e,o,i,"day");if(o>=r)return l(e,o,r,"hour");if(o>=n)return l(e,o,n,"minute");if(o>=t)return l(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},320:function(e){"use strict";
|
7 |
/*
|
8 |
object-assign
|
9 |
(c) Sindre Sorhus
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function a(e,t,n,r){var i,o,s,a;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):f(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var l=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw l.context=s,l}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var a=c.length,u=f(c,a);for(n=0;n<a;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return a(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return a(this,e,t,!0)},o.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return m(this,e,!0)},o.prototype.rawListeners=function(e){return m(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},201:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},983:function(e){"use strict";e.exports=function(e,t,n,r,i,o,s,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=[n,r,i,o,s,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return a[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},590:function(e,t,n){"use strict";var r=n(201);e.exports=r},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},79:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=r.rotl32,l=r.sum32,c=r.sum32_5,a=o.ft_1,u=i.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function m(){if(!(this instanceof m))return new m;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(m,u),e.exports=m,m.blockSize=512,m.outSize=160,m.hmacStrength=80,m.padLength=64,m.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],m=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var f=~~(r/20),g=c(s(i,5),a(f,o,u,m),d,n[r],p[f]);d=m,m=u,u=s(o,30),o=i,i=g}this.h[0]=l(this.h[0],i),this.h[1]=l(this.h[1],o),this.h[2]=l(this.h[2],u),this.h[3]=l(this.h[3],m),this.h[4]=l(this.h[4],d)},m.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=l(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},t.zero2=l,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),l=0,c=t;l<s.length;l++,c+=4){var a;a="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[l]=a>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,l){var c=0,a=t;return c+=(a=a+r>>>0)<t?1:0,c+=(a=a+o>>>0)<o?1:0,e+n+i+s+(c+=(a=a+l>>>0)<l?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,l){return t+r+o+l>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,l,c,a){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+o>>>0)<o?1:0,u+=(p=p+l>>>0)<l?1:0,e+n+i+s+c+(u+=(p=p+a>>>0)<a?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,l,c,a){return t+r+o+l+a>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},10:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=l(n(804)),o=l(n(631)),s=l(n(586));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function a(e,t){var n,s,l,u,p,m,d,f,g=[],h={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}g.push(t[p.value])}else g.push(p.value);return n&&(u=function(e,t){var n,r,i=t[e],o=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}(l,e),d=a(e.slice(l+1,u),t),s=i.default.cloneElement(n,{},d),g.push(s),u<e.length-1&&(f=a(e.slice(u+1),t),g=g.concat(f))),1===g.length?g[0]:(g.forEach((function(e,t){e&&(h["interpolation-child-"+t]=e)})),(0,o.default)(h))}t.Z=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var o=(0,s.default)(t);try{return a(o,n)}catch(l){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+l.message+"`");return t}}},586:function(e){"use strict";function t(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},839:function(e,t,n){var r=n(699),i=n(285);function o(e){if(!(this instanceof o))return new o(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=o,i(o,r.EventEmitter),Object.defineProperty(o.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),o.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},o.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},o.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},o.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},o.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},o.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},o.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},o.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function l(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!l)return;var c=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===a&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return l(e,o,i,"day");if(o>=r)return l(e,o,r,"hour");if(o>=n)return l(e,o,n,"minute");if(o>=t)return l(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},320:function(e){"use strict";
|
7 |
/*
|
8 |
object-assign
|
9 |
(c) Sindre Sorhus
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== WordPress.com Editing Toolkit ===
|
2 |
-
Contributors:
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.5
|
5 |
Tested up to: 5.6
|
6 |
-
Stable tag: 2.
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -40,6 +40,15 @@ This plugin is experimental, so we don't provide any support for it outside of w
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
= 2.12 =
|
44 |
* Starter page templates: remove sidebar component (#48948)
|
45 |
* Starter page templates: Prevent links and buttons from being clicked within the layout preview (https://github.com/Automattic/wp-calypso/pull/49024)
|
1 |
=== WordPress.com Editing Toolkit ===
|
2 |
+
Contributors: automattic
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.5
|
5 |
Tested up to: 5.6
|
6 |
+
Stable tag: 2.13
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 2.13 =
|
44 |
+
* New Onboarding Launch: fix plans data-store integration (https://github.com/Automattic/wp-calypso/pull/49304)
|
45 |
+
* Refunds: update copy to reflect 14-day refunds (https://github.com/Automattic/wp-calypso/pull/48872)
|
46 |
+
* Editing toolkit: clean out contributors list in readme (https://github.com/Automattic/wp-calypso/pull/49182)
|
47 |
+
* Fix untranslated text in Domain Picker (https://github.com/Automattic/wp-calypso/pull/49168)
|
48 |
+
* Use @automattic/format-currency package to format prices in Plan Store (https://github.com/Automattic/wp-calypso/pull/49293)
|
49 |
+
* Patterns and SPT: Add pattern_meta is_web param to calls to the ptk/patterns endpoint (https://github.com/Automattic/wp-calypso/pull/49166)
|
50 |
+
* Switch on block pattern modifications (https://github.com/Automattic/wp-calypso/pull/48848)
|
51 |
+
|
52 |
= 2.12 =
|
53 |
* Starter page templates: remove sidebar component (#48948)
|
54 |
* Starter page templates: Prevent links and buttons from being clicked within the layout preview (https://github.com/Automattic/wp-calypso/pull/49024)
|
starter-page-templates/class-starter-page-templates.php
CHANGED
@@ -204,15 +204,17 @@ class Starter_Page_Templates {
|
|
204 |
public function get_page_templates() {
|
205 |
$page_template_data = get_transient( $this->templates_cache_key );
|
206 |
|
|
|
|
|
207 |
// Load fresh data if we don't have any or vertical_id doesn't match.
|
208 |
-
if ( false === $page_template_data || ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ) {
|
209 |
-
$override_source_site = apply_filters( 'a8c_override_patterns_source_site', false );
|
210 |
|
211 |
$request_url = esc_url_raw(
|
212 |
add_query_arg(
|
213 |
array(
|
214 |
-
'site'
|
215 |
-
'tags'
|
|
|
216 |
),
|
217 |
'https://public-api.wordpress.com/rest/v1/ptk/patterns/' . $this->get_verticals_locale()
|
218 |
)
|
@@ -231,7 +233,11 @@ class Starter_Page_Templates {
|
|
231 |
}
|
232 |
|
233 |
$page_template_data = json_decode( wp_remote_retrieve_body( $response ), true );
|
234 |
-
|
|
|
|
|
|
|
|
|
235 |
|
236 |
return $page_template_data;
|
237 |
}
|
204 |
public function get_page_templates() {
|
205 |
$page_template_data = get_transient( $this->templates_cache_key );
|
206 |
|
207 |
+
$override_source_site = apply_filters( 'a8c_override_patterns_source_site', false );
|
208 |
+
|
209 |
// Load fresh data if we don't have any or vertical_id doesn't match.
|
210 |
+
if ( false === $page_template_data || ( defined( 'WP_DEBUG' ) && WP_DEBUG ) || false !== $override_source_site ) {
|
|
|
211 |
|
212 |
$request_url = esc_url_raw(
|
213 |
add_query_arg(
|
214 |
array(
|
215 |
+
'site' => $override_source_site,
|
216 |
+
'tags' => 'layout',
|
217 |
+
'pattern_meta' => 'is_web',
|
218 |
),
|
219 |
'https://public-api.wordpress.com/rest/v1/ptk/patterns/' . $this->get_verticals_locale()
|
220 |
)
|
233 |
}
|
234 |
|
235 |
$page_template_data = json_decode( wp_remote_retrieve_body( $response ), true );
|
236 |
+
|
237 |
+
// Only save to cache if we have not overridden the source site.
|
238 |
+
if ( false === $override_source_site ) {
|
239 |
+
set_transient( $this->templates_cache_key, $page_template_data, DAY_IN_SECONDS );
|
240 |
+
}
|
241 |
|
242 |
return $page_template_data;
|
243 |
}
|
wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '162e134893ba55ed046083caeb3bcba6');
|
wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.js
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,s,u;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,l=h(c,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},32:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=n(561),a=r.sum32,c=r.sum32_4,u=r.sum32_5,l=o.ch32,d=o.maj32,f=o.s0_256,p=o.s1_256,h=o.g0_256,v=o.g1_256,m=i.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 b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(v(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],m=this.h[2],g=this.h[3],b=this.h[4],y=this.h[5],_=this.h[6],w=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=u(w,p(b),l(b,y,_),this.k[r],n[r]),E=a(f(i),d(i,o,m));w=_,_=y,y=b,b=a(g,C),g=m,m=o,o=i,i=a(C,E)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],g),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],_),this.h[7]=a(this.h[7],w)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},t.zero2=a,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,c=t;a<s.length;a++,c+=4){var u;u="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[a]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,a){var c=0,u=t;return c+=(u=u+r>>>0)<t?1:0,c+=(u=u+o>>>0)<o?1:0,e+n+i+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,c,u){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+o>>>0)<o?1:0,l+=(d=d+a>>>0)<a?1:0,e+n+i+s+c+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,c,u){return t+r+o+a+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).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(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},620:function(e,t,n){"use strict";n.r(t);var r=n(68),i=n.n(r),o=window.wp.element,s=window.wp.data,a=window.wp.editPost,c=window.wp.plugins,u=n(260),l=n.n(u),d=n(417),f=n.n(d),p=n(182),h=n.n(p),v=n(527),m=n.n(v),g=n(220),b=n.n(g),y=window.wp.htmlEntities,_=n(49),w=n.n(_),C=w()("calypso:analytics");n(32);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));var E=window.lodash,k=(n(421),n(699)),F=w()("lib/load-script/callback-handler"),S=new Map;function x(){return S}function O(e){return x().has(e)}function A(e,t){var n=x();O(e)?(F('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(F('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=x(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));F(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function j(){var e=this.getAttribute("src");F('Handling successful request for "'.concat(e,'"')),L(e),this.onload=null}function P(){var e=this.getAttribute("src");F('Handling failed request for "'.concat(e,'"')),L(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var N=w()("lib/load-script/dom-operations");w()("package/load-script");function T(e,t){var n;if(!O(e)&&(n=function(e){N('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=j,t.onerror=P,t}(e),N("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){A(e,(function(e){null===e?t():n(e)}))}));A(e,t)}var M,B=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function R(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&T("//stats.wp.com/w2.js?1");var I=new k.EventEmitter;function z(e,t){if(C('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,E.includes)(B,e)){if(M){var n=M(t);t=f()(f()({},t),n)}t=(0,E.omitBy)(t,E.isUndefined),C('Recording event "%s" with actual props %o',e,t),R(["recordEvent",e,t]),I.emit("record-event",e,t)}else C('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var D,U=window.wp.components,W=window.wp.primitives,G=(0,o.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,o.createElement)(W.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),H=(0,o.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(W.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),$=window.wp.i18n,q=window.wp.hooks,V=window.wp.url,J=n(779),K=n.n(J),Q=window.wp.keycodes,Z=window.wp.compose,X="automattic/block-editor-nav-sidebar",Y=((null===(D=window.wpcomBlockEditorNavSidebar)||void 0===D?void 0:D.postIdsToExclude)||[]).map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)})),ee=(0,o.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(W.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),te=function(e){var t=e.children,n=b()(e,["children"]);return(0,o.createElement)(U.Button,n,t)};function ne(e){var t=e.postType,n=(0,E.get)(t,["labels","add_new_item"],(0,$.__)("Create","full-site-editing")),r=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.createPostLabel",n,t.slug),i=(0,V.addQueryArgs)("post-new.php",{post_type:t.slug}),s=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.createPostUrl",i,t.slug);return(0,o.createElement)(te,{target:(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.linkTarget",void 0),isPrimary:!0,className:"wpcom-block-editor-nav-sidebar-create-page",href:s,icon:ee,onClick:function(){z("calypso_editor_sidebar_item_add",{post_type:t.slug})}},r)}var re=(0,o.forwardRef)((function(e,t){var n,r,i,s=e.item,a=e.postType,c=e.selected,u=e.statusLabel,l=K()("wpcom-block-editor-nav-item",{"is-selected":c}),d=K()("wpcom-block-editor-nav-item__title",{"is-untitled":!(null!==(n=s.title)&&void 0!==n&&n.raw)}),f=(0,V.addQueryArgs)("post.php",{post:s.id,action:"edit"}),p=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.editPostUrl",f,s.id,a.slug);return(0,o.createElement)("li",{ref:t},(0,o.createElement)(U.Button,{className:l,href:p,onClick:function(){z("calypso_editor_sidebar_item_edit",{post_type:a.slug})},target:(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.linkTarget",void 0)},(0,o.createElement)("div",{className:d,title:null===(r=s.title)||void 0===r?void 0:r.raw},(null===(i=s.title)||void 0===i?void 0:i.raw)||(0,$._x)("Untitled","post title for posts with no title","full-site-editing")),u&&(0,o.createElement)("div",{className:"wpcom-block-editor-nav-item__label"},u)))})),ie=(0,o.forwardRef)((function(e,t){var n=e.children,r=b()(e,["children"]);return(0,o.createElement)(U.Button,m()({ref:t},r),n)}));var oe=(0,Z.compose)([U.withConstrainedTabbing])((function(){var e,t,n,r=(0,s.useDispatch)(X),a=r.toggleSidebar,c=r.setSidebarClosing,u=(0,s.useSelect)((function(e){var t,n=e("core"),r=n.getPostType,i=n.getSite;return[e(X).isSidebarOpened(),e(X).isSidebarClosing(),r(e("core/editor").getCurrentPostType()),e("core/editor").getCurrentPostId(),null===(t=i())||void 0===t?void 0:t.title]})),d=i()(u,5),p=d[0],v=d[1],m=d[2],g=d[3],b=d[4],_=(0,s.useSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType,s=t.getEditedPostAttribute,a=e("core").getEntityRecords("root","status");if(!a)return[];var c=a.filter((function(e){return e.show_in_list})).map((function(e){return e.slug})).join(","),u=r(),l=o(),d=e("core").getEntityRecords("postType",l,{_fields:"id,status,title",exclude:[u].concat(h()(Y)),orderby:"modified",per_page:10,status:c})||[],f={id:u,status:n()?"draft":s("status"),title:{raw:s("title"),rendered:""}},p=(0,E.partition)(d,{status:"draft"}),v=i()(p,2);return{current:[f],drafts:v[0],recent:v[1]}})),w=_.current,C=_.drafts,k=_.recent,F=(0,s.useSelect)((function(e){return(e("core").getEntityRecords("root","status")||[]).reduce((function(e,t){var n=t.name,r=t.slug;return"publish"===r?e:f()(f()({},e),{},l()({},r,n))}),{})})),S=(0,o.useRef)(p);(0,o.useLayoutEffect)((function(){!p&&S.current&&c(!0),S.current=p}),[p,S,c]);var x=(0,o.useRef)(null);if((0,o.useEffect)((function(){p||v||!x.current||(x.current.focus(),x.current=null)}),[p,v,x]),!m)return null;if(!p&&!v)return null;var O=(0,V.addQueryArgs)("edit.php",{post_type:m.slug}),A=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeUrl",O),L=(0,E.get)(m,["labels","all_items"],(0,$.__)("Back","full-site-editing")),j=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeLabel",L),P=(0,E.get)(m,["labels","name"]),N=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.listHeading",P,m.slug),T="page"===m.slug?(0,$.__)("Contains links to your dashboard or to edit other pages on your site. Press the Escape key to close.","full-site-editing"):(0,$.__)("Contains links to your dashboard or to edit other posts on your site. Press the Escape key to close.","full-site-editing"),M=function(){p&&!v&&(z("calypso_editor_sidebar_dismiss"),a())};return(0,o.createElement)(U.IsolatedEventContainer,{className:K()("wpcom-block-editor-nav-sidebar-nav-sidebar__click-guard",{"is-fading-out":v}),onAnimationEnd:function(e){"wpcom-block-editor-nav-sidebar-nav-sidebar__fade"===e.animationName&&v&&c(!1)},onClick:function(e){e.currentTarget===e.target&&M()},onKeyDown:function(e){e.keyCode===Q.ESCAPE&&(e.stopPropagation(),M())}},(0,o.createElement)("div",{"aria-label":(0,$.__)("Block editor sidebar","full-site-editing"),"aria-description":T,className:K()("wpcom-block-editor-nav-sidebar-nav-sidebar__container",{"is-sliding-left":v}),role:"dialog",tabIndex:-1},(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__header"},(0,o.createElement)(ie,{label:(0,$.__)("Close block editor sidebar","full-site-editing"),showTooltip:!0,ref:function(e){e&&(x.current=document.activeElement,e.focus())},className:K()("edit-post-fullscreen-mode-close","wpcom-block-editor-nav-sidebar-nav-sidebar__dismiss-sidebar-button"),icon:G,iconSize:36,onClick:M}),(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__site-title"},(0,o.createElement)("h2",null,(0,y.decodeEntities)(b)))),(0,o.createElement)(ie,{"aria-description":(0,$.__)("Returns to the dashboard","full-site-editing"),href:A,className:"wpcom-block-editor-nav-sidebar-nav-sidebar__home-button",icon:H,onClick:function(e){(0,q.hasAction)("a8c.wpcom-block-editor.closeEditor")&&(e.preventDefault(),z("calypso_editor_sidebar_editor_close"),(0,q.doAction)("a8c.wpcom-block-editor.closeEditor"))}},j),(0,o.createElement)("h2",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-heading"},N),(0,o.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},(0,$.__)("Currently editing","full-site-editing")),!(0,E.isEmpty)(w)&&(0,o.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},(0,o.createElement)(re,{key:null===(e=w[0])||void 0===e?void 0:e.id,item:w[0],postType:m,selected:(null===(t=w[0])||void 0===t?void 0:t.id)===g,statusLabel:F[null===(n=w[0])||void 0===n?void 0:n.status]})),(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__post-scroll-area"},!(0,E.isEmpty)(k)&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},(0,$.__)("Recently edited","full-site-editing")),(0,o.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},k.map((function(e){return(0,o.createElement)(re,{key:e.id,item:e,postType:m,selected:e.id===g,statusLabel:F[e.status]})})))),!(0,E.isEmpty)(C)&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},(0,$.__)("Drafts","full-site-editing")),(0,o.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},C.map((function(e){return(0,o.createElement)(re,{key:e.id,item:e,postType:m,selected:e.id===g})}))))),(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__bottom-buttons"},(0,o.createElement)(ne,{postType:m}))))}));var se=function(e){var t=e.children,n=b()(e,["children"]);return(0,o.createElement)(U.Button,n,t)};function ae(){var e=(0,s.useDispatch)(X).toggleSidebar,t=(0,s.useSelect)((function(e){return e(X).isSidebarOpened()})),n=(0,s.useSelect)((function(e){return e(X).isSidebarClosing()}));return(0,o.createElement)(se,{label:(0,$.__)("Block editor sidebar","full-site-editing"),showTooltip:!0,className:K()("edit-post-fullscreen-mode-close","wpcom-block-editor-nav-sidebar-toggle-sidebar-button__button",{"is-hidden":t||n}),icon:G,iconSize:36,onClick:function(){z("calypso_editor_sidebar_open"),e()},"aria-haspopup":"dialog","aria-expanded":t})}var ce,ue;void 0!==a.__experimentalMainDashboardButton&&(ce="a8c-full-site-editing-nav-sidebar",ue={render:function(){var e=(0,s.useDispatch)("core").addEntities;(0,o.useEffect)((function(){e([{baseURL:"/wp/v2/statuses",key:"slug",kind:"root",name:"status",plural:"statuses"}])}),[]);var t=(0,o.useState)((function(){return document.createElement("div")})),n=i()(t,1)[0];(0,o.useEffect)((function(){return document.body.appendChild(n),function(){document.body.removeChild(n)}}));var r=(0,s.useSelect)((function(e){return!!e("core/edit-site")})),c=(0,s.useSelect)((function(e){return e("core/edit-post").isFeatureActive("fullscreenMode")}));return r||!c?null:(0,o.createElement)(a.__experimentalMainDashboardButton,null,(0,o.createElement)(ae,null),(0,o.createPortal)((0,o.createElement)(oe,null),n))}},(0,c.registerPlugin)(ce,ue));var le={toggleSidebar:function(){return{type:"TOGGLE_SIDEBAR"}},setSidebarClosing:function(e){return{type:"SET_SIDEBAR_CLOSING",isClosing:e}}},de=(0,s.combineReducers)({opened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SIDEBAR":return!e;default:return e}},closing:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_SIDEBAR_CLOSING":return t.isClosing;default:return e}}});(0,s.registerStore)(X,{actions:le,reducer:de,selectors:{isSidebarOpened:function(e){return e.opened},isSidebarClosing:function(e){return e.closing}}})},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),c=a-(n||a);s.diff=c,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var u=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var r=t.formatters[n];if("function"==typeof r){var o=i[u];e=r.call(s,o),i.splice(u,1),u--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(620)}());
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,s,u;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,l=h(c,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},32:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=n(561),a=r.sum32,c=r.sum32_4,u=r.sum32_5,l=o.ch32,d=o.maj32,f=o.s0_256,p=o.s1_256,h=o.g0_256,v=o.g1_256,m=i.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 b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(v(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],m=this.h[2],g=this.h[3],b=this.h[4],y=this.h[5],_=this.h[6],w=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=u(w,p(b),l(b,y,_),this.k[r],n[r]),E=a(f(i),d(i,o,m));w=_,_=y,y=b,b=a(g,C),g=m,m=o,o=i,i=a(C,E)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],g),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],_),this.h[7]=a(this.h[7],w)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},t.zero2=a,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,c=t;a<s.length;a++,c+=4){var u;u="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[a]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,a){var c=0,u=t;return c+=(u=u+r>>>0)<t?1:0,c+=(u=u+o>>>0)<o?1:0,e+n+i+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,c,u){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+o>>>0)<o?1:0,l+=(d=d+a>>>0)<a?1:0,e+n+i+s+c+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,c,u){return t+r+o+a+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).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(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},620:function(e,t,n){"use strict";n.r(t);var r=n(68),i=n.n(r),o=window.wp.element,s=window.wp.data,a=window.wp.editPost,c=window.wp.plugins,u=n(260),l=n.n(u),d=n(417),f=n.n(d),p=n(182),h=n.n(p),v=n(527),m=n.n(v),g=n(220),b=n.n(g),y=window.wp.htmlEntities,_=n(49),w=n.n(_),C=w()("calypso:analytics");n(32);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));var E=window.lodash,k=(n(421),n(699)),F=w()("lib/load-script/callback-handler"),S=new Map;function x(){return S}function O(e){return x().has(e)}function L(e,t){var n=x();O(e)?(F('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(F('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=x(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));F(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function j(){var e=this.getAttribute("src");F('Handling successful request for "'.concat(e,'"')),A(e),this.onload=null}function P(){var e=this.getAttribute("src");F('Handling failed request for "'.concat(e,'"')),A(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var N=w()("lib/load-script/dom-operations");w()("package/load-script");function T(e,t){var n;if(!O(e)&&(n=function(e){N('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=j,t.onerror=P,t}(e),N("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){L(e,(function(e){null===e?t():n(e)}))}));L(e,t)}var M,B=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function R(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&T("//stats.wp.com/w2.js?1");var I=new k.EventEmitter;function z(e,t){if(C('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,E.includes)(B,e)){if(M){var n=M(t);t=f()(f()({},t),n)}t=(0,E.omitBy)(t,E.isUndefined),C('Recording event "%s" with actual props %o',e,t),R(["recordEvent",e,t]),I.emit("record-event",e,t)}else C('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var D,U=window.wp.components,W=window.wp.primitives,G=(0,o.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,o.createElement)(W.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),H=(0,o.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(W.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),$=window.wp.i18n,q=window.wp.hooks,V=window.wp.url,J=n(779),K=n.n(J),Q=window.wp.keycodes,Z=window.wp.compose,X="automattic/block-editor-nav-sidebar",Y=((null===(D=window.wpcomBlockEditorNavSidebar)||void 0===D?void 0:D.postIdsToExclude)||[]).map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)})),ee=(0,o.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(W.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),te=function(e){var t=e.children,n=b()(e,["children"]);return(0,o.createElement)(U.Button,n,t)};function ne(e){var t=e.postType,n=(0,E.get)(t,["labels","add_new_item"],(0,$.__)("Create","full-site-editing")),r=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.createPostLabel",n,t.slug),i=(0,V.addQueryArgs)("post-new.php",{post_type:t.slug}),s=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.createPostUrl",i,t.slug);return(0,o.createElement)(te,{target:(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.linkTarget",void 0),isPrimary:!0,className:"wpcom-block-editor-nav-sidebar-create-page",href:s,icon:ee,onClick:function(){z("calypso_editor_sidebar_item_add",{post_type:t.slug})}},r)}var re=(0,o.forwardRef)((function(e,t){var n,r,i,s=e.item,a=e.postType,c=e.selected,u=e.statusLabel,l=K()("wpcom-block-editor-nav-item",{"is-selected":c}),d=K()("wpcom-block-editor-nav-item__title",{"is-untitled":!(null!==(n=s.title)&&void 0!==n&&n.raw)}),f=(0,V.addQueryArgs)("post.php",{post:s.id,action:"edit"}),p=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.editPostUrl",f,s.id,a.slug);return(0,o.createElement)("li",{ref:t},(0,o.createElement)(U.Button,{className:l,href:p,onClick:function(){z("calypso_editor_sidebar_item_edit",{post_type:a.slug})},target:(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.linkTarget",void 0)},(0,o.createElement)("div",{className:d,title:null===(r=s.title)||void 0===r?void 0:r.raw},(null===(i=s.title)||void 0===i?void 0:i.raw)||(0,$._x)("Untitled","post title for posts with no title","full-site-editing")),u&&(0,o.createElement)("div",{className:"wpcom-block-editor-nav-item__label"},u)))})),ie=(0,o.forwardRef)((function(e,t){var n=e.children,r=b()(e,["children"]);return(0,o.createElement)(U.Button,m()({ref:t},r),n)}));var oe=(0,Z.compose)([U.withConstrainedTabbing])((function(){var e,t,n,r=(0,s.useDispatch)(X),a=r.toggleSidebar,c=r.setSidebarClosing,u=(0,s.useSelect)((function(e){var t,n=e("core"),r=n.getPostType,i=n.getSite;return[e(X).isSidebarOpened(),e(X).isSidebarClosing(),r(e("core/editor").getCurrentPostType()),e("core/editor").getCurrentPostId(),null===(t=i())||void 0===t?void 0:t.title]})),d=i()(u,5),p=d[0],v=d[1],m=d[2],g=d[3],b=d[4],_=(0,s.useSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType,s=t.getEditedPostAttribute,a=e("core").getEntityRecords("root","status");if(!a)return[];var c=a.filter((function(e){return e.show_in_list})).map((function(e){return e.slug})).join(","),u=r(),l=o(),d=e("core").getEntityRecords("postType",l,{_fields:"id,status,title",exclude:[u].concat(h()(Y)),orderby:"modified",per_page:10,status:c})||[],f={id:u,status:n()?"draft":s("status"),title:{raw:s("title"),rendered:""}},p=(0,E.partition)(d,{status:"draft"}),v=i()(p,2);return{current:[f],drafts:v[0],recent:v[1]}})),w=_.current,C=_.drafts,k=_.recent,F=(0,s.useSelect)((function(e){return(e("core").getEntityRecords("root","status")||[]).reduce((function(e,t){var n=t.name,r=t.slug;return"publish"===r?e:f()(f()({},e),{},l()({},r,n))}),{})})),S=(0,o.useRef)(p);(0,o.useLayoutEffect)((function(){!p&&S.current&&c(!0),S.current=p}),[p,S,c]);var x=(0,o.useRef)(null);if((0,o.useEffect)((function(){p||v||!x.current||(x.current.focus(),x.current=null)}),[p,v,x]),!m)return null;if(!p&&!v)return null;var O=(0,V.addQueryArgs)("edit.php",{post_type:m.slug}),L=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeUrl",O),A=(0,E.get)(m,["labels","all_items"],(0,$.__)("Back","full-site-editing")),j=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeLabel",A),P=(0,E.get)(m,["labels","name"]),N=(0,q.applyFilters)("a8c.WpcomBlockEditorNavSidebar.listHeading",P,m.slug),T="page"===m.slug?(0,$.__)("Contains links to your dashboard or to edit other pages on your site. Press the Escape key to close.","full-site-editing"):(0,$.__)("Contains links to your dashboard or to edit other posts on your site. Press the Escape key to close.","full-site-editing"),M=function(){p&&!v&&(z("calypso_editor_sidebar_dismiss"),a())};return(0,o.createElement)(U.IsolatedEventContainer,{className:K()("wpcom-block-editor-nav-sidebar-nav-sidebar__click-guard",{"is-fading-out":v}),onAnimationEnd:function(e){"wpcom-block-editor-nav-sidebar-nav-sidebar__fade"===e.animationName&&v&&c(!1)},onClick:function(e){e.currentTarget===e.target&&M()},onKeyDown:function(e){e.keyCode===Q.ESCAPE&&(e.stopPropagation(),M())}},(0,o.createElement)("div",{"aria-label":(0,$.__)("Block editor sidebar","full-site-editing"),"aria-description":T,className:K()("wpcom-block-editor-nav-sidebar-nav-sidebar__container",{"is-sliding-left":v}),role:"dialog",tabIndex:-1},(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__header"},(0,o.createElement)(ie,{label:(0,$.__)("Close block editor sidebar","full-site-editing"),showTooltip:!0,ref:function(e){e&&(x.current=document.activeElement,e.focus())},className:K()("edit-post-fullscreen-mode-close","wpcom-block-editor-nav-sidebar-nav-sidebar__dismiss-sidebar-button"),icon:G,iconSize:36,onClick:M}),(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__site-title"},(0,o.createElement)("h2",null,(0,y.decodeEntities)(b)))),(0,o.createElement)(ie,{"aria-description":(0,$.__)("Returns to the dashboard","full-site-editing"),href:L,className:"wpcom-block-editor-nav-sidebar-nav-sidebar__home-button",icon:H,onClick:function(e){(0,q.hasAction)("a8c.wpcom-block-editor.closeEditor")&&(e.preventDefault(),z("calypso_editor_sidebar_editor_close"),(0,q.doAction)("a8c.wpcom-block-editor.closeEditor"))}},j),(0,o.createElement)("h2",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-heading"},N),(0,o.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},(0,$.__)("Currently editing","full-site-editing")),!(0,E.isEmpty)(w)&&(0,o.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},(0,o.createElement)(re,{key:null===(e=w[0])||void 0===e?void 0:e.id,item:w[0],postType:m,selected:(null===(t=w[0])||void 0===t?void 0:t.id)===g,statusLabel:F[null===(n=w[0])||void 0===n?void 0:n.status]})),(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__post-scroll-area"},!(0,E.isEmpty)(k)&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},(0,$.__)("Recently edited","full-site-editing")),(0,o.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},k.map((function(e){return(0,o.createElement)(re,{key:e.id,item:e,postType:m,selected:e.id===g,statusLabel:F[e.status]})})))),!(0,E.isEmpty)(C)&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},(0,$.__)("Drafts","full-site-editing")),(0,o.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},C.map((function(e){return(0,o.createElement)(re,{key:e.id,item:e,postType:m,selected:e.id===g})}))))),(0,o.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__bottom-buttons"},(0,o.createElement)(ne,{postType:m}))))}));var se=function(e){var t=e.children,n=b()(e,["children"]);return(0,o.createElement)(U.Button,n,t)};function ae(){var e=(0,s.useDispatch)(X).toggleSidebar,t=(0,s.useSelect)((function(e){return e(X).isSidebarOpened()})),n=(0,s.useSelect)((function(e){return e(X).isSidebarClosing()}));return(0,o.createElement)(se,{label:(0,$.__)("Block editor sidebar","full-site-editing"),showTooltip:!0,className:K()("edit-post-fullscreen-mode-close","wpcom-block-editor-nav-sidebar-toggle-sidebar-button__button",{"is-hidden":t||n}),icon:G,iconSize:36,onClick:function(){z("calypso_editor_sidebar_open"),e()},"aria-haspopup":"dialog","aria-expanded":t})}var ce,ue;void 0!==a.__experimentalMainDashboardButton&&(ce="a8c-full-site-editing-nav-sidebar",ue={render:function(){var e=(0,s.useDispatch)("core").addEntities;(0,o.useEffect)((function(){e([{baseURL:"/wp/v2/statuses",key:"slug",kind:"root",name:"status",plural:"statuses"}])}),[]);var t=(0,o.useState)((function(){return document.createElement("div")})),n=i()(t,1)[0];(0,o.useEffect)((function(){return document.body.appendChild(n),function(){document.body.removeChild(n)}}));var r=(0,s.useSelect)((function(e){return!!e("core/edit-site")})),c=(0,s.useSelect)((function(e){return e("core/edit-post").isFeatureActive("fullscreenMode")}));return r||!c?null:(0,o.createElement)(a.__experimentalMainDashboardButton,null,(0,o.createElement)(ae,null),(0,o.createPortal)((0,o.createElement)(oe,null),n))}},(0,c.registerPlugin)(ce,ue));var le={toggleSidebar:function(){return{type:"TOGGLE_SIDEBAR"}},setSidebarClosing:function(e){return{type:"SET_SIDEBAR_CLOSING",isClosing:e}}},de=(0,s.combineReducers)({opened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SIDEBAR":return!e;default:return e}},closing:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_SIDEBAR_CLOSING":return t.isClosing;default:return e}}});(0,s.registerStore)(X,{actions:le,reducer:de,selectors:{isSidebarOpened:function(e){return e.opened},isSidebarClosing:function(e){return e.closing}}})},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),c=a-(n||a);s.diff=c,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var u=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var r=t.formatters[n];if("function"==typeof r){var o=i[u];e=r.call(s,o),i.splice(u,1),u--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(620)}());
|
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => '2a2e8d2520f646369c6c1b126af017ed');
|
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},232:function(e,t,n){var r=n(270);e.exports=function(e){if(Array.isArray(e))return r(e)}},954:function(e){function t(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=e.apply(n,r);function a(e){t(s,i,o,a,u,"next",e)}function u(e){t(s,i,o,a,u,"throw",e)}a(void 0)}))}}},260:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},527:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(_n=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(a){r=!0,i=a}finally{try{_n||null==s.return||s.return()}finally{if(r)throw i}}return n}}},365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(260);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},68:function(e,t,n){var r=n(180),i=n(981),o=n(487),s=n(365);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()}},182:function(e,t,n){var r=n(232),i=n(557),o=n(487),s=n(359);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},487:function(e,t,n){var r=n(270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,s,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},32:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=n(561),a=r.sum32,u=r.sum32_4,c=r.sum32_5,l=o.ch32,d=o.maj32,f=o.s0_256,p=o.s1_256,h=o.g0_256,g=o.g1_256,v=i.BlockHash,m=[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 y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,v),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(g(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],v=this.h[2],m=this.h[3],y=this.h[4],w=this.h[5],_=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=c(b,p(y),l(y,w,_),this.k[r],n[r]),x=a(f(i),d(i,o,v));b=_,_=w,w=y,y=a(m,C),m=v,v=o,o=i,i=a(C,x)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],v),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],w),this.h[6]=a(this.h[6],_),this.h[7]=a(this.h[7],b)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=u(i.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+n+i+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,u,c){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+o>>>0)<o?1:0,l+=(d=d+a>>>0)<a?1:0,e+n+i+s+u+(l+=(d=d+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,u,c){return t+r+o+a+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,u){u=u||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).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(e);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*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return u.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},877:function(e,t,n){"use strict";n.r(t);var r=window.wp.apiFetch,i=n.n(r),o=window.wp.data,s=(0,o.combineReducers)({isNuxEnabled:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS":return t.isNuxEnabled;default:return e}},isGuideManuallyOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_SET_GUIDE_OPEN":return t.isGuideManuallyOpened;default:return e}}}),a={setWpcomNuxStatus:function(e){var t=e.isNuxEnabled;return e.bypassApi||i()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{isNuxEnabled:t}}),{type:"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS",isNuxEnabled:t}},setGuideOpenStatus:function(e){return{type:"WPCOM_BLOCK_EDITOR_SET_GUIDE_OPEN",isGuideManuallyOpened:e.isGuideManuallyOpened}}};(0,o.registerStore)("automattic/nux",{reducer:s,actions:a,selectors:{isGuideManuallyOpened:function(e){return e.isGuideManuallyOpened},isWpcomNuxEnabled:function(e){return e.isNuxEnabled}},persist:!0});window.wp.nux;var u=(0,o.subscribe)((function(){var e;(0,o.dispatch)("core/nux").disableTips(),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),u()}));(0,o.subscribe)((function(){var e;(0,o.select)("core/nux").areTipsEnabled()&&((0,o.dispatch)("core/nux").disableTips(),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0})),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0}),(0,o.dispatch)("automattic/nux").setGuideOpenStatus({isGuideManuallyOpened:!0}))}));var c=n(527),l=n.n(c),d=n(954),f=n.n(d),p=window.wp.element,h=(n(945),window.wp.components),g=window.wp.i18n,v=window.wp.plugins,m=n(49),y=n.n(m),w=y()("calypso:analytics");n(32);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(68);var _=n(417),b=n.n(_),C=(n(182),window.lodash),x=(n(421),n(699)),O=y()("lib/load-script/callback-handler"),E=new Map;function F(){return E}function S(e){return F().has(e)}function k(e,t){var n=F();S(e)?(O('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(O('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=F(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));O(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function L(){var e=this.getAttribute("src");O('Handling successful request for "'.concat(e,'"')),A(e),this.onload=null}function j(){var e=this.getAttribute("src");O('Handling failed request for "'.concat(e,'"')),A(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var N=y()("lib/load-script/dom-operations");y()("package/load-script");function P(e,t){var n;if(!S(e)&&(n=function(e){N('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=L,t.onerror=j,t}(e),N("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){k(e,(function(e){null===e?t():n(e)}))}));k(e,t)}var M,T=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function G(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&P("//stats.wp.com/w2.js?1");var I=new x.EventEmitter;function R(e,t){if(w('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,C.includes)(T,e)){if(M){var n=M(t);t=b()(b()({},t),n)}t=(0,C.omitBy)(t,C.isUndefined),w('Recording event "%s" with actual props %o',e,t),G(["recordEvent",e,t]),I.emit("record-event",e,t)}else w('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var B=window.wp.url,W=n(807),U=n.n(W),z=n(316),D=n.n(z),$=n(826),H=n.n($),q=n(288),K=n.n(q),J=n(131),X=n.n(J),Z=n(895),Q=n.n(Z);function V(){var e,t=(0,o.useSelect)((function(e){return{isWpcomNuxEnabled:e("automattic/nux").isWpcomNuxEnabled(),isSPTOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),site:e("automattic/site").getSite(window._currentSiteId),isGuideManuallyOpened:e("automattic/nux").isGuideManuallyOpened()}})),n=t.isWpcomNuxEnabled,r=t.isSPTOpen,s=t.site,a=t.isGuideManuallyOpened,u=(0,o.useDispatch)("core/edit-post").closeGeneralSidebar,c=(0,o.useDispatch)("automattic/nux"),d=c.setWpcomNuxStatus,v=c.setGuideOpenStatus;if((0,p.useEffect)((function(){void 0===n&&function(){var e=f()(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i()({path:"/wpcom/v2/block-editor/nux"});case 2:t=e.sent,d({isNuxEnabled:t.is_nux_enabled,bypassApi:!0});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[n,d]),(0,p.useEffect)((function(){n&&u()}),[u,n]),(0,p.useEffect)((function(){var e;n&&!r&&R("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,is_manually_opened:a})}),[n,r,a]),!n||r)return null;var m=!(null==s||null===(e=s.options)||void 0===e||!e.anchor_podcast),y=(0,B.getQueryArg)(window.location.href,"anchor_episode"),w=function(e){if(e)return[{heading:(0,g.__)("Create your first episode","full-site-editing"),description:(0,g.__)("Let’s get your first episode set up and ready to share. It’ll remain private until you’re ready to launch.","full-site-editing"),imgSrc:H(),alignBottom:!0},{heading:(0,g.__)("Add a text transcription","full-site-editing"),description:(0,g.__)("Add more accessible content to your episode. Edit the placeholder content on your page to add a transcript of your episode audio.","full-site-editing"),imgSrc:K(),alignBottom:!0},{heading:(0,g.__)("Preview your page as you go","full-site-editing"),description:(0,g.__)("This is a post page with your episode content. Click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:X(),alignBottom:!0}];return[{heading:(0,g.__)("Welcome to your website","full-site-editing"),description:(0,g.__)("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:D(),alignBottom:!0},{heading:(0,g.__)("Add or edit your content","full-site-editing"),description:(0,g.__)("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:U()},{heading:(0,g.__)("Preview your site as you go","full-site-editing"),description:(0,g.__)("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:X(),alignBottom:!0},{heading:(0,g.__)("Hidden until you’re ready","full-site-editing"),description:(0,g.__)("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","full-site-editing"),imgSrc:Q(),alignBottom:!0}]}(m&&y);return(0,p.createElement)(h.Guide,{className:"wpcom-block-editor-nux",contentLabel:(0,g.__)("Welcome to your website","full-site-editing"),finishButtonText:(0,g.__)("Get started","full-site-editing"),onFinish:function(){var e;R("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),d({isNuxEnabled:!1}),v({isGuideManuallyOpened:!1})}},w.map((function(e,t){return(0,p.createElement)(Y,l()({key:e.heading,pageNumber:t+1,isLastPage:t===w.length-1},e))})))}function Y(e){var t=e.pageNumber,n=e.isLastPage,r=e.alignBottom,i=void 0!==r&&r,o=e.heading,s=e.description,a=e.imgSrc;return(0,p.useEffect)((function(){var e;R("calypso_editor_wpcom_nux_slide_view",{slide_number:t,is_last_slide:n,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})}),[]),(0,p.createElement)(h.GuidePage,{className:"wpcom-block-editor-nux__page"},(0,p.createElement)("div",{className:"wpcom-block-editor-nux__text"},(0,p.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},o),(0,p.createElement)("div",{className:"wpcom-block-editor-nux__description"},s)),(0,p.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,p.createElement)("img",{key:a,src:a,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(i?" align-bottom":"")})))}h.Guide&&h.GuidePage&&(0,v.registerPlugin)("wpcom-block-editor-nux",{render:function(){return(0,p.createElement)(V,null)}})},945:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var o=i[c];e=r.call(s,o),i.splice(c,1),c--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},807:function(e,t,n){e.exports=n.p+"images/block-picker-53b676a08dd25f523d4adb0157a40b4c.svg"},826:function(e,t,n){e.exports=n.p+"images/editor-podcast-bc4ffa5867c3bd4651d339f37e691571.svg"},316:function(e,t,n){e.exports=n.p+"images/editor-1a0c404dcc59d4a340edb4649127f4c9.svg"},131:function(e,t,n){e.exports=n.p+"images/preview-a2ab6dbfd49f58a76c13c9dab8b09e0e.svg"},895:function(e,t,n){e.exports=n.p+"images/private-598e2a26fcb0c685d165d750fdf02364.svg"},288:function(e,t,n){e.exports=n.p+"images/transcription-8186cc772deeb35d3526399ddafe144c.svg"}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),n(877)}());
|
1 |
+
!function(e,t){for(var n in t)e[n]=t[n];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){var e={270:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},180:function(e){e.exports=function(e){if(Array.isArray(e))return e}},232:function(e,t,n){var r=n(270);e.exports=function(e){if(Array.isArray(e))return r(e)}},954:function(e){function t(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=e.apply(n,r);function a(e){t(s,i,o,a,u,"next",e)}function u(e){t(s,i,o,a,u,"throw",e)}a(void 0)}))}}},260:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},527:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},557:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},981:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(_n=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(a){r=!0,i=a}finally{try{_n||null==s.return||s.return()}finally{if(r)throw i}}return n}}},365:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},359:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},417:function(e,t,n){var r=n(260);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},68:function(e,t,n){var r=n(180),i=n(981),o=n(487),s=n(365);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()}},182:function(e,t,n){var r=n(232),i=n(557),o=n(487),s=n(359);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},487:function(e,t,n){var r=n(270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,s,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},32:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=n(561),a=r.sum32,u=r.sum32_4,c=r.sum32_5,l=o.ch32,f=o.maj32,d=o.s0_256,p=o.s1_256,h=o.g0_256,g=o.g1_256,v=i.BlockHash,m=[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 y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,v),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(g(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],v=this.h[2],m=this.h[3],y=this.h[4],w=this.h[5],_=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=c(b,p(y),l(y,w,_),this.k[r],n[r]),x=a(d(i),f(i,o,v));b=_,_=w,w=y,y=a(m,C),m=v,v=o,o=i,i=a(C,x)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],v),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],w),this.h[6]=a(this.h[6],_),this.h[7]=a(this.h[7],b)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=u(i.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+n+i+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,u,c){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+a>>>0)<a?1:0,e+n+i+s+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,u,c){return t+r+o+a+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,u){u=u||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).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(e);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*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return u.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},877:function(e,t,n){"use strict";n.r(t);var r=window.wp.apiFetch,i=n.n(r),o=window.wp.data,s=(0,o.combineReducers)({isNuxEnabled:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS":return t.isNuxEnabled;default:return e}},isGuideManuallyOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_SET_GUIDE_OPEN":return t.isGuideManuallyOpened;default:return e}}}),a={setWpcomNuxStatus:function(e){var t=e.isNuxEnabled;return e.bypassApi||i()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{isNuxEnabled:t}}),{type:"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS",isNuxEnabled:t}},setGuideOpenStatus:function(e){return{type:"WPCOM_BLOCK_EDITOR_SET_GUIDE_OPEN",isGuideManuallyOpened:e.isGuideManuallyOpened}}};(0,o.registerStore)("automattic/nux",{reducer:s,actions:a,selectors:{isGuideManuallyOpened:function(e){return e.isGuideManuallyOpened},isWpcomNuxEnabled:function(e){return e.isNuxEnabled}},persist:!0});window.wp.nux;var u=(0,o.subscribe)((function(){var e;(0,o.dispatch)("core/nux").disableTips(),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),u()}));(0,o.subscribe)((function(){var e;(0,o.select)("core/nux").areTipsEnabled()&&((0,o.dispatch)("core/nux").disableTips(),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0})),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0}),(0,o.dispatch)("automattic/nux").setGuideOpenStatus({isGuideManuallyOpened:!0}))}));var c=n(527),l=n.n(c),f=n(954),d=n.n(f),p=window.wp.element,h=(n(945),window.wp.components),g=window.wp.i18n,v=window.wp.plugins,m=n(49),y=n.n(m),w=y()("calypso:analytics");n(32);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(68);var _=n(417),b=n.n(_),C=(n(182),window.lodash),x=(n(421),n(699)),O=y()("lib/load-script/callback-handler"),E=new Map;function F(){return E}function S(e){return F().has(e)}function k(e,t){var n=F();S(e)?(O('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(O('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=F(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));O(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function L(){var e=this.getAttribute("src");O('Handling successful request for "'.concat(e,'"')),A(e),this.onload=null}function j(){var e=this.getAttribute("src");O('Handling failed request for "'.concat(e,'"')),A(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var P=y()("lib/load-script/dom-operations");y()("package/load-script");function N(e,t){var n;if(!S(e)&&(n=function(e){P('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=L,t.onerror=j,t}(e),P("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){k(e,(function(e){null===e?t():n(e)}))}));k(e,t)}var M,T=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function G(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&N("//stats.wp.com/w2.js?1");var I=new x.EventEmitter;function R(e,t){if(w('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,C.includes)(T,e)){if(M){var n=M(t);t=b()(b()({},t),n)}t=(0,C.omitBy)(t,C.isUndefined),w('Recording event "%s" with actual props %o',e,t),G(["recordEvent",e,t]),I.emit("record-event",e,t)}else w('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var B=window.wp.url,W=n(807),U=n.n(W),z=n(316),D=n.n(z),$=n(826),H=n.n($),q=n(288),K=n.n(q),J=n(131),X=n.n(J),Z=n(895),Q=n.n(Z);function V(){var e,t=(0,o.useSelect)((function(e){return{isWpcomNuxEnabled:e("automattic/nux").isWpcomNuxEnabled(),isSPTOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),site:e("automattic/site").getSite(window._currentSiteId),isGuideManuallyOpened:e("automattic/nux").isGuideManuallyOpened()}})),n=t.isWpcomNuxEnabled,r=t.isSPTOpen,s=t.site,a=t.isGuideManuallyOpened,u=(0,o.useDispatch)("core/edit-post").closeGeneralSidebar,c=(0,o.useDispatch)("automattic/nux"),f=c.setWpcomNuxStatus,v=c.setGuideOpenStatus;if((0,p.useEffect)((function(){void 0===n&&function(){var e=d()(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i()({path:"/wpcom/v2/block-editor/nux"});case 2:t=e.sent,f({isNuxEnabled:t.is_nux_enabled,bypassApi:!0});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[n,f]),(0,p.useEffect)((function(){n&&u()}),[u,n]),(0,p.useEffect)((function(){var e;n&&!r&&R("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,is_manually_opened:a})}),[n,r,a]),!n||r)return null;var m=!(null==s||null===(e=s.options)||void 0===e||!e.anchor_podcast),y=(0,B.getQueryArg)(window.location.href,"anchor_episode"),w=function(e){if(e)return[{heading:(0,g.__)("Create your first episode","full-site-editing"),description:(0,g.__)("Let’s get your first episode set up and ready to share. It’ll remain private until you’re ready to launch.","full-site-editing"),imgSrc:H(),alignBottom:!0},{heading:(0,g.__)("Add a text transcription","full-site-editing"),description:(0,g.__)("Add more accessible content to your episode. Edit the placeholder content on your page to add a transcript of your episode audio.","full-site-editing"),imgSrc:K(),alignBottom:!0},{heading:(0,g.__)("Preview your page as you go","full-site-editing"),description:(0,g.__)("This is a post page with your episode content. Click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:X(),alignBottom:!0}];return[{heading:(0,g.__)("Welcome to your website","full-site-editing"),description:(0,g.__)("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:D(),alignBottom:!0},{heading:(0,g.__)("Add or edit your content","full-site-editing"),description:(0,g.__)("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:U()},{heading:(0,g.__)("Preview your site as you go","full-site-editing"),description:(0,g.__)("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:X(),alignBottom:!0},{heading:(0,g.__)("Hidden until you’re ready","full-site-editing"),description:(0,g.__)("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","full-site-editing"),imgSrc:Q(),alignBottom:!0}]}(m&&y);return(0,p.createElement)(h.Guide,{className:"wpcom-block-editor-nux",contentLabel:(0,g.__)("Welcome to your website","full-site-editing"),finishButtonText:(0,g.__)("Get started","full-site-editing"),onFinish:function(){var e;R("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),f({isNuxEnabled:!1}),v({isGuideManuallyOpened:!1})}},w.map((function(e,t){return(0,p.createElement)(Y,l()({key:e.heading,pageNumber:t+1,isLastPage:t===w.length-1},e))})))}function Y(e){var t=e.pageNumber,n=e.isLastPage,r=e.alignBottom,i=void 0!==r&&r,o=e.heading,s=e.description,a=e.imgSrc;return(0,p.useEffect)((function(){var e;R("calypso_editor_wpcom_nux_slide_view",{slide_number:t,is_last_slide:n,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})}),[]),(0,p.createElement)(h.GuidePage,{className:"wpcom-block-editor-nux__page"},(0,p.createElement)("div",{className:"wpcom-block-editor-nux__text"},(0,p.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},o),(0,p.createElement)("div",{className:"wpcom-block-editor-nux__description"},s)),(0,p.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,p.createElement)("img",{key:a,src:a,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(i?" align-bottom":"")})))}h.Guide&&h.GuidePage&&(0,v.registerPlugin)("wpcom-block-editor-nux",{render:function(){return(0,p.createElement)(V,null)}})},945:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var o=i[c];e=r.call(s,o),i.splice(c,1),c--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},807:function(e,t,n){e.exports=n.p+"images/block-picker-53b676a08dd25f523d4adb0157a40b4c.svg"},826:function(e,t,n){e.exports=n.p+"images/editor-podcast-bc4ffa5867c3bd4651d339f37e691571.svg"},316:function(e,t,n){e.exports=n.p+"images/editor-1a0c404dcc59d4a340edb4649127f4c9.svg"},131:function(e,t,n){e.exports=n.p+"images/preview-a2ab6dbfd49f58a76c13c9dab8b09e0e.svg"},895:function(e,t,n){e.exports=n.p+"images/private-598e2a26fcb0c685d165d750fdf02364.svg"},288:function(e,t,n){e.exports=n.p+"images/transcription-8186cc772deeb35d3526399ddafe144c.svg"}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),n(877)}());
|
wpcom-block-editor-welcome-tour/README.md
CHANGED
@@ -2,6 +2,6 @@
|
|
2 |
|
3 |
A help tour to show new users some of the basics of using the editor.
|
4 |
|
5 |
-
|
6 |
|
7 |
-
Instructions for testing the modal, and for resetting the state of `nux-status` so that the modal is shown again can be found here https://github.com/Automattic/wp-calypso/pull/47779
|
2 |
|
3 |
A help tour to show new users some of the basics of using the editor.
|
4 |
|
5 |
+
## Testing Instructions
|
6 |
|
7 |
+
Instructions for testing the modal, and for resetting the state of `nux-status` so that the modal is shown again can be found here [https://github.com/Automattic/wp-calypso/pull/47779](https://github.com/Automattic/wp-calypso/pull/47779)
|
wpcom-block-editor-welcome-tour/dist/wpcom-block-editor-welcome-tour.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '59939a0fed910e5a10b8b666611a603f');
|
wpcom-block-editor-welcome-tour/dist/wpcom-block-editor-welcome-tour.js
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,s,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},32:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=n(561),a=r.sum32,u=r.sum32_4,c=r.sum32_5,l=o.ch32,d=o.maj32,f=o.s0_256,p=o.s1_256,h=o.g0_256,m=o.g1_256,g=i.BlockHash,v=[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;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(w,g),e.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(m(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],_=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=c(b,p(w),l(w,y,_),this.k[r],n[r]),E=a(f(i),d(i,o,g));b=_,_=y,y=w,w=a(v,C),v=g,g=o,o=i,i=a(C,E)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],v),this.h[4]=a(this.h[4],w),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],_),this.h[7]=a(this.h[7],b)},w.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=u(i.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+n+i+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,u,c){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+o>>>0)<o?1:0,l+=(d=d+a>>>0)<a?1:0,e+n+i+s+u+(l+=(d=d+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,u,c){return t+r+o+a+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,u){u=u||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).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(e);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*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return u.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},297:function(e,t,n){"use strict";n.r(t);var r=window.wp.apiFetch,i=n.n(r),o=window.wp.data,s=(0,o.combineReducers)({isNuxEnabled:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS":return t.isNuxEnabled;default:return e}},isTourManuallyOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_SET_TOUR_OPEN":return t.isTourManuallyOpened;default:return e}},tourRating:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_SET_TOUR_RATING":return t.tourRating;default:return e}}}),a={setWpcomNuxStatus:function(e){var t=e.isNuxEnabled;return e.bypassApi||i()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{isNuxEnabled:t}}),{type:"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS",isNuxEnabled:t}},setTourRating:function(e){return{type:"WPCOM_BLOCK_EDITOR_SET_TOUR_RATING",tourRating:e}},setTourOpenStatus:function(e){return{type:"WPCOM_BLOCK_EDITOR_SET_TOUR_OPEN",isTourManuallyOpened:e.isTourManuallyOpened}}};(0,o.registerStore)("automattic/nux",{reducer:s,actions:a,selectors:{isTourManuallyOpened:function(e){return e.isTourManuallyOpened},isWpcomNuxEnabled:function(e){return e.isNuxEnabled},tourRating:function(e){return e.tourRating}},persist:!0});window.wp.nux;var u=(0,o.subscribe)((function(){var e;(0,o.dispatch)("core/nux").disableTips(),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),u()}));(0,o.subscribe)((function(){var e;(0,o.select)("core/nux").areTipsEnabled()&&((0,o.dispatch)("core/nux").disableTips(),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0})),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0}),(0,o.dispatch)("automattic/nux").setTourOpenStatus({isTourManuallyOpened:!0}))}));var c=n(68),l=n.n(c),d=n(954),f=n.n(d),p=window.wp.element,h=(n(116),window.lodash),m=window.wp.i18n,g=window.wp.primitives,v=window.wp.components;function w(e){var t=e.currentPage,n=e.numberOfPages,r=e.setCurrentPage;return(0,p.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,m.__)("Guide controls","full-site-editing")},(0,h.times)(n,(function(e){return(0,p.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},(0,p.createElement)(v.Button,{key:e,icon:(0,p.createElement)(y,{isSelected:e===t}),"aria-label":(0,m.sprintf)((0,m.__)("Page %1$d of %2$d","full-site-editing"),e+1,n),onClick:function(){return r(e)}}))})))}var y=function(e){var t=e.isSelected;return(0,p.createElement)(g.SVG,{width:"6",height:"6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Circle,{cx:"3",cy:"3",r:"3",fill:t?"#32373C":"#E1E3E6"}))},_=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.514 9.988l-3.476.016c.627-.626 1.225-1.22 1.82-1.811l.03-.03v-.001c.977-.971 1.944-1.933 3.015-3.004l-1.06-1.06c-1.07 1.069-2.037 2.03-3.013 3.001l-.03.03-1.818 1.809.03-3.449-1.5-.013-.045 5.28-.007.76.76-.004 5.301-.024-.007-1.5zM5.486 14.012l3.477-.016-1.82 1.811-.03.03c-.977.972-1.945 1.934-3.015 3.005l1.06 1.06c1.07-1.068 2.035-2.03 3.012-3V16.9l.03-.03 1.818-1.809-.03 3.449 1.5.013.046-5.28.006-.76-.76.004-5.3.024.006 1.5z",fill:"#fff"})),b=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 4.023a.667.667 0 011.227.416l-.436 4.99h3.88c.954 0 1.64.916 1.37 1.831l-1.753 5.963a.286.286 0 01-.274.206H9.429V9.84l3.702-5.818zM7.714 10v7.428h-2V10h2zm5.98-8c-.814 0-1.572.416-2.01 1.103L8.388 8.286H4v10.857h13.145a2 2 0 001.919-1.436l1.753-5.963a3.143 3.143 0 00-3.015-4.03h-2.01l.274-3.125A2.381 2.381 0 0013.694 2z",fill:"#000"})),C=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 19.12a.667.667 0 001.227-.417l-.436-4.989h3.88c.954 0 1.64-.916 1.37-1.831L17.42 5.919a.286.286 0 00-.274-.205H9.429v7.588l3.702 5.818zm-5.417-5.977V5.714h-2v7.429h2zm5.98 8a2.381 2.381 0 01-2.01-1.103l-3.297-5.183H4V4h13.145a2 2 0 011.919 1.436l1.753 5.963a3.143 3.143 0 01-3.015 4.03h-2.01l.274 3.125a2.381 2.381 0 01-2.372 2.589z",fill:"#000"})),E=n(779),x=n.n(E),O=(0,p.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,p.createElement)(g.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),S=n(49),F=n.n(S),k=F()("calypso:analytics");n(32);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));var j=n(417),T=n.n(j),P=(n(182),n(421),n(699)),M=F()("lib/load-script/callback-handler"),A=new Map;function L(){return A}function N(e){return L().has(e)}function z(e,t){var n=L();N(e)?(M('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(M('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=L(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));M(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function I(){var e=this.getAttribute("src");M('Handling successful request for "'.concat(e,'"')),R(e),this.onload=null}function D(){var e=this.getAttribute("src");M('Handling failed request for "'.concat(e,'"')),R(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var G=F()("lib/load-script/dom-operations");F()("package/load-script");function W(e,t){var n;if(!N(e)&&(n=function(e){G('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=I,t.onerror=D,t}(e),G("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){z(e,(function(e){null===e?t():n(e)}))}));z(e,t)}var B,U=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function V(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&W("//stats.wp.com/w2.js?1");var $=new P.EventEmitter;function H(e,t){if(k('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,h.includes)(U,e)){if(B){var n=B(t);t=T()(T()({},t),n)}t=(0,h.omitBy)(t,h.isUndefined),k('Recording event "%s" with actual props %o',e,t),V(["recordEvent",e,t]),$.emit("record-event",e,t)}else k('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}function J(e){var t=e.cardIndex,n=e.lastCardIndex,r=e.onDismiss,i=e.setCurrentCardIndex;return(0,p.createElement)(p.Fragment,null,(0,p.createElement)(w,{currentPage:t,numberOfPages:n+1,setCurrentPage:i}),(0,p.createElement)("div",null,0===t?(0,p.createElement)(v.Button,{isTertiary:!0,onClick:function(){return r("no-thanks-btn")}},(0,m.__)("Skip","full-site-editing")):(0,p.createElement)(v.Button,{isTertiary:!0,onClick:function(){return i(t-1)}},(0,m.__)("Back","full-site-editing")),(0,p.createElement)(v.Button,{className:"welcome-tour-card__next-btn",isPrimary:!0,onClick:function(){return i(t+1)}},0===t?(0,m.__)("Start Tour","full-site-editing"):(0,m.__)("Next","full-site-editing"))))}function K(e){var t=e.onMinimize,n=e.onDismiss,r=e.slideNumber;return(0,p.createElement)("div",{className:"welcome-tour-card__overlay-controls"},(0,p.createElement)(v.Flex,null,(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Minimize Tour","full-site-editing"),isPrimary:!0,className:"welcome-tour-card__minimize-icon",icon:_,iconSize:24,onClick:function(){var e;t(!0),H("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,slide_number:r})}}),(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Close Tour","full-site-editing"),isPrimary:!0,icon:O,iconSize:24,onClick:function(){return n("close-btn")}})))}function q(){var e=!1,t=(0,o.useSelect)((function(e){return e("automattic/nux").tourRating()})),n=(0,o.useDispatch)("automattic/nux").setTourRating;!e&&t&&(e=!0);var r=function(t){var r;e||(e=!0,n(t?"thumbs-up":"thumbs-down"),H("calypso_editor_wpcom_tour_rate",{thumbs_up:t,is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding}))};return(0,p.createElement)(p.Fragment,null,(0,p.createElement)("p",{className:"welcome-tour__end-text"},"Did you find this guide helpful?"),(0,p.createElement)("div",null,(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Rate thumbs up","full-site-editing"),className:x()("welcome-tour__end-icon",{active:"thumbs-up"===t}),disabled:e,icon:b,onClick:function(){return r(!0)},iconSize:24}),(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Rate thumbs down","full-site-editing"),className:x()("welcome-tour__end-icon",{active:"thumbs-down"===t}),disabled:e,icon:C,onClick:function(){return r(!1)},iconSize:24})))}var X=function(e){var t,n=e.cardContent,r=e.cardIndex,i=e.justMaximized,o=e.lastCardIndex,s=e.onMinimize,a=e.onDismiss,u=e.setJustMaximized,c=e.setCurrentCardIndex,l=n.description,d=n.heading,f=n.imgSrc,h=r===o;return t=function(){var e;i?u(!1):H("calypso_editor_wpcom_tour_slide_view",{slide_number:r+1,is_last_slide:h,slide_heading:d,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})},(0,p.useEffect)(t,[]),(0,p.createElement)(v.Card,{className:"welcome-tour-card",isElevated:!0},(0,p.createElement)(K,{setJustMaximized:u,onDismiss:a,onMinimize:s,slideNumber:r+1}),(0,p.createElement)(v.CardMedia,null,(0,p.createElement)("img",{alt:(0,m.__)("Editor Welcome Tour","full-site-editing"),src:f})),(0,p.createElement)(v.CardBody,null,(0,p.createElement)("h2",{className:"welcome-tour-card__heading"},d),(0,p.createElement)("p",{className:"welcome-tour-card__description"},l,h?(0,p.createElement)(v.Button,{className:"welcome-tour-card__description",isTertiary:!0,onClick:function(){return c(0)}},"Restart tour"):null)),(0,p.createElement)(v.CardFooter,null,h?(0,p.createElement)(q,null):(0,p.createElement)(J,{cardIndex:r,lastCardIndex:o,onDismiss:a,setCurrentCardIndex:c})))};var Z=function(){return[{heading:(0,m.__)("Welcome to WordPress!","full-site-editing"),description:(0,m.__)("Continue on with this short tour to learn the fundamentals of the WordPress editor.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-welcome.png",animation:null},{heading:(0,m.__)("Everything is a block","full-site-editing"),description:(0,m.__)("In the WordPress Editor, paragraphs, images, and videos are all blocks.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-all-blocks.gif",animation:null},{heading:(0,m.__)("Adding a new block","full-site-editing"),description:(0,m.__)("Click + to open the inserter. Then click the block you want to add.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-add-block.gif",animation:"block-inserter"},{heading:(0,m.__)("Click a block to change it","full-site-editing"),description:(0,m.__)("Use the toolbar to change the appearance of a selected block. Try making it bold.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-make-bold.gif",animation:null},{heading:(0,m.__)("More Options","full-site-editing"),description:(0,m.__)("Click the settings icon to see even more options.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-more-options.gif",animation:null},{heading:(0,m.__)("Undo any mistake","full-site-editing"),description:(0,m.__)("Click the Undo button if you've made a mistake.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-undo.gif",animation:"undo-button"},{heading:(0,m.__)("Drag & drop","full-site-editing"),description:(0,m.__)("To move blocks around, click and drag the handle.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-move-block.gif",animation:"undo-button"},{heading:(0,m.__)("Congratulations!","full-site-editing"),description:(0,m.__)("You’ve now learned the basics. Remember, your site is always private until you decide to launch.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-finish.png",animation:"block-inserter"}]},Y=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.086 5.412l3.476-.015c-.627.625-1.225 1.22-1.82 1.81l-.03.031c-.977.971-1.944 1.934-3.015 3.004l1.06 1.061c1.07-1.07 2.036-2.03 3.013-3.002l.03-.03 1.817-1.808-.03 3.448 1.5.013.046-5.28.007-.759-.76.003-5.301.024.007 1.5zM9.914 18.587l-3.476.016c.627-.625 1.225-1.22 1.82-1.81l.03-.031c.977-.971 1.944-1.934 3.015-3.004l-1.06-1.061c-1.07 1.069-2.036 2.03-3.012 3.001l-.001.001-.03.03-1.817 1.808.03-3.448-1.5-.013-.046 5.279-.007.76.76-.003 5.301-.024-.007-1.5z",fill:"#50575E"}));function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ne=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=ee(e,["icon","size"]);return(0,p.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))};function re(){var e=(0,p.useRef)(document.createElement("div")).current,t=(0,o.useSelect)((function(e){return{isWpcomNuxEnabled:e("automattic/nux").isWpcomNuxEnabled(),isSPTOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isTourManuallyOpened:e("automattic/nux").isTourManuallyOpened()}})),n=t.isWpcomNuxEnabled,r=t.isSPTOpen,s=t.isTourManuallyOpened,a=(0,o.useDispatch)("core/edit-post").closeGeneralSidebar,u=(0,o.useDispatch)("automattic/nux").setWpcomNuxStatus;return(new window.Image).src=Z()[0].imgSrc,(0,p.useEffect)((function(){void 0===n&&function(){var e=f()(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i()({path:"/wpcom/v2/block-editor/nux"});case 2:t=e.sent,u({isNuxEnabled:t.is_nux_enabled,bypassApi:!0});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[n,u]),(0,p.useEffect)((function(){n&&a()}),[a,n]),(0,p.useEffect)((function(){var t;if(n||r)return e.classList.add("wpcom-editor-welcome-tour-portal-parent"),document.body.appendChild(e),H("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,is_manually_opened:s}),function(){document.body.removeChild(e)}}),[r,s,n,e]),!n||r?null:(0,p.createElement)("div",null,(0,p.createPortal)((0,p.createElement)(ie,null),e))}function ie(){var e=Z(),t=(0,p.useState)(!1),n=l()(t,2),r=n[0],i=n[1],s=(0,p.useState)(0),a=l()(s,2),u=a[0],c=a[1],d=(0,p.useState)(!1),f=l()(d,2),h=f[0],m=f[1],g=(0,o.useDispatch)("automattic/nux"),v=g.setWpcomNuxStatus,w=g.setTourOpenStatus;return e.forEach((function(e){return(new window.Image).src=e.imgSrc})),(0,p.createElement)("div",{className:"wpcom-editor-welcome-tour-frame"},r?(0,p.createElement)(oe,{onMaximize:i,setJustMaximized:m,slideNumber:u+1}):(0,p.createElement)(X,{cardContent:e[u],cardIndex:u,justMaximized:h,key:u,lastCardIndex:e.length-1,onDismiss:function(e){var t;H("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,slide_number:u+1,action:e}),v({isNuxEnabled:!1}),w({isTourManuallyOpened:!1})},onMinimize:i,setJustMaximized:m,setCurrentCardIndex:c}))}function oe(e){var t=e.onMaximize,n=e.setJustMaximized,r=e.slideNumber;return(0,p.createElement)(v.Button,{onClick:function(){var e;t(!1),n(!0),H("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,slide_number:r})},className:"wpcom-editor-welcome-tour__resume-btn"},(0,p.createElement)(v.Flex,{gap:13},(0,p.createElement)("p",null,(0,m.__)("Click to resume tutorial","full-site-editing")),(0,p.createElement)(ne,{icon:Y,size:24})))}(0,window.wp.plugins.registerPlugin)("wpcom-block-editor-welcome-tour",{render:function(){return(0,p.createElement)(re,null)}})},116:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorWelcomeTourAssetsUrl&&(n.p=window.wpcomBlockEditorWelcomeTourAssetsUrl)},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var o=i[c];e=r.call(s,o),i.splice(c,1),c--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),n(297)}());
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,s,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},495:function(e,t,n){"use strict";var r=n(212),i=n(561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},32:function(e,t,n){"use strict";var r=n(212),i=n(495),o=n(713),s=n(561),a=r.sum32,u=r.sum32_4,c=r.sum32_5,l=o.ch32,d=o.maj32,f=o.s0_256,p=o.s1_256,h=o.g0_256,m=o.g1_256,g=i.BlockHash,v=[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;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(w,g),e.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(m(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],_=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=c(b,p(w),l(w,y,_),this.k[r],n[r]),E=a(f(i),d(i,o,g));b=_,_=y,y=w,w=a(v,C),v=g,g=o,o=i,i=a(C,E)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],v),this.h[4]=a(this.h[4],w),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],_),this.h[7]=a(this.h[7],b)},w.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(561),i=n(285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=u(i.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+n+i+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,u,c){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+o>>>0)<o?1:0,l+=(d=d+a>>>0)<a?1:0,e+n+i+s+u+(l+=(d=d+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,u,c){return t+r+o+a+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,u){u=u||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).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(e);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*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return u.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},297:function(e,t,n){"use strict";n.r(t);var r=window.wp.apiFetch,i=n.n(r),o=window.wp.data,s=(0,o.combineReducers)({isNuxEnabled:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS":return t.isNuxEnabled;default:return e}},isTourManuallyOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_SET_TOUR_OPEN":return t.isTourManuallyOpened;default:return e}},tourRating:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_BLOCK_EDITOR_SET_TOUR_RATING":return t.tourRating;default:return e}}}),a={setWpcomNuxStatus:function(e){var t=e.isNuxEnabled;return e.bypassApi||i()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{isNuxEnabled:t}}),{type:"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS",isNuxEnabled:t}},setTourRating:function(e){return{type:"WPCOM_BLOCK_EDITOR_SET_TOUR_RATING",tourRating:e}},setTourOpenStatus:function(e){return{type:"WPCOM_BLOCK_EDITOR_SET_TOUR_OPEN",isTourManuallyOpened:e.isTourManuallyOpened}}};(0,o.registerStore)("automattic/nux",{reducer:s,actions:a,selectors:{isTourManuallyOpened:function(e){return e.isTourManuallyOpened},isWpcomNuxEnabled:function(e){return e.isNuxEnabled},tourRating:function(e){return e.tourRating}},persist:!0});window.wp.nux;var u=(0,o.subscribe)((function(){var e;(0,o.dispatch)("core/nux").disableTips(),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),u()}));(0,o.subscribe)((function(){var e;(0,o.select)("core/nux").areTipsEnabled()&&((0,o.dispatch)("core/nux").disableTips(),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0})),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,o.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0}),(0,o.dispatch)("automattic/nux").setTourOpenStatus({isTourManuallyOpened:!0}))}));var c=n(68),l=n.n(c),d=n(954),f=n.n(d),p=window.wp.element,h=(n(116),window.lodash),m=window.wp.i18n,g=window.wp.primitives,v=window.wp.components;function w(e){var t=e.currentPage,n=e.numberOfPages,r=e.setCurrentPage;return(0,p.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,m.__)("Guide controls","full-site-editing")},(0,h.times)(n,(function(e){return(0,p.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},(0,p.createElement)(v.Button,{key:e,icon:(0,p.createElement)(y,{isSelected:e===t}),"aria-label":(0,m.sprintf)((0,m.__)("Page %1$d of %2$d","full-site-editing"),e+1,n),onClick:function(){return r(e)}}))})))}var y=function(e){var t=e.isSelected;return(0,p.createElement)(g.SVG,{width:"6",height:"6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Circle,{cx:"3",cy:"3",r:"3",fill:t?"#32373C":"#E1E3E6"}))},_=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.514 9.988l-3.476.016c.627-.626 1.225-1.22 1.82-1.811l.03-.03v-.001c.977-.971 1.944-1.933 3.015-3.004l-1.06-1.06c-1.07 1.069-2.037 2.03-3.013 3.001l-.03.03-1.818 1.809.03-3.449-1.5-.013-.045 5.28-.007.76.76-.004 5.301-.024-.007-1.5zM5.486 14.012l3.477-.016-1.82 1.811-.03.03c-.977.972-1.945 1.934-3.015 3.005l1.06 1.06c1.07-1.068 2.035-2.03 3.012-3V16.9l.03-.03 1.818-1.809-.03 3.449 1.5.013.046-5.28.006-.76-.76.004-5.3.024.006 1.5z",fill:"#fff"})),b=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 4.023a.667.667 0 011.227.416l-.436 4.99h3.88c.954 0 1.64.916 1.37 1.831l-1.753 5.963a.286.286 0 01-.274.206H9.429V9.84l3.702-5.818zM7.714 10v7.428h-2V10h2zm5.98-8c-.814 0-1.572.416-2.01 1.103L8.388 8.286H4v10.857h13.145a2 2 0 001.919-1.436l1.753-5.963a3.143 3.143 0 00-3.015-4.03h-2.01l.274-3.125A2.381 2.381 0 0013.694 2z",fill:"#000"})),C=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 19.12a.667.667 0 001.227-.417l-.436-4.989h3.88c.954 0 1.64-.916 1.37-1.831L17.42 5.919a.286.286 0 00-.274-.205H9.429v7.588l3.702 5.818zm-5.417-5.977V5.714h-2v7.429h2zm5.98 8a2.381 2.381 0 01-2.01-1.103l-3.297-5.183H4V4h13.145a2 2 0 011.919 1.436l1.753 5.963a3.143 3.143 0 01-3.015 4.03h-2.01l.274 3.125a2.381 2.381 0 01-2.372 2.589z",fill:"#000"})),E=n(779),x=n.n(E),O=(0,p.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,p.createElement)(g.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),S=n(49),F=n.n(S),k=F()("calypso:analytics");n(32);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));var j=n(417),P=n.n(j),T=(n(182),n(421),n(699)),M=F()("lib/load-script/callback-handler"),A=new Map;function L(){return A}function N(e){return L().has(e)}function z(e,t){var n=L();N(e)?(M('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(M('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=L(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));M(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function I(){var e=this.getAttribute("src");M('Handling successful request for "'.concat(e,'"')),R(e),this.onload=null}function D(){var e=this.getAttribute("src");M('Handling failed request for "'.concat(e,'"')),R(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var G=F()("lib/load-script/dom-operations");F()("package/load-script");function W(e,t){var n;if(!N(e)&&(n=function(e){G('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=I,t.onerror=D,t}(e),G("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){z(e,(function(e){null===e?t():n(e)}))}));z(e,t)}var B,U=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function V(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&W("//stats.wp.com/w2.js?1");var $=new T.EventEmitter;function H(e,t){if(k('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,h.includes)(U,e)){if(B){var n=B(t);t=P()(P()({},t),n)}t=(0,h.omitBy)(t,h.isUndefined),k('Recording event "%s" with actual props %o',e,t),V(["recordEvent",e,t]),$.emit("record-event",e,t)}else k('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}function J(e){var t=e.cardIndex,n=e.lastCardIndex,r=e.onDismiss,i=e.setCurrentCardIndex;return(0,p.createElement)(p.Fragment,null,(0,p.createElement)(w,{currentPage:t,numberOfPages:n+1,setCurrentPage:i}),(0,p.createElement)("div",null,0===t?(0,p.createElement)(v.Button,{isTertiary:!0,onClick:function(){return r("no-thanks-btn")}},(0,m.__)("Skip","full-site-editing")):(0,p.createElement)(v.Button,{isTertiary:!0,onClick:function(){return i(t-1)}},(0,m.__)("Back","full-site-editing")),(0,p.createElement)(v.Button,{className:"welcome-tour-card__next-btn",isPrimary:!0,onClick:function(){return i(t+1)}},0===t?(0,m.__)("Start Tour","full-site-editing"):(0,m.__)("Next","full-site-editing"))))}function K(e){var t=e.onMinimize,n=e.onDismiss,r=e.slideNumber;return(0,p.createElement)("div",{className:"welcome-tour-card__overlay-controls"},(0,p.createElement)(v.Flex,null,(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Minimize Tour","full-site-editing"),isPrimary:!0,className:"welcome-tour-card__minimize-icon",icon:_,iconSize:24,onClick:function(){var e;t(!0),H("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,slide_number:r})}}),(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Close Tour","full-site-editing"),isPrimary:!0,icon:O,iconSize:24,onClick:function(){return n("close-btn")}})))}function q(){var e=!1,t=(0,o.useSelect)((function(e){return e("automattic/nux").tourRating()})),n=(0,o.useDispatch)("automattic/nux").setTourRating;!e&&t&&(e=!0);var r=function(t){var r;e||(e=!0,n(t?"thumbs-up":"thumbs-down"),H("calypso_editor_wpcom_tour_rate",{thumbs_up:t,is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding}))};return(0,p.createElement)(p.Fragment,null,(0,p.createElement)("p",{className:"welcome-tour__end-text"},"Did you find this guide helpful?"),(0,p.createElement)("div",null,(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Rate thumbs up","full-site-editing"),className:x()("welcome-tour__end-icon",{active:"thumbs-up"===t}),disabled:e,icon:b,onClick:function(){return r(!0)},iconSize:24}),(0,p.createElement)(v.Button,{"aria-label":(0,m.__)("Rate thumbs down","full-site-editing"),className:x()("welcome-tour__end-icon",{active:"thumbs-down"===t}),disabled:e,icon:C,onClick:function(){return r(!1)},iconSize:24})))}var X=function(e){var t,n=e.cardContent,r=e.cardIndex,i=e.justMaximized,o=e.lastCardIndex,s=e.onMinimize,a=e.onDismiss,u=e.setJustMaximized,c=e.setCurrentCardIndex,l=n.description,d=n.heading,f=n.imgSrc,h=r===o;return t=function(){var e;i?u(!1):H("calypso_editor_wpcom_tour_slide_view",{slide_number:r+1,is_last_slide:h,slide_heading:d,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})},(0,p.useEffect)(t,[]),(0,p.createElement)(v.Card,{className:"welcome-tour-card",isElevated:!0},(0,p.createElement)(K,{setJustMaximized:u,onDismiss:a,onMinimize:s,slideNumber:r+1}),(0,p.createElement)(v.CardMedia,null,(0,p.createElement)("img",{alt:(0,m.__)("Editor Welcome Tour","full-site-editing"),src:f})),(0,p.createElement)(v.CardBody,null,(0,p.createElement)("h2",{className:"welcome-tour-card__heading"},d),(0,p.createElement)("p",{className:"welcome-tour-card__description"},l,h?(0,p.createElement)(v.Button,{className:"welcome-tour-card__description",isTertiary:!0,onClick:function(){return c(0)}},"Restart tour"):null)),(0,p.createElement)(v.CardFooter,null,h?(0,p.createElement)(q,null):(0,p.createElement)(J,{cardIndex:r,lastCardIndex:o,onDismiss:a,setCurrentCardIndex:c})))};var Z=function(){return[{heading:(0,m.__)("Welcome to WordPress!","full-site-editing"),description:(0,m.__)("Continue on with this short tour to learn the fundamentals of the WordPress editor.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-welcome.png",animation:null},{heading:(0,m.__)("Everything is a block","full-site-editing"),description:(0,m.__)("In the WordPress Editor, paragraphs, images, and videos are all blocks.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-all-blocks.gif",animation:null},{heading:(0,m.__)("Adding a new block","full-site-editing"),description:(0,m.__)("Click + to open the inserter. Then click the block you want to add.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-add-block.gif",animation:"block-inserter"},{heading:(0,m.__)("Click a block to change it","full-site-editing"),description:(0,m.__)("Use the toolbar to change the appearance of a selected block. Try making it bold.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-make-bold.gif",animation:null},{heading:(0,m.__)("More Options","full-site-editing"),description:(0,m.__)("Click the settings icon to see even more options.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-more-options.gif",animation:null},{heading:(0,m.__)("Undo any mistake","full-site-editing"),description:(0,m.__)("Click the Undo button if you've made a mistake.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-undo.gif",animation:"undo-button"},{heading:(0,m.__)("Drag & drop","full-site-editing"),description:(0,m.__)("To move blocks around, click and drag the handle.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-move-block.gif",animation:"undo-button"},{heading:(0,m.__)("Congratulations!","full-site-editing"),description:(0,m.__)("You’ve now learned the basics. Remember, your site is always private until you decide to launch.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-finish.png",animation:"block-inserter"}]},Y=(0,p.createElement)(g.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.086 5.412l3.476-.015c-.627.625-1.225 1.22-1.82 1.81l-.03.031c-.977.971-1.944 1.934-3.015 3.004l1.06 1.061c1.07-1.07 2.036-2.03 3.013-3.002l.03-.03 1.817-1.808-.03 3.448 1.5.013.046-5.28.007-.759-.76.003-5.301.024.007 1.5zM9.914 18.587l-3.476.016c.627-.625 1.225-1.22 1.82-1.81l.03-.031c.977-.971 1.944-1.934 3.015-3.004l-1.06-1.061c-1.07 1.069-2.036 2.03-3.012 3.001l-.001.001-.03.03-1.817 1.808.03-3.448-1.5-.013-.046 5.279-.007.76.76-.003 5.301-.024-.007-1.5z",fill:"#50575E"}));function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ne=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=ee(e,["icon","size"]);return(0,p.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))};function re(){var e=(0,p.useRef)(document.createElement("div")).current,t=(0,o.useSelect)((function(e){return{isWpcomNuxEnabled:e("automattic/nux").isWpcomNuxEnabled(),isSPTOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isTourManuallyOpened:e("automattic/nux").isTourManuallyOpened()}})),n=t.isWpcomNuxEnabled,r=t.isSPTOpen,s=t.isTourManuallyOpened,a=(0,o.useDispatch)("core/edit-post").closeGeneralSidebar,u=(0,o.useDispatch)("automattic/nux").setWpcomNuxStatus;return(new window.Image).src=Z()[0].imgSrc,(0,p.useEffect)((function(){void 0===n&&function(){var e=f()(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i()({path:"/wpcom/v2/block-editor/nux"});case 2:t=e.sent,u({isNuxEnabled:t.is_nux_enabled,bypassApi:!0});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[n,u]),(0,p.useEffect)((function(){n&&a()}),[a,n]),(0,p.useEffect)((function(){var t;if(n||r)return e.classList.add("wpcom-editor-welcome-tour-portal-parent"),document.body.appendChild(e),H("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,is_manually_opened:s}),function(){document.body.removeChild(e)}}),[r,s,n,e]),!n||r?null:(0,p.createElement)("div",null,(0,p.createPortal)((0,p.createElement)(ie,null),e))}function ie(){var e=Z(),t=(0,p.useState)(!1),n=l()(t,2),r=n[0],i=n[1],s=(0,p.useState)(0),a=l()(s,2),u=a[0],c=a[1],d=(0,p.useState)(!1),f=l()(d,2),h=f[0],m=f[1],g=(0,o.useDispatch)("automattic/nux"),v=g.setWpcomNuxStatus,w=g.setTourOpenStatus;return e.forEach((function(e){return(new window.Image).src=e.imgSrc})),(0,p.createElement)("div",{className:"wpcom-editor-welcome-tour-frame"},r?(0,p.createElement)(oe,{onMaximize:i,setJustMaximized:m,slideNumber:u+1}):(0,p.createElement)(X,{cardContent:e[u],cardIndex:u,justMaximized:h,key:u,lastCardIndex:e.length-1,onDismiss:function(e){var t;H("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,slide_number:u+1,action:e}),v({isNuxEnabled:!1}),w({isTourManuallyOpened:!1})},onMinimize:i,setJustMaximized:m,setCurrentCardIndex:c}))}function oe(e){var t=e.onMaximize,n=e.setJustMaximized,r=e.slideNumber;return(0,p.createElement)(v.Button,{onClick:function(){var e;t(!1),n(!0),H("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,slide_number:r})},className:"wpcom-editor-welcome-tour__resume-btn"},(0,p.createElement)(v.Flex,{gap:13},(0,p.createElement)("p",null,(0,m.__)("Click to resume tutorial","full-site-editing")),(0,p.createElement)(ne,{icon:Y,size:24})))}(0,window.wp.plugins.registerPlugin)("wpcom-block-editor-welcome-tour",{render:function(){return(0,p.createElement)(re,null)}})},116:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorWelcomeTourAssetsUrl&&(n.p=window.wpcomBlockEditorWelcomeTourAssetsUrl)},49:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},632:function(e,t,n){var r=n(182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var o=i[c];e=r.call(s,o),i.splice(c,1),c--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),n(297)}());
|