Full Site Editing - Version 2.7.1

Version Description

  • Coming Soon v2: adding links to default page (https://github.com/Automattic/wp-calypso/pull/46441)
  • Remove "gutenboarding/new-launch" feature flag and checks. (https://github.com/Automattic/wp-calypso/pull/46453)
  • Fixes Global Styles plugin translation (https://github.com/Automattic/wp-calypso/pull/46421)
Download this release

Release Info

Developer yansern
Plugin Icon wp plugin Full Site Editing
Version 2.7.1
Comparing to
See all releases

Code changes from version 2.7 to 2.7.1

coming-soon/fallback-coming-soon-page.php CHANGED
@@ -10,6 +10,64 @@
10
 
11
  namespace A8C\FSE\Coming_soon;
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ?>
14
  <!DOCTYPE html>
15
  <html <?php language_attributes(); ?>>
@@ -194,11 +252,11 @@ namespace A8C\FSE\Coming_soon;
194
  <?php if ( ! is_user_logged_in() ) : ?>
195
  <div class="marketing-copy">
196
  <img src="/wp-content/themes/a8c/domain-landing-page/wpcom-wmark-white.svg" alt="WordPress.com" class="logo" />
197
- <p class="copy"><?php echo esc_html( fix_widows( __( 'Build a website. Sell your stuff. Write a blog. And so much more.', 'full-site-editing' ), array( 'mobile_enable' => true ) ) ); ?></p>
198
  </div>
199
  <div class="marketing-buttons">
200
- <p><a class="button button-secondary" href="<?php echo esc_url( $login_url ); ?>"><?php esc_html_e( 'Log in', 'full-site-editing' ); ?></a></p>
201
- <p><a class="button button-primary " href="<?php echo esc_url( localized_wpcom_url( 'https://wordpress.com/?ref=coming_soon' ) ); ?>"><?php esc_html_e( 'Start your website', 'full-site-editing' ); ?></a></p>
202
  </div>
203
  <?php endif; ?>
204
  </div>
10
 
11
  namespace A8C\FSE\Coming_soon;
12
 
13
+ /**
14
+ * Returns the current locale
15
+ *
16
+ * @return string Language slug
17
+ */
18
+ function get_current_locale() {
19
+ return function_exists( 'get_blog_lang_code' ) ? get_blog_lang_code() : get_locale();
20
+ }
21
+
22
+ /**
23
+ * Returns a redirect URL for post-login flow
24
+ *
25
+ * @return string The redirect URL
26
+ */
27
+ function get_redirect_to() {
28
+ // Redirect to the current URL.
29
+ // If, for any reason, the superglobals aren't available, set a default redirect.
30
+ if ( empty( $_SERVER['HTTP_HOST'] ) || empty( $_SERVER['REQUEST_URI'] ) ) {
31
+ return get_marketing_home_url();
32
+ }
33
+
34
+ return rawurlencode( 'https://' . sanitize_text_field( wp_unslash( $_SERVER['HTTP_HOST'] ) ) . sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
35
+ }
36
+
37
+ /**
38
+ * Returns a localized login URL with redirect query param
39
+ *
40
+ * @return string The login URL
41
+ */
42
+ function get_login_url() {
43
+ $redirect_to = get_redirect_to();
44
+
45
+ if ( function_exists( 'localized_wpcom_url' ) ) {
46
+ return localized_wpcom_url( '//wordpress.com/log-in?redirect_to=' . $redirect_to );
47
+ }
48
+
49
+ $locale = get_current_locale();
50
+ $locale_url_fragment = 'en' === $locale ? '' : '/' . $locale;
51
+
52
+ return '//wordpress.com/log-in' . $locale_url_fragment . '?redirect_to=' . $redirect_to;
53
+ }
54
+
55
+ /**
56
+ * Returns a localized onboarding URL with redirect query param
57
+ *
58
+ * @return string The URL
59
+ */
60
+ function get_onboarding_url() {
61
+ if ( function_exists( 'localized_wpcom_url' ) ) {
62
+ return localized_wpcom_url( 'https://wordpress.com/?ref=coming_soon' );
63
+ }
64
+
65
+ $locale = get_current_locale();
66
+ $locale_subdomain = 'en' === $locale ? '' : $locale . '.';
67
+
68
+ return 'https://' . $locale_subdomain . 'wordpress.com/?ref=coming_soon';
69
+ }
70
+
71
  ?>
72
  <!DOCTYPE html>
73
  <html <?php language_attributes(); ?>>
252
  <?php if ( ! is_user_logged_in() ) : ?>
253
  <div class="marketing-copy">
254
  <img src="/wp-content/themes/a8c/domain-landing-page/wpcom-wmark-white.svg" alt="WordPress.com" class="logo" />
255
+ <p class="copy"><?php esc_html_e( 'Build a website. Sell your stuff. Write a blog. And so much more.', 'full-site-editing' ); ?></p>
256
  </div>
257
  <div class="marketing-buttons">
258
+ <p><a class="button button-secondary" href="<?php echo esc_url( get_login_url() ); ?>"><?php esc_html_e( 'Log in', 'full-site-editing' ); ?></a></p>
259
+ <p><a class="button button-primary " href="<?php echo esc_url( get_onboarding_url() ); ?>"><?php esc_html_e( 'Start your website', 'full-site-editing' ); ?></a></p>
260
  </div>
261
  <?php endif; ?>
262
  </div>
common/dist/data-stores.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-polyfill'), 'version' => '33adbe052a5513f26c1ccee694500112');
1
+ <?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-polyfill'), 'version' => 'de354dc85cec7070db5a0e27d166fcae');
common/dist/data-stores.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=66)}([function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t){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}},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},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"],e.exports=n(43)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){var n,r=window.ProgressEvent,o=!!r;try{n=new r("loaded"),o="loaded"===n.type,n=null}catch(i){o=!1}e.exports=o?r:"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}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=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:a,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"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(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 r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var s=r.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}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(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return o(t)&&!o(n)&&(s=a(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),s)}}},function(e,t,n){"use strict";var r=n(17),o=n(16);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 s(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 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+=s(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+=u(o.toString(16))}return n},t.zero2=s,t.zero8=u,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var a=new Array(i/4),s=0,u=t;s<a.length;s++,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],a[s]=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,s){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+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,a,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,a,s,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+s>>>0)<s?1:0,e+n+o+a+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,a,s,u,c){return t+r+i+s+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}},function(e,t,n){var r=n(44),o=n(45),i=n(13),a=n(46);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var o,i,a,s;if(c(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=l(e))>0&&a.length>o&&!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,s=u,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.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):y(o,o.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 y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.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},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(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},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,l=y(u,c);for(n=0;n<c;++n)i(l[n],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,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(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},s.prototype.off=s.prototype.removeListener,s.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},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(3);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}},function(e,t){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}},function(e,t,n){var r=n(12);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}}},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(7),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)},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t){"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}}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){var r=n(40),o=n(42);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=u(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)&&s(e)}}function a(e,t){e.name=u(o[t]),e.status=e.statusCode=t,s(e)}function s(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 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++)i(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},function(e,t,n){"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 s=i.push(t)-1,u=Object.keys(t).sort(o&&o(t));for(a="",n=0;n<u.length;n++){var c=u[n],l=e(t[c]);l&&(a&&(a+=","),a+=JSON.stringify(c)+":"+l)}return i.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";var r=n(48),o=n(49),i=n(14);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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=s(n(1)),i=s(n(50)),a=s(n(53));function s(e){return e&&e.__esModule?e:{default:e}}var u=void 0;function c(e,t){var n,a,s,l,f,p,d,h,m=[],y={};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> "+u);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],s=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+"`")}(s,e),d=c(e.slice(s+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&&(y["interpolation-child-"+t]=e)})),(0,i.default)(y))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(u=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(s){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+s.message+"`");return t}}},function(e,t,n){var r=n(10),o=n(16);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})}}},function(e,t,n){"use strict";var r=n(8),o=n(54),i=n(55),a=r.rotl32,s=r.sum32,u=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=u(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]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],p),this.h[4]=s(this.h[4],d)},p.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(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,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(56);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)}},function(e,t,n){var r=n(57),o=n(58),i=n(59);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)}}},function(e,t,n){var r=n(61),o=n(62),i=n(13),a=n(63);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";e.exports=n(64)},function(e,t){!function(){e.exports=this.wp.compose}()},,,,,,,,,function(e,t,n){"use strict";var r=n(41);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"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():""}},function(e,t){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"}},function(e,t,n){var r=n(9);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return o.colors[Math.abs(t)%o.colors.length]}function o(e){var n;function r(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(r.enabled){var a=r,s=Number(new Date),u=s-(n||s);a.diff=u,a.prev=n,a.curr=s,n=s,t[0]=o.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=o.formatters[n];if("function"==typeof r){var i=t[c];e=r.call(a,i),t.splice(c,1),c--}return e})),o.formatArgs.call(a,t);var l=a.log||o.log;l.apply(a,t)}}return r.namespace=e,r.enabled=o.enabled(e),r.useColors=o.useColors(),r.color=t(e),r.destroy=i,r.extend=a,"function"==typeof o.init&&o.init(r),o.instances.push(r),r}function i(){var e=o.instances.indexOf(this);return-1!==e&&(o.instances.splice(e,1),!0)}function a(e,t){var n=o(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return o.debug=o,o.default=o,o.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},o.disable=function(){var e=[].concat(r(o.names.map(s)),r(o.skips.map(s).map((function(e){return"-"+e})))).join(",");return o.enable(""),e},o.enable=function(e){var t;o.save(e),o.names=[],o.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?o.skips.push(new RegExp("^"+e.substr(1)+"$")):o.names.push(new RegExp("^"+e+"$")));for(t=0;t<o.instances.length;t++){var i=o.instances[t];i.enabled=o.enabled(i.namespace)}},o.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=o.skips.length;t<n;t++)if(o.skips[t].test(e))return!1;for(t=0,n=o.names.length;t<n;t++)if(o.names[t].test(e))return!0;return!1},o.humanize=n(47),Object.keys(e).forEach((function(t){o[t]=e[t]})),o.instances=[],o.names=[],o.skips=[],o.formatters={},o.selectColor=t,o.enable(o.load()),o}},function(e,t,n){var r=n(12);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){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.")}},function(e,t){var n=1e3,r=60*n,o=60*r,i=24*o,a=7*i,s=365.25*i;function u(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\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(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*a;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*o;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return u(e,t,i,"day");if(t>=o)return u(e,t,o,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var r=n(7),o=n(14),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,s(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,u,l,f,d,h,m,y,g){var v,b=t;if("function"==typeof l?b=l(n,b):b instanceof Date?b=h(b):"comma"===o&&s(b)&&(b=r.maybeMap(b,(function(e){return e instanceof Date?h(e):e})).join(",")),null===b){if(i)return u&&!y?u(n,p.encoder,g,"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(y?n:u(n,p.encoder,g,"key"))+"="+m(u(b,p.encoder,g,"value"))]:[m(n)+"="+m(String(b))];var S,E=[];if(void 0===b)return E;if(s(l))S=l;else{var w=Object.keys(b);S=f?w.sort(f):w}for(var _=0;_<S.length;++_){var O=S[_],C=b[O];if(!a||null!==C){var x=s(b)?"function"==typeof o?o(n,O):n:n+(d?"."+O:"["+O+"]");c(E,e(C,x,o,i,a,u,l,f,d,h,m,y,g))}}return E};e.exports=function(e,t){var n,r=e,u=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||s(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 u.filter?r=(0,u.filter)("",r):s(u.filter)&&(n=u.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)),u.sort&&n.sort(u.sort);for(var m=0;m<n.length;++m){var y=n[m];u.skipNulls&&null===r[y]||c(f,d(r[y],y,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var g=f.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&"),g.length>0?v+g:""}},function(e,t,n){"use strict";var r=n(7),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},s=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 i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.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!==(s=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==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,y,g=p[n],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,a.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),a.decoder,h,"key"),y=r.maybeMap(u(g.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(c,m)?c[m]=r.combine(c[m],y):c[m]=y}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)}},function(e,t,n){"use strict";var r=n(1),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(15),a=n(51),s=n(52),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 i,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&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&&(u&&e[u]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var m,y=h.call(e),g=0;!(m=y.next()).done;)f+=l(i=m.value,p+c(i,g++),n,r)}else if("object"===s){0;var v=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return f}var f=/\/+/g;function p(e){return(""+e).replace(f,"$&/")}var d,h,m=y,y=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=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 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 o,a,s=e.result,u=e.keyPrefix,c=e.func,l=e.context,f=c.call(l,t,e.count++);Array.isArray(f)?S(f,s,n,i.thatReturnsArgument):null!=f&&(r.isValidElement(f)&&(o=f,a=u+(!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)),s.push(f))}function S(e,t,n,r,o){var i="";null!=n&&(i=p(n)+"/");var a=v.getPooled(t,i,r,o);!function(e,t,n){null==e||l(e,"",t,n)}(e,b,a),v.release(a)}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 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=v).instancePool=[],h.getPooled=d||m,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!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)S(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){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,o,i,a,s],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r=n(15);e.exports=r},function(e,t,n){"use strict";function r(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(r)}},function(e,t,n){"use strict";var r=n(8),o=n(17);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}},function(e,t,n){"use strict";var r=n(8).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}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){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}}},function(e,t,n){var r=n(60),o=n(5);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},function(e,t){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.")}},function(e,t,n){"use strict";
2
  /** @license React v1.3.0
3
  * use-subscription.production.min.js
4
  *
@@ -11,11 +11,11 @@
11
  object-assign
12
  (c) Sindre Sorhus
13
  @license MIT
14
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(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,t){for(var n,s,u=a(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var f=0;f<s.length;f++)i.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"receiveCategories",(function(){return F})),n.d(r,"fetchDomainSuggestions",(function(){return R})),n.d(r,"receiveDomainAvailability",(function(){return L})),n.d(r,"receiveDomainSuggestionsSuccess",(function(){return k})),n.d(r,"receiveDomainSuggestionsError",(function(){return M}));var o={};n.r(o),n.d(o,"isAvailable",(function(){return Et})),n.d(o,"getCategories",(function(){return wt})),n.d(o,"__internalGetDomainSuggestions",(function(){return _t}));var i={};n.r(i),n.d(i,"register",(function(){return xt}));var a={};n.r(a),n.d(a,"setPrices",(function(){return qt})),n.d(a,"resetPlan",(function(){return Yt}));var s={};n.r(s),n.d(s,"getPlanBySlug",(function(){return Kt})),n.d(s,"getDefaultPaidPlan",(function(){return Jt})),n.d(s,"getSupportedPlans",(function(){return Qt})),n.d(s,"getPlanByPath",(function(){return Xt})),n.d(s,"getPlansDetails",(function(){return Zt})),n.d(s,"getPlansPaths",(function(){return en})),n.d(s,"getPrices",(function(){return tn})),n.d(s,"isPlanEcommerce",(function(){return nn})),n.d(s,"isPlanFree",(function(){return rn}));var u={};n.r(u),n.d(u,"getPrices",(function(){return on}));var c={};n.r(c),n.d(c,"plansPaths",(function(){return Ht})),n.d(c,"PLAN_FREE",(function(){return Pt})),n.d(c,"PLAN_PERSONAL",(function(){return jt})),n.d(c,"PLAN_PREMIUM",(function(){return It})),n.d(c,"PLAN_BUSINESS",(function(){return Ft})),n.d(c,"PLAN_ECOMMERCE",(function(){return Rt})),n.d(c,"register",(function(){return sn}));var l={};n.r(l),n.d(l,"getSite",(function(){return pn}));var f={};n.r(f),n.d(f,"getState",(function(){return hn})),n.d(f,"getNewSite",(function(){return mn})),n.d(f,"getNewSiteError",(function(){return yn})),n.d(f,"isFetchingSite",(function(){return gn})),n.d(f,"isNewSite",(function(){return vn})),n.d(f,"getSite",(function(){return bn})),n.d(f,"isLaunched",(function(){return Sn}));var p={};n.r(p),n.d(p,"Visibility",(function(){return dn})),n.d(p,"register",(function(){return wn}));var d={};n.r(d),n.d(d,"getAllFeatures",(function(){return Pn})),n.d(d,"getRecommendedPlanSlug",(function(){return jn}));var h={};n.r(h),n.d(h,"featuresList",(function(){return An})),n.d(h,"register",(function(){return Fn}));var m={};n.r(m),n.d(m,"setSidebarFullscreen",(function(){return Bn})),n.d(m,"unsetSidebarFullscreen",(function(){return Hn})),n.d(m,"setStep",(function(){return Vn})),n.d(m,"setDomain",(function(){return Gn})),n.d(m,"unsetDomain",(function(){return Wn})),n.d(m,"confirmDomainSelection",(function(){return zn})),n.d(m,"setDomainSearch",(function(){return qn})),n.d(m,"setPlan",(function(){return Yn})),n.d(m,"unsetPlan",(function(){return $n})),n.d(m,"updatePlan",(function(){return Kn})),n.d(m,"launchSite",(function(){return Jn})),n.d(m,"openSidebar",(function(){return Qn})),n.d(m,"closeSidebar",(function(){return Xn})),n.d(m,"enableExperimental",(function(){return Zn}));var y={};n.r(y),n.d(y,"getLaunchSequence",(function(){return er})),n.d(y,"getLaunchStep",(function(){return tr})),n.d(y,"getState",(function(){return nr})),n.d(y,"hasPaidDomain",(function(){return rr})),n.d(y,"getSelectedDomain",(function(){return or})),n.d(y,"getSelectedPlan",(function(){return ir})),n.d(y,"isStepCompleted",(function(){return ar})),n.d(y,"isFlowCompleted",(function(){return sr})),n.d(y,"isFlowStarted",(function(){return ur})),n.d(y,"getFirstIncompleteStep",(function(){return cr}));var g,v=n(0),b="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(g||(g={}));var S=function(){return(S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function E(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function w(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function O(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}var C,x,N,A,T=n(19),P=n.n(T).a,j={state:g.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},I=Object(v.combineReducers)({categories:function(e,t){return void 0===e&&(e=[]),"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(e,t){var n;return void 0===e&&(e=j),"FETCH_DOMAIN_SUGGESTIONS"===t.type?S(S({},e),{state:g.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?S(S({},e),{state:g.Success,data:S(S({},e.data),(n={},n[P(t.queryObject)]=t.suggestions,n)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?S(S({},e),{state:g.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(e,t){var n;return void 0===e&&(e={}),"RECEIVE_DOMAIN_AVAILABILITY"===t.type?S(S({},e),((n={})[t.domainName]=t.availability,n)):e}}),F=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},R=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},L=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},k=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},M=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}},D=n(20),U=n(9),B=n.n(U),H=n(3),V=n.n(H),G=n(4),W=n.n(G),z=n(21),q=n.n(z);C={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},x=["(","?"],N={")":["("],":":["?","?:"]},A=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Y={"!":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 $(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(A);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(N[n]){if(N[n][0]===o){n=N[n][1]||n;break}}else if(x.indexOf(o)>=0||C[o]<C[n]){a.push(o);break}i.push(o)}N[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,s,u=[];for(n=0;n<e.length;n++){if(a=e[n],i=Y[a]){for(r=i.length,o=Array(r);r--;)o[r]=u.pop();try{s=i.apply(null,o)}catch(c){return c}}else s=t.hasOwnProperty(a)?t[a]:+a;u.push(s)}return u[0]}(t,e)}}var K={contextDelimiter:"",onMissingKey:null};function J(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},K)this.options[n]=void 0!==t&&n in t?t[n]:K[n]}J.prototype.getPluralForm=function(e,t){var n,r,o,i,a=this.pluralForms[e];return a||("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),i=$(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},J.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var Q=n(22),X=n.n(Q),Z=n(23),ee=n.n(Z),te=n(10),ne=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function re(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(ne,(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:"")}))}
15
  /*
16
  * Exposes number format capability
17
  *
18
  * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
19
  * @license See CREDITS.md
20
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
21
- */function oe(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,s=void 0===n?".":n,u="";return(u=(i?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&&(u[0]=u[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(u[1]||"").length<i&&(u[1]=u[1]||"",u[1]+=new Array(i-u[1].length+1).join("0")),u.join(s)}var ie=W()("i18n-calypso"),ae="number_format_decimals",se="number_format_thousands_sep",ue="messages",ce=[function(e){return e}],le={};function fe(){ye.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function pe(e){return Array.prototype.slice.call(e)}function de(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&fe("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",pe(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&fe("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",pe(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 he(e,t){return e.dcnpgettext(ue,t.context,t.original,t.plural,t.count)}function me(e,t){for(var n=ce.length-1;n>=0;n--){var r=ce[n](Object.assign({},t)),o=r.context?r.context+""+r.original:r.original;if(e.state.locale[o])return he(e.state.tannin,r)}return null}function ye(){if(!(this instanceof ye))return new ye;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:X()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new te.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}ye.throwErrors=!1,ye.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},ye.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},ye.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},ye.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 oe(e,n,r,o)},ye.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},ye.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!==le[n+e])return le[n+e];var r=ee()().update(e).digest("hex");return le[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)ce.push(a(!1));else{var s=o.substr(5).indexOf("-");if(s<0){var u=Number(o.substr(5));ce.push(a(u))}else for(var c=Number(o.substr(5,s)),l=Number(o.substr(6+s)),f=c;f<=l;f++)ce.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.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 J(V()({},ue,this.state.locale)),this.state.numberFormatSettings.decimal_point=he(this.state.tannin,de([ae])),this.state.numberFormatSettings.thousands_sep=he(this.state.tannin,de([se])),this.state.numberFormatSettings.decimal_point===ae&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===se&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},ye.prototype.getLocale=function(){return this.state.locale},ye.prototype.getLocaleSlug=function(){return this.state.localeSlug},ye.prototype.isRtl=function(){return"rtl"===this.state.textDirection},ye.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},ye.prototype.hasTranslation=function(){return!!me(this,de(arguments))},ye.prototype.translate=function(){var e=de(arguments),t=me(this,e);if(t||(t=he(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=re.apply(void 0,B()(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=q()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},ye.prototype.reRenderTranslations=function(){ie("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},ye.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},ye.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var ge=ye,ve=n(11),be=n.n(ve),Se=n(24),Ee=n.n(Se),we=n(25),_e=n.n(we),Oe=n(5),Ce=n.n(Oe),xe=n(26),Ne=n.n(xe),Ae=n(27),Te=n.n(Ae),Pe=n(1),je=n.n(Pe),Ie=n(28),Fe=n.n(Ie),Re=n(29),Le=n.n(Re),ke=n(30),Me=n(31);var De,Ue,Be=new ge,He=(Be.numberFormat.bind(Be),Be.translate.bind(Be)),Ve=(Be.configure.bind(Be),Be.setLocale.bind(Be),Be.getLocale.bind(Be),Be.getLocaleSlug.bind(Be),Be.addTranslations.bind(Be),Be.reRenderTranslations.bind(Be),Be.registerComponentUpdateHook.bind(Be),Be.registerTranslateHook.bind(Be),Be.state,Be.stateObserver,Be.on.bind(Be),Be.off.bind(Be),Be.emit.bind(Be),Ue={numberFormat:(De=Be).numberFormat.bind(De),translate:De.translate.bind(De)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Be),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 Object(ke.useSubscription)(t)}var r=Object(Me.createHigherOrderComponent)((function(e){return Object(Pe.forwardRef)((function(t,r){var o=n();return je.a.createElement(e,Le()({},t,{isRtl:o,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Be)),Ge=(Ve.useRtl,Ve.withRtl,"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)),We=new Uint8Array(16);function ze(){if(!Ge)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ge(We)}for(var qe=[],Ye=0;Ye<256;++Ye)qe[Ye]=(Ye+256).toString(16).substr(1);var $e=function(e,t){var n=t||0,r=qe;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 Ke,Je=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||ze)();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||$e(o)},Qe=n(18),Xe=n.n(Qe),Ze=n(6),et=n.n(Ze),tt=W()("wpcom-proxy-request"),nt="https://public-api.wordpress.com",rt=window.location.protocol+"//"+window.location.host,ot=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),it=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),at=null,st=!1,ut={},ct=!!window.ProgressEvent&&!!window.FormData;tt('using "origin": %o',rt);var lt=function(e,t){var n=Object.assign({},e);tt("request(%o)",n),at||mt();var r=Je();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=ct,n.method=String(n.method||"GET").toUpperCase(),tt("params object: %o",n);var o=new window.XMLHttpRequest;if(o.params=n,ut[r]=o,"function"==typeof t){var i=!1,a=function(e){if(!i){i=!0;var n=e.error||e.err||e;tt("error: ",n),tt("headers: ",e.headers),t(n,null,e.headers)}};o.addEventListener("load",(function(e){if(!i){i=!0;var n=e.response||o.response;tt("body: ",n),tt("headers: ",e.headers),t(null,n,e.headers)}})),o.addEventListener("abort",a),o.addEventListener("error",a)}return st?pt(n):(tt("buffering API request since proxying <iframe> is not yet loaded"),Ke.push(n)),o},ft=function(e,t){return"function"==typeof t?lt(e,t):new Promise((function(t,n){lt(e,(function(e,r){e?n(e):t(r)}))}))};function pt(e){tt("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!it)return;for(var t=0;t<e.length;t++){var n=ht(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),at.contentWindow.postMessage(ot?JSON.stringify(e):e,nt)}function dt(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function ht(e){return dt(e)?e:"object"==typeof e&&dt(e.fileContents)?e.fileContents:null}function mt(){tt("install()"),at&&(tt("uninstall()"),window.removeEventListener("message",yt),document.body.removeChild(at),st=!1,at=null),Ke=[],window.addEventListener("message",yt),(at=document.createElement("iframe")).src=nt+"/wp-admin/rest-proxy/?v=2.0#"+rt,at.style.display="none",document.body.appendChild(at)}function yt(e){if(tt("onmessage"),e.origin===nt){var t=e.data;if(!t)return tt("no `data`, bailing");if("ready"!==t){if(ot&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){tt('got "progress" event: %o',e);var t=ut[e.callbackId];if(t){var n=new et.a("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return tt("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in ut))return tt("bailing, no matching request with callback: %o",n);var r=ut[n],o=r.params,i=t[0],a=t[1],s=t[2];if(207===a||delete ut[n],o.metaAPI?a="metaAPIupdated"===i?200:500:tt("got %o status code for URL: %o",a,o.path),"object"==typeof s&&(s.status=a),a&&2===Math.floor(a/100))!function(e,t,n){var r=new et.a("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(r,i,s);else!function(e,t,n){var r=new et.a("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}(r,Xe()(o,a,i),s)}else!function(){if(tt('proxy <iframe> "load" event'),st=!0,Ke){for(var e=0;e<Ke.length;e++)pt(Ke[e]);Ke=null}}()}else tt("ignoring message... %o !== %o",e.origin,nt)}var gt=ft,vt=function(e){return{type:"WPCOM_REQUEST",request:e}},bt=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},St={WPCOM_REQUEST:function(e){var t=e.request;return gt(t)},FETCH_AND_PARSE:function(e){var t,n,r,o,i=e.resource,a=e.options;return t=void 0,n=void 0,o=function(){var e,t;return w(this,(function(n){switch(n.label){case 0:return[4,window.fetch(i,a)];case 1:return e=n.sent(),t={ok:e.ok},[4,e.json()];case 2:return[2,(t.body=n.sent(),t)]}}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{u(o.next(e))}catch(t){i(t)}}function s(e){try{u(o.throw(e))}catch(t){i(t)}}function u(t){t.done?e(t.value):new r((function(e){e(t.value)})).then(a,s)}u((o=o.apply(t,n||[])).next())}))},RELOAD_PROXY:function(){mt()},REQUEST_ALL_BLOGS_ACCESS:function(){return ft({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}},Et=function(e){var t,n;return w(this,(function(r){switch(r.label){case 0:t="https://public-api.wordpress.com/rest/v1.3/domains/"+encodeURIComponent(e)+"/is-available?is_cart_pre_check=true",r.label=1;case 1:return r.trys.push([1,3,,4]),[4,bt(t)];case 2:return n=r.sent().body,[2,L(e,n)];case 3:return r.sent(),[2,L(e,{domain_name:e,mappable:"unknown",status:"unknown",supports_privacy:!1})];case 4:return[2]}}))};function wt(){var e;return w(this,(function(t){switch(t.label){case 0:return[4,bt("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories")];case 1:return e=t.sent(),[2,F(e.body)]}}))}function _t(e){var t,n;return w(this,(function(r){switch(r.label){case 0:return e.query?[4,R()]:[2,M("Empty query")];case 1:r.sent(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,vt({apiVersion:"1.1",path:"/domains/suggestions",query:Object(D.stringify)(e)})];case 3:return t=r.sent(),[3,5];case 4:return n=r.sent(),[2,M(n.message||He("Error while fetching server response"))];case 5:return t&&""!==t?[2,k(e,t)]:[2,M(He("Invalid response from the server"))]}}))}var Ot=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 O(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1})),e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)})))},getDomainSuggestions:function(e,n,r){void 0===r&&(r={});var o=t(n,r);return Object(v.select)(b).__internalGetDomainSuggestions(o)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n,r){void 0===r&&(r={});var o=t(n,r);return Object(v.select)("core/data").isResolving(b,"__internalGetDomainSuggestions",[o])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[P(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}},Ct=!1;function xt(e){var t=e.vendor;return Ct||(Ct=!0,Object(v.registerStore)(b,{actions:r,controls:St,reducer:I,resolvers:o,selectors:Ot(t)})),b}var Nt,At,Tt=n(2),Pt="free_plan",jt="personal-bundle",It="value_bundle",Ft="business-bundle",Rt="ecommerce-bundle",Lt="automattic/onboard/plans",kt=It,Mt=[jt,It,Ft,Rt],Dt={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}},Ut=["Remove WordPress.com ads","Email & basic live chat support","Collect recurring payments","Collect one-time payments","Earn ad revenue","Premium themes","Upload videos","Google Analytics support","Business features (incl. SEO)","Upload themes","Install plugins","Accept payments in 60+ countries"],Bt=((Nt={})[Pt]={title:He("Free"),description:He("Create a beautiful, simple website in minutes"),productId:1,storeSlug:Pt,pathSlug:"beginner",features:["3 GB storage space"],isFree:!0},Nt[jt]={title:He("Personal"),description:He("Best for personal use"),productId:1009,storeSlug:jt,pathSlug:"personal",features:O(["6 GB storage space"],Ut.slice(0,3))},Nt[It]={title:He("Premium"),description:He("Best for freelancers"),productId:1003,storeSlug:It,pathSlug:"premium",features:O(["13 GB storage space"],Ut.slice(0,8)),isPopular:!0},Nt[Ft]={title:He("Business"),description:He("Best for small businesses"),productId:1008,storeSlug:Ft,pathSlug:"business",features:O(["200 GB storage space"],Ut.slice(0,11))},Nt[Rt]={title:He("eCommerce"),description:He("Best for online stores"),productId:1011,storeSlug:Rt,pathSlug:"ecommerce",features:O(["200 GB storage space"],Ut)},Nt),Ht=Object.keys(Bt).map((function(e){return Bt[e].pathSlug})),Vt=[{id:"general",name:null,features:[{name:"Free domain for One Year",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Email & basic live chat support",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"24/7 Priority live chat support",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Preinstalled SSL security",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Jetpack essential features",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Storage",type:"text",data:["3 GB","6 GB","13 GB","200 GB","200 GB"]},{name:"Dozens of free designs",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Remove WordPress.com ads",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Unlimited premium themes",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Advanced design customization",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Get personalized help",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Install plugins",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Upload themes",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Remove WordPress.com branding",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Automated backup & one-click rewind",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"SFTP and database access",type:"checkbox",data:[!1,!1,!1,!0,!0]}]},{id:"commerce",name:"Commerce",features:[{name:"Sell subscriptions (recurring payments)",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Sell single items (simple payments)",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Accept payments in 60+ countries",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Integrations with top shipping carriers",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Sell anything (products and/or services)",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Premium customizable starter themes",type:"checkbox",data:[!1,!1,!1,!1,!0]}]},{id:"marketing",name:"Marketing",features:[{name:"WordAds",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Advanced social media tools",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"VideoPress support",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"SEO tools",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Commerce marketing tools",type:"checkbox",data:[!1,!1,!1,!1,!0]}]}],Gt=Object.keys(Bt),Wt={supportedPlanSlugs:Gt,prices:(At={},At[Pt]="",At[jt]="",At[It]="",At[Ft]="",At[Rt]="",At)},zt=function(e,t){switch(void 0===e&&(e=Wt),t.type){case"SET_PRICES":return S(S({},e),{prices:t.prices});default:return e}},qt=function(e){return{type:"SET_PRICES",prices:e}},Yt=function(){return{type:"RESET_PLAN"}};function $t(e){return Bt[e]}var Kt=function(e,t){return $t(t)},Jt=function(){return $t(kt)},Qt=function(e){return e.supportedPlanSlugs.map($t)},Xt=function(e,t){return t&&Qt(e).find((function(e){return(null==e?void 0:e.pathSlug)===t}))},Zt=function(){return Vt},en=function(e){return Qt(e).map((function(e){return null==e?void 0:e.pathSlug}))},tn=function(e){return e.prices},nn=function(e,t){return t===Rt},rn=function(e,t){return t===Pt};function on(){var e,t,n;return w(this,(function(r){switch(r.label){case 0:return[4,Object(Tt.apiFetch)({global:!0,url:"https://public-api.wordpress.com/rest/v1.5/plans",mode:"cors",credentials:"omit"})];case 1:return e=r.sent(),t=e.filter((function(e){return-1!==Gt.indexOf(e.product_slug)})),n=t.reduce((function(e,t){return e[t.product_slug]=function(e){var t=Dt[e.currency_code],n=e.raw_price/12;return Number.isInteger(n)||(n=n.toFixed(t.decimal)),"AMOUNT_THEN_SYMBOL"===t.format?""+n+t.symbol:""+t.symbol+n}(t),e}),{}),[4,qt(n)];case 2:return r.sent(),[2]}}))}var an=!1;function sn(){return an||(an=!0,Object(v.registerStore)(Lt,{resolvers:u,actions:a,controls:Tt.controls,reducer:zt,selectors:s})),Lt}var un="automattic/site",cn=Object(v.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(e,t){switch(void 0===e&&(e=!1),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}}),ln=Object(v.combineReducers)({newSite:cn,sites:function(e,t){var n;if(void 0===e&&(e={}),"RECEIVE_SITE"===t.type)return S(S({},e),((n={})[t.siteId]=t.response,n));if("RECEIVE_SITE_FAILED"===t.type){var r=e,o=t.siteId,i=(r[o],E(r,["symbol"==typeof o?o:o+""]));return S({},i)}return"RESET_SITE_STORE"===t.type?{}:e},launchStatus:function(e,t){var n;return void 0===e&&(e={}),"LAUNCHED_SITE"===t.type?S(S({},e),((n={})[t.siteId]=!0,n)):e}});function fn(e){var t=function(){return{type:"FETCH_NEW_SITE"}},n=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},r=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};var o=function(e){return{type:"LAUNCHED_SITE",siteId:e}};return{fetchNewSite:t,receiveNewSite:n,receiveNewSiteFailed:r,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:function(t){var o,i,a,s,u,c;return w(this,(function(l){switch(l.label){case 0:return[4,{type:"FETCH_NEW_SITE"}];case 1:l.sent(),l.label=2;case 2:return l.trys.push([2,5,,7]),o=t.authToken,i=E(t,["authToken"]),a={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},s=S(S(S({},a),i),{validate:!1}),[4,vt({path:"/sites/new",apiVersion:"1.1",method:"post",body:s,token:o})];case 3:return u=l.sent(),[4,n(u)];case 4:return l.sent(),[2,!0];case 5:return c=l.sent(),[4,r(c)];case 6:return l.sent(),[2,!1];case 7:return[2]}}))},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:function(e){return w(this,(function(t){switch(t.label){case 0:return[4,vt({path:"/sites/"+e+"/launch",apiVersion:"1.1",method:"post"})];case 1:return t.sent(),[4,o(e)];case 2:return t.sent(),[2,!0]}}))},launchedSite:o,getCart:function(e){return w(this,(function(t){switch(t.label){case 0:return[4,vt({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})];case 1:return[2,t.sent()]}}))},setCart:function(e,t){return w(this,(function(n){switch(n.label){case 0:return[4,vt({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})];case 1:return[2,n.sent()]}}))}}}function pn(e){var t;return w(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,5]),[4,vt({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"})];case 1:return t=n.sent(),[4,Object(v.dispatch)(un).receiveSite(e,t)];case 2:return n.sent(),[3,5];case 3:return n.sent(),[4,Object(v.dispatch)(un).receiveSiteFailed(e,void 0)];case 4:return n.sent(),[3,5];case 5:return[2]}}))}var dn,hn=function(e){return e},mn=function(e){return e.newSite.data},yn=function(e){return e.newSite.error},gn=function(e){return e.newSite.isFetching},vn=function(e){return!!e.newSite.data},bn=function(e,t){return e.sites[t]},Sn=function(e,t){return e.launchStatus[t]};!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(dn||(dn={}));var En=!1;function wn(e){return En||(En=!0,Object(v.registerStore)(un,{actions:fn(e),controls:St,reducer:ln,resolvers:l,selectors:f})),un}var _n="automattic/wpcom-features",On=jt,Cn=It,xn=Ft,Nn=Rt,An={domain:{id:"domain",name:He("Custom domains"),description:He("Help your site stand out. The first year is free with a plan."),minSupportedPlan:On},store:{id:"store",name:He("Store"),description:He("Sell unlimited products or services with a powerful, flexible online store."),minSupportedPlan:Nn},seo:{id:"seo",name:He("SEO tools"),description:He("Boost your SEO and connect a Google Analytics account."),minSupportedPlan:xn},plugins:{id:"plugins",name:He("Plugins"),description:He("Install plugins to extend the power of your site."),minSupportedPlan:xn},"ad-free":{id:"ad-free",name:He("Ad-free"),description:He("Remove advertisements and own your brand."),minSupportedPlan:On},"image-storage":{id:"image-storage",name:He("Image storage"),description:He("Extended storage space for hi-res images."),minSupportedPlan:Cn},"video-storage":{id:"video-storage",name:He("Video storage"),description:He("Host your own ad-free videos"),minSupportedPlan:Cn},support:{id:"support",name:He("Priority support"),description:He("Chat with an expert live."),minSupportedPlan:xn}},Tn=function(e){return void 0===e&&(e=An),e},Pn=function(e){return e},jn=function(e,t){var n=Pn(e);return t.length?t.reduce((function(e,t){var r=n[t].minSupportedPlan;return Mt.indexOf(r)>Mt.indexOf(e)?r:e}),n[t[0]].minSupportedPlan):""},In=!1;function Fn(){return In||(In=!0,Object(v.registerStore)(_n,{controls:Tt.controls,reducer:Tn,selectors:d})),_n}i.register({vendor:"variation2_front"}),c.register(),p.register({client_id:"",client_secret:""});var Rn=window._currentSiteId,Ln={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},kn=[Ln.Name,Ln.Domain,Ln.Plan,Ln.Final],Mn=Object(v.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ln.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step: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},plan:function(e,t){return"SET_PLAN"===t.type?t.plan:"UNSET_PLAN"!==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}}),Dn=regeneratorRuntime.mark(Kn),Un=regeneratorRuntime.mark(Jn),Bn=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},Hn=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},Vn=function(e){return{type:"SET_STEP",step:e}},Gn=function(e){return{type:"SET_DOMAIN",domain:e}},Wn=function(){return{type:"UNSET_DOMAIN"}},zn=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},qn=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},Yn=function(e){return{type:"SET_PLAN",plan:e}},$n=function(){return{type:"UNSET_PLAN"}};function Kn(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(Tt.select)("automattic/onboard/plans","getPlanBySlug",e);case 2:return t=n.sent,n.next=5,Yn(t);case 5:case"end":return n.stop()}}),Dn)}function Jn(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(Tt.dispatch)("automattic/site","launchSite",Rn);case 3:return e=t.sent,t.abrupt("return",e);case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),Un,null,[[0,7]])}var Qn=function(){return{type:"OPEN_SIDEBAR"}},Xn=function(){return{type:"CLOSE_SIDEBAR"}},Zn=function(){return{type:"ENABLE_EXPERIMENTAL"}},er=function(){return kn},tr=function(){return Ln},nr=function(e){return e},rr=function(e){return!!e.domain&&!e.domain.is_free},or=function(e){return e.domain},ir=function(e){return e.plan},ar=function(e,t){if(t===Ln.Plan)return!!ir(e);if(t===Ln.Name){var n=Object(v.select)("core").getEntityRecord("root","site",void 0);return!!(null==n?void 0:n.title)}return t===Ln.Domain&&(!!or(e)||e.confirmedDomainSelection)},sr=function(e){return kn.slice(0,kn.length-1).every((function(t){return ar(e,t)}))},ur=function(e){return kn.some((function(t){return ar(e,t)}))},cr=function(e){return kn.find((function(t){return!ar(e,t)}))};var lr,fr,pr,dr,hr,mr,yr=(fr=lr="WP_LAUNCH",pr=lr+"_TS",dr={},hr={getItem:function(e){return dr.hasOwnProperty(e)?dr[e]:null},setItem:function(e,t){dr[e]=String(t)},removeItem:function(e){delete dr[e]}},mr=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:hr,{storageKey:fr,storage:{getItem:function(e){var t=mr.getItem(pr);return t&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(t)&&!new URLSearchParams(window.location.search).has("fresh")?mr.getItem(e):(mr.removeItem(fr),mr.removeItem(pr),null)},setItem:function(e,t){mr.setItem(pr,JSON.stringify(Date.now())),mr.setItem(e,t)}}});Object(v.use)(v.plugins.persistence,yr),Object(v.registerStore)("automattic/launch",{actions:m,controls:Tt.controls,reducer:Mn,selectors:y,persist:["domain","domainSearch","plan","confirmedDomainSelection","isExperimental"]}),h.register()}]));
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=66)}([function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t){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}},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},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"],e.exports=n(43)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){var n,r=window.ProgressEvent,o=!!r;try{n=new r("loaded"),o="loaded"===n.type,n=null}catch(i){o=!1}e.exports=o?r:"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}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=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:a,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"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(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 r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var s=r.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}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(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return o(t)&&!o(n)&&(s=a(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),s)}}},function(e,t,n){"use strict";var r=n(17),o=n(16);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 s(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 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+=s(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+=u(o.toString(16))}return n},t.zero2=s,t.zero8=u,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var a=new Array(i/4),s=0,u=t;s<a.length;s++,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],a[s]=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,s){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+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,a,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,a,s,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+s>>>0)<s?1:0,e+n+o+a+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,a,s,u,c){return t+r+i+s+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}},function(e,t,n){var r=n(44),o=n(45),i=n(13),a=n(46);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var o,i,a,s;if(c(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=l(e))>0&&a.length>o&&!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,s=u,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.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):y(o,o.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 y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.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},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(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},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,l=y(u,c);for(n=0;n<c;++n)i(l[n],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,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(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},s.prototype.off=s.prototype.removeListener,s.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},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(3);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}},function(e,t){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}},function(e,t,n){var r=n(12);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}}},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(7),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)},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t){"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}}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){var r=n(40),o=n(42);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=u(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)&&s(e)}}function a(e,t){e.name=u(o[t]),e.status=e.statusCode=t,s(e)}function s(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 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++)i(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},function(e,t,n){"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 s=i.push(t)-1,u=Object.keys(t).sort(o&&o(t));for(a="",n=0;n<u.length;n++){var c=u[n],l=e(t[c]);l&&(a&&(a+=","),a+=JSON.stringify(c)+":"+l)}return i.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";var r=n(48),o=n(49),i=n(14);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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=s(n(1)),i=s(n(50)),a=s(n(53));function s(e){return e&&e.__esModule?e:{default:e}}var u=void 0;function c(e,t){var n,a,s,l,f,p,d,h,m=[],y={};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> "+u);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],s=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+"`")}(s,e),d=c(e.slice(s+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&&(y["interpolation-child-"+t]=e)})),(0,i.default)(y))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(u=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(s){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+s.message+"`");return t}}},function(e,t,n){var r=n(10),o=n(16);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})}}},function(e,t,n){"use strict";var r=n(8),o=n(54),i=n(55),a=r.rotl32,s=r.sum32,u=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=u(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]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],p),this.h[4]=s(this.h[4],d)},p.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(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,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(56);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)}},function(e,t,n){var r=n(57),o=n(58),i=n(59);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)}}},function(e,t,n){var r=n(61),o=n(62),i=n(13),a=n(63);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";e.exports=n(64)},function(e,t){!function(){e.exports=this.wp.compose}()},,,,,,,,,function(e,t,n){"use strict";var r=n(41);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"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():""}},function(e,t){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"}},function(e,t,n){var r=n(9);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return o.colors[Math.abs(t)%o.colors.length]}function o(e){var n;function r(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(r.enabled){var a=r,s=Number(new Date),u=s-(n||s);a.diff=u,a.prev=n,a.curr=s,n=s,t[0]=o.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=o.formatters[n];if("function"==typeof r){var i=t[c];e=r.call(a,i),t.splice(c,1),c--}return e})),o.formatArgs.call(a,t);var l=a.log||o.log;l.apply(a,t)}}return r.namespace=e,r.enabled=o.enabled(e),r.useColors=o.useColors(),r.color=t(e),r.destroy=i,r.extend=a,"function"==typeof o.init&&o.init(r),o.instances.push(r),r}function i(){var e=o.instances.indexOf(this);return-1!==e&&(o.instances.splice(e,1),!0)}function a(e,t){var n=o(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return o.debug=o,o.default=o,o.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},o.disable=function(){var e=[].concat(r(o.names.map(s)),r(o.skips.map(s).map((function(e){return"-"+e})))).join(",");return o.enable(""),e},o.enable=function(e){var t;o.save(e),o.names=[],o.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?o.skips.push(new RegExp("^"+e.substr(1)+"$")):o.names.push(new RegExp("^"+e+"$")));for(t=0;t<o.instances.length;t++){var i=o.instances[t];i.enabled=o.enabled(i.namespace)}},o.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=o.skips.length;t<n;t++)if(o.skips[t].test(e))return!1;for(t=0,n=o.names.length;t<n;t++)if(o.names[t].test(e))return!0;return!1},o.humanize=n(47),Object.keys(e).forEach((function(t){o[t]=e[t]})),o.instances=[],o.names=[],o.skips=[],o.formatters={},o.selectColor=t,o.enable(o.load()),o}},function(e,t,n){var r=n(12);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){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.")}},function(e,t){var n=1e3,r=60*n,o=60*r,i=24*o,a=7*i,s=365.25*i;function u(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\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(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*a;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*o;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return u(e,t,i,"day");if(t>=o)return u(e,t,o,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var r=n(7),o=n(14),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,s(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,u,l,f,d,h,m,y,g){var v,b=t;if("function"==typeof l?b=l(n,b):b instanceof Date?b=h(b):"comma"===o&&s(b)&&(b=r.maybeMap(b,(function(e){return e instanceof Date?h(e):e})).join(",")),null===b){if(i)return u&&!y?u(n,p.encoder,g,"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(y?n:u(n,p.encoder,g,"key"))+"="+m(u(b,p.encoder,g,"value"))]:[m(n)+"="+m(String(b))];var S,E=[];if(void 0===b)return E;if(s(l))S=l;else{var _=Object.keys(b);S=f?_.sort(f):_}for(var w=0;w<S.length;++w){var O=S[w],C=b[O];if(!a||null!==C){var x=s(b)?"function"==typeof o?o(n,O):n:n+(d?"."+O:"["+O+"]");c(E,e(C,x,o,i,a,u,l,f,d,h,m,y,g))}}return E};e.exports=function(e,t){var n,r=e,u=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||s(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 u.filter?r=(0,u.filter)("",r):s(u.filter)&&(n=u.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)),u.sort&&n.sort(u.sort);for(var m=0;m<n.length;++m){var y=n[m];u.skipNulls&&null===r[y]||c(f,d(r[y],y,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var g=f.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&"),g.length>0?v+g:""}},function(e,t,n){"use strict";var r=n(7),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},s=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 i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.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!==(s=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==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,y,g=p[n],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,a.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),a.decoder,h,"key"),y=r.maybeMap(u(g.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(c,m)?c[m]=r.combine(c[m],y):c[m]=y}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)}},function(e,t,n){"use strict";var r=n(1),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(15),a=n(51),s=n(52),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 i,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&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&&(u&&e[u]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var m,y=h.call(e),g=0;!(m=y.next()).done;)f+=l(i=m.value,p+c(i,g++),n,r)}else if("object"===s){0;var v=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return f}var f=/\/+/g;function p(e){return(""+e).replace(f,"$&/")}var d,h,m=y,y=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=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 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 o,a,s=e.result,u=e.keyPrefix,c=e.func,l=e.context,f=c.call(l,t,e.count++);Array.isArray(f)?S(f,s,n,i.thatReturnsArgument):null!=f&&(r.isValidElement(f)&&(o=f,a=u+(!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)),s.push(f))}function S(e,t,n,r,o){var i="";null!=n&&(i=p(n)+"/");var a=v.getPooled(t,i,r,o);!function(e,t,n){null==e||l(e,"",t,n)}(e,b,a),v.release(a)}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 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=v).instancePool=[],h.getPooled=d||m,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!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)S(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){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,o,i,a,s],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r=n(15);e.exports=r},function(e,t,n){"use strict";function r(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(r)}},function(e,t,n){"use strict";var r=n(8),o=n(17);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}},function(e,t,n){"use strict";var r=n(8).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}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){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}}},function(e,t,n){var r=n(60),o=n(5);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},function(e,t){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.")}},function(e,t,n){"use strict";
2
  /** @license React v1.3.0
3
  * use-subscription.production.min.js
4
  *
11
  object-assign
12
  (c) Sindre Sorhus
13
  @license MIT
14
+ */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(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,t){for(var n,s,u=a(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var f=0;f<s.length;f++)i.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"receiveCategories",(function(){return F})),n.d(r,"fetchDomainSuggestions",(function(){return R})),n.d(r,"receiveDomainAvailability",(function(){return L})),n.d(r,"receiveDomainSuggestionsSuccess",(function(){return k})),n.d(r,"receiveDomainSuggestionsError",(function(){return M}));var o={};n.r(o),n.d(o,"isAvailable",(function(){return Et})),n.d(o,"getCategories",(function(){return _t})),n.d(o,"__internalGetDomainSuggestions",(function(){return wt}));var i={};n.r(i),n.d(i,"register",(function(){return xt}));var a={};n.r(a),n.d(a,"setPrices",(function(){return qt})),n.d(a,"resetPlan",(function(){return Yt}));var s={};n.r(s),n.d(s,"getPlanBySlug",(function(){return Kt})),n.d(s,"getDefaultPaidPlan",(function(){return Jt})),n.d(s,"getSupportedPlans",(function(){return Qt})),n.d(s,"getPlanByPath",(function(){return Xt})),n.d(s,"getPlansDetails",(function(){return Zt})),n.d(s,"getPlansPaths",(function(){return en})),n.d(s,"getPrices",(function(){return tn})),n.d(s,"isPlanEcommerce",(function(){return nn})),n.d(s,"isPlanFree",(function(){return rn}));var u={};n.r(u),n.d(u,"getPrices",(function(){return on}));var c={};n.r(c),n.d(c,"plansPaths",(function(){return Ht})),n.d(c,"PLAN_FREE",(function(){return Pt})),n.d(c,"PLAN_PERSONAL",(function(){return jt})),n.d(c,"PLAN_PREMIUM",(function(){return It})),n.d(c,"PLAN_BUSINESS",(function(){return Ft})),n.d(c,"PLAN_ECOMMERCE",(function(){return Rt})),n.d(c,"register",(function(){return sn}));var l={};n.r(l),n.d(l,"getSite",(function(){return pn}));var f={};n.r(f),n.d(f,"getState",(function(){return hn})),n.d(f,"getNewSite",(function(){return mn})),n.d(f,"getNewSiteError",(function(){return yn})),n.d(f,"isFetchingSite",(function(){return gn})),n.d(f,"isNewSite",(function(){return vn})),n.d(f,"getSite",(function(){return bn})),n.d(f,"isLaunched",(function(){return Sn}));var p={};n.r(p),n.d(p,"Visibility",(function(){return dn})),n.d(p,"register",(function(){return _n}));var d={};n.r(d),n.d(d,"getAllFeatures",(function(){return xn})),n.d(d,"getRecommendedPlanSlug",(function(){return Nn}));var h={};n.r(h),n.d(h,"featuresList",(function(){return On})),n.d(h,"register",(function(){return Tn}));var m={};n.r(m),n.d(m,"setSidebarFullscreen",(function(){return kn})),n.d(m,"unsetSidebarFullscreen",(function(){return Mn})),n.d(m,"setStep",(function(){return Dn})),n.d(m,"setDomain",(function(){return Un})),n.d(m,"unsetDomain",(function(){return Bn})),n.d(m,"confirmDomainSelection",(function(){return Hn})),n.d(m,"setDomainSearch",(function(){return Vn})),n.d(m,"setPlan",(function(){return Gn})),n.d(m,"unsetPlan",(function(){return Wn})),n.d(m,"updatePlan",(function(){return zn})),n.d(m,"launchSite",(function(){return qn})),n.d(m,"openSidebar",(function(){return Yn})),n.d(m,"closeSidebar",(function(){return $n})),n.d(m,"enableExperimental",(function(){return Kn}));var y={};n.r(y),n.d(y,"getLaunchSequence",(function(){return Jn})),n.d(y,"getLaunchStep",(function(){return Qn})),n.d(y,"getState",(function(){return Xn})),n.d(y,"hasPaidDomain",(function(){return Zn})),n.d(y,"getSelectedDomain",(function(){return er})),n.d(y,"getSelectedPlan",(function(){return tr})),n.d(y,"isStepCompleted",(function(){return nr})),n.d(y,"isFlowCompleted",(function(){return rr})),n.d(y,"isFlowStarted",(function(){return or})),n.d(y,"getFirstIncompleteStep",(function(){return ir}));var g,v=n(0),b="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(g||(g={}));var S=function(){return(S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function E(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function _(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function w(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function O(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w(arguments[t]));return e}var C,x,N,A,T=n(19),P=n.n(T).a,j={state:g.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},I=Object(v.combineReducers)({categories:function(e,t){return void 0===e&&(e=[]),"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(e,t){var n;return void 0===e&&(e=j),"FETCH_DOMAIN_SUGGESTIONS"===t.type?S(S({},e),{state:g.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?S(S({},e),{state:g.Success,data:S(S({},e.data),(n={},n[P(t.queryObject)]=t.suggestions,n)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?S(S({},e),{state:g.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(e,t){var n;return void 0===e&&(e={}),"RECEIVE_DOMAIN_AVAILABILITY"===t.type?S(S({},e),((n={})[t.domainName]=t.availability,n)):e}}),F=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},R=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},L=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},k=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},M=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}},D=n(20),U=n(9),B=n.n(U),H=n(3),V=n.n(H),G=n(4),W=n.n(G),z=n(21),q=n.n(z);C={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},x=["(","?"],N={")":["("],":":["?","?:"]},A=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Y={"!":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 $(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(A);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(N[n]){if(N[n][0]===o){n=N[n][1]||n;break}}else if(x.indexOf(o)>=0||C[o]<C[n]){a.push(o);break}i.push(o)}N[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,s,u=[];for(n=0;n<e.length;n++){if(a=e[n],i=Y[a]){for(r=i.length,o=Array(r);r--;)o[r]=u.pop();try{s=i.apply(null,o)}catch(c){return c}}else s=t.hasOwnProperty(a)?t[a]:+a;u.push(s)}return u[0]}(t,e)}}var K={contextDelimiter:"",onMissingKey:null};function J(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},K)this.options[n]=void 0!==t&&n in t?t[n]:K[n]}J.prototype.getPluralForm=function(e,t){var n,r,o,i,a=this.pluralForms[e];return a||("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),i=$(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},J.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var Q=n(22),X=n.n(Q),Z=n(23),ee=n.n(Z),te=n(10),ne=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function re(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(ne,(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:"")}))}
15
  /*
16
  * Exposes number format capability
17
  *
18
  * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
19
  * @license See CREDITS.md
20
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
21
+ */function oe(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,s=void 0===n?".":n,u="";return(u=(i?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&&(u[0]=u[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(u[1]||"").length<i&&(u[1]=u[1]||"",u[1]+=new Array(i-u[1].length+1).join("0")),u.join(s)}var ie=W()("i18n-calypso"),ae="number_format_decimals",se="number_format_thousands_sep",ue="messages",ce=[function(e){return e}],le={};function fe(){ye.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function pe(e){return Array.prototype.slice.call(e)}function de(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&fe("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",pe(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&fe("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",pe(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 he(e,t){return e.dcnpgettext(ue,t.context,t.original,t.plural,t.count)}function me(e,t){for(var n=ce.length-1;n>=0;n--){var r=ce[n](Object.assign({},t)),o=r.context?r.context+""+r.original:r.original;if(e.state.locale[o])return he(e.state.tannin,r)}return null}function ye(){if(!(this instanceof ye))return new ye;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:X()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new te.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}ye.throwErrors=!1,ye.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},ye.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},ye.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},ye.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 oe(e,n,r,o)},ye.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},ye.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!==le[n+e])return le[n+e];var r=ee()().update(e).digest("hex");return le[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)ce.push(a(!1));else{var s=o.substr(5).indexOf("-");if(s<0){var u=Number(o.substr(5));ce.push(a(u))}else for(var c=Number(o.substr(5,s)),l=Number(o.substr(6+s)),f=c;f<=l;f++)ce.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.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 J(V()({},ue,this.state.locale)),this.state.numberFormatSettings.decimal_point=he(this.state.tannin,de([ae])),this.state.numberFormatSettings.thousands_sep=he(this.state.tannin,de([se])),this.state.numberFormatSettings.decimal_point===ae&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===se&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},ye.prototype.getLocale=function(){return this.state.locale},ye.prototype.getLocaleSlug=function(){return this.state.localeSlug},ye.prototype.isRtl=function(){return"rtl"===this.state.textDirection},ye.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},ye.prototype.hasTranslation=function(){return!!me(this,de(arguments))},ye.prototype.translate=function(){var e=de(arguments),t=me(this,e);if(t||(t=he(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=re.apply(void 0,B()(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=q()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},ye.prototype.reRenderTranslations=function(){ie("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},ye.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},ye.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var ge=ye,ve=n(11),be=n.n(ve),Se=n(24),Ee=n.n(Se),_e=n(25),we=n.n(_e),Oe=n(5),Ce=n.n(Oe),xe=n(26),Ne=n.n(xe),Ae=n(27),Te=n.n(Ae),Pe=n(1),je=n.n(Pe),Ie=n(28),Fe=n.n(Ie),Re=n(29),Le=n.n(Re),ke=n(30),Me=n(31);var De,Ue,Be=new ge,He=(Be.numberFormat.bind(Be),Be.translate.bind(Be)),Ve=(Be.configure.bind(Be),Be.setLocale.bind(Be),Be.getLocale.bind(Be),Be.getLocaleSlug.bind(Be),Be.addTranslations.bind(Be),Be.reRenderTranslations.bind(Be),Be.registerComponentUpdateHook.bind(Be),Be.registerTranslateHook.bind(Be),Be.state,Be.stateObserver,Be.on.bind(Be),Be.off.bind(Be),Be.emit.bind(Be),Ue={numberFormat:(De=Be).numberFormat.bind(De),translate:De.translate.bind(De)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Be),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 Object(ke.useSubscription)(t)}var r=Object(Me.createHigherOrderComponent)((function(e){return Object(Pe.forwardRef)((function(t,r){var o=n();return je.a.createElement(e,Le()({},t,{isRtl:o,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Be)),Ge=(Ve.useRtl,Ve.withRtl,"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)),We=new Uint8Array(16);function ze(){if(!Ge)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ge(We)}for(var qe=[],Ye=0;Ye<256;++Ye)qe[Ye]=(Ye+256).toString(16).substr(1);var $e=function(e,t){var n=t||0,r=qe;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 Ke,Je=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||ze)();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||$e(o)},Qe=n(18),Xe=n.n(Qe),Ze=n(6),et=n.n(Ze),tt=W()("wpcom-proxy-request"),nt="https://public-api.wordpress.com",rt=window.location.protocol+"//"+window.location.host,ot=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),it=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),at=null,st=!1,ut={},ct=!!window.ProgressEvent&&!!window.FormData;tt('using "origin": %o',rt);var lt=function(e,t){var n=Object.assign({},e);tt("request(%o)",n),at||mt();var r=Je();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=ct,n.method=String(n.method||"GET").toUpperCase(),tt("params object: %o",n);var o=new window.XMLHttpRequest;if(o.params=n,ut[r]=o,"function"==typeof t){var i=!1,a=function(e){if(!i){i=!0;var n=e.error||e.err||e;tt("error: ",n),tt("headers: ",e.headers),t(n,null,e.headers)}};o.addEventListener("load",(function(e){if(!i){i=!0;var n=e.response||o.response;tt("body: ",n),tt("headers: ",e.headers),t(null,n,e.headers)}})),o.addEventListener("abort",a),o.addEventListener("error",a)}return st?pt(n):(tt("buffering API request since proxying <iframe> is not yet loaded"),Ke.push(n)),o},ft=function(e,t){return"function"==typeof t?lt(e,t):new Promise((function(t,n){lt(e,(function(e,r){e?n(e):t(r)}))}))};function pt(e){tt("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!it)return;for(var t=0;t<e.length;t++){var n=ht(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),at.contentWindow.postMessage(ot?JSON.stringify(e):e,nt)}function dt(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function ht(e){return dt(e)?e:"object"==typeof e&&dt(e.fileContents)?e.fileContents:null}function mt(){tt("install()"),at&&(tt("uninstall()"),window.removeEventListener("message",yt),document.body.removeChild(at),st=!1,at=null),Ke=[],window.addEventListener("message",yt),(at=document.createElement("iframe")).src=nt+"/wp-admin/rest-proxy/?v=2.0#"+rt,at.style.display="none",document.body.appendChild(at)}function yt(e){if(tt("onmessage"),e.origin===nt){var t=e.data;if(!t)return tt("no `data`, bailing");if("ready"!==t){if(ot&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){tt('got "progress" event: %o',e);var t=ut[e.callbackId];if(t){var n=new et.a("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return tt("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in ut))return tt("bailing, no matching request with callback: %o",n);var r=ut[n],o=r.params,i=t[0],a=t[1],s=t[2];if(207===a||delete ut[n],o.metaAPI?a="metaAPIupdated"===i?200:500:tt("got %o status code for URL: %o",a,o.path),"object"==typeof s&&(s.status=a),a&&2===Math.floor(a/100))!function(e,t,n){var r=new et.a("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(r,i,s);else!function(e,t,n){var r=new et.a("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}(r,Xe()(o,a,i),s)}else!function(){if(tt('proxy <iframe> "load" event'),st=!0,Ke){for(var e=0;e<Ke.length;e++)pt(Ke[e]);Ke=null}}()}else tt("ignoring message... %o !== %o",e.origin,nt)}var gt=ft,vt=function(e){return{type:"WPCOM_REQUEST",request:e}},bt=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},St={WPCOM_REQUEST:function(e){var t=e.request;return gt(t)},FETCH_AND_PARSE:function(e){var t,n,r,o,i=e.resource,a=e.options;return t=void 0,n=void 0,o=function(){var e,t;return _(this,(function(n){switch(n.label){case 0:return[4,window.fetch(i,a)];case 1:return e=n.sent(),t={ok:e.ok},[4,e.json()];case 2:return[2,(t.body=n.sent(),t)]}}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{u(o.next(e))}catch(t){i(t)}}function s(e){try{u(o.throw(e))}catch(t){i(t)}}function u(t){t.done?e(t.value):new r((function(e){e(t.value)})).then(a,s)}u((o=o.apply(t,n||[])).next())}))},RELOAD_PROXY:function(){mt()},REQUEST_ALL_BLOGS_ACCESS:function(){return ft({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}},Et=function(e){var t,n;return _(this,(function(r){switch(r.label){case 0:t="https://public-api.wordpress.com/rest/v1.3/domains/"+encodeURIComponent(e)+"/is-available?is_cart_pre_check=true",r.label=1;case 1:return r.trys.push([1,3,,4]),[4,bt(t)];case 2:return n=r.sent().body,[2,L(e,n)];case 3:return r.sent(),[2,L(e,{domain_name:e,mappable:"unknown",status:"unknown",supports_privacy:!1})];case 4:return[2]}}))};function _t(){var e;return _(this,(function(t){switch(t.label){case 0:return[4,bt("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories")];case 1:return e=t.sent(),[2,F(e.body)]}}))}function wt(e){var t,n;return _(this,(function(r){switch(r.label){case 0:return e.query?[4,R()]:[2,M("Empty query")];case 1:r.sent(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,vt({apiVersion:"1.1",path:"/domains/suggestions",query:Object(D.stringify)(e)})];case 3:return t=r.sent(),[3,5];case 4:return n=r.sent(),[2,M(n.message||He("Error while fetching server response"))];case 5:return t&&""!==t?[2,k(e,t)]:[2,M(He("Invalid response from the server"))]}}))}var Ot=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 O(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1})),e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)})))},getDomainSuggestions:function(e,n,r){void 0===r&&(r={});var o=t(n,r);return Object(v.select)(b).__internalGetDomainSuggestions(o)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n,r){void 0===r&&(r={});var o=t(n,r);return Object(v.select)("core/data").isResolving(b,"__internalGetDomainSuggestions",[o])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[P(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}},Ct=!1;function xt(e){var t=e.vendor;return Ct||(Ct=!0,Object(v.registerStore)(b,{actions:r,controls:St,reducer:I,resolvers:o,selectors:Ot(t)})),b}var Nt,At,Tt=n(2),Pt="free_plan",jt="personal-bundle",It="value_bundle",Ft="business-bundle",Rt="ecommerce-bundle",Lt="automattic/onboard/plans",kt=It,Mt=[jt,It,Ft,Rt],Dt={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}},Ut=["Remove WordPress.com ads","Email & basic live chat support","Collect recurring payments","Collect one-time payments","Earn ad revenue","Premium themes","Upload videos","Google Analytics support","Business features (incl. SEO)","Upload themes","Install plugins","Accept payments in 60+ countries"],Bt=((Nt={})[Pt]={title:He("Free"),description:He("Create a beautiful, simple website in minutes"),productId:1,storeSlug:Pt,pathSlug:"beginner",features:["3 GB storage space"],isFree:!0},Nt[jt]={title:He("Personal"),description:He("Best for personal use"),productId:1009,storeSlug:jt,pathSlug:"personal",features:O(["6 GB storage space"],Ut.slice(0,3))},Nt[It]={title:He("Premium"),description:He("Best for freelancers"),productId:1003,storeSlug:It,pathSlug:"premium",features:O(["13 GB storage space"],Ut.slice(0,8)),isPopular:!0},Nt[Ft]={title:He("Business"),description:He("Best for small businesses"),productId:1008,storeSlug:Ft,pathSlug:"business",features:O(["200 GB storage space"],Ut.slice(0,11))},Nt[Rt]={title:He("eCommerce"),description:He("Best for online stores"),productId:1011,storeSlug:Rt,pathSlug:"ecommerce",features:O(["200 GB storage space"],Ut)},Nt),Ht=Object.keys(Bt).map((function(e){return Bt[e].pathSlug})),Vt=[{id:"general",name:null,features:[{name:"Free domain for One Year",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Email & basic live chat support",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"24/7 Priority live chat support",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Preinstalled SSL security",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Jetpack essential features",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Storage",type:"text",data:["3 GB","6 GB","13 GB","200 GB","200 GB"]},{name:"Dozens of free designs",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Remove WordPress.com ads",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Unlimited premium themes",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Advanced design customization",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Get personalized help",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Install plugins",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Upload themes",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Remove WordPress.com branding",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Automated backup & one-click rewind",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"SFTP and database access",type:"checkbox",data:[!1,!1,!1,!0,!0]}]},{id:"commerce",name:"Commerce",features:[{name:"Sell subscriptions (recurring payments)",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Sell single items (simple payments)",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Accept payments in 60+ countries",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Integrations with top shipping carriers",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Sell anything (products and/or services)",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Premium customizable starter themes",type:"checkbox",data:[!1,!1,!1,!1,!0]}]},{id:"marketing",name:"Marketing",features:[{name:"WordAds",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Advanced social media tools",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"VideoPress support",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"SEO tools",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Commerce marketing tools",type:"checkbox",data:[!1,!1,!1,!1,!0]}]}],Gt=Object.keys(Bt),Wt={supportedPlanSlugs:Gt,prices:(At={},At[Pt]="",At[jt]="",At[It]="",At[Ft]="",At[Rt]="",At)},zt=function(e,t){switch(void 0===e&&(e=Wt),t.type){case"SET_PRICES":return S(S({},e),{prices:t.prices});default:return e}},qt=function(e){return{type:"SET_PRICES",prices:e}},Yt=function(){return{type:"RESET_PLAN"}};function $t(e){return Bt[e]}var Kt=function(e,t){return $t(t)},Jt=function(){return $t(kt)},Qt=function(e){return e.supportedPlanSlugs.map($t)},Xt=function(e,t){return t&&Qt(e).find((function(e){return(null==e?void 0:e.pathSlug)===t}))},Zt=function(){return Vt},en=function(e){return Qt(e).map((function(e){return null==e?void 0:e.pathSlug}))},tn=function(e){return e.prices},nn=function(e,t){return t===Rt},rn=function(e,t){return t===Pt};function on(){var e,t,n;return _(this,(function(r){switch(r.label){case 0:return[4,Object(Tt.apiFetch)({global:!0,url:"https://public-api.wordpress.com/rest/v1.5/plans",mode:"cors",credentials:"omit"})];case 1:return e=r.sent(),t=e.filter((function(e){return-1!==Gt.indexOf(e.product_slug)})),n=t.reduce((function(e,t){return e[t.product_slug]=function(e){var t=Dt[e.currency_code],n=e.raw_price/12;return Number.isInteger(n)||(n=n.toFixed(t.decimal)),"AMOUNT_THEN_SYMBOL"===t.format?""+n+t.symbol:""+t.symbol+n}(t),e}),{}),[4,qt(n)];case 2:return r.sent(),[2]}}))}var an=!1;function sn(){return an||(an=!0,Object(v.registerStore)(Lt,{resolvers:u,actions:a,controls:Tt.controls,reducer:zt,selectors:s})),Lt}var un="automattic/site",cn=Object(v.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(e,t){switch(void 0===e&&(e=!1),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}}),ln=Object(v.combineReducers)({newSite:cn,sites:function(e,t){var n;if(void 0===e&&(e={}),"RECEIVE_SITE"===t.type)return S(S({},e),((n={})[t.siteId]=t.response,n));if("RECEIVE_SITE_FAILED"===t.type){var r=e,o=t.siteId,i=(r[o],E(r,["symbol"==typeof o?o:o+""]));return S({},i)}return"RESET_SITE_STORE"===t.type?{}:e},launchStatus:function(e,t){var n;return void 0===e&&(e={}),"LAUNCHED_SITE"===t.type?S(S({},e),((n={})[t.siteId]=!0,n)):e}});function fn(e){var t=function(){return{type:"FETCH_NEW_SITE"}},n=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},r=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};var o=function(e){return{type:"LAUNCHED_SITE",siteId:e}};return{fetchNewSite:t,receiveNewSite:n,receiveNewSiteFailed:r,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:function(t){var o,i,a,s,u,c;return _(this,(function(l){switch(l.label){case 0:return[4,{type:"FETCH_NEW_SITE"}];case 1:l.sent(),l.label=2;case 2:return l.trys.push([2,5,,7]),o=t.authToken,i=E(t,["authToken"]),a={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},s=S(S(S({},a),i),{validate:!1}),[4,vt({path:"/sites/new",apiVersion:"1.1",method:"post",body:s,token:o})];case 3:return u=l.sent(),[4,n(u)];case 4:return l.sent(),[2,!0];case 5:return c=l.sent(),[4,r(c)];case 6:return l.sent(),[2,!1];case 7:return[2]}}))},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:function(e){return _(this,(function(t){switch(t.label){case 0:return[4,vt({path:"/sites/"+e+"/launch",apiVersion:"1.1",method:"post"})];case 1:return t.sent(),[4,o(e)];case 2:return t.sent(),[2,!0]}}))},launchedSite:o,getCart:function(e){return _(this,(function(t){switch(t.label){case 0:return[4,vt({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})];case 1:return[2,t.sent()]}}))},setCart:function(e,t){return _(this,(function(n){switch(n.label){case 0:return[4,vt({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})];case 1:return[2,n.sent()]}}))}}}function pn(e){var t;return _(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,5]),[4,vt({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"})];case 1:return t=n.sent(),[4,Object(v.dispatch)(un).receiveSite(e,t)];case 2:return n.sent(),[3,5];case 3:return n.sent(),[4,Object(v.dispatch)(un).receiveSiteFailed(e,void 0)];case 4:return n.sent(),[3,5];case 5:return[2]}}))}var dn,hn=function(e){return e},mn=function(e){return e.newSite.data},yn=function(e){return e.newSite.error},gn=function(e){return e.newSite.isFetching},vn=function(e){return!!e.newSite.data},bn=function(e,t){return e.sites[t]},Sn=function(e,t){return e.launchStatus[t]};!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(dn||(dn={}));var En=!1;function _n(e){return En||(En=!0,Object(v.registerStore)(un,{actions:fn(e),controls:St,reducer:ln,resolvers:l,selectors:f})),un}var wn="automattic/wpcom-features",On={domain:{id:"domain",minSupportedPlan:jt},store:{id:"store",minSupportedPlan:Rt},seo:{id:"seo",minSupportedPlan:Ft},plugins:{id:"plugins",minSupportedPlan:Ft},"ad-free":{id:"ad-free",minSupportedPlan:jt},"image-storage":{id:"image-storage",minSupportedPlan:It},"video-storage":{id:"video-storage",minSupportedPlan:It},support:{id:"support",minSupportedPlan:Ft}},Cn=function(e){return void 0===e&&(e=On),e},xn=function(e){return e},Nn=function(e,t){var n=xn(e);return t.length?t.reduce((function(e,t){var r=n[t].minSupportedPlan;return Mt.indexOf(r)>Mt.indexOf(e)?r:e}),n[t[0]].minSupportedPlan):""},An=!1;function Tn(){return An||(An=!0,Object(v.registerStore)(wn,{controls:Tt.controls,reducer:Cn,selectors:d})),wn}i.register({vendor:"variation2_front"}),c.register(),p.register({client_id:"",client_secret:""});var Pn=window._currentSiteId,jn={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},In=[jn.Name,jn.Domain,jn.Plan,jn.Final],Fn=Object(v.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jn.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step: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},plan:function(e,t){return"SET_PLAN"===t.type?t.plan:"UNSET_PLAN"!==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}}),Rn=regeneratorRuntime.mark(zn),Ln=regeneratorRuntime.mark(qn),kn=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},Mn=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},Dn=function(e){return{type:"SET_STEP",step:e}},Un=function(e){return{type:"SET_DOMAIN",domain:e}},Bn=function(){return{type:"UNSET_DOMAIN"}},Hn=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},Vn=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},Gn=function(e){return{type:"SET_PLAN",plan:e}},Wn=function(){return{type:"UNSET_PLAN"}};function zn(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(Tt.select)("automattic/onboard/plans","getPlanBySlug",e);case 2:return t=n.sent,n.next=5,Gn(t);case 5:case"end":return n.stop()}}),Rn)}function qn(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(Tt.dispatch)("automattic/site","launchSite",Pn);case 3:return e=t.sent,t.abrupt("return",e);case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),Ln,null,[[0,7]])}var Yn=function(){return{type:"OPEN_SIDEBAR"}},$n=function(){return{type:"CLOSE_SIDEBAR"}},Kn=function(){return{type:"ENABLE_EXPERIMENTAL"}},Jn=function(){return In},Qn=function(){return jn},Xn=function(e){return e},Zn=function(e){return!!e.domain&&!e.domain.is_free},er=function(e){return e.domain},tr=function(e){return e.plan},nr=function(e,t){if(t===jn.Plan)return!!tr(e);if(t===jn.Name){var n=Object(v.select)("core").getEntityRecord("root","site",void 0);return!!(null==n?void 0:n.title)}return t===jn.Domain&&(!!er(e)||e.confirmedDomainSelection)},rr=function(e){return In.slice(0,In.length-1).every((function(t){return nr(e,t)}))},or=function(e){return In.some((function(t){return nr(e,t)}))},ir=function(e){return In.find((function(t){return!nr(e,t)}))};var ar,sr,ur,cr,lr,fr,pr=(sr=ar="WP_LAUNCH",ur=ar+"_TS",cr={},lr={getItem:function(e){return cr.hasOwnProperty(e)?cr[e]:null},setItem:function(e,t){cr[e]=String(t)},removeItem:function(e){delete cr[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:sr,storage:{getItem:function(e){var t=fr.getItem(ur);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(sr),fr.removeItem(ur),null)},setItem:function(e,t){fr.setItem(ur,JSON.stringify(Date.now())),fr.setItem(e,t)}}});Object(v.use)(v.plugins.persistence,pr),Object(v.registerStore)("automattic/launch",{actions:m,controls:Tt.controls,reducer:Fn,selectors:y,persist:["domain","domainSearch","plan","confirmedDomainSelection","isExperimental"]}),h.register()}]));
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' => '4a5b360e22335f414ed2499e1a4e6160');
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' => '3056c8fd6b760ea70c617a1a86183d40');
editor-gutenboarding-launch/dist/editor-gutenboarding-launch.js CHANGED
@@ -4,4 +4,4 @@
4
  * Copyright(c) 2012-2014 Roman Shtylman
5
  * Copyright(c) 2015 Douglas Christopher Wilson
6
  * MIT Licensed
7
- */t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},s=e.split(o),u=i.decode||r,c=0;c<s.length;c++){var f=s[c],l=f.indexOf("=");if(!(l<0)){var h=f.substr(0,l).trim(),p=f.substr(++l,f.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),null==n[h]&&(n[h]=a(p,u))}}return n},t.serialize=function(e,t,n){var r=n||{},o=r.encode||i;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!s.test(e))throw new TypeError("argument name is invalid");var a=o(t);if(a&&!s.test(a))throw new TypeError("argument val is invalid");var u=e+"="+a;if(null!=r.maxAge){var c=r.maxAge-0;if(isNaN(c))throw new Error("maxAge should be a Number");u+="; Max-Age="+Math.floor(c)}if(r.domain){if(!s.test(r.domain))throw new TypeError("option domain is invalid");u+="; Domain="+r.domain}if(r.path){if(!s.test(r.path))throw new TypeError("option path is invalid");u+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");u+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(u+="; HttpOnly");r.secure&&(u+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var r=decodeURIComponent,i=encodeURIComponent,o=/; */,s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(n){return e}}},function(e,t,n){"use strict";var r=n(5),i=n(20);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 f=0,l=t;return f+=(l=l+r>>>0)<t?1:0,f+=(l=l+o>>>0)<o?1:0,f+=(l=l+a>>>0)<a?1:0,e+n+i+s+u+(f+=(l=l+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}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){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}},function(e,t){function n(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 t=this,r=arguments;return new Promise((function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,u,"next",e)}function u(e){n(s,i,o,a,u,"throw",e)}a(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){"use strict";var r=n(4),i=n(21),o=n(22),s=n(5),a=r.sum32,u=r.sum32_4,c=r.sum32_5,f=o.ch32,l=o.maj32,h=o.s0_256,p=o.s1_256,d=o.g0_256,v=o.g1_256,g=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;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],d(n[r-15]),n[r-16]);var i=this.h[0],o=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,p(y),f(y,w,C),this.k[r],n[r]),x=a(h(i),l(i,o,g));b=C,C=w,w=y,y=a(m,_),m=g,g=o,o=i,i=a(_,x)}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],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")}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,s,a;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),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=f(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 h(){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=h.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):g(i,i.length)}function v(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(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),a.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},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(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},a.prototype.getMaxListeners=function(){return f(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){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)o(u,this,t);else{var c=u.length,f=g(u,c);for(n=0;n<c;++n)o(f[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,o,s;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){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},a.prototype.off=a.prototype.removeListener,a.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},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},a.prototype.listenerCount=v,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(14);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return i.colors[Math.abs(t)%i.colors.length]}function i(e){var n;function r(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[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,t[0]=i.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=i.formatters[n];if("function"==typeof r){var o=t[c];e=r.call(s,o),t.splice(c,1),c--}return e})),i.formatArgs.call(s,t);var f=s.log||i.log;f.apply(s,t)}}return r.namespace=e,r.enabled=i.enabled(e),r.useColors=i.useColors(),r.color=t(e),r.destroy=o,r.extend=s,"function"==typeof i.init&&i.init(r),i.instances.push(r),r}function o(){var e=i.instances.indexOf(this);return-1!==e&&(i.instances.splice(e,1),!0)}function s(e,t){var n=i(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return i.debug=i,i.default=i,i.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},i.disable=function(){var e=[].concat(r(i.names.map(a)),r(i.skips.map(a).map((function(e){return"-"+e})))).join(",");return i.enable(""),e},i.enable=function(e){var t;i.save(e),i.names=[],i.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")));for(t=0;t<i.instances.length;t++){var o=i.instances[t];o.enabled=i.enabled(o.namespace)}},i.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=i.skips.length;t<n;t++)if(i.skips[t].test(e))return!1;for(t=0,n=i.names.length;t<n;t++)if(i.names[t].test(e))return!0;return!1},i.humanize=n(19),Object.keys(e).forEach((function(t){i[t]=e[t]})),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=t,i.enable(i.load()),i}},function(e,t,n){var r=n(15),i=n(16),o=n(17),s=n(18);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},function(e,t,n){var r=n(7);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(7);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}}},function(e,t){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.")}},function(e,t){var n=1e3,r=60*n,i=60*r,o=24*i,s=7*o,a=365.25*o;function u(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\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(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*a;case"weeks":case"week":case"w":return u*s;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*i;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return u(e,t,o,"day");if(t>=i)return u(e,t,i,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){"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}}},function(e,t,n){"use strict";var r=n(4),i=n(5);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}},function(e,t,n){"use strict";var r=n(4).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}},function(e,t){!function(){e.exports=this["a8c-fse-common-data-stores"]}()},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(8),i=n.n(r),o=n(6),s=n(9),a=n.n(s),u=n(10),c=n(2),f=n(0),l=n.n(f),h=l()("calypso:analytics");n(11);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));var p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var d=n(1),v=(n(3),n(12)),g=l()("lib/load-script/callback-handler"),m=new Map;function y(){return m}function w(e){return y().has(e)}function C(e,t){var n=y();w(e)?(g('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(g('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=y(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));g(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function _(){var e=this.getAttribute("src");g('Handling successful request for "'.concat(e,'"')),b(e),this.onload=null}function x(){var e=this.getAttribute("src");g('Handling failed request for "'.concat(e,'"')),b(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var F=l()("lib/load-script/dom-operations");l()("package/load-script");function S(e,t){var n;if(!w(e)&&(n=function(e){F('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=_,t.onerror=x,t}(e),F("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){C(e,(function(e){null===e?t():n(e)}))}));C(e,t)}var L,E=["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"];Promise.resolve();function O(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&S("//stats.wp.com/w.js?61");var j=new v.EventEmitter;function A(e,t){if(h('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(d.includes)(E,e)){if(L){var n=L(t);t=p(p({},t),n)}t=Object(d.omitBy)(t,d.isUndefined),h('Recording event "%s" with actual props %o',e,t),O(["recordEvent",e,t]),j.emit("record-event",e,t)}else h('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),new Uint8Array(16);for(var k=[],M=0;M<256;++M)k[M]=(M+256).toString(16).substr(1);n(23),n(24),n(25);a()((function(){P(),Object(u.addAction)("setGutenboardingStatus","a8c-gutenboarding",P)}));var T=!1;function P(){var e,t,n,r;if(!T&&(null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding)&&(null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.frankenflowUrl)){T=!0;var s=setInterval((function(){var e,t,n,r,a,u,f,l,h=document.querySelector(".edit-post-header__settings");if(h){clearInterval(s);var p=window.innerWidth<782,d=null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isNewLaunch,v=null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.isNewLaunchMobile,g=null===(a=window)||void 0===a||null===(u=a.calypsoifyGutenberg)||void 0===u?void 0:u.isExperimental,m=null===(f=window)||void 0===f||null===(l=f.calypsoifyGutenberg)||void 0===l?void 0:l.frankenflowUrl,y=p?Object(o.__)("Launch","full-site-editing"):Object(o.__)("Complete setup","full-site-editing"),w=function(){var e=i()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.dispatch)("core/editor").savePost();case 2:window.top.location.href=m;case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();document.querySelector("body").classList.add("editor-gutenberg-launch__fse-overrides");var C=h.querySelector(".editor-post-publish-button__button"),b=document.createElement("a");b.href=m,b.target="_top",b.className="editor-gutenberg-launch__launch-button components-button is-primary";var _=document.createTextNode(y);b.appendChild(_),b.addEventListener("click",(function(e){e.preventDefault();var t=d&&(!p||p&&v);A("calypso_newsite_editor_launch_click",{is_new_flow:t,is_experimental:g}),t?(g&&Object(c.dispatch)("automattic/launch").enableExperimental(),Object(c.dispatch)("automattic/launch").openSidebar(),setTimeout((function(){Object(c.dispatch)("core/editor").savePost()}),1e3)):w()})),h.prepend(b),C&&h.prepend(C)}}))}}}]));
4
  * Copyright(c) 2012-2014 Roman Shtylman
5
  * Copyright(c) 2015 Douglas Christopher Wilson
6
  * MIT Licensed
7
+ */t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},s=e.split(o),u=i.decode||r,c=0;c<s.length;c++){var f=s[c],l=f.indexOf("=");if(!(l<0)){var h=f.substr(0,l).trim(),p=f.substr(++l,f.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),null==n[h]&&(n[h]=a(p,u))}}return n},t.serialize=function(e,t,n){var r=n||{},o=r.encode||i;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!s.test(e))throw new TypeError("argument name is invalid");var a=o(t);if(a&&!s.test(a))throw new TypeError("argument val is invalid");var u=e+"="+a;if(null!=r.maxAge){var c=r.maxAge-0;if(isNaN(c))throw new Error("maxAge should be a Number");u+="; Max-Age="+Math.floor(c)}if(r.domain){if(!s.test(r.domain))throw new TypeError("option domain is invalid");u+="; Domain="+r.domain}if(r.path){if(!s.test(r.path))throw new TypeError("option path is invalid");u+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");u+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(u+="; HttpOnly");r.secure&&(u+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var r=decodeURIComponent,i=encodeURIComponent,o=/; */,s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(n){return e}}},function(e,t,n){"use strict";var r=n(5),i=n(20);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 f=0,l=t;return f+=(l=l+r>>>0)<t?1:0,f+=(l=l+o>>>0)<o?1:0,f+=(l=l+a>>>0)<a?1:0,e+n+i+s+u+(f+=(l=l+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}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){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}},function(e,t){function n(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 t=this,r=arguments;return new Promise((function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,u,"next",e)}function u(e){n(s,i,o,a,u,"throw",e)}a(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){"use strict";var r=n(4),i=n(21),o=n(22),s=n(5),a=r.sum32,u=r.sum32_4,c=r.sum32_5,f=o.ch32,l=o.maj32,h=o.s0_256,p=o.s1_256,d=o.g0_256,v=o.g1_256,g=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;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],d(n[r-15]),n[r-16]);var i=this.h[0],o=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,p(y),f(y,w,C),this.k[r],n[r]),x=a(h(i),l(i,o,g));b=C,C=w,w=y,y=a(m,_),m=g,g=o,o=i,i=a(_,x)}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],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")}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,s,a;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),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=f(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 h(){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=h.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):g(i,i.length)}function v(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(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),a.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},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(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},a.prototype.getMaxListeners=function(){return f(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){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)o(u,this,t);else{var c=u.length,f=g(u,c);for(n=0;n<c;++n)o(f[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,o,s;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){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},a.prototype.off=a.prototype.removeListener,a.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},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},a.prototype.listenerCount=v,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(14);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return i.colors[Math.abs(t)%i.colors.length]}function i(e){var n;function r(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[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,t[0]=i.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=i.formatters[n];if("function"==typeof r){var o=t[c];e=r.call(s,o),t.splice(c,1),c--}return e})),i.formatArgs.call(s,t);var f=s.log||i.log;f.apply(s,t)}}return r.namespace=e,r.enabled=i.enabled(e),r.useColors=i.useColors(),r.color=t(e),r.destroy=o,r.extend=s,"function"==typeof i.init&&i.init(r),i.instances.push(r),r}function o(){var e=i.instances.indexOf(this);return-1!==e&&(i.instances.splice(e,1),!0)}function s(e,t){var n=i(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return i.debug=i,i.default=i,i.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},i.disable=function(){var e=[].concat(r(i.names.map(a)),r(i.skips.map(a).map((function(e){return"-"+e})))).join(",");return i.enable(""),e},i.enable=function(e){var t;i.save(e),i.names=[],i.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")));for(t=0;t<i.instances.length;t++){var o=i.instances[t];o.enabled=i.enabled(o.namespace)}},i.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=i.skips.length;t<n;t++)if(i.skips[t].test(e))return!1;for(t=0,n=i.names.length;t<n;t++)if(i.names[t].test(e))return!0;return!1},i.humanize=n(19),Object.keys(e).forEach((function(t){i[t]=e[t]})),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=t,i.enable(i.load()),i}},function(e,t,n){var r=n(15),i=n(16),o=n(17),s=n(18);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},function(e,t,n){var r=n(7);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(7);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}}},function(e,t){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.")}},function(e,t){var n=1e3,r=60*n,i=60*r,o=24*i,s=7*o,a=365.25*o;function u(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\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(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*a;case"weeks":case"week":case"w":return u*s;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*i;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return u(e,t,o,"day");if(t>=i)return u(e,t,i,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){"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}}},function(e,t,n){"use strict";var r=n(4),i=n(5);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}},function(e,t,n){"use strict";var r=n(4).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}},function(e,t){!function(){e.exports=this["a8c-fse-common-data-stores"]}()},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(8),i=n.n(r),o=n(6),s=n(9),a=n.n(s),u=n(10),c=n(2),f=n(0),l=n.n(f),h=l()("calypso:analytics");n(11);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));var p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var d=n(1),v=(n(3),n(12)),g=l()("lib/load-script/callback-handler"),m=new Map;function y(){return m}function w(e){return y().has(e)}function C(e,t){var n=y();w(e)?(g('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(g('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=y(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));g(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function _(){var e=this.getAttribute("src");g('Handling successful request for "'.concat(e,'"')),b(e),this.onload=null}function x(){var e=this.getAttribute("src");g('Handling failed request for "'.concat(e,'"')),b(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var F=l()("lib/load-script/dom-operations");l()("package/load-script");function S(e,t){var n;if(!w(e)&&(n=function(e){F('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=_,t.onerror=x,t}(e),F("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){C(e,(function(e){null===e?t():n(e)}))}));C(e,t)}var L,E=["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"];Promise.resolve();function O(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&S("//stats.wp.com/w.js?61");var j=new v.EventEmitter;function A(e,t){if(h('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(d.includes)(E,e)){if(L){var n=L(t);t=p(p({},t),n)}t=Object(d.omitBy)(t,d.isUndefined),h('Recording event "%s" with actual props %o',e,t),O(["recordEvent",e,t]),j.emit("record-event",e,t)}else h('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),new Uint8Array(16);for(var k=[],M=0;M<256;++M)k[M]=(M+256).toString(16).substr(1);n(23),n(24),n(25);a()((function(){P(),Object(u.addAction)("setGutenboardingStatus","a8c-gutenboarding",P)}));var T=!1;function P(){var e,t,n,r;if(!T&&(null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding)&&(null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.frankenflowUrl)){T=!0;var s=setInterval((function(){var e,t,n,r,a,u,f=document.querySelector(".edit-post-header__settings");if(f){clearInterval(s);var l=window.innerWidth<782,h=null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isNewLaunchMobile,p=null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.isExperimental,d=null===(a=window)||void 0===a||null===(u=a.calypsoifyGutenberg)||void 0===u?void 0:u.frankenflowUrl,v=l?Object(o.__)("Launch","full-site-editing"):Object(o.__)("Complete setup","full-site-editing"),g=function(){var e=i()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.dispatch)("core/editor").savePost();case 2:window.top.location.href=d;case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();document.querySelector("body").classList.add("editor-gutenberg-launch__fse-overrides");var m=f.querySelector(".editor-post-publish-button__button"),y=document.createElement("a");y.href=d,y.target="_top",y.className="editor-gutenberg-launch__launch-button components-button is-primary";var w=document.createTextNode(v);y.appendChild(w),y.addEventListener("click",(function(e){e.preventDefault();var t=!l||l&&h;A("calypso_newsite_editor_launch_click",{is_new_flow:t,is_experimental:p}),t?(p&&Object(c.dispatch)("automattic/launch").enableExperimental(),Object(c.dispatch)("automattic/launch").openSidebar(),setTimeout((function(){Object(c.dispatch)("core/editor").savePost()}),1e3)):g()})),f.prepend(y),m&&f.prepend(m)}}))}}}]));
editor-gutenboarding-launch/index.ts CHANGED
@@ -51,7 +51,6 @@ function updateEditor() {
51
  clearInterval( awaitSettingsBar );
52
 
53
  const isMobile = window.innerWidth < 782;
54
- const isNewLaunch = window?.calypsoifyGutenberg?.isNewLaunch;
55
  const isNewLaunchMobile = window?.calypsoifyGutenberg?.isNewLaunchMobile;
56
  const isExperimental = window?.calypsoifyGutenberg?.isExperimental;
57
 
@@ -73,7 +72,7 @@ function updateEditor() {
73
  // Disable href navigation
74
  e.preventDefault();
75
 
76
- const shouldOpenNewFlow = isNewLaunch && ( ! isMobile || ( isMobile && isNewLaunchMobile ) );
77
 
78
  recordTracksEvent( 'calypso_newsite_editor_launch_click', {
79
  is_new_flow: shouldOpenNewFlow,
51
  clearInterval( awaitSettingsBar );
52
 
53
  const isMobile = window.innerWidth < 782;
 
54
  const isNewLaunchMobile = window?.calypsoifyGutenberg?.isNewLaunchMobile;
55
  const isExperimental = window?.calypsoifyGutenberg?.isExperimental;
56
 
72
  // Disable href navigation
73
  e.preventDefault();
74
 
75
+ const shouldOpenNewFlow = ! isMobile || ( isMobile && isNewLaunchMobile );
76
 
77
  recordTracksEvent( 'calypso_newsite_editor_launch_click', {
78
  is_new_flow: shouldOpenNewFlow,
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-core-data', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '22a497d8c771a55f4dcdd34bc8b0dbb2');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '605e0fa3575bd3a7b0ea3063e8cb5823');
editor-site-launch/dist/editor-site-launch.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 n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},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"],e.exports=n(69)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t){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}},function(e,t,n){var r=n(59),i=n(60),o=n(27),a=n(61);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.coreData}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){var r=n(9);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}},,,,function(e,t,n){var r=n(63),i=n(64),o=n(27),a=n(65);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(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?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;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),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=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.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):b(i,i.length)}function h(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 b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.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},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(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},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var l=c.length,u=b(c,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,m(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,m(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;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){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},s.prototype.off=s.prototype.removeListener,s.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},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";var r=n(25),i=n(29);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 s(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 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+=s(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+=c(i.toString(16))}return n},t.zero2=s,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var a=new Array(o/4),s=0,c=t;s<a.length;s++,c+=4){var l;l="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],a[s]=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,s){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+o>>>0)<o?1:0,e+n+i+a+(c+=(l=l+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,c,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+s>>>0)<s?1:0,e+n+i+a+c+(u+=(d=d+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,c,l){return t+r+o+s+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}},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";
7
  /*!
8
  * cookie
9
  * Copyright(c) 2012-2014 Roman Shtylman
@@ -30,11 +30,11 @@ object-assign
30
  *
31
  * This source code is licensed under the MIT license found in the
32
  * LICENSE file in the root directory of this source tree.
33
- */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case a:case c:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case m:case g:case b:case l:return e;default:return t}}case o:return t}}}function O(e){return w(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=m,t.Fragment=a,t.Lazy=g,t.Memo=b,t.Portal=o,t.Profiler=c,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return O(e)||w(e)===d},t.isConcurrentMode=O,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===m},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===b},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===c},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===x||e.$$typeof===_||e.$$typeof===v)},t.typeOf=w},function(e,t,n){},function(e,t,n){"use strict";var r=n(97);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"setPrices",(function(){return un})),n.d(r,"resetPlan",(function(){return dn}));var i={};n.r(i),n.d(i,"getPlanBySlug",(function(){return mn})),n.d(i,"getDefaultPaidPlan",(function(){return fn})),n.d(i,"getSupportedPlans",(function(){return hn})),n.d(i,"getPlanByPath",(function(){return bn})),n.d(i,"getPlansDetails",(function(){return gn})),n.d(i,"getPlansPaths",(function(){return vn})),n.d(i,"getPrices",(function(){return yn})),n.d(i,"isPlanEcommerce",(function(){return xn})),n.d(i,"isPlanFree",(function(){return _n}));var o={};n.r(o),n.d(o,"getPrices",(function(){return wn}));var a={};n.r(a),n.d(a,"plansPaths",(function(){return on})),n.d(a,"PLAN_FREE",(function(){return nt})),n.d(a,"PLAN_PERSONAL",(function(){return rt})),n.d(a,"PLAN_PREMIUM",(function(){return it})),n.d(a,"PLAN_BUSINESS",(function(){return ot})),n.d(a,"PLAN_ECOMMERCE",(function(){return at})),n.d(a,"register",(function(){return En}));n(58);var s="automattic/site",c="automattic/launch",l="automattic/onboard/plans",u=n(1),d=n(0),p=n.n(d),m=n(2),f=n(33),h=n(10),b=n.n(h),g=n(12),v=n(4),y=n(5);function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(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 w(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 O=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=_(e,["icon","size"]);return Object(u.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},E=n(7),k=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(E.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"})),S=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.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"})),C=n(6),j=n.n(C),N=n(9),P=n.n(N),A=(n(67),function(e){var t=e.children;return d.createElement("h1",{className:"onboarding-title"},t)}),L=function(e){var t=e.children;return d.createElement("h2",{className:"onboarding-subtitle"},t)},T=function(e,t){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var F=function(){return(F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function M(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function D(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function R(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function B(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(R(arguments[t]));return e}function I(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function z(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var U=n(13),H=d.createContext(q()),$=function(){return d.useContext(H)};Object(U.createHigherOrderComponent)((function(e){return function(t){var n=$();return d.createElement(e,F({},n,t))}}),"withI18n");function q(e){var t,n,r=Object(v.createI18n)(e),i=null!==(n=null===(t=null==e?void 0:e[""])||void 0===t?void 0:t.localeSlug)&&void 0!==n?n:"en";return{__:r.__.bind(r),_n:r._n.bind(r),_nx:r._nx.bind(r),_x:r._x.bind(r),isRTL:r.isRTL.bind(r),i18nLocale:i}}n(68);var V=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"),d.createElement("div",{className:j()("action-buttons",t,o)},n)},G=function(e){var t=e.className,n=e.children,r=M(e,["className","children"]),i=$().__;return d.createElement(y.Button,F({className:j()("action_buttons__button action-buttons__back",t),isLink:!0},r),n||i("Go back"))},Y=function(e){var t=e.className,n=e.children,r=M(e,["className","children"]),i=$().__;return d.createElement(y.Button,F({className:j()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||i("Continue"))},W=(n(62),function(e){var t=e.children;return Object(u.createElement)(u.Fragment,null,t)});function K(){var e,t,n=Object(m.useSelect)((function(e){return e(s).getSite(window._currentSiteId)})),r=Object(m.useSelect)((function(e){return e(s).isLaunched(window._currentSiteId)}));return{isPaidPlan:n&&!(null===(e=n.plan)||void 0===e?void 0:e.is_free),launchStatus:r,currentDomainName:(null==n?void 0:n.URL)&&new URL(null==n?void 0:n.URL).hostname,selectedFeatures:null==n||null===(t=n.options)||void 0===t?void 0:t.selected_features}}var X=n(18),Z=n.n(X),J=n(14),Q=n.n(J),ee=n(34),te=n.n(ee),ne=n(35);function re(){var e,t=Object(m.useSelect)((function(e){return e(c).getState()})).domainSearch,n=Object(g.useEntityProp)("root","site","title"),r=b()(n,1)[0],i=K().currentDomainName,o=t.trim()||r;o&&o!==Object(v.__)("Site Title","full-site-editing")||(o=null!==(e=null==i?void 0:i.split(".")[0])&&void 0!==e?e:"");return o}n(66);var ie=function(e){var t=e.onPrevStep,n=e.onNextStep,r=function(){var e=Object(m.useSelect)((function(e){return e(c).getSelectedDomain()})),t=Object(m.useDispatch)(c).setDomainSearch,n=Object(g.useEntityProp)("root","site","title"),r=b()(n,2),i=r[0],o=r[1],a=Object(m.useDispatch)("core").saveEditedEntityRecord;return{title:i,updateTitle:o,saveTitle:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;o(n.trim()),a("root","site"),!e&&t(n)}}}(),i=r.title,o=r.updateTitle,a=r.saveTitle,s=function(){a(),null==n||n()};return Object(u.createElement)(W,null,Object(u.createElement)("div",{className:"nux-launch-step__header"},Object(u.createElement)("div",null,Object(u.createElement)(A,null,Object(v.__)("Name your site","full-site-editing")),Object(u.createElement)(L,null,Object(v.__)("Pick a name for your site.","full-site-editing"))),Object(u.createElement)(V,{sticky:!1},Object(u.createElement)(Y,{onClick:s,disabled:!(null==i?void 0:i.trim())}))),Object(u.createElement)("div",{className:"nux-launch-step__body"},Object(u.createElement)("form",{onSubmit:s},Object(u.createElement)(y.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:o,onBlur:function(){return a()},value:i,spellCheck:!1,autoComplete:"off",placeholder:Object(v.__)("Enter site name","full-site-editing"),autoCorrect:"off","data-hj-whitelist":!0}),Object(u.createElement)("div",{className:"nux-launch-step__input-hint"},Object(u.createElement)(y.Tip,{size:18}),Object(u.createElement)("span",null,Object(v.__)("Don't worry, you can change it later.","full-site-editing"))))),Object(u.createElement)("div",{className:"nux-launch-step__footer"},Object(u.createElement)(V,{sticky:!0},Object(u.createElement)(G,{onClick:function(){null==t||t()}}),Object(u.createElement)(Y,{onClick:s,disabled:!(null==i?void 0:i.trim())}))))},oe=n(11);function ae(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 se=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=_(e,["icon","size"]);return Object(u.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},ce=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.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"})),le=n(8),ue=n.n(le),de=ue()("calypso:analytics");n(36);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(24);var pe=n(19),me=ue()("lib/load-script/callback-handler"),fe=new Map;function he(){return fe}function be(e){return he().has(e)}function ge(e,t){var n=he();be(e)?(me('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(me('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=he(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));me(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function ye(){var e=this.getAttribute("src");me('Handling successful request for "'.concat(e,'"')),ve(e),this.onload=null}function xe(){var e=this.getAttribute("src");me('Handling failed request for "'.concat(e,'"')),ve(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var _e=ue()("lib/load-script/dom-operations");ue()("package/load-script");function we(e,t){var n;if(!be(e)&&(n=function(e){_e('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=ye,t.onerror=xe,t}(e),_e("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){ge(e,(function(e){null===e?t():n(e)}))}));ge(e,t)}var Oe,Ee=["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"];Promise.resolve();function ke(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&we("//stats.wp.com/w.js?61");var Se=new pe.EventEmitter;function Ce(e,t){if(de('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(oe.includes)(Ee,e)){if(Oe){var n=Oe(t);t=F(F({},t),n)}t=Object(oe.omitBy)(t,oe.isUndefined),de('Recording event "%s" with actual props %o',e,t),ke(["recordEvent",e,t]),Se.emit("record-event",e,t)}else de('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var je="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),Ne=new Uint8Array(16);function Pe(){if(!je)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return je(Ne)}for(var Ae=[],Le=0;Le<256;++Le)Ae[Le]=(Le+256).toString(16).substr(1);var Te=function(e,t){var n=t||0,r=Ae;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 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||Pe)();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||Te(i)};var Me;!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(Me||(Me={}));var De=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.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"})),Re=(n(74),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,s=void 0===a||a,c=Object(d.useState)(!1),l=c[0],u=c[1];return p.a.createElement(y.Button,{icon:De,onClick:function(){u(!l)},className:"info-tooltip","data-testid":"info-tooltip"},l&&p.a.createElement(y.Popover,{id:r,className:j()("info-tooltip__content",n),onClose:function(){u(!1)},position:o,noArrow:s},t))}),Be=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,o=e.railcarId,a=e.hstsRequired,s=void 0!==a&&a,c=e.isFree,l=void 0!==c&&c,m=e.isExistingSubdomain,f=void 0!==m&&m,h=e.isRecommended,b=void 0!==h&&h,g=e.onSelect,x=e.onRender,_=e.selected,w=$().__,O=Object(U.useViewportMatch)("small","<"),E=n.indexOf("."),k=n.slice(0,E),S=n.slice(E),C=Object(d.useState)(),N=C[0],P=C[1],A=Object(d.useState)(),L=A[0],T=A[1],F=Fe();Object(d.useEffect)((function(){n!==N&&L!==o&&o&&(x(),P(n),T(o))}),[n,N,L,o,x]);return p.a.createElement("label",{className:j()("domain-picker__suggestion-item",{"is-free":l,"is-selected":_,"is-unavailable":t})},r?p.a.createElement(y.Spinner,null):p.a.createElement("input",{"aria-labelledby":F,className:"domain-picker__suggestion-radio-button",type:"radio",disabled:t,name:"domain-picker-suggestion-option",onChange:function(){L&&function(e){Ce("calypso_traintracks_interact",{railcar:e.railcarId,action:e.action})}({action:"domain_selected",railcarId:L}),g(n)},checked:_&&!t}),p.a.createElement("div",{className:"domain-picker__suggestion-item-name"},p.a.createElement("div",{className:"domain-picker__suggestion-item-name-inner"},p.a.createElement("span",{className:"domain-picker__domain-name"},k),p.a.createElement("span",{className:j()("domain-picker__domain-tld",{"with-margin":!s})},S),s&&p.a.createElement(Re,{position:O?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},Object(u.createInterpolateElement)(w("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>"),{tld:p.a.createElement("b",null,S),learn_more_link:p.a.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://wordpress.com/support/https-ssl"})})),b&&!t&&p.a.createElement("div",{className:"domain-picker__badge is-recommended"},w("Recommended"))),f&&p.a.createElement("div",{className:"domain-picker__change-subdomain-tip"},w("You can change your free subdomain later under Domain Settings."))),p.a.createElement("div",{className:j()("domain-picker__price",{"is-paid":!l})},t&&w("Unavailable"),l&&!t&&w("Free"),!l&&!t&&p.a.createElement(p.a.Fragment,null,p.a.createElement("span",{className:"domain-picker__price-inclusive"}," ",w("Included in plans")," "),p.a.createElement("span",{className:"domain-picker__price-cost"},Object(v.sprintf)(w("%s/year"),i)))))},Ie=function(){return p.a.createElement("div",{className:"domain-picker__suggestion-item placeholder"},p.a.createElement("div",{className:"domain-picker__suggestion-item-name placeholder"}),p.a.createElement("div",{className:"domain-picker__price placeholder"}))};function ze(e,t){return e===t}function Ue(e,t,n){var r=n&&n.equalityFn?n.equalityFn:ze,i=Object(d.useState)(e),o=i[0],a=i[1],s=function(e,t,n){void 0===n&&(n={});var r=n.maxWait,i=Object(d.useRef)(null),o=Object(d.useRef)([]),a=n.leading,s=Object(d.useRef)(!1),c=Object(d.useRef)(null),l=Object(d.useRef)(!1),u=Object(d.useRef)(e);u.current=e;var p=Object(d.useCallback)((function(){clearTimeout(c.current),clearTimeout(i.current),i.current=null,o.current=[],c.current=null,s.current=!1}),[]);return Object(d.useEffect)((function(){return function(){l.current=!0}}),[]),[Object(d.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(o.current=e,clearTimeout(c.current),!c.current&&a&&!s.current)return u.current.apply(u,e),void(s.current=!0);c.current=setTimeout((function(){p(),l.current||u.current.apply(u,e)}),t),r&&!i.current&&(i.current=setTimeout((function(){var e=o.current;p(),l.current||u.current.apply(null,e)}),r))}),[r,t,p,a]),p,function(){c.current&&(u.current.apply(null,o.current),p())}]}(Object(d.useCallback)((function(e){return a(e)}),[]),t,n),c=s[0],l=s[1],u=Object(d.useRef)(e);return Object(d.useEffect)((function(){r(u.current,e)||(c(e),u.current=e)}),[e,c,r]),[o,l]}var He="automattic/domains/suggestions",$e=["available","available_premium"];var qe,Ve,Ge,Ye,We=Object(u.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(E.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"})),Ke=(n(73),function(e){var t=e.onSelect,n=e.selected,r=$().__,i=Object(u.useState)(!1),o=i[0],a=i[1],s=function(e){a(!1),t(e)},c=Object(m.useSelect)((function(e){return e(He).getCategories()}));return d.createElement("div",{className:j()("domain-categories",{"is-open":o})},d.createElement(y.Button,{className:"domain-categories__dropdown-button",onClick:function(){return a(!o)}},d.createElement("span",null,n||r("All Categories")),d.createElement(se,{icon:We,size:16})),d.createElement("ul",{className:"domain-categories__item-group"},d.createElement("li",{className:j()("domain-categories__item",{"is-selected":!n})},d.createElement(y.Button,{onClick:function(){return s()}},r("View all"))),c.map((function(e){var t=e.slug,r=e.title;return d.createElement("li",{key:t,className:j()("domain-categories__item",{"is-selected":t===n})},d.createElement(y.Button,{onClick:function(){return s(t)}},r))}))))}),Xe=function(){return p.a.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"},p.a.createElement("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),p.a.createElement("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),p.a.createElement("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),p.a.createElement("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),p.a.createElement("text",{x:"80",y:"26",fill:"#999"},"https://"),p.a.createElement("text",{x:"133",y:"26",fill:"#515151"},"example.com"))},Ze=(n(72),function(e){var t=e.groupItems,n=e.children;return t?p.a.createElement("div",{className:"domain-picker__suggestion-item-group"},n):p.a.createElement(p.a.Fragment,null,n)}),Je=function(e){var t,n,r=e.header,i=e.showDomainCategories,o=e.onDomainSelect,a=e.onExistingSubdomainSelect,s=e.quantity,c=void 0===s?5:s,l=e.quantityExpanded,u=void 0===l?10:l,f=e.onDomainSearchBlur,h=e.analyticsFlowId,b=e.analyticsUiAlgo,g=e.initialDomainSearch,v=void 0===g?"":g,x=e.onSetDomainSearch,_=e.currentDomain,w=e.isCheckingDomainAvailability,O=e.existingSubdomain,E=e.segregateFreeAndPaid,k=void 0!==E&&E,S=$().__,C=S("Search for a domain"),j=Object(d.useState)(!1),N=j[0],P=j[1],A=Object(d.useState)(v),L=A[0],T=A[1],F=Object(d.useState)(),M=F[0],D=F[1],R=Object(m.useSelect)((function(e){return e(He).getDomainSuggestionVendor()})),B=function(e,t,n,r){void 0===e&&(e=""),void 0===r&&(r="en");var i=Ue(e,300)[0],o=Object(m.useDispatch)(He).invalidateResolutionForStoreSelector;return Object(m.useSelect)((function(e){if(i&&!(i.length<2)){var a=e(He),s=a.getDomainSuggestions,c=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:s(i,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:r,category_slug:n}),state:c(),errorMessage:l(),retryRequest:function(){o("__internalGetDomainSuggestions")}}}}),[i,n,t])}(L.trim(),u,M,$().i18nLocale)||{},I=B.allDomainSuggestions,z=B.errorMessage,U=B.state,H=B.retryRequest,q=null==I?void 0:I.slice(O?1:0,N?u:c),V=Object(m.useSelect)((function(e){return e(He).getDomainAvailabilities()}),[]);Object(d.useEffect)((function(){P(!1)}),[L]);var G=Object(d.useState)(),Y=G[0],W=G[1];Object(d.useEffect)((function(){var e;I&&W((void 0===(e="suggestion")&&(e="recommendation"),Fe().replace(/-/g,"")+"-"+e))}),[I,W]);var K=function(e,t,n,r){!function(e){Ce("calypso_traintracks_render",{railcar:e.railcarId,ui_algo:e.uiAlgo,ui_position:e.uiPosition,fetch_algo:e.fetchAlgo,rec_result:e.result,fetch_query:e.query})}({uiAlgo:"/"+h+"/"+b,fetchAlgo:"/domains/search/"+R+"/"+h+(M?"/"+M:""),query:L,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},X=U===Me.Failure,Z=(null===(t=L.trim)||void 0===t?void 0:t.call(L).length)<=1,J=!X&&!Z,Q=!X&&Z;return p.a.createElement("div",{className:"domain-picker"},r&&r,p.a.createElement("div",{className:"domain-picker__search"},p.a.createElement("div",{className:"domain-picker__search-icon"},p.a.createElement(se,{icon:ce})),p.a.createElement(y.TextControl,{"data-hj-whitelist":!0,hideLabelFromVision:!0,label:C,placeholder:C,onChange:function(e){T(e),x(e)},onBlur:function(e){f&&f(e.currentTarget.value)},value:L})),X&&p.a.createElement("div",{className:"domain-picker__error"},p.a.createElement("p",{className:"domain-picker__error-message"},S("An error has occurred, please check your connection and retry."),z&&" "+z),p.a.createElement(y.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:H},"Retry")),J&&p.a.createElement("div",{className:"domain-picker__body"},i&&p.a.createElement("div",{className:"domain-picker__aside"},p.a.createElement(Ke,{selected:M,onSelect:D})),p.a.createElement("div",{className:"domain-picker__suggestion-sections"},p.a.createElement(p.a.Fragment,null,k&&p.a.createElement("p",{className:"domain-picker__suggestion-group-label"},S("Keep sub-domain")),p.a.createElement(Ze,{groupItems:k},O&&p.a.createElement(Be,{key:O,domain:O,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Y?""+Y+0:void 0,onRender:function(){return K(O,""+Y+0,0,!1)},selected:_===O,onSelect:function(){null==a||a(O)}})),k&&p.a.createElement("p",{className:"domain-picker__suggestion-group-label"},S("Professional domains")),p.a.createElement(Ze,{groupItems:k},null!==(n=null==q?void 0:q.map((function(e,t){var n,r=O?t+1:t,i=1===r,a=null===(n=V[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,s=!a||(null==$e?void 0:$e.includes(a));return p.a.createElement(Be,{key:e.domain_name,isUnavailable:!s,domain:e.domain_name,cost:e.cost,isLoading:_===e.domain_name&&w,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:i,railcarId:Y?""+Y+r:void 0,onRender:function(){return K(e.domain_name,""+Y+r,r,i)},onSelect:function(){o(e)},selected:_===e.domain_name})})))&&void 0!==n?n:Object(oe.times)(c,(function(e){return p.a.createElement(Ie,{key:e})})))),!N&&(null==I?void 0:I.length)&&(null==I?void 0:I.length)>c&&p.a.createElement("div",{className:"domain-picker__show-more"},p.a.createElement(y.Button,{onClick:function(){return P(!0)},isLink:!0},S("View more results"))))),Q&&p.a.createElement("div",{className:"domain-picker__empty-state"},p.a.createElement("p",{className:"domain-picker__empty-state--text"},S("A domain name is the site address people type in their browser to visit your site.")),p.a.createElement("div",null,p.a.createElement(Xe,null))))},Qe="gutenboarding",et=(n(71),function(e){var t=e.onPrevStep,n=e.onNextStep,r=Object(m.useSelect)((function(e){return e(c).getState()})),i=r.plan,o=r.domain,a=K().currentDomainName,s=re(),l=Object(m.useDispatch)(c),d=l.setDomain,p=l.unsetDomain,f=l.setDomainSearch,h=l.unsetPlan,b=l.confirmDomainSelection,g=function(){b(),null==n||n()};return Object(u.createElement)(W,null,Object(u.createElement)("div",{className:"nux-launch-step__header"},Object(u.createElement)("div",null,Object(u.createElement)(A,null,Object(v.__)("Choose a domain","full-site-editing")),Object(u.createElement)(L,null,Object(v.__)("Free for the first year with any paid plan.","full-site-editing"))),Object(u.createElement)(V,{sticky:!1},Object(u.createElement)(Y,{onClick:g,disabled:!s}))),Object(u.createElement)("div",{className:"nux-launch-step__body"},Object(u.createElement)(Je,{analyticsFlowId:Qe,initialDomainSearch:s,onSetDomainSearch:f,onDomainSearchBlur:function(e){Ce("calypso_newsite_domain_search_blur",{flow:Qe,query:e,where:"editor_domain_modal"})},currentDomain:(null==o?void 0:o.domain_name)||a,existingSubdomain:a,onDomainSelect:function(e){b(),d(e),(null==i?void 0:i.isFree)&&h()},onExistingSubdomainSelect:function(){p()},analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0})),Object(u.createElement)("div",{className:"nux-launch-step__footer"},Object(u.createElement)(V,{sticky:!0},Object(u.createElement)(G,{onClick:function(){null==t||t()}}),Object(u.createElement)(Y,{onClick:g,disabled:!s}))))}),tt=n(21),nt="free_plan",rt="personal-bundle",it="value_bundle",ot="business-bundle",at="ecommerce-bundle",st="automattic/onboard/plans",ct=it,lt={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}},ut=n(37),dt=n.n(ut);qe={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},Ve=["(","?"],Ge={")":["("],":":["?","?:"]},Ye=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var pt={"!":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 mt(e){var t=function(e){for(var t,n,r,i,o=[],a=[];t=e.match(Ye);){for(n=t[0],(r=e.substr(0,t.index).trim())&&o.push(r);i=a.pop();){if(Ge[n]){if(Ge[n][0]===i){n=Ge[n][1]||n;break}}else if(Ve.indexOf(i)>=0||qe[i]<qe[n]){a.push(i);break}o.push(i)}Ge[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,s,c=[];for(n=0;n<e.length;n++){if(a=e[n],o=pt[a]){for(r=o.length,i=Array(r);r--;)i[r]=c.pop();try{s=o.apply(null,i)}catch(l){return l}}else s=t.hasOwnProperty(a)?t[a]:+a;c.push(s)}return c[0]}(t,e)}}var ft={contextDelimiter:"",onMissingKey:null};function ht(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},ft)this.options[n]=void 0!==t&&n in t?t[n]:ft[n]}ht.prototype.getPluralForm=function(e,t){var n,r,i,o,a=this.pluralForms[e];return a||("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),o=mt(r),i=function(e){return+o({n:e})}),a=this.pluralForms[e]=i),a(t)},ht.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,s;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[o]?s[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)};var bt=n(38),gt=n.n(bt),vt=n(39),yt=n.n(vt),xt=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function _t(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(xt,(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:"")}))}
34
  /*
35
  * Exposes number format capability
36
  *
37
  * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
38
  * @license See CREDITS.md
39
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
40
- */function wt(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,s=void 0===n?".":n,c="";return(c=(o?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&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(c[1]||"").length<o&&(c[1]=c[1]||"",c[1]+=new Array(o-c[1].length+1).join("0")),c.join(s)}var Ot=ue()("i18n-calypso"),Et="number_format_decimals",kt="number_format_thousands_sep",St="messages",Ct=[function(e){return e}],jt={};function Nt(){Ft.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function Pt(e){return Array.prototype.slice.call(e)}function At(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&Nt("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",Pt(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&Nt("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",Pt(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 Lt(e,t){return e.dcnpgettext(St,t.context,t.original,t.plural,t.count)}function Tt(e,t){for(var n=Ct.length-1;n>=0;n--){var r=Ct[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return Lt(e.state.tannin,r)}return null}function Ft(){if(!(this instanceof Ft))return new Ft;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:gt()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new pe.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Ft.throwErrors=!1,Ft.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},Ft.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},Ft.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},Ft.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 wt(e,n,r,i)},Ft.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Ft.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!==jt[n+e])return jt[n+e];var r=yt()().update(e).digest("hex");return jt[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)Ct.push(a(!1));else{var s=i.substr(5).indexOf("-");if(s<0){var c=Number(i.substr(5));Ct.push(a(c))}else for(var l=Number(i.substr(5,s)),u=Number(i.substr(6+s)),d=l;d<=u;d++)Ct.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.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 ht(P()({},St,this.state.locale)),this.state.numberFormatSettings.decimal_point=Lt(this.state.tannin,At([Et])),this.state.numberFormatSettings.thousands_sep=Lt(this.state.tannin,At([kt])),this.state.numberFormatSettings.decimal_point===Et&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===kt&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},Ft.prototype.getLocale=function(){return this.state.locale},Ft.prototype.getLocaleSlug=function(){return this.state.localeSlug},Ft.prototype.isRtl=function(){return"rtl"===this.state.textDirection},Ft.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},Ft.prototype.hasTranslation=function(){return!!Tt(this,At(arguments))},Ft.prototype.translate=function(){var e=At(arguments),t=Tt(this,e);if(t||(t=Lt(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=_t.apply(void 0,Z()(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=dt()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},Ft.prototype.reRenderTranslations=function(){Ot("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},Ft.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},Ft.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var Mt=Ft,Dt=n(40),Rt=n.n(Dt),Bt=n(41),It=n.n(Bt),zt=n(22),Ut=n.n(zt),Ht=n(42),$t=n.n(Ht),qt=n(43),Vt=n.n(qt),Gt=n(23),Yt=n.n(Gt),Wt=n(44);var Kt,Xt,Zt,Jt,Qt=new Mt,en=(Qt.numberFormat.bind(Qt),Qt.translate.bind(Qt)),tn=(Qt.configure.bind(Qt),Qt.setLocale.bind(Qt),Qt.getLocale.bind(Qt),Qt.getLocaleSlug.bind(Qt),Qt.addTranslations.bind(Qt),Qt.reRenderTranslations.bind(Qt),Qt.registerComponentUpdateHook.bind(Qt),Qt.registerTranslateHook.bind(Qt),Qt.state,Qt.stateObserver,Qt.on.bind(Qt),Qt.off.bind(Qt),Qt.emit.bind(Qt),Xt={numberFormat:(Kt=Qt).numberFormat.bind(Kt),translate:Kt.translate.bind(Kt)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Qt),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 Object(Wt.useSubscription)(t)}var r=Object(U.createHigherOrderComponent)((function(e){return Object(d.forwardRef)((function(t,r){var i=n();return p.a.createElement(e,Yt()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Qt)),nn=(tn.useRtl,tn.withRtl,["Remove WordPress.com ads","Email & basic live chat support","Collect recurring payments","Collect one-time payments","Earn ad revenue","Premium themes","Upload videos","Google Analytics support","Business features (incl. SEO)","Upload themes","Install plugins","Accept payments in 60+ countries"]),rn=((Zt={})[nt]={title:en("Free"),description:en("Create a beautiful, simple website in minutes"),productId:1,storeSlug:nt,pathSlug:"beginner",features:["3 GB storage space"],isFree:!0},Zt[rt]={title:en("Personal"),description:en("Best for personal use"),productId:1009,storeSlug:rt,pathSlug:"personal",features:B(["6 GB storage space"],nn.slice(0,3))},Zt[it]={title:en("Premium"),description:en("Best for freelancers"),productId:1003,storeSlug:it,pathSlug:"premium",features:B(["13 GB storage space"],nn.slice(0,8)),isPopular:!0},Zt[ot]={title:en("Business"),description:en("Best for small businesses"),productId:1008,storeSlug:ot,pathSlug:"business",features:B(["200 GB storage space"],nn.slice(0,11))},Zt[at]={title:en("eCommerce"),description:en("Best for online stores"),productId:1011,storeSlug:at,pathSlug:"ecommerce",features:B(["200 GB storage space"],nn)},Zt),on=Object.keys(rn).map((function(e){return rn[e].pathSlug})),an=[{id:"general",name:null,features:[{name:"Free domain for One Year",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Email & basic live chat support",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"24/7 Priority live chat support",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Preinstalled SSL security",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Jetpack essential features",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Storage",type:"text",data:["3 GB","6 GB","13 GB","200 GB","200 GB"]},{name:"Dozens of free designs",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Remove WordPress.com ads",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Unlimited premium themes",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Advanced design customization",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Get personalized help",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Install plugins",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Upload themes",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Remove WordPress.com branding",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Automated backup & one-click rewind",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"SFTP and database access",type:"checkbox",data:[!1,!1,!1,!0,!0]}]},{id:"commerce",name:"Commerce",features:[{name:"Sell subscriptions (recurring payments)",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Sell single items (simple payments)",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Accept payments in 60+ countries",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Integrations with top shipping carriers",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Sell anything (products and/or services)",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Premium customizable starter themes",type:"checkbox",data:[!1,!1,!1,!1,!0]}]},{id:"marketing",name:"Marketing",features:[{name:"WordAds",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Advanced social media tools",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"VideoPress support",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"SEO tools",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Commerce marketing tools",type:"checkbox",data:[!1,!1,!1,!1,!0]}]}],sn=Object.keys(rn),cn={supportedPlanSlugs:sn,prices:(Jt={},Jt[nt]="",Jt[rt]="",Jt[it]="",Jt[ot]="",Jt[at]="",Jt)},ln=function(e,t){switch(void 0===e&&(e=cn),t.type){case"SET_PRICES":return F(F({},e),{prices:t.prices});default:return e}},un=function(e){return{type:"SET_PRICES",prices:e}},dn=function(){return{type:"RESET_PLAN"}};function pn(e){return rn[e]}var mn=function(e,t){return pn(t)},fn=function(){return pn(ct)},hn=function(e){return e.supportedPlanSlugs.map(pn)},bn=function(e,t){return t&&hn(e).find((function(e){return(null==e?void 0:e.pathSlug)===t}))},gn=function(){return an},vn=function(e){return hn(e).map((function(e){return null==e?void 0:e.pathSlug}))},yn=function(e){return e.prices},xn=function(e,t){return t===at},_n=function(e,t){return t===nt};function wn(){var e,t,n;return D(this,(function(r){switch(r.label){case 0:return[4,Object(tt.apiFetch)({global:!0,url:"https://public-api.wordpress.com/rest/v1.5/plans",mode:"cors",credentials:"omit"})];case 1:return e=r.sent(),t=e.filter((function(e){return-1!==sn.indexOf(e.product_slug)})),n=t.reduce((function(e,t){return e[t.product_slug]=function(e){var t=lt[e.currency_code],n=e.raw_price/12;return Number.isInteger(n)||(n=n.toFixed(t.decimal)),"AMOUNT_THEN_SYMBOL"===t.format?""+n+t.symbol:""+t.symbol+n}(t),e}),{}),[4,un(n)];case 2:return r.sent(),[2]}}))}var On=!1;function En(){return On||(On=!0,Object(m.registerStore)(st,{resolvers:o,actions:r,controls:tt.controls,reducer:ln,selectors:i})),st}var kn=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),Sn=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.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"})),Cn=(n(79),p.a.createElement(se,{icon:kn,size:17})),jn=p.a.createElement(se,{icon:Sn,size:17}),Nn=p.a.createElement("svg",{width:"8",viewBox:"0 0 8 4"},p.a.createElement("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var Pn=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,s=e.onPickDomain,c=e.disabledLabel,l=e.multiColumn,d=void 0!==l&&l,m=function(e,t,n){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:Cn,domainMessage:p.a.createElement(p.a.Fragment,null,n("Pick a free domain (1 year)")," ",Nn)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:Cn,domainMessage:p.a.createElement(p.a.Fragment,null,n("Pick a free domain (1 year)")," ",Nn)}},PAID_DOMAIN:{FREE_PLAN:{className:"plans-feature-list__domain-summary is-free",icon:jn,domainMessage:p.a.createElement("span",null,Object(u.createInterpolateElement)(n("<url /> is not included"),{url:p.a.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:Cn,domainMessage:p.a.createElement("span",null,Object(u.createInterpolateElement)(n("<url /> is included"),{url:p.a.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,$().__);return p.a.createElement("div",{className:"plans-feature-list",hidden:!a},p.a.createElement("ul",{className:j()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":d})},c?p.a.createElement("li",{className:"plans-feature-list__item plans-feature-list__item--disabled-message"},jn," ",p.a.createElement("span",null,c)):m&&p.a.createElement("li",{className:"plans-feature-list__item"},p.a.createElement(y.Button,{className:m.className,onClick:s,isLink:!0},m.icon,m.domainMessage)),t.map((function(e,t){return p.a.createElement("li",{key:t,className:"plans-feature-list__item"},Cn," ",p.a.createElement("span",null,e))}))))},An=d.createElement("svg",{width:"8",viewBox:"0 0 8 4"},d.createElement("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),Ln=function(e){var t=e.slug,n=e.name,r=e.price,i=e.isPopular,o=void 0!==i&&i,a=e.isFree,s=void 0!==a&&a,c=e.domain,l=e.features,u=e.onSelect,p=e.onPickDomainClick,m=e.onToggleExpandAll,f=e.allPlansExpanded,h=e.disabledLabel,b=$().__,g=d.useState(!1),v=g[0],x=g[1],_=Object(U.useViewportMatch)("mobile",">=");d.useEffect((function(){x(f)}),[f]);var w=f||_||o||v;return d.createElement("div",{className:j()("plan-item",{"is-popular":o,"is-open":w})},o&&d.createElement("span",{className:"plan-item__badge"},b("Popular")),d.createElement("div",{className:j()("plan-item__viewport",{"is-popular":o})},d.createElement("div",{className:"plan-item__details"},d.createElement("div",{tabIndex:0,role:"button",onClick:function(){return x((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&x((function(e){return!e}))},className:"plan-item__summary"},d.createElement("div",{className:"plan-item__heading"},d.createElement("div",{className:"plan-item__name"},n)),d.createElement("div",{className:"plan-item__price"},d.createElement("div",{className:j()("plan-item__price-amount",{"is-loading":!r})},r||" ")),!w&&d.createElement("div",{className:"plan-item__dropdown-chevron"},An)),d.createElement("div",{hidden:!w},d.createElement("div",{className:"plan-item__price-note"},b(s?"free forever":"per month, billed yearly")),d.createElement("div",{className:"plan-item__actions"},d.createElement(y.Button,{className:"plan-item__select-button",onClick:function(){u(t)},isPrimary:!0,disabled:!!h},d.createElement("span",null,b("Choose")))),d.createElement(Pn,{features:l,domain:c,isFree:s,isOpen:w,onPickDomain:p,disabledLabel:h})))),o&&!_&&d.createElement(y.Button,{onClick:m,className:"plan-item__mobile-expand-all-plans",isLink:!0},b(f?"Collapse all plans":"Expand all plans")))},Tn="automattic/onboard/plans",Fn=(n(80),function(e){var t=e.selectedPlanSlug,n=e.onPlanSelect,r=e.onPickDomainClick,i=e.currentDomain,o=e.disabledPlans,a=Object(m.useSelect)((function(e){return e(Tn).getSupportedPlans()})),s=Object(m.useSelect)((function(e){return e(Tn).getPrices()})),c=Object(d.useState)(!1),l=c[0],u=c[1];return p.a.createElement("div",{className:"plans-table"},a.map((function(e){var a;return e&&p.a.createElement(Ln,{allPlansExpanded:l,key:e.storeSlug,slug:e.storeSlug,domain:i,features:null!==(a=e.features)&&void 0!==a?a:[],isPopular:e.isPopular,isFree:e.isFree,price:s[e.storeSlug],name:null==e?void 0:e.title.toString(),isSelected:e.storeSlug===t,onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return u((function(e){return!e}))},disabledLabel:null==o?void 0:o[e.storeSlug]})})))}),Mn=(n(78),p.a.createElement("svg",{width:"8",viewBox:"0 0 8 4"},p.a.createElement("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}))),Dn=function(e){var t=e.slug,n=e.name,r=e.description,i=e.price,o=e.features,a=e.domain,s=e.badge,c=e.isFree,l=void 0!==c&&c,u=e.isOpen,d=void 0!==u&&u,m=e.isPrimary,f=void 0!==m&&m,h=e.onSelect,b=e.onPickDomainClick,g=e.onToggle,v=e.disabledLabel,y=$().__,x=function(){!v&&(null==g||g(t,!d))};return p.a.createElement("div",{className:j()("plans-accordion-item",{"is-open":d,"is-primary":f,"has-badge":!!s,"is-disabled":!!v})},s&&p.a.createElement("div",{className:"plans-accordion-item__badge"},p.a.createElement("span",null,s)),p.a.createElement("div",{className:"plans-accordion-item__viewport"},p.a.createElement("div",{className:"plans-accordion-item__details"},p.a.createElement("div",{tabIndex:0,role:"button",onClick:x,onKeyDown:function(e){return 32===e.keyCode&&x()},className:"plans-accordion-item__header"},p.a.createElement("div",{className:"plans-accordion-item__heading"},p.a.createElement("div",{className:"plans-accordion-item__name"},n),p.a.createElement("div",{className:"plans-accordion-item__description"},r)),p.a.createElement("div",{className:"plans-accordion-item__price"},p.a.createElement("div",{className:j()("plans-accordion-item__price-amount",{"is-loading":!i})},i||"  ",i&&p.a.createElement("span",null,y("/mo"))),p.a.createElement("div",{className:"plans-accordion-item__price-note"},y(l?"free forever":"billed annually"))),p.a.createElement("div",{className:"plans-accordion-item__disabled-label"},v),!d&&p.a.createElement("div",{className:"plans-accordion-item__dropdown-chevron"},Mn)),p.a.createElement("div",{className:"plans-accordion-item__actions",hidden:!d},p.a.createElement(Y,{onClick:function(){h(t)}},y("Select"))),p.a.createElement(Pn,{features:o,domain:a,isFree:l,isOpen:d,onPickDomain:b,multiColumn:!0}))))},Rn=(n(77),p.a.createElement(y.SVG,{viewBox:"0 0 24 24"},p.a.createElement(y.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"}))),Bn=function(e){var t,n=e.selectedFeatures,r=void 0===n?[]:n,i=e.selectedPlanSlug,o=e.onPlanSelect,a=e.onPickDomainClick,s=e.currentDomain,c=e.disabledPlans,l=$().__,u=Object(m.useSelect)((function(e){return e(Tn).getSupportedPlans()})),f=Object(m.useSelect)((function(e){return e(Tn).getPrices()})),h=Object(m.useSelect)((function(e){return e(Tn).getDefaultPaidPlan()})),b=Object(m.useSelect)((function(e){return e("automattic/wpcom-features").getRecommendedPlanSlug(r)})),g=Object(m.useSelect)((function(e){return e(Tn).getPlanBySlug(b)})),v=g||h,x=l(g?"Recommended for you":"Popular"),_=u.filter((function(e){return e.storeSlug!==v.storeSlug})),w=[v.storeSlug],O=Object(d.useState)(w),E=O[0],k=O[1],S=E.length>=u.length,C=function(e,t){k(t?I(E,[e]):E.filter((function(t){return t!==e})))};return p.a.createElement("div",{className:"plans-accordion"},p.a.createElement("div",{className:"plans-accordion__plan-item-group"},v&&p.a.createElement(p.a.Fragment,null,g&&p.a.createElement("div",{className:"plans-accordion__recommend-hint"},p.a.createElement(se,{icon:Rn,size:16}),p.a.createElement("span",null,l("Based on the features you selected."))),p.a.createElement(Dn,{key:v.storeSlug,slug:v.storeSlug,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:[],price:f[v.storeSlug],domain:s,badge:x,isFree:v.isFree,isOpen:!0,isPrimary:!0,isSelected:v.storeSlug===i,onSelect:o,onPickDomainClick:a}))),p.a.createElement("div",{className:"plans-accordion__actions"},p.a.createElement(y.Button,{className:"plans-accordion__toggle-all-button",onClick:function(){k(S?w:u.map((function(e){return e.storeSlug})))},isLink:!0},l(S?"Collapse all plans":"Show all plans"))),p.a.createElement("div",{className:"plans-accordion__plan-item-group"},_.map((function(e){var t;return p.a.createElement(Dn,{key:e.storeSlug,slug:e.storeSlug,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:[],price:f[e.storeSlug],domain:s,isFree:e.isFree,isOpen:E.indexOf(e.storeSlug)>-1&&!(null==c?void 0:c[e.storeSlug]),isSelected:e.storeSlug===i,onSelect:o,onPickDomainClick:a,onToggle:C,disabledLabel:null==c?void 0:c[e.storeSlug]})}))))},In=(n(81),p.a.createElement(se,{icon:kn,size:25})),zn=function(e){var t=e.onSelect,n=Object(m.useSelect)((function(e){return e(Tn).getPlansDetails()})),r=Object(m.useSelect)((function(e){return e(Tn).getPrices()})),i=Object(m.useSelect)((function(e){return e(Tn).getSupportedPlans()})),o=$().__;return p.a.createElement("div",{className:"plans-details"},p.a.createElement("table",{className:"plans-details__table"},p.a.createElement("thead",null,p.a.createElement("tr",{className:"plans-details__header-row"},p.a.createElement("th",null,o("Feature")),i.map((function(e){return p.a.createElement("th",{key:e.storeSlug},e.title)})))),n.map((function(e){return p.a.createElement("tbody",{key:e.id},e.name&&p.a.createElement("tr",{className:"plans-details__header-row"},p.a.createElement("th",{colSpan:6},e.name)),e.features.map((function(e,t){return p.a.createElement("tr",{className:"plans-details__feature-row",key:t},p.a.createElement("th",null,e.name),e.data.map((function(t,n){return p.a.createElement("td",{key:n},"checkbox"===e.type&&(t?p.a.createElement(p.a.Fragment,null,p.a.createElement("span",{className:"hidden"},o("Available")),In):p.a.createElement(p.a.Fragment,null,p.a.createElement("span",{className:"hidden"},o("Unavailable")," "))),"text"===e.type&&t)})))})))})),p.a.createElement("tbody",null,p.a.createElement("tr",{className:"plans-details__header-row"},p.a.createElement("th",{colSpan:6},o("Sign up"))),p.a.createElement("tr",{className:"plans-details__feature-row",key:"price"},p.a.createElement("th",null,o("Monthly subscription (billed yearly)")),i.map((function(e){return p.a.createElement("td",{key:e.storeSlug},r[e.storeSlug])}))),p.a.createElement("tr",{className:"plans-details__feature-row",key:"cta"},p.a.createElement("th",null),i.map((function(e){return p.a.createElement("td",{key:e.storeSlug},p.a.createElement(y.Button,{className:"plans-details__select-button",onClick:function(){t(e.storeSlug)},isPrimary:!0},p.a.createElement("span",null,o("Select"))))}))))))},Un=(n(76),ue()("plans-grid")),Hn=function(e){var t,n,r=e.header,i=e.selectedFeatures,o=e.currentPlan,a=e.currentDomain,s=e.onPlanSelect,c=e.onPickDomainClick,l=e.disabledPlans,u=e.isExperimental,p=$().__;return u&&Un("PlansGrid experimental version is active"),d.createElement("div",{className:"plans-grid"},r&&d.createElement("div",{className:"plans-grid__header"},r),d.createElement("div",{className:"plans-grid__table"},d.createElement("div",{className:"plans-grid__table-container"},u?d.createElement(Bn,{selectedFeatures:i,selectedPlanSlug:null!==(t=null==o?void 0:o.storeSlug)&&void 0!==t?t:"",onPlanSelect:s,currentDomain:a,onPickDomainClick:c,disabledPlans:l}):d.createElement(Fn,{selectedPlanSlug:null!==(n=null==o?void 0:o.storeSlug)&&void 0!==n?n:"",onPlanSelect:s,currentDomain:a,onPickDomainClick:c,disabledPlans:l}))),d.createElement("div",{className:"plans-grid__details"},d.createElement("div",{className:"plans-grid__details-heading"},d.createElement(A,null,p("Detailed comparison"))),d.createElement("div",{className:"plans-grid__details-container"},d.createElement(zn,{onSelect:s}))))},$n=(n(75),function(e){var t=e.onPrevStep,n=e.onNextStep,r=Object(m.useSelect)((function(e){return e(c).getSelectedDomain()})),i=Object(m.useSelect)((function(e){return e(c).getLaunchStep()})),o=Object(m.useSelect)((function(e){return e(c).getState()})).isExperimental,s=Object(m.useDispatch)(c),l=s.updatePlan,d=s.setStep,p=K().selectedFeatures,f=r&&!r.is_free;return Object(u.createElement)(W,null,Object(u.createElement)("div",{className:"nux-launch-step__header"},Object(u.createElement)("div",null,Object(u.createElement)(A,null,Object(v.__)("Select a plan","full-site-editing")),Object(u.createElement)(L,null,Object(v.__)("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")))),Object(u.createElement)("div",{className:"nux-launch-step__body"},Object(u.createElement)(Hn,{currentDomain:r,onPlanSelect:function(e){l(e),null==n||n()},onPickDomainClick:function(){d(i.Domain)},disabledPlans:f?P()({},a.PLAN_FREE,Object(v.__)("Not available with custom domain","full-site-editing")):void 0,isExperimental:o,selectedFeatures:p})),Object(u.createElement)("div",{className:"nux-launch-step__footer"},Object(u.createElement)(V,{sticky:!0},Object(u.createElement)(G,{onClick:function(){null==t||t()}}))))}),qn=n(45),Vn=n.n(qn);var Gn=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 Yn=function(e){function t(e,r,c,l,p){for(var m,f,h,b,x,w=0,O=0,E=0,k=0,S=0,L=0,F=h=m=0,D=0,R=0,B=0,I=0,z=c.length,U=z-1,H="",$="",q="",V="";D<z;){if(f=c.charCodeAt(D),D===U&&0!==O+k+E+w&&(0!==O&&(f=47===O?10:47),k=E=w=0,z++,U++),0===O+k+E+w){if(D===U&&(0<R&&(H=H.replace(d,"")),0<H.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:H+=c.charAt(D)}f=59}switch(f){case 123:for(m=(H=H.trim()).charCodeAt(0),h=1,I=++D;D<z;){switch(f=c.charCodeAt(D)){case 123:h++;break;case 125:h--;break;case 47:switch(f=c.charCodeAt(D+1)){case 42:case 47:e:{for(F=D+1;F<U;++F)switch(c.charCodeAt(F)){case 47:if(42===f&&42===c.charCodeAt(F-1)&&D+2!==F){D=F+1;break e}break;case 10:if(47===f){D=F+1;break e}}D=F}}break;case 91:f++;case 40:f++;case 34:case 39:for(;D++<U&&c.charCodeAt(D)!==f;);}if(0===h)break;D++}switch(h=c.substring(I,D),0===m&&(m=(H=H.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<R&&(H=H.replace(d,"")),f=H.charCodeAt(1)){case 100:case 109:case 115:case 45:R=r;break;default:R=A}if(I=(h=t(r,R,h,f,p+1)).length,0<T&&(x=s(3,h,R=n(A,H,B),r,j,C,I,f,p,l),H=R.join(""),void 0!==x&&0===(I=(h=x.trim()).length)&&(f=0,h="")),0<I)switch(f){case 115:H=H.replace(_,a);case 100:case 109:case 45:h=H+"{"+h+"}";break;case 107:h=(H=H.replace(g,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=H+h,112===l&&($+=h,h="")}else h="";break;default:h=t(r,n(r,H,B),h,l,p+1)}q+=h,h=B=R=F=m=0,H="",f=c.charCodeAt(++D);break;case 125:case 59:if(1<(I=(H=(0<R?H.replace(d,""):H).trim()).length))switch(0===F&&(m=H.charCodeAt(0),45===m||96<m&&123>m)&&(I=(H=H.replace(" ",":")).length),0<T&&void 0!==(x=s(1,H,r,e,j,C,$.length,l,p,l))&&0===(I=(H=x.trim()).length)&&(H="\0\0"),m=H.charCodeAt(0),f=H.charCodeAt(1),m){case 0:break;case 64:if(105===f||99===f){V+=H+c.charAt(D);break}default:58!==H.charCodeAt(I-1)&&($+=i(H,m,f,H.charCodeAt(2)))}B=R=F=m=0,H="",f=c.charCodeAt(++D)}}switch(f){case 13:case 10:47===O?O=0:0===1+m&&107!==l&&0<H.length&&(R=1,H+="\0"),0<T*M&&s(0,H,r,e,j,C,$.length,l,p,l),C=1,j++;break;case 59:case 125:if(0===O+k+E+w){C++;break}default:switch(C++,b=c.charAt(D),f){case 9:case 32:if(0===k+w+O)switch(S){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===k+O+w&&(R=B=1,b="\f"+b);break;case 108:if(0===k+O+w+N&&0<F)switch(D-F){case 2:112===S&&58===c.charCodeAt(D-3)&&(N=S);case 8:111===L&&(N=L)}break;case 58:0===k+O+w&&(F=D);break;case 44:0===O+E+k+w&&(R=1,b+="\r");break;case 34:case 39:0===O&&(k=k===f?0:0===k?f:k);break;case 91:0===k+O+E&&w++;break;case 93:0===k+O+E&&w--;break;case 41:0===k+O+w&&E--;break;case 40:if(0===k+O+w){if(0===m)switch(2*S+3*L){case 533:break;default:m=1}E++}break;case 64:0===O+E+k+w+F+h&&(h=1);break;case 42:case 47:if(!(0<k+w+E))switch(O){case 0:switch(2*f+3*c.charCodeAt(D+1)){case 235:O=47;break;case 220:I=D,O=42}break;case 42:47===f&&42===S&&I+2!==D&&(33===c.charCodeAt(I+2)&&($+=c.substring(I,D+1)),b="",O=0)}}0===O&&(H+=b)}L=S,S=f,D++}if(0<(I=$.length)){if(R=r,0<T&&(void 0!==(x=s(2,$,R,e,j,C,I,l,p,l))&&0===($=x).length))return V+$+q;if($=R.join(",")+"{"+$+"}",0!=P*N){switch(2!==P||o($,2)||(N=0),N){case 111:$=$.replace(y,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}N=0}}return V+$+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 s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[c++]=r(e[l]+" ",i[s],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(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===P||2===P&&o(c,1)?"-webkit-"+c+c:c}if(0===P||2===P&&!o(a,1))return a;switch(s){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(S,"$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"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return m.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(x,"tb");break;case 232:c=a.replace(x,"tb-rl");break;case 220:c=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(O,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(O,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.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),F(2!==t?r:r.replace(E,"$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(w," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,c,u){for(var d,p=0,m=t;p<T;++p)switch(d=L[p].call(l,e,m,n,r,i,o,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function c(e){return void 0!==(e=e.prefix)&&(F=null,e?"function"!=typeof e?P=1:(P=2,F=e):P=0),c}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<T){var i=s(-1,n,r,r,j,C,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(A,r,n,0,0);return 0<T&&(void 0!==(i=s(-2,o,r,r,j,C,o.length,0,0,0))&&(o=i)),"",N=0,C=j=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,m=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,O=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,C=1,j=1,N=0,P=1,A=[],L=[],T=0,F=null,M=0;return l.use=function e(t){switch(t){case void 0:case null:T=L.length=0;break;default:if("function"==typeof t)L[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else M=0|!!t}return e},l.set=c,void 0!==e&&c(e),l},Wn=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}},Kn="/*|*/";function Xn(e){e&&Zn.current.insert(e+"}")}var Zn={current:null},Jn=function(e,t,n,r,i,o,a,s,c,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Zn.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+Kn;break;case 3:switch(s){case 102:case 112:return Zn.current.insert(n[0]+t),"";default:return t+(0===l?Kn:"")}case-2:t.split("/*|*/}").forEach(Xn)}},Qn=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Yn(t);var i,o={};i=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(Jn),a=function(e,t,n,i){var o=t.name;Zn.current=n,r(e,t.styles),i&&(c.inserted[o]=!0)};var c={key:n,sheet:new Gn({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:a};return c};function er(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var tr=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)}};var nr=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)},rr={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 ir=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},or=/[A-Z]|^ms/g,ar=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sr=function(e){return 45===e.charCodeAt(1)},cr=function(e){return null!=e&&"boolean"!=typeof e},lr=ir((function(e){return sr(e)?e:e.replace(or,"-$&").toLowerCase()})),ur=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ar,(function(e,t,n){return pr={name:t,styles:n,next:pr},t}))}return 1===rr[e]||sr(e)||"number"!=typeof t||0===t?t:t+"px"};function dr(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 pr={name:n.name,styles:n.styles,next:pr},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)pr={name:i.name,styles:i.styles,next:pr},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+=dr(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]+"}":cr(a)&&(r+=lr(o)+":"+ur(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=dr(e,t,a,!1);switch(o){case"animation":case"animationName":r+=lr(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var c=0;c<a.length;c++)cr(a[c])&&(r+=lr(o)+":"+ur(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=pr,a=n(e);return pr=o,dr(e,t,a,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var pr,mr=/label:\s*([^\s;\n{]+)\s*;/g;var fr=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="";pr=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=dr(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=dr(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);mr.lastIndex=0;for(var s,c="";null!==(s=mr.exec(i));)c+="-"+s[1];return{name:nr(i)+c,styles:i,next:pr}};var hr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fr(t)},br=Object(d.createContext)("undefined"!=typeof HTMLElement?Qn():null),gr=Object(d.createContext)({}),vr=(br.Provider,function(e){return Object(d.forwardRef)((function(t,n){return Object(d.createElement)(br.Consumer,null,(function(r){return e(t,r,n)}))}))});Object.prototype.hasOwnProperty;d.Component;var yr=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 s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function xr(e,t,n){var r=[],i=er(e,r,n);return r.length<2?n:i+t(r)}vr((function(e,t){return Object(d.createElement)(gr.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=fr(n,t.registered);return tr(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 xr(t.registered,r,yr(n))},theme:n},o=e.children(i);return!0,o}))})),n(46);function _r(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 wr=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?_r(n,!0).forEach((function(t){P()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},Or=Wn((function(e){return Wn((function(t){return wr(e,t)}))})),Er=function(e){return Object(d.createElement)(gr.Consumer,null,(function(t){return e.theme!==t&&(t=Or(t)(e.theme)),Object(d.createElement)(gr.Provider,{value:t},e.children)}))};var kr=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),Sr="#F6F7F7",Cr="#DCDCDE",jr="#A7AAAD",Nr="#8E9196",Pr="#646970",Ar="#2C3338",Lr="#008A20",Tr="#FFF",Fr="#000",Mr={colors:{background:Sr,surface:Tr,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#006088",highlightBorder:"#002C40",highlightOver:"#004E6E",success:Lr,discount:Lr,disabledPaymentButtons:Sr,disabledPaymentButtonsAccent:Cr,disabledButtons:jr,borderColor:jr,borderColorLight:Cr,borderColorDark:Pr,upcomingStepBackground:Cr,textColor:Ar,textColorLight:Pr,textColorDark:Fr,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:Fr,applePayButtonRollOverColor:Ar,noticeBackground:Ar,defaultNoticeIconBackground:Nr,textColorOnDarkBackground:Tr,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:Sr,placeHolderTextColor:Nr},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"}},Dr=n(3),Rr=n.n(Dr);function Br(e){return e.filter((function(e){return e})).join(" ")}var Ir=/^((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)-.*))$/,zr=ir((function(e){return Ir.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ur=function(e){return"theme"!==e&&"innerRef"!==e},Hr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?zr:Ur};function $r(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 qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(n,!0).forEach((function(t){P()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vr=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,s=a&&t.__emotion_base||t;"function"!=typeof i&&a&&(i=t.__emotion_forwardProp);var c=i||Hr(s),l=!c("as");return function(){var u=arguments,p=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)p.push.apply(p,u);else{0,p.push(u[0][0]);for(var m=u.length,f=1;f<m;f++)p.push(u[f],u[0][f])}var h=vr((function(e,t,n){return Object(d.createElement)(gr.Consumer,null,(function(r){var a=l&&e.as||s,u="",m=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=r}"string"==typeof e.className?u=er(t.registered,m,e.className):null!=e.className&&(u=e.className+" ");var b=fr(p.concat(m),t.registered,f);tr(t,b,"string"==typeof a);u+=t.key+"-"+b.name,void 0!==o&&(u+=" "+o);var g=l&&void 0===i?Hr(a):c,v={};for(var y in e)l&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=u,v.ref=n||e.innerRef,Object(d.createElement)(a,v)}))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=p,h.__emotion_forwardProp=i,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,void 0!==r?qr({},n||{},{},r):n).apply(void 0,p)},h}}.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){Vr[e]=Vr(e)}));var Gr=Vr,Yr=ue()("composite-checkout:checkout-error-boundary"),Wr=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasError:!1,currentError:null},n}return function(e,t){function n(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.getDerivedStateFromError=function(e){return{currentError:e,hasError:!0}},t.prototype.componentDidCatch=function(e,t){if(this.props.onError){var n=e.message+"; Stack: "+e.stack+"; Component Stack: "+t.componentStack;Yr("reporting the error",n),this.props.onError(n)}},t.prototype.render=function(){return this.state.hasError?p.a.createElement(Kr,{errorMessage:this.props.errorMessage}):this.props.children},t}(p.a.Component);function Kr(e){var t=e.errorMessage;return p.a.createElement(Qr,null,t)}var Xr,Zr,Jr,Qr=Gr.div(Xr||(Xr=z(["\n\tmargin: 2em;\n\ttext-align: center;\n"],["\n\tmargin: 2em;\n\ttext-align: center;\n"])));!function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(Zr||(Zr={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(Jr||(Jr={}));var ei={transactionStatus:Jr.NOT_STARTED,previousTransactionStatus:Jr.NOT_STARTED,transactionError:null,transactionLastResponse:null,transactionRedirectUrl:null,resetTransaction:ni,setTransactionError:ni,setTransactionComplete:ni,setTransactionPending:ni,setTransactionRedirecting:ni},ti={allPaymentMethods:[],paymentMethodId:null,setPaymentMethodId:ni,showErrorMessage:ni,showInfoMessage:ni,showSuccessMessage:ni,onEvent:ni,formStatus:Zr.LOADING,setFormStatus:ni,transactionStatusManager:ei,paymentProcessors:{}};function ni(){}var ri=Object(d.createContext)(ti);ue()("composite-checkout:form-status");function ii(){var e=Object(d.useContext)(ri),t=e.formStatus,n=e.setFormStatus,r=Object(d.useMemo)((function(){return{setFormLoading:function(){return n(Zr.LOADING)},setFormReady:function(){return n(Zr.READY)},setFormSubmitting:function(){return n(Zr.SUBMITTING)},setFormValidating:function(){return n(Zr.VALIDATING)},setFormComplete:function(){return n(Zr.COMPLETE)}}}),[n]);return Object(d.useMemo)((function(){return F(F({},r),{formStatus:t})}),[t,r])}Gr.div(oi||(oi=z(["\n\tdisplay: flex;\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t}\n"],["\n\tdisplay: flex;\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp})),Gr.div(ai||(ai=z(["\n\tbackground: ",";\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tmax-width: 556px;\n\t}\n"],["\n\tbackground: ",";\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tmax-width: 556px;\n\t}\n"])),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.colors.borderColorLight})),Gr.div(si||(si=z(["\n\tdisplay: none;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tdisplay: block;\n\t\tpadding: 24px;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid ",";\n\t\tmax-width: 328px;\n\t\tbackground: ",";\n\t\tmargin-left: 24px;\n\t}\n"],["\n\tdisplay: none;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tdisplay: block;\n\t\tpadding: 24px;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid ",";\n\t\tmax-width: 328px;\n\t\tbackground: ",";\n\t\tmargin-left: 24px;\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.surface})),Gr.div(ci||(ci=z(["\n\tpadding: 24px;\n\tborder-top: 1px solid ",";\n\n\t:first-of-type {\n\t\tborder-top: 0;\n\t}\n"],["\n\tpadding: 24px;\n\tborder-top: 1px solid ",";\n\n\t:first-of-type {\n\t\tborder-top: 0;\n\t}\n"])),(function(e){return e.theme.colors.borderColorLight}));var oi,ai,si,ci,li,ui,di,pi,mi,fi=function(){var e=hr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(li||(li=z(["\n 0% {\n opacity: 1;\n }\n\n 70% {\n \topacity: 0.5;\n }\n\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 1;\n }\n\n 70% {\n \topacity: 0.5;\n }\n\n 100% {\n opacity: 1;\n }\n"]))),hi=(Gr.h1(ui||(ui=z(["\n\tfont-size: 14px;\n\tcontent: '';\n\tfont-weight: ",";\n\tbackground: ",";\n\tcolor: ",";\n\twidth: 40%;\n\tmargin: 3px 0 0 35px;\n\tpadding: 0;\n\tposition: relative;\n\tanimation: "," 2s ease-in-out infinite;\n\theight: 20px;\n\n\t.rtl & {\n\t\tmargin: 3px 35px 0 0;\n\t}\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tleft: -35px;\n\t\ttop: -3px;\n\t\twidth: 27px;\n\t\theight: 27px;\n\t\tbackground: ",";\n\t\tborder-radius: 100%;\n\n\t\t.rtl & {\n\t\t\tright: -35px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n"],["\n\tfont-size: 14px;\n\tcontent: '';\n\tfont-weight: ",";\n\tbackground: ",";\n\tcolor: ",";\n\twidth: 40%;\n\tmargin: 3px 0 0 35px;\n\tpadding: 0;\n\tposition: relative;\n\tanimation: "," 2s ease-in-out infinite;\n\theight: 20px;\n\n\t.rtl & {\n\t\tmargin: 3px 35px 0 0;\n\t}\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tleft: -35px;\n\t\ttop: -3px;\n\t\twidth: 27px;\n\t\theight: 27px;\n\t\tbackground: ",";\n\t\tborder-radius: 100%;\n\n\t\t.rtl & {\n\t\t\tright: -35px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n"])),(function(e){return e.theme.weights.normal}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),fi,(function(e){return e.theme.colors.borderColorLight})),Gr.p(di||(di=z(["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 35px;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n\n\t.rtl & {\n\t\tmargin: 8px 35px 0 0;\n\t}\n"],["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 35px;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n\n\t.rtl & {\n\t\tmargin: 8px 35px 0 0;\n\t}\n"])),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),fi),Gr.p(pi||(pi=z(["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 0;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n"],["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 0;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n"])),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),fi),Gr.div(mi||(mi=z(["\n\tbackground: ",";\n\tcontent: '';\n\tborder-top: 1px solid ",";\n\tpadding: 24px;\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 3px;\n\t\tfont-size: 14px;\n\t\twidth: 100%;\n\t\theight: 40px;\n\t}\n"],["\n\tbackground: ",";\n\tcontent: '';\n\tborder-top: 1px solid ",";\n\tpadding: 24px;\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 3px;\n\t\tfont-size: 14px;\n\t\twidth: 100%;\n\t\theight: 40px;\n\t}\n"])),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight})),ue()("composite-checkout:payment-methods"));function bi(){var e=Object(d.useContext)(ri),t=e.paymentMethodId,n=e.setPaymentMethodId,r=gi();if(!n)throw new Error("usePaymentMethod can only be used inside a CheckoutProvider");if(!t)return null;var i=r.find((function(e){return e.id===t}));return i||(hi("No payment method found matching id '"+t+"' in",r),null)}function gi(){var e=Object(d.useContext)(ri).allPaymentMethods;if(!e)throw new Error("useAllPaymentMethods cannot be used outside of CheckoutProvider");return e}var vi,yi=Gr("button")(vi||(vi=z(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: ",";\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"],["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: ",";\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"])),(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"}),Oi,wi,(function(e){var t=e.disabled,n=e.buttonType,r=e.theme;if(t||"text-button"===n)return r.weights.normal;return r.weights.bold}),ki,_i,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),wi,(function(e){return e.disabled?"not-allowed":"pointer"}),_i,ki,wi,(function(e){var t=e.buttonType;return"grayscale( "+("primary"===t||"paypal"===t?"0":"100")+" ) invert( 0 );"}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),Oi,Ei,Ei,Oi),xi=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,i=e.children,o=e.fullWidth,a=M(e,["className","buttonType","isBusy","children","fullWidth"]),s=Br(I(["checkout-button"],n?["is-status-"+n]:[],r?["is-busy"]:[],t?[t]:[]));return p.a.createElement(yi,F({fullWidth:o,buttonType:n,className:s},a),i)};function _i(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 wi(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 Oi(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 Ei(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 ki(e){return"text-button"===e.buttonType?"underline":"none"}function Si(e){var t=e.className,n=e.id;return p.a.createElement(ji,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},p.a.createElement("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},p.a.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"})),p.a.createElement("g",{mask:"url(#"+n+"-check-icon-mask)"},p.a.createElement("rect",{width:"20",height:"20"})))}Si.propTypes={className:Rr.a.string,id:Rr.a.string};var Ci,ji=Gr.svg(Ci||(Ci=z(["\n\tfill: #fff;\n"],["\n\tfill: #fff;\n"])));var Ni=function(e){var t=e.value,n=e.onClick,r=e.ariaLabel,i=M(e,["value","onClick","ariaLabel"]);return p.a.createElement(xi,F({onClick:n,buttonType:"primary","aria-label":r},i),t)},Pi=Object(d.createContext)({items:[],total:{id:"title",type:"total",label:"Total",amount:{currency:"USD",value:0,displayValue:"0"}}});function Ai(){var e=Object(d.useContext)(Pi),t=e.items,n=e.total;if(!t||!n)throw new Error("useLineItems can only be used inside a CheckoutProvider");return[t,n]}Gr.ul(Li||(Li=z(["\n\tmargin: 0;\n\tpadding: 0;\n"],["\n\tmargin: 0;\n\tpadding: 0;\n"]))),Gr.li(Ti||(Ti=z(["\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style-type: none;\n"],["\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style-type: none;\n"])));Gr.span(Fi||(Fi=z(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]))),Gr.span(Mi||(Mi=z(["\n\tfont-weight: ",";\n"],["\n\tfont-weight: ",";\n"])),(function(e){return e.theme.weights.bold}));Gr.div(Di||(Di=z(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tpadding: 24px 20px;\n"],["\n\tcolor: ",";\n\tfont-weight: ",";\n\tpadding: 24px 20px;\n"])),(function(e){return e.theme.colors.textColor}),(function(e){return e.theme.weights.bold})),Gr.div(Ri||(Ri=z(["\n\tborder-top: 1px solid ",";\n\tpadding: 24px 20px;\n"],["\n\tborder-top: 1px solid ",";\n\tpadding: 24px 20px;\n"])),(function(e){return e.theme.colors.borderColorLight}));var Li,Ti,Fi,Mi,Di,Ri,Bi,Ii,zi=Gr.div(Bi||(Bi=z(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"])));Gr(zi)(Ii||(Ii=z(["\n\tfont-weight: ",";\n"],["\n\tfont-weight: ",";\n"])),(function(e){return e.theme.weights.bold}));function Ui(e){var t=e.children,n=e.className;return p.a.createElement(Hi,{className:Br([n,"order-review-section"])},t)}Ui.propTypes={className:Rr.a.string};var Hi=Gr.div(qi||(qi=z(["\n\tmargin-bottom: 16px;\n"],["\n\tmargin-bottom: 16px;\n"])));function $i(e){var t=e.item,n=e.className,r="checkout-line-item-"+t.id;return p.a.createElement("div",{className:Br([n,"checkout-line-item"])},p.a.createElement("span",{id:r},t.label),p.a.createElement("span",{"aria-labelledby":r},t.amount.displayValue))}$i.propTypes={className:Rr.a.string,total:Rr.a.bool,isSummaryVisible:Rr.a.bool,item:Rr.a.shape({label:Rr.a.string,amount:Rr.a.shape({displayValue:Rr.a.string})})};var qi,Vi,Gi=Gr($i)(Vi||(Vi=z(["\n\tdisplay: flex;\n\twidth: 100%;\n\tjustify-content: space-between;\n\tfont-weight: ",";\n\tcolor: ",";\n\tfont-size: ",";\n\tpadding: ",";\n\tborder-bottom: ",";\n\n\t:first-of-type {\n\t\tpadding-top: 0;\n\t}\n"],["\n\tdisplay: flex;\n\twidth: 100%;\n\tjustify-content: space-between;\n\tfont-weight: ",";\n\tcolor: ",";\n\tfont-size: ",";\n\tpadding: ",";\n\tborder-bottom: ",";\n\n\t:first-of-type {\n\t\tpadding-top: 0;\n\t}\n"])),(function(e){var t=e.theme;return e.total?t.weights.bold:t.weights.normal}),(function(e){var t=e.theme;return e.total?t.colors.textColorDark:"inherit"}),(function(e){return e.total?"1.2em":"1em"}),(function(e){var t=e.total;return e.isSummaryVisible||t?0:"24px 0"}),(function(e){var t=e.theme,n=e.total;return e.isSummaryVisible||n?0:"1px solid "+t.colors.borderColorLight}));function Yi(e){var t=e.total,n=e.className;return p.a.createElement("div",{className:Br([n,"order-review-total"])},p.a.createElement(Gi,{total:!0,item:t}))}function Wi(e){var t=e.items,n=e.className,r=e.isSummaryVisible;return p.a.createElement("div",{className:Br([n,"order-review-line-items"])},t.map((function(e){return p.a.createElement(Gi,{isSummaryVisible:r,key:e.id,item:e})})))}function Ki(e){var t=e.className,n=Ai(),r=n[0],i=n[1];return p.a.createElement("div",{className:Br([t,"checkout-review-order"])},p.a.createElement(Ui,null,p.a.createElement(Wi,{items:r})),p.a.createElement(Ui,null,p.a.createElement(Yi,{total:i})))}function Xi(e){var t=e.checked,n=e.name,r=e.value,i=e.onChange,o=e.children,a=e.label,s=e.disabled,c=e.id,l=e.ariaLabel,u=Object(d.useState)(!1),m=u[0],f=u[1];return p.a.createElement(Zi,{disabled:s,isFocused:m,checked:t},p.a.createElement(Ji,{type:"radio",name:n,id:c,disabled:s,value:r,checked:t,onChange:i,onFocus:function(){f(!0)},onBlur:function(){f(!1)},readOnly:!i,"aria-label":l}),p.a.createElement(Qi,{checked:t,htmlFor:c,disabled:s},a),o&&p.a.createElement(io,{checked:t},o))}Wi.propTypes={className:Rr.a.string,isSummaryVisible:Rr.a.bool,items:Rr.a.arrayOf(Rr.a.shape({label:Rr.a.string,amount:Rr.a.shape({displayValue:Rr.a.string})}))},Ki.propTypes={className:Rr.a.string},Xi.propTypes={name:Rr.a.string.isRequired,id:Rr.a.string.isRequired,label:Rr.a.node.isRequired,disabled:Rr.a.bool,checked:Rr.a.bool,value:Rr.a.string.isRequired,onChange:Rr.a.func,ariaLabel:Rr.a.string.isRequired};var Zi=Gr.div(eo||(eo=z(["\n\tposition: relative;\n\tmargin-top: 8px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\toutline: ",";\n\n\t:first-of-type {\n\t\tmargin: 0;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tcontent: '';\n\t\tborder: "," solid ",";\n\t\tborder-radius: 3px;\n\t\tbox-sizing: border-box;\n\n\t\t.rtl & {\n\t\t\tright: 0;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t:hover::before {\n\t\tborder: 3px solid ",";\n\t}\n\n\t.payment-logos {\n\t\tdisplay: none;\n\n\t\t@media ( "," ) {\n\t\t\tdisplay: block;\n\t\t\tfilter: grayscale( "," );\n\t\t}\n\t}\n\n\t:hover .payment-logos {\n\t\t@media ( "," ) {\n\t\t\tfilter: grayscale( 0 );\n\t\t}\n\t}\n\n\tsvg {\n\t\tfilter: grayscale( "," );\n\t}\n\n\t:hover svg {\n\t\tfilter: grayscale( 0 );\n\t}\n\n\t",";\n"],["\n\tposition: relative;\n\tmargin-top: 8px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\toutline: ",";\n\n\t:first-of-type {\n\t\tmargin: 0;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tcontent: '';\n\t\tborder: "," solid ",";\n\t\tborder-radius: 3px;\n\t\tbox-sizing: border-box;\n\n\t\t.rtl & {\n\t\t\tright: 0;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t:hover::before {\n\t\tborder: 3px solid ",";\n\t}\n\n\t.payment-logos {\n\t\tdisplay: none;\n\n\t\t@media ( "," ) {\n\t\t\tdisplay: block;\n\t\t\tfilter: grayscale( "," );\n\t\t}\n\t}\n\n\t:hover .payment-logos {\n\t\t@media ( "," ) {\n\t\t\tfilter: grayscale( 0 );\n\t\t}\n\t}\n\n\tsvg {\n\t\tfilter: grayscale( "," );\n\t}\n\n\t:hover svg {\n\t\tfilter: grayscale( 0 );\n\t}\n\n\t",";\n"])),(function(e){var t=e.isFocused,n=e.theme;if(t)return n.colors.outline+" solid 2px";return"0"}),(function(e){return e.checked?"3px":"1px"}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.borderColor}),(function(e){return e.theme.colors.highlight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),oo,(function(e){return e.theme.breakpoints.smallPhoneUp}),oo,(function(e){if(!e.disabled)return null;return"\n\t\t::before,\n\t\t:hover::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t}\n\n\t\tsvg,\n\t\t:hover svg {\n\t\t\tfilter: grayscale( 100% );\n\t\t\topacity: 50%;\n\t\t}\n\t"}));var Ji=Gr.input(to||(to=z(["\n\tposition: absolute;\n\topacity: 0 !important;\n\n\tclear: none;\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tline-height: 0;\n\theight: 16px;\n\tmargin: 2px 0 0;\n\tfloat: left;\n\toutline: 0;\n\tpadding: 0;\n\ttext-align: center;\n\tvertical-align: middle;\n\twidth: 16px;\n\tmin-width: 16px;\n\tappearance: none;\n"],["\n\tposition: absolute;\n\topacity: 0 !important;\n\n\tclear: none;\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tline-height: 0;\n\theight: 16px;\n\tmargin: 2px 0 0;\n\tfloat: left;\n\toutline: 0;\n\tpadding: 0;\n\ttext-align: center;\n\tvertical-align: middle;\n\twidth: 16px;\n\tmin-width: 16px;\n\tappearance: none;\n"]))),Qi=Gr.label(no||(no=z(["\n\tposition: relative;\n\tpadding: 16px 14px 16px 40px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: space-between;\n\talign-items: flex-start;\n\tfont-size: 14px;\n\n\t.rtl & {\n\t\tpadding: 16px 40px 16px 14px;\n\t}\n\n\t:hover {\n\t\tcursor: pointer;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 16px;\n\t\theight: 16px;\n\t\tcontent: '';\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 100%;\n\t\ttop: 19px;\n\t\tleft: 16px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 2;\n\n\t\t.rtl & {\n\t\t\tright: 16px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t::after {\n\t\tdisplay: block;\n\t\twidth: 8px;\n\t\theight: 8px;\n\t\tcontent: '';\n\t\tborder-radius: 100%;\n\t\ttop: 23px;\n\t\tleft: 20px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 3;\n\n\t\t.rtl & {\n\t\t\tright: 20px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t",";\n"],["\n\tposition: relative;\n\tpadding: 16px 14px 16px 40px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: space-between;\n\talign-items: flex-start;\n\tfont-size: 14px;\n\n\t.rtl & {\n\t\tpadding: 16px 40px 16px 14px;\n\t}\n\n\t:hover {\n\t\tcursor: pointer;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 16px;\n\t\theight: 16px;\n\t\tcontent: '';\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 100%;\n\t\ttop: 19px;\n\t\tleft: 16px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 2;\n\n\t\t.rtl & {\n\t\t\tright: 16px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t::after {\n\t\tdisplay: block;\n\t\twidth: 8px;\n\t\theight: 8px;\n\t\tcontent: '';\n\t\tborder-radius: 100%;\n\t\ttop: 23px;\n\t\tleft: 20px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 3;\n\n\t\t.rtl & {\n\t\t\tright: 20px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t",";\n"])),(function(e){return e.theme.colors.borderColor}),(function(e){return e.theme.colors.surface}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.surface}),(function(e){if(!e.disabled)return null;return"\n\t\tcolor: lightgray;\n\t\tfont-style: italic;\n\n\t\t:hover {\n\t\t\tcursor: default;\n\t\t}\n\n\t\t::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t\tbackground: lightgray;\n\t\t}\n\n\t\t::after {\n\t\t\tbackground: white;\n\t\t}\n\n\t\tspan {\n\t\t\tcolor: lightgray;\n\t\t}\n\t"}));var eo,to,no,ro,io=Gr.div(ro||(ro=z(["\n\tdisplay: ",";\n"],["\n\tdisplay: ",";\n"])),(function(e){return e.checked?"block":"none"}));function oo(e){return e.checked?0:"100%"}function ao(){var e=Object(d.useContext)(ri).onEvent;if(!e)throw new Error("useEvents can only be used inside a CheckoutProvider");return e}var so=ue()("composite-checkout:checkout-payment-methods");function co(e){var t=e.summary,n=e.isComplete,r=e.className,i=$().__,o=ao(),a=Object(d.useCallback)((function(e){return o({type:"PAYMENT_METHOD_LOAD_ERROR",payload:e})}),[o]),s=bi(),c=function(){var e=Object(d.useContext)(ri),t=e.paymentMethodId,n=e.setPaymentMethodId;if(!n)throw new Error("usePaymentMethodId can only be used inside a CheckoutProvider");return[t,n]}()[1],l=function(e){so("setting payment method to",e),o({type:"PAYMENT_METHOD_SELECT",payload:e}),c(e)},u=gi();return t&&n&&s?(so("rendering selected paymentMethod",s),p.a.createElement("div",{className:Br([r,"checkout-payment-methods"])},p.a.createElement(Wr,{errorMessage:i("There was a problem with this payment method."),onError:a},p.a.createElement(lo,{id:s.id,label:s.label,activeContent:s.activeContent,inactiveContent:s.inactiveContent,checked:!0,summary:!0,ariaLabel:s.getAriaLabel(i)})))):t?(so("summary requested, but no complete paymentMethod is selected; isComplete:",n,"paymentMethod:",s),null):(so("rendering paymentMethods",u),p.a.createElement("div",{className:Br([r,"checkout-payment-methods"])},p.a.createElement(po,null,u.map((function(e){return p.a.createElement(Wr,{key:e.id,errorMessage:Object(v.sprintf)(i("There was a problem with the payment method: %s"),e.id),onError:a},p.a.createElement(lo,{id:e.id,label:e.label,activeContent:e.activeContent,inactiveContent:e.inactiveContent,checked:(null==s?void 0:s.id)===e.id,onClick:l,ariaLabel:e.getAriaLabel(i)}))})))))}function lo(e){var t=e.id,n=e.label,r=e.activeContent,i=e.inactiveContent,o=e.checked,a=e.onClick,s=e.ariaLabel,c=e.summary,l=ii().formStatus;return c?p.a.createElement(p.a.Fragment,null,i&&i):p.a.createElement(Xi,{name:"paymentMethod",value:t,id:t,checked:o,disabled:l!==Zr.READY,onChange:a?function(){return a(t)}:void 0,ariaLabel:s,label:n},r&&r)}co.propTypes={summary:Rr.a.bool,isComplete:Rr.a.bool.isRequired,className:Rr.a.string},lo.propTypes={id:Rr.a.string.isRequired,onClick:Rr.a.func,checked:Rr.a.bool.isRequired,ariaLabel:Rr.a.string.isRequired,activeContent:Rr.a.node,label:Rr.a.node,inactiveContent:Rr.a.node,summary:Rr.a.bool};var uo,po=Gr.div(uo||(uo=z(["\n\tmargin-bottom: 16px;\n"],["\n\tmargin-bottom: 16px;\n"])));ue()("composite-checkout:checkout");var mo=function(e){var t=e.children,n=e.className;return p.a.createElement(go,{className:Br([n,"checkout__summary-area"])},t)},fo=Gr.div(Po||(Po=z(["\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"],["\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"])),(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}));function ho(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,s=e.validatingButtonAriaLabel,c=e.isStepActive,l=e.isStepComplete,u=e.className,d=e.stepNumber,m=e.stepId,f=e.titleContent,h=e.goToThisStep,b=e.goToNextStep,g=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,x=e.onError,_=$().__;return p.a.createElement(Wr,{errorMessage:t||_("There was an error with this step."),onError:x},p.a.createElement(xo,{className:u},p.a.createElement(_o,{id:m,stepNumber:d,title:f,isActive:c,isComplete:l,onEdit:v===Zr.READY&&l&&h&&!c?h:void 0,editButtonText:n||_("Edit"),editButtonAriaLabel:r||_("Edit this step")}),p.a.createElement(Go,{isVisible:c,className:"checkout-steps__step-content"},g,b&&c&&p.a.createElement(Ni,{onClick:b,value:v===Zr.VALIDATING?o||_("Please wait…"):i||_("Continue"),ariaLabel:v===Zr.VALIDATING?s||_("Please wait…"):a||_("Continue to next step"),buttonType:"primary",disabled:v!==Zr.READY,isBusy:v===Zr.VALIDATING})),l&&y?p.a.createElement(Yo,{isVisible:!c,className:"checkout-steps__step-complete-content"},y):null))}ho.propTypes={errorMessage:Rr.a.string,onError:Rr.a.func,editButtonAriaLabel:Rr.a.string,editButtonText:Rr.a.string,nextStepButtonText:Rr.a.string,nextStepButtonAriaLabel:Rr.a.string,isStepActive:Rr.a.bool.isRequired,isStepComplete:Rr.a.bool.isRequired,className:Rr.a.string,stepNumber:Rr.a.number,stepId:Rr.a.string.isRequired,titleContent:Rr.a.node.isRequired,goToThisStep:Rr.a.func,goToNextStep:Rr.a.func,activeStepContent:Rr.a.node,formStatus:Rr.a.string,completeStepContent:Rr.a.node,validatingButtonText:Rr.a.string,validatingButtonAriaLabel:Rr.a.string};Gr.div(Ao||(Ao=z(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"],["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"])),(function(e){return e.theme.colors.outline}));var bo=Gr.div(Lo||(Lo=z(["\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"],["\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"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),go=Gr.div(To||(To=z(["\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"],["\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"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),vo=Gr.div(Fo||(Fo=z(["\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"],["\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"])),(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})),yo=Gr.div(Mo||(Mo=z(["\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: 100%;\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\twidth: calc( 100% - 60px );\n\t\t}\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\n\t\t\t.checkout-button {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n"],["\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: 100%;\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\twidth: calc( 100% - 60px );\n\t\t}\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\n\t\t\t.checkout-button {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n"])),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var xo=Gr.div(Do||(Do=z(["\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"],["\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"])),(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}));function _o(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,s=e.onEdit,c=e.editButtonText,l=e.editButtonAriaLabel,u=$().__,d=!!s;return p.a.createElement(Eo,{isComplete:a,isActive:o,className:Br([n,"checkout-step__header"])},p.a.createElement(wo,{isComplete:a,isActive:o,id:t},r||null),p.a.createElement(Oo,{fullWidth:!d,isActive:o},i),d&&p.a.createElement(No,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:s,"aria-label":l||u("Edit this step")},c||u("Edit")))}function wo(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return p.a.createElement(ko,{className:Br([r,"checkout-step__stepper"])},p.a.createElement(So,{isComplete:a},p.a.createElement(Co,{isComplete:a,isActive:n},i),p.a.createElement(jo,null,p.a.createElement(Si,{id:o}))))}_o.propTypes={id:Rr.a.string,className:Rr.a.string,stepNumber:Rr.a.number,title:Rr.a.node.isRequired,isActive:Rr.a.bool,isComplete:Rr.a.bool,editButtonText:Rr.a.string,editButtonAriaLabel:Rr.a.string,onEdit:Rr.a.func},wo.propTypes={id:Rr.a.string,className:Rr.a.string,isComplete:Rr.a.bool,isActive:Rr.a.bool};var Oo=Gr.span(Ro||(Ro=z(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: ",";\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"],["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: ",";\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"])),(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?"1":"inherit"}),(function(e){return e.fullWidth?"0":"8px"})),Eo=Gr.h2(Bo||(Bo=z(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"],["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"])),(function(e){return e.isComplete||e.isActive?"8px":"0"})),ko=Gr.div(Io||(Io=z(["\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"],["\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"]))),So=Gr.div(zo||(zo=z(["\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"],["\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"])),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),Co=Gr.div(Uo||(Uo=z(["\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"],["\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"])),(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"})),jo=Gr(Co)(Ho||(Ho=z(["\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"],["\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"])),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"})),No=Gr(xi)($o||($o=z(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"],["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"])));var Po,Ao,Lo,To,Fo,Mo,Do,Ro,Bo,Io,zo,Uo,Ho,$o,qo,Vo,Go=Gr.div(qo||(qo=z(["\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"],["\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"])),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),Yo=Gr.div(Vo||(Vo=z(["\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"],["\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"])),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));n(95);var Wo,Ko,Xo=Object(u.createElement)(O,{icon:kr,size:17}),Zo=function(e){var t=e.onNextStep,n=e.onPrevStep,r=Object(m.useSelect)((function(e){return e(c).getSelectedDomain()})),i=Object(m.useSelect)((function(e){return e(c).getSelectedPlan()})),o=Object(m.useSelect)((function(e){return e(l).getPrices()})),a=Object(m.useSelect)((function(e){return e(c).getLaunchStep()})),s=Object(m.useSelect)((function(e){return e(c).isStepCompleted})),d=Object(m.useSelect)((function(e){return e(c).isFlowCompleted()})),p=Object(g.useEntityProp)("root","site","title"),f=b()(p,1)[0],h=K().currentDomainName,x=function(){var e,t=re();return null===(e=Object(m.useSelect)((function(e){if(t&&!(t.length<2))return e("automattic/domains/suggestions").getDomainSuggestions(t,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:"en"})}),[t]))||void 0===e?void 0:e[0]}(),_=re(),w=Object(m.useDispatch)(c).setStep,O=Object(u.createElement)("div",{className:"nux-launch__summary-item"},Object(u.createElement)("p",null,Object(v.__)("Site","full-site-editing"),": ",f)),E=Object(u.createElement)("div",{className:"nux-launch__summary-item"},(null==r?void 0:r.domain_name)?Object(u.createElement)("p",null,Object(v.__)("Custom domain","full-site-editing"),": ",r.domain_name):Object(u.createElement)(u.Fragment,null,Object(u.createElement)("p",null,Object(v.__)("Free site address","full-site-editing"),": ",h),Object(u.createElement)(y.Tip,null,_?Object(u.createInterpolateElement)(Object(v.__)("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:Object(u.createElement)("span",{className:j()("nux-launch__summary-item__domain-name",{"is-loading":!x})},(null==x?void 0:x.domain_name)||"loading-example.com"),Link:Object(u.createElement)(y.Button,{isLink:!0,onClick:function(){return w(a.Domain)}})}):Object(v.__)("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),k=Object(u.createElement)("div",{className:"nux-launch__summary-item"},i&&!(null==i?void 0:i.isFree)?Object(u.createElement)(u.Fragment,null,Object(u.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",i.title),Object(v.__)("Plan subscription","full-site-editing"),": ",o[i.storeSlug]," ",Object(v.__)("per month, billed yearly","full-site-editing")):Object(u.createElement)(u.Fragment,null,Object(u.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),Object(u.createElement)("p",null,Object(v.__)("Plan subscription: Free forever","full-site-editing")),Object(u.createElement)(y.Tip,null,Object(u.createInterpolateElement)(Object(v.__)("<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:Object(u.createElement)(y.Button,{isLink:!0,onClick:function(){return w(a.Plan)}})}))));return Object(u.createElement)(W,null,Object(u.createElement)("div",{className:"nux-launch-step__header"},Object(u.createElement)("div",null,Object(u.createElement)(A,null,Object(v.__)("Launch your site","full-site-editing")),Object(u.createElement)(L,null,Object(v.__)("Your site will be made public and ready to share with others.","full-site-editing")))),Object(u.createElement)("div",{className:"nux-launch-step__body"},Object(u.createElement)(Er,{theme:Mr},Object(u.createElement)(bo,null,s(a.Plan)&&Object(u.createElement)(mo,null,Object(u.createElement)(fo,{className:"nux-launch__feature-list"},Object(u.createElement)("h3",{className:"nux-launch__feature-list-title"},Object(v.__)("Included in your plan","full-site-editing")),Object(u.createElement)("ul",{className:"nux-launch__feature-item-group"},null==i?void 0:i.features.map((function(e,t){return Object(u.createElement)("li",{key:t,className:"nux-launch__feature-item"},Xo," ",e)}))),Object(u.createElement)("p",null,Object(v.__)("Questions?","full-site-editing")," ",Object(u.createElement)(y.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},Object(v.__)("Ask a Happiness Engineer","full-site-editing"))))),Object(u.createElement)(vo,null,Object(u.createElement)(ho,{isStepActive:!1,titleContent:Object(v.__)("Your site name","full-site-editing"),isStepComplete:s(a.Name),goToThisStep:function(){return w(a.Name)},completeStepContent:O,stepId:"name",formStatus:Zr.READY}),Object(u.createElement)(ho,{isStepActive:!1,titleContent:Object(v.__)("Your domain","full-site-editing"),isStepComplete:s(a.Domain),goToThisStep:function(){return w(a.Domain)},completeStepContent:E,stepId:"domain",formStatus:Zr.READY}),Object(u.createElement)(ho,{isStepActive:!1,titleContent:Object(v.__)("Your plan","full-site-editing"),isStepComplete:s(a.Plan),goToThisStep:function(){return w(a.Plan)},completeStepContent:k,stepId:"plan",formStatus:Zr.READY}),Object(u.createElement)(yo,null,Object(u.createElement)(y.Button,{isPrimary:!0,disabled:!d,onClick:t,className:"nux-launch__submit-button"},Object(v.__)("Launch your site","full-site-editing"))))))),Object(u.createElement)("div",{className:"nux-launch-step__footer"},Object(u.createElement)(V,{sticky:!0},Object(u.createElement)(G,{onClick:function(){null==n||n()}}))))},Jo=(n(98),function(e){var t,n=e.onSubmit,r=Object(m.useSelect)((function(e){return e(c).getState()})).step,i=Object(m.useSelect)((function(e){return e(c).getLaunchStep()})),o=Object(m.useSelect)((function(e){return e(c).getLaunchSequence()})),a=Object(m.useSelect)((function(e){return e(c).getFirstIncompleteStep()})),s=Object(m.useDispatch)(c),l=s.setStep,p=s.setSidebarFullscreen,f=s.unsetSidebarFullscreen,h=(t={},P()(t,i.Name,ie),P()(t,i.Domain,et),P()(t,i.Plan,$n),P()(t,i.Final,Zo),t),b=o.indexOf(r),g=h[r];return d.useEffect((function(){a&&a!==i.Name&&l(a)}),[]),Object(u.createElement)(g,{onPrevStep:function(){var e=b-1;e<0&&(e=0,p()),l(o[e])},onNextStep:function(){var e=b+1;e>o.length-1&&(null==n||n()),f(),l(o[e])}})}),Qo=Object(u.createElement)(y.SVG,{viewBox:"0 0 24 24"},Object(u.createElement)(y.Circle,{cx:"12",cy:"12",r:"5"})),ea=function(e){var t=e.title,n=e.isCompleted,r=e.isCurrent,i=e.isDisabled,o=e.onClick;return Object(u.createElement)(y.Button,{className:j()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:o,disabled:i,isLink:!0},Object(u.createElement)(O,{icon:n?kr:Qo,size:16}),Object(u.createElement)("span",null,t))},ta=(n(99),function(e){var t,n=e.onMenuItemClick,r=Object(m.useSelect)((function(e){return e(c).getState()})).step,i=Object(m.useSelect)((function(e){return e(c).getLaunchStep()})),o=Object(m.useSelect)((function(e){return e(c).getLaunchSequence()})),a=Object(m.useSelect)((function(e){return e(c).isStepCompleted})),s=Object(m.useSelect)((function(e){return e(c).isFlowStarted()})),l=(t={},P()(t,i.Name,Object(v.__)("Name your site","full-site-editing")),P()(t,i.Domain,Object(v.__)("Select a domain","full-site-editing")),P()(t,i.Plan,Object(v.__)("Select a plan","full-site-editing")),P()(t,i.Final,Object(v.__)("Launch your site","full-site-editing")),t),d=Object(m.useDispatch)(c).setStep;return Object(u.createElement)("div",{className:"nux-launch-menu"},Object(u.createElement)("h4",null,Object(v.__)("Site Launch Steps","full-site-editing")),Object(u.createElement)("div",{className:"nux-launch-menu__item-group"},o.map((function(e){return Object(u.createElement)(ea,{key:e,title:l[e],isCompleted:a(e),isCurrent:e===r,onClick:function(){return function(e){d(e),n(e)}(e)},isDisabled:e===i.Final&&!s})}))))}),na=(n(100),function(){var e=Object(m.useDispatch)(c),t=e.setStep,n=e.unsetSidebarFullscreen,r=Object(m.useSelect)((function(e){return e(c).getLaunchSequence()}));return Object(u.createElement)("div",{className:"nux-launch-sidebar"},Object(u.createElement)("div",{className:"nux-launch-sidebar__header"},Object(u.createElement)(A,null,Object(v.__)("You're almost there!","full-site-editing")),Object(u.createElement)(L,null,Object(v.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),Object(u.createElement)("div",{className:"nux-launch-sidebar__body"},Object(u.createElement)(ta,{onMenuItemClick:function(){n()}})),Object(u.createElement)("div",{className:"nux-launch-sidebar__footer"},Object(u.createElement)(V,{sticky:!0},Object(u.createElement)(Y,{onClick:function(){t(r[0]),n()}},Object(v.__)("Get Started","full-site-editing")))))}),ra=(n(101),function(){var e=$().__,t=Object(m.useSelect)((function(e){return e(c).getState()})).step,n=Object(m.useSelect)((function(e){return e(c).getLaunchSequence()})),r=n.indexOf(t)+1,i=n.length,o=Object(v.sprintf)(e("%1$d of %2$d","full-site-editing"),r,i);return Object(u.createElement)("div",{className:"nux-launch-progress"},o)}),ia=(n(102),function(e){var t=e.onClose,n=Object(m.useSelect)((function(e){return e(c).getState()})),r=n.step,i=n.isSidebarFullscreen,o=Object(m.useDispatch)(c).launchSite,a=d.useState(!1),s=b()(a,2),l=s[0],p=s[1],f=function(){p(!0),o()};return K().isPaidPlan&&!l&&f(),Object(u.createElement)(y.Modal,{open:!0,className:j()("nux-launch-modal","step-".concat(r),i?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},l?Object(u.createElement)("div",{className:"nux-launch-modal-body__launching"},Object(v.__)("Hooray! Your site will be ready shortly.","full-site-editing")):Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"nux-launch-modal-body"},Object(u.createElement)("div",{className:"nux-launch-modal-header"},Object(u.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},Object(u.createElement)(O,{icon:k,size:36})),Object(u.createElement)(ra,null)),Object(u.createElement)(g.EntityProvider,{kind:"root",type:"site"},Object(u.createElement)(Jo,{onSubmit:f}))),Object(u.createElement)("div",{className:"nux-launch-modal-aside"},Object(u.createElement)(na,null)),Object(u.createElement)(y.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":Object(v.__)("Close dialog","full-site-editing"),disabled:!t},Object(u.createElement)("span",null,Object(u.createElement)(O,{icon:S,size:24})))))});Wo="a8c-editor-site-launch",Ko={render:function(){var e=Object(m.useSelect)((function(e){return e(c).getState()})).isSidebarOpen,t=Object(m.useDispatch)(c),n=t.closeSidebar,r=t.setSidebarFullscreen,i=t.unsetSidebarFullscreen;return function(){var e=K().launchStatus,t=Object(m.useSelect)((function(e){return e(c).getState()})),n=t.plan,r=t.domain,i=Object(m.useSelect)((function(e){return e(l).isPlanEcommerce(null==n?void 0:n.storeSlug)})),o=Object(m.useDispatch)(s),a=o.getCart,u=o.setCart;d.useEffect((function(){if(e){if(n&&!(null==n?void 0:n.isFree)){var t={product_id:n.productId,product_slug:n.storeSlug,extra:{source:"gutenboarding"}},o={meta:null==r?void 0:r.domain_name,product_id:null==r?void 0:r.product_id,extra:{privacy_available:null==r?void 0:r.supports_privacy,privacy:null==r?void 0:r.supports_privacy,source:"gutenboarding"}};return void function(){var e=te()(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(window._currentSiteId);case 2:return n=e.sent,e.next=5,u(window._currentSiteId,Q()(Q()({},n),{},{products:[].concat(Z()(n.products),[t,o])}));case 5:r=Object(ne.addQueryArgs)("https://wordpress.com/checkout/".concat(window._currentSiteId),Q()({preLaunch:1},!i&&{redirect_to:"/home/".concat(window._currentSiteId)})),window.top.location.href=r;case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}window.top.location.href="https://wordpress.com/home/".concat(window._currentSiteId)}}),[e])}(),d.useEffect((function(){window.innerWidth<782?r():i()}),[e,r,i]),e?Object(u.createElement)(ia,{onClose:n}):null}},Object(f.registerPlugin)(Wo,Ko)}]));
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 n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},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"],e.exports=n(69)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t){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}},function(e,t,n){var r=n(59),i=n(60),o=n(27),a=n(61);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.coreData}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){var r=n(9);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}},,,,function(e,t,n){var r=n(63),i=n(64),o=n(27),a=n(65);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(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?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;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),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=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.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):b(i,i.length)}function h(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 b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.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},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(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},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var l=c.length,u=b(c,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,m(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,m(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;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){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},s.prototype.off=s.prototype.removeListener,s.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},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";var r=n(25),i=n(29);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 s(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 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+=s(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+=c(i.toString(16))}return n},t.zero2=s,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var a=new Array(o/4),s=0,c=t;s<a.length;s++,c+=4){var l;l="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],a[s]=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,s){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+o>>>0)<o?1:0,e+n+i+a+(c+=(l=l+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,c,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+s>>>0)<s?1:0,e+n+i+a+c+(u+=(d=d+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,c,l){return t+r+o+s+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}},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";
7
  /*!
8
  * cookie
9
  * Copyright(c) 2012-2014 Roman Shtylman
30
  *
31
  * This source code is licensed under the MIT license found in the
32
  * LICENSE file in the root directory of this source tree.
33
+ */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case a:case c:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case m:case g:case b:case l:return e;default:return t}}case o:return t}}}function O(e){return w(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=m,t.Fragment=a,t.Lazy=g,t.Memo=b,t.Portal=o,t.Profiler=c,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return O(e)||w(e)===d},t.isConcurrentMode=O,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===m},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===b},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===c},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===x||e.$$typeof===_||e.$$typeof===v)},t.typeOf=w},function(e,t,n){},function(e,t,n){"use strict";var r=n(97);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"setPrices",(function(){return un})),n.d(r,"resetPlan",(function(){return dn}));var i={};n.r(i),n.d(i,"getPlanBySlug",(function(){return mn})),n.d(i,"getDefaultPaidPlan",(function(){return fn})),n.d(i,"getSupportedPlans",(function(){return hn})),n.d(i,"getPlanByPath",(function(){return bn})),n.d(i,"getPlansDetails",(function(){return gn})),n.d(i,"getPlansPaths",(function(){return vn})),n.d(i,"getPrices",(function(){return yn})),n.d(i,"isPlanEcommerce",(function(){return xn})),n.d(i,"isPlanFree",(function(){return _n}));var o={};n.r(o),n.d(o,"getPrices",(function(){return wn}));var a={};n.r(a),n.d(a,"plansPaths",(function(){return on})),n.d(a,"PLAN_FREE",(function(){return nt})),n.d(a,"PLAN_PERSONAL",(function(){return rt})),n.d(a,"PLAN_PREMIUM",(function(){return it})),n.d(a,"PLAN_BUSINESS",(function(){return ot})),n.d(a,"PLAN_ECOMMERCE",(function(){return at})),n.d(a,"register",(function(){return En}));n(58);var s="automattic/site",c="automattic/launch",l="automattic/onboard/plans",u=n(1),d=n(0),p=n.n(d),m=n(2),f=n(33),h=n(10),b=n.n(h),g=n(12),v=n(4),y=n(5);function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(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 w(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 O=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=_(e,["icon","size"]);return Object(u.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},E=n(8),k=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(E.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"})),S=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.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"})),C=n(6),j=n.n(C),N=n(9),P=n.n(N),A=(n(67),function(e){var t=e.children;return d.createElement("h1",{className:"onboarding-title"},t)}),L=function(e){var t=e.children;return d.createElement("h2",{className:"onboarding-subtitle"},t)},T=function(e,t){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var F=function(){return(F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function M(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function D(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function R(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function B(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(R(arguments[t]));return e}function I(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function z(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var U=n(13),H=d.createContext(q()),$=function(){return d.useContext(H)};Object(U.createHigherOrderComponent)((function(e){return function(t){var n=$();return d.createElement(e,F({},n,t))}}),"withI18n");function q(e){var t,n,r=Object(v.createI18n)(e),i=null!==(n=null===(t=null==e?void 0:e[""])||void 0===t?void 0:t.localeSlug)&&void 0!==n?n:"en";return{__:r.__.bind(r),_n:r._n.bind(r),_nx:r._nx.bind(r),_x:r._x.bind(r),isRTL:r.isRTL.bind(r),i18nLocale:i}}n(68);var V=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"),d.createElement("div",{className:j()("action-buttons",t,o)},n)},G=function(e){var t=e.className,n=e.children,r=M(e,["className","children"]),i=$().__;return d.createElement(y.Button,F({className:j()("action_buttons__button action-buttons__back",t),isLink:!0},r),n||i("Go back"))},Y=function(e){var t=e.className,n=e.children,r=M(e,["className","children"]),i=$().__;return d.createElement(y.Button,F({className:j()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||i("Continue"))},W=(n(62),function(e){var t=e.children;return Object(u.createElement)(u.Fragment,null,t)});function K(){var e,t,n=Object(m.useSelect)((function(e){return e(s).getSite(window._currentSiteId)})),r=Object(m.useSelect)((function(e){return e(s).isLaunched(window._currentSiteId)}));return{isPaidPlan:n&&!(null===(e=n.plan)||void 0===e?void 0:e.is_free),launchStatus:r,currentDomainName:(null==n?void 0:n.URL)&&new URL(null==n?void 0:n.URL).hostname,selectedFeatures:null==n||null===(t=n.options)||void 0===t?void 0:t.selected_features}}var X=n(18),Z=n.n(X),J=n(14),Q=n.n(J),ee=n(34),te=n.n(ee),ne=n(35);function re(){var e,t=Object(m.useSelect)((function(e){return e(c).getState()})).domainSearch,n=Object(g.useEntityProp)("root","site","title"),r=b()(n,1)[0],i=K().currentDomainName,o=t.trim()||r;o&&o!==Object(v.__)("Site Title","full-site-editing")||(o=null!==(e=null==i?void 0:i.split(".")[0])&&void 0!==e?e:"");return o}n(66);var ie=function(e){var t=e.onPrevStep,n=e.onNextStep,r=function(){var e=Object(m.useSelect)((function(e){return e(c).getSelectedDomain()})),t=Object(m.useDispatch)(c).setDomainSearch,n=Object(g.useEntityProp)("root","site","title"),r=b()(n,2),i=r[0],o=r[1],a=Object(m.useDispatch)("core").saveEditedEntityRecord;return{title:i,updateTitle:o,saveTitle:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;o(n.trim()),a("root","site"),!e&&t(n)}}}(),i=r.title,o=r.updateTitle,a=r.saveTitle,s=function(){a(),null==n||n()};return Object(u.createElement)(W,null,Object(u.createElement)("div",{className:"nux-launch-step__header"},Object(u.createElement)("div",null,Object(u.createElement)(A,null,Object(v.__)("Name your site","full-site-editing")),Object(u.createElement)(L,null,Object(v.__)("Pick a name for your site.","full-site-editing"))),Object(u.createElement)(V,{sticky:!1},Object(u.createElement)(Y,{onClick:s,disabled:!(null==i?void 0:i.trim())}))),Object(u.createElement)("div",{className:"nux-launch-step__body"},Object(u.createElement)("form",{onSubmit:s},Object(u.createElement)(y.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:o,onBlur:function(){return a()},value:i,spellCheck:!1,autoComplete:"off",placeholder:Object(v.__)("Enter site name","full-site-editing"),autoCorrect:"off","data-hj-whitelist":!0}),Object(u.createElement)("div",{className:"nux-launch-step__input-hint"},Object(u.createElement)(y.Tip,{size:18}),Object(u.createElement)("span",null,Object(v.__)("Don't worry, you can change it later.","full-site-editing"))))),Object(u.createElement)("div",{className:"nux-launch-step__footer"},Object(u.createElement)(V,{sticky:!0},Object(u.createElement)(G,{onClick:function(){null==t||t()}}),Object(u.createElement)(Y,{onClick:s,disabled:!(null==i?void 0:i.trim())}))))},oe=n(11);function ae(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 se=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=_(e,["icon","size"]);return Object(u.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},ce=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.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"})),le=n(7),ue=n.n(le),de=ue()("calypso:analytics");n(36);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(24);var pe=n(19),me=ue()("lib/load-script/callback-handler"),fe=new Map;function he(){return fe}function be(e){return he().has(e)}function ge(e,t){var n=he();be(e)?(me('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(me('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=he(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));me(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function ye(){var e=this.getAttribute("src");me('Handling successful request for "'.concat(e,'"')),ve(e),this.onload=null}function xe(){var e=this.getAttribute("src");me('Handling failed request for "'.concat(e,'"')),ve(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var _e=ue()("lib/load-script/dom-operations");ue()("package/load-script");function we(e,t){var n;if(!be(e)&&(n=function(e){_e('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=ye,t.onerror=xe,t}(e),_e("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){ge(e,(function(e){null===e?t():n(e)}))}));ge(e,t)}var Oe,Ee=["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"];Promise.resolve();function ke(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&we("//stats.wp.com/w.js?61");var Se=new pe.EventEmitter;function Ce(e,t){if(de('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(oe.includes)(Ee,e)){if(Oe){var n=Oe(t);t=F(F({},t),n)}t=Object(oe.omitBy)(t,oe.isUndefined),de('Recording event "%s" with actual props %o',e,t),ke(["recordEvent",e,t]),Se.emit("record-event",e,t)}else de('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var je="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),Ne=new Uint8Array(16);function Pe(){if(!je)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return je(Ne)}for(var Ae=[],Le=0;Le<256;++Le)Ae[Le]=(Le+256).toString(16).substr(1);var Te=function(e,t){var n=t||0,r=Ae;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 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||Pe)();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||Te(i)};var Me;!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(Me||(Me={}));var De=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.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"})),Re=(n(74),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,s=void 0===a||a,c=Object(d.useState)(!1),l=c[0],u=c[1];return p.a.createElement(y.Button,{icon:De,onClick:function(){u(!l)},className:"info-tooltip","data-testid":"info-tooltip"},l&&p.a.createElement(y.Popover,{id:r,className:j()("info-tooltip__content",n),onClose:function(){u(!1)},position:o,noArrow:s},t))}),Be=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,o=e.railcarId,a=e.hstsRequired,s=void 0!==a&&a,c=e.isFree,l=void 0!==c&&c,m=e.isExistingSubdomain,f=void 0!==m&&m,h=e.isRecommended,b=void 0!==h&&h,g=e.onSelect,x=e.onRender,_=e.selected,w=$().__,O=Object(U.useViewportMatch)("small","<"),E=n.indexOf("."),k=n.slice(0,E),S=n.slice(E),C=Object(d.useState)(),N=C[0],P=C[1],A=Object(d.useState)(),L=A[0],T=A[1],F=Fe();Object(d.useEffect)((function(){n!==N&&L!==o&&o&&(x(),P(n),T(o))}),[n,N,L,o,x]);return p.a.createElement("label",{className:j()("domain-picker__suggestion-item",{"is-free":l,"is-selected":_,"is-unavailable":t})},r?p.a.createElement(y.Spinner,null):p.a.createElement("input",{"aria-labelledby":F,className:"domain-picker__suggestion-radio-button",type:"radio",disabled:t,name:"domain-picker-suggestion-option",onChange:function(){L&&function(e){Ce("calypso_traintracks_interact",{railcar:e.railcarId,action:e.action})}({action:"domain_selected",railcarId:L}),g(n)},checked:_&&!t}),p.a.createElement("div",{className:"domain-picker__suggestion-item-name"},p.a.createElement("div",{className:"domain-picker__suggestion-item-name-inner"},p.a.createElement("span",{className:"domain-picker__domain-name"},k),p.a.createElement("span",{className:j()("domain-picker__domain-tld",{"with-margin":!s})},S),s&&p.a.createElement(Re,{position:O?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},Object(u.createInterpolateElement)(w("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>"),{tld:p.a.createElement("b",null,S),learn_more_link:p.a.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://wordpress.com/support/https-ssl"})})),b&&!t&&p.a.createElement("div",{className:"domain-picker__badge is-recommended"},w("Recommended"))),f&&p.a.createElement("div",{className:"domain-picker__change-subdomain-tip"},w("You can change your free subdomain later under Domain Settings."))),p.a.createElement("div",{className:j()("domain-picker__price",{"is-paid":!l})},t&&w("Unavailable"),l&&!t&&w("Free"),!l&&!t&&p.a.createElement(p.a.Fragment,null,p.a.createElement("span",{className:"domain-picker__price-inclusive"}," ",w("Included in plans")," "),p.a.createElement("span",{className:"domain-picker__price-cost"},Object(v.sprintf)(w("%s/year"),i)))))},Ie=function(){return p.a.createElement("div",{className:"domain-picker__suggestion-item placeholder"},p.a.createElement("div",{className:"domain-picker__suggestion-item-name placeholder"}),p.a.createElement("div",{className:"domain-picker__price placeholder"}))};function ze(e,t){return e===t}function Ue(e,t,n){var r=n&&n.equalityFn?n.equalityFn:ze,i=Object(d.useState)(e),o=i[0],a=i[1],s=function(e,t,n){void 0===n&&(n={});var r=n.maxWait,i=Object(d.useRef)(null),o=Object(d.useRef)([]),a=n.leading,s=Object(d.useRef)(!1),c=Object(d.useRef)(null),l=Object(d.useRef)(!1),u=Object(d.useRef)(e);u.current=e;var p=Object(d.useCallback)((function(){clearTimeout(c.current),clearTimeout(i.current),i.current=null,o.current=[],c.current=null,s.current=!1}),[]);return Object(d.useEffect)((function(){return function(){l.current=!0}}),[]),[Object(d.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(o.current=e,clearTimeout(c.current),!c.current&&a&&!s.current)return u.current.apply(u,e),void(s.current=!0);c.current=setTimeout((function(){p(),l.current||u.current.apply(u,e)}),t),r&&!i.current&&(i.current=setTimeout((function(){var e=o.current;p(),l.current||u.current.apply(null,e)}),r))}),[r,t,p,a]),p,function(){c.current&&(u.current.apply(null,o.current),p())}]}(Object(d.useCallback)((function(e){return a(e)}),[]),t,n),c=s[0],l=s[1],u=Object(d.useRef)(e);return Object(d.useEffect)((function(){r(u.current,e)||(c(e),u.current=e)}),[e,c,r]),[o,l]}var He="automattic/domains/suggestions",$e=["available","available_premium"];var qe,Ve,Ge,Ye,We=Object(u.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(E.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"})),Ke=(n(73),function(e){var t=e.onSelect,n=e.selected,r=$().__,i=Object(u.useState)(!1),o=i[0],a=i[1],s=function(e){a(!1),t(e)},c=Object(m.useSelect)((function(e){return e(He).getCategories()}));return d.createElement("div",{className:j()("domain-categories",{"is-open":o})},d.createElement(y.Button,{className:"domain-categories__dropdown-button",onClick:function(){return a(!o)}},d.createElement("span",null,n||r("All Categories")),d.createElement(se,{icon:We,size:16})),d.createElement("ul",{className:"domain-categories__item-group"},d.createElement("li",{className:j()("domain-categories__item",{"is-selected":!n})},d.createElement(y.Button,{onClick:function(){return s()}},r("View all"))),c.map((function(e){var t=e.slug,r=e.title;return d.createElement("li",{key:t,className:j()("domain-categories__item",{"is-selected":t===n})},d.createElement(y.Button,{onClick:function(){return s(t)}},r))}))))}),Xe=function(){return p.a.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"},p.a.createElement("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),p.a.createElement("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),p.a.createElement("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),p.a.createElement("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),p.a.createElement("text",{x:"80",y:"26",fill:"#999"},"https://"),p.a.createElement("text",{x:"133",y:"26",fill:"#515151"},"example.com"))},Ze=(n(72),function(e){var t=e.groupItems,n=e.children;return t?p.a.createElement("div",{className:"domain-picker__suggestion-item-group"},n):p.a.createElement(p.a.Fragment,null,n)}),Je=function(e){var t,n,r=e.header,i=e.showDomainCategories,o=e.onDomainSelect,a=e.onExistingSubdomainSelect,s=e.quantity,c=void 0===s?5:s,l=e.quantityExpanded,u=void 0===l?10:l,f=e.onDomainSearchBlur,h=e.analyticsFlowId,b=e.analyticsUiAlgo,g=e.initialDomainSearch,v=void 0===g?"":g,x=e.onSetDomainSearch,_=e.currentDomain,w=e.isCheckingDomainAvailability,O=e.existingSubdomain,E=e.segregateFreeAndPaid,k=void 0!==E&&E,S=$().__,C=S("Search for a domain"),j=Object(d.useState)(!1),N=j[0],P=j[1],A=Object(d.useState)(v),L=A[0],T=A[1],F=Object(d.useState)(),M=F[0],D=F[1],R=Object(m.useSelect)((function(e){return e(He).getDomainSuggestionVendor()})),B=function(e,t,n,r){void 0===e&&(e=""),void 0===r&&(r="en");var i=Ue(e,300)[0],o=Object(m.useDispatch)(He).invalidateResolutionForStoreSelector;return Object(m.useSelect)((function(e){if(i&&!(i.length<2)){var a=e(He),s=a.getDomainSuggestions,c=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:s(i,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:r,category_slug:n}),state:c(),errorMessage:l(),retryRequest:function(){o("__internalGetDomainSuggestions")}}}}),[i,n,t])}(L.trim(),u,M,$().i18nLocale)||{},I=B.allDomainSuggestions,z=B.errorMessage,U=B.state,H=B.retryRequest,q=null==I?void 0:I.slice(O?1:0,N?u:c),V=Object(m.useSelect)((function(e){return e(He).getDomainAvailabilities()}),[]);Object(d.useEffect)((function(){P(!1)}),[L]);var G=Object(d.useState)(),Y=G[0],W=G[1];Object(d.useEffect)((function(){var e;I&&W((void 0===(e="suggestion")&&(e="recommendation"),Fe().replace(/-/g,"")+"-"+e))}),[I,W]);var K=function(e,t,n,r){!function(e){Ce("calypso_traintracks_render",{railcar:e.railcarId,ui_algo:e.uiAlgo,ui_position:e.uiPosition,fetch_algo:e.fetchAlgo,rec_result:e.result,fetch_query:e.query})}({uiAlgo:"/"+h+"/"+b,fetchAlgo:"/domains/search/"+R+"/"+h+(M?"/"+M:""),query:L,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},X=U===Me.Failure,Z=(null===(t=L.trim)||void 0===t?void 0:t.call(L).length)<=1,J=!X&&!Z,Q=!X&&Z;return p.a.createElement("div",{className:"domain-picker"},r&&r,p.a.createElement("div",{className:"domain-picker__search"},p.a.createElement("div",{className:"domain-picker__search-icon"},p.a.createElement(se,{icon:ce})),p.a.createElement(y.TextControl,{"data-hj-whitelist":!0,hideLabelFromVision:!0,label:C,placeholder:C,onChange:function(e){T(e),x(e)},onBlur:function(e){f&&f(e.currentTarget.value)},value:L})),X&&p.a.createElement("div",{className:"domain-picker__error"},p.a.createElement("p",{className:"domain-picker__error-message"},S("An error has occurred, please check your connection and retry."),z&&" "+z),p.a.createElement(y.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:H},"Retry")),J&&p.a.createElement("div",{className:"domain-picker__body"},i&&p.a.createElement("div",{className:"domain-picker__aside"},p.a.createElement(Ke,{selected:M,onSelect:D})),p.a.createElement("div",{className:"domain-picker__suggestion-sections"},p.a.createElement(p.a.Fragment,null,k&&p.a.createElement("p",{className:"domain-picker__suggestion-group-label"},S("Keep sub-domain")),p.a.createElement(Ze,{groupItems:k},O&&p.a.createElement(Be,{key:O,domain:O,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Y?""+Y+0:void 0,onRender:function(){return K(O,""+Y+0,0,!1)},selected:_===O,onSelect:function(){null==a||a(O)}})),k&&p.a.createElement("p",{className:"domain-picker__suggestion-group-label"},S("Professional domains")),p.a.createElement(Ze,{groupItems:k},null!==(n=null==q?void 0:q.map((function(e,t){var n,r=O?t+1:t,i=1===r,a=null===(n=V[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,s=!a||(null==$e?void 0:$e.includes(a));return p.a.createElement(Be,{key:e.domain_name,isUnavailable:!s,domain:e.domain_name,cost:e.cost,isLoading:_===e.domain_name&&w,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:i,railcarId:Y?""+Y+r:void 0,onRender:function(){return K(e.domain_name,""+Y+r,r,i)},onSelect:function(){o(e)},selected:_===e.domain_name})})))&&void 0!==n?n:Object(oe.times)(c,(function(e){return p.a.createElement(Ie,{key:e})})))),!N&&(null==I?void 0:I.length)&&(null==I?void 0:I.length)>c&&p.a.createElement("div",{className:"domain-picker__show-more"},p.a.createElement(y.Button,{onClick:function(){return P(!0)},isLink:!0},S("View more results"))))),Q&&p.a.createElement("div",{className:"domain-picker__empty-state"},p.a.createElement("p",{className:"domain-picker__empty-state--text"},S("A domain name is the site address people type in their browser to visit your site.")),p.a.createElement("div",null,p.a.createElement(Xe,null))))},Qe="gutenboarding",et=(n(71),function(e){var t=e.onPrevStep,n=e.onNextStep,r=Object(m.useSelect)((function(e){return e(c).getState()})),i=r.plan,o=r.domain,a=K().currentDomainName,s=re(),l=Object(m.useDispatch)(c),d=l.setDomain,p=l.unsetDomain,f=l.setDomainSearch,h=l.unsetPlan,b=l.confirmDomainSelection,g=function(){b(),null==n||n()};return Object(u.createElement)(W,null,Object(u.createElement)("div",{className:"nux-launch-step__header"},Object(u.createElement)("div",null,Object(u.createElement)(A,null,Object(v.__)("Choose a domain","full-site-editing")),Object(u.createElement)(L,null,Object(v.__)("Free for the first year with any paid plan.","full-site-editing"))),Object(u.createElement)(V,{sticky:!1},Object(u.createElement)(Y,{onClick:g,disabled:!s}))),Object(u.createElement)("div",{className:"nux-launch-step__body"},Object(u.createElement)(Je,{analyticsFlowId:Qe,initialDomainSearch:s,onSetDomainSearch:f,onDomainSearchBlur:function(e){Ce("calypso_newsite_domain_search_blur",{flow:Qe,query:e,where:"editor_domain_modal"})},currentDomain:(null==o?void 0:o.domain_name)||a,existingSubdomain:a,onDomainSelect:function(e){b(),d(e),(null==i?void 0:i.isFree)&&h()},onExistingSubdomainSelect:function(){p()},analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0})),Object(u.createElement)("div",{className:"nux-launch-step__footer"},Object(u.createElement)(V,{sticky:!0},Object(u.createElement)(G,{onClick:function(){null==t||t()}}),Object(u.createElement)(Y,{onClick:g,disabled:!s}))))}),tt=n(21),nt="free_plan",rt="personal-bundle",it="value_bundle",ot="business-bundle",at="ecommerce-bundle",st="automattic/onboard/plans",ct=it,lt={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}},ut=n(37),dt=n.n(ut);qe={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},Ve=["(","?"],Ge={")":["("],":":["?","?:"]},Ye=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var pt={"!":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 mt(e){var t=function(e){for(var t,n,r,i,o=[],a=[];t=e.match(Ye);){for(n=t[0],(r=e.substr(0,t.index).trim())&&o.push(r);i=a.pop();){if(Ge[n]){if(Ge[n][0]===i){n=Ge[n][1]||n;break}}else if(Ve.indexOf(i)>=0||qe[i]<qe[n]){a.push(i);break}o.push(i)}Ge[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,s,c=[];for(n=0;n<e.length;n++){if(a=e[n],o=pt[a]){for(r=o.length,i=Array(r);r--;)i[r]=c.pop();try{s=o.apply(null,i)}catch(l){return l}}else s=t.hasOwnProperty(a)?t[a]:+a;c.push(s)}return c[0]}(t,e)}}var ft={contextDelimiter:"",onMissingKey:null};function ht(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},ft)this.options[n]=void 0!==t&&n in t?t[n]:ft[n]}ht.prototype.getPluralForm=function(e,t){var n,r,i,o,a=this.pluralForms[e];return a||("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),o=mt(r),i=function(e){return+o({n:e})}),a=this.pluralForms[e]=i),a(t)},ht.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,s;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[o]?s[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)};var bt=n(38),gt=n.n(bt),vt=n(39),yt=n.n(vt),xt=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function _t(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(xt,(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:"")}))}
34
  /*
35
  * Exposes number format capability
36
  *
37
  * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
38
  * @license See CREDITS.md
39
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
40
+ */function wt(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,s=void 0===n?".":n,c="";return(c=(o?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&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(c[1]||"").length<o&&(c[1]=c[1]||"",c[1]+=new Array(o-c[1].length+1).join("0")),c.join(s)}var Ot=ue()("i18n-calypso"),Et="number_format_decimals",kt="number_format_thousands_sep",St="messages",Ct=[function(e){return e}],jt={};function Nt(){Ft.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function Pt(e){return Array.prototype.slice.call(e)}function At(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&Nt("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",Pt(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&Nt("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",Pt(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 Lt(e,t){return e.dcnpgettext(St,t.context,t.original,t.plural,t.count)}function Tt(e,t){for(var n=Ct.length-1;n>=0;n--){var r=Ct[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return Lt(e.state.tannin,r)}return null}function Ft(){if(!(this instanceof Ft))return new Ft;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:gt()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new pe.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Ft.throwErrors=!1,Ft.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},Ft.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},Ft.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},Ft.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 wt(e,n,r,i)},Ft.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Ft.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!==jt[n+e])return jt[n+e];var r=yt()().update(e).digest("hex");return jt[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)Ct.push(a(!1));else{var s=i.substr(5).indexOf("-");if(s<0){var c=Number(i.substr(5));Ct.push(a(c))}else for(var l=Number(i.substr(5,s)),u=Number(i.substr(6+s)),d=l;d<=u;d++)Ct.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.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 ht(P()({},St,this.state.locale)),this.state.numberFormatSettings.decimal_point=Lt(this.state.tannin,At([Et])),this.state.numberFormatSettings.thousands_sep=Lt(this.state.tannin,At([kt])),this.state.numberFormatSettings.decimal_point===Et&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===kt&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},Ft.prototype.getLocale=function(){return this.state.locale},Ft.prototype.getLocaleSlug=function(){return this.state.localeSlug},Ft.prototype.isRtl=function(){return"rtl"===this.state.textDirection},Ft.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},Ft.prototype.hasTranslation=function(){return!!Tt(this,At(arguments))},Ft.prototype.translate=function(){var e=At(arguments),t=Tt(this,e);if(t||(t=Lt(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=_t.apply(void 0,Z()(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=dt()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},Ft.prototype.reRenderTranslations=function(){Ot("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},Ft.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},Ft.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var Mt=Ft,Dt=n(40),Rt=n.n(Dt),Bt=n(41),It=n.n(Bt),zt=n(22),Ut=n.n(zt),Ht=n(42),$t=n.n(Ht),qt=n(43),Vt=n.n(qt),Gt=n(23),Yt=n.n(Gt),Wt=n(44);var Kt,Xt,Zt,Jt,Qt=new Mt,en=(Qt.numberFormat.bind(Qt),Qt.translate.bind(Qt)),tn=(Qt.configure.bind(Qt),Qt.setLocale.bind(Qt),Qt.getLocale.bind(Qt),Qt.getLocaleSlug.bind(Qt),Qt.addTranslations.bind(Qt),Qt.reRenderTranslations.bind(Qt),Qt.registerComponentUpdateHook.bind(Qt),Qt.registerTranslateHook.bind(Qt),Qt.state,Qt.stateObserver,Qt.on.bind(Qt),Qt.off.bind(Qt),Qt.emit.bind(Qt),Xt={numberFormat:(Kt=Qt).numberFormat.bind(Kt),translate:Kt.translate.bind(Kt)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Qt),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 Object(Wt.useSubscription)(t)}var r=Object(U.createHigherOrderComponent)((function(e){return Object(d.forwardRef)((function(t,r){var i=n();return p.a.createElement(e,Yt()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Qt)),nn=(tn.useRtl,tn.withRtl,["Remove WordPress.com ads","Email & basic live chat support","Collect recurring payments","Collect one-time payments","Earn ad revenue","Premium themes","Upload videos","Google Analytics support","Business features (incl. SEO)","Upload themes","Install plugins","Accept payments in 60+ countries"]),rn=((Zt={})[nt]={title:en("Free"),description:en("Create a beautiful, simple website in minutes"),productId:1,storeSlug:nt,pathSlug:"beginner",features:["3 GB storage space"],isFree:!0},Zt[rt]={title:en("Personal"),description:en("Best for personal use"),productId:1009,storeSlug:rt,pathSlug:"personal",features:B(["6 GB storage space"],nn.slice(0,3))},Zt[it]={title:en("Premium"),description:en("Best for freelancers"),productId:1003,storeSlug:it,pathSlug:"premium",features:B(["13 GB storage space"],nn.slice(0,8)),isPopular:!0},Zt[ot]={title:en("Business"),description:en("Best for small businesses"),productId:1008,storeSlug:ot,pathSlug:"business",features:B(["200 GB storage space"],nn.slice(0,11))},Zt[at]={title:en("eCommerce"),description:en("Best for online stores"),productId:1011,storeSlug:at,pathSlug:"ecommerce",features:B(["200 GB storage space"],nn)},Zt),on=Object.keys(rn).map((function(e){return rn[e].pathSlug})),an=[{id:"general",name:null,features:[{name:"Free domain for One Year",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Email & basic live chat support",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"24/7 Priority live chat support",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Preinstalled SSL security",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Jetpack essential features",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Storage",type:"text",data:["3 GB","6 GB","13 GB","200 GB","200 GB"]},{name:"Dozens of free designs",type:"checkbox",data:[!0,!0,!0,!0,!0]},{name:"Remove WordPress.com ads",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Unlimited premium themes",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Advanced design customization",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Get personalized help",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Install plugins",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Upload themes",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Remove WordPress.com branding",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Automated backup & one-click rewind",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"SFTP and database access",type:"checkbox",data:[!1,!1,!1,!0,!0]}]},{id:"commerce",name:"Commerce",features:[{name:"Sell subscriptions (recurring payments)",type:"checkbox",data:[!1,!0,!0,!0,!0]},{name:"Sell single items (simple payments)",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Accept payments in 60+ countries",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Integrations with top shipping carriers",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Sell anything (products and/or services)",type:"checkbox",data:[!1,!1,!1,!1,!0]},{name:"Premium customizable starter themes",type:"checkbox",data:[!1,!1,!1,!1,!0]}]},{id:"marketing",name:"Marketing",features:[{name:"WordAds",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"Advanced social media tools",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"VideoPress support",type:"checkbox",data:[!1,!1,!0,!0,!0]},{name:"SEO tools",type:"checkbox",data:[!1,!1,!1,!0,!0]},{name:"Commerce marketing tools",type:"checkbox",data:[!1,!1,!1,!1,!0]}]}],sn=Object.keys(rn),cn={supportedPlanSlugs:sn,prices:(Jt={},Jt[nt]="",Jt[rt]="",Jt[it]="",Jt[ot]="",Jt[at]="",Jt)},ln=function(e,t){switch(void 0===e&&(e=cn),t.type){case"SET_PRICES":return F(F({},e),{prices:t.prices});default:return e}},un=function(e){return{type:"SET_PRICES",prices:e}},dn=function(){return{type:"RESET_PLAN"}};function pn(e){return rn[e]}var mn=function(e,t){return pn(t)},fn=function(){return pn(ct)},hn=function(e){return e.supportedPlanSlugs.map(pn)},bn=function(e,t){return t&&hn(e).find((function(e){return(null==e?void 0:e.pathSlug)===t}))},gn=function(){return an},vn=function(e){return hn(e).map((function(e){return null==e?void 0:e.pathSlug}))},yn=function(e){return e.prices},xn=function(e,t){return t===at},_n=function(e,t){return t===nt};function wn(){var e,t,n;return D(this,(function(r){switch(r.label){case 0:return[4,Object(tt.apiFetch)({global:!0,url:"https://public-api.wordpress.com/rest/v1.5/plans",mode:"cors",credentials:"omit"})];case 1:return e=r.sent(),t=e.filter((function(e){return-1!==sn.indexOf(e.product_slug)})),n=t.reduce((function(e,t){return e[t.product_slug]=function(e){var t=lt[e.currency_code],n=e.raw_price/12;return Number.isInteger(n)||(n=n.toFixed(t.decimal)),"AMOUNT_THEN_SYMBOL"===t.format?""+n+t.symbol:""+t.symbol+n}(t),e}),{}),[4,un(n)];case 2:return r.sent(),[2]}}))}var On=!1;function En(){return On||(On=!0,Object(m.registerStore)(st,{resolvers:o,actions:r,controls:tt.controls,reducer:ln,selectors:i})),st}var kn=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),Sn=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.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"})),Cn=(n(79),p.a.createElement(se,{icon:kn,size:17})),jn=p.a.createElement(se,{icon:Sn,size:17}),Nn=p.a.createElement("svg",{width:"8",viewBox:"0 0 8 4"},p.a.createElement("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var Pn=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,s=e.onPickDomain,c=e.disabledLabel,l=e.multiColumn,d=void 0!==l&&l,m=function(e,t,n){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:Cn,domainMessage:p.a.createElement(p.a.Fragment,null,n("Pick a free domain (1 year)")," ",Nn)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:Cn,domainMessage:p.a.createElement(p.a.Fragment,null,n("Pick a free domain (1 year)")," ",Nn)}},PAID_DOMAIN:{FREE_PLAN:{className:"plans-feature-list__domain-summary is-free",icon:jn,domainMessage:p.a.createElement("span",null,Object(u.createInterpolateElement)(n("<url /> is not included"),{url:p.a.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:Cn,domainMessage:p.a.createElement("span",null,Object(u.createInterpolateElement)(n("<url /> is included"),{url:p.a.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,$().__);return p.a.createElement("div",{className:"plans-feature-list",hidden:!a},p.a.createElement("ul",{className:j()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":d})},c?p.a.createElement("li",{className:"plans-feature-list__item plans-feature-list__item--disabled-message"},jn," ",p.a.createElement("span",null,c)):m&&p.a.createElement("li",{className:"plans-feature-list__item"},p.a.createElement(y.Button,{className:m.className,onClick:s,isLink:!0},m.icon,m.domainMessage)),t.map((function(e,t){return p.a.createElement("li",{key:t,className:"plans-feature-list__item"},Cn," ",p.a.createElement("span",null,e))}))))},An=d.createElement("svg",{width:"8",viewBox:"0 0 8 4"},d.createElement("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),Ln=function(e){var t=e.slug,n=e.name,r=e.price,i=e.isPopular,o=void 0!==i&&i,a=e.isFree,s=void 0!==a&&a,c=e.domain,l=e.features,u=e.onSelect,p=e.onPickDomainClick,m=e.onToggleExpandAll,f=e.allPlansExpanded,h=e.disabledLabel,b=$().__,g=d.useState(!1),v=g[0],x=g[1],_=Object(U.useViewportMatch)("mobile",">=");d.useEffect((function(){x(f)}),[f]);var w=f||_||o||v;return d.createElement("div",{className:j()("plan-item",{"is-popular":o,"is-open":w})},o&&d.createElement("span",{className:"plan-item__badge"},b("Popular")),d.createElement("div",{className:j()("plan-item__viewport",{"is-popular":o})},d.createElement("div",{className:"plan-item__details"},d.createElement("div",{tabIndex:0,role:"button",onClick:function(){return x((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&x((function(e){return!e}))},className:"plan-item__summary"},d.createElement("div",{className:"plan-item__heading"},d.createElement("div",{className:"plan-item__name"},n)),d.createElement("div",{className:"plan-item__price"},d.createElement("div",{className:j()("plan-item__price-amount",{"is-loading":!r})},r||" ")),!w&&d.createElement("div",{className:"plan-item__dropdown-chevron"},An)),d.createElement("div",{hidden:!w},d.createElement("div",{className:"plan-item__price-note"},b(s?"free forever":"per month, billed yearly")),d.createElement("div",{className:"plan-item__actions"},d.createElement(y.Button,{className:"plan-item__select-button",onClick:function(){u(t)},isPrimary:!0,disabled:!!h},d.createElement("span",null,b("Choose")))),d.createElement(Pn,{features:l,domain:c,isFree:s,isOpen:w,onPickDomain:p,disabledLabel:h})))),o&&!_&&d.createElement(y.Button,{onClick:m,className:"plan-item__mobile-expand-all-plans",isLink:!0},b(f?"Collapse all plans":"Expand all plans")))},Tn="automattic/onboard/plans",Fn=(n(80),function(e){var t=e.selectedPlanSlug,n=e.onPlanSelect,r=e.onPickDomainClick,i=e.currentDomain,o=e.disabledPlans,a=Object(m.useSelect)((function(e){return e(Tn).getSupportedPlans()})),s=Object(m.useSelect)((function(e){return e(Tn).getPrices()})),c=Object(d.useState)(!1),l=c[0],u=c[1];return p.a.createElement("div",{className:"plans-table"},a.map((function(e){var a;return e&&p.a.createElement(Ln,{allPlansExpanded:l,key:e.storeSlug,slug:e.storeSlug,domain:i,features:null!==(a=e.features)&&void 0!==a?a:[],isPopular:e.isPopular,isFree:e.isFree,price:s[e.storeSlug],name:null==e?void 0:e.title.toString(),isSelected:e.storeSlug===t,onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return u((function(e){return!e}))},disabledLabel:null==o?void 0:o[e.storeSlug]})})))}),Mn=(n(78),p.a.createElement("svg",{width:"8",viewBox:"0 0 8 4"},p.a.createElement("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}))),Dn=function(e){var t=e.slug,n=e.name,r=e.description,i=e.price,o=e.features,a=e.domain,s=e.badge,c=e.isFree,l=void 0!==c&&c,u=e.isOpen,d=void 0!==u&&u,m=e.isPrimary,f=void 0!==m&&m,h=e.onSelect,b=e.onPickDomainClick,g=e.onToggle,v=e.disabledLabel,y=$().__,x=function(){!v&&(null==g||g(t,!d))};return p.a.createElement("div",{className:j()("plans-accordion-item",{"is-open":d,"is-primary":f,"has-badge":!!s,"is-disabled":!!v})},s&&p.a.createElement("div",{className:"plans-accordion-item__badge"},p.a.createElement("span",null,s)),p.a.createElement("div",{className:"plans-accordion-item__viewport"},p.a.createElement("div",{className:"plans-accordion-item__details"},p.a.createElement("div",{tabIndex:0,role:"button",onClick:x,onKeyDown:function(e){return 32===e.keyCode&&x()},className:"plans-accordion-item__header"},p.a.createElement("div",{className:"plans-accordion-item__heading"},p.a.createElement("div",{className:"plans-accordion-item__name"},n),p.a.createElement("div",{className:"plans-accordion-item__description"},r)),p.a.createElement("div",{className:"plans-accordion-item__price"},p.a.createElement("div",{className:j()("plans-accordion-item__price-amount",{"is-loading":!i})},i||"  ",i&&p.a.createElement("span",null,y("/mo"))),p.a.createElement("div",{className:"plans-accordion-item__price-note"},y(l?"free forever":"billed annually"))),p.a.createElement("div",{className:"plans-accordion-item__disabled-label"},v),!d&&p.a.createElement("div",{className:"plans-accordion-item__dropdown-chevron"},Mn)),p.a.createElement("div",{className:"plans-accordion-item__actions",hidden:!d},p.a.createElement(Y,{onClick:function(){h(t)}},y("Select"))),p.a.createElement(Pn,{features:o,domain:a,isFree:l,isOpen:d,onPickDomain:b,multiColumn:!0}))))},Rn=(n(77),p.a.createElement(y.SVG,{viewBox:"0 0 24 24"},p.a.createElement(y.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"}))),Bn=function(e){var t,n=e.selectedFeatures,r=void 0===n?[]:n,i=e.selectedPlanSlug,o=e.onPlanSelect,a=e.onPickDomainClick,s=e.currentDomain,c=e.disabledPlans,l=$().__,u=Object(m.useSelect)((function(e){return e(Tn).getSupportedPlans()})),f=Object(m.useSelect)((function(e){return e(Tn).getPrices()})),h=Object(m.useSelect)((function(e){return e(Tn).getDefaultPaidPlan()})),b=Object(m.useSelect)((function(e){return e("automattic/wpcom-features").getRecommendedPlanSlug(r)})),g=Object(m.useSelect)((function(e){return e(Tn).getPlanBySlug(b)})),v=g||h,x=l(g?"Recommended for you":"Popular"),_=u.filter((function(e){return e.storeSlug!==v.storeSlug})),w=[v.storeSlug],O=Object(d.useState)(w),E=O[0],k=O[1],S=E.length>=u.length,C=function(e,t){k(t?I(E,[e]):E.filter((function(t){return t!==e})))};return p.a.createElement("div",{className:"plans-accordion"},p.a.createElement("div",{className:"plans-accordion__plan-item-group"},v&&p.a.createElement(p.a.Fragment,null,g&&p.a.createElement("div",{className:"plans-accordion__recommend-hint"},p.a.createElement(se,{icon:Rn,size:16}),p.a.createElement("span",null,l("Based on the features you selected."))),p.a.createElement(Dn,{key:v.storeSlug,slug:v.storeSlug,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:[],price:f[v.storeSlug],domain:s,badge:x,isFree:v.isFree,isOpen:!0,isPrimary:!0,isSelected:v.storeSlug===i,onSelect:o,onPickDomainClick:a}))),p.a.createElement("div",{className:"plans-accordion__actions"},p.a.createElement(y.Button,{className:"plans-accordion__toggle-all-button",onClick:function(){k(S?w:u.map((function(e){return e.storeSlug})))},isLink:!0},l(S?"Collapse all plans":"Show all plans"))),p.a.createElement("div",{className:"plans-accordion__plan-item-group"},_.map((function(e){var t;return p.a.createElement(Dn,{key:e.storeSlug,slug:e.storeSlug,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:[],price:f[e.storeSlug],domain:s,isFree:e.isFree,isOpen:E.indexOf(e.storeSlug)>-1&&!(null==c?void 0:c[e.storeSlug]),isSelected:e.storeSlug===i,onSelect:o,onPickDomainClick:a,onToggle:C,disabledLabel:null==c?void 0:c[e.storeSlug]})}))))},In=(n(81),p.a.createElement(se,{icon:kn,size:25})),zn=function(e){var t=e.onSelect,n=Object(m.useSelect)((function(e){return e(Tn).getPlansDetails()})),r=Object(m.useSelect)((function(e){return e(Tn).getPrices()})),i=Object(m.useSelect)((function(e){return e(Tn).getSupportedPlans()})),o=$().__;return p.a.createElement("div",{className:"plans-details"},p.a.createElement("table",{className:"plans-details__table"},p.a.createElement("thead",null,p.a.createElement("tr",{className:"plans-details__header-row"},p.a.createElement("th",null,o("Feature")),i.map((function(e){return p.a.createElement("th",{key:e.storeSlug},e.title)})))),n.map((function(e){return p.a.createElement("tbody",{key:e.id},e.name&&p.a.createElement("tr",{className:"plans-details__header-row"},p.a.createElement("th",{colSpan:6},e.name)),e.features.map((function(e,t){return p.a.createElement("tr",{className:"plans-details__feature-row",key:t},p.a.createElement("th",null,e.name),e.data.map((function(t,n){return p.a.createElement("td",{key:n},"checkbox"===e.type&&(t?p.a.createElement(p.a.Fragment,null,p.a.createElement("span",{className:"hidden"},o("Available")),In):p.a.createElement(p.a.Fragment,null,p.a.createElement("span",{className:"hidden"},o("Unavailable")," "))),"text"===e.type&&t)})))})))})),p.a.createElement("tbody",null,p.a.createElement("tr",{className:"plans-details__header-row"},p.a.createElement("th",{colSpan:6},o("Sign up"))),p.a.createElement("tr",{className:"plans-details__feature-row",key:"price"},p.a.createElement("th",null,o("Monthly subscription (billed yearly)")),i.map((function(e){return p.a.createElement("td",{key:e.storeSlug},r[e.storeSlug])}))),p.a.createElement("tr",{className:"plans-details__feature-row",key:"cta"},p.a.createElement("th",null),i.map((function(e){return p.a.createElement("td",{key:e.storeSlug},p.a.createElement(y.Button,{className:"plans-details__select-button",onClick:function(){t(e.storeSlug)},isPrimary:!0},p.a.createElement("span",null,o("Select"))))}))))))},Un=(n(76),ue()("plans-grid")),Hn=function(e){var t,n,r=e.header,i=e.selectedFeatures,o=e.currentPlan,a=e.currentDomain,s=e.onPlanSelect,c=e.onPickDomainClick,l=e.disabledPlans,u=e.isExperimental,p=$().__;return u&&Un("PlansGrid experimental version is active"),d.createElement("div",{className:"plans-grid"},r&&d.createElement("div",{className:"plans-grid__header"},r),d.createElement("div",{className:"plans-grid__table"},d.createElement("div",{className:"plans-grid__table-container"},u?d.createElement(Bn,{selectedFeatures:i,selectedPlanSlug:null!==(t=null==o?void 0:o.storeSlug)&&void 0!==t?t:"",onPlanSelect:s,currentDomain:a,onPickDomainClick:c,disabledPlans:l}):d.createElement(Fn,{selectedPlanSlug:null!==(n=null==o?void 0:o.storeSlug)&&void 0!==n?n:"",onPlanSelect:s,currentDomain:a,onPickDomainClick:c,disabledPlans:l}))),d.createElement("div",{className:"plans-grid__details"},d.createElement("div",{className:"plans-grid__details-heading"},d.createElement(A,null,p("Detailed comparison"))),d.createElement("div",{className:"plans-grid__details-container"},d.createElement(zn,{onSelect:s}))))},$n=(n(75),function(e){var t=e.onPrevStep,n=e.onNextStep,r=Object(m.useSelect)((function(e){return e(c).getSelectedDomain()})),i=Object(m.useSelect)((function(e){return e(c).getLaunchStep()})),o=Object(m.useSelect)((function(e){return e(c).getState()})).isExperimental,s=Object(m.useDispatch)(c),l=s.updatePlan,d=s.setStep,p=K().selectedFeatures,f=r&&!r.is_free;return Object(u.createElement)(W,null,Object(u.createElement)("div",{className:"nux-launch-step__header"},Object(u.createElement)("div",null,Object(u.createElement)(A,null,Object(v.__)("Select a plan","full-site-editing")),Object(u.createElement)(L,null,Object(v.__)("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")))),Object(u.createElement)("div",{className:"nux-launch-step__body"},Object(u.createElement)(Hn,{currentDomain:r,onPlanSelect:function(e){l(e),null==n||n()},onPickDomainClick:function(){d(i.Domain)},disabledPlans:f?P()({},a.PLAN_FREE,Object(v.__)("Not available with custom domain","full-site-editing")):void 0,isExperimental:o,selectedFeatures:p})),Object(u.createElement)("div",{className:"nux-launch-step__footer"},Object(u.createElement)(V,{sticky:!0},Object(u.createElement)(G,{onClick:function(){null==t||t()}}))))}),qn=n(45),Vn=n.n(qn);var Gn=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 Yn=function(e){function t(e,r,c,l,p){for(var m,f,h,b,x,w=0,O=0,E=0,k=0,S=0,L=0,F=h=m=0,D=0,R=0,B=0,I=0,z=c.length,U=z-1,H="",$="",q="",V="";D<z;){if(f=c.charCodeAt(D),D===U&&0!==O+k+E+w&&(0!==O&&(f=47===O?10:47),k=E=w=0,z++,U++),0===O+k+E+w){if(D===U&&(0<R&&(H=H.replace(d,"")),0<H.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:H+=c.charAt(D)}f=59}switch(f){case 123:for(m=(H=H.trim()).charCodeAt(0),h=1,I=++D;D<z;){switch(f=c.charCodeAt(D)){case 123:h++;break;case 125:h--;break;case 47:switch(f=c.charCodeAt(D+1)){case 42:case 47:e:{for(F=D+1;F<U;++F)switch(c.charCodeAt(F)){case 47:if(42===f&&42===c.charCodeAt(F-1)&&D+2!==F){D=F+1;break e}break;case 10:if(47===f){D=F+1;break e}}D=F}}break;case 91:f++;case 40:f++;case 34:case 39:for(;D++<U&&c.charCodeAt(D)!==f;);}if(0===h)break;D++}switch(h=c.substring(I,D),0===m&&(m=(H=H.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<R&&(H=H.replace(d,"")),f=H.charCodeAt(1)){case 100:case 109:case 115:case 45:R=r;break;default:R=A}if(I=(h=t(r,R,h,f,p+1)).length,0<T&&(x=s(3,h,R=n(A,H,B),r,j,C,I,f,p,l),H=R.join(""),void 0!==x&&0===(I=(h=x.trim()).length)&&(f=0,h="")),0<I)switch(f){case 115:H=H.replace(_,a);case 100:case 109:case 45:h=H+"{"+h+"}";break;case 107:h=(H=H.replace(g,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=H+h,112===l&&($+=h,h="")}else h="";break;default:h=t(r,n(r,H,B),h,l,p+1)}q+=h,h=B=R=F=m=0,H="",f=c.charCodeAt(++D);break;case 125:case 59:if(1<(I=(H=(0<R?H.replace(d,""):H).trim()).length))switch(0===F&&(m=H.charCodeAt(0),45===m||96<m&&123>m)&&(I=(H=H.replace(" ",":")).length),0<T&&void 0!==(x=s(1,H,r,e,j,C,$.length,l,p,l))&&0===(I=(H=x.trim()).length)&&(H="\0\0"),m=H.charCodeAt(0),f=H.charCodeAt(1),m){case 0:break;case 64:if(105===f||99===f){V+=H+c.charAt(D);break}default:58!==H.charCodeAt(I-1)&&($+=i(H,m,f,H.charCodeAt(2)))}B=R=F=m=0,H="",f=c.charCodeAt(++D)}}switch(f){case 13:case 10:47===O?O=0:0===1+m&&107!==l&&0<H.length&&(R=1,H+="\0"),0<T*M&&s(0,H,r,e,j,C,$.length,l,p,l),C=1,j++;break;case 59:case 125:if(0===O+k+E+w){C++;break}default:switch(C++,b=c.charAt(D),f){case 9:case 32:if(0===k+w+O)switch(S){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===k+O+w&&(R=B=1,b="\f"+b);break;case 108:if(0===k+O+w+N&&0<F)switch(D-F){case 2:112===S&&58===c.charCodeAt(D-3)&&(N=S);case 8:111===L&&(N=L)}break;case 58:0===k+O+w&&(F=D);break;case 44:0===O+E+k+w&&(R=1,b+="\r");break;case 34:case 39:0===O&&(k=k===f?0:0===k?f:k);break;case 91:0===k+O+E&&w++;break;case 93:0===k+O+E&&w--;break;case 41:0===k+O+w&&E--;break;case 40:if(0===k+O+w){if(0===m)switch(2*S+3*L){case 533:break;default:m=1}E++}break;case 64:0===O+E+k+w+F+h&&(h=1);break;case 42:case 47:if(!(0<k+w+E))switch(O){case 0:switch(2*f+3*c.charCodeAt(D+1)){case 235:O=47;break;case 220:I=D,O=42}break;case 42:47===f&&42===S&&I+2!==D&&(33===c.charCodeAt(I+2)&&($+=c.substring(I,D+1)),b="",O=0)}}0===O&&(H+=b)}L=S,S=f,D++}if(0<(I=$.length)){if(R=r,0<T&&(void 0!==(x=s(2,$,R,e,j,C,I,l,p,l))&&0===($=x).length))return V+$+q;if($=R.join(",")+"{"+$+"}",0!=P*N){switch(2!==P||o($,2)||(N=0),N){case 111:$=$.replace(y,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}N=0}}return V+$+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 s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[c++]=r(e[l]+" ",i[s],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(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===P||2===P&&o(c,1)?"-webkit-"+c+c:c}if(0===P||2===P&&!o(a,1))return a;switch(s){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(S,"$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"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return m.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(x,"tb");break;case 232:c=a.replace(x,"tb-rl");break;case 220:c=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(O,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(O,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.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),F(2!==t?r:r.replace(E,"$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(w," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,c,u){for(var d,p=0,m=t;p<T;++p)switch(d=L[p].call(l,e,m,n,r,i,o,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function c(e){return void 0!==(e=e.prefix)&&(F=null,e?"function"!=typeof e?P=1:(P=2,F=e):P=0),c}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<T){var i=s(-1,n,r,r,j,C,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(A,r,n,0,0);return 0<T&&(void 0!==(i=s(-2,o,r,r,j,C,o.length,0,0,0))&&(o=i)),"",N=0,C=j=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,m=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,O=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,C=1,j=1,N=0,P=1,A=[],L=[],T=0,F=null,M=0;return l.use=function e(t){switch(t){case void 0:case null:T=L.length=0;break;default:if("function"==typeof t)L[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else M=0|!!t}return e},l.set=c,void 0!==e&&c(e),l},Wn=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}},Kn="/*|*/";function Xn(e){e&&Zn.current.insert(e+"}")}var Zn={current:null},Jn=function(e,t,n,r,i,o,a,s,c,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Zn.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+Kn;break;case 3:switch(s){case 102:case 112:return Zn.current.insert(n[0]+t),"";default:return t+(0===l?Kn:"")}case-2:t.split("/*|*/}").forEach(Xn)}},Qn=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Yn(t);var i,o={};i=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(Jn),a=function(e,t,n,i){var o=t.name;Zn.current=n,r(e,t.styles),i&&(c.inserted[o]=!0)};var c={key:n,sheet:new Gn({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:a};return c};function er(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var tr=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)}};var nr=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)},rr={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 ir=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},or=/[A-Z]|^ms/g,ar=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sr=function(e){return 45===e.charCodeAt(1)},cr=function(e){return null!=e&&"boolean"!=typeof e},lr=ir((function(e){return sr(e)?e:e.replace(or,"-$&").toLowerCase()})),ur=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ar,(function(e,t,n){return pr={name:t,styles:n,next:pr},t}))}return 1===rr[e]||sr(e)||"number"!=typeof t||0===t?t:t+"px"};function dr(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 pr={name:n.name,styles:n.styles,next:pr},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)pr={name:i.name,styles:i.styles,next:pr},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+=dr(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]+"}":cr(a)&&(r+=lr(o)+":"+ur(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=dr(e,t,a,!1);switch(o){case"animation":case"animationName":r+=lr(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var c=0;c<a.length;c++)cr(a[c])&&(r+=lr(o)+":"+ur(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=pr,a=n(e);return pr=o,dr(e,t,a,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var pr,mr=/label:\s*([^\s;\n{]+)\s*;/g;var fr=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="";pr=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=dr(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=dr(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);mr.lastIndex=0;for(var s,c="";null!==(s=mr.exec(i));)c+="-"+s[1];return{name:nr(i)+c,styles:i,next:pr}};var hr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fr(t)},br=Object(d.createContext)("undefined"!=typeof HTMLElement?Qn():null),gr=Object(d.createContext)({}),vr=(br.Provider,function(e){return Object(d.forwardRef)((function(t,n){return Object(d.createElement)(br.Consumer,null,(function(r){return e(t,r,n)}))}))});Object.prototype.hasOwnProperty;d.Component;var yr=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 s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function xr(e,t,n){var r=[],i=er(e,r,n);return r.length<2?n:i+t(r)}vr((function(e,t){return Object(d.createElement)(gr.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=fr(n,t.registered);return tr(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 xr(t.registered,r,yr(n))},theme:n},o=e.children(i);return!0,o}))})),n(46);function _r(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 wr=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?_r(n,!0).forEach((function(t){P()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},Or=Wn((function(e){return Wn((function(t){return wr(e,t)}))})),Er=function(e){return Object(d.createElement)(gr.Consumer,null,(function(t){return e.theme!==t&&(t=Or(t)(e.theme)),Object(d.createElement)(gr.Provider,{value:t},e.children)}))};var kr=Object(u.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(E.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),Sr="#F6F7F7",Cr="#DCDCDE",jr="#A7AAAD",Nr="#8E9196",Pr="#646970",Ar="#2C3338",Lr="#008A20",Tr="#FFF",Fr="#000",Mr={colors:{background:Sr,surface:Tr,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#006088",highlightBorder:"#002C40",highlightOver:"#004E6E",success:Lr,discount:Lr,disabledPaymentButtons:Sr,disabledPaymentButtonsAccent:Cr,disabledButtons:jr,borderColor:jr,borderColorLight:Cr,borderColorDark:Pr,upcomingStepBackground:Cr,textColor:Ar,textColorLight:Pr,textColorDark:Fr,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:Fr,applePayButtonRollOverColor:Ar,noticeBackground:Ar,defaultNoticeIconBackground:Nr,textColorOnDarkBackground:Tr,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:Sr,placeHolderTextColor:Nr},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"}},Dr=n(3),Rr=n.n(Dr);function Br(e){return e.filter((function(e){return e})).join(" ")}var Ir=/^((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)-.*))$/,zr=ir((function(e){return Ir.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ur=function(e){return"theme"!==e&&"innerRef"!==e},Hr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?zr:Ur};function $r(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 qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(n,!0).forEach((function(t){P()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vr=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,s=a&&t.__emotion_base||t;"function"!=typeof i&&a&&(i=t.__emotion_forwardProp);var c=i||Hr(s),l=!c("as");return function(){var u=arguments,p=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)p.push.apply(p,u);else{0,p.push(u[0][0]);for(var m=u.length,f=1;f<m;f++)p.push(u[f],u[0][f])}var h=vr((function(e,t,n){return Object(d.createElement)(gr.Consumer,null,(function(r){var a=l&&e.as||s,u="",m=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=r}"string"==typeof e.className?u=er(t.registered,m,e.className):null!=e.className&&(u=e.className+" ");var b=fr(p.concat(m),t.registered,f);tr(t,b,"string"==typeof a);u+=t.key+"-"+b.name,void 0!==o&&(u+=" "+o);var g=l&&void 0===i?Hr(a):c,v={};for(var y in e)l&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=u,v.ref=n||e.innerRef,Object(d.createElement)(a,v)}))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=p,h.__emotion_forwardProp=i,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,void 0!==r?qr({},n||{},{},r):n).apply(void 0,p)},h}}.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){Vr[e]=Vr(e)}));var Gr=Vr,Yr=ue()("composite-checkout:checkout-error-boundary"),Wr=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasError:!1,currentError:null},n}return function(e,t){function n(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.getDerivedStateFromError=function(e){return{currentError:e,hasError:!0}},t.prototype.componentDidCatch=function(e,t){if(this.props.onError){var n=e.message+"; Stack: "+e.stack+"; Component Stack: "+t.componentStack;Yr("reporting the error",n),this.props.onError(n)}},t.prototype.render=function(){return this.state.hasError?p.a.createElement(Kr,{errorMessage:this.props.errorMessage}):this.props.children},t}(p.a.Component);function Kr(e){var t=e.errorMessage;return p.a.createElement(Qr,null,t)}var Xr,Zr,Jr,Qr=Gr.div(Xr||(Xr=z(["\n\tmargin: 2em;\n\ttext-align: center;\n"],["\n\tmargin: 2em;\n\ttext-align: center;\n"])));!function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(Zr||(Zr={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(Jr||(Jr={}));var ei={transactionStatus:Jr.NOT_STARTED,previousTransactionStatus:Jr.NOT_STARTED,transactionError:null,transactionLastResponse:null,transactionRedirectUrl:null,resetTransaction:ni,setTransactionError:ni,setTransactionComplete:ni,setTransactionPending:ni,setTransactionRedirecting:ni},ti={allPaymentMethods:[],paymentMethodId:null,setPaymentMethodId:ni,showErrorMessage:ni,showInfoMessage:ni,showSuccessMessage:ni,onEvent:ni,formStatus:Zr.LOADING,setFormStatus:ni,transactionStatusManager:ei,paymentProcessors:{}};function ni(){}var ri=Object(d.createContext)(ti);ue()("composite-checkout:form-status");function ii(){var e=Object(d.useContext)(ri),t=e.formStatus,n=e.setFormStatus,r=Object(d.useMemo)((function(){return{setFormLoading:function(){return n(Zr.LOADING)},setFormReady:function(){return n(Zr.READY)},setFormSubmitting:function(){return n(Zr.SUBMITTING)},setFormValidating:function(){return n(Zr.VALIDATING)},setFormComplete:function(){return n(Zr.COMPLETE)}}}),[n]);return Object(d.useMemo)((function(){return F(F({},r),{formStatus:t})}),[t,r])}Gr.div(oi||(oi=z(["\n\tdisplay: flex;\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t}\n"],["\n\tdisplay: flex;\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp})),Gr.div(ai||(ai=z(["\n\tbackground: ",";\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tmax-width: 556px;\n\t}\n"],["\n\tbackground: ",";\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tmax-width: 556px;\n\t}\n"])),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.colors.borderColorLight})),Gr.div(si||(si=z(["\n\tdisplay: none;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tdisplay: block;\n\t\tpadding: 24px;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid ",";\n\t\tmax-width: 328px;\n\t\tbackground: ",";\n\t\tmargin-left: 24px;\n\t}\n"],["\n\tdisplay: none;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tdisplay: block;\n\t\tpadding: 24px;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid ",";\n\t\tmax-width: 328px;\n\t\tbackground: ",";\n\t\tmargin-left: 24px;\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.surface})),Gr.div(ci||(ci=z(["\n\tpadding: 24px;\n\tborder-top: 1px solid ",";\n\n\t:first-of-type {\n\t\tborder-top: 0;\n\t}\n"],["\n\tpadding: 24px;\n\tborder-top: 1px solid ",";\n\n\t:first-of-type {\n\t\tborder-top: 0;\n\t}\n"])),(function(e){return e.theme.colors.borderColorLight}));var oi,ai,si,ci,li,ui,di,pi,mi,fi=function(){var e=hr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(li||(li=z(["\n 0% {\n opacity: 1;\n }\n\n 70% {\n \topacity: 0.5;\n }\n\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 1;\n }\n\n 70% {\n \topacity: 0.5;\n }\n\n 100% {\n opacity: 1;\n }\n"])));Gr.h1(ui||(ui=z(["\n\tfont-size: 14px;\n\tcontent: '';\n\tfont-weight: ",";\n\tbackground: ",";\n\tcolor: ",";\n\twidth: 40%;\n\tmargin: 3px 0 0 35px;\n\tpadding: 0;\n\tposition: relative;\n\tanimation: "," 2s ease-in-out infinite;\n\theight: 20px;\n\n\t.rtl & {\n\t\tmargin: 3px 35px 0 0;\n\t}\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tleft: -35px;\n\t\ttop: -3px;\n\t\twidth: 27px;\n\t\theight: 27px;\n\t\tbackground: ",";\n\t\tborder-radius: 100%;\n\n\t\t.rtl & {\n\t\t\tright: -35px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n"],["\n\tfont-size: 14px;\n\tcontent: '';\n\tfont-weight: ",";\n\tbackground: ",";\n\tcolor: ",";\n\twidth: 40%;\n\tmargin: 3px 0 0 35px;\n\tpadding: 0;\n\tposition: relative;\n\tanimation: "," 2s ease-in-out infinite;\n\theight: 20px;\n\n\t.rtl & {\n\t\tmargin: 3px 35px 0 0;\n\t}\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tleft: -35px;\n\t\ttop: -3px;\n\t\twidth: 27px;\n\t\theight: 27px;\n\t\tbackground: ",";\n\t\tborder-radius: 100%;\n\n\t\t.rtl & {\n\t\t\tright: -35px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n"])),(function(e){return e.theme.weights.normal}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),fi,(function(e){return e.theme.colors.borderColorLight})),Gr.p(di||(di=z(["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 35px;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n\n\t.rtl & {\n\t\tmargin: 8px 35px 0 0;\n\t}\n"],["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 35px;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n\n\t.rtl & {\n\t\tmargin: 8px 35px 0 0;\n\t}\n"])),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),fi),Gr.p(pi||(pi=z(["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 0;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n"],["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 0;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n"])),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),fi),Gr.div(mi||(mi=z(["\n\tbackground: ",";\n\tcontent: '';\n\tborder-top: 1px solid ",";\n\tpadding: 24px;\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 3px;\n\t\tfont-size: 14px;\n\t\twidth: 100%;\n\t\theight: 40px;\n\t}\n"],["\n\tbackground: ",";\n\tcontent: '';\n\tborder-top: 1px solid ",";\n\tpadding: 24px;\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 3px;\n\t\tfont-size: 14px;\n\t\twidth: 100%;\n\t\theight: 40px;\n\t}\n"])),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}));Jr.NOT_STARTED,Jr.NOT_STARTED;var hi=ue()("composite-checkout:payment-methods");function bi(){var e=Object(d.useContext)(ri),t=e.paymentMethodId,n=e.setPaymentMethodId,r=gi();if(!n)throw new Error("usePaymentMethod can only be used inside a CheckoutProvider");if(!t)return null;var i=r.find((function(e){return e.id===t}));return i||(hi("No payment method found matching id '"+t+"' in",r),null)}function gi(){var e=Object(d.useContext)(ri).allPaymentMethods;if(!e)throw new Error("useAllPaymentMethods cannot be used outside of CheckoutProvider");return e}ue()("composite-checkout:checkout-submit-button");var vi,yi=Gr("button")(vi||(vi=z(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: ",";\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"],["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: ",";\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"])),(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"}),Oi,wi,(function(e){var t=e.disabled,n=e.buttonType,r=e.theme;if(t||"text-button"===n)return r.weights.normal;return r.weights.bold}),ki,_i,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),wi,(function(e){return e.disabled?"not-allowed":"pointer"}),_i,ki,wi,(function(e){var t=e.buttonType;return"grayscale( "+("primary"===t||"paypal"===t?"0":"100")+" ) invert( 0 );"}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),Oi,Ei,Ei,Oi),xi=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,i=e.children,o=e.fullWidth,a=M(e,["className","buttonType","isBusy","children","fullWidth"]),s=Br(I(["checkout-button"],n?["is-status-"+n]:[],r?["is-busy"]:[],t?[t]:[]));return p.a.createElement(yi,F({fullWidth:o,buttonType:n,className:s},a),i)};function _i(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 wi(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 Oi(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 Ei(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 ki(e){return"text-button"===e.buttonType?"underline":"none"}function Si(e){var t=e.className,n=e.id;return p.a.createElement(ji,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},p.a.createElement("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},p.a.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"})),p.a.createElement("g",{mask:"url(#"+n+"-check-icon-mask)"},p.a.createElement("rect",{width:"20",height:"20"})))}Si.propTypes={className:Rr.a.string,id:Rr.a.string};var Ci,ji=Gr.svg(Ci||(Ci=z(["\n\tfill: #fff;\n"],["\n\tfill: #fff;\n"])));var Ni=function(e){var t=e.value,n=e.onClick,r=e.ariaLabel,i=M(e,["value","onClick","ariaLabel"]);return p.a.createElement(xi,F({onClick:n,buttonType:"primary","aria-label":r},i),t)},Pi=Object(d.createContext)({items:[],total:{id:"title",type:"total",label:"Total",amount:{currency:"USD",value:0,displayValue:"0"}}});function Ai(){var e=Object(d.useContext)(Pi),t=e.items,n=e.total;if(!t||!n)throw new Error("useLineItems can only be used inside a CheckoutProvider");return[t,n]}Gr.ul(Li||(Li=z(["\n\tmargin: 0;\n\tpadding: 0;\n"],["\n\tmargin: 0;\n\tpadding: 0;\n"]))),Gr.li(Ti||(Ti=z(["\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style-type: none;\n"],["\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style-type: none;\n"])));Gr.span(Fi||(Fi=z(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]))),Gr.span(Mi||(Mi=z(["\n\tfont-weight: ",";\n"],["\n\tfont-weight: ",";\n"])),(function(e){return e.theme.weights.bold}));Gr.div(Di||(Di=z(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tpadding: 24px 20px;\n"],["\n\tcolor: ",";\n\tfont-weight: ",";\n\tpadding: 24px 20px;\n"])),(function(e){return e.theme.colors.textColor}),(function(e){return e.theme.weights.bold})),Gr.div(Ri||(Ri=z(["\n\tborder-top: 1px solid ",";\n\tpadding: 24px 20px;\n"],["\n\tborder-top: 1px solid ",";\n\tpadding: 24px 20px;\n"])),(function(e){return e.theme.colors.borderColorLight}));var Li,Ti,Fi,Mi,Di,Ri,Bi,Ii,zi=Gr.div(Bi||(Bi=z(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"])));Gr(zi)(Ii||(Ii=z(["\n\tfont-weight: ",";\n"],["\n\tfont-weight: ",";\n"])),(function(e){return e.theme.weights.bold}));function Ui(e){var t=e.children,n=e.className;return p.a.createElement(Hi,{className:Br([n,"order-review-section"])},t)}Ui.propTypes={className:Rr.a.string};var Hi=Gr.div(qi||(qi=z(["\n\tmargin-bottom: 16px;\n"],["\n\tmargin-bottom: 16px;\n"])));function $i(e){var t=e.item,n=e.className,r="checkout-line-item-"+t.id;return p.a.createElement("div",{className:Br([n,"checkout-line-item"])},p.a.createElement("span",{id:r},t.label),p.a.createElement("span",{"aria-labelledby":r},t.amount.displayValue))}$i.propTypes={className:Rr.a.string,total:Rr.a.bool,isSummaryVisible:Rr.a.bool,item:Rr.a.shape({label:Rr.a.string,amount:Rr.a.shape({displayValue:Rr.a.string})})};var qi,Vi,Gi=Gr($i)(Vi||(Vi=z(["\n\tdisplay: flex;\n\twidth: 100%;\n\tjustify-content: space-between;\n\tfont-weight: ",";\n\tcolor: ",";\n\tfont-size: ",";\n\tpadding: ",";\n\tborder-bottom: ",";\n\n\t:first-of-type {\n\t\tpadding-top: 0;\n\t}\n"],["\n\tdisplay: flex;\n\twidth: 100%;\n\tjustify-content: space-between;\n\tfont-weight: ",";\n\tcolor: ",";\n\tfont-size: ",";\n\tpadding: ",";\n\tborder-bottom: ",";\n\n\t:first-of-type {\n\t\tpadding-top: 0;\n\t}\n"])),(function(e){var t=e.theme;return e.total?t.weights.bold:t.weights.normal}),(function(e){var t=e.theme;return e.total?t.colors.textColorDark:"inherit"}),(function(e){return e.total?"1.2em":"1em"}),(function(e){var t=e.total;return e.isSummaryVisible||t?0:"24px 0"}),(function(e){var t=e.theme,n=e.total;return e.isSummaryVisible||n?0:"1px solid "+t.colors.borderColorLight}));function Yi(e){var t=e.total,n=e.className;return p.a.createElement("div",{className:Br([n,"order-review-total"])},p.a.createElement(Gi,{total:!0,item:t}))}function Wi(e){var t=e.items,n=e.className,r=e.isSummaryVisible;return p.a.createElement("div",{className:Br([n,"order-review-line-items"])},t.map((function(e){return p.a.createElement(Gi,{isSummaryVisible:r,key:e.id,item:e})})))}function Ki(e){var t=e.className,n=Ai(),r=n[0],i=n[1];return p.a.createElement("div",{className:Br([t,"checkout-review-order"])},p.a.createElement(Ui,null,p.a.createElement(Wi,{items:r})),p.a.createElement(Ui,null,p.a.createElement(Yi,{total:i})))}function Xi(e){var t=e.checked,n=e.name,r=e.value,i=e.onChange,o=e.children,a=e.label,s=e.disabled,c=e.id,l=e.ariaLabel,u=Object(d.useState)(!1),m=u[0],f=u[1];return p.a.createElement(Zi,{disabled:s,isFocused:m,checked:t},p.a.createElement(Ji,{type:"radio",name:n,id:c,disabled:s,value:r,checked:t,onChange:i,onFocus:function(){f(!0)},onBlur:function(){f(!1)},readOnly:!i,"aria-label":l}),p.a.createElement(Qi,{checked:t,htmlFor:c,disabled:s},a),o&&p.a.createElement(io,{checked:t},o))}Wi.propTypes={className:Rr.a.string,isSummaryVisible:Rr.a.bool,items:Rr.a.arrayOf(Rr.a.shape({label:Rr.a.string,amount:Rr.a.shape({displayValue:Rr.a.string})}))},Ki.propTypes={className:Rr.a.string},Xi.propTypes={name:Rr.a.string.isRequired,id:Rr.a.string.isRequired,label:Rr.a.node.isRequired,disabled:Rr.a.bool,checked:Rr.a.bool,value:Rr.a.string.isRequired,onChange:Rr.a.func,ariaLabel:Rr.a.string.isRequired};var Zi=Gr.div(eo||(eo=z(["\n\tposition: relative;\n\tmargin-top: 8px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\toutline: ",";\n\n\t:first-of-type {\n\t\tmargin: 0;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tcontent: '';\n\t\tborder: "," solid ",";\n\t\tborder-radius: 3px;\n\t\tbox-sizing: border-box;\n\n\t\t.rtl & {\n\t\t\tright: 0;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t:hover::before {\n\t\tborder: 3px solid ",";\n\t}\n\n\t.payment-logos {\n\t\tdisplay: none;\n\n\t\t@media ( "," ) {\n\t\t\tdisplay: block;\n\t\t\tfilter: grayscale( "," );\n\t\t}\n\t}\n\n\t:hover .payment-logos {\n\t\t@media ( "," ) {\n\t\t\tfilter: grayscale( 0 );\n\t\t}\n\t}\n\n\tsvg {\n\t\tfilter: grayscale( "," );\n\t}\n\n\t:hover svg {\n\t\tfilter: grayscale( 0 );\n\t}\n\n\t",";\n"],["\n\tposition: relative;\n\tmargin-top: 8px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\toutline: ",";\n\n\t:first-of-type {\n\t\tmargin: 0;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tcontent: '';\n\t\tborder: "," solid ",";\n\t\tborder-radius: 3px;\n\t\tbox-sizing: border-box;\n\n\t\t.rtl & {\n\t\t\tright: 0;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t:hover::before {\n\t\tborder: 3px solid ",";\n\t}\n\n\t.payment-logos {\n\t\tdisplay: none;\n\n\t\t@media ( "," ) {\n\t\t\tdisplay: block;\n\t\t\tfilter: grayscale( "," );\n\t\t}\n\t}\n\n\t:hover .payment-logos {\n\t\t@media ( "," ) {\n\t\t\tfilter: grayscale( 0 );\n\t\t}\n\t}\n\n\tsvg {\n\t\tfilter: grayscale( "," );\n\t}\n\n\t:hover svg {\n\t\tfilter: grayscale( 0 );\n\t}\n\n\t",";\n"])),(function(e){var t=e.isFocused,n=e.theme;if(t)return n.colors.outline+" solid 2px";return"0"}),(function(e){return e.checked?"3px":"1px"}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.borderColor}),(function(e){return e.theme.colors.highlight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),oo,(function(e){return e.theme.breakpoints.smallPhoneUp}),oo,(function(e){if(!e.disabled)return null;return"\n\t\t::before,\n\t\t:hover::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t}\n\n\t\tsvg,\n\t\t:hover svg {\n\t\t\tfilter: grayscale( 100% );\n\t\t\topacity: 50%;\n\t\t}\n\t"}));var Ji=Gr.input(to||(to=z(["\n\tposition: absolute;\n\topacity: 0 !important;\n\n\tclear: none;\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tline-height: 0;\n\theight: 16px;\n\tmargin: 2px 0 0;\n\tfloat: left;\n\toutline: 0;\n\tpadding: 0;\n\ttext-align: center;\n\tvertical-align: middle;\n\twidth: 16px;\n\tmin-width: 16px;\n\tappearance: none;\n"],["\n\tposition: absolute;\n\topacity: 0 !important;\n\n\tclear: none;\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tline-height: 0;\n\theight: 16px;\n\tmargin: 2px 0 0;\n\tfloat: left;\n\toutline: 0;\n\tpadding: 0;\n\ttext-align: center;\n\tvertical-align: middle;\n\twidth: 16px;\n\tmin-width: 16px;\n\tappearance: none;\n"]))),Qi=Gr.label(no||(no=z(["\n\tposition: relative;\n\tpadding: 16px 14px 16px 40px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: space-between;\n\talign-items: flex-start;\n\tfont-size: 14px;\n\n\t.rtl & {\n\t\tpadding: 16px 40px 16px 14px;\n\t}\n\n\t:hover {\n\t\tcursor: pointer;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 16px;\n\t\theight: 16px;\n\t\tcontent: '';\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 100%;\n\t\ttop: 19px;\n\t\tleft: 16px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 2;\n\n\t\t.rtl & {\n\t\t\tright: 16px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t::after {\n\t\tdisplay: block;\n\t\twidth: 8px;\n\t\theight: 8px;\n\t\tcontent: '';\n\t\tborder-radius: 100%;\n\t\ttop: 23px;\n\t\tleft: 20px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 3;\n\n\t\t.rtl & {\n\t\t\tright: 20px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t",";\n"],["\n\tposition: relative;\n\tpadding: 16px 14px 16px 40px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: space-between;\n\talign-items: flex-start;\n\tfont-size: 14px;\n\n\t.rtl & {\n\t\tpadding: 16px 40px 16px 14px;\n\t}\n\n\t:hover {\n\t\tcursor: pointer;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 16px;\n\t\theight: 16px;\n\t\tcontent: '';\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 100%;\n\t\ttop: 19px;\n\t\tleft: 16px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 2;\n\n\t\t.rtl & {\n\t\t\tright: 16px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t::after {\n\t\tdisplay: block;\n\t\twidth: 8px;\n\t\theight: 8px;\n\t\tcontent: '';\n\t\tborder-radius: 100%;\n\t\ttop: 23px;\n\t\tleft: 20px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 3;\n\n\t\t.rtl & {\n\t\t\tright: 20px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t",";\n"])),(function(e){return e.theme.colors.borderColor}),(function(e){return e.theme.colors.surface}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.surface}),(function(e){if(!e.disabled)return null;return"\n\t\tcolor: lightgray;\n\t\tfont-style: italic;\n\n\t\t:hover {\n\t\t\tcursor: default;\n\t\t}\n\n\t\t::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t\tbackground: lightgray;\n\t\t}\n\n\t\t::after {\n\t\t\tbackground: white;\n\t\t}\n\n\t\tspan {\n\t\t\tcolor: lightgray;\n\t\t}\n\t"}));var eo,to,no,ro,io=Gr.div(ro||(ro=z(["\n\tdisplay: ",";\n"],["\n\tdisplay: ",";\n"])),(function(e){return e.checked?"block":"none"}));function oo(e){return e.checked?0:"100%"}function ao(){var e=Object(d.useContext)(ri).onEvent;if(!e)throw new Error("useEvents can only be used inside a CheckoutProvider");return e}var so=ue()("composite-checkout:checkout-payment-methods");function co(e){var t=e.summary,n=e.isComplete,r=e.className,i=$().__,o=ao(),a=Object(d.useCallback)((function(e){return o({type:"PAYMENT_METHOD_LOAD_ERROR",payload:e})}),[o]),s=bi(),c=function(){var e=Object(d.useContext)(ri),t=e.paymentMethodId,n=e.setPaymentMethodId;if(!n)throw new Error("usePaymentMethodId can only be used inside a CheckoutProvider");return[t,n]}()[1],l=function(e){so("setting payment method to",e),o({type:"PAYMENT_METHOD_SELECT",payload:e}),c(e)},u=gi();return t&&n&&s?(so("rendering selected paymentMethod",s),p.a.createElement("div",{className:Br([r,"checkout-payment-methods"])},p.a.createElement(Wr,{errorMessage:i("There was a problem with this payment method."),onError:a},p.a.createElement(lo,{id:s.id,label:s.label,activeContent:s.activeContent,inactiveContent:s.inactiveContent,checked:!0,summary:!0,ariaLabel:s.getAriaLabel(i)})))):t?(so("summary requested, but no complete paymentMethod is selected; isComplete:",n,"paymentMethod:",s),null):(so("rendering paymentMethods",u),p.a.createElement("div",{className:Br([r,"checkout-payment-methods"])},p.a.createElement(po,null,u.map((function(e){return p.a.createElement(Wr,{key:e.id,errorMessage:Object(v.sprintf)(i("There was a problem with the payment method: %s"),e.id),onError:a},p.a.createElement(lo,{id:e.id,label:e.label,activeContent:e.activeContent,inactiveContent:e.inactiveContent,checked:(null==s?void 0:s.id)===e.id,onClick:l,ariaLabel:e.getAriaLabel(i)}))})))))}function lo(e){var t=e.id,n=e.label,r=e.activeContent,i=e.inactiveContent,o=e.checked,a=e.onClick,s=e.ariaLabel,c=e.summary,l=ii().formStatus;return c?p.a.createElement(p.a.Fragment,null,i&&i):p.a.createElement(Xi,{name:"paymentMethod",value:t,id:t,checked:o,disabled:l!==Zr.READY,onChange:a?function(){return a(t)}:void 0,ariaLabel:s,label:n},r&&r)}co.propTypes={summary:Rr.a.bool,isComplete:Rr.a.bool.isRequired,className:Rr.a.string},lo.propTypes={id:Rr.a.string.isRequired,onClick:Rr.a.func,checked:Rr.a.bool.isRequired,ariaLabel:Rr.a.string.isRequired,activeContent:Rr.a.node,label:Rr.a.node,inactiveContent:Rr.a.node,summary:Rr.a.bool};var uo,po=Gr.div(uo||(uo=z(["\n\tmargin-bottom: 16px;\n"],["\n\tmargin-bottom: 16px;\n"])));ue()("composite-checkout:checkout");var mo=function(e){var t=e.children,n=e.className;return p.a.createElement(go,{className:Br([n,"checkout__summary-area"])},t)},fo=Gr.div(Po||(Po=z(["\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"],["\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"])),(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}));function ho(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,s=e.validatingButtonAriaLabel,c=e.isStepActive,l=e.isStepComplete,u=e.className,d=e.stepNumber,m=e.stepId,f=e.titleContent,h=e.goToThisStep,b=e.goToNextStep,g=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,x=e.onError,_=$().__;return p.a.createElement(Wr,{errorMessage:t||_("There was an error with this step."),onError:x},p.a.createElement(xo,{className:u},p.a.createElement(_o,{id:m,stepNumber:d,title:f,isActive:c,isComplete:l,onEdit:v===Zr.READY&&l&&h&&!c?h:void 0,editButtonText:n||_("Edit"),editButtonAriaLabel:r||_("Edit this step")}),p.a.createElement(Go,{isVisible:c,className:"checkout-steps__step-content"},g,b&&c&&p.a.createElement(Ni,{onClick:b,value:v===Zr.VALIDATING?o||_("Please wait…"):i||_("Continue"),ariaLabel:v===Zr.VALIDATING?s||_("Please wait…"):a||_("Continue to next step"),buttonType:"primary",disabled:v!==Zr.READY,isBusy:v===Zr.VALIDATING})),l&&y?p.a.createElement(Yo,{isVisible:!c,className:"checkout-steps__step-complete-content"},y):null))}ho.propTypes={errorMessage:Rr.a.string,onError:Rr.a.func,editButtonAriaLabel:Rr.a.string,editButtonText:Rr.a.string,nextStepButtonText:Rr.a.string,nextStepButtonAriaLabel:Rr.a.string,isStepActive:Rr.a.bool.isRequired,isStepComplete:Rr.a.bool.isRequired,className:Rr.a.string,stepNumber:Rr.a.number,stepId:Rr.a.string.isRequired,titleContent:Rr.a.node.isRequired,goToThisStep:Rr.a.func,goToNextStep:Rr.a.func,activeStepContent:Rr.a.node,formStatus:Rr.a.string,completeStepContent:Rr.a.node,validatingButtonText:Rr.a.string,validatingButtonAriaLabel:Rr.a.string};Gr.div(Ao||(Ao=z(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"],["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"])),(function(e){return e.theme.colors.outline}));var bo=Gr.div(Lo||(Lo=z(["\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"],["\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"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),go=Gr.div(To||(To=z(["\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"],["\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"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),vo=Gr.div(Fo||(Fo=z(["\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"],["\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"])),(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})),yo=Gr.div(Mo||(Mo=z(["\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: 100%;\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\twidth: calc( 100% - 60px );\n\t\t}\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\n\t\t\t.checkout-button {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n"],["\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: 100%;\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\twidth: calc( 100% - 60px );\n\t\t}\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\n\t\t\t.checkout-button {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n"])),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var xo=Gr.div(Do||(Do=z(["\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"],["\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"])),(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}));function _o(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,s=e.onEdit,c=e.editButtonText,l=e.editButtonAriaLabel,u=$().__,d=!!s;return p.a.createElement(Eo,{isComplete:a,isActive:o,className:Br([n,"checkout-step__header"])},p.a.createElement(wo,{isComplete:a,isActive:o,id:t},r||null),p.a.createElement(Oo,{fullWidth:!d,isActive:o},i),d&&p.a.createElement(No,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:s,"aria-label":l||u("Edit this step")},c||u("Edit")))}function wo(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return p.a.createElement(ko,{className:Br([r,"checkout-step__stepper"])},p.a.createElement(So,{isComplete:a},p.a.createElement(Co,{isComplete:a,isActive:n},i),p.a.createElement(jo,null,p.a.createElement(Si,{id:o}))))}_o.propTypes={id:Rr.a.string,className:Rr.a.string,stepNumber:Rr.a.number,title:Rr.a.node.isRequired,isActive:Rr.a.bool,isComplete:Rr.a.bool,editButtonText:Rr.a.string,editButtonAriaLabel:Rr.a.string,onEdit:Rr.a.func},wo.propTypes={id:Rr.a.string,className:Rr.a.string,isComplete:Rr.a.bool,isActive:Rr.a.bool};var Oo=Gr.span(Ro||(Ro=z(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: ",";\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"],["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: ",";\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"])),(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?"1":"inherit"}),(function(e){return e.fullWidth?"0":"8px"})),Eo=Gr.h2(Bo||(Bo=z(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"],["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"])),(function(e){return e.isComplete||e.isActive?"8px":"0"})),ko=Gr.div(Io||(Io=z(["\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"],["\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"]))),So=Gr.div(zo||(zo=z(["\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"],["\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"])),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),Co=Gr.div(Uo||(Uo=z(["\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"],["\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"])),(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"})),jo=Gr(Co)(Ho||(Ho=z(["\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"],["\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"])),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"})),No=Gr(xi)($o||($o=z(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"],["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"])));var Po,Ao,Lo,To,Fo,Mo,Do,Ro,Bo,Io,zo,Uo,Ho,$o,qo,Vo,Go=Gr.div(qo||(qo=z(["\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"],["\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"])),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),Yo=Gr.div(Vo||(Vo=z(["\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"],["\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"])),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));n(95);var Wo,Ko,Xo=Object(u.createElement)(O,{icon:kr,size:17}),Zo=function(e){var t=e.onNextStep,n=e.onPrevStep,r=Object(m.useSelect)((function(e){return e(c).getSelectedDomain()})),i=Object(m.useSelect)((function(e){return e(c).getSelectedPlan()})),o=Object(m.useSelect)((function(e){return e(l).getPrices()})),a=Object(m.useSelect)((function(e){return e(c).getLaunchStep()})),s=Object(m.useSelect)((function(e){return e(c).isStepCompleted})),d=Object(m.useSelect)((function(e){return e(c).isFlowCompleted()})),p=Object(g.useEntityProp)("root","site","title"),f=b()(p,1)[0],h=K().currentDomainName,x=function(){var e,t=re();return null===(e=Object(m.useSelect)((function(e){if(t&&!(t.length<2))return e("automattic/domains/suggestions").getDomainSuggestions(t,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:"en"})}),[t]))||void 0===e?void 0:e[0]}(),_=re(),w=Object(m.useDispatch)(c).setStep,O=Object(u.createElement)("div",{className:"nux-launch__summary-item"},Object(u.createElement)("p",null,Object(v.__)("Site","full-site-editing"),": ",f)),E=Object(u.createElement)("div",{className:"nux-launch__summary-item"},(null==r?void 0:r.domain_name)?Object(u.createElement)("p",null,Object(v.__)("Custom domain","full-site-editing"),": ",r.domain_name):Object(u.createElement)(u.Fragment,null,Object(u.createElement)("p",null,Object(v.__)("Free site address","full-site-editing"),": ",h),Object(u.createElement)(y.Tip,null,_?Object(u.createInterpolateElement)(Object(v.__)("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:Object(u.createElement)("span",{className:j()("nux-launch__summary-item__domain-name",{"is-loading":!x})},(null==x?void 0:x.domain_name)||"loading-example.com"),Link:Object(u.createElement)(y.Button,{isLink:!0,onClick:function(){return w(a.Domain)}})}):Object(v.__)("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),k=Object(u.createElement)("div",{className:"nux-launch__summary-item"},i&&!(null==i?void 0:i.isFree)?Object(u.createElement)(u.Fragment,null,Object(u.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",i.title),Object(v.__)("Plan subscription","full-site-editing"),": ",o[i.storeSlug]," ",Object(v.__)("per month, billed yearly","full-site-editing")):Object(u.createElement)(u.Fragment,null,Object(u.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),Object(u.createElement)("p",null,Object(v.__)("Plan subscription: Free forever","full-site-editing")),Object(u.createElement)(y.Tip,null,Object(u.createInterpolateElement)(Object(v.__)("<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:Object(u.createElement)(y.Button,{isLink:!0,onClick:function(){return w(a.Plan)}})}))));return Object(u.createElement)(W,null,Object(u.createElement)("div",{className:"nux-launch-step__header"},Object(u.createElement)("div",null,Object(u.createElement)(A,null,Object(v.__)("Launch your site","full-site-editing")),Object(u.createElement)(L,null,Object(v.__)("Your site will be made public and ready to share with others.","full-site-editing")))),Object(u.createElement)("div",{className:"nux-launch-step__body"},Object(u.createElement)(Er,{theme:Mr},Object(u.createElement)(bo,null,s(a.Plan)&&Object(u.createElement)(mo,null,Object(u.createElement)(fo,{className:"nux-launch__feature-list"},Object(u.createElement)("h3",{className:"nux-launch__feature-list-title"},Object(v.__)("Included in your plan","full-site-editing")),Object(u.createElement)("ul",{className:"nux-launch__feature-item-group"},null==i?void 0:i.features.map((function(e,t){return Object(u.createElement)("li",{key:t,className:"nux-launch__feature-item"},Xo," ",e)}))),Object(u.createElement)("p",null,Object(v.__)("Questions?","full-site-editing")," ",Object(u.createElement)(y.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},Object(v.__)("Ask a Happiness Engineer","full-site-editing"))))),Object(u.createElement)(vo,null,Object(u.createElement)(ho,{isStepActive:!1,titleContent:Object(v.__)("Your site name","full-site-editing"),isStepComplete:s(a.Name),goToThisStep:function(){return w(a.Name)},completeStepContent:O,stepId:"name",formStatus:Zr.READY}),Object(u.createElement)(ho,{isStepActive:!1,titleContent:Object(v.__)("Your domain","full-site-editing"),isStepComplete:s(a.Domain),goToThisStep:function(){return w(a.Domain)},completeStepContent:E,stepId:"domain",formStatus:Zr.READY}),Object(u.createElement)(ho,{isStepActive:!1,titleContent:Object(v.__)("Your plan","full-site-editing"),isStepComplete:s(a.Plan),goToThisStep:function(){return w(a.Plan)},completeStepContent:k,stepId:"plan",formStatus:Zr.READY}),Object(u.createElement)(yo,null,Object(u.createElement)(y.Button,{isPrimary:!0,disabled:!d,onClick:t,className:"nux-launch__submit-button"},Object(v.__)("Launch your site","full-site-editing"))))))),Object(u.createElement)("div",{className:"nux-launch-step__footer"},Object(u.createElement)(V,{sticky:!0},Object(u.createElement)(G,{onClick:function(){null==n||n()}}))))},Jo=(n(98),function(e){var t,n=e.onSubmit,r=Object(m.useSelect)((function(e){return e(c).getState()})).step,i=Object(m.useSelect)((function(e){return e(c).getLaunchStep()})),o=Object(m.useSelect)((function(e){return e(c).getLaunchSequence()})),a=Object(m.useSelect)((function(e){return e(c).getFirstIncompleteStep()})),s=Object(m.useDispatch)(c),l=s.setStep,p=s.setSidebarFullscreen,f=s.unsetSidebarFullscreen,h=(t={},P()(t,i.Name,ie),P()(t,i.Domain,et),P()(t,i.Plan,$n),P()(t,i.Final,Zo),t),b=o.indexOf(r),g=h[r];return d.useEffect((function(){a&&a!==i.Name&&l(a)}),[]),Object(u.createElement)(g,{onPrevStep:function(){var e=b-1;e<0&&(e=0,p()),l(o[e])},onNextStep:function(){var e=b+1;e>o.length-1&&(null==n||n()),f(),l(o[e])}})}),Qo=Object(u.createElement)(y.SVG,{viewBox:"0 0 24 24"},Object(u.createElement)(y.Circle,{cx:"12",cy:"12",r:"5"})),ea=function(e){var t=e.title,n=e.isCompleted,r=e.isCurrent,i=e.isDisabled,o=e.onClick;return Object(u.createElement)(y.Button,{className:j()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:o,disabled:i,isLink:!0},Object(u.createElement)(O,{icon:n?kr:Qo,size:16}),Object(u.createElement)("span",null,t))},ta=(n(99),function(e){var t,n=e.onMenuItemClick,r=Object(m.useSelect)((function(e){return e(c).getState()})).step,i=Object(m.useSelect)((function(e){return e(c).getLaunchStep()})),o=Object(m.useSelect)((function(e){return e(c).getLaunchSequence()})),a=Object(m.useSelect)((function(e){return e(c).isStepCompleted})),s=Object(m.useSelect)((function(e){return e(c).isFlowStarted()})),l=(t={},P()(t,i.Name,Object(v.__)("Name your site","full-site-editing")),P()(t,i.Domain,Object(v.__)("Select a domain","full-site-editing")),P()(t,i.Plan,Object(v.__)("Select a plan","full-site-editing")),P()(t,i.Final,Object(v.__)("Launch your site","full-site-editing")),t),d=Object(m.useDispatch)(c).setStep;return Object(u.createElement)("div",{className:"nux-launch-menu"},Object(u.createElement)("h4",null,Object(v.__)("Site Launch Steps","full-site-editing")),Object(u.createElement)("div",{className:"nux-launch-menu__item-group"},o.map((function(e){return Object(u.createElement)(ea,{key:e,title:l[e],isCompleted:a(e),isCurrent:e===r,onClick:function(){return function(e){d(e),n(e)}(e)},isDisabled:e===i.Final&&!s})}))))}),na=(n(100),function(){var e=Object(m.useDispatch)(c),t=e.setStep,n=e.unsetSidebarFullscreen,r=Object(m.useSelect)((function(e){return e(c).getLaunchSequence()}));return Object(u.createElement)("div",{className:"nux-launch-sidebar"},Object(u.createElement)("div",{className:"nux-launch-sidebar__header"},Object(u.createElement)(A,null,Object(v.__)("You're almost there!","full-site-editing")),Object(u.createElement)(L,null,Object(v.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),Object(u.createElement)("div",{className:"nux-launch-sidebar__body"},Object(u.createElement)(ta,{onMenuItemClick:function(){n()}})),Object(u.createElement)("div",{className:"nux-launch-sidebar__footer"},Object(u.createElement)(V,{sticky:!0},Object(u.createElement)(Y,{onClick:function(){t(r[0]),n()}},Object(v.__)("Get Started","full-site-editing")))))}),ra=(n(101),function(){var e=$().__,t=Object(m.useSelect)((function(e){return e(c).getState()})).step,n=Object(m.useSelect)((function(e){return e(c).getLaunchSequence()})),r=n.indexOf(t)+1,i=n.length,o=Object(v.sprintf)(e("%1$d of %2$d","full-site-editing"),r,i);return Object(u.createElement)("div",{className:"nux-launch-progress"},o)}),ia=(n(102),function(e){var t=e.onClose,n=Object(m.useSelect)((function(e){return e(c).getState()})),r=n.step,i=n.isSidebarFullscreen,o=Object(m.useDispatch)(c).launchSite,a=d.useState(!1),s=b()(a,2),l=s[0],p=s[1],f=function(){p(!0),o()};return K().isPaidPlan&&!l&&f(),Object(u.createElement)(y.Modal,{open:!0,className:j()("nux-launch-modal","step-".concat(r),i?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},l?Object(u.createElement)("div",{className:"nux-launch-modal-body__launching"},Object(v.__)("Hooray! Your site will be ready shortly.","full-site-editing")):Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"nux-launch-modal-body"},Object(u.createElement)("div",{className:"nux-launch-modal-header"},Object(u.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},Object(u.createElement)(O,{icon:k,size:36})),Object(u.createElement)(ra,null)),Object(u.createElement)(g.EntityProvider,{kind:"root",type:"site"},Object(u.createElement)(Jo,{onSubmit:f}))),Object(u.createElement)("div",{className:"nux-launch-modal-aside"},Object(u.createElement)(na,null)),Object(u.createElement)(y.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":Object(v.__)("Close dialog","full-site-editing"),disabled:!t},Object(u.createElement)("span",null,Object(u.createElement)(O,{icon:S,size:24})))))});Wo="a8c-editor-site-launch",Ko={render:function(){var e=Object(m.useSelect)((function(e){return e(c).getState()})).isSidebarOpen,t=Object(m.useDispatch)(c),n=t.closeSidebar,r=t.setSidebarFullscreen,i=t.unsetSidebarFullscreen;return function(){var e=K().launchStatus,t=Object(m.useSelect)((function(e){return e(c).getState()})),n=t.plan,r=t.domain,i=Object(m.useSelect)((function(e){return e(l).isPlanEcommerce(null==n?void 0:n.storeSlug)})),o=Object(m.useDispatch)(s),a=o.getCart,u=o.setCart;d.useEffect((function(){if(e){if(n&&!(null==n?void 0:n.isFree)){var t={product_id:n.productId,product_slug:n.storeSlug,extra:{source:"gutenboarding"}},o={meta:null==r?void 0:r.domain_name,product_id:null==r?void 0:r.product_id,extra:{privacy_available:null==r?void 0:r.supports_privacy,privacy:null==r?void 0:r.supports_privacy,source:"gutenboarding"}};return void function(){var e=te()(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(window._currentSiteId);case 2:return n=e.sent,e.next=5,u(window._currentSiteId,Q()(Q()({},n),{},{products:[].concat(Z()(n.products),[t,o])}));case 5:r=Object(ne.addQueryArgs)("https://wordpress.com/checkout/".concat(window._currentSiteId),Q()({preLaunch:1},!i&&{redirect_to:"/home/".concat(window._currentSiteId)})),window.top.location.href=r;case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}window.top.location.href="https://wordpress.com/home/".concat(window._currentSiteId)}}),[e])}(),d.useEffect((function(){window.innerWidth<782?r():i()}),[e,r,i]),e?Object(u.createElement)(ia,{onClose:n}):null}},Object(f.registerPlugin)(Wo,Ko)}]));
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.7
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.7' );
39
 
40
  // Always include these helper files for dotcom FSE.
41
  require_once __DIR__ . '/dotcom-fse/helpers.php';
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 2.7.1
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.7.1' );
39
 
40
  // Always include these helper files for dotcom FSE.
41
  require_once __DIR__ . '/dotcom-fse/helpers.php';
global-styles/class-global-styles.php CHANGED
@@ -338,6 +338,7 @@ class Global_Styles {
338
  $version,
339
  true
340
  );
 
341
  wp_localize_script(
342
  'jetpack-global-styles-editor-script',
343
  'JETPACK_GLOBAL_STYLES_EDITOR_CONSTANTS',
338
  $version,
339
  true
340
  );
341
+ wp_set_script_translations( 'jetpack-global-styles-editor-script', 'full-site-editing' );
342
  wp_localize_script(
343
  'jetpack-global-styles-editor-script',
344
  'JETPACK_GLOBAL_STYLES_EDITOR_CONSTANTS',
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: alexislloyd, allancole, automattic, bartkalisz, codebykat, copons,
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.0
5
  Tested up to: 5.5
6
- Stable tag: 2.7
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -40,13 +40,18 @@ This plugin is experimental, so we don't provide any support for it outside of w
40
 
41
  == Changelog ==
42
 
 
 
 
 
 
43
  = 2.7 =
44
- * Added coming soon page.
45
- * Added vertical space above the first content block when the page title is hidden
46
- * Added launch flow mobile layout (hiding behind feature flag).
47
- * Removed the Premium Content block from the "New" category, and add it to the "Earn" category.
48
- * Styling fixes to Recurring Payments block.
49
- * Styling fixes to Premium Content block.
50
 
51
  = 2.6.1 =
52
  * Fixed an error in the Premium Content token subscription service that causing some fatal errors if the auth token was missing (https://github.com/Automattic/wp-calypso/pull/45878)
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.0
5
  Tested up to: 5.5
6
+ Stable tag: 2.7.1
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.7.1 =
44
+ * Coming Soon v2: adding links to default page (https://github.com/Automattic/wp-calypso/pull/46441)
45
+ * Remove "gutenboarding/new-launch" feature flag and checks. (https://github.com/Automattic/wp-calypso/pull/46453)
46
+ * Fixes Global Styles plugin translation (https://github.com/Automattic/wp-calypso/pull/46421)
47
+
48
  = 2.7 =
49
+ * Added coming soon page. (https://github.com/Automattic/wp-calypso/pull/45950)
50
+ * Added launch flow mobile layout (https://github.com/Automattic/wp-calypso/pull/45714).
51
+ * Added vertical space above the first content block when the page title is hidden. (https://github.com/Automattic/wp-calypso/pull/46003)
52
+ * Removed the Premium Content block from the "New" category, and add it to the "Earn" category. (https://github.com/Automattic/wp-calypso/pull/45978)
53
+ * Styling fixes to Recurring Payments block. (https://github.com/Automattic/wp-calypso/pull/46125)
54
+ * Styling fixes to Premium Content block. (https://github.com/Automattic/wp-calypso/pull/46125)
55
 
56
  = 2.6.1 =
57
  * Fixed an error in the Premium Content token subscription service that causing some fatal errors if the auth token was missing (https://github.com/Automattic/wp-calypso/pull/45878)