Version Description
- Fix site editor loading problem with Gutenberg 8.9.0 (https://github.com/Automattic/wp-calypso/pull/45360)
- Added fallback for site vertical (https://github.com/Automattic/wp-calypso/pull/45010)
- Update pages sidebar design in block editor (https://github.com/Automattic/wp-calypso/pull/45242)
- Fix FSE Mailerlite translations namespacing (https://github.com/Automattic/wp-calypso/pull/45206)
- Premium Content: Fix duplicate Stripe nudge notification (https://github.com/Automattic/wp-calypso/pull/45255)
- Update the Editing Toolkit readme (https://github.com/Automattic/wp-calypso/pull/45212)
- Premium Content: Fix redirect behavior after connecting to Stripe (https://github.com/Automattic/wp-calypso/pull/45204)
- Hide editor sidebar first time users sees the editor (https://github.com/Automattic/wp-calypso/pull/43716)
- Add an aria-label to (W), in header and sidebar, that describes what the button is for, when sidebar is closed "Open sidebar", when W button is open "You are viewing sidebar. To close select "esc". (https://github.com/Automattic/wp-calypso/pull/45266)
- Add aria-label for "View all pages" link: aria-label="View all pages in Dashboard" (or posts as appropriate) (https://github.com/Automattic/wp-calypso/pull/45266)
- Use an h2 instead of a div for the Posts heading (https://github.com/Automattic/wp-calypso/pull/45266)
- Set autoFocus to (W) icon when sidebar opens (https://github.com/Automattic/wp-calypso/pull/45266)
Download this release
Release Info
Developer | philipmjackson |
Plugin | Full Site Editing |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.1
- block-inserter-modifications/dist/contextual-tips.asset.php +1 -1
- block-inserter-modifications/dist/new-blocks-showcase.asset.php +1 -1
- common/dist/common.asset.php +1 -1
- common/dist/data-stores.asset.php +1 -1
- common/dist/data-stores.js +2 -2
- dotcom-fse/dist/dotcom-fse.asset.php +1 -1
- dotcom-fse/dist/dotcom-fse.js +1 -1
- editor-gutenboarding-launch/dist/editor-gutenboarding-launch.asset.php +1 -1
- editor-gutenboarding-launch/dist/editor-gutenboarding-launch.js +1 -1
- editor-site-launch/dist/editor-site-launch.asset.php +1 -1
- editor-site-launch/dist/editor-site-launch.js +22 -7
- event-countdown-block/dist/event-countdown-block.asset.php +1 -1
- full-site-editing-plugin.php +7 -3
- global-styles/dist/global-styles.asset.php +1 -1
- global-styles/dist/global-styles.js +2 -2
- jetpack-timeline/dist/jetpack-timeline.asset.php +1 -1
- mailerlite/subscriber-popup.php +5 -6
- newspack-blocks/dist/blog-posts-block-editor.asset.php +1 -1
- newspack-blocks/dist/blog-posts-block-editor.js +1 -1
- newspack-blocks/dist/blog-posts-block-view.asset.php +1 -1
- newspack-blocks/dist/carousel-block-editor.asset.php +1 -1
- newspack-blocks/dist/carousel-block-editor.js +2 -2
- newspack-blocks/dist/carousel-block-view.asset.php +1 -1
- newspack-blocks/dist/carousel-block-view.js +0 -1
block-inserter-modifications/dist/contextual-tips.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => 'd207b0e9b9f0f685b37eb8e68396c755');
|
block-inserter-modifications/dist/new-blocks-showcase.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-blocks', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-blocks', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '17c276b7d12d336093b98a2149002811');
|
common/dist/common.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'f592db2c383366563db137a202aad8de');
|
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' => '
|
1 |
+
<?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-polyfill'), 'version' => '63e2c8620483ab72b8aa83fd2df43026');
|
common/dist/data-stores.js
CHANGED
@@ -1,11 +1,11 @@
|
|
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=85)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return u}));var r=function(){return(r=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 o(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 i(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function a(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 s(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 u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";n.d(t,"c",(function(){return R})),n.d(t,"b",(function(){return I})),n.d(t,"a",(function(){return k}));var r=n(0),o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function a(){if(!o)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}for(var s=[],u=0;u<256;++u)s[u]=(u+256).toString(16).substr(1);var c=function(e,t){var n=t||0,r=s;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 l,f=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||a)();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||c(o)},p=n(31),d=n.n(p),h=n(13),m=n.n(h),y=n(10),g=n.n(y)()("wpcom-proxy-request"),v="https://public-api.wordpress.com",b=window.location.protocol+"//"+window.location.host,S=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),O=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),E=null,w=!1,_={},C=!!window.ProgressEvent&&!!window.FormData;g('using "origin": %o',b);var j=function(e,t){var n=Object.assign({},e);g("request(%o)",n),E||P();var r=f();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=C,n.method=String(n.method||"GET").toUpperCase(),g("params object: %o",n);var o=new window.XMLHttpRequest;if(o.params=n,_[r]=o,"function"==typeof t){var i=!1,a=function(e){if(!i){i=!0;var n=e.error||e.err||e;g("error: ",n),g("headers: ",e.headers),t(n,null,e.headers)}};o.addEventListener("load",(function(e){if(!i){i=!0;var n=e.response||o.response;g("body: ",n),g("headers: ",e.headers),t(null,n,e.headers)}})),o.addEventListener("abort",a),o.addEventListener("error",a)}return w?N(n):(g("buffering API request since proxying <iframe> is not yet loaded"),l.push(n)),o},x=function(e,t){return"function"==typeof t?j(e,t):new Promise((function(t,n){j(e,(function(e,r){e?n(e):t(r)}))}))};function N(e){g("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!O)return;for(var t=0;t<e.length;t++){var n=T(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),E.contentWindow.postMessage(S?JSON.stringify(e):e,v)}function A(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function T(e){return A(e)?e:"object"==typeof e&&A(e.fileContents)?e.fileContents:null}function P(){g("install()"),E&&(g("uninstall()"),window.removeEventListener("message",F),document.body.removeChild(E),w=!1,E=null),l=[],window.addEventListener("message",F),(E=document.createElement("iframe")).src=v+"/wp-admin/rest-proxy/?v=2.0#"+b,E.style.display="none",document.body.appendChild(E)}function F(e){if(g("onmessage"),e.origin===v){var t=e.data;if(!t)return g("no `data`, bailing");if("ready"!==t){if(S&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){g('got "progress" event: %o',e);var t=_[e.callbackId];if(t){var n=new m.a("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return g("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in _))return g("bailing, no matching request with callback: %o",n);var r=_[n],o=r.params,i=t[0],a=t[1],s=t[2];if(207===a||delete _[n],o.metaAPI?a="metaAPIupdated"===i?200:500:g("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 m.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 m.a("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}(r,d()(o,a,i),s)}else!function(){if(g('proxy <iframe> "load" event'),w=!0,l){for(var e=0;e<l.length;e++)N(l[e]);l=null}}()}else g("ignoring message... %o !== %o",e.origin,v)}var L=x,R=function(e){return{type:"WPCOM_REQUEST",request:e}},I=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},k={WPCOM_REQUEST:function(e){var t=e.request;return L(t)},FETCH_AND_PARSE:function(e){var t=e.resource,n=e.options;return Object(r.b)(void 0,void 0,void 0,(function(){var e,o;return Object(r.c)(this,(function(r){switch(r.label){case 0:return[4,window.fetch(t,n)];case 1:return e=r.sent(),o={ok:e.ok},[4,e.json()];case 2:return[2,(o.body=r.sent(),o)]}}))}))},RELOAD_PROXY:function(){P()},REQUEST_ALL_BLOGS_ACCESS:function(){return x({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t,n){"use strict";var r=n(19);n.d(t,"DomainSuggestions",(function(){return r}));var o=n(30);n.d(t,"Plans",(function(){return o}));var i=n(24);n.d(t,"Site",(function(){return i}))},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){"use strict";n.d(t,"a",(function(){return r}));var r="automattic/domains/suggestions"},function(e,t,n){"use strict";n.r(t),n.d(t,"receiveCategories",(function(){return r})),n.d(t,"receiveDomainSuggestions",(function(){return o}));var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},o=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS",queryObject:e,suggestions:t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="automattic/site"},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(62)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(33),o=n.n(r).a},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(28),o=n(27);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(63),o=n(64),i=n(22),a=n(65);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(6);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,n){"use strict";n.r(t),n.d(t,"register",(function(){return d}));var r=n(1),o=n(7),i=n(32),a=n(8),s=n(34),u=n(36),c=n(2),l=n(20);for(var f in l)["default","register"].indexOf(f)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(f);var p=!1;function d(e){var t=e.vendor;return p||(p=!0,Object(r.registerStore)(o.a,{actions:a,controls:c.a,reducer:i.a,resolvers:s,selectors:Object(u.a)(t)})),o.a}},function(e,t){},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(21);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(14),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";n.r(t),n.d(t,"register",(function(){return d}));var r=n(1),o=n(9),i=n(38),a=n(37),s=n(39),u=n(40),c=n(2),l=n(25);for(var f in l)["default","register"].indexOf(f)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(f);var p=!1;function d(e){return p||(p=!0,Object(r.registerStore)(o.a,{actions:Object(a.a)(e),controls:c.a,reducer:i.a,resolvers:s,selectors:u})),o.a}},function(e,t){},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){"use strict";function r(e){var t=e,n=e+"_TS",r={},o={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[e]}},i=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:o;return{storageKey:t,storage:{getItem:function(e){var r=i.getItem(n);return r&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(r)&&!new URLSearchParams(window.location.search).has("fresh")?i.getItem(e):(i.removeItem(t),i.removeItem(n),null)},setItem:function(e,t){i.setItem(n,JSON.stringify(Date.now())),i.setItem(e,t)}}}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"plansPaths",(function(){return Ce})),n.d(t,"PLAN_FREE",(function(){return p})),n.d(t,"PLAN_PERSONAL",(function(){return d})),n.d(t,"PLAN_PREMIUM",(function(){return h})),n.d(t,"PLAN_BUSINESS",(function(){return m})),n.d(t,"PLAN_ECOMMERCE",(function(){return y})),n.d(t,"register",(function(){return Ge}));var r={};n.r(r),n.d(r,"setPrices",(function(){return Te})),n.d(r,"resetPlan",(function(){return Pe}));var o={};n.r(o),n.d(o,"getPlanBySlug",(function(){return Le})),n.d(o,"getDefaultPaidPlan",(function(){return Re})),n.d(o,"getSupportedPlans",(function(){return Ie})),n.d(o,"getPlanByPath",(function(){return ke})),n.d(o,"getPlansDetails",(function(){return Me})),n.d(o,"getPlansPaths",(function(){return De})),n.d(o,"getPrices",(function(){return Ue})),n.d(o,"isPlanEcommerce",(function(){return He})),n.d(o,"isPlanFree",(function(){return Be}));var i={};n.r(i),n.d(i,"getPrices",(function(){return Ve}));var a,s,u,c,l=n(4),f=n(1),p="free_plan",d="personal-bundle",h="value_bundle",m="business-bundle",y="ecommerce-bundle",g=h,v={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}},b=n(0),S=n(16),O=n.n(S),E=n(6),w=n.n(E),_=n(10),C=n.n(_),j=n(41),x=n.n(j);a={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],u={")":["("],":":["?","?:"]},c=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var N={"!":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 A(e){var t=function(e){for(var t,n,r,o,i=[],l=[];t=e.match(c);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=l.pop();){if(u[n]){if(u[n][0]===o){n=u[n][1]||n;break}}else if(s.indexOf(o)>=0||a[o]<a[n]){l.push(o);break}i.push(o)}u[n]||l.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(l.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=N[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 T={contextDelimiter:"",onMissingKey:null};function P(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},T)this.options[n]=void 0!==t&&n in t?t[n]:T[n]}P.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=A(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},P.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 F=n(42),L=n.n(F),R=n(43),I=n.n(R),k=n(17),M=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function D(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(M,(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:"")}))}
|
2 |
/*
|
3 |
* Exposes number format capability
|
4 |
*
|
5 |
* @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
|
6 |
* @license See CREDITS.md
|
7 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
8 |
-
*/function U(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 H=C()("i18n-calypso"),B=[function(e){return e}],V={};function W(){$.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function G(e){return Array.prototype.slice.call(e)}function q(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&W("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",G(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&W("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",G(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 z(e,t){return e.dcnpgettext("messages",t.context,t.original,t.plural,t.count)}function Y(e,t){for(var n=B.length-1;n>=0;n--){var r=B[n](Object.assign({},t)),o=r.context?r.context+""+r.original:r.original;if(e.state.locale[o])return z(e.state.tannin,r)}return null}function $(){if(!(this instanceof $))return new $;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:L()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new k.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}$.throwErrors=!1,$.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},$.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},$.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},$.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 U(e,n,r,o)},$.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},$.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!==V[n+e])return V[n+e];var r=I()().update(e).digest("hex");return V[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)B.push(a(!1));else{var s=o.substr(5).indexOf("-");if(s<0){var u=Number(o.substr(5));B.push(a(u))}else for(var c=Number(o.substr(5,s)),l=Number(o.substr(6+s)),f=c;f<=l;f++)B.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 P(w()({},"messages",this.state.locale)),this.state.numberFormatSettings.decimal_point=z(this.state.tannin,q(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=z(this.state.tannin,q(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},$.prototype.getLocale=function(){return this.state.locale},$.prototype.getLocaleSlug=function(){return this.state.localeSlug},$.prototype.isRtl=function(){return"rtl"===this.state.textDirection},$.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},$.prototype.hasTranslation=function(){return!!Y(this,q(arguments))},$.prototype.translate=function(){var e=q(arguments),t=Y(this,e);if(t||(t=z(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=D.apply(void 0,O()(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=x()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},$.prototype.reRenderTranslations=function(){H("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},$.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},$.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var K=$,J=n(18),Q=n.n(J),Z=n(44),X=n.n(Z),ee=n(45),te=n.n(ee),ne=n(12),re=n.n(ne),oe=n(46),ie=n.n(oe),ae=n(47),se=n.n(ae),ue=n(3),ce=n.n(ue),le=n(48),fe=n.n(le),pe=n(49),de=n.n(pe),he=n(50),me=n(51);var ye,ge,ve,be,Se=new K,Oe=(Se.numberFormat.bind(Se),Se.translate.bind(Se)),Ee=(Se.configure.bind(Se),Se.setLocale.bind(Se),Se.getLocale.bind(Se),Se.getLocaleSlug.bind(Se),Se.addTranslations.bind(Se),Se.reRenderTranslations.bind(Se),Se.registerComponentUpdateHook.bind(Se),Se.registerTranslateHook.bind(Se),Se.state,Se.stateObserver,Se.on.bind(Se),Se.off.bind(Se),Se.emit.bind(Se),ge={numberFormat:(ye=Se).numberFormat.bind(ye),translate:ye.translate.bind(ye)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Se),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(he.useSubscription)(t)}var r=Object(me.createHigherOrderComponent)((function(e){return Object(ue.forwardRef)((function(t,r){var o=n();return ce.a.createElement(e,de()({},t,{isRtl:o,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Se)),we=(Ee.useRtl,Ee.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"]),_e=((ve={})[p]={title:Oe("Free"),productId:1,storeSlug:p,pathSlug:"beginner",features:["3 GB storage space"],isFree:!0},ve[d]={title:Oe("Personal"),productId:1009,storeSlug:d,pathSlug:"personal",features:Object(b.e)(["6 GB storage space"],we.slice(0,3))},ve[h]={title:Oe("Premium"),productId:1003,storeSlug:h,pathSlug:"premium",features:Object(b.e)(["13 GB storage space"],we.slice(0,8)),isPopular:!0},ve[m]={title:Oe("Business"),productId:1008,storeSlug:m,pathSlug:"business",features:Object(b.e)(["200 GB storage space"],we.slice(0,11))},ve[y]={title:Oe("eCommerce"),productId:1011,storeSlug:y,pathSlug:"ecommerce",features:Object(b.e)(["200 GB storage space"],we)},ve),Ce=Object.keys(_e).map((function(e){return _e[e].pathSlug})),je=[{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]}]}],xe=Object.keys(_e),Ne={supportedPlanSlugs:xe,prices:(be={},be[p]="",be[d]="",be[h]="",be[m]="",be[y]="",be)},Ae=function(e,t){switch(void 0===e&&(e=Ne),t.type){case"SET_PRICES":return Object(b.a)(Object(b.a)({},e),{prices:t.prices});default:return e}},Te=function(e){return{type:"SET_PRICES",prices:e}},Pe=function(){return{type:"RESET_PLAN"}};function Fe(e){return _e[e]}var Le=function(e,t){return Fe(t)},Re=function(){return Fe(g)},Ie=function(e){return e.supportedPlanSlugs.map(Fe)},ke=function(e,t){return t&&Ie(e).find((function(e){return(null==e?void 0:e.pathSlug)===t}))},Me=function(){return je},De=function(e){return Ie(e).map((function(e){return null==e?void 0:e.pathSlug}))},Ue=function(e){return e.prices},He=function(e,t){return t===y},Be=function(e,t){return t===p};function Ve(){var e,t,n;return Object(b.c)(this,(function(r){switch(r.label){case 0:return[4,Object(l.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!==xe.indexOf(e.product_slug)})),n=t.reduce((function(e,t){return e[t.product_slug]=function(e){var t=v[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,Te(n)];case 2:return r.sent(),[2]}}))}var We=!1;function Ge(){return We||(We=!0,Object(f.registerStore)("automattic/onboard/plans",{resolvers:i,actions:r,controls:l.controls,reducer:Ae,selectors:o})),"automattic/onboard/plans"}},function(e,t,n){var r=n(59),o=n(61);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";var r=n(0),o=n(1),i=n(11),a=Object(o.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={}),"RECEIVE_DOMAIN_SUGGESTIONS"===t.type?Object(r.a)(Object(r.a)({},e),((n={})[Object(i.a)(t.queryObject)]=t.suggestions,n)):e}});t.a=a},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";n.r(t),n.d(t,"getCategories",(function(){return s})),n.d(t,"__internalGetDomainSuggestions",(function(){return u}));var r=n(0),o=n(35),i=n(8),a=n(2);function s(){var e;return Object(r.c)(this,(function(t){switch(t.label){case 0:return[4,Object(a.b)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories")];case 1:return e=t.sent(),[2,Object(i.receiveCategories)(e.body)]}}))}function u(e){var t;return Object(r.c)(this,(function(n){switch(n.label){case 0:return e.query?[4,Object(a.c)({apiVersion:"1.1",path:"/domains/suggestions",query:Object(o.stringify)(e)})]:[2,Object(i.receiveDomainSuggestions)(e,[])];case 1:return t=n.sent(),[2,Object(i.receiveDomainSuggestions)(e,t)]}}))}},function(e,t,n){"use strict";var r=n(67),o=n(68),i=n(23);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(7),a=n(11);t.a=function(e){function t(t,n){return Object(r.a)(Object(r.a)({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 Object(r.e)(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 a=t(n,r);return Object(o.select)(i.a).__internalGetDomainSuggestions(a)},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n,r){void 0===r&&(r={});var a=t(n,r);return Object(o.select)("core/data").isResolving(i.a,"__internalGetDomainSuggestions",[a])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions[Object(a.a)(t)]}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(2);function i(e){var t=function(){return{type:"FETCH_NEW_SITE"}},n=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},i=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};var a=function(e){return{type:"LAUNCHED_SITE",siteId:e}};return{fetchNewSite:t,receiveNewSite:n,receiveNewSiteFailed:i,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:function(t){var a,s,u,c,l,f;return Object(r.c)(this,(function(p){switch(p.label){case 0:return[4,{type:"FETCH_NEW_SITE"}];case 1:p.sent(),p.label=2;case 2:return p.trys.push([2,5,,7]),a=t.authToken,s=Object(r.d)(t,["authToken"]),u={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},c=Object(r.a)(Object(r.a)(Object(r.a)({},u),s),{validate:!1}),[4,Object(o.c)({path:"/sites/new",apiVersion:"1.1",method:"post",body:c,token:a})];case 3:return l=p.sent(),[4,n(l)];case 4:return p.sent(),[2,!0];case 5:return f=p.sent(),[4,i(f)];case 6:return p.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 Object(r.c)(this,(function(t){switch(t.label){case 0:return[4,Object(o.c)({path:"/sites/"+e+"/launch",apiVersion:"1.1",method:"post"})];case 1:return t.sent(),[4,a(e)];case 2:return t.sent(),[2,!0]}}))},launchedSite:a,getCart:function(e){return Object(r.c)(this,(function(t){switch(t.label){case 0:return[4,Object(o.c)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})];case 1:return[2,t.sent()]}}))},setCart:function(e,t){return Object(r.c)(this,(function(n){switch(n.label){case 0:return[4,Object(o.c)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})];case 1:return[2,n.sent()]}}))}}}},function(e,t,n){"use strict";var r=n(0),o=n(1),i=Object(o.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}}),a=Object(o.combineReducers)({newSite:i,sites:function(e,t){var n;if(void 0===e&&(e={}),"RECEIVE_SITE"===t.type)return Object(r.a)(Object(r.a)({},e),((n={})[t.siteId]=t.response,n));if("RECEIVE_SITE_FAILED"===t.type){var o=e,i=t.siteId,a=(o[i],Object(r.d)(o,["symbol"==typeof i?i:i+""]));return Object(r.a)({},a)}return"RESET_SITE_STORE"===t.type?{}:e},launchStatus:function(e,t){var n;return void 0===e&&(e={}),"LAUNCHED_SITE"===t.type?Object(r.a)(Object(r.a)({},e),((n={})[t.siteId]=!0,n)):e}});t.a=a},function(e,t,n){"use strict";n.r(t),n.d(t,"getSite",(function(){return s}));var r=n(0),o=n(1),i=n(2),a=n(9);function s(e){var t;return Object(r.c)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,5]),[4,Object(i.c)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"})];case 1:return t=n.sent(),[4,Object(o.dispatch)(a.a).receiveSite(e,t)];case 2:return n.sent(),[3,5];case 3:return n.sent(),[4,Object(o.dispatch)(a.a).receiveSiteFailed(e,void 0)];case 4:return n.sent(),[3,5];case 5:return[2]}}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"getState",(function(){return r})),n.d(t,"getNewSite",(function(){return o})),n.d(t,"getNewSiteError",(function(){return i})),n.d(t,"isFetchingSite",(function(){return a})),n.d(t,"isNewSite",(function(){return s})),n.d(t,"getSite",(function(){return u})),n.d(t,"isLaunched",(function(){return c}));var r=function(e){return e},o=function(e){return e.newSite.data},i=function(e){return e.newSite.error},a=function(e){return e.newSite.isFetching},s=function(e){return!!e.newSite.data},u=function(e,t){return e.sites[t]},c=function(e,t){return e.launchStatus[t]}},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(3)),i=s(n(69)),a=s(n(72));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(17),o=n(27);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(15),o=n(73),i=n(74),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(75);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(76),o=n(77),i=n(78);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(80),o=n(81),i=n(22),a=n(82);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(83)},function(e,t){!function(){e.exports=this.wp.compose}()},,,,,,,,function(e,t,n){"use strict";var r=n(60);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(16);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(66),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(21);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=6e4,o=60*r,i=24*o;function a(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var s=typeof e;if("string"===s&&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 a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===s&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return a(e,t,i,"day");if(t>=o)return a(e,t,o,"hour");if(t>=r)return a(e,t,r,"minute");if(t>=n)return a(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(14),o=n(23),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,O=[];if(void 0===b)return O;if(s(l))S=l;else{var E=Object.keys(b);S=f?E.sort(f):E}for(var w=0;w<S.length;++w){var _=S[w],C=b[_];if(!a||null!==C){var j=s(b)?"function"==typeof o?o(n,_):n:n+(d?"."+_:"["+_+"]");c(O,e(C,j,o,i,a,u,l,f,d,h,m,y,g))}}return O};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(14),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(3),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(26),a=n(70),s=n(71),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){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},g=function(e){a(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.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){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(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(26);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(15),o=n(28);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(15).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(79),o=n(12);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";
|
9 |
/** @license React v1.3.0
|
10 |
* use-subscription.production.min.js
|
11 |
*
|
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=85)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return u}));var r=function(){return(r=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 o(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 i(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function a(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 s(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 u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";n.d(t,"c",(function(){return R})),n.d(t,"b",(function(){return I})),n.d(t,"a",(function(){return k}));var r=n(0),o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function a(){if(!o)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}for(var s=[],u=0;u<256;++u)s[u]=(u+256).toString(16).substr(1);var c=function(e,t){var n=t||0,r=s;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 l,f=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||a)();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||c(o)},p=n(31),d=n.n(p),h=n(13),m=n.n(h),y=n(10),g=n.n(y)()("wpcom-proxy-request"),v="https://public-api.wordpress.com",b=window.location.protocol+"//"+window.location.host,S=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),O=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),E=null,w=!1,_={},C=!!window.ProgressEvent&&!!window.FormData;g('using "origin": %o',b);var j=function(e,t){var n=Object.assign({},e);g("request(%o)",n),E||P();var r=f();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=C,n.method=String(n.method||"GET").toUpperCase(),g("params object: %o",n);var o=new window.XMLHttpRequest;if(o.params=n,_[r]=o,"function"==typeof t){var i=!1,a=function(e){if(!i){i=!0;var n=e.error||e.err||e;g("error: ",n),g("headers: ",e.headers),t(n,null,e.headers)}};o.addEventListener("load",(function(e){if(!i){i=!0;var n=e.response||o.response;g("body: ",n),g("headers: ",e.headers),t(null,n,e.headers)}})),o.addEventListener("abort",a),o.addEventListener("error",a)}return w?N(n):(g("buffering API request since proxying <iframe> is not yet loaded"),l.push(n)),o},x=function(e,t){return"function"==typeof t?j(e,t):new Promise((function(t,n){j(e,(function(e,r){e?n(e):t(r)}))}))};function N(e){g("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!O)return;for(var t=0;t<e.length;t++){var n=T(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),E.contentWindow.postMessage(S?JSON.stringify(e):e,v)}function A(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function T(e){return A(e)?e:"object"==typeof e&&A(e.fileContents)?e.fileContents:null}function P(){g("install()"),E&&(g("uninstall()"),window.removeEventListener("message",F),document.body.removeChild(E),w=!1,E=null),l=[],window.addEventListener("message",F),(E=document.createElement("iframe")).src=v+"/wp-admin/rest-proxy/?v=2.0#"+b,E.style.display="none",document.body.appendChild(E)}function F(e){if(g("onmessage"),e.origin===v){var t=e.data;if(!t)return g("no `data`, bailing");if("ready"!==t){if(S&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){g('got "progress" event: %o',e);var t=_[e.callbackId];if(t){var n=new m.a("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return g("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in _))return g("bailing, no matching request with callback: %o",n);var r=_[n],o=r.params,i=t[0],a=t[1],s=t[2];if(207===a||delete _[n],o.metaAPI?a="metaAPIupdated"===i?200:500:g("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 m.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 m.a("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}(r,d()(o,a,i),s)}else!function(){if(g('proxy <iframe> "load" event'),w=!0,l){for(var e=0;e<l.length;e++)N(l[e]);l=null}}()}else g("ignoring message... %o !== %o",e.origin,v)}var L=x,R=function(e){return{type:"WPCOM_REQUEST",request:e}},I=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},k={WPCOM_REQUEST:function(e){var t=e.request;return L(t)},FETCH_AND_PARSE:function(e){var t=e.resource,n=e.options;return Object(r.b)(void 0,void 0,void 0,(function(){var e,o;return Object(r.c)(this,(function(r){switch(r.label){case 0:return[4,window.fetch(t,n)];case 1:return e=r.sent(),o={ok:e.ok},[4,e.json()];case 2:return[2,(o.body=r.sent(),o)]}}))}))},RELOAD_PROXY:function(){P()},REQUEST_ALL_BLOGS_ACCESS:function(){return x({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t,n){"use strict";var r=n(19);n.d(t,"DomainSuggestions",(function(){return r}));var o=n(30);n.d(t,"Plans",(function(){return o}));var i=n(24);n.d(t,"Site",(function(){return i}))},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){"use strict";n.d(t,"a",(function(){return r}));var r="automattic/domains/suggestions"},function(e,t,n){"use strict";n.r(t),n.d(t,"receiveCategories",(function(){return r})),n.d(t,"receiveDomainSuggestions",(function(){return o}));var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},o=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS",queryObject:e,suggestions:t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="automattic/site"},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(62)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(33),o=n.n(r).a},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(28),o=n(27);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(63),o=n(64),i=n(22),a=n(65);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(6);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,n){"use strict";n.r(t),n.d(t,"register",(function(){return d}));var r=n(1),o=n(7),i=n(32),a=n(8),s=n(34),u=n(36),c=n(2),l=n(20);for(var f in l)["default","register"].indexOf(f)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(f);var p=!1;function d(e){var t=e.vendor;return p||(p=!0,Object(r.registerStore)(o.a,{actions:a,controls:c.a,reducer:i.a,resolvers:s,selectors:Object(u.a)(t)})),o.a}},function(e,t){},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(21);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(14),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";n.r(t),n.d(t,"register",(function(){return d}));var r=n(1),o=n(9),i=n(38),a=n(37),s=n(39),u=n(40),c=n(2),l=n(25);for(var f in l)["default","register"].indexOf(f)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(f);var p=!1;function d(e){return p||(p=!0,Object(r.registerStore)(o.a,{actions:Object(a.a)(e),controls:c.a,reducer:i.a,resolvers:s,selectors:u})),o.a}},function(e,t){},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){"use strict";function r(e){var t=e,n=e+"_TS",r={},o={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[e]}},i=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:o;return{storageKey:t,storage:{getItem:function(e){var r=i.getItem(n);return r&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(r)&&!new URLSearchParams(window.location.search).has("fresh")?i.getItem(e):(i.removeItem(t),i.removeItem(n),null)},setItem:function(e,t){i.setItem(n,JSON.stringify(Date.now())),i.setItem(e,t)}}}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"plansPaths",(function(){return Ae})),n.d(t,"PLAN_FREE",(function(){return p})),n.d(t,"PLAN_PERSONAL",(function(){return d})),n.d(t,"PLAN_PREMIUM",(function(){return h})),n.d(t,"PLAN_BUSINESS",(function(){return m})),n.d(t,"PLAN_ECOMMERCE",(function(){return y})),n.d(t,"register",(function(){return $e}));var r={};n.r(r),n.d(r,"setPrices",(function(){return Re})),n.d(r,"resetPlan",(function(){return Ie}));var o={};n.r(o),n.d(o,"getPlanBySlug",(function(){return Me})),n.d(o,"getDefaultPaidPlan",(function(){return De})),n.d(o,"getSupportedPlans",(function(){return Ue})),n.d(o,"getPlanByPath",(function(){return He})),n.d(o,"getPlansDetails",(function(){return Be})),n.d(o,"getPlansPaths",(function(){return Ve})),n.d(o,"getPrices",(function(){return We})),n.d(o,"isPlanEcommerce",(function(){return Ge})),n.d(o,"isPlanFree",(function(){return qe}));var i={};n.r(i),n.d(i,"getPrices",(function(){return ze}));var a,s,u,c,l=n(4),f=n(1),p="free_plan",d="personal-bundle",h="value_bundle",m="business-bundle",y="ecommerce-bundle",g="automattic/onboard/plans",v=h,b={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}},S=n(0),O=n(16),E=n.n(O),w=n(6),_=n.n(w),C=n(10),j=n.n(C),x=n(41),N=n.n(x);a={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],u={")":["("],":":["?","?:"]},c=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var A={"!":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 T(e){var t=function(e){for(var t,n,r,o,i=[],l=[];t=e.match(c);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=l.pop();){if(u[n]){if(u[n][0]===o){n=u[n][1]||n;break}}else if(s.indexOf(o)>=0||a[o]<a[n]){l.push(o);break}i.push(o)}u[n]||l.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(l.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=A[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 P={contextDelimiter:"",onMissingKey:null};function F(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},P)this.options[n]=void 0!==t&&n in t?t[n]:P[n]}F.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=T(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},F.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 L=n(42),R=n.n(L),I=n(43),k=n.n(I),M=n(17),D=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function U(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(D,(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:"")}))}
|
2 |
/*
|
3 |
* Exposes number format capability
|
4 |
*
|
5 |
* @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
|
6 |
* @license See CREDITS.md
|
7 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
8 |
+
*/function H(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 B=j()("i18n-calypso"),V="number_format_decimals",W="number_format_thousands_sep",G="messages",q=[function(e){return e}],z={};function Y(){Z.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function $(e){return Array.prototype.slice.call(e)}function K(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&Y("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",$(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&Y("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",$(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 J(e,t){return e.dcnpgettext(G,t.context,t.original,t.plural,t.count)}function Q(e,t){for(var n=q.length-1;n>=0;n--){var r=q[n](Object.assign({},t)),o=r.context?r.context+""+r.original:r.original;if(e.state.locale[o])return J(e.state.tannin,r)}return null}function Z(){if(!(this instanceof Z))return new Z;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:R()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new M.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Z.throwErrors=!1,Z.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},Z.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},Z.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},Z.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 H(e,n,r,o)},Z.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Z.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!==z[n+e])return z[n+e];var r=k()().update(e).digest("hex");return z[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)q.push(a(!1));else{var s=o.substr(5).indexOf("-");if(s<0){var u=Number(o.substr(5));q.push(a(u))}else for(var c=Number(o.substr(5,s)),l=Number(o.substr(6+s)),f=c;f<=l;f++)q.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 F(_()({},G,this.state.locale)),this.state.numberFormatSettings.decimal_point=J(this.state.tannin,K([V])),this.state.numberFormatSettings.thousands_sep=J(this.state.tannin,K([W])),this.state.numberFormatSettings.decimal_point===V&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===W&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},Z.prototype.getLocale=function(){return this.state.locale},Z.prototype.getLocaleSlug=function(){return this.state.localeSlug},Z.prototype.isRtl=function(){return"rtl"===this.state.textDirection},Z.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},Z.prototype.hasTranslation=function(){return!!Q(this,K(arguments))},Z.prototype.translate=function(){var e=K(arguments),t=Q(this,e);if(t||(t=J(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=U.apply(void 0,E()(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=N()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},Z.prototype.reRenderTranslations=function(){B("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},Z.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},Z.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var X=Z,ee=n(18),te=n.n(ee),ne=n(44),re=n.n(ne),oe=n(45),ie=n.n(oe),ae=n(12),se=n.n(ae),ue=n(46),ce=n.n(ue),le=n(47),fe=n.n(le),pe=n(3),de=n.n(pe),he=n(48),me=n.n(he),ye=n(49),ge=n.n(ye),ve=n(50),be=n(51);var Se,Oe,Ee,we,_e=new X,Ce=(_e.numberFormat.bind(_e),_e.translate.bind(_e)),je=(_e.configure.bind(_e),_e.setLocale.bind(_e),_e.getLocale.bind(_e),_e.getLocaleSlug.bind(_e),_e.addTranslations.bind(_e),_e.reRenderTranslations.bind(_e),_e.registerComponentUpdateHook.bind(_e),_e.registerTranslateHook.bind(_e),_e.state,_e.stateObserver,_e.on.bind(_e),_e.off.bind(_e),_e.emit.bind(_e),Oe={numberFormat:(Se=_e).numberFormat.bind(Se),translate:Se.translate.bind(Se)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(_e),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(ve.useSubscription)(t)}var r=Object(be.createHigherOrderComponent)((function(e){return Object(pe.forwardRef)((function(t,r){var o=n();return de.a.createElement(e,ge()({},t,{isRtl:o,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(_e)),xe=(je.useRtl,je.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"]),Ne=((Ee={})[p]={title:Ce("Free"),productId:1,storeSlug:p,pathSlug:"beginner",features:["3 GB storage space"],isFree:!0},Ee[d]={title:Ce("Personal"),productId:1009,storeSlug:d,pathSlug:"personal",features:Object(S.e)(["6 GB storage space"],xe.slice(0,3))},Ee[h]={title:Ce("Premium"),productId:1003,storeSlug:h,pathSlug:"premium",features:Object(S.e)(["13 GB storage space"],xe.slice(0,8)),isPopular:!0},Ee[m]={title:Ce("Business"),productId:1008,storeSlug:m,pathSlug:"business",features:Object(S.e)(["200 GB storage space"],xe.slice(0,11))},Ee[y]={title:Ce("eCommerce"),productId:1011,storeSlug:y,pathSlug:"ecommerce",features:Object(S.e)(["200 GB storage space"],xe)},Ee),Ae=Object.keys(Ne).map((function(e){return Ne[e].pathSlug})),Te=[{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]}]}],Pe=Object.keys(Ne),Fe={supportedPlanSlugs:Pe,prices:(we={},we[p]="",we[d]="",we[h]="",we[m]="",we[y]="",we)},Le=function(e,t){switch(void 0===e&&(e=Fe),t.type){case"SET_PRICES":return Object(S.a)(Object(S.a)({},e),{prices:t.prices});default:return e}},Re=function(e){return{type:"SET_PRICES",prices:e}},Ie=function(){return{type:"RESET_PLAN"}};function ke(e){return Ne[e]}var Me=function(e,t){return ke(t)},De=function(){return ke(v)},Ue=function(e){return e.supportedPlanSlugs.map(ke)},He=function(e,t){return t&&Ue(e).find((function(e){return(null==e?void 0:e.pathSlug)===t}))},Be=function(){return Te},Ve=function(e){return Ue(e).map((function(e){return null==e?void 0:e.pathSlug}))},We=function(e){return e.prices},Ge=function(e,t){return t===y},qe=function(e,t){return t===p};function ze(){var e,t,n;return Object(S.c)(this,(function(r){switch(r.label){case 0:return[4,Object(l.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!==Pe.indexOf(e.product_slug)})),n=t.reduce((function(e,t){return e[t.product_slug]=function(e){var t=b[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,Re(n)];case 2:return r.sent(),[2]}}))}var Ye=!1;function $e(){return Ye||(Ye=!0,Object(f.registerStore)(g,{resolvers:i,actions:r,controls:l.controls,reducer:Le,selectors:o})),g}},function(e,t,n){var r=n(59),o=n(61);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";var r=n(0),o=n(1),i=n(11),a=Object(o.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={}),"RECEIVE_DOMAIN_SUGGESTIONS"===t.type?Object(r.a)(Object(r.a)({},e),((n={})[Object(i.a)(t.queryObject)]=t.suggestions,n)):e}});t.a=a},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";n.r(t),n.d(t,"getCategories",(function(){return s})),n.d(t,"__internalGetDomainSuggestions",(function(){return u}));var r=n(0),o=n(35),i=n(8),a=n(2);function s(){var e;return Object(r.c)(this,(function(t){switch(t.label){case 0:return[4,Object(a.b)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories")];case 1:return e=t.sent(),[2,Object(i.receiveCategories)(e.body)]}}))}function u(e){var t;return Object(r.c)(this,(function(n){switch(n.label){case 0:return e.query?[4,Object(a.c)({apiVersion:"1.1",path:"/domains/suggestions",query:Object(o.stringify)(e)})]:[2,Object(i.receiveDomainSuggestions)(e,[])];case 1:return t=n.sent(),[2,Object(i.receiveDomainSuggestions)(e,t)]}}))}},function(e,t,n){"use strict";var r=n(67),o=n(68),i=n(23);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(7),a=n(11);t.a=function(e){function t(t,n){return Object(r.a)(Object(r.a)({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 Object(r.e)(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 a=t(n,r);return Object(o.select)(i.a).__internalGetDomainSuggestions(a)},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n,r){void 0===r&&(r={});var a=t(n,r);return Object(o.select)("core/data").isResolving(i.a,"__internalGetDomainSuggestions",[a])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions[Object(a.a)(t)]}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(2);function i(e){var t=function(){return{type:"FETCH_NEW_SITE"}},n=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},i=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};var a=function(e){return{type:"LAUNCHED_SITE",siteId:e}};return{fetchNewSite:t,receiveNewSite:n,receiveNewSiteFailed:i,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:function(t){var a,s,u,c,l,f;return Object(r.c)(this,(function(p){switch(p.label){case 0:return[4,{type:"FETCH_NEW_SITE"}];case 1:p.sent(),p.label=2;case 2:return p.trys.push([2,5,,7]),a=t.authToken,s=Object(r.d)(t,["authToken"]),u={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},c=Object(r.a)(Object(r.a)(Object(r.a)({},u),s),{validate:!1}),[4,Object(o.c)({path:"/sites/new",apiVersion:"1.1",method:"post",body:c,token:a})];case 3:return l=p.sent(),[4,n(l)];case 4:return p.sent(),[2,!0];case 5:return f=p.sent(),[4,i(f)];case 6:return p.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 Object(r.c)(this,(function(t){switch(t.label){case 0:return[4,Object(o.c)({path:"/sites/"+e+"/launch",apiVersion:"1.1",method:"post"})];case 1:return t.sent(),[4,a(e)];case 2:return t.sent(),[2,!0]}}))},launchedSite:a,getCart:function(e){return Object(r.c)(this,(function(t){switch(t.label){case 0:return[4,Object(o.c)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})];case 1:return[2,t.sent()]}}))},setCart:function(e,t){return Object(r.c)(this,(function(n){switch(n.label){case 0:return[4,Object(o.c)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})];case 1:return[2,n.sent()]}}))}}}},function(e,t,n){"use strict";var r=n(0),o=n(1),i=Object(o.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}}),a=Object(o.combineReducers)({newSite:i,sites:function(e,t){var n;if(void 0===e&&(e={}),"RECEIVE_SITE"===t.type)return Object(r.a)(Object(r.a)({},e),((n={})[t.siteId]=t.response,n));if("RECEIVE_SITE_FAILED"===t.type){var o=e,i=t.siteId,a=(o[i],Object(r.d)(o,["symbol"==typeof i?i:i+""]));return Object(r.a)({},a)}return"RESET_SITE_STORE"===t.type?{}:e},launchStatus:function(e,t){var n;return void 0===e&&(e={}),"LAUNCHED_SITE"===t.type?Object(r.a)(Object(r.a)({},e),((n={})[t.siteId]=!0,n)):e}});t.a=a},function(e,t,n){"use strict";n.r(t),n.d(t,"getSite",(function(){return s}));var r=n(0),o=n(1),i=n(2),a=n(9);function s(e){var t;return Object(r.c)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,5]),[4,Object(i.c)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"})];case 1:return t=n.sent(),[4,Object(o.dispatch)(a.a).receiveSite(e,t)];case 2:return n.sent(),[3,5];case 3:return n.sent(),[4,Object(o.dispatch)(a.a).receiveSiteFailed(e,void 0)];case 4:return n.sent(),[3,5];case 5:return[2]}}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"getState",(function(){return r})),n.d(t,"getNewSite",(function(){return o})),n.d(t,"getNewSiteError",(function(){return i})),n.d(t,"isFetchingSite",(function(){return a})),n.d(t,"isNewSite",(function(){return s})),n.d(t,"getSite",(function(){return u})),n.d(t,"isLaunched",(function(){return c}));var r=function(e){return e},o=function(e){return e.newSite.data},i=function(e){return e.newSite.error},a=function(e){return e.newSite.isFetching},s=function(e){return!!e.newSite.data},u=function(e,t){return e.sites[t]},c=function(e,t){return e.launchStatus[t]}},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(3)),i=s(n(69)),a=s(n(72));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(17),o=n(27);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(15),o=n(73),i=n(74),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(75);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(76),o=n(77),i=n(78);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(80),o=n(81),i=n(22),a=n(82);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(83)},function(e,t){!function(){e.exports=this.wp.compose}()},,,,,,,,function(e,t,n){"use strict";var r=n(60);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(16);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(66),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(21);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(14),o=n(23),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,O=[];if(void 0===b)return O;if(s(l))S=l;else{var E=Object.keys(b);S=f?E.sort(f):E}for(var w=0;w<S.length;++w){var _=S[w],C=b[_];if(!a||null!==C){var j=s(b)?"function"==typeof o?o(n,_):n:n+(d?"."+_:"["+_+"]");c(O,e(C,j,o,i,a,u,l,f,d,h,m,y,g))}}return O};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(14),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(3),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(26),a=n(70),s=n(71),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(26);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(15),o=n(28);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(15).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(79),o=n(12);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";
|
9 |
/** @license React v1.3.0
|
10 |
* use-subscription.production.min.js
|
11 |
*
|
dotcom-fse/dist/dotcom-fse.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => 'a90c0f1973eae4a1ea86922ad1470192');
|
dotcom-fse/dist/dotcom-fse.js
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var l=r.apply(null,o);l&&e.push(l)}else if("object"===i)for(var c in o)n.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){var o=n(38),r=n(39),i=n(17),l=n(40);e.exports=function(e,t){return o(e)||r(e,t)||i(e,t)||l()}},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){var o=n(18);e.exports=function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}},function(e,t,n){},function(e,t){!function(){e.exports=this.wp.serverSideRender}()},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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),e}},function(e,t,n){var o=n(31);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&&o(e,t)}},function(e,t,n){var o=n(32),r=n(33),i=n(34);e.exports=function(e){var t=r();return function(){var n,r=o(e);if(t){var l=o(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return i(this,n)}}},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){var o=n(45),r=n(46),i=n(17),l=n(47);e.exports=function(e){return o(e)||r(e)||i(e)||l()}},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,n){},function(e,t){function n(t,o){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,o)}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 o=n(35),r=n(36);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?r(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(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,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=[],o=!0,r=!1,i=void 0;try{for(var l,c=e[Symbol.iterator]();!(o=(l=c.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(a){r=!0,i=a}finally{try{o||null==c.return||c.return()}finally{if(r)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){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var o=n(18);e.exports=function(e){if(Array.isArray(e))return o(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,n){},function(e,t,n){"use strict";n.r(t);var o=n(0),r=n(8),i=n(1),l=n(10),c=n.n(l),a=n(20),s=n.n(a),u=n(4),d=n(2),p=n(5),f=n(3),b=Object(u.compose)([Object(d.withColors)("backgroundColor",{textColor:"color"}),Object(d.withFontSizes)("fontSize"),Object(f.withSelect)((function(e){return{isPublished:e("core/editor").isCurrentPostPublished()}}))])((function(e){var t=e.attributes,n=e.backgroundColor,r=e.fontSize,l=e.setAttributes,a=e.setBackgroundColor,u=e.setFontSize,f=e.setTextColor,b=e.textColor,m=e.isPublished,g=t.customFontSize,O=t.textAlign,j=g||r.size;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d.BlockControls,null,Object(o.createElement)(d.AlignmentToolbar,{value:O,onChange:function(e){l({textAlign:e})}})),Object(o.createElement)(d.InspectorControls,null,Object(o.createElement)(p.PanelBody,{className:"blocks-font-size",title:Object(i.__)("Text Settings","full-site-editing")},Object(o.createElement)(d.FontSizePicker,{onChange:u,value:j})),Object(o.createElement)(d.PanelColorSettings,{title:Object(i.__)("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:n.color,onChange:a,label:Object(i.__)("Background Color","full-site-editing")},{value:b.color,onChange:f,label:Object(i.__)("Text Color","full-site-editing")}]},Object(o.createElement)(d.ContrastChecker,c()({textColor:b.color,backgroundColor:n.color},{fontSize:j})))),Object(o.createElement)(s.a,{isPublished:m,block:"a8c/navigation-menu",attributes:t}))}));function m(){for(var e=Object(r.getCategories)(),t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];for(var i=function(){var t=c[l];if(e.some((function(e){return e.slug===t})))return{v:t}},l=0,c=n;l<c.length;l++){var a=i();if("object"==typeof a)return a.v}throw new Error("Could not find a category from the provided list: ".concat(n.join(",")))}n(30);var g=Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)("path",{d:"M12 7.27l4.28 10.43-3.47-1.53-.81-.36-.81.36-3.47 1.53L12 7.27M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2z"}));Object(r.registerBlockType)("a8c/navigation-menu",{title:Object(i.__)("Navigation Menu","full-site-editing"),description:Object(i.__)("Visual placeholder for site-wide navigation and menus.","full-site-editing"),icon:g,category:m("design","layout"),supports:{align:["wide","full","right","left"],html:!1,reusable:!1},edit:b,save:function(){return null}});var O=n(12),j=n(6),v=n.n(j),h=n(21),y=n.n(h),_=n(22),S=n.n(_),E=n(23),w=n.n(E),k=n(24),C=n.n(k),x=n(11),P=n.n(x),T=n(25),B=function(e){w()(n,e);var t=C()(n);function n(){return y()(this,n),t.apply(this,arguments)}return S()(n,[{key:"toggleEditing",value:function(){var e=this.props,t=e.isEditing;(0,e.setState)({isEditing:!t})}},{key:"onSelectPost",value:function(e){var t=e.id,n=e.type;this.props.setState({isEditing:!1,selectedPostId:t,selectedPostType:n})}},{key:"render",value:function(){var e=this.props.attributes.align;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:P()("post-content-block",v()({},"align".concat(e),e))},Object(o.createElement)(T.PostTitle,null),Object(o.createElement)(d.InnerBlocks,{templateLock:!1})))}}]),n}(o.Component),I=Object(u.compose)([Object(u.withState)({isEditing:!1,selectedPostId:void 0,selectedPostType:void 0}),Object(f.withSelect)((function(e,t){var n=t.selectedPostId,o=t.selectedPostType;return{selectedPost:(0,e("core").getEntityRecord)("postType",o,n)}}))])(B);n(37);Object(r.registerBlockType)("a8c/post-content",{title:Object(i.__)("Content","full-site-editing"),description:Object(i.__)("The page content.","full-site-editing"),icon:"layout",category:m("design","layout"),supports:{align:["full"],anchor:!1,customClassName:!1,html:!1,inserter:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"full"}},edit:I,save:function(){return Object(o.createElement)(d.InnerBlocks.Content,null)}});var N=Object(u.createHigherOrderComponent)((function(e){return function(t){return"a8c/post-content"!==t.name?Object(o.createElement)(e,t):Object(o.createElement)(e,c()({},t,{className:"post-content__block"}))}}),"addContentSlotClassname");Object(O.addFilter)("editor.BlockListBlock","full-site-editing/blocks/post-content",N,9);var A=n(7),z=n.n(A),D=n(13),F=n.n(D),L=n(15),R=n.n(L),M=n(16);function V(e){var t=Object(o.useRef)();return Object(o.useEffect)((function(){t.current=e}),[e]),t.current}function U(e,t,n,r,l,c){var a=Object(o.useState)({option:t,previousOption:"",loaded:!1,error:!1}),s=F()(a,2),u=s[0],d=s[1],p=V(r),f=V(l);function b(){d(z()(z()({},u),{},{option:u.previousOption,isSaving:!1}))}return Object(o.useEffect)((function(){u.loaded||u.error?function(){var t=u.option,o=u.previousOption,c=!o&&!t||t&&o&&t.trim()===o.trim(),a=!t||0===t.trim().length;!r&&p&&a&&b();if(!l||c)return;!f&&l&&function(t){d(z()(z()({},u),{},{isSaving:!0})),R()({path:"/wp/v2/settings",method:"POST",data:v()({},e,t)}).then((function(){return function(e){d(z()(z()({},u),{},{previousOption:e,isDirty:!1,isSaving:!1}))}(t)})).catch((function(){n(Object(i.sprintf)(Object(i.__)("Unable to save site %s","full-site-editing"),e)),b()}))}(t)}():R()({path:"/wp/v2/settings"}).then((function(t){return d(z()(z()({},u),{},{option:Object(M.decodeEntities)(t[e]),previousOption:Object(M.decodeEntities)(t[e]),loaded:!0,error:!1}))})).catch((function(){n(Object(i.sprintf)(Object(i.__)("Unable to load site %s","full-site-editing"),e)),d(z()(z()({},u),{},{option:Object(i.sprintf)(Object(i.__)("Error loading site %s","full-site-editing"),e),error:!0}))}))})),{siteOptions:u,handleChange:function(e){c({updated:Date.now()}),d(z()(z()({},u),{},{option:e}))}}}var H=function(e){return Object(u.createHigherOrderComponent)((function(t){return Object(u.pure)((function(n){var r=Object(f.useSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,o=t.isPublishingPost,r=t.isAutosavingPost,i=t.isCurrentPostPublished;return(n()&&i()||o())&&!r()})),i=Object(f.useDispatch)((function(e){return e("core/notices").createErrorNotice})),l=n.isSelected,a=n.setAttributes,s=Object.keys(e).reduce((function(t,n){var o=e[n],c=U(o.optionName,o.defaultValue,i,l,r,a),s=c.siteOptions,u=c.handleChange;return t[n]={value:s.option,updateValue:u,loaded:s.loaded},t}),{});return Object(o.createElement)(t,c()({},n,s))}))}),"withSiteOptions")},q=fullSiteEditing.footerCreditOptions,W=function(e){var t=e.choice,n=q.find((function(e){return e.value===t}));if(!n)return null;var r=n.renderType,i=n.renderProps,l=n.label,c=z()({label:l},i);return"icon"===r?Object(o.createElement)(p.Icon,c):Object(o.createElement)("span",null," ",c.label," ")},G=fullSiteEditing,Q=G.footerCreditOptions,Y=G.defaultCreditOption;var $=Object(u.compose)([H({siteTitleOption:{optionName:"title",defaultValue:Object(i.__)("Site title loading…","full-site-editing")},footerCreditOption:{optionName:"footer_credit",defaultValue:Object(i.__)("Footer credit loading…","full-site-editing")}})])((function(e){var t=e.attributes.textAlign,n=void 0===t?"center":t,r=e.isSelected,i=e.setAttributes,l=e.footerCreditOption,c=l.value,a=l.updateValue,s=e.siteTitleOption.value,u=c||Y;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d.BlockControls,null,Object(o.createElement)(d.AlignmentToolbar,{value:n,onChange:function(e){i({textAlign:e})}})),Object(o.createElement)("div",{className:P()("site-info","site-credit__block",v()({},"has-text-align-".concat(n),n))},Object(o.createElement)("span",{className:"site-name"},s),Object(o.createElement)("span",{className:"comma"},","),Object(o.createElement)("span",{className:"site-credit__selection"},r?Object(o.createElement)(p.SelectControl,{onChange:a,value:u,options:Q}):Object(o.createElement)(W,{choice:u}))))}));n(41);Object(r.registerBlockType)("a8c/site-credit",{title:Object(i.__)("WordPress.com Credit","full-site-editing"),description:Object(i.__)("This block tells the world that you're using WordPress.com.","full-site-editing"),icon:"wordpress-alt",category:m("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1,removal:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"}},edit:$,save:function(){return null}});var J=n(9);var K=Object(u.compose)([Object(d.withColors)("backgroundColor",{textColor:"color"}),Object(d.withFontSizes)("fontSize"),Object(f.withSelect)((function(e,t){var n=t.clientId,o=e("core/block-editor"),r=o.getBlockIndex,i=o.getBlockRootClientId,l=o.getTemplateLock,c=i(n);return{blockIndex:r(n,c),isLocked:!!l(c),rootClientId:c}})),Object(f.withDispatch)((function(e,t){var n=t.blockIndex,o=t.rootClientId;return{insertDefaultBlock:function(){return e("core/block-editor").insertDefaultBlock({},o,n+1)}}})),H({siteDescription:{optionName:"description",defaultValue:Object(i.__)("Site description loading…","full-site-editing")}})])((function(e){var t,n=e.attributes,r=e.backgroundColor,l=e.className,a=e.fontSize,s=e.insertDefaultBlock,u=e.setAttributes,f=e.setBackgroundColor,b=e.setFontSize,m=e.setTextColor,g=e.siteDescription,O=e.textColor,j=n.customFontSize,h=n.textAlign,y=j||a.size,_=g.value,S=g.updateValue;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d.BlockControls,null,Object(o.createElement)(d.AlignmentToolbar,{value:h,onChange:function(e){u({textAlign:e})}})),Object(o.createElement)(d.InspectorControls,null,Object(o.createElement)(p.PanelBody,{className:"blocks-font-size",title:Object(i.__)("Text Settings","full-site-editing")},Object(o.createElement)(d.FontSizePicker,{onChange:b,value:y})),Object(o.createElement)(d.PanelColorSettings,{title:Object(i.__)("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:r.color,onChange:f,label:Object(i.__)("Background Color","full-site-editing")},{value:O.color,onChange:m,label:Object(i.__)("Text Color","full-site-editing")}]},Object(o.createElement)(d.ContrastChecker,c()({textColor:O.color,backgroundColor:r.color},{fontSize:y})))),Object(o.createElement)(d.RichText,{allowedFormats:[],"aria-label":Object(i.__)("Site Description","full-site-editing"),className:P()("site-description",l,(t={"has-text-color":O.color,"has-background":r.color},v()(t,"has-text-align-".concat(h),h),v()(t,r.class,r.class),v()(t,O.class,O.class),v()(t,a.class,!j&&a.class),t)),identifier:"content",onChange:S,onReplace:s,onSplit:J.noop,placeholder:Object(i.__)("Add a Site Description","full-site-editing"),style:{backgroundColor:r.color,color:O.color,fontSize:y?y+"px":void 0},tagName:"p",value:_}))}));n(42);Object(r.registerBlockType)("a8c/site-description",{title:Object(i.__)("Site Description","full-site-editing"),description:Object(i.__)("Site description, also known as the tagline.","full-site-editing"),icon:Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(o.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),Object(o.createElement)("path",{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),category:m("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string",default:"small"},customFontSize:{type:"number"}},edit:K,save:function(){return null}});var X=Object(u.compose)([Object(d.withColors)({textColor:"color"}),Object(d.withFontSizes)("fontSize"),Object(f.withSelect)((function(e,t){var n=t.clientId,o=e("core/block-editor"),r=o.getBlockIndex,i=o.getBlockRootClientId,l=o.getTemplateLock,c=i(n);return{blockIndex:r(n,c),isLocked:!!l(c),rootClientId:c}})),Object(f.withDispatch)((function(e,t){var n=t.blockIndex,o=t.rootClientId;return{insertDefaultBlock:function(){return e("core/block-editor").insertDefaultBlock({},o,n+1)}}})),H({siteTitle:{optionName:"title",defaultValue:Object(i.__)("Site title loading…","full-site-editing")}})])((function(e){var t,n=e.attributes,r=e.className,l=e.fontSize,c=e.insertDefaultBlock,a=e.setAttributes,s=e.setFontSize,u=e.setTextColor,f=e.siteTitle,b=e.textColor,m=n.customFontSize,g=n.textAlign,O=m||l.size,j=f.value,h=f.updateValue;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d.BlockControls,null,Object(o.createElement)(d.AlignmentToolbar,{value:g,onChange:function(e){a({textAlign:e})}})),Object(o.createElement)(d.InspectorControls,null,Object(o.createElement)(p.PanelBody,{className:"blocks-font-size",title:Object(i.__)("Text Settings","full-site-editing")},Object(o.createElement)(d.FontSizePicker,{onChange:s,value:O})),Object(o.createElement)(d.PanelColorSettings,{title:Object(i.__)("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:b.color,onChange:u,label:Object(i.__)("Text Color","full-site-editing")}]})),Object(o.createElement)(d.RichText,{allowedFormats:[],"aria-label":Object(i.__)("Site Title","full-site-editing"),className:P()("site-title",r,(t={"has-text-color":b.color},v()(t,"has-text-align-".concat(g),g),v()(t,b.class,b.class),v()(t,l.class,!m&&l.class),t)),identifier:"content",onChange:h,onReplace:c,onSplit:J.noop,placeholder:Object(i.__)("Add a Site Title","full-site-editing"),style:{color:b.color,fontSize:O?O+"px":void 0},tagName:"h1",value:j}))}));n(43);Object(r.registerBlockType)("a8c/site-title",{title:Object(i.__)("Site Title","full-site-editing"),description:Object(i.__)("Your site title.","full-site-editing"),icon:"layout",category:m("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string",default:"normal"},customFontSize:{type:"number"}},edit:X,save:function(){return null}});var Z=n(26),ee=(n(19),Object(u.compose)(Object(u.withState)({templateClientId:null}),Object(f.withSelect)((function(e,t){var n=t.attributes,o=t.templateClientId,r=e("core").getEntityRecord,i=e("core/editor"),l=i.getCurrentPostId,c=i.isEditedPostDirty,a=e("core/block-editor"),s=a.getBlock,u=a.getSelectedBlock,d=e("core/edit-post").isEditorSidebarOpened,p=n.templateId,f=l(),b=p&&r("postType","wp_template_part",p),m=Object(Z.addQueryArgs)(fullSiteEditing.editTemplateBaseUrl,{post:p,fse_parent_post:f}),g=u();return{currentPostId:f,editTemplateUrl:m,template:b,templateBlock:s(o),templateTitle:Object(J.get)(b,["title","rendered"],""),isDirty:c(),isEditorSidebarOpened:!!d(),isAnyTemplateBlockSelected:g&&"a8c/template"===g.name}})),Object(f.withDispatch)((function(e,t){var n=e("core/block-editor").receiveBlocks,o=e("core/edit-post").openGeneralSidebar,i=t.template,l=t.templateClientId,c=t.setState;return{savePost:e("core/editor").savePost,receiveTemplateBlocks:function(){if(i&&!l){var e=Object(r.parse)(Object(J.get)(i,["content","raw"],"")),t=Object(r.createBlock)("core/group",{},e);n([t]),c({templateClientId:t.clientId})}},openGeneralSidebar:o}})))((function(e){var t,n=e.attributes,r=e.editTemplateUrl,l=e.receiveTemplateBlocks,c=e.template,a=e.templateBlock,s=e.templateTitle,u=e.isDirty,f=e.savePost,b=e.isEditorSidebarOpened,m=e.openGeneralSidebar,g=e.isAnyTemplateBlockSelected;if(!c)return Object(o.createElement)(p.Placeholder,{className:"template-block__placeholder"},Object(o.createElement)(p.Spinner,null));var O=Object(o.createRef)(),j=Object(o.useState)(!1),h=F()(j,2),y=h[0],_=h[1];Object(o.useEffect)((function(){y&&!u&&O.current.click(),l()})),Object(o.useEffect)((function(){var e=document.querySelector(".edit-post-sidebar__panel-tabs ul li:last-child");if(b&&e){if(g)return m("edit-post/document"),void e.classList.add("hidden");e.classList.remove("hidden")}}),[g,b,m]);var S=n.align,E=n.className,w=function(e){e.stopPropagation(),_(!0),u&&(e.preventDefault(),f())};return Object(o.createElement)("div",{className:P()("template-block",(t={},v()(t,"align".concat(S),S),v()(t,"is-navigating-to-template",y),t))},a&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(p.Disabled,null,Object(o.createElement)("div",{className:E},Object(o.createElement)(d.BlockEdit,{attributes:a.attributes,block:a,clientId:a.clientId,isSelected:!1,name:a.name,setAttributes:J.noop}))),Object(o.createElement)(p.Placeholder,{className:"template-block__overlay",onClick:w},y&&Object(o.createElement)("div",{className:"template-block__loading"},Object(o.createElement)(p.Spinner,null)," ",Object(i.sprintf)(Object(i.__)("Loading editor for: %s","full-site-editing"),s)),Object(o.createElement)(p.Button,{className:y?"hidden":null,href:r,onClick:w,isDefault:!0,isLarge:!0,ref:O},Object(i.sprintf)(Object(i.__)("Edit %s","full-site-editing"),s)))))}))),te=Object(u.createHigherOrderComponent)((function(e){return function(t){return"fse-site-logo"!==t.attributes.className?Object(o.createElement)(e,t):Object(o.createElement)(e,c()({},t,{className:"template__site-logo"}))}}),"addFSESiteLogoClassname");Object(O.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",te),"wp_template_part"!==fullSiteEditing.editorPostType&&Object(r.registerBlockType)("a8c/template",{title:Object(i.__)("Template Part","full-site-editing"),__experimentalDisplayName:"label",description:Object(i.__)("Display a Template Part.","full-site-editing"),icon:"layout",category:m("design","layout"),attributes:{templateId:{type:"number"},className:{type:"string"},label:{type:"string"}},supports:{anchor:!1,customClassName:!1,html:!1,inserter:!1,reusable:!1},edit:ee,save:function(){return null},getEditWrapperProps:function(){return{"data-align":"full"}}});var ne=Object(u.createHigherOrderComponent)((function(e){return function(t){return"a8c/template"!==t.name?Object(o.createElement)(e,t):Object(o.createElement)(e,c()({},t,{className:"template__block-container"}))}}),"addFSETemplateClassname");Object(O.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",ne,9);var oe=n(14),re=n.n(oe),ie=n(27),le=n.n(ie);n(44);function ce(e){var t=e.defaultLabel,n=e.defaultUrl,r=Object(o.useState)(t),i=F()(r,2),l=i[0],c=i[1],a=Object(o.useState)(n),s=F()(a,2),u=s[0],d=s[1];return window.wp.hooks.addAction("updateCloseButtonOverrides","a8c-fse",(function(e){c(e.label),d(e.closeUrl)})),Object(o.createElement)("a",{href:u,"aria-label":l},Object(o.createElement)(p.Button,{className:"components-button components-icon-button"},Object(o.createElement)(p.Dashicon,{icon:"arrow-left-alt2"}),Object(o.createElement)("div",{className:"close-button-override__label"},l)))}re()((function(){var e=fullSiteEditing.editorPostType;if("wp_template_part"===e||"page"===e||"post"===e)var t=setInterval((function(){var n=document.querySelector(".edit-post-header__toolbar");if(n){clearInterval(t);var r=document.createElement("div");r.className="components-toolbar edit-post-fullscreen-mode-close__toolbar edit-post-fullscreen-mode-close__toolbar__override",n.prepend(r);var l=fullSiteEditing,c=l.closeButtonLabel,a=l.closeButtonUrl,s=window.calypsoifyGutenberg;s&&s.closeUrl&&(a=s.closeUrl),s&&s.closeButtonLabel&&(c=s.closeButtonLabel);var u=a||"edit.php?post_type=".concat(e),d=c||"Back";"page"!==e||c?"post"!==e||c?"wp_template_part"!==e||c||(d=Object(i.__)("Template Parts","full-site-editing")):d=Object(i.__)("Posts","full-site-editing"):d=Object(i.__)("Pages","full-site-editing"),le.a.render(Object(o.createElement)(ce,{defaultLabel:d,defaultUrl:u}),r)}}))}));var ae=n(28),se=n.n(ae),ue=n(29),de=Object(f.withSelect)((function(e){var t=e("core").getEntityRecord,n=e("core/editor").getEditedPostAttribute;return{templateClasses:Object(J.map)(n("template_part_types"),(function(e){var n=Object(J.get)(t("taxonomy","wp_template_part_type",e),"name","");return Object(J.endsWith)(n,"-header")?"fse-header":Object(J.endsWith)(n,"-footer")?"fse-footer":void 0}))}}))((function(e){var t=e.templateClasses,n=setInterval((function(){var e=document.querySelector(".block-editor__typewriter > div");e&&(clearInterval(n),e.className=P.a.apply(void 0,["a8c-template-editor fse-template-part"].concat(se()(t))))}));return null}));"wp_template_part"===fullSiteEditing.editorPostType&&Object(ue.registerPlugin)("fse-editor-template-classes",{render:de}),re()((function(){"wp_template_part"===fullSiteEditing.editorPostType&&Object(f.dispatch)("core/notices").createNotice("info",Object(i.__)("Updates to this template will affect all pages on your site.","full-site-editing"),{isDismissible:!1})}));var pe=Object(u.compose)(Object(f.withSelect)((function(e){var t=e("core/editor").getEditorSettings,n=e("core/block-editor").getBlocks,o=e("core/edit-post").getEditorMode,r=n().find((function(e){return"a8c/post-content"===e.name}));return{rootClientId:r?r.clientId:"",showInserter:"visual"===o()&&t().richEditingEnabled}})))((function(e){var t=e.rootClientId,n=e.showInserter;return Object(o.createElement)(d.Inserter,{rootClientId:t,disabled:!n,position:"bottom right",toggleProps:{isPrimary:!0}})}));function fe(){if(!document.getElementById("fse-post-content-block-inserter")){var e=document.querySelector(".edit-post-header-toolbar");if(e){var t=document.createElement("div");t.className="fse-post-content-block-inserter",t.id="fse-post-content-block-inserter",e.insertBefore(t,e.firstChild),Object(o.render)(Object(o.createElement)(pe,null),t)}}}re()((function(){if("page"===fullSiteEditing.editorPostType)var e=setInterval((function(){document.querySelector(".edit-post-header-toolbar")&&(clearInterval(e),fe(),document.getElementById("wpbody")&&void 0!==window.MutationObserver&&new window.MutationObserver(fe).observe(document.getElementById("wpbody"),{subtree:!0,childList:!0}))}))}));var be=Object(f.subscribe)((function(){if("page"!==fullSiteEditing.editorPostType)return be();!1===Object(f.select)("core/block-editor").isValidTemplate()&&Object(f.dispatch)("core/block-editor").setTemplateValidity(!0)})),me=["logo","brand","emblem","hallmark"];Object(O.addFilter)("blocks.registerBlockType","full-site-editing/editor/image-block-keywords",(function(e,t){return"core/image"!==t?e:e=Object(J.assign)({},e,{keywords:e.keywords.concat(me)})}));n(48);Object(f.use)((function(e){return{dispatch:function(t){var n=z()({},e.dispatch(t)),o=fullSiteEditing.editorPostType;return"core/editor"===t&&n.trashPost&&"wp_template_part"===o&&(n.trashPost=function(){}),n}}})),Object(f.use)((function(e){return{dispatch:function(t){var n=z()({},e.dispatch(t)),o=fullSiteEditing.editorPostType;if("core/editor"===t&&n.editPost&&"wp_template_part"===o){var r=n.editPost;n.editPost=function(e){"draft"!==e.status&&r(e)}}return n}}}));var ge=Object(f.subscribe)((function(){var e=Object(f.dispatch)("core/edit-post").removeEditorPanel;return"page"===fullSiteEditing.editorPostType&&e("featured-image"),"wp_template_part"===fullSiteEditing.editorPostType&&e("post-status"),ge()}))}]));
|
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 r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var l=r.apply(null,o);l&&e.push(l)}else if("object"===i)for(var c in o)n.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){var o=n(38),r=n(39),i=n(17),l=n(40);e.exports=function(e,t){return o(e)||r(e,t)||i(e,t)||l()}},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){var o=n(18);e.exports=function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}},function(e,t,n){},function(e,t){!function(){e.exports=this.wp.serverSideRender}()},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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),e}},function(e,t,n){var o=n(31);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&&o(e,t)}},function(e,t,n){var o=n(32),r=n(33),i=n(34);e.exports=function(e){var t=r();return function(){var n,r=o(e);if(t){var l=o(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return i(this,n)}}},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){var o=n(45),r=n(46),i=n(17),l=n(47);e.exports=function(e){return o(e)||r(e)||i(e)||l()}},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,n){},function(e,t){function n(t,o){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,o)}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 o=n(35),r=n(36);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?r(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(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,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=[],o=!0,r=!1,i=void 0;try{for(var l,c=e[Symbol.iterator]();!(o=(l=c.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(a){r=!0,i=a}finally{try{o||null==c.return||c.return()}finally{if(r)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){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var o=n(18);e.exports=function(e){if(Array.isArray(e))return o(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,n){},function(e,t,n){"use strict";n.r(t);var o=n(0),r=n(8),i=n(1),l=n(10),c=n.n(l),a=n(20),s=n.n(a),u=n(4),d=n(2),p=n(5),f=n(3),b=Object(u.compose)([Object(d.withColors)("backgroundColor",{textColor:"color"}),Object(d.withFontSizes)("fontSize"),Object(f.withSelect)((function(e){return{isPublished:e("core/editor").isCurrentPostPublished()}}))])((function(e){var t=e.attributes,n=e.backgroundColor,r=e.fontSize,l=e.setAttributes,a=e.setBackgroundColor,u=e.setFontSize,f=e.setTextColor,b=e.textColor,m=e.isPublished,g=t.customFontSize,O=t.textAlign,j=g||r.size;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d.BlockControls,null,Object(o.createElement)(d.AlignmentToolbar,{value:O,onChange:function(e){l({textAlign:e})}})),Object(o.createElement)(d.InspectorControls,null,Object(o.createElement)(p.PanelBody,{className:"blocks-font-size",title:Object(i.__)("Text Settings","full-site-editing")},Object(o.createElement)(d.FontSizePicker,{onChange:u,value:j})),Object(o.createElement)(d.PanelColorSettings,{title:Object(i.__)("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:n.color,onChange:a,label:Object(i.__)("Background Color","full-site-editing")},{value:b.color,onChange:f,label:Object(i.__)("Text Color","full-site-editing")}]},Object(o.createElement)(d.ContrastChecker,c()({textColor:b.color,backgroundColor:n.color},{fontSize:j})))),Object(o.createElement)(s.a,{isPublished:m,block:"a8c/navigation-menu",attributes:t}))}));function m(){for(var e=Object(r.getCategories)(),t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];for(var i=function(){var t=c[l];if(e.some((function(e){return e.slug===t})))return{v:t}},l=0,c=n;l<c.length;l++){var a=i();if("object"==typeof a)return a.v}throw new Error("Could not find a category from the provided list: ".concat(n.join(",")))}n(30);var g=Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)("path",{d:"M12 7.27l4.28 10.43-3.47-1.53-.81-.36-.81.36-3.47 1.53L12 7.27M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2z"}));Object(r.registerBlockType)("a8c/navigation-menu",{title:Object(i.__)("Navigation Menu","full-site-editing"),description:Object(i.__)("Visual placeholder for site-wide navigation and menus.","full-site-editing"),icon:g,category:m("design","layout"),supports:{align:["wide","full","right","left"],html:!1,reusable:!1},edit:b,save:function(){return null}});var O=n(12),j=n(6),v=n.n(j),h=n(21),y=n.n(h),_=n(22),S=n.n(_),E=n(23),w=n.n(E),k=n(24),C=n.n(k),x=n(11),P=n.n(x),T=n(25),B=function(e){w()(n,e);var t=C()(n);function n(){return y()(this,n),t.apply(this,arguments)}return S()(n,[{key:"toggleEditing",value:function(){var e=this.props,t=e.isEditing;(0,e.setState)({isEditing:!t})}},{key:"onSelectPost",value:function(e){var t=e.id,n=e.type;this.props.setState({isEditing:!1,selectedPostId:t,selectedPostType:n})}},{key:"render",value:function(){var e=this.props.attributes.align;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:P()("post-content-block",v()({},"align".concat(e),e))},Object(o.createElement)(T.PostTitle,null),Object(o.createElement)(d.InnerBlocks,{templateLock:!1})))}}]),n}(o.Component),I=Object(u.compose)([Object(u.withState)({isEditing:!1,selectedPostId:void 0,selectedPostType:void 0}),Object(f.withSelect)((function(e,t){var n=t.selectedPostId,o=t.selectedPostType;return{selectedPost:(0,e("core").getEntityRecord)("postType",o,n)}}))])(B);n(37);Object(r.registerBlockType)("a8c/post-content",{title:Object(i.__)("Content","full-site-editing"),description:Object(i.__)("The page content.","full-site-editing"),icon:"layout",category:m("design","layout"),supports:{align:["full"],anchor:!1,customClassName:!1,html:!1,inserter:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"full"}},edit:I,save:function(){return Object(o.createElement)(d.InnerBlocks.Content,null)}});var N=Object(u.createHigherOrderComponent)((function(e){return function(t){return"a8c/post-content"!==t.name?Object(o.createElement)(e,t):Object(o.createElement)(e,c()({},t,{className:"post-content__block"}))}}),"addContentSlotClassname");Object(O.addFilter)("editor.BlockListBlock","full-site-editing/blocks/post-content",N,9);var A=n(7),z=n.n(A),D=n(13),F=n.n(D),L=n(15),R=n.n(L),M=n(16);function V(e){var t=Object(o.useRef)();return Object(o.useEffect)((function(){t.current=e}),[e]),t.current}function U(e,t,n,r,l,c){var a=Object(o.useState)({option:t,previousOption:"",loaded:!1,error:!1}),s=F()(a,2),u=s[0],d=s[1],p=V(r),f=V(l);function b(){d(z()(z()({},u),{},{option:u.previousOption,isSaving:!1}))}return Object(o.useEffect)((function(){u.loaded||u.error?function(){var t=u.option,o=u.previousOption,c=!o&&!t||t&&o&&t.trim()===o.trim(),a=!t||0===t.trim().length;!r&&p&&a&&b();if(!l||c)return;!f&&l&&function(t){d(z()(z()({},u),{},{isSaving:!0})),R()({path:"/wp/v2/settings",method:"POST",data:v()({},e,t)}).then((function(){return function(e){d(z()(z()({},u),{},{previousOption:e,isDirty:!1,isSaving:!1}))}(t)})).catch((function(){n(Object(i.sprintf)(Object(i.__)("Unable to save site %s","full-site-editing"),e)),b()}))}(t)}():R()({path:"/wp/v2/settings"}).then((function(t){return d(z()(z()({},u),{},{option:Object(M.decodeEntities)(t[e]),previousOption:Object(M.decodeEntities)(t[e]),loaded:!0,error:!1}))})).catch((function(){n(Object(i.sprintf)(Object(i.__)("Unable to load site %s","full-site-editing"),e)),d(z()(z()({},u),{},{option:Object(i.sprintf)(Object(i.__)("Error loading site %s","full-site-editing"),e),error:!0}))}))})),{siteOptions:u,handleChange:function(e){c({updated:Date.now()}),d(z()(z()({},u),{},{option:e}))}}}var H=function(e){return Object(u.createHigherOrderComponent)((function(t){return Object(u.pure)((function(n){var r=Object(f.useSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,o=t.isPublishingPost,r=t.isAutosavingPost,i=t.isCurrentPostPublished;return(n()&&i()||o())&&!r()})),i=Object(f.useDispatch)((function(e){return e("core/notices").createErrorNotice})),l=n.isSelected,a=n.setAttributes,s=Object.keys(e).reduce((function(t,n){var o=e[n],c=U(o.optionName,o.defaultValue,i,l,r,a),s=c.siteOptions,u=c.handleChange;return t[n]={value:s.option,updateValue:u,loaded:s.loaded},t}),{});return Object(o.createElement)(t,c()({},n,s))}))}),"withSiteOptions")},q=fullSiteEditing.footerCreditOptions,W=function(e){var t=e.choice,n=q.find((function(e){return e.value===t}));if(!n)return null;var r=n.renderType,i=n.renderProps,l=n.label,c=z()({label:l},i);return"icon"===r?Object(o.createElement)(p.Icon,c):Object(o.createElement)("span",null," ",c.label," ")},G=fullSiteEditing,Q=G.footerCreditOptions,Y=G.defaultCreditOption;var $=Object(u.compose)([H({siteTitleOption:{optionName:"title",defaultValue:Object(i.__)("Site title loading…","full-site-editing")},footerCreditOption:{optionName:"footer_credit",defaultValue:Object(i.__)("Footer credit loading…","full-site-editing")}})])((function(e){var t=e.attributes.textAlign,n=void 0===t?"center":t,r=e.isSelected,i=e.setAttributes,l=e.footerCreditOption,c=l.value,a=l.updateValue,s=e.siteTitleOption.value,u=c||Y;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d.BlockControls,null,Object(o.createElement)(d.AlignmentToolbar,{value:n,onChange:function(e){i({textAlign:e})}})),Object(o.createElement)("div",{className:P()("site-info","site-credit__block",v()({},"has-text-align-".concat(n),n))},Object(o.createElement)("span",{className:"site-name"},s),Object(o.createElement)("span",{className:"comma"},","),Object(o.createElement)("span",{className:"site-credit__selection"},r?Object(o.createElement)(p.SelectControl,{onChange:a,value:u,options:Q}):Object(o.createElement)(W,{choice:u}))))}));n(41);Object(r.registerBlockType)("a8c/site-credit",{title:Object(i.__)("WordPress.com Credit","full-site-editing"),description:Object(i.__)("This block tells the world that you're using WordPress.com.","full-site-editing"),icon:"wordpress-alt",category:m("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1,removal:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"}},edit:$,save:function(){return null}});var J=n(9);var K=Object(u.compose)([Object(d.withColors)("backgroundColor",{textColor:"color"}),Object(d.withFontSizes)("fontSize"),Object(f.withSelect)((function(e,t){var n=t.clientId,o=e("core/block-editor"),r=o.getBlockIndex,i=o.getBlockRootClientId,l=o.getTemplateLock,c=i(n);return{blockIndex:r(n,c),isLocked:!!l(c),rootClientId:c}})),Object(f.withDispatch)((function(e,t){var n=t.blockIndex,o=t.rootClientId;return{insertDefaultBlock:function(){return e("core/block-editor").insertDefaultBlock({},o,n+1)}}})),H({siteDescription:{optionName:"description",defaultValue:Object(i.__)("Site description loading…","full-site-editing")}})])((function(e){var t,n=e.attributes,r=e.backgroundColor,l=e.className,a=e.fontSize,s=e.insertDefaultBlock,u=e.setAttributes,f=e.setBackgroundColor,b=e.setFontSize,m=e.setTextColor,g=e.siteDescription,O=e.textColor,j=n.customFontSize,h=n.textAlign,y=j||a.size,_=g.value,S=g.updateValue;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d.BlockControls,null,Object(o.createElement)(d.AlignmentToolbar,{value:h,onChange:function(e){u({textAlign:e})}})),Object(o.createElement)(d.InspectorControls,null,Object(o.createElement)(p.PanelBody,{className:"blocks-font-size",title:Object(i.__)("Text Settings","full-site-editing")},Object(o.createElement)(d.FontSizePicker,{onChange:b,value:y})),Object(o.createElement)(d.PanelColorSettings,{title:Object(i.__)("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:r.color,onChange:f,label:Object(i.__)("Background Color","full-site-editing")},{value:O.color,onChange:m,label:Object(i.__)("Text Color","full-site-editing")}]},Object(o.createElement)(d.ContrastChecker,c()({textColor:O.color,backgroundColor:r.color},{fontSize:y})))),Object(o.createElement)(d.RichText,{allowedFormats:[],"aria-label":Object(i.__)("Site Description","full-site-editing"),className:P()("site-description",l,(t={"has-text-color":O.color,"has-background":r.color},v()(t,"has-text-align-".concat(h),h),v()(t,r.class,r.class),v()(t,O.class,O.class),v()(t,a.class,!j&&a.class),t)),identifier:"content",onChange:S,onReplace:s,onSplit:J.noop,placeholder:Object(i.__)("Add a Site Description","full-site-editing"),style:{backgroundColor:r.color,color:O.color,fontSize:y?y+"px":void 0},tagName:"p",value:_}))}));n(42);Object(r.registerBlockType)("a8c/site-description",{title:Object(i.__)("Site Description","full-site-editing"),description:Object(i.__)("Site description, also known as the tagline.","full-site-editing"),icon:Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(o.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),Object(o.createElement)("path",{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),category:m("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string",default:"small"},customFontSize:{type:"number"}},edit:K,save:function(){return null}});var X=Object(u.compose)([Object(d.withColors)({textColor:"color"}),Object(d.withFontSizes)("fontSize"),Object(f.withSelect)((function(e,t){var n=t.clientId,o=e("core/block-editor"),r=o.getBlockIndex,i=o.getBlockRootClientId,l=o.getTemplateLock,c=i(n);return{blockIndex:r(n,c),isLocked:!!l(c),rootClientId:c}})),Object(f.withDispatch)((function(e,t){var n=t.blockIndex,o=t.rootClientId;return{insertDefaultBlock:function(){return e("core/block-editor").insertDefaultBlock({},o,n+1)}}})),H({siteTitle:{optionName:"title",defaultValue:Object(i.__)("Site title loading…","full-site-editing")}})])((function(e){var t,n=e.attributes,r=e.className,l=e.fontSize,c=e.insertDefaultBlock,a=e.setAttributes,s=e.setFontSize,u=e.setTextColor,f=e.siteTitle,b=e.textColor,m=n.customFontSize,g=n.textAlign,O=m||l.size,j=f.value,h=f.updateValue;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d.BlockControls,null,Object(o.createElement)(d.AlignmentToolbar,{value:g,onChange:function(e){a({textAlign:e})}})),Object(o.createElement)(d.InspectorControls,null,Object(o.createElement)(p.PanelBody,{className:"blocks-font-size",title:Object(i.__)("Text Settings","full-site-editing")},Object(o.createElement)(d.FontSizePicker,{onChange:s,value:O})),Object(o.createElement)(d.PanelColorSettings,{title:Object(i.__)("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:b.color,onChange:u,label:Object(i.__)("Text Color","full-site-editing")}]})),Object(o.createElement)(d.RichText,{allowedFormats:[],"aria-label":Object(i.__)("Site Title","full-site-editing"),className:P()("site-title",r,(t={"has-text-color":b.color},v()(t,"has-text-align-".concat(g),g),v()(t,b.class,b.class),v()(t,l.class,!m&&l.class),t)),identifier:"content",onChange:h,onReplace:c,onSplit:J.noop,placeholder:Object(i.__)("Add a Site Title","full-site-editing"),style:{color:b.color,fontSize:O?O+"px":void 0},tagName:"h1",value:j}))}));n(43);Object(r.registerBlockType)("a8c/site-title",{title:Object(i.__)("Site Title","full-site-editing"),description:Object(i.__)("Your site title.","full-site-editing"),icon:"layout",category:m("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string",default:"normal"},customFontSize:{type:"number"}},edit:X,save:function(){return null}});var Z=n(26),ee=(n(19),Object(u.compose)(Object(u.withState)({templateClientId:null}),Object(f.withSelect)((function(e,t){var n=t.attributes,o=t.templateClientId,r=e("core").getEntityRecord,i=e("core/editor"),l=i.getCurrentPostId,c=i.isEditedPostDirty,a=e("core/block-editor"),s=a.getBlock,u=a.getSelectedBlock,d=e("core/edit-post").isEditorSidebarOpened,p=n.templateId,f=l(),b=p&&r("postType","wp_template_part",p),m=Object(Z.addQueryArgs)(fullSiteEditing.editTemplateBaseUrl,{post:p,fse_parent_post:f}),g=u();return{currentPostId:f,editTemplateUrl:m,template:b,templateBlock:s(o),templateTitle:Object(J.get)(b,["title","rendered"],""),isDirty:c(),isEditorSidebarOpened:!!d(),isAnyTemplateBlockSelected:g&&"a8c/template"===g.name}})),Object(f.withDispatch)((function(e,t){var n=e("core/block-editor").receiveBlocks,o=e("core/edit-post").openGeneralSidebar,i=t.template,l=t.templateClientId,c=t.setState;return{savePost:e("core/editor").savePost,receiveTemplateBlocks:function(){if(i&&!l){var e=Object(r.parse)(Object(J.get)(i,["content","raw"],"")),t=Object(r.createBlock)("core/group",{},e);n([t]),c({templateClientId:t.clientId})}},openGeneralSidebar:o}})))((function(e){var t,n=e.attributes,r=e.editTemplateUrl,l=e.receiveTemplateBlocks,c=e.template,a=e.templateBlock,s=e.templateTitle,u=e.isDirty,f=e.savePost,b=e.isEditorSidebarOpened,m=e.openGeneralSidebar,g=e.isAnyTemplateBlockSelected;if(!c)return Object(o.createElement)(p.Placeholder,{className:"template-block__placeholder"},Object(o.createElement)(p.Spinner,null));var O=Object(o.createRef)(),j=Object(o.useState)(!1),h=F()(j,2),y=h[0],_=h[1];Object(o.useEffect)((function(){y&&!u&&O.current.click(),l()})),Object(o.useEffect)((function(){var e=document.querySelector(".edit-post-sidebar__panel-tabs ul li:last-child");if(b&&e){if(g)return m("edit-post/document"),void e.classList.add("hidden");e.classList.remove("hidden")}}),[g,b,m]);var S=n.align,E=n.className,w=function(e){e.stopPropagation(),_(!0),u&&(e.preventDefault(),f())};return Object(o.createElement)("div",{className:P()("template-block",(t={},v()(t,"align".concat(S),S),v()(t,"is-navigating-to-template",y),t))},a&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(p.Disabled,null,Object(o.createElement)("div",{className:E},Object(o.createElement)(d.BlockEdit,{attributes:a.attributes,block:a,clientId:a.clientId,isSelected:!1,name:a.name,setAttributes:J.noop}))),Object(o.createElement)(p.Placeholder,{className:"template-block__overlay",onClick:w},y&&Object(o.createElement)("div",{className:"template-block__loading"},Object(o.createElement)(p.Spinner,null)," ",Object(i.sprintf)(Object(i.__)("Loading editor for: %s","full-site-editing"),s)),Object(o.createElement)(p.Button,{className:y?"hidden":null,href:r,onClick:w,isDefault:!0,isLarge:!0,ref:O},Object(i.sprintf)(Object(i.__)("Edit %s","full-site-editing"),s)))))}))),te=Object(u.createHigherOrderComponent)((function(e){return function(t){return"fse-site-logo"!==t.attributes.className?Object(o.createElement)(e,t):Object(o.createElement)(e,c()({},t,{className:"template__site-logo"}))}}),"addFSESiteLogoClassname");Object(O.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",te),"wp_template_part"!==fullSiteEditing.editorPostType&&Object(r.registerBlockType)("a8c/template",{title:Object(i.__)("Template Part","full-site-editing"),__experimentalDisplayName:"label",description:Object(i.__)("Display a Template Part.","full-site-editing"),icon:"layout",category:m("design","layout"),attributes:{templateId:{type:"number"},className:{type:"string"},label:{type:"string"}},supports:{anchor:!1,customClassName:!1,html:!1,inserter:!1,reusable:!1},edit:ee,save:function(){return null},getEditWrapperProps:function(){return{"data-align":"full"}}});var ne=Object(u.createHigherOrderComponent)((function(e){return function(t){return"a8c/template"!==t.name?Object(o.createElement)(e,t):Object(o.createElement)(e,c()({},t,{className:"template__block-container"}))}}),"addFSETemplateClassname");Object(O.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",ne,9);var oe=n(14),re=n.n(oe),ie=n(27),le=n.n(ie);n(44);function ce(e){var t=e.defaultLabel,n=e.defaultUrl,r=Object(o.useState)(t),i=F()(r,2),l=i[0],c=i[1],a=Object(o.useState)(n),s=F()(a,2),u=s[0],d=s[1];return window.wp.hooks.addAction("updateCloseButtonOverrides","a8c-fse",(function(e){c(e.label),d(e.closeUrl)})),Object(o.createElement)("a",{href:u,"aria-label":l},Object(o.createElement)(p.Button,{className:"components-button components-icon-button"},Object(o.createElement)(p.Dashicon,{icon:"arrow-left-alt2"}),Object(o.createElement)("div",{className:"close-button-override__label"},l)))}re()((function(){var e=fullSiteEditing.editorPostType;if("wp_template_part"===e||"page"===e||"post"===e)var t=setInterval((function(){var n=document.querySelector(".edit-post-header__toolbar");if(n){clearInterval(t);var r=document.createElement("div");r.className="components-toolbar edit-post-fullscreen-mode-close__toolbar edit-post-fullscreen-mode-close__toolbar__override",n.prepend(r);var l=fullSiteEditing,c=l.closeButtonLabel,a=l.closeButtonUrl,s=window.calypsoifyGutenberg;s&&s.closeUrl&&(a=s.closeUrl),s&&s.closeButtonLabel&&(c=s.closeButtonLabel);var u=a||"edit.php?post_type=".concat(e),d=c||"Back";"page"!==e||c?"post"!==e||c?"wp_template_part"!==e||c||(d=Object(i.__)("Template Parts","full-site-editing")):d=Object(i.__)("Posts","full-site-editing"):d=Object(i.__)("Pages","full-site-editing"),le.a.render(Object(o.createElement)(ce,{defaultLabel:d,defaultUrl:u}),r)}}))}));var ae=n(28),se=n.n(ae),ue=n(29),de=Object(f.withSelect)((function(e){var t=e("core").getEntityRecord,n=e("core/editor").getEditedPostAttribute;return{templateClasses:Object(J.map)(n("template_part_types"),(function(e){var n=Object(J.get)(t("taxonomy","wp_template_part_type",e),"name","");return Object(J.endsWith)(n,"-header")?"fse-header":Object(J.endsWith)(n,"-footer")?"fse-footer":void 0}))}}))((function(e){var t=e.templateClasses,n=setInterval((function(){var e=document.querySelector(".block-editor__typewriter > div");e&&(clearInterval(n),e.className=P.a.apply(void 0,["a8c-template-editor fse-template-part"].concat(se()(t))))}));return null}));"wp_template_part"===fullSiteEditing.editorPostType&&Object(ue.registerPlugin)("fse-editor-template-classes",{render:de}),re()((function(){"wp_template_part"===fullSiteEditing.editorPostType&&Object(f.dispatch)("core/notices").createNotice("info",Object(i.__)("Updates to this template will affect all pages on your site.","full-site-editing"),{isDismissible:!1})}));var pe=Object(u.compose)(Object(f.withSelect)((function(e){var t=e("core/editor").getEditorSettings,n=e("core/block-editor").getBlocks,o=e("core/edit-post").getEditorMode,r=n().find((function(e){return"a8c/post-content"===e.name}));return{rootClientId:r?r.clientId:"",showInserter:"visual"===o()&&t().richEditingEnabled}})))((function(e){var t=e.rootClientId,n=e.showInserter;return Object(o.createElement)(d.Inserter,{rootClientId:t,disabled:!n,position:"bottom right",toggleProps:{isPrimary:!0}})})),fe="fse-post-content-block-inserter";function be(){if(!document.getElementById(fe)){var e=document.querySelector(".edit-post-header-toolbar");if(e){var t=document.createElement("div");t.className="fse-post-content-block-inserter",t.id=fe,e.insertBefore(t,e.firstChild),Object(o.render)(Object(o.createElement)(pe,null),t)}}}re()((function(){if("page"===fullSiteEditing.editorPostType)var e=setInterval((function(){document.querySelector(".edit-post-header-toolbar")&&(clearInterval(e),be(),document.getElementById("wpbody")&&void 0!==window.MutationObserver&&new window.MutationObserver(be).observe(document.getElementById("wpbody"),{subtree:!0,childList:!0}))}))}));var me=Object(f.subscribe)((function(){if("page"!==fullSiteEditing.editorPostType)return me();!1===Object(f.select)("core/block-editor").isValidTemplate()&&Object(f.dispatch)("core/block-editor").setTemplateValidity(!0)})),ge=["logo","brand","emblem","hallmark"];Object(O.addFilter)("blocks.registerBlockType","full-site-editing/editor/image-block-keywords",(function(e,t){return"core/image"!==t?e:e=Object(J.assign)({},e,{keywords:e.keywords.concat(ge)})}));n(48);Object(f.use)((function(e){return{dispatch:function(t){var n=z()({},e.dispatch(t)),o=fullSiteEditing.editorPostType;return"core/editor"===t&&n.trashPost&&"wp_template_part"===o&&(n.trashPost=function(){}),n}}})),Object(f.use)((function(e){return{dispatch:function(t){var n=z()({},e.dispatch(t)),o=fullSiteEditing.editorPostType;if("core/editor"===t&&n.editPost&&"wp_template_part"===o){var r=n.editPost;n.editPost=function(e){"draft"!==e.status&&r(e)}}return n}}}));var Oe=Object(f.subscribe)((function(){var e=Object(f.dispatch)("core/edit-post").removeEditorPanel;return"page"===fullSiteEditing.editorPostType&&e("featured-image"),"wp_template_part"===fullSiteEditing.editorPostType&&e("post-status"),Oe()}))}]));
|
editor-gutenboarding-launch/dist/editor-gutenboarding-launch.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => 'ab3e00dfa4b36f4ee00fc5271d40d5b5');
|
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={},o=t||{},s=e.split(i),u=o.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||{},i=r.encode||o;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!s.test(e))throw new TypeError("argument name is invalid");var a=i(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,o=encodeURIComponent,i=/; */,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),o=n(20);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(e,o)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=s(o)),n+=u(o.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var s=new Array(i/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===o?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,s=(i<r?1:0)+n+o;e[t]=s>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+i>>>0)<i?1:0,e+n+o+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,s,a){return t+r+i+a>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,s,a,u,c){var f=0,l=t;return f+=(l=l+r>>>0)<t?1:0,f+=(l=l+i>>>0)<i?1:0,f+=(l=l+a>>>0)<a?1:0,e+n+o+s+u+(f+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,s,a,u,c){return t+r+i+a+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},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,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var s=e.apply(t,r);function a(e){n(s,o,i,a,u,"next",e)}function u(e){n(s,o,i,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),o=n(21),i=n(22),s=n(5),a=r.sum32,u=r.sum32_4,c=r.sum32_5,f=i.ch32,l=i.maj32,h=i.s0_256,p=i.s1_256,d=i.g0_256,v=i.g1_256,g=o.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(v(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],w=this.h[5],C=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var _=c(b,p(y),f(y,w,C),this.k[r],n[r]),F=a(h(o),l(o,i,g));b=C,C=w,w=y,y=a(m,_),m=g,g=i,i=o,o=a(_,F)}this.h[0]=a(this.h[0],o),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],w),this.h[6]=a(this.h[6],C),this.h[7]=a(this.h[7],b)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},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 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 o,i,s,a;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),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=f(e))>0&&s.length>o&&!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},o=h.bind(r);return o.listener=n,r.wrapFn=o,o}function d(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):g(o,o.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,o=this._events;if(void 0!==o)r=r&&void 0===o.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=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,f=g(u,c);for(n=0;n<c;++n)i(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,o,i,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(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},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 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},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 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 s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,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(s,i),t.splice(c,1),c--}return e})),o.formatArgs.call(s,t);var f=s.log||o.log;f.apply(s,t)}}return r.namespace=e,r.enabled=o.enabled(e),r.useColors=o.useColors(),r.color=t(e),r.destroy=i,r.extend=s,"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 s(e,t){var n=o(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 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(a)),r(o.skips.map(a).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(19),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(15),o=n(16),i=n(17),s=n(18);e.exports=function(e){return r(e)||o(e)||i(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=6e4,o=60*r,i=24*o;function s(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 a=typeof e;if("string"===a&&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 s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*o;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return s(e,t,i,"day");if(t>=o)return s(e,t,o,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(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){"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),o=n(5);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(4).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?s(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},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),o=n.n(r),i=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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);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 o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));g(o),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 F(){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 x=l()("lib/load-script/dom-operations");l()("package/load-script");function S(e,t){var n;if(!w(e)&&(n=function(e){x('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=F,t}(e),x("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,O=["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 A(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&S("//stats.wp.com/w.js?61");var E=new v.EventEmitter;function j(e,t){if(h('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(d.includes)(O,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),A(["recordEvent",e,t]),E.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=document.querySelector(".edit-post-header__settings");if(a){clearInterval(s);var u=window.innerWidth<768,f=null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isNewLaunch,l=null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.frankenflowUrl,h=u?Object(i.__)("Launch","full-site-editing"):Object(i.__)("Complete setup","full-site-editing"),p=function(){var e=o()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.dispatch)("core/editor").savePost();case 2:window.top.location.href=l;case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();document.querySelector("body").classList.add("editor-gutenberg-launch__fse-overrides");var d=a.querySelector(".editor-post-publish-button__button"),v=document.createElement("a");v.href=l,v.target="_top",v.className="editor-gutenberg-launch__launch-button components-button is-primary";var g=document.createTextNode(h);v.appendChild(g),v.addEventListener("click",(function(e){e.preventDefault();var t=f&&!u;j("calypso_newsite_editor_launch_click",{is_new_flow:t}),t?(Object(c.dispatch)("automattic/launch").openSidebar(),setTimeout((function(){Object(c.dispatch)("core/editor").savePost()}),1e3)):p()})),a.prepend(v),d&&a.prepend(d)}}))}}}]));
|
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={},o=t||{},s=e.split(i),u=o.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||{},i=r.encode||o;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!s.test(e))throw new TypeError("argument name is invalid");var a=i(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,o=encodeURIComponent,i=/; */,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),o=n(20);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(e,o)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=s(o)),n+=u(o.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var s=new Array(i/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===o?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,s=(i<r?1:0)+n+o;e[t]=s>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+i>>>0)<i?1:0,e+n+o+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,s,a){return t+r+i+a>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,s,a,u,c){var f=0,l=t;return f+=(l=l+r>>>0)<t?1:0,f+=(l=l+i>>>0)<i?1:0,f+=(l=l+a>>>0)<a?1:0,e+n+o+s+u+(f+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,s,a,u,c){return t+r+i+a+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},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,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var s=e.apply(t,r);function a(e){n(s,o,i,a,u,"next",e)}function u(e){n(s,o,i,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),o=n(21),i=n(22),s=n(5),a=r.sum32,u=r.sum32_4,c=r.sum32_5,f=i.ch32,l=i.maj32,h=i.s0_256,p=i.s1_256,d=i.g0_256,v=i.g1_256,g=o.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(v(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],w=this.h[5],C=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var _=c(b,p(y),f(y,w,C),this.k[r],n[r]),F=a(h(o),l(o,i,g));b=C,C=w,w=y,y=a(m,_),m=g,g=i,i=o,o=a(_,F)}this.h[0]=a(this.h[0],o),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],w),this.h[6]=a(this.h[6],C),this.h[7]=a(this.h[7],b)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},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 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 o,i,s,a;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),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=f(e))>0&&s.length>o&&!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},o=h.bind(r);return o.listener=n,r.wrapFn=o,o}function d(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):g(o,o.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,o=this._events;if(void 0!==o)r=r&&void 0===o.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=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,f=g(u,c);for(n=0;n<c;++n)i(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,o,i,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(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},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 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},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 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 s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,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(s,i),t.splice(c,1),c--}return e})),o.formatArgs.call(s,t);var f=s.log||o.log;f.apply(s,t)}}return r.namespace=e,r.enabled=o.enabled(e),r.useColors=o.useColors(),r.color=t(e),r.destroy=i,r.extend=s,"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 s(e,t){var n=o(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 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(a)),r(o.skips.map(a).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(19),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(15),o=n(16),i=n(17),s=n(18);e.exports=function(e){return r(e)||o(e)||i(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,o=60*r,i=24*o,s=7*i,a=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*a;case"weeks":case"week":case"w":return u*s;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){"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),o=n(5);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(4).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?s(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},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),o=n.n(r),i=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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);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 o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));g(o),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 F(){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 x=l()("lib/load-script/dom-operations");l()("package/load-script");function S(e,t){var n;if(!w(e)&&(n=function(e){x('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=F,t}(e),x("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,O=["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 A(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&S("//stats.wp.com/w.js?61");var E=new v.EventEmitter;function j(e,t){if(h('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(d.includes)(O,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),A(["recordEvent",e,t]),E.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=document.querySelector(".edit-post-header__settings");if(a){clearInterval(s);var u=window.innerWidth<768,f=null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isNewLaunch,l=null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.frankenflowUrl,h=u?Object(i.__)("Launch","full-site-editing"):Object(i.__)("Complete setup","full-site-editing"),p=function(){var e=o()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.dispatch)("core/editor").savePost();case 2:window.top.location.href=l;case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();document.querySelector("body").classList.add("editor-gutenberg-launch__fse-overrides");var d=a.querySelector(".editor-post-publish-button__button"),v=document.createElement("a");v.href=l,v.target="_top",v.className="editor-gutenberg-launch__launch-button components-button is-primary";var g=document.createTextNode(h);v.appendChild(g),v.addEventListener("click",(function(e){e.preventDefault();var t=f&&!u;j("calypso_newsite_editor_launch_click",{is_new_flow:t}),t?(Object(c.dispatch)("automattic/launch").openSidebar(),setTimeout((function(){Object(c.dispatch)("core/editor").savePost()}),1e3)):p()})),a.prepend(v),d&&a.prepend(d)}}))}}}]));
|
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' => '
|
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' => 'c408c75da33e264f5bd78c7db38333a1');
|
editor-site-launch/dist/editor-site-launch.js
CHANGED
@@ -1,22 +1,37 @@
|
|
1 |
-
!function(e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
/*!
|
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 o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return c}));var r=function(){return(r=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 o(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 i(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:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){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(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function a(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(c){o={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}},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,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(72)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){var r=n(66),o=n(67),i=n(35),a=n(68);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){var r=n(8);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){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){!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){"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 c(){c.init.call(this)}e.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function p(e,t,n,r){var o,i,a,c;if(l(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=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,c=s,console&&console.warn&&console.warn(c)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=d.bind(r);return o.listener=n,r.wrapFn=o,o}function m(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):b(o,o.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(c,"defaultMaxListeners",{enumerable:!0,get:function(){return s},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+".");s=e}}),c.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},c.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},c.prototype.getMaxListeners=function(){return u(this)},c.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 c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{var l=s.length,u=b(s,l);for(n=0;n<l;++n)i(u[n],this,t)}return!0},c.prototype.addListener=function(e,t){return p(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return p(this,e,t,!0)},c.prototype.once=function(e,t){return l(t),this.on(e,f(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,f(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,o,i,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(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},c.prototype.off=c.prototype.removeListener,c.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},c.prototype.listeners=function(e){return m(this,e,!0)},c.prototype.rawListeners=function(e){return m(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},c.prototype.listenerCount=h,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},,function(e,t,n){"use strict";var r=n(33),o=n(37);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 c(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=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+=c(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=a(o)),n+=s(o.toString(16))}return n},t.zero2=c,t.zero8=s,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var a=new Array(i/4),c=0,s=t;c<a.length;c++,s+=4){var l;l="big"===o?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[c]=l>>>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,c){var s=0,l=t;return s+=(l=l+r>>>0)<t?1:0,s+=(l=l+i>>>0)<i?1:0,e+n+o+a+(s+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,a,c){return t+r+i+c>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,a,c,s,l){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+i>>>0)<i?1:0,u+=(p=p+c>>>0)<c?1:0,e+n+o+a+s+(u+=(p=p+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,a,c,s,l){return t+r+i+c+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t){function n(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,s,"next",e)}function s(e){n(a,o,i,c,s,"throw",e)}c(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.dataControls}()},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){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,n){var r=n(85);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(86),o=n(87),i=n(88);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(97);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";
|
7 |
/*!
|
8 |
* cookie
|
9 |
* Copyright(c) 2012-2014 Roman Shtylman
|
10 |
* Copyright(c) 2015 Douglas Christopher Wilson
|
11 |
* MIT Licensed
|
12 |
-
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},o=t||{},a=e.split(i),s=o.decode||r,l=0;l<a.length;l++){var u=a[l],p=u.indexOf("=");if(!(p<0)){var d=u.substr(0,p).trim(),f=u.substr(++p,u.length).trim();'"'==f[0]&&(f=f.slice(1,-1)),null==n[d]&&(n[d]=c(f,s))}}return n},t.serialize=function(e,t,n){var r=n||{},i=r.encode||o;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!a.test(e))throw new TypeError("argument name is invalid");var c=i(t);if(c&&!a.test(c))throw new TypeError("argument val is invalid");var s=e+"="+c;if(null!=r.maxAge){var l=r.maxAge-0;if(isNaN(l))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(l)}if(r.domain){if(!a.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!a.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(s+="; HttpOnly");r.secure&&(s+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s};var r=decodeURIComponent,o=encodeURIComponent,i=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function c(e,t){try{return t(e)}catch(n){return 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(36);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(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"==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(22),o=n(33);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(22).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,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,n){"use strict";n.r(t),n.d(t,"plansPaths",(function(){return ke})),n.d(t,"PLAN_FREE",(function(){return d})),n.d(t,"PLAN_PERSONAL",(function(){return f})),n.d(t,"PLAN_PREMIUM",(function(){return m})),n.d(t,"PLAN_BUSINESS",(function(){return h})),n.d(t,"PLAN_ECOMMERCE",(function(){return b})),n.d(t,"register",(function(){return qe}));var r={};n.r(r),n.d(r,"setPrices",(function(){return Pe})),n.d(r,"resetPlan",(function(){return Ae}));var o={};n.r(o),n.d(o,"getPlanBySlug",(function(){return Le})),n.d(o,"getDefaultPaidPlan",(function(){return Fe})),n.d(o,"getSupportedPlans",(function(){return Me})),n.d(o,"getPlanByPath",(function(){return Re})),n.d(o,"getPlansDetails",(function(){return De})),n.d(o,"getPlansPaths",(function(){return Be})),n.d(o,"getPrices",(function(){return Ie})),n.d(o,"isPlanEcommerce",(function(){return ze})),n.d(o,"isPlanFree",(function(){return Ue}));var i={};n.r(i),n.d(i,"getPrices",(function(){return He}));var a,c,s,l,u=n(24),p=n(3),d="free_plan",f="personal-bundle",m="value_bundle",h="business-bundle",b="ecommerce-bundle",g=m,v={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}},y=n(10),_=n(13),x=n.n(_),w=n(8),O=n.n(w),E=n(12),k=n.n(E),S=n(46),C=n.n(S);a={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},c=["(","?"],s={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var j={"!":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 N(e){var t=function(e){for(var t,n,r,o,i=[],u=[];t=e.match(l);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=u.pop();){if(s[n]){if(s[n][0]===o){n=s[n][1]||n;break}}else if(c.indexOf(o)>=0||a[o]<a[n]){u.push(o);break}i.push(o)}s[n]||u.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(u.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,c,s=[];for(n=0;n<e.length;n++){if(a=e[n],i=j[a]){for(r=i.length,o=Array(r);r--;)o[r]=s.pop();try{c=i.apply(null,o)}catch(l){return l}}else c=t.hasOwnProperty(a)?t[a]:+a;s.push(c)}return s[0]}(t,e)}}var P={contextDelimiter:"",onMissingKey:null};function A(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},P)this.options[n]=void 0!==t&&n in t?t[n]:P[n]}A.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=N(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},A.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,c;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[i]?c[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var T=n(47),L=n.n(T),F=n(48),M=n.n(F),R=n(20),D=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function B(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(D,(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:"")}))}
|
13 |
/*
|
14 |
* Exposes number format capability
|
15 |
*
|
16 |
* @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
|
17 |
* @license See CREDITS.md
|
18 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
19 |
-
*/function I(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,c=void 0===n?".":n,s="";return(s=(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&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(c)}var z=k()("i18n-calypso"),U=[function(e){return e}],H={};function $(){W.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function q(e){return Array.prototype.slice.call(e)}function V(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&$("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",q(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&$("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",q(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 Y(e,t){return e.dcnpgettext("messages",t.context,t.original,t.plural,t.count)}function G(e,t){for(var n=U.length-1;n>=0;n--){var r=U[n](Object.assign({},t)),o=r.context?r.context+""+r.original:r.original;if(e.state.locale[o])return Y(e.state.tannin,r)}return null}function W(){if(!(this instanceof W))return new W;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:L()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new R.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}W.throwErrors=!1,W.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},W.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},W.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},W.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 I(e,n,r,o)},W.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},W.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!==H[n+e])return H[n+e];var r=M()().update(e).digest("hex");return H[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)U.push(a(!1));else{var c=o.substr(5).indexOf("-");if(c<0){var s=Number(o.substr(5));U.push(a(s))}else for(var l=Number(o.substr(5,c)),u=Number(o.substr(6+c)),p=l;p<=u;p++)U.push(a(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.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 A(O()({},"messages",this.state.locale)),this.state.numberFormatSettings.decimal_point=Y(this.state.tannin,V(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=Y(this.state.tannin,V(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},W.prototype.getLocale=function(){return this.state.locale},W.prototype.getLocaleSlug=function(){return this.state.localeSlug},W.prototype.isRtl=function(){return"rtl"===this.state.textDirection},W.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},W.prototype.hasTranslation=function(){return!!G(this,V(arguments))},W.prototype.translate=function(){var e=V(arguments),t=G(this,e);if(t||(t=Y(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=B.apply(void 0,x()(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=C()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},W.prototype.reRenderTranslations=function(){z("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},W.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},W.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var K=W,X=n(14),Z=n.n(X),J=n(25),Q=n.n(J),ee=n(26),te=n.n(ee),ne=n(27),re=n.n(ne),oe=n(28),ie=n.n(oe),ae=n(29),ce=n.n(ae),se=n(0),le=n.n(se),ue=n(7),pe=n.n(ue),de=n(15),fe=n.n(de),me=n(49),he=n(18);var be,ge,ve,ye,_e=new K,xe=(_e.numberFormat.bind(_e),_e.translate.bind(_e)),we=(_e.configure.bind(_e),_e.setLocale.bind(_e),_e.getLocale.bind(_e),_e.getLocaleSlug.bind(_e),_e.addTranslations.bind(_e),_e.reRenderTranslations.bind(_e),_e.registerComponentUpdateHook.bind(_e),_e.registerTranslateHook.bind(_e),_e.state,_e.stateObserver,_e.on.bind(_e),_e.off.bind(_e),_e.emit.bind(_e),ge={numberFormat:(be=_e).numberFormat.bind(be),translate:be.translate.bind(be)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(_e),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(me.useSubscription)(t)}var r=Object(he.createHigherOrderComponent)((function(e){return Object(se.forwardRef)((function(t,r){var o=n();return le.a.createElement(e,fe()({},t,{isRtl:o,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(_e)),Oe=(we.useRtl,we.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"]),Ee=((ve={})[d]={title:xe("Free"),productId:1,storeSlug:d,pathSlug:"beginner",features:["3 GB storage space"],isFree:!0},ve[f]={title:xe("Personal"),productId:1009,storeSlug:f,pathSlug:"personal",features:Object(y.d)(["6 GB storage space"],Oe.slice(0,3))},ve[m]={title:xe("Premium"),productId:1003,storeSlug:m,pathSlug:"premium",features:Object(y.d)(["13 GB storage space"],Oe.slice(0,8)),isPopular:!0},ve[h]={title:xe("Business"),productId:1008,storeSlug:h,pathSlug:"business",features:Object(y.d)(["200 GB storage space"],Oe.slice(0,11))},ve[b]={title:xe("eCommerce"),productId:1011,storeSlug:b,pathSlug:"ecommerce",features:Object(y.d)(["200 GB storage space"],Oe)},ve),ke=Object.keys(Ee).map((function(e){return Ee[e].pathSlug})),Se=[{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]}]}],Ce=Object.keys(Ee),je={supportedPlanSlugs:Ce,prices:(ye={},ye[d]="",ye[f]="",ye[m]="",ye[h]="",ye[b]="",ye)},Ne=function(e,t){switch(void 0===e&&(e=je),t.type){case"SET_PRICES":return Object(y.a)(Object(y.a)({},e),{prices:t.prices});default:return e}},Pe=function(e){return{type:"SET_PRICES",prices:e}},Ae=function(){return{type:"RESET_PLAN"}};function Te(e){return Ee[e]}var Le=function(e,t){return Te(t)},Fe=function(){return Te(g)},Me=function(e){return e.supportedPlanSlugs.map(Te)},Re=function(e,t){return t&&Me(e).find((function(e){return(null==e?void 0:e.pathSlug)===t}))},De=function(){return Se},Be=function(e){return Me(e).map((function(e){return null==e?void 0:e.pathSlug}))},Ie=function(e){return e.prices},ze=function(e,t){return t===b},Ue=function(e,t){return t===d};function He(){var e,t,n;return Object(y.b)(this,(function(r){switch(r.label){case 0:return[4,Object(u.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!==Ce.indexOf(e.product_slug)})),n=t.reduce((function(e,t){return e[t.product_slug]=function(e){var t=v[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,Pe(n)];case 2:return r.sent(),[2]}}))}var $e=!1;function qe(){return $e||($e=!0,Object(p.registerStore)("automattic/onboard/plans",{resolvers:i,actions:r,controls:u.controls,reducer:Ne,selectors:o})),"automattic/onboard/plans"}},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){"use strict";var r=n(22),o=n(38),i=n(39),a=n(33),c=r.sum32,s=r.sum32_4,l=r.sum32_5,u=i.ch32,p=i.maj32,d=i.s0_256,f=i.s1_256,m=i.g0_256,h=i.g1_256,b=o.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(v,b),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(h(n[r-2]),n[r-7],m(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],b=this.h[2],g=this.h[3],v=this.h[4],y=this.h[5],_=this.h[6],x=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var w=l(x,f(v),u(v,y,_),this.k[r],n[r]),O=c(d(o),p(o,i,b));x=_,_=y,y=v,v=c(g,w),g=b,b=i,i=o,o=c(w,O)}this.h[0]=c(this.h[0],o),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],b),this.h[3]=c(this.h[3],g),this.h[4]=c(this.h[4],v),this.h[5]=c(this.h[5],y),this.h[6]=c(this.h[6],_),this.h[7]=c(this.h[7],x)},v.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=n(41);n.d(t,"Plans",(function(){return 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=c(n(0)),i=c(n(81)),a=c(n(84));function c(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function l(e,t){var n,a,c,u,p,d,f,m,h=[],b={};for(d=0;d<e.length;d++)if("string"!==(p=e[d]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+s);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],c=d;break}h.push(t[p.value])}else h.push(p.value);return n&&(u=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+"`")}(c,e),f=l(e.slice(c+1,u),t),a=o.default.cloneElement(n,{},f),h.push(a),u<e.length-1&&(m=l(e.slice(u+1),t),h=h.concat(m))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(s=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,a.default)(t);try{return l(i,n)}catch(c){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+c.message+"`");return t}}},function(e,t,n){var r=n(20),o=n(37);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(22),o=n(38),i=n(39),a=r.rotl32,c=r.sum32,s=r.sum32_5,l=i.ft_1,u=o.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.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],u=this.h[2],d=this.h[3],f=this.h[4];for(r=0;r<n.length;r++){var m=~~(r/20),h=s(a(o,5),l(m,i,u,d),f,n[r],p[m]);f=d,d=u,u=a(i,30),i=o,o=h}this.h[0]=c(this.h[0],o),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],u),this.h[3]=c(this.h[3],d),this.h[4]=c(this.h[4],f)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";e.exports=n(90)},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";var r=n(92),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var a=u(n);p&&(a=a.concat(p(n)));for(var c=s(t),h=s(n),b=0;b<a.length;++b){var g=a[b];if(!(i[g]||r&&r[g]||h&&h[g]||c&&c[g])){var v=d(n,g);try{l(t,g,v)}catch(y){}}}}return t}},,,,,,,,,,function(e,t){!function(){e.exports=this["a8c-fse-common-data-stores"]}()},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,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==c.return||c.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){},function(e,t,n){var r=n(36);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,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(13);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,c=Number(new Date),s=c-(n||c);a.diff=s,a.prev=n,a.curr=c,n=c,t[0]=o.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=o.formatters[n];if("function"==typeof r){var i=t[l];e=r.call(a,i),t.splice(l,1),l--}return e})),o.formatArgs.call(a,t);var u=a.log||o.log;u.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 c(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(c)),r(o.skips.map(c).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(73),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){var n=1e3,r=6e4,o=60*r,i=24*o;function a(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,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 a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===c&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return a(e,t,i,"day");if(t>=o)return a(e,t,o,"hour");if(t>=r)return a(e,t,r,"minute");if(t>=n)return a(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){},function(e,t,n){},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";var r=n(0),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(40),a=n(82),c=n(83),s="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===o)return n(r,e,""===t?"."+l(e,0):t),1;var p=0,d=""===t?".":t+":";if(Array.isArray(e))for(var f=0;f<e.length;f++)p+=u(i=e[f],d+l(i,f),n,r);else{var m=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(m){0;for(var h,b=m.call(e),g=0;!(h=b.next()).done;)p+=u(i=h.value,d+l(i,g++),n,r)}else if("object"===c){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 p}var p=/\/+/g;function d(e){return(""+e).replace(p,"$&/")}var f,m,h=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},g=function(e){a(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.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 y(e,t,n){var o,a,c=e.result,s=e.keyPrefix,l=e.func,u=e.context,p=l.call(u,t,e.count++);Array.isArray(p)?_(p,c,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(o=p,a=s+(!p.key||t&&t.key===p.key?"":d(p.key)+"/")+n,p=r.cloneElement(o,{key:a},void 0!==o.props?o.props.children:void 0)),c.push(p))}function _(e,t,n,r,o){var i="";null!=n&&(i=d(n)+"/");var a=v.getPooled(t,i,r,o);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,a),v.release(a)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f=function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)},(m=v).instancePool=[],m.getPooled=f||h,m.poolSize||(m.poolSize=10),m.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)_(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,c],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";var r=n(40);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){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(89),o=n(27);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,n){"use strict";
|
20 |
/** @license React v1.3.0
|
21 |
* use-subscription.production.min.js
|
22 |
*
|
@@ -24,12 +39,12 @@
|
|
24 |
*
|
25 |
* This source code is licensed under the MIT license found in the
|
26 |
* LICENSE file in the root directory of this source tree.
|
27 |
-
*/Object.defineProperty(
|
28 |
/*
|
29 |
object-assign
|
30 |
(c) Sindre Sorhus
|
31 |
@license MIT
|
32 |
-
*/var r=Object.getOwnPropertySymbols,
|
33 |
/** @license React v16.13.1
|
34 |
* react-is.production.min.js
|
35 |
*
|
@@ -37,4 +52,4 @@ object-assign
|
|
37 |
*
|
38 |
* This source code is licensed under the MIT license found in the
|
39 |
* LICENSE file in the root directory of this source tree.
|
40 |
-
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,m=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,_=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case p:case d:case a:case s:case c:case m:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case b:case l:return e;default:return t}}case i:return t}}}function O(e){return w(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=b,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return O(e)||w(e)===p},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===o},t.isForwardRef=function(e){return w(e)===f},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)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===c},t.isSuspense=function(e){return w(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===c||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===_||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},function(e,t,n){},function(e,t,n){"use strict";var r=n(96);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};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){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},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);n(61);var r="automattic/launch",o=n(1),i=n(3),a=n(42),c=n(7),s=n.n(c),l=n(0),u=n.n(l),p=n(17),d=n(4),f=n(6);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var g=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=h(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},v=n(11),y=Object(o.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(v.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"})),_=Object(o.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(v.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"})),x=n(9),w=n.n(x),O=n(8),E=n.n(O),k=(n(70),function(e){var t=e.children;return l.createElement("h1",{className:"onboarding-title"},t)}),S=function(e){var t=e.children;return l.createElement("h2",{className:"onboarding-subtitle"},t)},C=n(10),j=n(18),N=l.createContext(A()),P=function(){return l.useContext(N)};Object(j.createHigherOrderComponent)((function(e){return function(t){var n=P();return l.createElement(e,Object(C.a)({},n,t))}}),"withI18n");function A(e){var t,n,r=Object(d.createI18n)(e),o=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:o}}n(71);var T=function(e){var t=e.className,n=e.children;return l.createElement("div",{className:w()("action-buttons",t)},n)},L=function(e){var t=e.className,n=e.children,r=Object(C.c)(e,["className","children"]),o=P().__;return l.createElement(f.Button,Object(C.a)({className:w()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||o("Continue"))},F=(n(65),function(e){var t=e.className,n=e.children;return Object(o.createElement)("div",{className:w()("nux-launch-step",t)},n)});function M(){var e,t=Object(i.useSelect)((function(e){return e("automattic/site").getSite(window._currentSiteId)})),n=Object(i.useSelect)((function(e){return e("automattic/site").isLaunched(window._currentSiteId)}));return{isPaidPlan:t&&!(null===(e=t.plan)||void 0===e?void 0:e.is_free),launchStatus:n,currentDomainName:(null==t?void 0:t.URL)&&new URL(null==t?void 0:t.URL).hostname}}var R=n(13),D=n.n(R),B=n(14),I=n.n(B),z=n(23),U=n.n(z),H=n(43);function $(){var e,t=Object(i.useSelect)((function(e){return e(r).getState()})).domainSearch,n=Object(p.useEntityProp)("root","site","title"),o=s()(n,1)[0],a=M().currentDomainName,c=t.trim()||o;c&&c!==Object(d.__)("Site Title","full-site-editing")||(c=null!==(e=null==a?void 0:a.split(".")[0])&&void 0!==e?e:"");return c}n(69);var q=function(e){var t=e.onNextStep,n=function(){var e=Object(i.useSelect)((function(e){return e(r).getSelectedDomain()})),t=Object(i.useDispatch)(r).setDomainSearch,n=Object(p.useEntityProp)("root","site","title"),o=s()(n,2),a=o[0],c=o[1],l=Object(i.useDispatch)("core").saveEditedEntityRecord;return{title:a,updateTitle:c,saveTitle:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;c(n.trim()),l("root","site"),!e&&t(n)}}}(),a=n.title,c=n.updateTitle,l=n.saveTitle,u=function(){l(),null==t||t()};return Object(o.createElement)(F,{className:"nux-launch-name-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(d.__)("Name your site","full-site-editing")),Object(o.createElement)(S,null,Object(d.__)("Pick a name for your site.","full-site-editing"))),Object(o.createElement)(T,null,Object(o.createElement)(L,{onClick:u,disabled:!(null==a?void 0:a.trim())}))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)("form",{onSubmit:u},Object(o.createElement)(f.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:c,onBlur:function(){return l()},value:a,spellCheck:!1,autoComplete:"off",placeholder:Object(d.__)("Enter site name","full-site-editing"),autoCorrect:"off","data-hj-whitelist":!0}),Object(o.createElement)("p",{className:"nux-launch-step__input-hint"},Object(o.createElement)(f.Tip,{size:18}),Object(o.createElement)("span",null,Object(d.__)("Don't worry, you can change it later.","full-site-editing"))))))},V=n(16);function Y(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 G=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=h(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},W=Object(o.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(v.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"})),K=n(12),X=n.n(K),Z=X()("calypso:analytics");n(44);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(31);var J=n(20),Q=X()("lib/load-script/callback-handler"),ee=new Map;function te(){return ee}function ne(e){return te().has(e)}function re(e,t){var n=te();ne(e)?(Q('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(Q('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=te(),r=n.get(e);if(r){var o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));Q(o),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function ie(){var e=this.getAttribute("src");Q('Handling successful request for "'.concat(e,'"')),oe(e),this.onload=null}function ae(){var e=this.getAttribute("src");Q('Handling failed request for "'.concat(e,'"')),oe(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var ce=X()("lib/load-script/dom-operations");X()("package/load-script");function se(e,t){var n;if(!ne(e)&&(n=function(e){ce('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=ie,t.onerror=ae,t}(e),ce("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){re(e,(function(e){null===e?t():n(e)}))}));re(e,t)}var le,ue=["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 pe(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&se("//stats.wp.com/w.js?61");var de=new J.EventEmitter;function fe(e,t){if(Z('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(V.includes)(ue,e)){if(le){var n=le(t);t=Object(C.a)(Object(C.a)({},t),n)}t=Object(V.omitBy)(t,V.isUndefined),Z('Recording event "%s" with actual props %o',e,t),pe(["recordEvent",e,t]),de.emit("record-event",e,t)}else Z('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var me="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),he=new Uint8Array(16);function be(){if(!me)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return me(he)}for(var ge=[],ve=0;ve<256;++ve)ge[ve]=(ve+256).toString(16).substr(1);var ye=function(e,t){var n=t||0,r=ge;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 _e=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||be)();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||ye(o)};var xe=function(e){var t=e.domain,n=e.cost,r=e.railcarId,o=e.isFree,i=void 0!==o&&o,a=e.isExistingSubdomain,c=void 0!==a&&a,s=e.isRecommended,p=void 0!==s&&s,f=e.onSelect,m=e.onRender,h=e.selected,b=P().__,g=t.indexOf("."),v=t.slice(0,g),y=t.slice(g),_=Object(l.useState)(),x=_[0],O=_[1],E=Object(l.useState)(),k=E[0],S=E[1],C=_e();Object(l.useEffect)((function(){t!==x&&k!==r&&r&&(m(),O(t),S(r))}),[t,x,k,r,m]);return u.a.createElement("label",{className:w()("domain-picker__suggestion-item",{"is-free":i,"is-selected":h})},u.a.createElement("input",{"aria-labelledby":C,className:"domain-picker__suggestion-radio-button",type:"radio",name:"domain-picker-suggestion-option",onChange:function(){k&&function(e){fe("calypso_traintracks_interact",{railcar:e.railcarId,action:e.action})}({action:"domain_selected",railcarId:k}),f(t)},checked:h}),u.a.createElement("div",{className:"domain-picker__suggestion-item-name"},u.a.createElement("div",null,u.a.createElement("span",{className:"domain-picker__domain-name"},v),u.a.createElement("span",{className:"domain-picker__domain-tld"},y),p&&u.a.createElement("div",{className:"domain-picker__badge is-recommended"},b("Recommended"))),c&&u.a.createElement("div",{className:"domain-picker__change-subdomain-tip"},b("You can change your free subdomain later under Domain Settings."))),u.a.createElement("div",{className:w()("domain-picker__price",{"is-paid":!i})},i?b("Free"):u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"domain-picker__price-inclusive"}," ",b("Included in plans")," "),u.a.createElement("span",{className:"domain-picker__price-cost"},Object(d.sprintf)(b("%s/year"),n)))))},we=function(){return u.a.createElement("div",{className:"domain-picker__suggestion-item placeholder"},u.a.createElement("div",{className:"domain-picker__suggestion-item-name placeholder"}),u.a.createElement("div",{className:"domain-picker__price placeholder"}))};function Oe(e,t){return e===t}function Ee(e,t,n){var r=n&&n.equalityFn?n.equalityFn:Oe,o=Object(l.useState)(e),i=o[0],a=o[1],c=function(e,t,n){void 0===n&&(n={});var r=n.maxWait,o=Object(l.useRef)(null),i=Object(l.useRef)([]),a=n.leading,c=Object(l.useRef)(!1),s=Object(l.useRef)(null),u=Object(l.useRef)(!1),p=Object(l.useRef)(e);p.current=e;var d=Object(l.useCallback)((function(){clearTimeout(s.current),clearTimeout(o.current),o.current=null,i.current=[],s.current=null,c.current=!1}),[]);return Object(l.useEffect)((function(){return function(){u.current=!0}}),[]),[Object(l.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(i.current=e,clearTimeout(s.current),!s.current&&a&&!c.current)return p.current.apply(p,e),void(c.current=!0);s.current=setTimeout((function(){d(),u.current||p.current.apply(p,e)}),t),r&&!o.current&&(o.current=setTimeout((function(){var e=i.current;d(),u.current||p.current.apply(null,e)}),r))}),[r,t,d,a]),d,function(){s.current&&(p.current.apply(null,i.current),d())}]}(Object(l.useCallback)((function(e){return a(e)}),[]),t,n),s=c[0],u=c[1],p=Object(l.useRef)(e);return Object(l.useEffect)((function(){r(p.current,e)||(s(e),p.current=e)}),[e,s,r]),[i,u]}var ke=Object(o.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(v.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"})),Se=(n(76),function(e){var t=e.onSelect,n=e.selected,r=P().__,a=Object(o.useState)(!1),c=a[0],s=a[1],u=function(e){s(!1),t(e)},p=Object(i.useSelect)((function(e){return e("automattic/domains/suggestions").getCategories()}));return l.createElement("div",{className:w()("domain-categories",{"is-open":c})},l.createElement(f.Button,{className:"domain-categories__dropdown-button",onClick:function(){return s(!c)}},l.createElement("span",null,n||r("All Categories")),l.createElement(G,{icon:ke,size:16})),l.createElement("ul",{className:"domain-categories__item-group"},l.createElement("li",{className:w()("domain-categories__item",{"is-selected":!n})},l.createElement(f.Button,{onClick:function(){return u()}},r("View all"))),p.map((function(e){var t=e.slug,r=e.title;return l.createElement("li",{key:t,className:w()("domain-categories__item",{"is-selected":t===n})},l.createElement(f.Button,{onClick:function(){return u(t)}},r))}))))}),Ce=function(){return u.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"},u.a.createElement("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),u.a.createElement("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),u.a.createElement("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),u.a.createElement("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),u.a.createElement("text",{x:"80",y:"26",fill:"#999"},"https://"),u.a.createElement("text",{x:"133",y:"26",fill:"#515151"},"example.com"))},je=(n(75),function(e){var t=e.groupItems,n=e.children;return t?u.a.createElement("div",{className:"domain-picker__suggestion-item-group"},n):u.a.createElement(u.a.Fragment,null,n)}),Ne=function(e){var t,n,r=e.header,o=e.showDomainCategories,a=e.onDomainSelect,c=e.onExistingSubdomainSelect,s=e.quantity,p=void 0===s?5:s,d=e.quantityExpanded,m=void 0===d?10:d,h=e.onDomainSearchBlur,b=e.analyticsFlowId,g=e.analyticsUiAlgo,v=e.initialDomainSearch,y=void 0===v?"":v,_=e.onSetDomainSearch,x=e.currentDomain,w=e.existingSubdomain,O=e.segregateFreeAndPaid,E=void 0!==O&&O,k=P().__,S=k("Search for a domain"),C=Object(l.useState)(!1),j=C[0],N=C[1],A=Object(l.useState)(y),T=A[0],L=A[1],F=Object(l.useState)(),M=F[0],R=F[1],D=Object(i.useSelect)((function(e){return e("automattic/domains/suggestions").getDomainSuggestionVendor()})),B=function(e,t,n,r){void 0===e&&(e=""),void 0===r&&(r="en");var o=Ee(e,300)[0];return Object(i.useSelect)((function(e){if(o&&!(o.length<2))return e("automattic/domains/suggestions").getDomainSuggestions(o,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:r,category_slug:n})}),[o,n,t])}(T.trim(),m,M,P().i18nLocale),I=null==B?void 0:B.slice(w?1:0,j?m:p);Object(l.useEffect)((function(){N(!1)}),[T]);var z=Object(l.useState)(),U=z[0],H=z[1];Object(l.useEffect)((function(){var e;B&&H((void 0===(e="suggestion")&&(e="recommendation"),_e().replace(/-/g,"")+"-"+e))}),[B,H]);var $=function(e,t,n,r){!function(e){fe("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:"/"+b+"/"+g,fetchAlgo:"/domains/search/"+D+"/"+b+(M?"/"+M:""),query:T,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})};return u.a.createElement("div",{className:"domain-picker"},r&&r,u.a.createElement("div",{className:"domain-picker__search"},u.a.createElement("div",{className:"domain-picker__search-icon"},u.a.createElement(G,{icon:W})),u.a.createElement(f.TextControl,{"data-hj-whitelist":!0,hideLabelFromVision:!0,label:S,placeholder:S,onChange:function(e){L(e),_(e)},onBlur:function(e){h&&h(e.currentTarget.value)},value:T})),(null===(t=T.trim())||void 0===t?void 0:t.length)>1?u.a.createElement("div",{className:"domain-picker__body"},o&&u.a.createElement("div",{className:"domain-picker__aside"},u.a.createElement(Se,{selected:M,onSelect:R})),u.a.createElement("div",{className:"domain-picker__suggestion-sections"},u.a.createElement(u.a.Fragment,null,E&&u.a.createElement("p",{className:"domain-picker__suggestion-group-label"},k("Keep sub-domain")),u.a.createElement(je,{groupItems:E},w&&u.a.createElement(xe,{key:w,domain:w,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:U?""+U+0:void 0,onRender:function(){return $(w,""+U+0,0,!1)},selected:x===w,onSelect:function(){null==c||c(w)}})),E&&u.a.createElement("p",{className:"domain-picker__suggestion-group-label"},k("Professional domains")),u.a.createElement(je,{groupItems:E},null!==(n=null==I?void 0:I.map((function(e,t){var n=w?t+1:t,r=1===n;return u.a.createElement(xe,{key:e.domain_name,domain:e.domain_name,cost:e.cost,isFree:e.is_free,isRecommended:r,railcarId:U?""+U+n:void 0,onRender:function(){return $(e.domain_name,""+U+n,n,r)},onSelect:function(){a(e)},selected:x===e.domain_name})})))&&void 0!==n?n:Object(V.times)(p,(function(e){return u.a.createElement(we,{key:e})})))),!j&&(null==B?void 0:B.length)&&(null==B?void 0:B.length)>p&&u.a.createElement("div",{className:"domain-picker__show-more"},u.a.createElement(f.Button,{onClick:function(){return N(!0)}},k("View more results"))))):u.a.createElement("div",{className:"domain-picker__empty-state"},u.a.createElement("p",{className:"domain-picker__empty-state--text"},k("A domain name is the site address people type in their browser to visit your site.")),u.a.createElement("div",null,u.a.createElement(Ce,null))))},Pe=(n(74),function(e){var t=e.onNextStep,n=Object(i.useSelect)((function(e){return e(r).getState()})),a=n.plan,c=n.domain,s=M().currentDomainName,l=$(),u=Object(i.useDispatch)(r),p=u.setDomain,f=u.unsetDomain,m=u.setDomainSearch,h=u.unsetPlan,b=u.confirmDomainSelection;return Object(o.createElement)(F,{className:"nux-launch-domain-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(d.__)("Choose a domain","full-site-editing")),Object(o.createElement)(S,null,Object(d.__)("Free for the first year with any paid plan.","full-site-editing"))),Object(o.createElement)(T,null,Object(o.createElement)(L,{onClick:function(){b(),null==t||t()},disabled:!l}))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(Ne,{analyticsFlowId:"gutenboarding",initialDomainSearch:l,onSetDomainSearch:m,onDomainSearchBlur:function(e){fe("calypso_newsite_domain_search_blur",{flow:"gutenboarding",query:e,where:"editor_domain_modal"})},currentDomain:(null==c?void 0:c.domain_name)||s,existingSubdomain:s,onDomainSelect:function(e){b(),p(e),(null==a?void 0:a.isFree)&&h()},onExistingSubdomainSelect:function(){f()},analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0})))}),Ae=n(45),Te=Object(o.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(v.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),Le=Object(o.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(v.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"})),Fe=l.createElement(G,{icon:Te,size:17}),Me=l.createElement(G,{icon:Le,size:17}),Re=l.createElement("svg",{width:"8",viewBox:"0 0 8 4"},l.createElement("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var De=function(e){var t=e.slug,n=e.name,r=e.price,i=e.isPopular,a=void 0!==i&&i,c=e.isFree,s=void 0!==c&&c,u=e.domain,p=e.features,d=e.onSelect,m=e.onPickDomainClick,h=e.onToggleExpandAll,b=e.allPlansExpanded,g=e.disabledLabel,v=P().__,y=l.useState(!1),_=y[0],x=y[1],O=Object(j.useViewportMatch)("mobile",">="),E=function(e,t,n){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plan-item__domain-summary is-cta",icon:Fe,domainMessage:l.createElement(l.Fragment,null,n("Pick a free domain (1 year)")," ",Re)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plan-item__domain-summary is-cta",icon:Fe,domainMessage:l.createElement(l.Fragment,null,n("Pick a free domain (1 year)")," ",Re)}},PAID_DOMAIN:{FREE_PLAN:{className:"plan-item__domain-summary is-free",icon:Me,domainMessage:l.createElement("span",null,Object(o.createInterpolateElement)(n("<url /> is not included"),{url:l.createElement("span",{className:"plan-item__url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{className:"plan-item__domain-summary is-picked",icon:Fe,domainMessage:l.createElement("span",null,Object(o.createInterpolateElement)(n("<url /> is included"),{url:l.createElement("span",{className:"plan-item__url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(s,u,v);l.useEffect((function(){x(b)}),[b]);var k=b||O||a||_;return l.createElement("div",{className:w()("plan-item",{"is-popular":a,"is-open":k})},a&&l.createElement("span",{className:"plan-item__badge"},v("Popular")),l.createElement("div",{className:w()("plan-item__viewport",{"is-popular":a})},l.createElement("div",{className:"plan-item__details"},l.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"},l.createElement("div",{className:"plan-item__heading"},l.createElement("div",{className:"plan-item__name"},n)),l.createElement("div",{className:"plan-item__price"},l.createElement("div",{className:w()("plan-item__price-amount",{"is-loading":!r})},r||" ")),!k&&l.createElement("div",{className:"plan-item__dropdown-chevron"},Re)),l.createElement("div",{hidden:!k},l.createElement("div",{className:"plan-item__price-note"},v(s?"free forever":"per month, billed yearly")),l.createElement("div",{className:"plan-item__actions"},l.createElement(f.Button,{className:"plan-item__select-button",onClick:function(){d(t)},isPrimary:!0,disabled:!!g},l.createElement("span",null,v("Choose")))),l.createElement("div",{className:"plan-item__features"},l.createElement("ul",{className:"plan-item__feature-item-group"},l.createElement("li",{className:"plan-item__feature-item"},g?l.createElement("span",{className:"plan-item__disabled-message"},l.createElement(f.Tip,null,g)):E&&l.createElement(f.Button,{className:E.className,onClick:m,isLink:!0},E.icon,E.domainMessage)),p.map((function(e,t){return l.createElement("li",{key:t,className:"plan-item__feature-item"},Fe," ",e)}))))))),a&&!O&&l.createElement(f.Button,{onClick:h,className:"plan-item__mobile-expand-all-plans",isLink:!0},v(b?"Collapse all plans":"Expand all plans")))},Be=(n(79),function(e){var t=e.selectedPlanSlug,n=e.onPlanSelect,r=e.onPickDomainClick,o=e.currentDomain,a=e.disabledPlans,c=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getSupportedPlans()})),s=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPrices()})),p=Object(l.useState)(!1),d=p[0],f=p[1];return u.a.createElement("div",{className:"plans-table"},c.map((function(e){var i;return e&&u.a.createElement(De,{allPlansExpanded:d,key:e.storeSlug,slug:e.storeSlug,domain:o,features:null!==(i=e.features)&&void 0!==i?i:[],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 f((function(e){return!e}))},disabledLabel:null==a?void 0:a[e.storeSlug]})})))}),Ie=(n(80),u.a.createElement(G,{icon:Te,size:25})),ze=function(e){var t=e.onSelect,n=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPlansDetails()})),r=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPrices()})),o=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getSupportedPlans()})),a=P().__;return u.a.createElement("div",{className:"plans-details"},u.a.createElement("table",{className:"plans-details__table"},u.a.createElement("thead",null,u.a.createElement("tr",{className:"plans-details__header-row"},u.a.createElement("th",null,a("Feature")),o.map((function(e){return u.a.createElement("th",{key:e.storeSlug},e.title)})))),n.map((function(e){return u.a.createElement("tbody",{key:e.id},e.name&&u.a.createElement("tr",{className:"plans-details__header-row"},u.a.createElement("th",{colSpan:6},e.name)),e.features.map((function(e,t){return u.a.createElement("tr",{className:"plans-details__feature-row",key:t},u.a.createElement("th",null,e.name),e.data.map((function(t,n){return u.a.createElement("td",{key:n},"checkbox"===e.type&&(t?u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"hidden"},a("Available")),Ie):u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"hidden"},a("Unavailable")," "))),"text"===e.type&&t)})))})))})),u.a.createElement("tbody",null,u.a.createElement("tr",{className:"plans-details__header-row"},u.a.createElement("th",{colSpan:6},a("Sign up"))),u.a.createElement("tr",{className:"plans-details__feature-row",key:"price"},u.a.createElement("th",null,a("Monthly subscription (billed yearly)")),o.map((function(e){return u.a.createElement("td",{key:e.storeSlug},r[e.storeSlug])}))),u.a.createElement("tr",{className:"plans-details__feature-row",key:"cta"},u.a.createElement("th",null),o.map((function(e){return u.a.createElement("td",{key:e.storeSlug},u.a.createElement(f.Button,{onClick:function(){t(e.storeSlug)},isPrimary:!0},u.a.createElement("span",null,a("Choose"))))}))))))},Ue=(n(78),function(e){var t,n=e.header,r=e.currentPlan,o=e.currentDomain,i=e.onPlanSelect,a=e.onPickDomainClick,c=e.disabledPlans,s=e.singleColumn,u=P().__;return s&&console.log("display accordion"),l.createElement("div",{className:"plans-grid"},n&&l.createElement("div",{className:"plans-grid__header"},n),l.createElement("div",{className:"plans-grid__table"},l.createElement("div",{className:"plans-grid__table-container"},l.createElement(Be,{selectedPlanSlug:null!==(t=null==r?void 0:r.storeSlug)&&void 0!==t?t:"",onPlanSelect:i,currentDomain:o,onPickDomainClick:a,disabledPlans:c}))),l.createElement("div",{className:"plans-grid__details"},l.createElement("div",{className:"plans-grid__details-heading"},l.createElement(k,null,u("Detailed comparison"))),l.createElement("div",{className:"plans-grid__details-container"},l.createElement(ze,{onSelect:i}))))}),He=(n(77),function(e){var t=e.onNextStep,n=Object(i.useSelect)((function(e){return e(r).getSelectedDomain()})),a=Object(i.useSelect)((function(e){return e(r).getLaunchStep()})),c=Object(i.useDispatch)(r),s=c.updatePlan,l=c.setStep;return Object(o.createElement)(F,{className:"nux-launch-plan-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(d.__)("Choose a plan","full-site-editing")),Object(o.createElement)(S,null,Object(d.__)("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(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(Ue,{currentDomain:n,onPlanSelect:function(e){s(e),null==t||t()},onPickDomainClick:function(){l(a.Domain)},disabledPlans:n&&!n.is_free?E()({},Ae.Plans.PLAN_FREE,Object(d.__)("Not available with custom domain","full-site-editing")):void 0})))}),$e=n(50),qe=n.n($e);var Ve=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 o=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 i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.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 Ye=function(e){function t(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var s=c=0;for(t=[];c<i;++c)for(var l=0;l<a;++l)t[s++]=n(e[l]+" ",o[c],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",c=2*t+3*n+4*i;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===N||2===N&&o(s,1)?"-webkit-"+s+s:s}if(0===N||2===N&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return d.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(y,"tb");break;case 232:s=a.replace(y,"tb-rl");break;case 220:s=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),L(2!==t?r:r.replace(O,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,c,l,u){for(var p,d=0,f=t;d<T;++d)switch(p=A[d].call(s,e,f,n,r,o,i,a,c,l,u)){case void 0:case!1:case!0:case null:break;default:f=p}if(f!==t)return f}function c(e){return void 0!==(e=e.prefix)&&(L=null,e?"function"!=typeof e?N=1:(N=2,L=e):N=0),c}function s(e,n){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<T){var s=a(-1,n,c,c,C,S,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var p=function e(n,c,s,p,d){for(var f,m,h,y,x,w=0,O=0,E=0,k=0,A=0,L=0,M=h=f=0,R=0,D=0,B=0,I=0,z=s.length,U=z-1,H="",$="",q="",V="";R<z;){if(m=s.charCodeAt(R),R===U&&0!==O+k+E+w&&(0!==O&&(m=47===O?10:47),k=E=w=0,z++,U++),0===O+k+E+w){if(R===U&&(0<D&&(H=H.replace(u,"")),0<H.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:H+=s.charAt(R)}m=59}switch(m){case 123:for(f=(H=H.trim()).charCodeAt(0),h=1,I=++R;R<z;){switch(m=s.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(m=s.charCodeAt(R+1)){case 42:case 47:e:{for(M=R+1;M<U;++M)switch(s.charCodeAt(M)){case 47:if(42===m&&42===s.charCodeAt(M-1)&&R+2!==M){R=M+1;break e}break;case 10:if(47===m){R=M+1;break e}}R=M}}break;case 91:m++;case 40:m++;case 34:case 39:for(;R++<U&&s.charCodeAt(R)!==m;);}if(0===h)break;R++}switch(h=s.substring(I,R),0===f&&(f=(H=H.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<D&&(H=H.replace(u,"")),m=H.charCodeAt(1)){case 100:case 109:case 115:case 45:D=c;break;default:D=P}if(I=(h=e(c,D,h,m,d+1)).length,0<T&&(x=a(3,h,D=t(P,H,B),c,C,S,I,m,d,p),H=D.join(""),void 0!==x&&0===(I=(h=x.trim()).length)&&(m=0,h="")),0<I)switch(m){case 115:H=H.replace(_,i);case 100:case 109:case 45:h=H+"{"+h+"}";break;case 107:h=(H=H.replace(b,"$1 $2"))+"{"+h+"}",h=1===N||2===N&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=H+h,112===p&&($+=h,h="")}else h="";break;default:h=e(c,t(c,H,B),h,p,d+1)}q+=h,h=B=D=M=f=0,H="",m=s.charCodeAt(++R);break;case 125:case 59:if(1<(I=(H=(0<D?H.replace(u,""):H).trim()).length))switch(0===M&&(f=H.charCodeAt(0),45===f||96<f&&123>f)&&(I=(H=H.replace(" ",":")).length),0<T&&void 0!==(x=a(1,H,c,n,C,S,$.length,p,d,p))&&0===(I=(H=x.trim()).length)&&(H="\0\0"),f=H.charCodeAt(0),m=H.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){V+=H+s.charAt(R);break}default:58!==H.charCodeAt(I-1)&&($+=r(H,f,m,H.charCodeAt(2)))}B=D=M=f=0,H="",m=s.charCodeAt(++R)}}switch(m){case 13:case 10:47===O?O=0:0===1+f&&107!==p&&0<H.length&&(D=1,H+="\0"),0<T*F&&a(0,H,c,n,C,S,$.length,p,d,p),S=1,C++;break;case 59:case 125:if(0===O+k+E+w){S++;break}default:switch(S++,y=s.charAt(R),m){case 9:case 32:if(0===k+w+O)switch(A){case 44:case 58:case 9:case 32:y="";break;default:32!==m&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===k+O+w&&(D=B=1,y="\f"+y);break;case 108:if(0===k+O+w+j&&0<M)switch(R-M){case 2:112===A&&58===s.charCodeAt(R-3)&&(j=A);case 8:111===L&&(j=L)}break;case 58:0===k+O+w&&(M=R);break;case 44:0===O+E+k+w&&(D=1,y+="\r");break;case 34:case 39:0===O&&(k=k===m?0:0===k?m: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===f)switch(2*A+3*L){case 533:break;default:f=1}E++}break;case 64:0===O+E+k+w+M+h&&(h=1);break;case 42:case 47:if(!(0<k+w+E))switch(O){case 0:switch(2*m+3*s.charCodeAt(R+1)){case 235:O=47;break;case 220:I=R,O=42}break;case 42:47===m&&42===A&&I+2!==R&&(33===s.charCodeAt(I+2)&&($+=s.substring(I,R+1)),y="",O=0)}}0===O&&(H+=y)}L=A,A=m,R++}if(0<(I=$.length)){if(D=c,0<T&&(void 0!==(x=a(2,$,D,n,C,S,I,p,d,p))&&0===($=x).length))return V+$+q;if($=D.join(",")+"{"+$+"}",0!=N*j){switch(2!==N||o($,2)||(j=0),j){case 111:$=$.replace(v,":-moz-$1")+$;break;case 112:$=$.replace(g,"::-webkit-input-$1")+$.replace(g,"::-moz-$1")+$.replace(g,":-ms-input-$1")+$}j=0}}return V+$+q}(P,c,n,0,0);return 0<T&&(void 0!==(s=a(-2,p,c,c,C,S,p.length,0,0,0))&&(p=s)),"",j=0,S=C=1,p}var l=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,v=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,w=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,S=1,C=1,j=0,N=1,P=[],A=[],T=0,L=null,F=0;return s.use=function e(t){switch(t){case void 0:case null:T=A.length=0;break;default:if("function"==typeof t)A[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else F=0|!!t}return e},s.set=c,void 0!==e&&c(e),s},Ge=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}};function We(e){e&&Ke.current.insert(e+"}")}var Ke={current:null},Xe=function(e,t,n,r,o,i,a,c,s,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Ke.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+"/*|*/";break;case 3:switch(c){case 102:case 112:return Ke.current.insert(n[0]+t),"";default:return t+(0===l?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(We)}},Ze=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Ye(t);var o,i={};o=e.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(Xe),a=function(e,t,n,o){var i=t.name;Ke.current=n,r(e,t.styles),o&&(s.inserted[i]=!0)};var s={key:n,sheet:new Ve({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return s};function Je(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Qe=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 o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var et=function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<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,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},tt={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 nt=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},rt=/[A-Z]|^ms/g,ot=/_EMO_([^_]+?)_([^]*?)_EMO_/g,it=function(e){return 45===e.charCodeAt(1)},at=function(e){return null!=e&&"boolean"!=typeof e},ct=nt((function(e){return it(e)?e:e.replace(rt,"-$&").toLowerCase()})),st=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ot,(function(e,t,n){return ut={name:t,styles:n,next:ut},t}))}return 1===tt[e]||it(e)||"number"!=typeof t||0===t?t:t+"px"};function lt(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 ut={name:n.name,styles:n.styles,next:ut},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ut={name:o.name,styles:o.styles,next:ut},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=lt(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":at(a)&&(r+=ct(i)+":"+st(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=lt(e,t,a,!1);switch(i){case"animation":case"animationName":r+=ct(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var s=0;s<a.length;s++)at(a[s])&&(r+=ct(i)+":"+st(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=ut,a=n(e);return ut=i,lt(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var ut,pt=/label:\s*([^\s;\n{]+)\s*;/g;var dt=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,o="";ut=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=lt(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=lt(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);pt.lastIndex=0;for(var c,s="";null!==(c=pt.exec(o));)s+="-"+c[1];return{name:et(o)+s,styles:o,next:ut}};var ft=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return dt(t)},mt=Object(l.createContext)("undefined"!=typeof HTMLElement?Ze():null),ht=Object(l.createContext)({}),bt=(mt.Provider,function(e){return Object(l.forwardRef)((function(t,n){return Object(l.createElement)(mt.Consumer,null,(function(r){return e(t,r,n)}))}))});Object.prototype.hasOwnProperty;l.Component;var gt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var c in a="",i)i[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function vt(e,t,n){var r=[],o=Je(e,r,n);return r.length<2?n:o+t(r)}bt((function(e,t){return Object(l.createElement)(ht.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 o=dt(n,t.registered);return Qe(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return vt(t.registered,r,gt(n))},theme:n},i=e.children(o);return!0,i}))}));var yt=n(15),_t=n.n(yt);n(51);function xt(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 wt=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?xt(n,!0).forEach((function(t){E()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},Ot=Ge((function(e){return Ge((function(t){return wt(e,t)}))})),Et=function(e){return Object(l.createElement)(ht.Consumer,null,(function(t){return e.theme!==t&&(t=Ot(t)(e.theme)),Object(l.createElement)(ht.Provider,{value:t},e.children)}))};var kt=Object(o.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(v.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),St="#F6F7F7",Ct="#DCDCDE",jt="#A7AAAD",Nt="#8E9196",Pt="#646970",At="#2C3338",Tt="#008A20",Lt="#FFF",Ft="#000",Mt={colors:{background:St,surface:Lt,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#006088",highlightBorder:"#002C40",highlightOver:"#004E6E",success:Tt,discount:Tt,disabledPaymentButtons:St,disabledPaymentButtonsAccent:Ct,disabledButtons:jt,borderColor:jt,borderColorLight:Ct,borderColorDark:Pt,upcomingStepBackground:Ct,textColor:At,textColorLight:Pt,textColorDark:Ft,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:Ft,applePayButtonRollOverColor:At,noticeBackground:At,defaultNoticeIconBackground:Nt,textColorOnDarkBackground:Lt,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:St,placeHolderTextColor:Nt},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"}},Rt=n(5),Dt=n.n(Rt),Bt=/^((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)-.*))$/,It=nt((function(e){return Bt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),zt=function(e){return"theme"!==e&&"innerRef"!==e},Ut=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?It:zt};function Ht(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 $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(n,!0).forEach((function(t){E()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qt=function e(t,n){var r,o,i;void 0!==n&&(r=n.label,i=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var a=t.__emotion_real===t,c=a&&t.__emotion_base||t;"function"!=typeof o&&a&&(o=t.__emotion_forwardProp);var s=o||Ut(c),u=!s("as");return function(){var p=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==p[0]||void 0===p[0].raw)d.push.apply(d,p);else{0,d.push(p[0][0]);for(var f=p.length,m=1;m<f;m++)d.push(p[m],p[0][m])}var h=bt((function(e,t,n){return Object(l.createElement)(ht.Consumer,null,(function(r){var a=u&&e.as||c,p="",f=[],m=e;if(null==e.theme){for(var h in m={},e)m[h]=e[h];m.theme=r}"string"==typeof e.className?p=Je(t.registered,f,e.className):null!=e.className&&(p=e.className+" ");var b=dt(d.concat(f),t.registered,m);Qe(t,b,"string"==typeof a);p+=t.key+"-"+b.name,void 0!==i&&(p+=" "+i);var g=u&&void 0===o?Ut(a):s,v={};for(var y in e)u&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=p,v.ref=n||e.innerRef,Object(l.createElement)(a,v)}))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=c,h.__emotion_styles=d,h.__emotion_forwardProp=o,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(t,r){return e(t,void 0!==r?$t({},n||{},{},r):n).apply(void 0,d)},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){qt[e]=qt(e)}));var Vt=qt,Yt=n(2),Gt=n.n(Yt);function Wt(e){return e.filter((function(e){return e})).join(" ")}var Kt=n(25),Xt=n.n(Kt),Zt=n(26),Jt=n.n(Zt),Qt=n(28),en=n.n(Qt),tn=n(29),nn=n.n(tn);function rn(){var e=Dt()(["\n\tmargin: 2em;\n\ttext-align: center;\n"]);return rn=function(){return e},e}var on=X()("composite-checkout:checkout-error-boundary"),an=function(e){en()(n,e);var t=nn()(n);function n(e){var r;return Xt()(this,n),(r=t.call(this,e)).state={hasError:!1,currentError:null},r}return Jt()(n,[{key:"componentDidCatch",value:function(e,t){if(this.props.onError){var n="".concat(e.message,"; Stack: ").concat(e.stack,"; Component Stack: ").concat(t.componentStack);on("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?u.a.createElement(cn,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(u.a.Component);function cn(e){var t=e.errorMessage;return u.a.createElement(sn,null,t)}an.propTypes={errorMessage:Gt.a.node.isRequired,onError:Gt.a.func};var sn=Vt.div(rn()),ln=Object(l.createContext)({});X()("composite-checkout:form-status");function un(){var e=Object(l.useContext)(ln),t=e.formStatus,n=e.setFormStatus,r=Object(l.useMemo)((function(){return{setFormLoading:function(){return n("loading")},setFormReady:function(){return n("ready")},setFormSubmitting:function(){return n("submitting")},setFormValidating:function(){return n("validating")},setFormComplete:function(){return n("complete")}}}),[n]);return Object(l.useMemo)((function(){return I()(I()({},r),{},{formStatus:t})}),[t,r])}function pn(){var e=Dt()(["\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"]);return pn=function(){return e},e}function dn(){var e=Dt()(["\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"]);return dn=function(){return e},e}function fn(){var e=Dt()(["\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"]);return fn=function(){return e},e}function mn(){var e=Dt()(["\n 0% {\n opacity: 1;\n }\n\n 70% {\n \topacity: 0.5;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return mn=function(){return e},e}function hn(){var e=Dt()(["\n\tpadding: 24px;\n\tborder-top: 1px solid ",";\n\n\t:first-of-type {\n\t\tborder-top: 0;\n\t}\n"]);return hn=function(){return e},e}function bn(){var e=Dt()(["\n\tbackground: ",";\n\twidth: 100%;\n\tbox-sizing: border-box;\n\tmargin-bottom: 0;\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tmargin: 32px auto;\n\t\tbox-sizing: border-box;\n\t\tmax-width: 556px;\n\t}\n"]);return bn=function(){return e},e}Vt.div(bn(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.colors.borderColorLight})),Vt.div(hn(),(function(e){return e.theme.colors.borderColorLight}));var gn=function(){var e=ft.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_"}}}(mn()),vn=(Vt.h1(fn(),(function(e){return e.theme.weights.normal}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),gn,(function(e){return e.theme.colors.borderColorLight})),Vt.p(dn(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),gn),Vt.div(pn(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight})),X()("composite-checkout:payment-methods"));function yn(){var e=Object(l.useContext)(ln),t=e.paymentMethodId,n=e.setPaymentMethodId,r=_n();if(!n)throw new Error("usePaymentMethod can only be used inside a CheckoutProvider");if(!t)return null;var o=r.find((function(e){return e.id===t}));return o||(vn("No payment method found matching id '".concat(t,"' in"),r),null)}function _n(){var e=Object(l.useContext)(ln).allPaymentMethods;if(!e)throw new Error("useAllPaymentMethods cannot be used outside of CheckoutProvider");return e}var xn=n(30),wn=n.n(xn);function On(){var e=Dt()(["\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;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"]);return On=function(){return e},e}function En(e){var t=e.className,n=e.buttonType,r=e.isBusy,o=e.children,i=wn()(e,["className","buttonType","isBusy","children"]),a=Wt(["checkout-button"].concat(D()(n?["is-status-"+n]:[]),D()(r?["is-busy"]:[]),D()(t?[t]:[])));return u.a.createElement(kn,_t()({buttonType:n,isBusy:r,className:a},i),o)}En.propTypes={buttonType:Gt.a.oneOf(["primary","secondary","text-button","borderless","paypal"]),fullWidth:Gt.a.bool,isBusy:Gt.a.bool};var kn=Vt.button(On(),(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"}),jn,Cn,(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}),Pn,Sn,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),Cn,(function(e){return e.disabled?"not-allowed":"pointer"}),Sn,Pn,Cn,(function(e){var t=e.buttonType;return"grayscale( ".concat("primary"===t||"paypal"===t?"0":"100"," ) invert( 0 );")}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),jn,Nn,Nn,jn);function Sn(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 Cn(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 jn(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 Nn(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 Pn(e){return"text-button"===e.buttonType?"underline":"none"}function An(){var e=Dt()(["\n\tfill: #fff;\n"]);return An=function(){return e},e}function Tn(e){var t=e.className,n=e.id;return u.a.createElement(Ln,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},u.a.createElement("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},u.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"})),u.a.createElement("g",{mask:"url(#"+n+"-check-icon-mask)"},u.a.createElement("rect",{width:"20",height:"20"})))}Tn.propTypes={className:Gt.a.string,id:Gt.a.string};var Ln=Vt.svg(An());function Fn(e){var t=e.value,n=e.onClick,r=e.ariaLabel,o=wn()(e,["value","onClick","ariaLabel"]);return u.a.createElement(En,_t()({onClick:n,buttonType:"primary","aria-label":r},o),t)}var Mn=Object(l.createContext)({});function Rn(){var e=Object(l.useContext)(Mn),t=e.items,n=e.total;if(!t||!n)throw new Error("useLineItems can only be used inside a CheckoutProvider");return[t,n]}function Dn(){var e=Dt()(["\n\tfont-weight: ",";\n"]);return Dn=function(){return e},e}function Bn(){var e=Dt()(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]);return Bn=function(){return e},e}function In(){var e=Dt()(["\n\tborder-top: 1px solid ",";\n\tpadding: 24px 20px;\n"]);return In=function(){return e},e}function zn(){var e=Dt()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tpadding: 24px 20px;\n"]);return zn=function(){return e},e}function Un(){var e=Dt()(["\n\tfont-weight: ",";\n"]);return Un=function(){return e},e}function Hn(){var e=Dt()(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]);return Hn=function(){return e},e}function $n(){var e=Dt()(["\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style-type: none;\n"]);return $n=function(){return e},e}function qn(){var e=Dt()(["\n\tmargin: 0;\n\tpadding: 0;\n"]);return qn=function(){return e},e}Vt.ul(qn()),Vt.li($n());Vt.span(Hn()),Vt.span(Un(),(function(e){return e.theme.weights.bold}));Vt.div(zn(),(function(e){return e.theme.colors.textColor}),(function(e){return e.theme.weights.bold})),Vt.div(In(),(function(e){return e.theme.colors.borderColorLight}));var Vn=Vt.div(Bn());Vt(Vn)(Dn(),(function(e){return e.theme.weights.bold}));function Yn(){var e=Dt()(["\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"]);return Yn=function(){return e},e}function Gn(){var e=Dt()(["\n\tmargin-bottom: 16px;\n"]);return Gn=function(){return e},e}function Wn(e){var t=e.children,n=e.className;return u.a.createElement(Kn,{className:Wt([n,"order-review-section"])},t)}Wn.propTypes={className:Gt.a.string};var Kn=Vt.div(Gn());function Xn(e){var t=e.item,n=e.className,r="checkout-line-item-".concat(t.id);return u.a.createElement("div",{className:Wt([n,"checkout-line-item"])},u.a.createElement("span",{id:r},t.label),u.a.createElement("span",{"aria-labelledby":r},t.amount.displayValue))}Xn.propTypes={className:Gt.a.string,total:Gt.a.bool,isSummaryVisible:Gt.a.bool,item:Gt.a.shape({label:Gt.a.string,amount:Gt.a.shape({displayValue:Gt.a.string})})};var Zn=Vt(Xn)(Yn(),(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 Jn(e){var t=e.total,n=e.className;return u.a.createElement("div",{className:Wt([n,"order-review-total"])},u.a.createElement(Zn,{total:!0,item:t}))}function Qn(e){var t=e.items,n=e.className,r=e.isSummaryVisible;return u.a.createElement("div",{className:Wt([n,"order-review-line-items"])},t.map((function(e){return u.a.createElement(Zn,{isSummaryVisible:r,key:e.id,item:e})})))}function er(e){var t=e.className,n=Rn(),r=s()(n,2),o=r[0],i=r[1];return u.a.createElement("div",{className:Wt([t,"checkout-review-order"])},u.a.createElement(Wn,null,u.a.createElement(Qn,{items:o})),u.a.createElement(Wn,null,u.a.createElement(Jn,{total:i})))}function tr(){var e=Dt()(["\n\tdisplay: ",";\n"]);return tr=function(){return e},e}function nr(){var e=Dt()(["\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"]);return nr=function(){return e},e}function rr(){var e=Dt()(["\n\tposition: absolute;\n\topacity: 0 !important;\n"]);return rr=function(){return e},e}function or(){var e=Dt()(["\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"]);return or=function(){return e},e}function ir(e){var t=e.checked,n=e.name,r=e.value,o=e.onChange,i=e.children,a=e.label,c=e.disabled,p=e.id,d=e.ariaLabel,f=Object(l.useState)(!1),m=s()(f,2),h=m[0],b=m[1];return u.a.createElement(ar,{disabled:c,isFocused:h,checked:t},u.a.createElement(cr,{type:"radio",name:n,id:p,disabled:c,value:r,checked:t,onChange:o,onFocus:function(){b(!0)},onBlur:function(){b(!1)},readOnly:!o,"aria-label":d}),u.a.createElement(sr,{checked:t,htmlFor:p,disabled:c},a),i&&u.a.createElement(lr,{checked:t},i))}Qn.propTypes={className:Gt.a.string,isSummaryVisible:Gt.a.bool,items:Gt.a.arrayOf(Gt.a.shape({label:Gt.a.string,amount:Gt.a.shape({displayValue:Gt.a.string})}))},er.propTypes={className:Gt.a.string},Gt.a.shape({label:Gt.a.string,amount:Gt.a.shape({displayValue:Gt.a.string})}),ir.propTypes={name:Gt.a.string.isRequired,id:Gt.a.string.isRequired,label:Gt.a.node.isRequired,disabled:Gt.a.bool,checked:Gt.a.bool,value:Gt.a.string.isRequired,onChange:Gt.a.func,ariaLabel:Gt.a.string.isRequired};var ar=Vt.div(or(),(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}),ur,(function(e){return e.theme.breakpoints.smallPhoneUp}),ur,(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 cr=Vt.input(rr()),sr=Vt.label(nr(),(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 lr=Vt.div(tr(),(function(e){return e.checked?"block":"none"}));function ur(e){return e.checked?0:"100%"}function pr(){var e=Object(l.useContext)(ln).onEvent;if(!e)throw new Error("useEvents can only be used inside a CheckoutProvider");return e}function dr(){var e=Dt()(["\n\tmargin-bottom: 16px;\n"]);return dr=function(){return e},e}var fr=X()("composite-checkout:checkout-payment-methods");function mr(e){var t=e.summary,n=e.isComplete,r=e.className,o=P().__,i=pr(),a=Object(l.useCallback)((function(e){return i({type:"PAYMENT_METHOD_LOAD_ERROR",payload:e})}),[i]),c=yn(),p=function(){var e=Object(l.useContext)(ln),t=e.paymentMethodId,n=e.setPaymentMethodId;if(!n)throw new Error("usePaymentMethodId can only be used inside a CheckoutProvider");return[t,n]}(),f=s()(p,2)[1],m=function(e){fr("setting payment method to",e),i({type:"PAYMENT_METHOD_SELECT",payload:e}),f(e)},h=_n();return t&&n&&c?(fr("rendering selected paymentMethod",c),u.a.createElement("div",{className:Wt([r,"checkout-payment-methods"])},u.a.createElement(an,{errorMessage:o("There was a problem with this payment method."),onError:a},u.a.createElement(hr,_t()({},c,{checked:!0,summary:!0,ariaLabel:c.getAriaLabel(o)}))))):t?(fr("summary requested, but no complete paymentMethod is selected; isComplete:",n,"paymentMethod:",c),null):(fr("rendering paymentMethods",h),u.a.createElement("div",{className:Wt([r,"checkout-payment-methods"])},u.a.createElement(br,null,h.map((function(e){return u.a.createElement(an,{key:e.id,errorMessage:Object(d.sprintf)(o("There was a problem with the payment method: %s"),e.id),onError:a},u.a.createElement(hr,_t()({},e,{checked:(null==c?void 0:c.id)===e.id,onClick:m,ariaLabel:e.getAriaLabel(o)})))})))))}function hr(e){var t=e.id,n=e.label,r=e.activeContent,o=e.inactiveContent,i=e.checked,a=e.onClick,c=e.ariaLabel,s=e.summary,l=un().formStatus;return s?o:u.a.createElement(ir,{name:"paymentMethod",value:t,id:t,checked:i,disabled:"ready"!==l,onChange:a?function(){return a(t)}:null,ariaLabel:c,label:n},r&&r)}mr.propTypes={summary:Gt.a.bool,isComplete:Gt.a.bool.isRequired,className:Gt.a.string},hr.propTypes={id:Gt.a.string.isRequired,onClick:Gt.a.func,checked:Gt.a.bool.isRequired,ariaLabel:Gt.a.string.isRequired,activeContent:Gt.a.node,label:Gt.a.node,inactiveContent:Gt.a.node,summary:Gt.a.bool};var br=Vt.div(dr());function gr(){var e=Dt()(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return gr=function(){return e},e}function vr(){var e=Dt()(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return vr=function(){return e},e}function yr(){var e=Dt()(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"]);return yr=function(){return e},e}function _r(){var e=Dt()(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"]);return _r=function(){return e},e}function xr(){var e=Dt()(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"]);return xr=function(){return e},e}function wr(){var e=Dt()(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"]);return wr=function(){return e},e}function Or(){var e=Dt()(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]);return Or=function(){return e},e}function Er(){var e=Dt()(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"]);return Er=function(){return e},e}function kr(){var e=Dt()(["\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"]);return kr=function(){return e},e}function Sr(){var e=Dt()(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"]);return Sr=function(){return e},e}function Cr(){var e=Dt()(["\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"]);return Cr=function(){return e},e}function jr(){var e=Dt()(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"]);return jr=function(){return e},e}function Nr(){var e=Dt()(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left; 0;\n\t\t}\n\t}\n"]);return Nr=function(){return e},e}function Pr(){var e=Dt()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"]);return Pr=function(){return e},e}function Ar(){var e=Dt()(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"]);return Ar=function(){return e},e}function Tr(){var e=Dt()(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"]);return Tr=function(){return e},e}var Lr=X()("composite-checkout:checkout"),Fr=u.a.createContext(),Mr=u.a.createContext();function Rr(e){var t=e.children,n=e.className;return u.a.createElement(Hr,{className:Wt([n,"checkout__summary-area"])},t)}var Dr=Vt.div(Tr(),(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 Br(e){var t=e.children,n=e.areStepsActive,r=void 0===n||n,o=0,i=1,a=u.a.Children.toArray(t).filter((function(e){return e})),c=a.length,s=Object(l.useContext)(Fr),p=s.activeStepNumber,d=s.stepCompleteStatus,f=s.setTotalSteps;return Object(l.useEffect)((function(){f(c)}),[c,f]),Lr("active step",p,"step complete status",d,"total steps",c),a.map((function(e){i=(o=i)===c?null:o+1;var t=r&&p===o,n=!!d[o];return u.a.createElement(Mr.Provider,{key:"checkout-step-"+o,value:{stepNumber:o,nextStepNumber:i,isStepActive:t,isStepComplete:n,areStepsActive:r}},e)}))}function Ir(e){var t=e.activeStepContent,n=e.completeStepContent,r=e.titleContent,o=e.stepId,i=e.className,a=e.isCompleteCallback,c=e.editButtonText,s=e.editButtonAriaLabel,p=e.nextStepButtonText,d=e.nextStepButtonAriaLabel,f=e.validatingButtonText,m=e.validatingButtonAriaLabel,h=P().__,b=Object(l.useContext)(Fr),g=b.setActiveStepNumber,v=b.setStepCompleteStatus,y=b.stepCompleteStatus,_=Object(l.useContext)(Mr),x=_.stepNumber,w=_.nextStepNumber,O=_.isStepActive,k=_.isStepComplete,S=_.areStepsActive,C=un(),j=C.formStatus,N=C.setFormValidating,A=C.setFormReady,T=pr(),L=yn(),F=function(e){var t,n;(t=!!e,v(I()(I()({},y),{},E()({},x,t))),e)&&(T({type:"STEP_NUMBER_CHANGED",payload:{stepNumber:w,previousStepNumber:x,paymentMethodId:null!==(n=null==L?void 0:L.id)&&void 0!==n?n:""}}),ro(w),g(w));A()},M=function(){var e=U()(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=a()).then){e.next=8;break}return N(),e.next=5,t;case 5:return n=e.sent,F(n),e.abrupt("return");case 8:F(t);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=["checkout-step"].concat(D()(O?["is-active"]:[]),D()(k?["is-complete"]:[]),D()(i?[i]:[])),B=Object(l.useCallback)((function(e){return T({type:"STEP_LOAD_ERROR",payload:{message:e,stepId:o}})}),[T,o]);return u.a.createElement(zr,{onError:B,editButtonText:c||h("Edit"),editButtonAriaLabel:s||h("Edit this step"),nextStepButtonText:p||h("Continue"),nextStepButtonAriaLabel:d||h("Continue to the next step"),validatingButtonText:f||h("Please wait…"),validatingButtonAriaLabel:m||h("Please wait…"),isStepActive:O,isStepComplete:k,stepNumber:x,stepId:o,titleContent:r,goToThisStep:S?function(){return g(x)}:void 0,goToNextStep:w>0?M:void 0,activeStepContent:t,formStatus:j,completeStepContent:n,className:Wt(R)})}function zr(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,o=e.nextStepButtonText,i=e.validatingButtonText,a=e.nextStepButtonAriaLabel,c=e.validatingButtonAriaLabel,s=e.isStepActive,l=e.isStepComplete,p=e.className,d=e.stepNumber,f=e.stepId,m=e.titleContent,h=e.goToThisStep,b=e.goToNextStep,g=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,_=e.onError,x=P().__;return u.a.createElement(an,{errorMessage:t||x("There was an error with this step."),onError:_},u.a.createElement(Vr,{isActive:s,isComplete:l,className:p},u.a.createElement(Yr,{id:f,stepNumber:d,title:m,isActive:s,isComplete:l,onEdit:"ready"===v&&l&&h&&!s?h:null,editButtonText:n||x("Edit"),editButtonAriaLabel:r||x("Edit this step")}),u.a.createElement(to,{isVisible:s,className:"checkout-steps__step-content"},g,b&&s&&u.a.createElement(Fn,{onClick:b,value:"validating"===v?i||x("Please wait…"):o||x("Continue"),ariaLabel:"validating"===v?c||x("Please wait…"):a||x("Continue to next step"),buttonType:"primary",disabled:"ready"!==v,isBusy:"validating"===v})),l&&y?u.a.createElement(no,{isVisible:!s,className:"checkout-steps__step-complete-content"},y):null))}Ir.propTypes={submitButtonHeader:Gt.a.node},Br.propTypes={areStepsActive:Gt.a.bool},Ir.propTypes={nextStepNumber:Gt.a.number},zr.propTypes={errorMessage:Gt.a.string,onError:Gt.a.func,editButtonAriaLabel:Gt.a.string,editButtonText:Gt.a.string,nextStepButtonText:Gt.a.string,nextStepButtonAriaLabel:Gt.a.string,isStepActive:Gt.a.bool.isRequired,isStepComplete:Gt.a.bool.isRequired,className:Gt.a.string,stepNumber:Gt.a.number,stepId:Gt.a.string.isRequired,titleContent:Gt.a.node.isRequired,goToThisStep:Gt.a.func,goToNextStep:Gt.a.func,activeStepContent:Gt.a.node,formStatus:Gt.a.string,completeStepContent:Gt.a.node};Vt.div(Ar(),(function(e){return e.theme.colors.outline}));var Ur=Vt.div(Pr(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),Hr=Vt.div(Nr(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),$r=Vt.div(jr(),(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})),qr=Vt.div(Cr(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var Vr=Vt.div(Sr(),(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 Yr(e){var t=e.id,n=e.className,r=e.stepNumber,o=e.title,i=e.isActive,a=e.isComplete,c=e.onEdit,s=e.editButtonText,l=e.editButtonAriaLabel,p=P().__,d=!!c;return u.a.createElement(Kr,{isComplete:a,isActive:i,className:Wt([n,"checkout-step__header"])},u.a.createElement(Gr,{isComplete:a,isActive:i,id:t},r||null),u.a.createElement(Wr,{fullWidth:!d,isActive:i},o),d&&u.a.createElement(eo,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:c,"aria-label":l||p("Edit this step")},s||p("Edit")))}function Gr(e){var t=e.isComplete,n=e.isActive,r=e.className,o=e.children,i=e.id,a=!n&&t;return u.a.createElement(Xr,{className:Wt([r,"checkout-step__stepper"])},u.a.createElement(Zr,{isComplete:a},u.a.createElement(Jr,{isComplete:a,isActive:n},o),u.a.createElement(Qr,null,u.a.createElement(Tn,{id:i}))))}Yr.propTypes={id:Gt.a.string,className:Gt.a.string,title:Gt.a.node.isRequired,isActive:Gt.a.bool,isComplete:Gt.a.bool,editButtonText:Gt.a.string,editButtonAriaLabel:Gt.a.string,onEdit:Gt.a.func},Gr.propTypes={id:Gt.a.string,className:Gt.a.string,isComplete:Gt.a.bool,isActive:Gt.a.bool};var Wr=Vt.span(kr(),(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"})),Kr=Vt.h2(Er(),(function(e){return e.isComplete||e.isActive?"8px":"0"})),Xr=Vt.div(Or()),Zr=Vt.div(wr(),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),Jr=Vt.div(xr(),(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"})),Qr=Vt(Jr)(_r(),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"})),eo=Vt(En)(yr());var to=Vt.div(vr(),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),no=Vt.div(gr(),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function ro(e){var t;if(null===(t=window.history)||void 0===t?void 0:t.pushState){var n=e>1?"#step".concat(e):"";if(window.location.hash!==n){var r=window.location.hash?window.location.href.replace(window.location.hash,n):window.location.href+n;Lr("updating url to",r),window.history.pushState(null,null,r)}}}n(94);var oo,io,ao=Object(o.createElement)(g,{icon:kt,size:17}),co=function(e){var t=e.onNextStep,n=Object(i.useSelect)((function(e){return e(r).getSelectedDomain()})),a=Object(i.useSelect)((function(e){return e(r).getSelectedPlan()})),c=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPrices()})),l=Object(i.useSelect)((function(e){return e(r).getLaunchStep()})),u=Object(i.useSelect)((function(e){return e(r).isStepCompleted})),m=Object(i.useSelect)((function(e){return e(r).isFlowCompleted()})),h=Object(p.useEntityProp)("root","site","title"),b=s()(h,1)[0],g=M().currentDomainName,v=function(){var e,t=$();return null===(e=Object(i.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]}(),y=$(),_=Object(i.useDispatch)(r).setStep,x=Object(o.createElement)("div",{className:"nux-launch__summary-item"},Object(o.createElement)("p",null,Object(d.__)("Site","full-site-editing"),": ",b)),O=Object(o.createElement)("div",{className:"nux-launch__summary-item"},(null==n?void 0:n.domain_name)?Object(o.createElement)("p",null,Object(d.__)("Custom domain","full-site-editing"),": ",n.domain_name):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(d.__)("Free site address","full-site-editing"),": ",g),Object(o.createElement)(f.Tip,null,y?Object(o.createInterpolateElement)(Object(d.__)("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(o.createElement)("span",{className:w()("nux-launch__summary-item__domain-name",{"is-loading":!v})},(null==v?void 0:v.domain_name)||"loading-example.com"),Link:Object(o.createElement)(f.Button,{isLink:!0,onClick:function(){return _(l.Domain)}})}):Object(d.__)("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),E=Object(o.createElement)("div",{className:"nux-launch__summary-item"},a&&!(null==a?void 0:a.isFree)?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",a.title),Object(d.__)("Plan subscription","full-site-editing"),": ",c[a.storeSlug]," ",Object(d.__)("per month, billed yearly","full-site-editing")):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),Object(o.createElement)("p",null,Object(d.__)("Plan subscription: Free forever","full-site-editing")),Object(o.createElement)(f.Tip,null,Object(o.createInterpolateElement)(Object(d.__)("<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(o.createElement)(f.Button,{isLink:!0,onClick:function(){return _(l.Plan)}})}))));return Object(o.createElement)(F,{className:"nux-launch-final-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(d.__)("Launch your site","full-site-editing")),Object(o.createElement)(S,null,Object(d.__)("Your site will be made public and ready to share with others.","full-site-editing")))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(Et,{theme:Mt},Object(o.createElement)(Ur,null,u(l.Plan)&&Object(o.createElement)(Rr,null,Object(o.createElement)(Dr,{className:"nux-launch__feature-list"},Object(o.createElement)("h3",{className:"nux-launch__feature-list-title"},Object(d.__)("Included in your plan","full-site-editing")),Object(o.createElement)("ul",{className:"nux-launch__feature-item-group"},null==a?void 0:a.features.map((function(e,t){return Object(o.createElement)("li",{key:t,className:"nux-launch__feature-item"},ao," ",e)}))),Object(o.createElement)("p",null,Object(d.__)("Questions?","full-site-editing")," ",Object(o.createElement)(f.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},Object(d.__)("Ask a Happiness Engineer","full-site-editing"))))),Object(o.createElement)($r,null,Object(o.createElement)(zr,{titleContent:Object(d.__)("Your site name","full-site-editing"),isStepComplete:u(l.Name),goToThisStep:function(){return _(l.Name)},completeStepContent:x,stepId:"name",formStatus:"ready"}),Object(o.createElement)(zr,{titleContent:Object(d.__)("Your domain","full-site-editing"),isStepComplete:u(l.Domain),goToThisStep:function(){return _(l.Domain)},completeStepContent:O,stepId:"domain",formStatus:"ready"}),Object(o.createElement)(zr,{titleContent:Object(d.__)("Your plan","full-site-editing"),isStepComplete:u(l.Plan),goToThisStep:function(){return _(l.Plan)},completeStepContent:E,stepId:"plan",formStatus:"ready"}),Object(o.createElement)(qr,null,Object(o.createElement)(f.Button,{isPrimary:!0,disabled:!m,onClick:t,className:"nux-launch__submit-button"},Object(d.__)("Launch your site","full-site-editing"))))))))},so=(n(98),function(e){var t,n=e.onSubmit,a=Object(i.useSelect)((function(e){return e(r).getState()})).step,c=Object(i.useSelect)((function(e){return e(r).getLaunchStep()})),s=Object(i.useSelect)((function(e){return e(r).getLaunchSequence()})),u=Object(i.useSelect)((function(e){return e(r).getFirstIncompleteStep()})),p=Object(i.useDispatch)(r).setStep,d=(t={},E()(t,c.Name,q),E()(t,c.Domain,Pe),E()(t,c.Plan,He),E()(t,c.Final,co),t),f=s.indexOf(a),m=d[a];return l.useEffect((function(){u&&u!==c.Name&&p(u)}),[]),Object(o.createElement)("div",{className:"nux-launch"},Object(o.createElement)(m,{onPrevStep:function(){var e=f-1;e<0&&(e=0),p(s[e])},onNextStep:function(){var e=f+1;e>s.length-1&&(null==n||n()),p(s[e])}}))}),lo=Object(o.createElement)(f.SVG,{viewBox:"0 0 24 24"},Object(o.createElement)(f.Circle,{cx:"12",cy:"12",r:"5"})),uo=function(e){var t=e.title,n=e.isCompleted,r=e.isCurrent,i=e.isDisabled,a=e.onClick;return Object(o.createElement)(f.Button,{className:w()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:a,disabled:i,isLink:!0},Object(o.createElement)(g,{icon:n?kt:lo,size:16}),Object(o.createElement)("span",null,t))},po=(n(99),function(){var e,t=Object(i.useSelect)((function(e){return e(r).getState()})).step,n=Object(i.useSelect)((function(e){return e(r).getLaunchStep()})),a=Object(i.useSelect)((function(e){return e(r).getLaunchSequence()})),c=Object(i.useSelect)((function(e){return e(r).isStepCompleted})),s=Object(i.useSelect)((function(e){return e(r).isFlowStarted()})),l=(e={},E()(e,n.Name,Object(d.__)("Name your site","full-site-editing")),E()(e,n.Domain,Object(d.__)("Select a domain","full-site-editing")),E()(e,n.Plan,Object(d.__)("Select a plan","full-site-editing")),E()(e,n.Final,Object(d.__)("Launch your site","full-site-editing")),e),u=Object(i.useDispatch)(r).setStep;return Object(o.createElement)("div",{className:"nux-launch-menu"},Object(o.createElement)("h4",null,Object(d.__)("Site Launch Steps","full-site-editing")),Object(o.createElement)("div",{className:"nux-launch-menu__item-group"},a.map((function(e){return Object(o.createElement)(uo,{title:l[e],isCompleted:c(e),isCurrent:e===t,onClick:function(){return u(e)},isDisabled:e===n.Final&&!s})}))))}),fo=(n(100),function(){return Object(o.createElement)("div",{className:"nux-launch-sidebar"},Object(o.createElement)("h2",null,Object(d.__)("You're almost there!","full-site-editing")),Object(o.createElement)("h3",null,Object(d.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing")),Object(o.createElement)(po,null))}),mo=(n(101),function(e){var t=e.onClose,n=Object(i.useSelect)((function(e){return e(r).getState()})).step,a=Object(i.useDispatch)(r).launchSite,c=l.useState(!1),u=s()(c,2),m=u[0],h=u[1],b=function(){h(!0),a()};return M().isPaidPlan&&!m&&b(),Object(o.createElement)(f.Modal,{open:!0,className:w()("nux-launch-modal","step-".concat(n)),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},m?Object(o.createElement)("div",{className:"nux-launch-modal-body__launching"},Object(d.__)("Hooray! Your site will be ready shortly.","full-site-editing")):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"nux-launch-modal-header"},Object(o.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},Object(o.createElement)(g,{icon:y,size:36}))),Object(o.createElement)("div",{className:"nux-launch-modal-body"},Object(o.createElement)(p.EntityProvider,{kind:"root",type:"site"},Object(o.createElement)(so,{onSubmit:b}))),Object(o.createElement)("div",{className:"nux-launch-modal-aside"},Object(o.createElement)(f.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":Object(d.__)("Close dialog","full-site-editing"),disabled:!t},Object(o.createElement)(g,{icon:_,size:24})),Object(o.createElement)(fo,null))))});oo="a8c-editor-site-launch",io={render:function(){var e=Object(i.useSelect)((function(e){return e(r).getState()})).isSidebarOpen,t=Object(i.useDispatch)(r).closeSidebar;return function(){var e=M().launchStatus,t=Object(i.useSelect)((function(e){return e(r).getState()})),n=t.plan,o=t.domain,a=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").isPlanEcommerce(null==n?void 0:n.storeSlug)})),c=Object(i.useDispatch)("automattic/site"),s=c.getCart,u=c.setCart;l.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"}},r={meta:null==o?void 0:o.domain_name,product_id:null==o?void 0:o.product_id,extra:{privacy_available:null==o?void 0:o.supports_privacy,privacy:null==o?void 0:o.supports_privacy,source:"gutenboarding"}};return void function(){var e=U()(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s(window._currentSiteId);case 2:return n=e.sent,e.next=5,u(window._currentSiteId,I()(I()({},n),{},{products:[].concat(D()(n.products),[t,r])}));case 5:o=Object(H.addQueryArgs)("https://wordpress.com/checkout/".concat(window._currentSiteId),I()({preLaunch:1},!a&&{redirect_to:"/home/".concat(window._currentSiteId)})),window.top.location.href=o;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])}(),e?Object(o.createElement)(mo,{onClose:t}):null}},Object(a.registerPlugin)(oo,io)}]));
|
1 |
+
!function(t,e){for(var n in e)t[n]=e[n]}(window,function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=99)}([function(t,e){!function(){t.exports=this.React}()},function(t,e){!function(){t.exports=this.wp.element}()},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return d})),n.d(e,"e",(function(){return p}));
|
2 |
+
/*! *****************************************************************************
|
3 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
4 |
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
5 |
+
this file except in compliance with the License. You may obtain a copy of the
|
6 |
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
7 |
+
|
8 |
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
9 |
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
10 |
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
11 |
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
12 |
+
|
13 |
+
See the Apache Version 2.0 License for specific language governing permissions
|
14 |
+
and limitations under the License.
|
15 |
+
***************************************************************************** */
|
16 |
+
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{s(r.next(t))}catch(e){o(e)}}function c(t){try{s(r.throw(t))}catch(e){o(e)}}function s(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(a,c)}s((r=r.apply(t,e||[])).next())}))}function s(t,e){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:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){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=e.call(t,a)}catch(c){o=[6,c],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}function l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(c){i={error:c}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}function d(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,c=o.length;a<c;a++,i++)r[i]=o[a];return r}function p(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}},function(t,e,n){t.exports=n(93)()},function(t,e){!function(){t.exports=this.wp.data}()},function(t,e){!function(){t.exports=this.wp.i18n}()},function(t,e){!function(){t.exports=this.wp.components}()},function(t,e,n){var r;
|
17 |
/*!
|
18 |
Copyright (c) 2017 Jed Watson.
|
19 |
Licensed under the MIT License (MIT), see
|
20 |
http://jedwatson.github.io/classnames
|
21 |
+
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&t.push(a)}else if("object"===o)for(var c in r)n.call(r,c)&&r[c]&&t.push(c)}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e){!function(){t.exports=this.wp.primitives}()},function(t,e,n){e.log=function(){var t;return"object"==typeof console&&console.log&&(t=console).log.apply(t,arguments)},e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(r++,"%c"===t&&(i=r))})),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.exports=n(70)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(t,e,n){var r=n(60),i=n(61),o=n(28),a=n(62);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()}},function(t,e){!function(){t.exports=this.lodash}()},function(t,e){!function(){t.exports=this.wp.coreData}()},function(t,e,n){var r=n(8);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}t.exports=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},function(t,e){!function(){t.exports=this.wp.compose}()},,function(t,e,n){var r=n(64),i=n(65),o=n(28),a=n(66);t.exports=function(t){return r(t)||i(t)||o(t)||a()}},function(t,e,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function c(){c.init.call(this)}t.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var s=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?c.defaultMaxListeners:t._maxListeners}function d(t,e,n,r){var i,o,a,c;if(l(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(t))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,c=s,console&&console.warn&&console.warn(c)}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function m(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):b(i,i.length)}function h(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),c.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},c.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},c.prototype.getMaxListeners=function(){return u(this)},c.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var s=i[t];if(void 0===s)return!1;if("function"==typeof s)o(s,this,e);else{var l=s.length,u=b(s,l);for(n=0;n<l;++n)o(u[n],this,e)}return!0},c.prototype.addListener=function(t,e){return d(this,t,e,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(t,e){return d(this,t,e,!0)},c.prototype.once=function(t,e){return l(e),this.on(t,f(this,t,e)),this},c.prototype.prependOnceListener=function(t,e){return l(e),this.prependListener(t,f(this,t,e)),this},c.prototype.removeListener=function(t,e){var n,r,i,o,a;if(l(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},c.prototype.listeners=function(t){return m(this,t,!0)},c.prototype.rawListeners=function(t){return m(this,t,!1)},c.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},c.prototype.listenerCount=h,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},,function(t,e,n){"use strict";var r=n(26),i=n(30);function o(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function c(t){return 1===t.length?"0"+t:t}function s(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(t,i)?(a=65536+((1023&a)<<10)+(1023&t.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<t.length;i++)n[i]=0|t[i];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=c(t[n].toString(16));return e},e.htonl=a,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=a(i)),n+=s(i.toString(16))}return n},e.zero2=c,e.zero8=s,e.join32=function(t,e,n,i){var o=n-e;r(o%4==0);for(var a=new Array(o/4),c=0,s=e;c<a.length;c++,s+=4){var l;l="big"===i?t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3]:t[s+3]<<24|t[s+2]<<16|t[s+1]<<8|t[s],a[c]=l>>>0}return a},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},e.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,a=(o<r?1:0)+n+i;t[e]=a>>>0,t[e+1]=o},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,i,o,a,c){var s=0,l=e;return s+=(l=l+r>>>0)<e?1:0,s+=(l=l+o>>>0)<o?1:0,t+n+i+a+(s+=(l=l+c>>>0)<c?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,i,o,a,c){return e+r+o+c>>>0},e.sum64_5_hi=function(t,e,n,r,i,o,a,c,s,l){var u=0,d=e;return u+=(d=d+r>>>0)<e?1:0,u+=(d=d+o>>>0)<o?1:0,u+=(d=d+c>>>0)<c?1:0,t+n+i+a+s+(u+=(d=d+l>>>0)<l?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,i,o,a,c,s,l){return e+r+o+c+l>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},function(t,e){!function(){t.exports=this.wp.dataControls}()},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}t.exports=n},function(t,e,n){"use strict";
|
22 |
/*!
|
23 |
* cookie
|
24 |
* Copyright(c) 2012-2014 Roman Shtylman
|
25 |
* Copyright(c) 2015 Douglas Christopher Wilson
|
26 |
* MIT Licensed
|
27 |
+
*/e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},i=e||{},a=t.split(o),s=i.decode||r,l=0;l<a.length;l++){var u=a[l],d=u.indexOf("=");if(!(d<0)){var p=u.substr(0,d).trim(),f=u.substr(++d,u.length).trim();'"'==f[0]&&(f=f.slice(1,-1)),null==n[p]&&(n[p]=c(f,s))}}return n},e.serialize=function(t,e,n){var r=n||{},o=r.encode||i;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!a.test(t))throw new TypeError("argument name is invalid");var c=o(e);if(c&&!a.test(c))throw new TypeError("argument val is invalid");var s=t+"="+c;if(null!=r.maxAge){var l=r.maxAge-0;if(isNaN(l))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(l)}if(r.domain){if(!a.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!a.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(s+="; HttpOnly");r.secure&&(s+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s};var r=decodeURIComponent,i=encodeURIComponent,o=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function c(t,e){try{return e(t)}catch(n){return t}}},,function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},,function(t,e,n){var r=n(29);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){"use strict";var r=n(20),i=n(26);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(t,e,n){"use strict";var r=n(20).rotr32;function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function a(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?a(e,n,r):2===t?o(e,n,r):void 0},e.ch32=i,e.maj32=o,e.p32=a,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,n){"use strict";function r(t){return function(){return t}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t,e,n){"use strict";n.r(e),n.d(e,"plansPaths",(function(){return Pt})),n.d(e,"PLAN_FREE",(function(){return p})),n.d(e,"PLAN_PERSONAL",(function(){return f})),n.d(e,"PLAN_PREMIUM",(function(){return m})),n.d(e,"PLAN_BUSINESS",(function(){return h})),n.d(e,"PLAN_ECOMMERCE",(function(){return b})),n.d(e,"register",(function(){return Wt}));var r={};n.r(r),n.d(r,"setPrices",(function(){return Ft})),n.d(r,"resetPlan",(function(){return Mt}));var i={};n.r(i),n.d(i,"getPlanBySlug",(function(){return Dt})),n.d(i,"getDefaultPaidPlan",(function(){return Bt})),n.d(i,"getSupportedPlans",(function(){return zt})),n.d(i,"getPlanByPath",(function(){return It})),n.d(i,"getPlansDetails",(function(){return Ut})),n.d(i,"getPlansPaths",(function(){return Ht})),n.d(i,"getPrices",(function(){return $t})),n.d(i,"isPlanEcommerce",(function(){return qt})),n.d(i,"isPlanFree",(function(){return Vt}));var o={};n.r(o),n.d(o,"getPrices",(function(){return Yt}));var a,c,s,l,u=n(21),d=n(4),p="free_plan",f="personal-bundle",m="value_bundle",h="business-bundle",b="ecommerce-bundle",g="automattic/onboard/plans",y=m,v={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}},x=n(2),w=n(17),_=n.n(w),O=n(8),k=n.n(O),E=n(10),j=n.n(E),S=n(40),C=n.n(S);a={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},c=["(","?"],s={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var P={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,n){if(t)throw e;return n}};function N(t){var e=function(t){for(var e,n,r,i,o=[],u=[];e=t.match(l);){for(n=e[0],(r=t.substr(0,e.index).trim())&&o.push(r);i=u.pop();){if(s[n]){if(s[n][0]===i){n=s[n][1]||n;break}}else if(c.indexOf(i)>=0||a[i]<a[n]){u.push(i);break}o.push(i)}s[n]||u.push(n),t=t.substr(e.index+n.length)}return(t=t.trim())&&o.push(t),o.concat(u.reverse())}(t);return function(t){return function(t,e){var n,r,i,o,a,c,s=[];for(n=0;n<t.length;n++){if(a=t[n],o=P[a]){for(r=o.length,i=Array(r);r--;)i[r]=s.pop();try{c=o.apply(null,i)}catch(l){return l}}else c=e.hasOwnProperty(a)?e[a]:+a;s.push(c)}return s[0]}(e,t)}}var A={contextDelimiter:"",onMissingKey:null};function T(t,e){var n;for(n in this.data=t,this.pluralForms={},this.options={},A)this.options[n]=void 0!==e&&n in e?e[n]:A[n]}T.prototype.getPluralForm=function(t,e){var n,r,i,o,a=this.pluralForms[t];return a||("function"!=typeof(i=(n=this.data[t][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(t){var e,n,r;for(e=t.split(";"),n=0;n<e.length;n++)if(0===(r=e[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=N(r),i=function(t){return+o({n:t})}),a=this.pluralForms[t]=i),a(e)},T.prototype.dcnpgettext=function(t,e,n,r,i){var o,a,c;return o=void 0===i?0:this.getPluralForm(t,i),a=n,e&&(a=e+this.options.contextDelimiter+n),(c=this.data[t][a])&&c[o]?c[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,t),0===o?n:r)};var L=n(41),F=n.n(L),M=n(42),R=n.n(M),D=n(18),B=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function z(t,e){var n;if(!Array.isArray(e))for(e=new Array(arguments.length-1),n=1;n<arguments.length;n++)e[n-1]=arguments[n];return n=1,t.replace(B,(function(){var t,r,i,o,a;return t=arguments[3],r=arguments[5],"%"===(o=arguments[9])?"%":("*"===(i=arguments[7])&&(i=e[n-1],n++),void 0!==r?e[0]&&"object"==typeof e[0]&&e[0].hasOwnProperty(r)&&(a=e[0][r]):(void 0===t&&(t=n),n++,a=e[t-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:"")}))}
|
28 |
/*
|
29 |
* Exposes number format capability
|
30 |
*
|
31 |
* @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
|
32 |
* @license See CREDITS.md
|
33 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
34 |
+
*/function I(t,e,n,r){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+t)?+t:0,o=isFinite(+e)?Math.abs(e):0,a=void 0===r?",":r,c=void 0===n?".":n,s="";return(s=(o?function(t,e){var n=Math.pow(10,e);return""+(Math.round(t*n)/n).toFixed(e)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<o&&(s[1]=s[1]||"",s[1]+=new Array(o-s[1].length+1).join("0")),s.join(c)}var U=j()("i18n-calypso"),H="number_format_decimals",$="number_format_thousands_sep",q="messages",V=[function(t){return t}],Y={};function G(){J.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function W(t){return Array.prototype.slice.call(t)}function K(t){var e=t[0];("string"!=typeof e||t.length>3||t.length>2&&"object"==typeof t[1]&&"object"==typeof t[2])&&G("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",W(t),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===t.length&&"string"==typeof e&&"string"==typeof t[1]&&G("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",W(t));for(var n={},r=0;r<t.length;r++)"object"==typeof t[r]&&(n=t[r]);if("string"==typeof e?n.original=e:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof t[1]&&(n.plural=t[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function X(t,e){return t.dcnpgettext(q,e.context,e.original,e.plural,e.count)}function Z(t,e){for(var n=V.length-1;n>=0;n--){var r=V[n](Object.assign({},e)),i=r.context?r.context+""+r.original:r.original;if(t.state.locale[i])return X(t.state.tannin,r)}return null}function J(){if(!(this instanceof J))return new J;this.defaultLocaleSlug="en",this.defaultPluralForms=function(t){return 1===t?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:F()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new D.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}J.throwErrors=!1,J.prototype.on=function(){var t;(t=this.stateObserver).on.apply(t,arguments)},J.prototype.off=function(){var t;(t=this.stateObserver).off.apply(t,arguments)},J.prototype.emit=function(){var t;(t=this.stateObserver).emit.apply(t,arguments)},J.prototype.numberFormat=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof e?e:e.decimals||0,r=e.decPoint||this.state.numberFormatSettings.decimal_point||".",i=e.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return I(t,n,r,i)},J.prototype.configure=function(t){Object.assign(this,t||{}),this.setLocale()},J.prototype.setLocale=function(t){var e,n,r;if(t&&t[""]&&t[""]["key-hash"]){var i=t[""]["key-hash"],o=function(t,e){var n=!1===e?"":String(e);if(void 0!==Y[n+t])return Y[n+t];var r=R()().update(t).digest("hex");return Y[n+t]=e?r.substr(0,e):r},a=function(t){return function(e){return e.context?(e.original=o(e.context+String.fromCharCode(4)+e.original,t),delete e.context):e.original=o(e.original,t),e}};if("sha1"===i.substr(0,4))if(4===i.length)V.push(a(!1));else{var c=i.substr(5).indexOf("-");if(c<0){var s=Number(i.substr(5));V.push(a(s))}else for(var l=Number(i.substr(5,c)),u=Number(i.substr(6+c)),d=l;d<=u;d++)V.push(a(d))}}if(t&&t[""].localeSlug)if(t[""].localeSlug===this.state.localeSlug){if(t===this.state.locale)return;Object.assign(this.state.locale,t)}else this.state.locale=Object.assign({},t);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.textDirection=(null===(e=this.state.locale["text directionltr"])||void 0===e?void 0:e[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 T(k()({},q,this.state.locale)),this.state.numberFormatSettings.decimal_point=X(this.state.tannin,K([H])),this.state.numberFormatSettings.thousands_sep=X(this.state.tannin,K([$])),this.state.numberFormatSettings.decimal_point===H&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===$&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},J.prototype.getLocale=function(){return this.state.locale},J.prototype.getLocaleSlug=function(){return this.state.localeSlug},J.prototype.isRtl=function(){return"rtl"===this.state.textDirection},J.prototype.addTranslations=function(t){for(var e in t)""!==e&&(this.state.tannin.data.messages[e]=t[e]);this.stateObserver.emit("change")},J.prototype.hasTranslation=function(){return!!Z(this,K(arguments))},J.prototype.translate=function(){var t=K(arguments),e=Z(this,t);if(e||(e=X(this.state.tannin,t)),t.args){var n=Array.isArray(t.args)?t.args.slice(0):[t.args];n.unshift(e);try{e=z.apply(void 0,_()(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 t.components&&(e=C()({mixedString:e,components:t.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){e=n(e,t)})),e},J.prototype.reRenderTranslations=function(){U("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},J.prototype.registerComponentUpdateHook=function(t){this.componentUpdateHooks.push(t)},J.prototype.registerTranslateHook=function(t){this.translateHooks.push(t)};var Q=J,tt=n(14),et=n.n(tt),nt=n(43),rt=n.n(nt),it=n(44),ot=n.n(it),at=n(22),ct=n.n(at),st=n(45),lt=n.n(st),ut=n(46),dt=n.n(ut),pt=n(0),ft=n.n(pt),mt=n(11),ht=n.n(mt),bt=n(23),gt=n.n(bt),yt=n(47),vt=n(15);var xt,wt,_t,Ot,kt=new Q,Et=(kt.numberFormat.bind(kt),kt.translate.bind(kt)),jt=(kt.configure.bind(kt),kt.setLocale.bind(kt),kt.getLocale.bind(kt),kt.getLocaleSlug.bind(kt),kt.addTranslations.bind(kt),kt.reRenderTranslations.bind(kt),kt.registerComponentUpdateHook.bind(kt),kt.registerTranslateHook.bind(kt),kt.state,kt.stateObserver,kt.on.bind(kt),kt.off.bind(kt),kt.emit.bind(kt),wt={numberFormat:(xt=kt).numberFormat.bind(xt),translate:xt.translate.bind(xt)},function(t){function e(){var e=t.translate.bind(t);return Object.defineProperty(e,"localeSlug",{get:t.getLocaleSlug.bind(t)}),e}}(kt),function(t){var e={getCurrentValue:function(){return t.isRtl()},subscribe:function(e){return t.on("change",e),function(){return t.off("change",e)}}};function n(){return Object(yt.useSubscription)(e)}var r=Object(vt.createHigherOrderComponent)((function(t){return Object(pt.forwardRef)((function(e,r){var i=n();return ft.a.createElement(t,gt()({},e,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(kt)),St=(jt.useRtl,jt.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"]),Ct=((_t={})[p]={title:Et("Free"),productId:1,storeSlug:p,pathSlug:"beginner",features:["3 GB storage space"],isFree:!0},_t[f]={title:Et("Personal"),productId:1009,storeSlug:f,pathSlug:"personal",features:Object(x.g)(["6 GB storage space"],St.slice(0,3))},_t[m]={title:Et("Premium"),productId:1003,storeSlug:m,pathSlug:"premium",features:Object(x.g)(["13 GB storage space"],St.slice(0,8)),isPopular:!0},_t[h]={title:Et("Business"),productId:1008,storeSlug:h,pathSlug:"business",features:Object(x.g)(["200 GB storage space"],St.slice(0,11))},_t[b]={title:Et("eCommerce"),productId:1011,storeSlug:b,pathSlug:"ecommerce",features:Object(x.g)(["200 GB storage space"],St)},_t),Pt=Object.keys(Ct).map((function(t){return Ct[t].pathSlug})),Nt=[{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]}]}],At=Object.keys(Ct),Tt={supportedPlanSlugs:At,prices:(Ot={},Ot[p]="",Ot[f]="",Ot[m]="",Ot[h]="",Ot[b]="",Ot)},Lt=function(t,e){switch(void 0===t&&(t=Tt),e.type){case"SET_PRICES":return Object(x.a)(Object(x.a)({},t),{prices:e.prices});default:return t}},Ft=function(t){return{type:"SET_PRICES",prices:t}},Mt=function(){return{type:"RESET_PLAN"}};function Rt(t){return Ct[t]}var Dt=function(t,e){return Rt(e)},Bt=function(){return Rt(y)},zt=function(t){return t.supportedPlanSlugs.map(Rt)},It=function(t,e){return e&&zt(t).find((function(t){return(null==t?void 0:t.pathSlug)===e}))},Ut=function(){return Nt},Ht=function(t){return zt(t).map((function(t){return null==t?void 0:t.pathSlug}))},$t=function(t){return t.prices},qt=function(t,e){return e===b},Vt=function(t,e){return e===p};function Yt(){var t,e,n;return Object(x.d)(this,(function(r){switch(r.label){case 0:return[4,Object(u.apiFetch)({global:!0,url:"https://public-api.wordpress.com/rest/v1.5/plans",mode:"cors",credentials:"omit"})];case 1:return t=r.sent(),e=t.filter((function(t){return-1!==At.indexOf(t.product_slug)})),n=e.reduce((function(t,e){return t[e.product_slug]=function(t){var e=v[t.currency_code],n=t.raw_price/12;return Number.isInteger(n)||(n=n.toFixed(e.decimal)),"AMOUNT_THEN_SYMBOL"===e.format?""+n+e.symbol:""+e.symbol+n}(e),t}),{}),[4,Ft(n)];case 2:return r.sent(),[2]}}))}var Gt=!1;function Wt(){return Gt||(Gt=!0,Object(d.registerStore)(g,{resolvers:o,actions:r,controls:u.controls,reducer:Lt,selectors:i})),g}},function(t,e){!function(){t.exports=this.wp.plugins}()},function(t,e){function n(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(l){return void n(l)}c.done?e(s):Promise.resolve(s).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function c(t){n(a,i,o,c,s,"next",t)}function s(t){n(a,i,o,c,s,"throw",t)}c(void 0)}))}}},function(t,e){!function(){t.exports=this.wp.url}()},function(t,e,n){"use strict";var r=n(20),i=n(31),o=n(32),a=n(26),c=r.sum32,s=r.sum32_4,l=r.sum32_5,u=o.ch32,d=o.maj32,p=o.s0_256,f=o.s1_256,m=o.g0_256,h=o.g1_256,b=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(y,b),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=s(h(n[r-2]),n[r-7],m(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],b=this.h[2],g=this.h[3],y=this.h[4],v=this.h[5],x=this.h[6],w=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var _=l(w,f(y),u(y,v,x),this.k[r],n[r]),O=c(p(i),d(i,o,b));w=x,x=v,v=y,y=c(g,_),g=b,b=o,o=i,i=c(_,O)}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],b),this.h[3]=c(this.h[3],g),this.h[4]=c(this.h[4],y),this.h[5]=c(this.h[5],v),this.h[6]=c(this.h[6],x),this.h[7]=c(this.h[7],w)},y.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e,n){"use strict";var r=n(34);n.d(e,"Plans",(function(){return r}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=c(n(0)),o=c(n(79)),a=c(n(82));function c(t){return t&&t.__esModule?t:{default:t}}var s=void 0;function l(t,e){var n,a,c,u,d,p,f,m,h=[],b={};for(p=0;p<t.length;p++)if("string"!==(d=t[p]).type){if(!e.hasOwnProperty(d.value)||void 0===e[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==r(e[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+s);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){n=e[d.value],c=p;break}h.push(e[d.value])}else h.push(d.value);return n&&(u=function(t,e){var n,r,i=e[t],o=0;for(r=t+1;r<e.length;r++)if((n=e[r]).value===i.value){if("componentOpen"===n.type){o++;continue}if("componentClose"===n.type){if(0===o)return r;o--}}throw new Error("Missing closing component token `"+i.value+"`")}(c,t),f=l(t.slice(c+1,u),e),a=i.default.cloneElement(n,{},f),h.push(a),u<t.length-1&&(m=l(t.slice(u+1),e),h=h.concat(m))),1===h.length?h[0]:(h.forEach((function(t,e){t&&(b["interpolation-child-"+e]=t)})),(0,o.default)(b))}e.default=function(t){var e=t.mixedString,n=t.components,i=t.throwErrors;if(s=e,!n)return e;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+e+"` because components is not an object");return e}var o=(0,a.default)(e);try{return l(o,n)}catch(c){if(i)throw new Error("Interpolation Error: unable to process `"+e+"` because of error `"+c.message+"`");return e}}},function(t,e,n){var r=n(18),i=n(30);function o(t){if(!(this instanceof o))return new o(t);"number"==typeof t&&(t={max:t}),t||(t={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=t.max||1e3,this.maxAge=t.maxAge||0}t.exports=o,i(o,r.EventEmitter),Object.defineProperty(o.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),o.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},o.prototype.remove=function(t){if("string"!=typeof t&&(t=""+t),this.cache.hasOwnProperty(t)){var e=this.cache[t];return delete this.cache[t],this._unlink(t,e.prev,e.next),e.value}},o.prototype._unlink=function(t,e,n){this.length--,0===this.length?this.head=this.tail=null:this.head===t?(this.head=e,this.cache[this.head].next=null):this.tail===t?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[e].next=n,this.cache[n].prev=e)},o.prototype.peek=function(t){if(this.cache.hasOwnProperty(t)){var e=this.cache[t];if(this._checkAge(t,e))return e.value}},o.prototype.set=function(t,e){var n;if("string"!=typeof t&&(t=""+t),this.cache.hasOwnProperty(t)){if((n=this.cache[t]).value=e,this.maxAge&&(n.modified=Date.now()),t===this.head)return e;this._unlink(t,n.prev,n.next)}else n={value:e,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[t]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=t),this.head=t,this.tail||(this.tail=t),e},o.prototype._checkAge=function(t,e){return!(this.maxAge&&Date.now()-e.modified>this.maxAge)||(this.remove(t),this.emit("evict",{key:t,value:e.value}),!1)},o.prototype.get=function(t){if("string"!=typeof t&&(t=""+t),this.cache.hasOwnProperty(t)){var e=this.cache[t];if(this._checkAge(t,e))return this.head!==t&&(t===this.tail?(this.tail=e.next,this.cache[this.tail].prev=null):this.cache[e.prev].next=e.next,this.cache[e.next].prev=e.prev,this.cache[this.head].next=t,e.prev=this.head,e.next=null,this.head=t),e.value}},o.prototype.evict=function(){if(this.tail){var t=this.tail,e=this.remove(this.tail);this.emit("evict",{key:t,value:e})}}},function(t,e,n){"use strict";var r=n(20),i=n(31),o=n(32),a=r.rotl32,c=r.sum32,s=r.sum32_5,l=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(p,u),t.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],p=this.h[3],f=this.h[4];for(r=0;r<n.length;r++){var m=~~(r/20),h=s(a(i,5),l(m,o,u,p),f,n[r],d[m]);f=p,p=u,u=a(o,30),o=i,i=h}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],u),this.h[3]=c(this.h[3],p),this.h[4]=c(this.h[4],f)},p.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}},function(t,e,n){var r=n(83);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e,n){var r=n(84),i=n(85),o=n(86);t.exports=function(t){var e=i();return function(){var n,i=r(t);if(e){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}},function(t,e,n){"use strict";t.exports=n(88)},function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},function(t,e,n){"use strict";var r=n(90),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(t){return r.isMemo(t)?a:c[t.$$typeof]||i}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(m){var i=f(n);i&&i!==m&&t(e,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var c=s(e),h=s(n),b=0;b<a.length;++b){var g=a[b];if(!(o[g]||r&&r[g]||h&&h[g]||c&&c[g])){var y=p(n,g);try{l(e,g,y)}catch(v){}}}}return e}},,,,,,,,,,function(t,e){!function(){t.exports=this["a8c-fse-common-data-stores"]}()},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}}},function(t,e){t.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(t,e,n){},function(t,e,n){var r=n(29);t.exports=function(t){if(Array.isArray(t))return r(t)}},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){var r=n(17);t.exports=function(t){function e(t){for(var e=0,n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return i.colors[Math.abs(e)%i.colors.length]}function i(t){var n;function r(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];if(r.enabled){var a=r,c=Number(new Date),s=c-(n||c);a.diff=s,a.prev=n,a.curr=c,n=c,e[0]=i.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var l=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(t,n){if("%%"===t)return t;l++;var r=i.formatters[n];if("function"==typeof r){var o=e[l];t=r.call(a,o),e.splice(l,1),l--}return t})),i.formatArgs.call(a,e);var u=a.log||i.log;u.apply(a,e)}}return r.namespace=t,r.enabled=i.enabled(t),r.useColors=i.useColors(),r.color=e(t),r.destroy=o,r.extend=a,"function"==typeof i.init&&i.init(r),i.instances.push(r),r}function o(){var t=i.instances.indexOf(this);return-1!==t&&(i.instances.splice(t,1),!0)}function a(t,e){var n=i(this.namespace+(void 0===e?":":e)+t);return n.log=this.log,n}function c(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return i.debug=i,i.default=i,i.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},i.disable=function(){var t=[].concat(r(i.names.map(c)),r(i.skips.map(c).map((function(t){return"-"+t})))).join(",");return i.enable(""),t},i.enable=function(t){var e;i.save(t),i.names=[],i.skips=[];var n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length;for(e=0;e<r;e++)n[e]&&("-"===(t=n[e].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+t.substr(1)+"$")):i.names.push(new RegExp("^"+t+"$")));for(e=0;e<i.instances.length;e++){var o=i.instances[e];o.enabled=i.enabled(o.namespace)}},i.enabled=function(t){if("*"===t[t.length-1])return!0;var e,n;for(e=0,n=i.skips.length;e<n;e++)if(i.skips[e].test(t))return!1;for(e=0,n=i.names.length;e<n;e++)if(i.names[e].test(t))return!0;return!1},i.humanize=n(71),Object.keys(t).forEach((function(e){i[e]=t[e]})),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=e,i.enable(i.load()),i}},function(t,e){var n=1e3,r=60*n,i=60*r,o=24*i,a=7*o,c=365.25*o;function s(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}t.exports=function(t,e){e=e||{};var l=typeof t;if("string"===l&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!e)return;var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*c;case"weeks":case"week":case"w":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(t);if("number"===l&&isFinite(t))return e.long?function(t){var e=Math.abs(t);if(e>=o)return s(t,e,o,"day");if(e>=i)return s(t,e,i,"hour");if(e>=r)return s(t,e,r,"minute");if(e>=n)return s(t,e,n,"second");return t+" ms"}(t):function(t){var e=Math.abs(t);if(e>=o)return Math.round(t/o)+"d";if(e>=i)return Math.round(t/i)+"h";if(e>=r)return Math.round(t/r)+"m";if(e>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";var r=n(0),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(33),a=n(80),c=n(81),s="function"==typeof Symbol&&Symbol.iterator;function l(t,e){return t&&"object"==typeof t&&null!=t.key?(n=t.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(t){return r[t]}))):e.toString(36);var n,r}function u(t,e,n,r){var o,c=typeof t;if("undefined"!==c&&"boolean"!==c||(t=null),null===t||"string"===c||"number"===c||"object"===c&&t.$$typeof===i)return n(r,t,""===e?"."+l(t,0):e),1;var d=0,p=""===e?".":e+":";if(Array.isArray(t))for(var f=0;f<t.length;f++)d+=u(o=t[f],p+l(o,f),n,r);else{var m=function(t){var e=t&&(s&&t[s]||t["@@iterator"]);if("function"==typeof e)return e}(t);if(m){0;for(var h,b=m.call(t),g=0;!(h=b.next()).done;)d+=u(o=h.value,p+l(o,g++),n,r)}else if("object"===c){0;var y=""+t;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(t).join(", ")+"}":y,"")}}return d}var d=/\/+/g;function p(t){return(""+t).replace(d,"$&/")}var f,m,h=b,b=function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)},g=function(t){var e=this;a(t instanceof e,"Trying to release an instance into a pool of a different type."),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)};function y(t,e,n,r){this.result=t,this.keyPrefix=e,this.func=n,this.context=r,this.count=0}function v(t,e,n){var i,a,c=t.result,s=t.keyPrefix,l=t.func,u=t.context,d=l.call(u,e,t.count++);Array.isArray(d)?x(d,c,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(i=d,a=s+(!d.key||e&&e.key===d.key?"":p(d.key)+"/")+n,d=r.cloneElement(i,{key:a},void 0!==i.props?i.props.children:void 0)),c.push(d))}function x(t,e,n,r,i){var o="";null!=n&&(o=p(n)+"/");var a=y.getPooled(e,o,r,i);!function(t,e,n){null==t||u(t,"",e,n)}(t,v,a),y.release(a)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f=function(t,e,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,t,e,n,r),o}return new i(t,e,n,r)},(m=y).instancePool=[],m.getPooled=f||h,m.poolSize||(m.poolSize=10),m.release=g;t.exports=function(t){if("object"!=typeof t||!t||Array.isArray(t))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",t),t;if(r.isValidElement(t))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),t;a(1!==t.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var e=[];for(var n in t)x(t[n],e,n,o.thatReturnsArgument);return e}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i,o,a,c){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,c],u=0;(s=new Error(e.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(t,e,n){"use strict";var r=n(33);t.exports=r},function(t,e,n){"use strict";function r(t){return t.match(/^\{\{\//)?{type:"componentClose",value:t.replace(/\W/g,"")}:t.match(/\/\}\}$/)?{type:"componentSelfClosing",value:t.replace(/\W/g,"")}:t.match(/^\{\{/)?{type:"componentOpen",value:t.replace(/\W/g,"")}:{type:"string",value:t}}t.exports=function(t){return t.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,r)}t.exports=n},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e){t.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(t){return!1}}},function(t,e,n){var r=n(87),i=n(22);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?i(t):e}},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e,n){"use strict";
|
35 |
/** @license React v1.3.0
|
36 |
* use-subscription.production.min.js
|
37 |
*
|
39 |
*
|
40 |
* This source code is licensed under the MIT license found in the
|
41 |
* LICENSE file in the root directory of this source tree.
|
42 |
+
*/Object.defineProperty(e,"__esModule",{value:!0});var r=n(89),i=n(0);e.useSubscription=function(t){var e=t.getCurrentValue,n=t.subscribe,o=i.useState((function(){return{getCurrentValue:e,subscribe:n,value:e()}}));t=o[0];var a=o[1];return o=t.value,t.getCurrentValue===e&&t.subscribe===n||(o=e(),a({getCurrentValue:e,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function t(){if(!i){var t=e();a((function(i){return i.getCurrentValue!==e||i.subscribe!==n||i.value===t?i:r({},i,{value:t})}))}}var i=!1,o=n(t);return t(),function(){i=!0,o()}}),[e,n]),o}},function(t,e,n){"use strict";
|
43 |
/*
|
44 |
object-assign
|
45 |
(c) Sindre Sorhus
|
46 |
@license MIT
|
47 |
+
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(t,e){for(var n,c,s=a(t),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))i.call(n,u)&&(s[u]=n[u]);if(r){c=r(n);for(var d=0;d<c.length;d++)o.call(n,c[d])&&(s[c[d]]=n[c[d]])}}return s}},function(t,e,n){"use strict";t.exports=n(91)},function(t,e,n){"use strict";
|
48 |
/** @license React v16.13.1
|
49 |
* react-is.production.min.js
|
50 |
*
|
52 |
*
|
53 |
* This source code is licensed under the MIT license found in the
|
54 |
* LICENSE file in the root directory of this source tree.
|
55 |
+
*/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,c=r?Symbol.for("react.strict_mode"):60108,s=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,f=r?Symbol.for("react.forward_ref"):60112,m=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,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function _(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case d:case p:case a:case s:case c:case m:return t;default:switch(t=t&&t.$$typeof){case u:case f:case g:case b:case l:return t;default:return e}}case o:return e}}}function O(t){return _(t)===p}e.AsyncMode=d,e.ConcurrentMode=p,e.ContextConsumer=u,e.ContextProvider=l,e.Element=i,e.ForwardRef=f,e.Fragment=a,e.Lazy=g,e.Memo=b,e.Portal=o,e.Profiler=s,e.StrictMode=c,e.Suspense=m,e.isAsyncMode=function(t){return O(t)||_(t)===d},e.isConcurrentMode=O,e.isContextConsumer=function(t){return _(t)===u},e.isContextProvider=function(t){return _(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return _(t)===f},e.isFragment=function(t){return _(t)===a},e.isLazy=function(t){return _(t)===g},e.isMemo=function(t){return _(t)===b},e.isPortal=function(t){return _(t)===o},e.isProfiler=function(t){return _(t)===s},e.isStrictMode=function(t){return _(t)===c},e.isSuspense=function(t){return _(t)===m},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===p||t===s||t===c||t===m||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===b||t.$$typeof===l||t.$$typeof===u||t.$$typeof===f||t.$$typeof===v||t.$$typeof===x||t.$$typeof===w||t.$$typeof===y)},e.typeOf=_},function(t,e,n){},function(t,e,n){"use strict";var r=n(94);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";n.r(e);n(59);var r="automattic/site",i="automattic/launch",o="automattic/onboard/plans",a=n(1),c=n(4),s=n(35),l=n(11),u=n.n(l),d=n(0),p=n.n(d),f=n(13),m=n(5),h=n(6);function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var v=function(t){var e=t.icon,n=t.size,r=void 0===n?24:n,i=g(t,["icon","size"]);return Object(a.cloneElement)(e,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({width:r,height:r},i))},x=n(9),w=Object(a.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(a.createElement)(x.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"})),_=Object(a.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(x.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"})),O=n(7),k=n.n(O),E=n(8),j=n.n(E),S=(n(68),function(t){var e=t.children;return d.createElement("h1",{className:"onboarding-title"},e)}),C=function(t){var e=t.children;return d.createElement("h2",{className:"onboarding-subtitle"},e)},P=n(2),N=n(15),A=d.createContext(L()),T=function(){return d.useContext(A)};Object(N.createHigherOrderComponent)((function(t){return function(e){var n=T();return d.createElement(t,Object(P.a)({},n,e))}}),"withI18n");function L(t){var e,n,r=Object(m.createI18n)(t),i=null!==(n=null===(e=null==t?void 0:t[""])||void 0===e?void 0:e.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(69);var F=function(t){var e=t.className,n=t.children;return d.createElement("div",{className:k()("action-buttons",e)},n)},M=function(t){var e=t.className,n=t.children,r=Object(P.f)(t,["className","children"]),i=T().__;return d.createElement(h.Button,Object(P.a)({className:k()("action_buttons__button action-buttons__next",e),isPrimary:!0},r),n||i("Continue"))},R=(n(63),function(t){var e=t.className,n=t.children;return Object(a.createElement)("div",{className:k()("nux-launch-step",e)},n)});function D(){var t,e=Object(c.useSelect)((function(t){return t(r).getSite(window._currentSiteId)})),n=Object(c.useSelect)((function(t){return t(r).isLaunched(window._currentSiteId)}));return{isPaidPlan:e&&!(null===(t=e.plan)||void 0===t?void 0:t.is_free),launchStatus:n,currentDomainName:(null==e?void 0:e.URL)&&new URL(null==e?void 0:e.URL).hostname}}var B=n(17),z=n.n(B),I=n(14),U=n.n(I),H=n(36),$=n.n(H),q=n(37);function V(){var t,e=Object(c.useSelect)((function(t){return t(i).getState()})).domainSearch,n=Object(f.useEntityProp)("root","site","title"),r=u()(n,1)[0],o=D().currentDomainName,a=e.trim()||r;a&&a!==Object(m.__)("Site Title","full-site-editing")||(a=null!==(t=null==o?void 0:o.split(".")[0])&&void 0!==t?t:"");return a}n(67);var Y=function(t){var e=t.onNextStep,n=function(){var t=Object(c.useSelect)((function(t){return t(i).getSelectedDomain()})),e=Object(c.useDispatch)(i).setDomainSearch,n=Object(f.useEntityProp)("root","site","title"),r=u()(n,2),o=r[0],a=r[1],s=Object(c.useDispatch)("core").saveEditedEntityRecord;return{title:o,updateTitle:a,saveTitle:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;a(n.trim()),s("root","site"),!t&&e(n)}}}(),r=n.title,o=n.updateTitle,s=n.saveTitle,l=function(){s(),null==e||e()};return Object(a.createElement)(R,{className:"nux-launch-name-step"},Object(a.createElement)("div",{className:"nux-launch-step__header"},Object(a.createElement)("div",null,Object(a.createElement)(S,null,Object(m.__)("Name your site","full-site-editing")),Object(a.createElement)(C,null,Object(m.__)("Pick a name for your site.","full-site-editing"))),Object(a.createElement)(F,null,Object(a.createElement)(M,{onClick:l,disabled:!(null==r?void 0:r.trim())}))),Object(a.createElement)("div",{className:"nux-launch-step__body"},Object(a.createElement)("form",{onSubmit:l},Object(a.createElement)(h.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:o,onBlur:function(){return s()},value:r,spellCheck:!1,autoComplete:"off",placeholder:Object(m.__)("Enter site name","full-site-editing"),autoCorrect:"off","data-hj-whitelist":!0}),Object(a.createElement)("p",{className:"nux-launch-step__input-hint"},Object(a.createElement)(h.Tip,{size:18}),Object(a.createElement)("span",null,Object(m.__)("Don't worry, you can change it later.","full-site-editing"))))))},G=n(12);function W(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var K=function(t){var e=t.icon,n=t.size,r=void 0===n?24:n,i=g(t,["icon","size"]);return Object(a.cloneElement)(e,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?W(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({width:r,height:r},i))},X=Object(a.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(x.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"})),Z=n(10),J=n.n(Z),Q=J()("calypso:analytics");n(38);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(24);var tt=n(18),et=J()("lib/load-script/callback-handler"),nt=new Map;function rt(){return nt}function it(t){return rt().has(t)}function ot(t,e){var n=rt();it(t)?(et('Adding a callback for an existing script from "'.concat(t,'"')),n.get(t).add(e)):(et('Adding a callback for a new script from "'.concat(t,'"')),n.set(t,new Set([e])))}function at(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=rt(),r=n.get(t);if(r){var i='Executing callbacks for "'.concat(t,'"')+(null===e?" with success":' with error "'.concat(e,'"'));et(i),r.forEach((function(t){"function"==typeof t&&t(e)})),n.delete(t)}}function ct(){var t=this.getAttribute("src");et('Handling successful request for "'.concat(t,'"')),at(t),this.onload=null}function st(){var t=this.getAttribute("src");et('Handling failed request for "'.concat(t,'"')),at(t,new Error('Failed to load script "'.concat(t,'"'))),this.onerror=null}var lt=J()("lib/load-script/dom-operations");J()("package/load-script");function ut(t,e){var n;if(!it(t)&&(n=function(t){lt('Creating script element for "'.concat(t,'"'));var e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=ct,e.onerror=st,e}(t),lt("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof e)return new Promise((function(e,n){ot(t,(function(t){null===t?e():n(t)}))}));ot(t,e)}var dt,pt=["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 ft(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&ut("//stats.wp.com/w.js?61");var mt=new tt.EventEmitter;function ht(t,e){if(Q('Record event "%s" called with props %o',t,e=e||{}),t.startsWith("calypso_")||Object(G.includes)(pt,t)){if(dt){var n=dt(e);e=Object(P.a)(Object(P.a)({},e),n)}e=Object(G.omitBy)(e,G.isUndefined),Q('Recording event "%s" with actual props %o',t,e),ft(["recordEvent",t,e]),mt.emit("record-event",t,e)}else Q('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var bt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),gt=new Uint8Array(16);function yt(){if(!bt)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bt(gt)}for(var vt=[],xt=0;xt<256;++xt)vt[xt]=(xt+256).toString(16).substr(1);var wt=function(t,e){var n=e||0,r=vt;return[r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]]].join("")};var _t=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var i=(t=t||{}).random||(t.rng||yt)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var o=0;o<16;++o)e[r+o]=i[o];return e||wt(i)};var Ot=function(t){var e=t.domain,n=t.cost,r=t.railcarId,i=t.isFree,o=void 0!==i&&i,a=t.isExistingSubdomain,c=void 0!==a&&a,s=t.isRecommended,l=void 0!==s&&s,u=t.onSelect,f=t.onRender,h=t.selected,b=T().__,g=e.indexOf("."),y=e.slice(0,g),v=e.slice(g),x=Object(d.useState)(),w=x[0],_=x[1],O=Object(d.useState)(),E=O[0],j=O[1],S=_t();Object(d.useEffect)((function(){e!==w&&E!==r&&r&&(f(),_(e),j(r))}),[e,w,E,r,f]);return p.a.createElement("label",{className:k()("domain-picker__suggestion-item",{"is-free":o,"is-selected":h})},p.a.createElement("input",{"aria-labelledby":S,className:"domain-picker__suggestion-radio-button",type:"radio",name:"domain-picker-suggestion-option",onChange:function(){E&&function(t){ht("calypso_traintracks_interact",{railcar:t.railcarId,action:t.action})}({action:"domain_selected",railcarId:E}),u(e)},checked:h}),p.a.createElement("div",{className:"domain-picker__suggestion-item-name"},p.a.createElement("div",null,p.a.createElement("span",{className:"domain-picker__domain-name"},y),p.a.createElement("span",{className:"domain-picker__domain-tld"},v),l&&p.a.createElement("div",{className:"domain-picker__badge is-recommended"},b("Recommended"))),c&&p.a.createElement("div",{className:"domain-picker__change-subdomain-tip"},b("You can change your free subdomain later under Domain Settings."))),p.a.createElement("div",{className:k()("domain-picker__price",{"is-paid":!o})},o?b("Free"):p.a.createElement(p.a.Fragment,null,p.a.createElement("span",{className:"domain-picker__price-inclusive"}," ",b("Included in plans")," "),p.a.createElement("span",{className:"domain-picker__price-cost"},Object(m.sprintf)(b("%s/year"),n)))))},kt=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 Et(t,e){return t===e}function jt(t,e,n){var r=n&&n.equalityFn?n.equalityFn:Et,i=Object(d.useState)(t),o=i[0],a=i[1],c=function(t,e,n){void 0===n&&(n={});var r=n.maxWait,i=Object(d.useRef)(null),o=Object(d.useRef)([]),a=n.leading,c=Object(d.useRef)(!1),s=Object(d.useRef)(null),l=Object(d.useRef)(!1),u=Object(d.useRef)(t);u.current=t;var p=Object(d.useCallback)((function(){clearTimeout(s.current),clearTimeout(i.current),i.current=null,o.current=[],s.current=null,c.current=!1}),[]);return Object(d.useEffect)((function(){return function(){l.current=!0}}),[]),[Object(d.useCallback)((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(o.current=t,clearTimeout(s.current),!s.current&&a&&!c.current)return u.current.apply(u,t),void(c.current=!0);s.current=setTimeout((function(){p(),l.current||u.current.apply(u,t)}),e),r&&!i.current&&(i.current=setTimeout((function(){var t=o.current;p(),l.current||u.current.apply(null,t)}),r))}),[r,e,p,a]),p,function(){s.current&&(u.current.apply(null,o.current),p())}]}(Object(d.useCallback)((function(t){return a(t)}),[]),e,n),s=c[0],l=c[1],u=Object(d.useRef)(t);return Object(d.useEffect)((function(){r(u.current,t)||(s(t),u.current=t)}),[t,s,r]),[o,l]}var St="automattic/domains/suggestions";var Ct=Object(a.createElement)(x.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(x.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"})),Pt=(n(74),function(t){var e=t.onSelect,n=t.selected,r=T().__,i=Object(a.useState)(!1),o=i[0],s=i[1],l=function(t){s(!1),e(t)},u=Object(c.useSelect)((function(t){return t(St).getCategories()}));return d.createElement("div",{className:k()("domain-categories",{"is-open":o})},d.createElement(h.Button,{className:"domain-categories__dropdown-button",onClick:function(){return s(!o)}},d.createElement("span",null,n||r("All Categories")),d.createElement(K,{icon:Ct,size:16})),d.createElement("ul",{className:"domain-categories__item-group"},d.createElement("li",{className:k()("domain-categories__item",{"is-selected":!n})},d.createElement(h.Button,{onClick:function(){return l()}},r("View all"))),u.map((function(t){var e=t.slug,r=t.title;return d.createElement("li",{key:e,className:k()("domain-categories__item",{"is-selected":e===n})},d.createElement(h.Button,{onClick:function(){return l(e)}},r))}))))}),Nt=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"))},At=(n(73),function(t){var e=t.groupItems,n=t.children;return e?p.a.createElement("div",{className:"domain-picker__suggestion-item-group"},n):p.a.createElement(p.a.Fragment,null,n)}),Tt=function(t){var e,n,r=t.header,i=t.showDomainCategories,o=t.onDomainSelect,a=t.onExistingSubdomainSelect,s=t.quantity,l=void 0===s?5:s,u=t.quantityExpanded,f=void 0===u?10:u,m=t.onDomainSearchBlur,b=t.analyticsFlowId,g=t.analyticsUiAlgo,y=t.initialDomainSearch,v=void 0===y?"":y,x=t.onSetDomainSearch,w=t.currentDomain,_=t.existingSubdomain,O=t.segregateFreeAndPaid,k=void 0!==O&&O,E=T().__,j=E("Search for a domain"),S=Object(d.useState)(!1),C=S[0],P=S[1],N=Object(d.useState)(v),A=N[0],L=N[1],F=Object(d.useState)(),M=F[0],R=F[1],D=Object(c.useSelect)((function(t){return t(St).getDomainSuggestionVendor()})),B=function(t,e,n,r){void 0===t&&(t=""),void 0===r&&(r="en");var i=jt(t,300)[0];return Object(c.useSelect)((function(t){if(i&&!(i.length<2))return t(St).getDomainSuggestions(i,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:e+1,locale:r,category_slug:n})}),[i,n,e])}(A.trim(),f,M,T().i18nLocale),z=null==B?void 0:B.slice(_?1:0,C?f:l);Object(d.useEffect)((function(){P(!1)}),[A]);var I=Object(d.useState)(),U=I[0],H=I[1];Object(d.useEffect)((function(){var t;B&&H((void 0===(t="suggestion")&&(t="recommendation"),_t().replace(/-/g,"")+"-"+t))}),[B,H]);var $=function(t,e,n,r){!function(t){ht("calypso_traintracks_render",{railcar:t.railcarId,ui_algo:t.uiAlgo,ui_position:t.uiPosition,fetch_algo:t.fetchAlgo,rec_result:t.result,fetch_query:t.query})}({uiAlgo:"/"+b+"/"+g,fetchAlgo:"/domains/search/"+D+"/"+b+(M?"/"+M:""),query:A,railcarId:e,result:r?t+"#recommended":t,uiPosition:n})};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(K,{icon:X})),p.a.createElement(h.TextControl,{"data-hj-whitelist":!0,hideLabelFromVision:!0,label:j,placeholder:j,onChange:function(t){L(t),x(t)},onBlur:function(t){m&&m(t.currentTarget.value)},value:A})),(null===(e=A.trim())||void 0===e?void 0:e.length)>1?p.a.createElement("div",{className:"domain-picker__body"},i&&p.a.createElement("div",{className:"domain-picker__aside"},p.a.createElement(Pt,{selected:M,onSelect:R})),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"},E("Keep sub-domain")),p.a.createElement(At,{groupItems:k},_&&p.a.createElement(Ot,{key:_,domain:_,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:U?""+U+0:void 0,onRender:function(){return $(_,""+U+0,0,!1)},selected:w===_,onSelect:function(){null==a||a(_)}})),k&&p.a.createElement("p",{className:"domain-picker__suggestion-group-label"},E("Professional domains")),p.a.createElement(At,{groupItems:k},null!==(n=null==z?void 0:z.map((function(t,e){var n=_?e+1:e,r=1===n;return p.a.createElement(Ot,{key:t.domain_name,domain:t.domain_name,cost:t.cost,isFree:t.is_free,isRecommended:r,railcarId:U?""+U+n:void 0,onRender:function(){return $(t.domain_name,""+U+n,n,r)},onSelect:function(){o(t)},selected:w===t.domain_name})})))&&void 0!==n?n:Object(G.times)(l,(function(t){return p.a.createElement(kt,{key:t})})))),!C&&(null==B?void 0:B.length)&&(null==B?void 0:B.length)>l&&p.a.createElement("div",{className:"domain-picker__show-more"},p.a.createElement(h.Button,{onClick:function(){return P(!0)}},E("View more results"))))):p.a.createElement("div",{className:"domain-picker__empty-state"},p.a.createElement("p",{className:"domain-picker__empty-state--text"},E("A domain name is the site address people type in their browser to visit your site.")),p.a.createElement("div",null,p.a.createElement(Nt,null))))},Lt="gutenboarding",Ft=(n(72),function(t){var e=t.onNextStep,n=Object(c.useSelect)((function(t){return t(i).getState()})),r=n.plan,o=n.domain,s=D().currentDomainName,l=V(),u=Object(c.useDispatch)(i),d=u.setDomain,p=u.unsetDomain,f=u.setDomainSearch,h=u.unsetPlan,b=u.confirmDomainSelection;return Object(a.createElement)(R,{className:"nux-launch-domain-step"},Object(a.createElement)("div",{className:"nux-launch-step__header"},Object(a.createElement)("div",null,Object(a.createElement)(S,null,Object(m.__)("Choose a domain","full-site-editing")),Object(a.createElement)(C,null,Object(m.__)("Free for the first year with any paid plan.","full-site-editing"))),Object(a.createElement)(F,null,Object(a.createElement)(M,{onClick:function(){b(),null==e||e()},disabled:!l}))),Object(a.createElement)("div",{className:"nux-launch-step__body"},Object(a.createElement)(Tt,{analyticsFlowId:Lt,initialDomainSearch:l,onSetDomainSearch:f,onDomainSearchBlur:function(t){ht("calypso_newsite_domain_search_blur",{flow:Lt,query:t,where:"editor_domain_modal"})},currentDomain:(null==o?void 0:o.domain_name)||s,existingSubdomain:s,onDomainSelect:function(t){b(),d(t),(null==r?void 0:r.isFree)&&h()},onExistingSubdomainSelect:function(){p()},analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0})))}),Mt=n(39),Rt=Object(a.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(x.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),Dt=Object(a.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(x.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"})),Bt=d.createElement(K,{icon:Rt,size:17}),zt=d.createElement(K,{icon:Dt,size:17}),It=d.createElement("svg",{width:"8",viewBox:"0 0 8 4"},d.createElement("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var Ut=function(t){var e=t.slug,n=t.name,r=t.price,i=t.isPopular,o=void 0!==i&&i,c=t.isFree,s=void 0!==c&&c,l=t.domain,u=t.features,p=t.onSelect,f=t.onPickDomainClick,m=t.onToggleExpandAll,b=t.allPlansExpanded,g=t.disabledLabel,y=T().__,v=d.useState(!1),x=v[0],w=v[1],_=Object(N.useViewportMatch)("mobile",">="),O=function(t,e,n){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plan-item__domain-summary is-cta",icon:Bt,domainMessage:d.createElement(d.Fragment,null,n("Pick a free domain (1 year)")," ",It)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plan-item__domain-summary is-cta",icon:Bt,domainMessage:d.createElement(d.Fragment,null,n("Pick a free domain (1 year)")," ",It)}},PAID_DOMAIN:{FREE_PLAN:{className:"plan-item__domain-summary is-free",icon:zt,domainMessage:d.createElement("span",null,Object(a.createInterpolateElement)(n("<url /> is not included"),{url:d.createElement("span",{className:"plan-item__url"},null==e?void 0:e.domain_name)}))},PAID_PLAN:{className:"plan-item__domain-summary is-picked",icon:Bt,domainMessage:d.createElement("span",null,Object(a.createInterpolateElement)(n("<url /> is included"),{url:d.createElement("span",{className:"plan-item__url"},null==e?void 0:e.domain_name)}))}}}[e&&(e.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][t?"FREE_PLAN":"PAID_PLAN"]}(s,l,y);d.useEffect((function(){w(b)}),[b]);var E=b||_||o||x;return d.createElement("div",{className:k()("plan-item",{"is-popular":o,"is-open":E})},o&&d.createElement("span",{className:"plan-item__badge"},y("Popular")),d.createElement("div",{className:k()("plan-item__viewport",{"is-popular":o})},d.createElement("div",{className:"plan-item__details"},d.createElement("div",{tabIndex:0,role:"button",onClick:function(){return w((function(t){return!t}))},onKeyDown:function(t){return 32===t.keyCode&&w((function(t){return!t}))},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:k()("plan-item__price-amount",{"is-loading":!r})},r||" ")),!E&&d.createElement("div",{className:"plan-item__dropdown-chevron"},It)),d.createElement("div",{hidden:!E},d.createElement("div",{className:"plan-item__price-note"},y(s?"free forever":"per month, billed yearly")),d.createElement("div",{className:"plan-item__actions"},d.createElement(h.Button,{className:"plan-item__select-button",onClick:function(){p(e)},isPrimary:!0,disabled:!!g},d.createElement("span",null,y("Choose")))),d.createElement("div",{className:"plan-item__features"},d.createElement("ul",{className:"plan-item__feature-item-group"},d.createElement("li",{className:"plan-item__feature-item"},g?d.createElement("span",{className:"plan-item__disabled-message"},d.createElement(h.Tip,null,g)):O&&d.createElement(h.Button,{className:O.className,onClick:f,isLink:!0},O.icon,O.domainMessage)),u.map((function(t,e){return d.createElement("li",{key:e,className:"plan-item__feature-item"},Bt," ",t)}))))))),o&&!_&&d.createElement(h.Button,{onClick:m,className:"plan-item__mobile-expand-all-plans",isLink:!0},y(b?"Collapse all plans":"Expand all plans")))},Ht="automattic/onboard/plans",$t=(n(77),function(t){var e=t.selectedPlanSlug,n=t.onPlanSelect,r=t.onPickDomainClick,i=t.currentDomain,o=t.disabledPlans,a=Object(c.useSelect)((function(t){return t(Ht).getSupportedPlans()})),s=Object(c.useSelect)((function(t){return t(Ht).getPrices()})),l=Object(d.useState)(!1),u=l[0],f=l[1];return p.a.createElement("div",{className:"plans-table"},a.map((function(t){var a;return t&&p.a.createElement(Ut,{allPlansExpanded:u,key:t.storeSlug,slug:t.storeSlug,domain:i,features:null!==(a=t.features)&&void 0!==a?a:[],isPopular:t.isPopular,isFree:t.isFree,price:s[t.storeSlug],name:null==t?void 0:t.title.toString(),isSelected:t.storeSlug===e,onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return f((function(t){return!t}))},disabledLabel:null==o?void 0:o[t.storeSlug]})})))}),qt=(n(78),p.a.createElement(K,{icon:Rt,size:25})),Vt=function(t){var e=t.onSelect,n=Object(c.useSelect)((function(t){return t(Ht).getPlansDetails()})),r=Object(c.useSelect)((function(t){return t(Ht).getPrices()})),i=Object(c.useSelect)((function(t){return t(Ht).getSupportedPlans()})),o=T().__;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(t){return p.a.createElement("th",{key:t.storeSlug},t.title)})))),n.map((function(t){return p.a.createElement("tbody",{key:t.id},t.name&&p.a.createElement("tr",{className:"plans-details__header-row"},p.a.createElement("th",{colSpan:6},t.name)),t.features.map((function(t,e){return p.a.createElement("tr",{className:"plans-details__feature-row",key:e},p.a.createElement("th",null,t.name),t.data.map((function(e,n){return p.a.createElement("td",{key:n},"checkbox"===t.type&&(e?p.a.createElement(p.a.Fragment,null,p.a.createElement("span",{className:"hidden"},o("Available")),qt):p.a.createElement(p.a.Fragment,null,p.a.createElement("span",{className:"hidden"},o("Unavailable")," "))),"text"===t.type&&e)})))})))})),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(t){return p.a.createElement("td",{key:t.storeSlug},r[t.storeSlug])}))),p.a.createElement("tr",{className:"plans-details__feature-row",key:"cta"},p.a.createElement("th",null),i.map((function(t){return p.a.createElement("td",{key:t.storeSlug},p.a.createElement(h.Button,{onClick:function(){e(t.storeSlug)},isPrimary:!0},p.a.createElement("span",null,o("Choose"))))}))))))},Yt=(n(76),function(t){var e,n=t.header,r=t.currentPlan,i=t.currentDomain,o=t.onPlanSelect,a=t.onPickDomainClick,c=t.disabledPlans,s=t.singleColumn,l=T().__;return s&&console.log("display accordion"),d.createElement("div",{className:"plans-grid"},n&&d.createElement("div",{className:"plans-grid__header"},n),d.createElement("div",{className:"plans-grid__table"},d.createElement("div",{className:"plans-grid__table-container"},d.createElement($t,{selectedPlanSlug:null!==(e=null==r?void 0:r.storeSlug)&&void 0!==e?e:"",onPlanSelect:o,currentDomain:i,onPickDomainClick:a,disabledPlans:c}))),d.createElement("div",{className:"plans-grid__details"},d.createElement("div",{className:"plans-grid__details-heading"},d.createElement(S,null,l("Detailed comparison"))),d.createElement("div",{className:"plans-grid__details-container"},d.createElement(Vt,{onSelect:o}))))}),Gt=(n(75),function(t){var e=t.onNextStep,n=Object(c.useSelect)((function(t){return t(i).getSelectedDomain()})),r=Object(c.useSelect)((function(t){return t(i).getLaunchStep()})),o=Object(c.useDispatch)(i),s=o.updatePlan,l=o.setStep;return Object(a.createElement)(R,{className:"nux-launch-plan-step"},Object(a.createElement)("div",{className:"nux-launch-step__header"},Object(a.createElement)("div",null,Object(a.createElement)(S,null,Object(m.__)("Choose a plan","full-site-editing")),Object(a.createElement)(C,null,Object(m.__)("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(a.createElement)("div",{className:"nux-launch-step__body"},Object(a.createElement)(Yt,{currentDomain:n,onPlanSelect:function(t){s(t),null==e||e()},onPickDomainClick:function(){l(r.Domain)},disabledPlans:n&&!n.is_free?j()({},Mt.Plans.PLAN_FREE,Object(m.__)("Not available with custom domain","full-site-editing")):void 0})))}),Wt=n(48),Kt=n.n(Wt);var Xt=function(){function t(t){this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e,n=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);e=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,e),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(r);try{var o=105===t.charCodeAt(1)&&64===t.charCodeAt(0);i.insertRule(t,o?0:i.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){return t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}();var Zt=function(t){function e(t,e,r){var i=e.trim().split(m);e=i;var o=i.length,a=t.length;switch(a){case 0:case 1:var c=0;for(t=0===a?"":t[0]+" ";c<o;++c)e[c]=n(t,e[c],r).trim();break;default:var s=c=0;for(e=[];c<o;++c)for(var l=0;l<a;++l)e[s++]=n(t[l]+" ",i[c],r).trim()}return e}function n(t,e,n){var r=e.charCodeAt(0);switch(33>r&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(h,"$1"+t.trim());case 58:return t.trim()+e.replace(h,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(h,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function r(t,e,n,o){var a=t+";",c=2*e+3*n+4*o;if(944===c){t=a.indexOf(":",9)+1;var s=a.substring(t,a.length-1).trim();return s=a.substring(0,t).trim()+s+";",1===P||2===P&&i(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!i(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(e=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(e)){case 226:s=a.replace(v,"tb");break;case 232:s=a.replace(v,"tb-rl");break;case 220:s=a.replace(v,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(e=(a=t).length-10,c=(s=(33===a.charCodeAt(e)?a.substring(0,e):a).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(t))return 115===(s=t.substring(t.indexOf(":")+1)).charCodeAt(0)?r(t.replace("stretch","fill-available"),e,n,o).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+o&&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 i(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),L(2!==e?r:r.replace(O,"$1"),n,e)}function o(t,e){var n=r(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(w," or ($1)").substring(4):"("+e+")"}function a(t,e,n,r,i,o,a,c,l,u){for(var d,p=0,f=e;p<T;++p)switch(d=A[p].call(s,t,f,n,r,i,o,a,c,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==e)return f}function c(t){return void 0!==(t=t.prefix)&&(L=null,t?"function"!=typeof t?P=1:(P=2,L=t):P=0),c}function s(t,n){var c=t;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<T){var s=a(-1,n,c,c,S,j,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var d=function t(n,c,s,d,p){for(var f,m,h,v,w,_=0,O=0,k=0,E=0,A=0,L=0,M=h=f=0,R=0,D=0,B=0,z=0,I=s.length,U=I-1,H="",$="",q="",V="";R<I;){if(m=s.charCodeAt(R),R===U&&0!==O+E+k+_&&(0!==O&&(m=47===O?10:47),E=k=_=0,I++,U++),0===O+E+k+_){if(R===U&&(0<D&&(H=H.replace(u,"")),0<H.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:H+=s.charAt(R)}m=59}switch(m){case 123:for(f=(H=H.trim()).charCodeAt(0),h=1,z=++R;R<I;){switch(m=s.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(m=s.charCodeAt(R+1)){case 42:case 47:t:{for(M=R+1;M<U;++M)switch(s.charCodeAt(M)){case 47:if(42===m&&42===s.charCodeAt(M-1)&&R+2!==M){R=M+1;break t}break;case 10:if(47===m){R=M+1;break t}}R=M}}break;case 91:m++;case 40:m++;case 34:case 39:for(;R++<U&&s.charCodeAt(R)!==m;);}if(0===h)break;R++}switch(h=s.substring(z,R),0===f&&(f=(H=H.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<D&&(H=H.replace(u,"")),m=H.charCodeAt(1)){case 100:case 109:case 115:case 45:D=c;break;default:D=N}if(z=(h=t(c,D,h,m,p+1)).length,0<T&&(w=a(3,h,D=e(N,H,B),c,S,j,z,m,p,d),H=D.join(""),void 0!==w&&0===(z=(h=w.trim()).length)&&(m=0,h="")),0<z)switch(m){case 115:H=H.replace(x,o);case 100:case 109:case 45:h=H+"{"+h+"}";break;case 107:h=(H=H.replace(b,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=H+h,112===d&&($+=h,h="")}else h="";break;default:h=t(c,e(c,H,B),h,d,p+1)}q+=h,h=B=D=M=f=0,H="",m=s.charCodeAt(++R);break;case 125:case 59:if(1<(z=(H=(0<D?H.replace(u,""):H).trim()).length))switch(0===M&&(f=H.charCodeAt(0),45===f||96<f&&123>f)&&(z=(H=H.replace(" ",":")).length),0<T&&void 0!==(w=a(1,H,c,n,S,j,$.length,d,p,d))&&0===(z=(H=w.trim()).length)&&(H="\0\0"),f=H.charCodeAt(0),m=H.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){V+=H+s.charAt(R);break}default:58!==H.charCodeAt(z-1)&&($+=r(H,f,m,H.charCodeAt(2)))}B=D=M=f=0,H="",m=s.charCodeAt(++R)}}switch(m){case 13:case 10:47===O?O=0:0===1+f&&107!==d&&0<H.length&&(D=1,H+="\0"),0<T*F&&a(0,H,c,n,S,j,$.length,d,p,d),j=1,S++;break;case 59:case 125:if(0===O+E+k+_){j++;break}default:switch(j++,v=s.charAt(R),m){case 9:case 32:if(0===E+_+O)switch(A){case 44:case 58:case 9:case 32:v="";break;default:32!==m&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===E+O+_&&(D=B=1,v="\f"+v);break;case 108:if(0===E+O+_+C&&0<M)switch(R-M){case 2:112===A&&58===s.charCodeAt(R-3)&&(C=A);case 8:111===L&&(C=L)}break;case 58:0===E+O+_&&(M=R);break;case 44:0===O+k+E+_&&(D=1,v+="\r");break;case 34:case 39:0===O&&(E=E===m?0:0===E?m:E);break;case 91:0===E+O+k&&_++;break;case 93:0===E+O+k&&_--;break;case 41:0===E+O+_&&k--;break;case 40:if(0===E+O+_){if(0===f)switch(2*A+3*L){case 533:break;default:f=1}k++}break;case 64:0===O+k+E+_+M+h&&(h=1);break;case 42:case 47:if(!(0<E+_+k))switch(O){case 0:switch(2*m+3*s.charCodeAt(R+1)){case 235:O=47;break;case 220:z=R,O=42}break;case 42:47===m&&42===A&&z+2!==R&&(33===s.charCodeAt(z+2)&&($+=s.substring(z,R+1)),v="",O=0)}}0===O&&(H+=v)}L=A,A=m,R++}if(0<(z=$.length)){if(D=c,0<T&&void 0!==(w=a(2,$,D,n,S,j,z,d,p,d))&&0===($=w).length)return V+$+q;if($=D.join(",")+"{"+$+"}",0!=P*C){switch(2!==P||i($,2)||(C=0),C){case 111:$=$.replace(y,":-moz-$1")+$;break;case 112:$=$.replace(g,"::-webkit-input-$1")+$.replace(g,"::-moz-$1")+$.replace(g,":-ms-input-$1")+$}C=0}}return V+$+q}(N,c,n,0,0);return 0<T&&(void 0!==(s=a(-2,d,c,c,S,j,d.length,0,0,0))&&(d=s)),"",C=0,j=S=1,d}var l=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,y=/:(read-only)/g,v=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,_=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,j=1,S=1,C=0,P=1,N=[],A=[],T=0,L=null,F=0;return s.use=function t(e){switch(e){case void 0:case null:T=A.length=0;break;default:if("function"==typeof e)A[T++]=e;else if("object"==typeof e)for(var n=0,r=e.length;n<r;++n)t(e[n]);else F=0|!!e}return t},s.set=c,void 0!==t&&c(t),s},Jt=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}},Qt="/*|*/";function te(t){t&&ee.current.insert(t+"}")}var ee={current:null},ne=function(t,e,n,r,i,o,a,c,s,l){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return ee.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===c)return e+Qt;break;case 3:switch(c){case 102:case 112:return ee.current.insert(n[0]+e),"";default:return e+(0===l?Qt:"")}case-2:e.split("/*|*/}").forEach(te)}},re=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var r=new Zt(e);var i,o={};i=t.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach((function(t){o[t]=!0})),t.parentNode!==i&&i.appendChild(t)})),r.use(t.stylisPlugins)(ne),a=function(t,e,n,i){var o=e.name;ee.current=n,r(t,e.styles),i&&(s.inserted[o]=!0)};var s={key:n,sheet:new Xt({key:n,container:i,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:o,registered:{},insert:a};return s};function ie(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):r+=n+" "})),r}var oe=function(t,e,n){var r=t.key+"-"+e.name;if(!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles),void 0===t.inserted[e.name]){var i=e;do{t.insert("."+r,i,t.sheet,!0);i=i.next}while(void 0!==i)}};var ae=function(t){for(var e,n=t.length,r=n^n,i=0;n>=4;)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+((1540483477*(e>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(e=1540483477*(65535&(e^=e>>>24))+((1540483477*(e>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&t.charCodeAt(i+2))<<16;case 2:r^=(255&t.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.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)},ce={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 se=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}},le=/[A-Z]|^ms/g,ue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,de=function(t){return 45===t.charCodeAt(1)},pe=function(t){return null!=t&&"boolean"!=typeof t},fe=se((function(t){return de(t)?t:t.replace(le,"-$&").toLowerCase()})),me=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(ue,(function(t,e,n){return be={name:e,styles:n,next:be},e}))}return 1===ce[t]||de(t)||"number"!=typeof e||0===e?e:e+"px"};function he(t,e,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 be={name:n.name,styles:n.styles,next:be},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)be={name:i.name,styles:i.styles,next:be},i=i.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=he(t,e,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=e&&void 0!==e[a]?r+=o+"{"+e[a]+"}":pe(a)&&(r+=fe(o)+":"+me(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var c=he(t,e,a,!1);switch(o){case"animation":case"animationName":r+=fe(o)+":"+c+";";break;default:r+=o+"{"+c+"}"}}else for(var s=0;s<a.length;s++)pe(a[s])&&(r+=fe(o)+":"+me(o,a[s])+";")}return r}(t,e,n);case"function":if(void 0!==t){var o=be,a=n(t);return be=o,he(t,e,a,r)}break;case"string":}if(null==e)return n;var c=e[n];return void 0===c||r?n:c}var be,ge=/label:\s*([^\s;\n{]+)\s*;/g;var ye=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,i="";be=void 0;var o=t[0];null==o||void 0===o.raw?(r=!1,i+=he(n,e,o,!1)):i+=o[0];for(var a=1;a<t.length;a++)i+=he(n,e,t[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);ge.lastIndex=0;for(var c,s="";null!==(c=ge.exec(i));)s+="-"+c[1];return{name:ae(i)+s,styles:i,next:be}};var ve=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ye(e)},xe=Object(d.createContext)("undefined"!=typeof HTMLElement?re():null),we=Object(d.createContext)({}),_e=(xe.Provider,function(t){return Object(d.forwardRef)((function(e,n){return Object(d.createElement)(xe.Consumer,null,(function(r){return t(e,r,n)}))}))});Object.prototype.hasOwnProperty;d.Component;var Oe=function t(e){for(var n=e.length,r=0,i="";r<n;r++){var o=e[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=t(o);else for(var c in a="",o)o[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function ke(t,e,n){var r=[],i=ie(t,r,n);return r.length<2?n:i+e(r)}_e((function(t,e){return Object(d.createElement)(we.Consumer,null,(function(n){var r=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=ye(n,e.registered);return oe(e,i,!1),e.key+"-"+i.name},i={css:r,cx:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return ke(e.registered,r,Oe(n))},theme:n},o=t.children(i);return!0,o}))})),n(23),n(49);function Ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var je=function(t,e){return"function"==typeof e?e(t):function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ee(n,!0).forEach((function(e){j()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ee(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,{},e)},Se=Jt((function(t){return Jt((function(e){return je(t,e)}))})),Ce=function(t){return Object(d.createElement)(we.Consumer,null,(function(e){return t.theme!==e&&(e=Se(e)(t.theme)),Object(d.createElement)(we.Provider,{value:e},t.children)}))};var Pe=Object(a.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(x.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),Ne="#F6F7F7",Ae="#DCDCDE",Te="#A7AAAD",Le="#8E9196",Fe="#646970",Me="#2C3338",Re="#008A20",De="#FFF",Be="#000",ze={colors:{background:Ne,surface:De,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#006088",highlightBorder:"#002C40",highlightOver:"#004E6E",success:Re,discount:Re,disabledPaymentButtons:Ne,disabledPaymentButtonsAccent:Ae,disabledButtons:Te,borderColor:Te,borderColorLight:Ae,borderColorDark:Fe,upcomingStepBackground:Ae,textColor:Me,textColorLight:Fe,textColorDark:Be,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:Be,applePayButtonRollOverColor:Me,noticeBackground:Me,defaultNoticeIconBackground:Le,textColorOnDarkBackground:De,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:Ne,placeHolderTextColor:Le},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"}},Ie=n(3),Ue=n.n(Ie);function He(t){return t.filter((function(t){return t})).join(" ")}var $e=/^((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)-.*))$/,qe=se((function(t){return $e.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),Ve=function(t){return"theme"!==t&&"innerRef"!==t},Ye=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?qe:Ve};function Ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function We(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ge(n,!0).forEach((function(e){j()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ge(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ke=function t(e,n){var r,i,o;void 0!==n&&(r=n.label,o=n.target,i=e.__emotion_forwardProp&&n.shouldForwardProp?function(t){return e.__emotion_forwardProp(t)&&n.shouldForwardProp(t)}:n.shouldForwardProp);var a=e.__emotion_real===e,c=a&&e.__emotion_base||e;"function"!=typeof i&&a&&(i=e.__emotion_forwardProp);var s=i||Ye(c),l=!s("as");return function(){var u=arguments,p=a&&void 0!==e.__emotion_styles?e.__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 f=u.length,m=1;m<f;m++)p.push(u[m],u[0][m])}var h=_e((function(t,e,n){return Object(d.createElement)(we.Consumer,null,(function(r){var a=l&&t.as||c,u="",f=[],m=t;if(null==t.theme){for(var h in m={},t)m[h]=t[h];m.theme=r}"string"==typeof t.className?u=ie(e.registered,f,t.className):null!=t.className&&(u=t.className+" ");var b=ye(p.concat(f),e.registered,m);oe(e,b,"string"==typeof a);u+=e.key+"-"+b.name,void 0!==o&&(u+=" "+o);var g=l&&void 0===i?Ye(a):s,y={};for(var v in t)l&&"as"===v||g(v)&&(y[v]=t[v]);return y.className=u,y.ref=n||t.innerRef,Object(d.createElement)(a,y)}))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",h.defaultProps=e.defaultProps,h.__emotion_real=h,h.__emotion_base=c,h.__emotion_styles=p,h.__emotion_forwardProp=i,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(e,r){return t(e,void 0!==r?We({},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(t){Ke[t]=Ke(t)}));var Xe=Ke,Ze=J()("composite-checkout:checkout-error-boundary"),Je=function(t){function e(e){var n=t.call(this,e)||this;return n.state={hasError:!1,currentError:null},n}return Object(P.c)(e,t),e.getDerivedStateFromError=function(t){return{currentError:t,hasError:!0}},e.prototype.componentDidCatch=function(t,e){if(this.props.onError){var n=t.message+"; Stack: "+t.stack+"; Component Stack: "+e.componentStack;Ze("reporting the error",n),this.props.onError(n)}},e.prototype.render=function(){return this.state.hasError?p.a.createElement(Qe,{errorMessage:this.props.errorMessage}):this.props.children},e}(p.a.Component);function Qe(t){var e=t.errorMessage;return p.a.createElement(en,null,e)}var tn,en=Xe.div(tn||(tn=Object(P.e)(["\n\tmargin: 2em;\n\ttext-align: center;\n"],["\n\tmargin: 2em;\n\ttext-align: center;\n"]))),nn={allPaymentMethods:[],paymentMethodId:null,setPaymentMethodId:rn,showErrorMessage:rn,showInfoMessage:rn,showSuccessMessage:rn,onEvent:rn,formStatus:"loading",setFormStatus:rn,transactionStatusManager:{transactionStatus:"not-started",previousTransactionStatus:"not-started",transactionError:null,transactionLastResponse:null,transactionRedirectUrl:null,resetTransaction:rn,setTransactionError:rn,setTransactionComplete:rn,setTransactionPending:rn,setTransactionRedirecting:rn,setTransactionAuthorizing:rn},paymentProcessors:{}};function rn(){}var on=Object(d.createContext)(nn);J()("composite-checkout:form-status");function an(){var t=Object(d.useContext)(on),e=t.formStatus,n=t.setFormStatus,r=Object(d.useMemo)((function(){return{setFormLoading:function(){return n("loading")},setFormReady:function(){return n("ready")},setFormSubmitting:function(){return n("submitting")},setFormValidating:function(){return n("validating")},setFormComplete:function(){return n("complete")}}}),[n]);return Object(d.useMemo)((function(){return Object(P.a)(Object(P.a)({},r),{formStatus:e})}),[e,r])}Xe.div(cn||(cn=Object(P.e)(["\n\tbackground: ",";\n\twidth: 100%;\n\tbox-sizing: border-box;\n\tmargin-bottom: 0;\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tmargin: 32px auto;\n\t\tbox-sizing: border-box;\n\t\tmax-width: 556px;\n\t}\n"],["\n\tbackground: ",";\n\twidth: 100%;\n\tbox-sizing: border-box;\n\tmargin-bottom: 0;\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tmargin: 32px auto;\n\t\tbox-sizing: border-box;\n\t\tmax-width: 556px;\n\t}\n"])),(function(t){return t.theme.colors.surface}),(function(t){return t.theme.breakpoints.tabletUp}),(function(t){return t.theme.colors.borderColorLight})),Xe.div(sn||(sn=Object(P.e)(["\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(t){return t.theme.colors.borderColorLight}));var cn,sn,ln,un,dn,pn,fn=function(){var t=ve.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(ln||(ln=Object(P.e)(["\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"]))),mn=(Xe.h1(un||(un=Object(P.e)(["\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(t){return t.theme.weights.normal}),(function(t){return t.theme.colors.borderColorLight}),(function(t){return t.theme.colors.borderColorLight}),fn,(function(t){return t.theme.colors.borderColorLight})),Xe.p(dn||(dn=Object(P.e)(["\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(t){return t.theme.colors.borderColorLight}),(function(t){return t.theme.colors.borderColorLight}),fn),Xe.div(pn||(pn=Object(P.e)(["\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(t){return t.theme.colors.background}),(function(t){return t.theme.colors.borderColorLight}),(function(t){return t.theme.colors.borderColorLight})),J()("composite-checkout:payment-methods"));function hn(){var t=Object(d.useContext)(on),e=t.paymentMethodId,n=t.setPaymentMethodId,r=bn();if(!n)throw new Error("usePaymentMethod can only be used inside a CheckoutProvider");if(!e)return null;var i=r.find((function(t){return t.id===e}));return i||(mn("No payment method found matching id '"+e+"' in",r),null)}function bn(){var t=Object(d.useContext)(on).allPaymentMethods;if(!t)throw new Error("useAllPaymentMethods cannot be used outside of CheckoutProvider");return t}var gn,yn=function(t){var e=t.className,n=t.buttonType,r=t.isBusy,i=t.children,o=t.fullWidth,a=Object(P.f)(t,["className","buttonType","isBusy","children","fullWidth"]),c=He(Object(P.h)(["checkout-button"],n?["is-status-"+n]:[],r?["is-busy"]:[],e?[e]:[]));return p.a.createElement(vn,Object(P.a)({fullWidth:o,buttonType:n,className:c},a),i)},vn=Xe("button")(gn||(gn=Object(P.e)(["\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;\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;\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(t){return t.fullWidth?"100%":"auto"}),(function(t){return"paypal"===t.buttonType?"50px":"2px"}),(function(t){return"text-button"===t.buttonType?"0":"10px 15px"}),(function(t){return!t.buttonType||t.disabled?"1px solid "+t.theme.colors.borderColor:"0"}),_n,wn,(function(t){var e=t.disabled,n=t.buttonType,r=t.theme;if(e||"text-button"===n)return r.weights.normal;return r.weights.bold}),kn,xn,(function(t){return t.buttonType?"inherit":t.theme.colors.borderColorDark}),wn,(function(t){return t.disabled?"not-allowed":"pointer"}),xn,kn,wn,(function(t){var e=t.buttonType;return"grayscale( "+("primary"===e||"paypal"===e?"0":"100")+" ) invert( 0 );"}),(function(t){var e=t.buttonType;return"primary"===e||"paypal"===e?"1":"0.5"}),_n,On,On,_n);function xn(t){var e=t.disabled,n=t.buttonType,r=t.theme.colors;if(e)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 wn(t){var e=t.disabled,n=t.buttonType,r=t.theme.colors;if(e)return r.disabledButtons;switch(n){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function _n(t){var e=t.disabled,n=t.buttonType,r=t.theme.colors;if(e)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function On(t){var e=t.disabled,n=t.buttonType,r=t.theme.colors;if(e)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 kn(t){return"text-button"===t.buttonType?"underline":"none"}function En(t){var e=t.className,n=t.id;return p.a.createElement(Sn,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:e},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"})))}En.propTypes={className:Ue.a.string,id:Ue.a.string};var jn,Sn=Xe.svg(jn||(jn=Object(P.e)(["\n\tfill: #fff;\n"],["\n\tfill: #fff;\n"])));var Cn=function(t){var e=t.value,n=t.onClick,r=t.ariaLabel,i=Object(P.f)(t,["value","onClick","ariaLabel"]);return p.a.createElement(yn,Object(P.a)({onClick:n,buttonType:"primary","aria-label":r},i),e)},Pn=Object(d.createContext)({items:[],total:{id:"title",type:"total",label:"Total",amount:{currency:"USD",value:0,displayValue:"0"}}});function Nn(){var t=Object(d.useContext)(Pn),e=t.items,n=t.total;if(!e||!n)throw new Error("useLineItems can only be used inside a CheckoutProvider");return[e,n]}Xe.ul(An||(An=Object(P.e)(["\n\tmargin: 0;\n\tpadding: 0;\n"],["\n\tmargin: 0;\n\tpadding: 0;\n"]))),Xe.li(Tn||(Tn=Object(P.e)(["\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style-type: none;\n"],["\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style-type: none;\n"])));Xe.span(Ln||(Ln=Object(P.e)(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]))),Xe.span(Fn||(Fn=Object(P.e)(["\n\tfont-weight: ",";\n"],["\n\tfont-weight: ",";\n"])),(function(t){return t.theme.weights.bold}));Xe.div(Mn||(Mn=Object(P.e)(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tpadding: 24px 20px;\n"],["\n\tcolor: ",";\n\tfont-weight: ",";\n\tpadding: 24px 20px;\n"])),(function(t){return t.theme.colors.textColor}),(function(t){return t.theme.weights.bold})),Xe.div(Rn||(Rn=Object(P.e)(["\n\tborder-top: 1px solid ",";\n\tpadding: 24px 20px;\n"],["\n\tborder-top: 1px solid ",";\n\tpadding: 24px 20px;\n"])),(function(t){return t.theme.colors.borderColorLight}));var An,Tn,Ln,Fn,Mn,Rn,Dn,Bn,zn=Xe.div(Dn||(Dn=Object(P.e)(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"])));Xe(zn)(Bn||(Bn=Object(P.e)(["\n\tfont-weight: ",";\n"],["\n\tfont-weight: ",";\n"])),(function(t){return t.theme.weights.bold}));function In(t){var e=t.children,n=t.className;return p.a.createElement(Un,{className:He([n,"order-review-section"])},e)}In.propTypes={className:Ue.a.string};var Un=Xe.div($n||($n=Object(P.e)(["\n\tmargin-bottom: 16px;\n"],["\n\tmargin-bottom: 16px;\n"])));function Hn(t){var e=t.item,n=t.className,r="checkout-line-item-"+e.id;return p.a.createElement("div",{className:He([n,"checkout-line-item"])},p.a.createElement("span",{id:r},e.label),p.a.createElement("span",{"aria-labelledby":r},e.amount.displayValue))}Hn.propTypes={className:Ue.a.string,total:Ue.a.bool,isSummaryVisible:Ue.a.bool,item:Ue.a.shape({label:Ue.a.string,amount:Ue.a.shape({displayValue:Ue.a.string})})};var $n,qn,Vn=Xe(Hn)(qn||(qn=Object(P.e)(["\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(t){var e=t.theme;return t.total?e.weights.bold:e.weights.normal}),(function(t){var e=t.theme;return t.total?e.colors.textColorDark:"inherit"}),(function(t){return t.total?"1.2em":"1em"}),(function(t){var e=t.total;return t.isSummaryVisible||e?0:"24px 0"}),(function(t){var e=t.theme,n=t.total;return t.isSummaryVisible||n?0:"1px solid "+e.colors.borderColorLight}));function Yn(t){var e=t.total,n=t.className;return p.a.createElement("div",{className:He([n,"order-review-total"])},p.a.createElement(Vn,{total:!0,item:e}))}function Gn(t){var e=t.items,n=t.className,r=t.isSummaryVisible;return p.a.createElement("div",{className:He([n,"order-review-line-items"])},e.map((function(t){return p.a.createElement(Vn,{isSummaryVisible:r,key:t.id,item:t})})))}function Wn(t){var e=t.className,n=Nn(),r=n[0],i=n[1];return p.a.createElement("div",{className:He([e,"checkout-review-order"])},p.a.createElement(In,null,p.a.createElement(Gn,{items:r})),p.a.createElement(In,null,p.a.createElement(Yn,{total:i})))}function Kn(t){var e=t.checked,n=t.name,r=t.value,i=t.onChange,o=t.children,a=t.label,c=t.disabled,s=t.id,l=t.ariaLabel,u=Object(d.useState)(!1),f=u[0],m=u[1];return p.a.createElement(Xn,{disabled:c,isFocused:f,checked:e},p.a.createElement(Zn,{type:"radio",name:n,id:s,disabled:c,value:r,checked:e,onChange:i,onFocus:function(){m(!0)},onBlur:function(){m(!1)},readOnly:!i,"aria-label":l}),p.a.createElement(Jn,{checked:e,htmlFor:s,disabled:c},a),o&&p.a.createElement(rr,{checked:e},o))}Gn.propTypes={className:Ue.a.string,isSummaryVisible:Ue.a.bool,items:Ue.a.arrayOf(Ue.a.shape({label:Ue.a.string,amount:Ue.a.shape({displayValue:Ue.a.string})}))},Wn.propTypes={className:Ue.a.string},Kn.propTypes={name:Ue.a.string.isRequired,id:Ue.a.string.isRequired,label:Ue.a.node.isRequired,disabled:Ue.a.bool,checked:Ue.a.bool,value:Ue.a.string.isRequired,onChange:Ue.a.func,ariaLabel:Ue.a.string.isRequired};var Xn=Xe.div(Qn||(Qn=Object(P.e)(["\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(t){var e=t.isFocused,n=t.theme;if(e)return n.colors.outline+" solid 2px";return"0"}),(function(t){return t.checked?"3px":"1px"}),(function(t){var e=t.checked,n=t.theme;return e?n.colors.highlight:n.colors.borderColor}),(function(t){return t.theme.colors.highlight}),(function(t){return t.theme.breakpoints.smallPhoneUp}),ir,(function(t){return t.theme.breakpoints.smallPhoneUp}),ir,(function(t){if(!t.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 Zn=Xe.input(tr||(tr=Object(P.e)(["\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"]))),Jn=Xe.label(er||(er=Object(P.e)(["\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(t){return t.theme.colors.borderColor}),(function(t){return t.theme.colors.surface}),(function(t){var e=t.checked,n=t.theme;return e?n.colors.highlight:n.colors.surface}),(function(t){if(!t.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 Qn,tr,er,nr,rr=Xe.div(nr||(nr=Object(P.e)(["\n\tdisplay: ",";\n"],["\n\tdisplay: ",";\n"])),(function(t){return t.checked?"block":"none"}));function ir(t){return t.checked?0:"100%"}function or(){var t=Object(d.useContext)(on).onEvent;if(!t)throw new Error("useEvents can only be used inside a CheckoutProvider");return t}var ar=J()("composite-checkout:checkout-payment-methods");function cr(t){var e=t.summary,n=t.isComplete,r=t.className,i=T().__,o=or(),a=Object(d.useCallback)((function(t){return o({type:"PAYMENT_METHOD_LOAD_ERROR",payload:t})}),[o]),c=hn(),s=function(){var t=Object(d.useContext)(on),e=t.paymentMethodId,n=t.setPaymentMethodId;if(!n)throw new Error("usePaymentMethodId can only be used inside a CheckoutProvider");return[e,n]}()[1],l=function(t){ar("setting payment method to",t),o({type:"PAYMENT_METHOD_SELECT",payload:t}),s(t)},u=bn();return e&&n&&c?(ar("rendering selected paymentMethod",c),p.a.createElement("div",{className:He([r,"checkout-payment-methods"])},p.a.createElement(Je,{errorMessage:i("There was a problem with this payment method."),onError:a},p.a.createElement(sr,{id:c.id,label:c.label,activeContent:c.activeContent,inactiveContent:c.inactiveContent,checked:!0,summary:!0,ariaLabel:c.getAriaLabel(i)})))):e?(ar("summary requested, but no complete paymentMethod is selected; isComplete:",n,"paymentMethod:",c),null):(ar("rendering paymentMethods",u),p.a.createElement("div",{className:He([r,"checkout-payment-methods"])},p.a.createElement(ur,null,u.map((function(t){return p.a.createElement(Je,{key:t.id,errorMessage:Object(m.sprintf)(i("There was a problem with the payment method: %s"),t.id),onError:a},p.a.createElement(sr,{id:t.id,label:t.label,activeContent:t.activeContent,inactiveContent:t.inactiveContent,checked:(null==c?void 0:c.id)===t.id,onClick:l,ariaLabel:t.getAriaLabel(i)}))})))))}function sr(t){var e=t.id,n=t.label,r=t.activeContent,i=t.inactiveContent,o=t.checked,a=t.onClick,c=t.ariaLabel,s=t.summary,l=an().formStatus;return s?p.a.createElement(p.a.Fragment,null,i&&i):p.a.createElement(Kn,{name:"paymentMethod",value:e,id:e,checked:o,disabled:"ready"!==l,onChange:a?function(){return a(e)}:void 0,ariaLabel:c,label:n},r&&r)}cr.propTypes={summary:Ue.a.bool,isComplete:Ue.a.bool.isRequired,className:Ue.a.string},sr.propTypes={id:Ue.a.string.isRequired,onClick:Ue.a.func,checked:Ue.a.bool.isRequired,ariaLabel:Ue.a.string.isRequired,activeContent:Ue.a.node,label:Ue.a.node,inactiveContent:Ue.a.node,summary:Ue.a.bool};var lr,ur=Xe.div(lr||(lr=Object(P.e)(["\n\tmargin-bottom: 16px;\n"],["\n\tmargin-bottom: 16px;\n"])));J()("composite-checkout:checkout");var dr=function(t){var e=t.children,n=t.className;return p.a.createElement(hr,{className:He([n,"checkout__summary-area"])},e)},pr=Xe.div(Cr||(Cr=Object(P.e)(["\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(t){return t.theme.colors.surface}),(function(t){return t.theme.colors.borderColorLight}),(function(t){return t.theme.breakpoints.smallPhoneUp}),(function(t){return t.theme.colors.borderColorLight}),(function(t){return t.theme.breakpoints.desktopUp}),(function(t){return t.theme.colors.borderColorLight}));function fr(t){var e=t.errorMessage,n=t.editButtonText,r=t.editButtonAriaLabel,i=t.nextStepButtonText,o=t.validatingButtonText,a=t.nextStepButtonAriaLabel,c=t.validatingButtonAriaLabel,s=t.isStepActive,l=t.isStepComplete,u=t.className,d=t.stepNumber,f=t.stepId,m=t.titleContent,h=t.goToThisStep,b=t.goToNextStep,g=t.activeStepContent,y=t.formStatus,v=t.completeStepContent,x=t.onError,w=T().__;return p.a.createElement(Je,{errorMessage:e||w("There was an error with this step."),onError:x},p.a.createElement(yr,{className:u},p.a.createElement(vr,{id:f,stepNumber:d,title:m,isActive:s,isComplete:l,onEdit:"ready"===y&&l&&h&&!s?h:void 0,editButtonText:n||w("Edit"),editButtonAriaLabel:r||w("Edit this step")}),p.a.createElement(qr,{isVisible:s,className:"checkout-steps__step-content"},g,b&&s&&p.a.createElement(Cn,{onClick:b,value:"validating"===y?o||w("Please wait…"):i||w("Continue"),ariaLabel:"validating"===y?c||w("Please wait…"):a||w("Continue to next step"),buttonType:"primary",disabled:"ready"!==y,isBusy:"validating"===y})),l&&v?p.a.createElement(Vr,{isVisible:!s,className:"checkout-steps__step-complete-content"},v):null))}fr.propTypes={errorMessage:Ue.a.string,onError:Ue.a.func,editButtonAriaLabel:Ue.a.string,editButtonText:Ue.a.string,nextStepButtonText:Ue.a.string,nextStepButtonAriaLabel:Ue.a.string,isStepActive:Ue.a.bool.isRequired,isStepComplete:Ue.a.bool.isRequired,className:Ue.a.string,stepNumber:Ue.a.number,stepId:Ue.a.string.isRequired,titleContent:Ue.a.node.isRequired,goToThisStep:Ue.a.func,goToNextStep:Ue.a.func,activeStepContent:Ue.a.node,formStatus:Ue.a.string,completeStepContent:Ue.a.node,validatingButtonText:Ue.a.string,validatingButtonAriaLabel:Ue.a.string};Xe.div(Pr||(Pr=Object(P.e)(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"],["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"])),(function(t){return t.theme.colors.outline}));var mr=Xe.div(Nr||(Nr=Object(P.e)(["\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(t){return t.theme.breakpoints.tabletUp}),(function(t){return t.theme.breakpoints.desktopUp})),hr=Xe.div(Ar||(Ar=Object(P.e)(["\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(t){return t.theme.breakpoints.tabletUp}),(function(t){return t.theme.breakpoints.desktopUp})),br=Xe.div(Tr||(Tr=Object(P.e)(["\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(t){return t.theme.colors.surface}),(function(t){return t.theme.breakpoints.smallPhoneUp}),(function(t){return t.theme.colors.borderColorLight}),(function(t){return t.theme.breakpoints.tabletUp}),(function(t){return t.theme.breakpoints.desktopUp})),gr=Xe.div(Lr||(Lr=Object(P.e)(["\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(t){return t.theme.colors.background}),(function(t){return t.theme.colors.borderColorLight}),(function(t){return t.theme.breakpoints.tabletUp}));var yr=Xe.div(Fr||(Fr=Object(P.e)(["\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(t){return t.theme.colors.borderColorLight}),(function(t){return t.theme.colors.background}),(function(t){return t.theme.colors.surface}),(function(t){return t.theme.breakpoints.tabletUp}));function vr(t){var e=t.id,n=t.className,r=t.stepNumber,i=t.title,o=t.isActive,a=t.isComplete,c=t.onEdit,s=t.editButtonText,l=t.editButtonAriaLabel,u=T().__,d=!!c;return p.a.createElement(_r,{isComplete:a,isActive:o,className:He([n,"checkout-step__header"])},p.a.createElement(xr,{isComplete:a,isActive:o,id:e},r||null),p.a.createElement(wr,{fullWidth:!d,isActive:o},i),d&&p.a.createElement(Sr,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:c,"aria-label":l||u("Edit this step")},s||u("Edit")))}function xr(t){var e=t.isComplete,n=t.isActive,r=t.className,i=t.children,o=t.id,a=!n&&e;return p.a.createElement(Or,{className:He([r,"checkout-step__stepper"])},p.a.createElement(kr,{isComplete:a},p.a.createElement(Er,{isComplete:a,isActive:n},i),p.a.createElement(jr,null,p.a.createElement(En,{id:o}))))}vr.propTypes={id:Ue.a.string,className:Ue.a.string,stepNumber:Ue.a.number,title:Ue.a.node.isRequired,isActive:Ue.a.bool,isComplete:Ue.a.bool,editButtonText:Ue.a.string,editButtonAriaLabel:Ue.a.string,onEdit:Ue.a.func},xr.propTypes={id:Ue.a.string,className:Ue.a.string,isComplete:Ue.a.bool,isActive:Ue.a.bool};var wr=Xe.span(Mr||(Mr=Object(P.e)(["\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(t){return t.isActive?t.theme.colors.textColorDark:t.theme.colors.textColor}),(function(t){return t.isActive?t.theme.weights.bold:t.theme.weights.normal}),(function(t){return t.fullWidth?"0":"8px"}),(function(t){return t.fullWidth?"1":"inherit"}),(function(t){return t.fullWidth?"0":"8px"})),_r=Xe.h2(Rr||(Rr=Object(P.e)(["\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(t){return t.isComplete||t.isActive?"8px":"0"})),Or=Xe.div(Dr||(Dr=Object(P.e)(["\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"]))),kr=Xe.div(Br||(Br=Object(P.e)(["\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(t){return t.isComplete?"rotateY(180deg)":"rotateY(0)"})),Er=Xe.div(zr||(zr=Object(P.e)(["\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(t){var e=t.isComplete,n=t.isActive,r=t.theme;if(n)return r.colors.highlight;if(e)return r.colors.success;return r.colors.upcomingStepBackground}),(function(t){var e=t.isComplete,n=t.isActive,r=t.theme;if(e||n)return r.colors.surface;return r.colors.textColor}),(function(t){return t.isComplete?"0":"1"})),jr=Xe(Er)(Ir||(Ir=Object(P.e)(["\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(t){return t.theme.colors.success}),(function(t){return t.isComplete?"1":"0"})),Sr=Xe(yn)(Ur||(Ur=Object(P.e)(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"],["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"])));var Cr,Pr,Nr,Ar,Tr,Lr,Fr,Mr,Rr,Dr,Br,zr,Ir,Ur,Hr,$r,qr=Xe.div(Hr||(Hr=Object(P.e)(["\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(t){return t.theme.colors.textColor}),(function(t){return t.isVisible?"block":"none"})),Vr=Xe.div($r||($r=Object(P.e)(["\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(t){return t.theme.colors.textColorLight}),(function(t){return t.isVisible?"block":"none"}));n(92);var Yr,Gr,Wr=Object(a.createElement)(v,{icon:Pe,size:17}),Kr=function(t){var e=t.onNextStep,n=Object(c.useSelect)((function(t){return t(i).getSelectedDomain()})),r=Object(c.useSelect)((function(t){return t(i).getSelectedPlan()})),s=Object(c.useSelect)((function(t){return t(o).getPrices()})),l=Object(c.useSelect)((function(t){return t(i).getLaunchStep()})),d=Object(c.useSelect)((function(t){return t(i).isStepCompleted})),p=Object(c.useSelect)((function(t){return t(i).isFlowCompleted()})),b=Object(f.useEntityProp)("root","site","title"),g=u()(b,1)[0],y=D().currentDomainName,v=function(){var t,e=V();return null===(t=Object(c.useSelect)((function(t){if(e&&!(e.length<2))return t("automattic/domains/suggestions").getDomainSuggestions(e,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:"en"})}),[e]))||void 0===t?void 0:t[0]}(),x=V(),w=Object(c.useDispatch)(i).setStep,_=Object(a.createElement)("div",{className:"nux-launch__summary-item"},Object(a.createElement)("p",null,Object(m.__)("Site","full-site-editing"),": ",g)),O=Object(a.createElement)("div",{className:"nux-launch__summary-item"},(null==n?void 0:n.domain_name)?Object(a.createElement)("p",null,Object(m.__)("Custom domain","full-site-editing"),": ",n.domain_name):Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(m.__)("Free site address","full-site-editing"),": ",y),Object(a.createElement)(h.Tip,null,x?Object(a.createInterpolateElement)(Object(m.__)("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(a.createElement)("span",{className:k()("nux-launch__summary-item__domain-name",{"is-loading":!v})},(null==v?void 0:v.domain_name)||"loading-example.com"),Link:Object(a.createElement)(h.Button,{isLink:!0,onClick:function(){return w(l.Domain)}})}):Object(m.__)("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),E=Object(a.createElement)("div",{className:"nux-launch__summary-item"},r&&!(null==r?void 0:r.isFree)?Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",r.title),Object(m.__)("Plan subscription","full-site-editing"),": ",s[r.storeSlug]," ",Object(m.__)("per month, billed yearly","full-site-editing")):Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),Object(a.createElement)("p",null,Object(m.__)("Plan subscription: Free forever","full-site-editing")),Object(a.createElement)(h.Tip,null,Object(a.createInterpolateElement)(Object(m.__)("<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(a.createElement)(h.Button,{isLink:!0,onClick:function(){return w(l.Plan)}})}))));return Object(a.createElement)(R,{className:"nux-launch-final-step"},Object(a.createElement)("div",{className:"nux-launch-step__header"},Object(a.createElement)("div",null,Object(a.createElement)(S,null,Object(m.__)("Launch your site","full-site-editing")),Object(a.createElement)(C,null,Object(m.__)("Your site will be made public and ready to share with others.","full-site-editing")))),Object(a.createElement)("div",{className:"nux-launch-step__body"},Object(a.createElement)(Ce,{theme:ze},Object(a.createElement)(mr,null,d(l.Plan)&&Object(a.createElement)(dr,null,Object(a.createElement)(pr,{className:"nux-launch__feature-list"},Object(a.createElement)("h3",{className:"nux-launch__feature-list-title"},Object(m.__)("Included in your plan","full-site-editing")),Object(a.createElement)("ul",{className:"nux-launch__feature-item-group"},null==r?void 0:r.features.map((function(t,e){return Object(a.createElement)("li",{key:e,className:"nux-launch__feature-item"},Wr," ",t)}))),Object(a.createElement)("p",null,Object(m.__)("Questions?","full-site-editing")," ",Object(a.createElement)(h.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},Object(m.__)("Ask a Happiness Engineer","full-site-editing"))))),Object(a.createElement)(br,null,Object(a.createElement)(fr,{titleContent:Object(m.__)("Your site name","full-site-editing"),isStepComplete:d(l.Name),goToThisStep:function(){return w(l.Name)},completeStepContent:_,stepId:"name",formStatus:"ready"}),Object(a.createElement)(fr,{titleContent:Object(m.__)("Your domain","full-site-editing"),isStepComplete:d(l.Domain),goToThisStep:function(){return w(l.Domain)},completeStepContent:O,stepId:"domain",formStatus:"ready"}),Object(a.createElement)(fr,{titleContent:Object(m.__)("Your plan","full-site-editing"),isStepComplete:d(l.Plan),goToThisStep:function(){return w(l.Plan)},completeStepContent:E,stepId:"plan",formStatus:"ready"}),Object(a.createElement)(gr,null,Object(a.createElement)(h.Button,{isPrimary:!0,disabled:!p,onClick:e,className:"nux-launch__submit-button"},Object(m.__)("Launch your site","full-site-editing"))))))))},Xr=(n(95),function(t){var e,n=t.onSubmit,r=Object(c.useSelect)((function(t){return t(i).getState()})).step,o=Object(c.useSelect)((function(t){return t(i).getLaunchStep()})),s=Object(c.useSelect)((function(t){return t(i).getLaunchSequence()})),l=Object(c.useSelect)((function(t){return t(i).getFirstIncompleteStep()})),u=Object(c.useDispatch)(i).setStep,p=(e={},j()(e,o.Name,Y),j()(e,o.Domain,Ft),j()(e,o.Plan,Gt),j()(e,o.Final,Kr),e),f=s.indexOf(r),m=p[r];return d.useEffect((function(){l&&l!==o.Name&&u(l)}),[]),Object(a.createElement)("div",{className:"nux-launch"},Object(a.createElement)(m,{onPrevStep:function(){var t=f-1;t<0&&(t=0),u(s[t])},onNextStep:function(){var t=f+1;t>s.length-1&&(null==n||n()),u(s[t])}}))}),Zr=Object(a.createElement)(h.SVG,{viewBox:"0 0 24 24"},Object(a.createElement)(h.Circle,{cx:"12",cy:"12",r:"5"})),Jr=function(t){var e=t.title,n=t.isCompleted,r=t.isCurrent,i=t.isDisabled,o=t.onClick;return Object(a.createElement)(h.Button,{className:k()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:o,disabled:i,isLink:!0},Object(a.createElement)(v,{icon:n?Pe:Zr,size:16}),Object(a.createElement)("span",null,e))},Qr=(n(96),function(){var t,e=Object(c.useSelect)((function(t){return t(i).getState()})).step,n=Object(c.useSelect)((function(t){return t(i).getLaunchStep()})),r=Object(c.useSelect)((function(t){return t(i).getLaunchSequence()})),o=Object(c.useSelect)((function(t){return t(i).isStepCompleted})),s=Object(c.useSelect)((function(t){return t(i).isFlowStarted()})),l=(t={},j()(t,n.Name,Object(m.__)("Name your site","full-site-editing")),j()(t,n.Domain,Object(m.__)("Select a domain","full-site-editing")),j()(t,n.Plan,Object(m.__)("Select a plan","full-site-editing")),j()(t,n.Final,Object(m.__)("Launch your site","full-site-editing")),t),u=Object(c.useDispatch)(i).setStep;return Object(a.createElement)("div",{className:"nux-launch-menu"},Object(a.createElement)("h4",null,Object(m.__)("Site Launch Steps","full-site-editing")),Object(a.createElement)("div",{className:"nux-launch-menu__item-group"},r.map((function(t){return Object(a.createElement)(Jr,{title:l[t],isCompleted:o(t),isCurrent:t===e,onClick:function(){return u(t)},isDisabled:t===n.Final&&!s})}))))}),ti=(n(97),function(){return Object(a.createElement)("div",{className:"nux-launch-sidebar"},Object(a.createElement)("h2",null,Object(m.__)("You're almost there!","full-site-editing")),Object(a.createElement)("h3",null,Object(m.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing")),Object(a.createElement)(Qr,null))}),ei=(n(98),function(t){var e=t.onClose,n=Object(c.useSelect)((function(t){return t(i).getState()})).step,r=Object(c.useDispatch)(i).launchSite,o=d.useState(!1),s=u()(o,2),l=s[0],p=s[1],b=function(){p(!0),r()};return D().isPaidPlan&&!l&&b(),Object(a.createElement)(h.Modal,{open:!0,className:k()("nux-launch-modal","step-".concat(n)),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:e,title:""},l?Object(a.createElement)("div",{className:"nux-launch-modal-body__launching"},Object(m.__)("Hooray! Your site will be ready shortly.","full-site-editing")):Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"nux-launch-modal-header"},Object(a.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},Object(a.createElement)(v,{icon:w,size:36}))),Object(a.createElement)("div",{className:"nux-launch-modal-body"},Object(a.createElement)(f.EntityProvider,{kind:"root",type:"site"},Object(a.createElement)(Xr,{onSubmit:b}))),Object(a.createElement)("div",{className:"nux-launch-modal-aside"},Object(a.createElement)(h.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:e,"aria-label":Object(m.__)("Close dialog","full-site-editing"),disabled:!e},Object(a.createElement)(v,{icon:_,size:24})),Object(a.createElement)(ti,null))))});Yr="a8c-editor-site-launch",Gr={render:function(){var t=Object(c.useSelect)((function(t){return t(i).getState()})).isSidebarOpen,e=Object(c.useDispatch)(i).closeSidebar;return function(){var t=D().launchStatus,e=Object(c.useSelect)((function(t){return t(i).getState()})),n=e.plan,a=e.domain,s=Object(c.useSelect)((function(t){return t(o).isPlanEcommerce(null==n?void 0:n.storeSlug)})),l=Object(c.useDispatch)(r),u=l.getCart,p=l.setCart;d.useEffect((function(){if(t){if(n&&!(null==n?void 0:n.isFree)){var e={product_id:n.productId,product_slug:n.storeSlug,extra:{source:"gutenboarding"}},r={meta:null==a?void 0:a.domain_name,product_id:null==a?void 0:a.product_id,extra:{privacy_available:null==a?void 0:a.supports_privacy,privacy:null==a?void 0:a.supports_privacy,source:"gutenboarding"}};return void function(){var t=$()(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u(window._currentSiteId);case 2:return n=t.sent,t.next=5,p(window._currentSiteId,U()(U()({},n),{},{products:[].concat(z()(n.products),[e,r])}));case 5:i=Object(q.addQueryArgs)("https://wordpress.com/checkout/".concat(window._currentSiteId),U()({preLaunch:1},!s&&{redirect_to:"/home/".concat(window._currentSiteId)})),window.top.location.href=i;case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()()}window.top.location.href="https://wordpress.com/home/".concat(window._currentSiteId)}}),[t])}(),t?Object(a.createElement)(ei,{onClose:e}):null}},Object(s.registerPlugin)(Yr,Gr)}]));
|
event-countdown-block/dist/event-countdown-block.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-blocks', 'wp-components', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-blocks', 'wp-components', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '168dd40fe07d61072d3f76fb79a69343');
|
full-site-editing-plugin.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
-
* Version: 2.
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
@@ -35,7 +35,7 @@ namespace A8C\FSE;
|
|
35 |
*
|
36 |
* @var string
|
37 |
*/
|
38 |
-
define( 'PLUGIN_VERSION', '2.
|
39 |
|
40 |
// Always include these helper files for dotcom FSE.
|
41 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
@@ -47,7 +47,11 @@ function load_core_site_editor() {
|
|
47 |
require_once __DIR__ . '/site-editor/index.php';
|
48 |
initialize_site_editor();
|
49 |
}
|
50 |
-
|
|
|
|
|
|
|
|
|
51 |
|
52 |
/**
|
53 |
* Load dotcom-FSE.
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
+
* Version: 2.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.1' );
|
39 |
|
40 |
// Always include these helper files for dotcom FSE.
|
41 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
47 |
require_once __DIR__ . '/site-editor/index.php';
|
48 |
initialize_site_editor();
|
49 |
}
|
50 |
+
// Change priority so this code is loaded before Gutenberg. This is needed because
|
51 |
+
// FSE files are conditionally loaded based on the existence of experiment option
|
52 |
+
// as of https://github.com/WordPress/gutenberg/pull/24182. initialize_site_editor
|
53 |
+
// is setting the required option and needs to kick in first.
|
54 |
+
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_core_site_editor', 7 );
|
55 |
|
56 |
/**
|
57 |
* Load dotcom-FSE.
|
global-styles/dist/global-styles.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill'), 'version' => '13b3639b33c32237582488caf4947230');
|
global-styles/dist/global-styles.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
!function(e,t){for(var
|
2 |
/*!
|
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 a(){for(var e=[],t=0;t<arguments.length;t++){var c=arguments[t];if(c){var r=typeof c;if("string"===r||"number"===r)e.push(c);else if(Array.isArray(c)&&c.length){var l=a.apply(null,c);l&&e.push(l)}else if("object"===r)for(var o in c)n.call(c,o)&&c[o]&&e.push(o)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(c=function(){return a}.apply(t,[]))||(e.exports=c)}()},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var c,a,r,l,o=n(9),i=n(3),s=n(10),u=n(5),h=n.n(u),f=n(6),p=n.n(f),v={},b=!1,O={publishOptions:regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"IO_PUBLISH_OPTIONS",options:t};case 2:return e.abrupt("return",{type:"PUBLISH_OPTIONS",options:t});case 3:case"end":return e.stop()}}),e)})),updateOptions:function(e){return{type:"UPDATE_OPTIONS",options:e}},fetchOptions:function(){return{type:"IO_FETCH_OPTIONS"}},resetLocalChanges:function(){return{type:"RESET_OPTIONS",options:v}}},m=n(11),d=n.n(m),g=n(7),j=n(4),_=n.n(j),E=n(0),z=n(8),y=n(1),P=n(2),w=n(12),V=n(13),S=n.n(V),H=function(e){var t=e.unsupportedFeature;return Object(E.createElement)("p",null,Object(P.sprintf)(Object(P.__)("Your active theme doesn't support %s.","full-site-editing"),t))},x=function(e,t,n){switch(e){case"SPACE_LORA":return Object(E.createElement)(y.SVG,{width:"232",height:"132",viewBox:"0 0 232 132",xmlns:"http://www.w3.org/2000/svg"},Object(E.createElement)(y.Path,{fill:"#fa4d4b",d:"M0 0h232v132H0z"}),Object(E.createElement)(y.Path,{d:"M24.1 62c-3.6-2.9-8.9-5-15.8-6.3-2.8-.5-5-1-6.9-1.6-.5-.2-1-.3-1.5-.5v12.5c1.4.3 2.9.6 4.4.9 2.5.4 4.6 1 6.2 1.6s2.9 1.3 3.9 2.2c.9.8 1.6 1.6 2 2.6.4.9.6 1.9.6 3 0 2.3-.9 4.2-2.7 5.8-1.8 1.6-4.6 2.4-8.4 2.4-2.2 0-4.2-.3-5.9-.8v12c1.8.3 3.7.4 5.7.4 3.7 0 7-.5 10-1.4 2.9-.9 5.5-2.3 7.5-4s3.6-3.9 4.7-6.3c1.1-2.5 1.7-5.3 1.7-8.4V75c0-5.7-1.8-10-5.5-13zM12.9 42.5c2.1 1.9 3.1 4.2 3.1 6.9v2.3h12.4v-3.4c0-2.7-.5-5.3-1.6-7.7-1-2.4-2.5-4.6-4.6-6.5-2-1.9-4.5-3.4-7.5-4.4-3-1.1-6.5-1.7-10.3-1.7-1.5 0-3 .1-4.4.3v11.9c1.3-.4 2.7-.5 4.4-.5 3.7-.2 6.5.8 8.5 2.8zm67.9 10.9c-1.8-2.1-4-3.6-6.5-4.7-2.4-1.1-5-1.6-7.8-1.6-3.7 0-6.7.7-9.1 2.2-2.4 1.4-4.2 3.4-5.5 5.9h-1.7v-6.8H38.4v65.4h11.8V88.2H52c.6 1.1 1.2 2.1 2 3.1.8.9 1.8 1.8 2.9 2.5 1.2.8 2.6 1.3 4.1 1.8 1.6.4 3.4.7 5.5.7 2.9 0 5.5-.5 8-1.5 2.5-1.1 4.7-2.6 6.5-4.6 1.8-2.1 3.3-4.6 4.3-7.5 1.1-2.9 1.6-6.3 1.6-10.2v-1.7c0-3.8-.6-7.1-1.7-10.1-1-2.9-2.5-5.3-4.4-7.3zm-5.7 18.9c0 3.9-1.2 7.1-3.5 9.4-2.3 2.3-5.2 3.4-8.9 3.4s-6.7-1.2-9-3.5c-2.3-2.4-3.4-5.5-3.4-9.3v-1.1c0-3.8 1.1-6.9 3.4-9.2 2.3-2.4 5.3-3.6 9-3.6s6.7 1.2 8.9 3.5c2.3 2.3 3.5 5.4 3.5 9.3v1.1zm66.2 8.6V48.4h-11.8V54h-1.7c-1.2-2.4-2.8-4.1-4.9-5.3-2-1.1-4.7-1.7-8-1.7-2.8 0-5.4.6-7.8 1.7-2.4 1.1-4.5 2.6-6.3 4.7-1.8 2.1-3.3 4.6-4.3 7.6-1.1 2.9-1.6 6.3-1.6 10v1.5c0 3.8.5 7.1 1.6 10.1 1.1 2.9 2.6 5.5 4.5 7.5 1.9 2.1 4 3.6 6.5 4.7s5.2 1.6 8 1.6c3 0 5.6-.6 7.9-1.8 2.3-1.3 4-3.4 5.3-6.3h1.7c0 2 .7 3.6 2 4.9 1.4 1.3 3.1 1.9 5.3 1.9h8.1V83.7H144c-1.8 0-2.7-.9-2.7-2.8zm-11.8-8.6c0 3.9-1 7.1-3.1 9.4-2.1 2.3-4.8 3.4-8.3 3.4-3.4 0-6.2-1.1-8.3-3.4-2.1-2.3-3.1-5.5-3.1-9.4v-1.1c0-3.9 1-7.1 3.1-9.3 2.1-2.3 4.8-3.5 8.3-3.5 3.4 0 6.2 1.2 8.3 3.5 2.1 2.3 3.1 5.4 3.1 9.3v1.1zm98.3-12.2c1.2-1 2.6-1.6 4.2-2V47.3c-2.1.3-4 .8-5.9 1.6-2.8 1.1-5.3 2.7-7.4 4.8-2.1 2.1-3.8 4.6-5.1 7.5-1.2 2.9-1.8 6.2-1.8 9.8v.6c0 3.9.6 7.4 1.7 10.4 1.2 3.1 2.8 5.7 4.9 7.8 2.1 2.1 4.6 3.8 7.5 4.9 1.9.7 4 1.2 6.1 1.5V84.7c-.4-.1-.7-.2-1.1-.3-1.3-.5-2.5-1.2-3.6-2-1-.9-1.8-1.9-2.4-3-.6-1.2-.9-2.5-.9-3.9h8V65.4h-7.8c.5-2 1.8-3.8 3.6-5.3zm-61.5 6.1c.7-1.7 1.6-3.1 2.7-4.2 1.1-1.2 2.4-2.1 3.9-2.7 1.5-.6 3.1-.9 4.8-.9 3.6 0 6.5 1 8.5 3s3.2 4.4 3.6 7.1l11.7-3c-1.1-5.5-3.6-10-7.7-13.3-4-3.4-9.3-5.1-15.8-5.1-3.4 0-6.6.6-9.6 1.7-2.9 1.1-5.5 2.8-7.8 4.9-2.2 2.1-3.9 4.7-5.2 7.7s-1.9 6.4-1.9 10.2v1.1c0 3.8.6 7.1 1.9 10.1 1.3 2.9 3 5.4 5.2 7.4s4.8 3.5 7.7 4.6c3 1.1 6.2 1.6 9.7 1.6 6.6 0 11.9-1.7 15.9-5.1 4-3.4 6.5-7.8 7.6-13.3l-11.7-3c-.6 3.1-1.8 5.5-3.8 7.3-1.9 1.8-4.6 2.7-8.3 2.7-1.7 0-3.3-.3-4.8-.8-1.5-.6-2.8-1.4-3.9-2.4-1.1-1.1-2-2.4-2.7-3.9-.6-1.6-.9-3.5-.9-5.5v-.6c0-2.1.3-3.9.9-5.6z",fill:"#270920"}),Object(E.createElement)(y.Path,{d:"M49.7 89.3c-1.1 1.3-2.6 2-4.5 2h-6.5c.1-1.1.2-2.5.2-4.3V68.5c0-1.3.1-2.2.4-2.8s.6-1 1.1-1.1c.5-.2 1.1-.3 2-.3v-3.2h-14v3.7l3.6-.1c-.1 1.1-.2 2.5-.2 4.4v18.5c0 1.3-.1 2.2-.4 2.8-.3.6-.6 1-1.1 1.2-.5.2-1.1.3-2 .3V95h25.8l.3-11.6h-3.2c.1 2.6-.5 4.5-1.5 5.9zM101.3 70c-2.5 0-4.8 1.5-7 4.5h-.1v-2.3c0-.8-.1-1.4-.1-1.9h-2.4c-.4.4-1.3.7-2.5 1-1.3.3-2.9.4-4.9.4v3.7l3.4-.1c-.1 1.3-.2 2.7-.2 4.1v8.1c0 1.5-.2 2.6-.5 3.3-.3.7-1.1 1-2.3 1V95h12.7v-3.7c-1.1 0-2.1 0-3.1.1.1-1.3.2-2.7.2-4.3v-7.9c.3-1 1-2.1 1.9-3.1 1-1.1 1.9-1.6 2.8-1.6.1 1 .5 1.8 1.1 2.2.6.4 1.4.6 2.2.6 1.1 0 1.9-.4 2.5-1.1.5-.7.8-1.5.8-2.3 0-1.3-.4-2.3-1.2-3-1-.5-2-.9-3.3-.9zm25.8 21.5c.1-1.3.2-2.7.2-4.3v-7.9c0-6.2-3-9.2-9-9.2-1.9 0-3.6.3-5.2.8-1.5.5-2.8 1.3-3.7 2.2-.9 1-1.4 2.1-1.4 3.3 0 .9.3 1.7.8 2.4.5.6 1.3.9 2.3.9 1 0 1.8-.3 2.3-.9.5-.6.8-1.3.8-2.1s-.2-1.4-.6-1.8c.9-.9 2.1-1.4 3.5-1.4 2.2 0 3.3 1.5 3.3 4.4v2.5c-3.7.2-6.9 1-9.5 2.5-2.6 1.5-4 3.6-4 6.4 0 1.9.6 3.4 1.7 4.6 1.2 1.2 2.8 1.8 4.8 1.8 2.8 0 5.2-1 7.2-3 .1 1.1.1 1.8.2 2.2h9.1v-3.7c-.7.1-1.8.2-2.8.3zm-6.6-2.2c-1.1 1.2-2.4 1.7-3.8 1.7-.8 0-1.4-.2-2-.6-.5-.4-.8-1.1-.8-1.9 0-1.3.6-2.4 1.8-3.1 1.3-.8 2.8-1.3 4.7-1.5v5.4zM75.1 71.5c-1.8-1-3.9-1.5-6.2-1.5-2.2 0-4.3.6-6.1 1.7-1.8 1.1-3.3 2.7-4.4 4.7-1.1 2-1.6 4.4-1.6 7 0 2.5.5 4.7 1.6 6.5 1.1 1.9 2.5 3.3 4.4 4.3 1.9 1 4 1.5 6.3 1.5 2.4 0 4.4-.5 6.2-1.6 1.8-1.1 3.3-2.6 4.3-4.6 1-2 1.5-4.3 1.5-7 0-2.5-.5-4.7-1.6-6.6-1.1-1.9-2.5-3.4-4.4-4.4zm-2.2 18.4c-.7 1.6-2 2.5-3.7 2.5-1.8 0-3.1-1-4-3-.9-2-1.3-4.4-1.3-7.2 0-2.5.4-4.5 1.2-6.2.8-1.7 2.1-2.5 3.9-2.5 1.7 0 3 1 3.8 3s1.2 4.4 1.2 7.2c-.1 2.5-.4 4.5-1.1 6.2z",fill:"#fff"}));case"SYSTEM_BASKER":return Object(E.createElement)(y.SVG,{width:"232",height:"132",viewBox:"0 0 232 132",xmlns:"http://www.w3.org/2000/svg"},Object(E.createElement)(y.Path,{fill:"#F18F1B",d:"M0 0h232v132H0z"}),Object(E.createElement)(y.Path,{d:"M10.016 50.563c.14 4.25 3.718 6.828 9.093 6.828 5.641 0 9.094-2.797 9.094-7.203 0-3.422-2.078-5.344-6.844-6.297l-2.39-.485c-2.657-.531-3.75-1.39-3.75-2.781 0-1.656 1.562-2.75 3.89-2.75 2.375 0 4.047 1.156 4.203 3.078h4.454c-.078-4.14-3.391-6.89-8.657-6.89-5.015 0-8.609 2.734-8.609 6.859 0 3.36 2.203 5.516 6.703 6.406l2.375.469c2.828.578 3.89 1.422 3.89 2.906 0 1.656-1.718 2.875-4.234 2.875-2.562 0-4.468-1.125-4.765-3.016h-4.453zM53 37v-8.422l7.86-14.125h-5.063l-5.063 9.625h-.109l-5.047-9.625h-5.14l7.843 14.125V37H53zM73.016 60.563c.14 4.25 3.718 6.828 9.093 6.828 5.641 0 9.094-2.797 9.094-7.204 0-3.421-2.078-5.343-6.844-6.296l-2.39-.485c-2.656-.531-3.75-1.39-3.75-2.781 0-1.656 1.562-2.75 3.89-2.75 2.375 0 4.047 1.156 4.204 3.078h4.453c-.079-4.14-3.391-6.89-8.657-6.89-5.015 0-8.609 2.734-8.609 6.859 0 3.36 2.203 5.516 6.703 6.406l2.375.469c2.828.578 3.89 1.422 3.89 2.906 0 1.656-1.718 2.875-4.234 2.875-2.562 0-4.468-1.125-4.765-3.016h-4.453zM114.984 47V28.344h6.532v-3.89H103.75v3.89h6.516V47h4.718zM149.812 43.094h-10.218v-5.688h9.64v-3.625h-9.64v-5.437h10.218v-3.89h-14.937V47h14.937v-3.906zM187.75 37V14.453h-5.469l-6.406 16.188h-.125l-6.406-16.188h-5.469V37h4.203V21.781h.125L174.328 37h2.969l6.125-15.219h.125V37h4.203z",fill:"#492B06"}),Object(E.createElement)(y.Path,{d:"M22.032 92H9.63v-.72c.396-.012.72-.048.972-.108s.444-.162.576-.306c.132-.144.222-.348.27-.612.048-.264.072-.606.072-1.026v-8.316c0-.42-.024-.756-.072-1.008-.036-.264-.114-.468-.234-.612a.852.852 0 0 0-.522-.306 4.454 4.454 0 0 0-.864-.126v-.72h6.21v.72a5.062 5.062 0 0 0-.99.108c-.24.06-.426.168-.558.324-.132.156-.222.372-.27.648a8.868 8.868 0 0 0-.054 1.098v7.542c0 .504.048.918.144 1.242.108.312.288.558.54.738.252.168.588.288 1.008.36.42.06.942.09 1.566.09.696 0 1.278-.042 1.746-.126.468-.084.858-.24 1.17-.468.324-.24.582-.558.774-.954.192-.396.354-.912.486-1.548h.72L22.032 92zm5.182-2.952c0 .48.018.864.054 1.152.036.288.108.51.216.666a.833.833 0 0 0 .468.324c.204.048.48.078.828.09V92h-5.67v-.72c.336-.012.606-.048.81-.108a.968.968 0 0 0 .486-.324c.12-.156.198-.366.234-.63.048-.276.072-.624.072-1.044V86.96c0-.696-.012-1.266-.036-1.71-.024-.456-.054-.768-.09-.936-.06-.3-.198-.498-.414-.594-.204-.096-.582-.144-1.134-.144v-.612l4.176-.684v6.768zm-2.646-10.584c0-.396.132-.726.396-.99a1.35 1.35 0 0 1 .99-.414c.396 0 .726.138.99.414.276.264.414.594.414.99 0 .384-.138.714-.414.99a1.343 1.343 0 0 1-.99.396c-.384 0-.714-.132-.99-.396a1.382 1.382 0 0 1-.396-.99zm8.574 9.594c0 .444.06.858.18 1.242.132.372.306.696.522.972.216.276.474.492.774.648.3.156.63.234.99.234.72 0 1.266-.33 1.638-.99.372-.66.558-1.632.558-2.916 0-1.248-.186-2.196-.558-2.844-.36-.66-.906-.99-1.638-.99-.432 0-.834.12-1.206.36-.36.228-.642.552-.846.972-.276.576-.414 1.302-.414 2.178v1.134zm-.036-4.356h.072a3.07 3.07 0 0 1 1.206-1.044c.492-.252 1.05-.378 1.674-.378.636 0 1.224.132 1.764.396.552.252 1.026.6 1.422 1.044.408.444.726.966.954 1.566.228.6.342 1.242.342 1.926 0 .72-.126 1.386-.378 1.998-.24.6-.576 1.122-1.008 1.566-.42.444-.918.792-1.494 1.044a4.362 4.362 0 0 1-1.8.378c-.66 0-1.284-.126-1.872-.378-.576-.264-1.038-.606-1.386-1.026L31.234 92h-.612V81.29c0-1.128-.078-1.902-.234-2.322a.93.93 0 0 0-.126-.216.488.488 0 0 0-.216-.144 1.07 1.07 0 0 0-.36-.108 7.62 7.62 0 0 0-.612-.108v-.612l4.032-.72v6.642zm12.759 5.508c0 .468.018.84.054 1.116.048.264.138.468.27.612.132.144.324.24.576.288.252.036.588.054 1.008.054V92H41.76v-.72c.36-.024.648-.06.864-.108.216-.048.378-.144.486-.288.108-.144.174-.348.198-.612.036-.276.054-.642.054-1.098v-2.196c0-.744-.018-1.338-.054-1.782-.036-.444-.114-.786-.234-1.026a.867.867 0 0 0-.522-.468c-.216-.084-.504-.126-.864-.126v-.63l3.6-.666.288 2.07h.072c.324-.636.75-1.14 1.278-1.512.528-.372 1.086-.558 1.674-.558.456 0 .828.114 1.116.342.288.228.432.516.432.864 0 .384-.114.708-.342.972-.216.264-.516.396-.9.396-.18 0-.342-.036-.486-.108a3.131 3.131 0 0 1-.396-.234 2.28 2.28 0 0 0-.342-.252.549.549 0 0 0-.342-.126c-.228 0-.444.15-.648.45-.204.3-.372.702-.504 1.206a9.68 9.68 0 0 0-.234 1.224c-.06.444-.09.888-.09 1.332v.864zM59.8 90.326c-1.092 1.236-2.454 1.854-4.086 1.854a5.787 5.787 0 0 1-2.034-.342c-.6-.24-1.116-.57-1.548-.99a4.592 4.592 0 0 1-1.008-1.53c-.24-.588-.36-1.242-.36-1.962 0-.744.126-1.422.378-2.034a4.619 4.619 0 0 1 1.062-1.602 5.01 5.01 0 0 1 1.638-1.062 5.62 5.62 0 0 1 2.088-.378c1.272 0 2.262.342 2.97 1.026.708.684 1.062 1.644 1.062 2.88 0 .192-.03.312-.09.36-.06.036-.228.054-.504.054h-5.796c-.048.108-.072.306-.072.594 0 1.176.252 2.106.756 2.79.516.684 1.212 1.026 2.088 1.026.504 0 1.002-.114 1.494-.342.504-.228.99-.552 1.458-.972l.504.63zm-3.492-4.734c.48 0 .786-.024.918-.072.144-.06.216-.192.216-.396 0-.528-.15-.96-.45-1.296a1.455 1.455 0 0 0-1.134-.504c-.516 0-.978.216-1.386.648-.396.42-.654.96-.774 1.62h2.61zM65.985 92v-.72a4.75 4.75 0 0 0 .972-.108c.252-.06.444-.162.576-.306.144-.144.24-.348.288-.612.048-.264.072-.606.072-1.026v-8.316c0-.42-.018-.756-.054-1.008-.036-.264-.114-.468-.234-.612a.755.755 0 0 0-.468-.306 3.572 3.572 0 0 0-.774-.126v-.72h5.778c1.812 0 3.204.294 4.176.882.984.576 1.476 1.404 1.476 2.484 0 1.428-1.026 2.436-3.078 3.024v.072c.66 0 1.254.096 1.782.288.54.18.996.438 1.368.774a3.523 3.523 0 0 1 1.17 2.682c0 .612-.15 1.146-.45 1.602-.288.456-.708.84-1.26 1.152-1.068.6-2.538.9-4.41.9h-6.93zm7.056-1.098c1.932 0 2.898-.87 2.898-2.61 0-1.068-.348-1.848-1.044-2.34-.36-.252-.828-.432-1.404-.54-.564-.108-1.26-.162-2.088-.162h-.864v3.6c0 .744.192 1.272.576 1.584.384.312 1.026.468 1.926.468zM71.6 84.17c.54 0 1.008-.048 1.404-.144a3.249 3.249 0 0 0 1.008-.45c.576-.396.864-1.014.864-1.854 0-.876-.216-1.506-.648-1.89-.432-.396-1.128-.594-2.088-.594h-1.278c-.216 0-.324.102-.324.306v4.626H71.6zm14.325 2.7c-1.008.456-1.77.882-2.286 1.278-.504.384-.756.786-.756 1.206 0 .348.096.624.288.828a.948.948 0 0 0 .72.306c.288 0 .558-.048.81-.144.252-.108.468-.246.648-.414.18-.168.318-.366.414-.594.108-.24.162-.492.162-.756v-1.71zm0-.954v-.756c0-.696-.126-1.2-.378-1.512-.24-.324-.618-.486-1.134-.486-.348 0-.612.096-.792.288-.18.18-.348.486-.504.918-.108.3-.264.534-.468.702-.192.168-.462.252-.81.252-.336 0-.594-.102-.774-.306-.18-.204-.27-.492-.27-.864 0-.576.312-1.032.936-1.368.636-.336 1.59-.504 2.862-.504 1.344 0 2.304.246 2.88.738.576.48.864 1.29.864 2.43v3.942c0 1.02.204 1.53.612 1.53a.978.978 0 0 0 .63-.234l.27.522c-.168.3-.432.54-.792.72a2.7 2.7 0 0 1-1.188.252c-.552 0-.972-.168-1.26-.504-.288-.336-.432-.81-.432-1.422h-.09c-.348.624-.798 1.098-1.35 1.422-.552.324-1.182.486-1.89.486-.756 0-1.362-.21-1.818-.63-.456-.432-.684-.99-.684-1.674 0-.528.234-1.02.702-1.476.468-.468 1.248-.924 2.34-1.368l2.538-1.098zM91.6 92h-.558v-3.276h.756c.204.864.498 1.494.882 1.89.384.396.882.594 1.494.594.444 0 .786-.09 1.026-.27a.923.923 0 0 0 .378-.774c0-.336-.15-.66-.45-.972-.3-.324-.786-.666-1.458-1.026-.912-.492-1.566-.978-1.962-1.458a2.574 2.574 0 0 1-.594-1.656c0-.396.072-.762.216-1.098.156-.348.36-.648.612-.9.264-.252.576-.444.936-.576.36-.144.75-.216 1.17-.216.372 0 .738.054 1.098.162.372.108.696.258.972.45l.324-.432h.468v2.718h-.702c-.276-.684-.564-1.176-.864-1.476-.288-.3-.642-.45-1.062-.45-.336 0-.606.09-.81.27-.192.18-.288.42-.288.72 0 .336.144.654.432.954.3.3.792.63 1.476.99.48.264.894.522 1.242.774s.63.51.846.774c.216.252.372.522.468.81.108.276.162.576.162.9 0 .42-.078.798-.234 1.134a2.462 2.462 0 0 1-.666.864c-.288.24-.636.426-1.044.558-.396.132-.84.198-1.332.198-.516 0-.996-.066-1.44-.198-.444-.144-.81-.348-1.098-.612L91.6 92zm13.299-.72c.384 0 .654-.012.81-.036.156-.036.234-.102.234-.198 0-.072-.084-.246-.252-.522-.156-.288-.36-.618-.612-.99l-1.368-2.052-.9.864v.702c0 .468.018.846.054 1.134.036.288.096.516.18.684a.759.759 0 0 0 .378.324c.168.06.378.09.63.09V92h-5.31v-.72c.336-.012.606-.048.81-.108a.969.969 0 0 0 .486-.306c.12-.156.198-.366.234-.63a6.4 6.4 0 0 0 .072-1.062v-7.632c0-.732-.012-1.308-.036-1.728-.024-.42-.09-.732-.198-.936a.647.647 0 0 0-.468-.396 3.877 3.877 0 0 0-.846-.072v-.666l4.014-.684v10.008l1.728-1.638a28.697 28.697 0 0 0 1.332-1.314c.264-.3.396-.516.396-.648 0-.108-.114-.18-.342-.216-.216-.048-.624-.072-1.224-.072v-.72h4.914v.72c-.456 0-.858.078-1.206.234-.348.156-.726.426-1.134.81l-1.746 1.638 3.114 4.41c.276.384.546.648.81.792.264.144.612.216 1.044.216V92h-5.598v-.72zm14.737-.954c-1.092 1.236-2.454 1.854-4.086 1.854a5.787 5.787 0 0 1-2.034-.342c-.6-.24-1.116-.57-1.548-.99a4.592 4.592 0 0 1-1.008-1.53c-.24-.588-.36-1.242-.36-1.962 0-.744.126-1.422.378-2.034a4.619 4.619 0 0 1 1.062-1.602 5.01 5.01 0 0 1 1.638-1.062 5.62 5.62 0 0 1 2.088-.378c1.272 0 2.262.342 2.97 1.026.708.684 1.062 1.644 1.062 2.88 0 .192-.03.312-.09.36-.06.036-.228.054-.504.054h-5.796c-.048.108-.072.306-.072.594 0 1.176.252 2.106.756 2.79.516.684 1.212 1.026 2.088 1.026.504 0 1.002-.114 1.494-.342.504-.228.99-.552 1.458-.972l.504.63zm-3.492-4.734c.48 0 .786-.024.918-.072.144-.06.216-.192.216-.396 0-.528-.15-.96-.45-1.296a1.455 1.455 0 0 0-1.134-.504c-.516 0-.978.216-1.386.648-.396.42-.654.96-.774 1.62h2.61zm8.945 3.618c0 .468.018.84.054 1.116.048.264.138.468.27.612.132.144.324.24.576.288.252.036.588.054 1.008.054V92h-6.012v-.72c.36-.024.648-.06.864-.108.216-.048.378-.144.486-.288.108-.144.174-.348.198-.612.036-.276.054-.642.054-1.098v-2.196c0-.744-.018-1.338-.054-1.782-.036-.444-.114-.786-.234-1.026a.867.867 0 0 0-.522-.468c-.216-.084-.504-.126-.864-.126v-.63l3.6-.666.288 2.07h.072c.324-.636.75-1.14 1.278-1.512.528-.372 1.086-.558 1.674-.558.456 0 .828.114 1.116.342.288.228.432.516.432.864 0 .384-.114.708-.342.972-.216.264-.516.396-.9.396-.18 0-.342-.036-.486-.108a3.131 3.131 0 0 1-.396-.234 2.28 2.28 0 0 0-.342-.252.549.549 0 0 0-.342-.126c-.228 0-.444.15-.648.45-.204.3-.372.702-.504 1.206a9.68 9.68 0 0 0-.234 1.224c-.06.444-.09.888-.09 1.332v.864zm6.139-4.428a5.587 5.587 0 0 0-.378-.828 1.667 1.667 0 0 0-.378-.486.847.847 0 0 0-.414-.234 2.18 2.18 0 0 0-.522-.054v-.72h5.382v.72c-.3 0-.54.012-.72.036-.168.024-.3.06-.396.108a.328.328 0 0 0-.162.198.798.798 0 0 0-.036.252c0 .156.03.336.09.54.06.204.132.408.216.612l1.71 4.716h.072l1.926-4.698a6.35 6.35 0 0 0 .198-.54 1.66 1.66 0 0 0 .072-.45c0-.264-.09-.456-.27-.576-.18-.12-.498-.186-.954-.198v-.72h3.978v.72c-.324 0-.606.084-.846.252-.228.168-.468.54-.72 1.116l-3.366 7.632h-1.638l-2.844-7.398zm14.041 4.266c0 .48.018.864.054 1.152.036.288.108.51.216.666a.833.833 0 0 0 .468.324c.204.048.48.078.828.09V92h-5.67v-.72c.336-.012.606-.048.81-.108a.968.968 0 0 0 .486-.324c.12-.156.198-.366.234-.63.048-.276.072-.624.072-1.044V86.96c0-.696-.012-1.266-.036-1.71-.024-.456-.054-.768-.09-.936-.06-.3-.198-.498-.414-.594-.204-.096-.582-.144-1.134-.144v-.612l4.176-.684v6.768zm-2.646-10.584c0-.396.132-.726.396-.99a1.35 1.35 0 0 1 .99-.414c.396 0 .726.138.99.414.276.264.414.594.414.99 0 .384-.138.714-.414.99a1.343 1.343 0 0 1-.99.396c-.384 0-.714-.132-.99-.396a1.382 1.382 0 0 1-.396-.99zm8.969 10.584c0 .48.018.864.054 1.152.036.288.108.51.216.666a.833.833 0 0 0 .468.324c.204.048.48.078.828.09V92h-5.67v-.72c.336-.012.606-.048.81-.108a.968.968 0 0 0 .486-.324c.12-.156.198-.366.234-.63.048-.276.072-.624.072-1.044V81.74c0-.696-.012-1.266-.036-1.71-.024-.456-.054-.768-.09-.936-.06-.3-.198-.498-.414-.594-.204-.096-.582-.144-1.134-.144v-.612l4.176-.684v11.988zm6.399 0c0 .48.018.864.054 1.152.036.288.108.51.216.666a.833.833 0 0 0 .468.324c.204.048.48.078.828.09V92h-5.67v-.72c.336-.012.606-.048.81-.108a.968.968 0 0 0 .486-.324c.12-.156.198-.366.234-.63.048-.276.072-.624.072-1.044V81.74c0-.696-.012-1.266-.036-1.71-.024-.456-.054-.768-.09-.936-.06-.3-.198-.498-.414-.594-.204-.096-.582-.144-1.134-.144v-.612l4.176-.684v11.988zm11.672 1.278c-1.092 1.236-2.454 1.854-4.086 1.854a5.787 5.787 0 0 1-2.034-.342c-.6-.24-1.116-.57-1.548-.99a4.592 4.592 0 0 1-1.008-1.53c-.24-.588-.36-1.242-.36-1.962 0-.744.126-1.422.378-2.034a4.619 4.619 0 0 1 1.062-1.602 5.01 5.01 0 0 1 1.638-1.062 5.62 5.62 0 0 1 2.088-.378c1.272 0 2.262.342 2.97 1.026.708.684 1.062 1.644 1.062 2.88 0 .192-.03.312-.09.36-.06.036-.228.054-.504.054h-5.796c-.048.108-.072.306-.072.594 0 1.176.252 2.106.756 2.79.516.684 1.212 1.026 2.088 1.026.504 0 1.002-.114 1.494-.342.504-.228.99-.552 1.458-.972l.504.63zm-3.492-4.734c.48 0 .786-.024.918-.072.144-.06.216-.192.216-.396 0-.528-.15-.96-.45-1.296a1.455 1.455 0 0 0-1.134-.504c-.516 0-.978.216-1.386.648-.396.42-.654.96-.774 1.62h2.61z",fill:"#FFF1E1"}));case"RUBIK_WORK":return Object(E.createElement)(y.SVG,{width:"232",height:"132",viewBox:"0 0 232 132",xmlns:"http://www.w3.org/2000/svg"},Object(E.createElement)(y.Path,{fill:"#000",d:"M0 0h232v132H0z"}),Object(E.createElement)(y.Path,{d:"M14.936 62c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912V29.696c0-.352.128-.656.384-.912s.56-.384.912-.384h14.208c4.608 0 8.208 1.04 10.8 3.12 2.592 2.048 3.888 4.896 3.888 8.544 0 2.08-.464 3.92-1.392 5.52-.928 1.568-2.192 2.864-3.792 3.888l5.904 10.944c.096.192.144.368.144.528 0 .288-.112.544-.336.768a.977.977 0 0 1-.72.288H33.8c-.576 0-1.04-.128-1.392-.384-.32-.288-.544-.592-.672-.912l-4.128-9.168H25.64v9.168c0 .352-.128.656-.384.912s-.56.384-.912.384h-9.408zm14.208-19.584c.704 0 1.248-.224 1.632-.672.384-.48.576-1.072.576-1.776s-.192-1.312-.576-1.824c-.352-.544-.896-.816-1.632-.816H25.64v5.088h3.504zM56.873 62.48c-1.696 0-3.248-.384-4.656-1.152-1.408-.8-2.544-2.016-3.408-3.648-.832-1.632-1.248-3.664-1.248-6.096V38.336c0-.352.128-.656.384-.912s.56-.384.912-.384h9.168c.352 0 .656.128.912.384s.384.56.384.912v12.912c0 .864.208 1.52.624 1.968.416.448 1.008.672 1.776.672s1.36-.224 1.776-.672c.416-.448.624-1.104.624-1.968V38.336c0-.352.128-.656.384-.912s.56-.384.912-.384h9.12c.352 0 .656.128.912.384s.384.56.384.912v22.368c0 .352-.128.656-.384.912s-.56.384-.912.384h-8.4c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912V59.12c-.768 1.12-1.84 1.968-3.216 2.544-1.376.544-2.96.816-4.752.816zm41.127 0c-3.04 0-5.408-.96-7.104-2.88v1.104c0 .352-.128.656-.384.912s-.56.384-.912.384h-8.16c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912V29.216c0-.352.128-.656.384-.912s.56-.384.912-.384h8.88c.352 0 .656.128.912.384s.384.56.384.912v9.6C93.28 37.312 95.408 36.56 98 36.56c2.912 0 5.296.944 7.152 2.832 1.888 1.856 2.896 4.592 3.024 8.208.032.48.048 1.104.048 1.872 0 .8-.016 1.44-.048 1.92-.16 3.808-1.152 6.608-2.976 8.4-1.824 1.792-4.224 2.688-7.2 2.688zm-3.984-8.592c.832 0 1.408-.224 1.728-.672.352-.448.576-1.152.672-2.112.064-.64.096-1.168.096-1.584 0-.416-.032-.944-.096-1.584-.096-.96-.32-1.664-.672-2.112-.32-.448-.896-.672-1.728-.672-.8 0-1.392.208-1.776.624-.352.384-.56.976-.624 1.776-.032.48-.048 1.072-.048 1.776s.016 1.296.048 1.776c.064.928.272 1.632.624 2.112.352.448.944.672 1.776.672zM113.415 34.4c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912v-5.808c0-.352.128-.656.384-.912s.56-.384.912-.384h8.112c.352 0 .656.128.912.384s.384.56.384.912v5.808c0 .352-.128.656-.384.912s-.56.384-.912.384h-8.112zm-.24 27.6c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912V38.336c0-.352.128-.656.384-.912s.56-.384.912-.384h8.592c.352 0 .656.128.912.384s.384.56.384.912v22.368c0 .352-.128.656-.384.912s-.56.384-.912.384h-8.592zm15.515 0c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912V29.216c0-.352.128-.656.384-.912s.56-.384.912-.384h8.4c.352 0 .656.128.912.384s.384.56.384.912v15.552l4.224-6.912c.32-.544.784-.816 1.392-.816h9.696c.32 0 .592.112.816.336.224.224.336.496.336.816 0 .224-.08.464-.24.72l-6.576 9.36 7.776 11.952c.128.192.192.4.192.624 0 .32-.112.592-.336.816a1.11 1.11 0 0 1-.816.336h-10.08c-.64 0-1.136-.272-1.488-.816l-4.896-8.16v7.68c0 .352-.128.656-.384.912s-.56.384-.912.384h-8.4zM25.4 105.48c-3.776 0-6.768-.88-8.976-2.64-2.208-1.76-3.312-4.16-3.312-7.2 0-1.952.56-3.664 1.68-5.136 1.12-1.472 2.72-2.8 4.8-3.984-1.216-1.312-2.096-2.528-2.64-3.648-.512-1.152-.768-2.32-.768-3.504 0-1.536.4-2.944 1.2-4.224.8-1.28 1.984-2.304 3.552-3.072 1.568-.768 3.456-1.152 5.664-1.152 2.048 0 3.824.384 5.328 1.152 1.536.736 2.688 1.744 3.456 3.024a7.494 7.494 0 0 1 1.2 4.128c0 1.856-.56 3.456-1.68 4.8-1.12 1.312-2.784 2.608-4.992 3.888l5.712 5.712c.512-.832.944-1.632 1.296-2.4.384-.8.768-1.84 1.152-3.12.128-.448.464-.672 1.008-.672h4.848c.256 0 .48.096.672.288.192.16.288.368.288.624-.032 1.12-.56 2.64-1.584 4.56-.992 1.92-2.096 3.616-3.312 5.088l5.376 5.424c.224.288.336.528.336.72a.774.774 0 0 1-.288.624.844.844 0 0 1-.624.24h-6.528c-.512 0-.928-.16-1.248-.48l-2.16-2.064c-2.464 2.016-5.616 3.024-9.456 3.024zm.432-21.984c1.28-.64 2.24-1.264 2.88-1.872.672-.608 1.008-1.328 1.008-2.16 0-.864-.304-1.552-.912-2.064-.576-.544-1.312-.816-2.208-.816a3.31 3.31 0 0 0-2.208.816c-.608.544-.912 1.248-.912 2.112 0 .576.176 1.184.528 1.824.384.608.992 1.328 1.824 2.16zM25.4 99.384c1.984 0 3.632-.592 4.944-1.776l-6.384-6.384c-2.112 1.12-3.168 2.48-3.168 4.08 0 1.216.464 2.208 1.392 2.976.928.736 2 1.104 3.216 1.104zM65.56 105h-3.168l-6.24-21.12h2.752l5.088 19.104 4.992-19.104h2.912l4.992 19.168 5.12-19.168H84.6L78.392 105h-3.168L71.48 91.304l-1.088-4.768h-.032l-1.088 4.768L65.56 105zm28.824-16.32c2.41 0 4.299.736 5.664 2.208 1.387 1.472 2.08 3.51 2.08 6.112 0 2.603-.693 4.64-2.08 6.112-1.365 1.472-3.253 2.208-5.664 2.208-2.41 0-4.31-.736-5.696-2.208-1.365-1.472-2.048-3.51-2.048-6.112 0-2.603.683-4.64 2.048-6.112 1.387-1.472 3.286-2.208 5.696-2.208zm0 2.208c-1.621 0-2.89.544-3.808 1.632C89.66 93.608 89.2 95.101 89.2 97c0 1.899.459 3.392 1.376 4.48.918 1.088 2.187 1.632 3.808 1.632 1.622 0 2.89-.544 3.808-1.632.918-1.088 1.376-2.581 1.376-4.48 0-1.899-.458-3.392-1.376-4.48-.917-1.088-2.186-1.632-3.808-1.632zm20.269-2.208c.768 0 1.355.107 1.76.32l-.512 2.496c-.512-.277-1.184-.416-2.016-.416-.683 0-1.355.203-2.016.608-.64.384-1.173.981-1.6 1.792-.405.79-.608 1.75-.608 2.88V105h-2.56V89h2.08l.352 2.624c.896-1.963 2.603-2.944 5.12-2.944zm11.463 8.416l-3.392 3.392V105h-2.56V81.64h2.56v15.648L131.012 89h3.2l-6.24 6.24 6.624 9.76h-3.104l-5.376-7.904zm29.655-13.536c3.776 0 6.496 1.493 8.16 4.48l-2.208 1.792c-.64-1.408-1.408-2.4-2.304-2.976-.874-.597-2.08-.896-3.616-.896-1.621 0-2.901.341-3.84 1.024-.917.661-1.376 1.515-1.376 2.56 0 .683.182 1.248.544 1.696.363.448.96.843 1.792 1.184.854.32 2.027.608 3.52.864 2.795.47 4.768 1.173 5.92 2.112 1.174.939 1.76 2.24 1.76 3.904 0 1.195-.341 2.251-1.024 3.168-.661.896-1.61 1.6-2.848 2.112-1.237.491-2.666.736-4.288.736-2.133 0-3.957-.416-5.472-1.248-1.493-.832-2.634-1.941-3.424-3.328l2.208-1.792c.576 1.259 1.419 2.24 2.528 2.944 1.131.683 2.539 1.024 4.224 1.024 1.664 0 2.987-.299 3.968-.896.982-.619 1.472-1.483 1.472-2.592 0-.939-.426-1.685-1.28-2.24-.853-.555-2.368-1.024-4.544-1.408-2.816-.49-4.81-1.195-5.984-2.112-1.173-.917-1.76-2.197-1.76-3.84 0-1.13.32-2.176.96-3.136.64-.96 1.558-1.717 2.752-2.272 1.195-.576 2.582-.864 4.16-.864zm26.044 19.584a5.25 5.25 0 0 0 1.28-.16l-.16 2.016a5.68 5.68 0 0 1-1.92.32c-.832 0-1.494-.181-1.984-.544-.47-.363-.768-.971-.896-1.824-.491.747-1.216 1.333-2.176 1.76a7.435 7.435 0 0 1-2.976.608c-1.579 0-2.88-.363-3.904-1.088-1.024-.747-1.536-1.813-1.536-3.2 0-1.216.533-2.261 1.6-3.136 1.066-.896 2.613-1.515 4.64-1.856l4.256-.704v-.896c0-1.067-.331-1.92-.992-2.56-.662-.64-1.579-.96-2.752-.96-1.067 0-1.995.256-2.784.768-.768.512-1.366 1.27-1.792 2.272l-1.888-1.376c.426-1.195 1.216-2.144 2.368-2.848 1.173-.704 2.538-1.056 4.096-1.056 1.898 0 3.424.459 4.576 1.376 1.152.917 1.728 2.272 1.728 4.064v7.872c0 .384.096.672.288.864.192.192.501.288.928.288zm-8.704-.064c1.344 0 2.496-.32 3.456-.96.981-.64 1.472-1.472 1.472-2.496v-2.208l-3.584.672c-1.43.256-2.496.63-3.2 1.12-.704.47-1.056 1.077-1.056 1.824 0 .661.256 1.173.768 1.536.512.341 1.226.512 2.144.512zm21.485-14.4c1.813 0 3.306.523 4.48 1.568 1.173 1.045 1.76 2.55 1.76 4.512V105h-2.56v-9.344c0-1.664-.363-2.87-1.088-3.616-.704-.747-1.654-1.12-2.848-1.12-.854 0-1.654.192-2.4.576-.747.363-1.366.97-1.856 1.824-.47.832-.704 1.888-.704 3.168V105h-2.56V89h2.24l.16 2.496c.533-.96 1.269-1.664 2.208-2.112.938-.47 1.994-.704 3.168-.704zm17.476 16.64c-1.536 0-2.922-.299-4.16-.896-1.237-.619-2.144-1.525-2.72-2.72l2.08-1.44a3.898 3.898 0 0 0 1.888 2.112c.896.469 1.952.704 3.168.704 1.259 0 2.219-.224 2.88-.672.662-.448.992-1.013.992-1.696 0-.619-.309-1.11-.928-1.472-.618-.384-1.706-.715-3.264-.992-1.536-.277-2.752-.608-3.648-.992-.896-.405-1.546-.907-1.952-1.504-.405-.619-.608-1.376-.608-2.272 0-.875.256-1.675.768-2.4.512-.725 1.248-1.301 2.208-1.728.96-.448 2.07-.672 3.328-.672 1.707 0 3.072.32 4.096.96 1.046.619 1.792 1.579 2.24 2.88l-2.176 1.28c-.341-1.024-.864-1.76-1.568-2.208-.682-.448-1.546-.672-2.592-.672-1.045 0-1.93.235-2.656.704-.725.47-1.088 1.013-1.088 1.632 0 .704.31 1.248.928 1.632.64.384 1.771.715 3.392.992 2.219.363 3.787.907 4.704 1.632.918.725 1.376 1.75 1.376 3.072a3.95 3.95 0 0 1-.832 2.464c-.533.704-1.312 1.259-2.336 1.664-1.002.405-2.176.608-3.52.608z",fill:"#fff"}));case"PLAY_ROBOTO":return Object(E.createElement)(y.SVG,{width:"232",height:"132",viewBox:"0 0 232 132",xmlns:"http://www.w3.org/2000/svg"},Object(E.createElement)(y.Path,{fill:"#B9B5B8",d:"M0 0h232v132H0z"}),Object(E.createElement)(y.Path,{d:"M149.438 101c-.75-2.125-1.23-5.27-1.438-9.438-2.625 3.417-5.979 6.063-10.062 7.938-4.042 1.833-8.334 2.75-12.876 2.75-6.5 0-11.77-1.812-15.812-5.438-4-3.624-6-8.208-6-13.75 0-6.583 2.729-11.791 8.188-15.624 5.5-3.834 13.145-5.75 22.937-5.75h13.563V54c0-4.833-1.5-8.625-4.5-11.375-2.959-2.792-7.292-4.188-13-4.188-5.209 0-9.521 1.334-12.938 4-3.417 2.667-5.125 5.876-5.125 9.626l-7.5-.063c0-5.375 2.5-10.02 7.5-13.938 5-3.958 11.146-5.937 18.437-5.937 7.542 0 13.48 1.896 17.813 5.688 4.375 3.75 6.625 9 6.75 15.75v32c0 6.541.687 11.437 2.063 14.687v.75h-8zm-23.5-5.375c5 0 9.458-1.208 13.374-3.625 3.959-2.417 6.834-5.646 8.626-9.688V67.439h-13.376c-7.458.083-13.291 1.458-17.5 4.124-4.208 2.626-6.312 6.25-6.312 10.876 0 3.791 1.396 6.937 4.188 9.437 2.833 2.5 6.5 3.75 11 3.75zM39.328 101.896c-5.461 0-9.6-1.451-12.416-4.352-2.73-2.987-4.096-6.699-4.096-11.136 0-3.84.981-6.997 2.944-9.472 2.048-2.56 4.437-4.523 7.168-5.888 2.73-1.365 6.272-2.773 10.624-4.224 4.608-1.536 7.979-2.944 10.112-4.224 2.133-1.28 3.2-3.072 3.2-5.376V45.832c0-2.73-.683-5.163-2.048-7.296s-3.712-3.2-7.04-3.2c-2.645 0-5.035.725-7.168 2.176 2.901 1.024 5.035 2.56 6.4 4.608 1.45 1.963 2.176 4.181 2.176 6.656 0 3.328-1.195 6.016-3.584 8.064-2.304 1.963-5.12 2.944-8.448 2.944-3.328 0-5.973-1.024-7.936-3.072-1.877-2.133-2.816-4.821-2.816-8.064 0-2.56.64-4.779 1.92-6.656 1.28-1.877 3.285-3.584 6.016-5.12 4.779-2.73 11.605-4.096 20.48-4.096 4.693 0 8.747.47 12.16 1.408 3.413.853 6.315 2.517 8.704 4.992 1.707 1.792 2.816 4.053 3.328 6.784.597 2.645.896 6.357.896 11.136V91.4c0 2.133.128 3.584.384 4.352.341.768.896 1.152 1.664 1.152.597 0 1.237-.17 1.92-.512a15.863 15.863 0 0 0 1.92-1.408l1.28 2.176c-3.67 3.157-8.917 4.736-15.744 4.736-5.12 0-8.704-.853-10.752-2.56-2.048-1.792-3.157-4.181-3.328-7.168-4.01 6.485-9.984 9.728-17.92 9.728zm12.8-10.24c1.792 0 3.37-.725 4.736-2.176V62.472c-.768 1.28-2.176 2.944-4.224 4.992-2.304 2.219-4.053 4.395-5.248 6.528-1.195 2.048-1.792 4.864-1.792 8.448 0 6.144 2.176 9.216 6.528 9.216z",fill:"#270920"}));default:return Object(E.createElement)("div",{className:"font-pairings-panel__preview"},Object(E.createElement)("h1",{style:{fontFamily:t}},"Lorem Ipsum"),Object(E.createElement)("p",{style:{fontFamily:n}},"Etiam tempor orci eu lobortis elementum nibh tellus molestie."))}},M=function(e){var t=e.fontPairings,n=e.fontBase,c=e.fontHeadings,a=e.update;return Object(E.createElement)(E.Fragment,null,Object(E.createElement)("h3",null,Object(P.__)("Font Pairings","full-site-editing")),t&&c&&n?Object(E.createElement)("div",{role:"listbox"},t.map((function(e){var t=e.label,r=e.headings,l=e.base,o=e.preview,i=r===c&&l===n,s=S()("font-pairings-panel",{"is-selected":i});return Object(E.createElement)("div",{key:t,tabIndex:0,role:"option","aria-selected":i,className:s,onClick:function(){return a({headings:r,base:l})},onKeyDown:function(e){return e.keyCode===w.ENTER?a({headings:r,base:l}):null}},Object(E.createElement)("div",{className:"font-pairings-panel__preview"},x(o,r,l)),Object(E.createElement)("p",{className:"font-pairings-panel__label"},t))}))):Object(E.createElement)(H,{unsupportedFeature:Object(P.__)("font pairings","full-site-editing")}))},B=function(e){var t=e.fontBase,n=e.fontBaseDefault,c=e.fontHeadings,a=e.fontHeadingsDefault,r=e.fontBaseOptions,l=e.fontHeadingsOptions,o=e.updateBaseFont,i=e.updateHeadingsFont;return r&&l?Object(E.createElement)(E.Fragment,null,Object(E.createElement)(y.SelectControl,{label:Object(P.__)("Heading Font","full-site-editing"),value:c,options:l,onChange:function(e){return i(e)},style:{fontFamily:"unset"!==c?c:a}}),Object(E.createElement)(y.SelectControl,{label:Object(P.__)("Base Font","full-site-editing"),value:t,options:r,onChange:function(e){return o(e)},style:{fontFamily:"unset"!==t?t:n}}),Object(E.createElement)("hr",null)):Object(E.createElement)(H,{unsupportedFeature:Object(P.__)("custom font selection","full-site-editing")})},T=function(){return Object(E.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(E.createElement)(y.Path,{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z"}))},L=function(e){if("object"==typeof e){var t=e.label,n=e.value,c=e.prop;return{label:t,value:n,prop:void 0===c?"ANY_PROPERTY":c}}return{label:e,value:e,prop:"ANY_PROPERTY"}},N=function(e){return null!==e.value&&null!==e.label},C=function(e,t){return e?e.map(L).filter(N).filter(function(e){return function(t){return"ANY_PROPERTY"===t.prop||t.prop===e}}(t)):[]},F=function(e){var t=e.hasLocalChanges,n=e.resetAction,c=e.publishAction,a=e.className,r=void 0===a?null:a;return Object(E.createElement)("div",{className:r},Object(E.createElement)(y.Button,{disabled:!t,isDefault:!0,onClick:n},Object(P.__)("Reset","full-site-editing")),Object(E.createElement)(y.Button,{className:"global-styles-sidebar__publish-button",disabled:!t,isPrimary:!0,onClick:c},Object(P.__)("Publish","full-site-editing")))},I=(n(14),JETPACK_GLOBAL_STYLES_EDITOR_CONSTANTS),A=I.PLUGIN_NAME,R=I.STORE_NAME,D=I.REST_PATH;c=R,a=D,Object(i.registerStore)(c,{reducer:function(e,t){switch(t.type){case"UPDATE_OPTIONS":case"RESET_OPTIONS":case"PUBLISH_OPTIONS":return h()(h()({},e),t.options)}return e},actions:O,selectors:{getOption:function(e,t){return e?e[t]:void 0},hasLocalChanges:function(e){return!!e&&Object.keys(v).some((function(t){return v[t]!==e[t]}))}},resolvers:{getOption:regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,b=!0,e.next=6,O.fetchOptions();case 6:n=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),n={};case 12:return v=n,e.abrupt("return",{type:"UPDATE_OPTIONS",options:n});case 14:case"end":return e.stop()}}),e,null,[[2,9]])}))},controls:{IO_FETCH_OPTIONS:function(){return p()({path:a})},IO_PUBLISH_OPTIONS:function(e){var t=e.options;return v=t,p()({path:a,method:"POST",data:h()({},t)})}}}),r=["font_base","font_headings"],l=Object(i.select)(R).getOption,d()((function(){var e={},t={},n={};r.forEach((function(e){n[e]="--".concat(e.replace("_","-"))}));var c=null;Object(i.subscribe)((function(){var a=Object(i.select)("core/editor").__unstableIsEditorReady;if(!(a&&!1===a()||(c||(c=document.createElement("style"),document.body.appendChild(c)),r.forEach((function(t){e[t]=l(t)})),Object(g.isEmpty)(e)||Object(g.isEqual)(e,t)))){t=h()({},e);var o="";Object.keys(e).forEach((function(t){o+="".concat(n[t],":").concat(e[t],";")})),c.textContent=".edit-post-visual-editor.editor-styles-wrapper{".concat(o,"}")}}))})),Object(o.registerPlugin)(A,{render:Object(s.compose)(Object(i.withSelect)((function(e){return{siteName:e(R).getOption("blogname"),fontHeadings:e(R).getOption("font_headings"),fontHeadingsDefault:e(R).getOption("font_headings_default"),fontBase:e(R).getOption("font_base"),fontBaseDefault:e(R).getOption("font_base_default"),fontPairings:e(R).getOption("font_pairings"),fontOptions:e(R).getOption("font_options"),hasLocalChanges:e(R).hasLocalChanges()}})),Object(i.withDispatch)((function(e){return{updateOptions:e(R).updateOptions,publishOptions:e(R).publishOptions,resetLocalChanges:e(R).resetLocalChanges}})))((function(e){var t=e.fontHeadings,n=e.fontHeadingsDefault,c=e.fontBase,a=e.fontBaseDefault,r=e.fontPairings,l=e.fontOptions,o=e.siteName,i=e.publishOptions,s=e.updateOptions,u=e.hasLocalChanges,h=e.resetLocalChanges,f=function(){var e;return i((e={},_()(e,"font_base",c),_()(e,"font_headings",t),e))};return Object(E.createElement)(E.Fragment,null,Object(E.createElement)(z.PluginSidebarMoreMenuItem,{icon:Object(E.createElement)(T,null),target:"global-styles"},Object(P.__)("Global Styles","full-site-editing")),Object(E.createElement)(z.PluginSidebar,{icon:Object(E.createElement)(T,null),name:"global-styles",title:Object(P.__)("Global Styles","full-site-editing"),className:"global-styles-sidebar"},Object(E.createElement)(y.PanelBody,null,Object(E.createElement)("p",null,Object(P.sprintf)(Object(P.__)("You are customizing %s.","full-site-editing"),o)),Object(E.createElement)("p",null,Object(P.__)("Any change you make here will apply to the entire website.","full-site-editing")),u?Object(E.createElement)("div",null,Object(E.createElement)("p",null,Object(E.createElement)("em",null,Object(P.__)("You have unsaved changes.","full-site-editing"))),Object(E.createElement)(F,{hasLocalChanges:u,publishAction:f,resetAction:h})):null),Object(E.createElement)(y.PanelBody,{title:Object(P.__)("Font Selection","full-site-editing")},Object(E.createElement)(B,{fontBase:c,fontBaseDefault:a,fontHeadings:t,fontHeadingsDefault:n,fontBaseOptions:C(l,"font_base"),fontHeadingsOptions:C(l,"font_headings"),updateBaseFont:function(e){return s(_()({},"font_base",e))},updateHeadingsFont:function(e){return s(_()({},"font_headings",e))}}),Object(E.createElement)(M,{fontHeadings:t,fontBase:c,fontPairings:r,update:function(e){var t,n=e.headings,c=e.base;return s((t={},_()(t,"font_headings",n),_()(t,"font_base",c),t))}})),Object(E.createElement)(y.PanelBody,null,u?Object(E.createElement)("p",null,Object(E.createElement)("em",null,Object(P.__)("You have unsaved changes.","full-site-editing"))):null,Object(E.createElement)(F,{hasLocalChanges:u,publishAction:f,resetAction:h,className:"global-styles-sidebar__panel-action-buttons"}))))}))})}]));
|
1 |
+
!function(e,t){for(var c in t)e[c]=t[c]}(window,function(e){var t={};function c(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,c),a.l=!0,a.exports}return c.m=e,c.c=t,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)c.d(n,a,function(t){return e[t]}.bind(null,a));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="",c(c.s=15)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){e.exports=function(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}},function(e,t,c){var n=c(4);function a(e,t){var c=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),c.push.apply(c,n)}return c}e.exports=function(e){for(var t=1;t<arguments.length;t++){var c=null!=arguments[t]?arguments[t]:{};t%2?a(Object(c),!0).forEach((function(t){n(e,t,c[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(c)):a(Object(c)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(c,t))}))}return e}},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,c){var n;
|
2 |
/*!
|
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 c={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){var l=a.apply(null,n);l&&e.push(l)}else if("object"===r)for(var o in n)c.call(n,o)&&n[o]&&e.push(o)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},function(e,t,c){},function(e,t,c){"use strict";c.r(t);var n,a,r,l,o=c(9),i=c(3),s=c(10),u=c(5),h=c.n(u),f=c(6),p=c.n(f),v={},b=!1,O={publishOptions:regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"IO_PUBLISH_OPTIONS",options:t};case 2:return e.abrupt("return",{type:"PUBLISH_OPTIONS",options:t});case 3:case"end":return e.stop()}}),e)})),updateOptions:function(e){return{type:"UPDATE_OPTIONS",options:e}},fetchOptions:function(){return{type:"IO_FETCH_OPTIONS"}},resetLocalChanges:function(){return{type:"RESET_OPTIONS",options:v}}},m=c(11),d=c.n(m),g=c(7),j=c(4),E=c.n(j),_=c(0),z=c(8),y=c(1),w=c(2),P=c(12),V=c(13),S=c.n(V),H=function(e){var t=e.unsupportedFeature;return Object(_.createElement)("p",null,Object(w.sprintf)(Object(w.__)("Your active theme doesn't support %s.","full-site-editing"),t))},x=function(e,t,c){switch(e){case"SPACE_LORA":return Object(_.createElement)(y.SVG,{width:"232",height:"132",viewBox:"0 0 232 132",xmlns:"http://www.w3.org/2000/svg"},Object(_.createElement)(y.Path,{fill:"#fa4d4b",d:"M0 0h232v132H0z"}),Object(_.createElement)(y.Path,{d:"M24.1 62c-3.6-2.9-8.9-5-15.8-6.3-2.8-.5-5-1-6.9-1.6-.5-.2-1-.3-1.5-.5v12.5c1.4.3 2.9.6 4.4.9 2.5.4 4.6 1 6.2 1.6s2.9 1.3 3.9 2.2c.9.8 1.6 1.6 2 2.6.4.9.6 1.9.6 3 0 2.3-.9 4.2-2.7 5.8-1.8 1.6-4.6 2.4-8.4 2.4-2.2 0-4.2-.3-5.9-.8v12c1.8.3 3.7.4 5.7.4 3.7 0 7-.5 10-1.4 2.9-.9 5.5-2.3 7.5-4s3.6-3.9 4.7-6.3c1.1-2.5 1.7-5.3 1.7-8.4V75c0-5.7-1.8-10-5.5-13zM12.9 42.5c2.1 1.9 3.1 4.2 3.1 6.9v2.3h12.4v-3.4c0-2.7-.5-5.3-1.6-7.7-1-2.4-2.5-4.6-4.6-6.5-2-1.9-4.5-3.4-7.5-4.4-3-1.1-6.5-1.7-10.3-1.7-1.5 0-3 .1-4.4.3v11.9c1.3-.4 2.7-.5 4.4-.5 3.7-.2 6.5.8 8.5 2.8zm67.9 10.9c-1.8-2.1-4-3.6-6.5-4.7-2.4-1.1-5-1.6-7.8-1.6-3.7 0-6.7.7-9.1 2.2-2.4 1.4-4.2 3.4-5.5 5.9h-1.7v-6.8H38.4v65.4h11.8V88.2H52c.6 1.1 1.2 2.1 2 3.1.8.9 1.8 1.8 2.9 2.5 1.2.8 2.6 1.3 4.1 1.8 1.6.4 3.4.7 5.5.7 2.9 0 5.5-.5 8-1.5 2.5-1.1 4.7-2.6 6.5-4.6 1.8-2.1 3.3-4.6 4.3-7.5 1.1-2.9 1.6-6.3 1.6-10.2v-1.7c0-3.8-.6-7.1-1.7-10.1-1-2.9-2.5-5.3-4.4-7.3zm-5.7 18.9c0 3.9-1.2 7.1-3.5 9.4-2.3 2.3-5.2 3.4-8.9 3.4s-6.7-1.2-9-3.5c-2.3-2.4-3.4-5.5-3.4-9.3v-1.1c0-3.8 1.1-6.9 3.4-9.2 2.3-2.4 5.3-3.6 9-3.6s6.7 1.2 8.9 3.5c2.3 2.3 3.5 5.4 3.5 9.3v1.1zm66.2 8.6V48.4h-11.8V54h-1.7c-1.2-2.4-2.8-4.1-4.9-5.3-2-1.1-4.7-1.7-8-1.7-2.8 0-5.4.6-7.8 1.7-2.4 1.1-4.5 2.6-6.3 4.7-1.8 2.1-3.3 4.6-4.3 7.6-1.1 2.9-1.6 6.3-1.6 10v1.5c0 3.8.5 7.1 1.6 10.1 1.1 2.9 2.6 5.5 4.5 7.5 1.9 2.1 4 3.6 6.5 4.7s5.2 1.6 8 1.6c3 0 5.6-.6 7.9-1.8 2.3-1.3 4-3.4 5.3-6.3h1.7c0 2 .7 3.6 2 4.9 1.4 1.3 3.1 1.9 5.3 1.9h8.1V83.7H144c-1.8 0-2.7-.9-2.7-2.8zm-11.8-8.6c0 3.9-1 7.1-3.1 9.4-2.1 2.3-4.8 3.4-8.3 3.4-3.4 0-6.2-1.1-8.3-3.4-2.1-2.3-3.1-5.5-3.1-9.4v-1.1c0-3.9 1-7.1 3.1-9.3 2.1-2.3 4.8-3.5 8.3-3.5 3.4 0 6.2 1.2 8.3 3.5 2.1 2.3 3.1 5.4 3.1 9.3v1.1zm98.3-12.2c1.2-1 2.6-1.6 4.2-2V47.3c-2.1.3-4 .8-5.9 1.6-2.8 1.1-5.3 2.7-7.4 4.8-2.1 2.1-3.8 4.6-5.1 7.5-1.2 2.9-1.8 6.2-1.8 9.8v.6c0 3.9.6 7.4 1.7 10.4 1.2 3.1 2.8 5.7 4.9 7.8 2.1 2.1 4.6 3.8 7.5 4.9 1.9.7 4 1.2 6.1 1.5V84.7c-.4-.1-.7-.2-1.1-.3-1.3-.5-2.5-1.2-3.6-2-1-.9-1.8-1.9-2.4-3-.6-1.2-.9-2.5-.9-3.9h8V65.4h-7.8c.5-2 1.8-3.8 3.6-5.3zm-61.5 6.1c.7-1.7 1.6-3.1 2.7-4.2 1.1-1.2 2.4-2.1 3.9-2.7 1.5-.6 3.1-.9 4.8-.9 3.6 0 6.5 1 8.5 3s3.2 4.4 3.6 7.1l11.7-3c-1.1-5.5-3.6-10-7.7-13.3-4-3.4-9.3-5.1-15.8-5.1-3.4 0-6.6.6-9.6 1.7-2.9 1.1-5.5 2.8-7.8 4.9-2.2 2.1-3.9 4.7-5.2 7.7s-1.9 6.4-1.9 10.2v1.1c0 3.8.6 7.1 1.9 10.1 1.3 2.9 3 5.4 5.2 7.4s4.8 3.5 7.7 4.6c3 1.1 6.2 1.6 9.7 1.6 6.6 0 11.9-1.7 15.9-5.1 4-3.4 6.5-7.8 7.6-13.3l-11.7-3c-.6 3.1-1.8 5.5-3.8 7.3-1.9 1.8-4.6 2.7-8.3 2.7-1.7 0-3.3-.3-4.8-.8-1.5-.6-2.8-1.4-3.9-2.4-1.1-1.1-2-2.4-2.7-3.9-.6-1.6-.9-3.5-.9-5.5v-.6c0-2.1.3-3.9.9-5.6z",fill:"#270920"}),Object(_.createElement)(y.Path,{d:"M49.7 89.3c-1.1 1.3-2.6 2-4.5 2h-6.5c.1-1.1.2-2.5.2-4.3V68.5c0-1.3.1-2.2.4-2.8s.6-1 1.1-1.1c.5-.2 1.1-.3 2-.3v-3.2h-14v3.7l3.6-.1c-.1 1.1-.2 2.5-.2 4.4v18.5c0 1.3-.1 2.2-.4 2.8-.3.6-.6 1-1.1 1.2-.5.2-1.1.3-2 .3V95h25.8l.3-11.6h-3.2c.1 2.6-.5 4.5-1.5 5.9zM101.3 70c-2.5 0-4.8 1.5-7 4.5h-.1v-2.3c0-.8-.1-1.4-.1-1.9h-2.4c-.4.4-1.3.7-2.5 1-1.3.3-2.9.4-4.9.4v3.7l3.4-.1c-.1 1.3-.2 2.7-.2 4.1v8.1c0 1.5-.2 2.6-.5 3.3-.3.7-1.1 1-2.3 1V95h12.7v-3.7c-1.1 0-2.1 0-3.1.1.1-1.3.2-2.7.2-4.3v-7.9c.3-1 1-2.1 1.9-3.1 1-1.1 1.9-1.6 2.8-1.6.1 1 .5 1.8 1.1 2.2.6.4 1.4.6 2.2.6 1.1 0 1.9-.4 2.5-1.1.5-.7.8-1.5.8-2.3 0-1.3-.4-2.3-1.2-3-1-.5-2-.9-3.3-.9zm25.8 21.5c.1-1.3.2-2.7.2-4.3v-7.9c0-6.2-3-9.2-9-9.2-1.9 0-3.6.3-5.2.8-1.5.5-2.8 1.3-3.7 2.2-.9 1-1.4 2.1-1.4 3.3 0 .9.3 1.7.8 2.4.5.6 1.3.9 2.3.9 1 0 1.8-.3 2.3-.9.5-.6.8-1.3.8-2.1s-.2-1.4-.6-1.8c.9-.9 2.1-1.4 3.5-1.4 2.2 0 3.3 1.5 3.3 4.4v2.5c-3.7.2-6.9 1-9.5 2.5-2.6 1.5-4 3.6-4 6.4 0 1.9.6 3.4 1.7 4.6 1.2 1.2 2.8 1.8 4.8 1.8 2.8 0 5.2-1 7.2-3 .1 1.1.1 1.8.2 2.2h9.1v-3.7c-.7.1-1.8.2-2.8.3zm-6.6-2.2c-1.1 1.2-2.4 1.7-3.8 1.7-.8 0-1.4-.2-2-.6-.5-.4-.8-1.1-.8-1.9 0-1.3.6-2.4 1.8-3.1 1.3-.8 2.8-1.3 4.7-1.5v5.4zM75.1 71.5c-1.8-1-3.9-1.5-6.2-1.5-2.2 0-4.3.6-6.1 1.7-1.8 1.1-3.3 2.7-4.4 4.7-1.1 2-1.6 4.4-1.6 7 0 2.5.5 4.7 1.6 6.5 1.1 1.9 2.5 3.3 4.4 4.3 1.9 1 4 1.5 6.3 1.5 2.4 0 4.4-.5 6.2-1.6 1.8-1.1 3.3-2.6 4.3-4.6 1-2 1.5-4.3 1.5-7 0-2.5-.5-4.7-1.6-6.6-1.1-1.9-2.5-3.4-4.4-4.4zm-2.2 18.4c-.7 1.6-2 2.5-3.7 2.5-1.8 0-3.1-1-4-3-.9-2-1.3-4.4-1.3-7.2 0-2.5.4-4.5 1.2-6.2.8-1.7 2.1-2.5 3.9-2.5 1.7 0 3 1 3.8 3s1.2 4.4 1.2 7.2c-.1 2.5-.4 4.5-1.1 6.2z",fill:"#fff"}));case"SYSTEM_BASKER":return Object(_.createElement)(y.SVG,{width:"232",height:"132",viewBox:"0 0 232 132",xmlns:"http://www.w3.org/2000/svg"},Object(_.createElement)(y.Path,{fill:"#F18F1B",d:"M0 0h232v132H0z"}),Object(_.createElement)(y.Path,{d:"M10.016 50.563c.14 4.25 3.718 6.828 9.093 6.828 5.641 0 9.094-2.797 9.094-7.203 0-3.422-2.078-5.344-6.844-6.297l-2.39-.485c-2.657-.531-3.75-1.39-3.75-2.781 0-1.656 1.562-2.75 3.89-2.75 2.375 0 4.047 1.156 4.203 3.078h4.454c-.078-4.14-3.391-6.89-8.657-6.89-5.015 0-8.609 2.734-8.609 6.859 0 3.36 2.203 5.516 6.703 6.406l2.375.469c2.828.578 3.89 1.422 3.89 2.906 0 1.656-1.718 2.875-4.234 2.875-2.562 0-4.468-1.125-4.765-3.016h-4.453zM53 37v-8.422l7.86-14.125h-5.063l-5.063 9.625h-.109l-5.047-9.625h-5.14l7.843 14.125V37H53zM73.016 60.563c.14 4.25 3.718 6.828 9.093 6.828 5.641 0 9.094-2.797 9.094-7.204 0-3.421-2.078-5.343-6.844-6.296l-2.39-.485c-2.656-.531-3.75-1.39-3.75-2.781 0-1.656 1.562-2.75 3.89-2.75 2.375 0 4.047 1.156 4.204 3.078h4.453c-.079-4.14-3.391-6.89-8.657-6.89-5.015 0-8.609 2.734-8.609 6.859 0 3.36 2.203 5.516 6.703 6.406l2.375.469c2.828.578 3.89 1.422 3.89 2.906 0 1.656-1.718 2.875-4.234 2.875-2.562 0-4.468-1.125-4.765-3.016h-4.453zM114.984 47V28.344h6.532v-3.89H103.75v3.89h6.516V47h4.718zM149.812 43.094h-10.218v-5.688h9.64v-3.625h-9.64v-5.437h10.218v-3.89h-14.937V47h14.937v-3.906zM187.75 37V14.453h-5.469l-6.406 16.188h-.125l-6.406-16.188h-5.469V37h4.203V21.781h.125L174.328 37h2.969l6.125-15.219h.125V37h4.203z",fill:"#492B06"}),Object(_.createElement)(y.Path,{d:"M22.032 92H9.63v-.72c.396-.012.72-.048.972-.108s.444-.162.576-.306c.132-.144.222-.348.27-.612.048-.264.072-.606.072-1.026v-8.316c0-.42-.024-.756-.072-1.008-.036-.264-.114-.468-.234-.612a.852.852 0 0 0-.522-.306 4.454 4.454 0 0 0-.864-.126v-.72h6.21v.72a5.062 5.062 0 0 0-.99.108c-.24.06-.426.168-.558.324-.132.156-.222.372-.27.648a8.868 8.868 0 0 0-.054 1.098v7.542c0 .504.048.918.144 1.242.108.312.288.558.54.738.252.168.588.288 1.008.36.42.06.942.09 1.566.09.696 0 1.278-.042 1.746-.126.468-.084.858-.24 1.17-.468.324-.24.582-.558.774-.954.192-.396.354-.912.486-1.548h.72L22.032 92zm5.182-2.952c0 .48.018.864.054 1.152.036.288.108.51.216.666a.833.833 0 0 0 .468.324c.204.048.48.078.828.09V92h-5.67v-.72c.336-.012.606-.048.81-.108a.968.968 0 0 0 .486-.324c.12-.156.198-.366.234-.63.048-.276.072-.624.072-1.044V86.96c0-.696-.012-1.266-.036-1.71-.024-.456-.054-.768-.09-.936-.06-.3-.198-.498-.414-.594-.204-.096-.582-.144-1.134-.144v-.612l4.176-.684v6.768zm-2.646-10.584c0-.396.132-.726.396-.99a1.35 1.35 0 0 1 .99-.414c.396 0 .726.138.99.414.276.264.414.594.414.99 0 .384-.138.714-.414.99a1.343 1.343 0 0 1-.99.396c-.384 0-.714-.132-.99-.396a1.382 1.382 0 0 1-.396-.99zm8.574 9.594c0 .444.06.858.18 1.242.132.372.306.696.522.972.216.276.474.492.774.648.3.156.63.234.99.234.72 0 1.266-.33 1.638-.99.372-.66.558-1.632.558-2.916 0-1.248-.186-2.196-.558-2.844-.36-.66-.906-.99-1.638-.99-.432 0-.834.12-1.206.36-.36.228-.642.552-.846.972-.276.576-.414 1.302-.414 2.178v1.134zm-.036-4.356h.072a3.07 3.07 0 0 1 1.206-1.044c.492-.252 1.05-.378 1.674-.378.636 0 1.224.132 1.764.396.552.252 1.026.6 1.422 1.044.408.444.726.966.954 1.566.228.6.342 1.242.342 1.926 0 .72-.126 1.386-.378 1.998-.24.6-.576 1.122-1.008 1.566-.42.444-.918.792-1.494 1.044a4.362 4.362 0 0 1-1.8.378c-.66 0-1.284-.126-1.872-.378-.576-.264-1.038-.606-1.386-1.026L31.234 92h-.612V81.29c0-1.128-.078-1.902-.234-2.322a.93.93 0 0 0-.126-.216.488.488 0 0 0-.216-.144 1.07 1.07 0 0 0-.36-.108 7.62 7.62 0 0 0-.612-.108v-.612l4.032-.72v6.642zm12.759 5.508c0 .468.018.84.054 1.116.048.264.138.468.27.612.132.144.324.24.576.288.252.036.588.054 1.008.054V92H41.76v-.72c.36-.024.648-.06.864-.108.216-.048.378-.144.486-.288.108-.144.174-.348.198-.612.036-.276.054-.642.054-1.098v-2.196c0-.744-.018-1.338-.054-1.782-.036-.444-.114-.786-.234-1.026a.867.867 0 0 0-.522-.468c-.216-.084-.504-.126-.864-.126v-.63l3.6-.666.288 2.07h.072c.324-.636.75-1.14 1.278-1.512.528-.372 1.086-.558 1.674-.558.456 0 .828.114 1.116.342.288.228.432.516.432.864 0 .384-.114.708-.342.972-.216.264-.516.396-.9.396-.18 0-.342-.036-.486-.108a3.131 3.131 0 0 1-.396-.234 2.28 2.28 0 0 0-.342-.252.549.549 0 0 0-.342-.126c-.228 0-.444.15-.648.45-.204.3-.372.702-.504 1.206a9.68 9.68 0 0 0-.234 1.224c-.06.444-.09.888-.09 1.332v.864zM59.8 90.326c-1.092 1.236-2.454 1.854-4.086 1.854a5.787 5.787 0 0 1-2.034-.342c-.6-.24-1.116-.57-1.548-.99a4.592 4.592 0 0 1-1.008-1.53c-.24-.588-.36-1.242-.36-1.962 0-.744.126-1.422.378-2.034a4.619 4.619 0 0 1 1.062-1.602 5.01 5.01 0 0 1 1.638-1.062 5.62 5.62 0 0 1 2.088-.378c1.272 0 2.262.342 2.97 1.026.708.684 1.062 1.644 1.062 2.88 0 .192-.03.312-.09.36-.06.036-.228.054-.504.054h-5.796c-.048.108-.072.306-.072.594 0 1.176.252 2.106.756 2.79.516.684 1.212 1.026 2.088 1.026.504 0 1.002-.114 1.494-.342.504-.228.99-.552 1.458-.972l.504.63zm-3.492-4.734c.48 0 .786-.024.918-.072.144-.06.216-.192.216-.396 0-.528-.15-.96-.45-1.296a1.455 1.455 0 0 0-1.134-.504c-.516 0-.978.216-1.386.648-.396.42-.654.96-.774 1.62h2.61zM65.985 92v-.72a4.75 4.75 0 0 0 .972-.108c.252-.06.444-.162.576-.306.144-.144.24-.348.288-.612.048-.264.072-.606.072-1.026v-8.316c0-.42-.018-.756-.054-1.008-.036-.264-.114-.468-.234-.612a.755.755 0 0 0-.468-.306 3.572 3.572 0 0 0-.774-.126v-.72h5.778c1.812 0 3.204.294 4.176.882.984.576 1.476 1.404 1.476 2.484 0 1.428-1.026 2.436-3.078 3.024v.072c.66 0 1.254.096 1.782.288.54.18.996.438 1.368.774a3.523 3.523 0 0 1 1.17 2.682c0 .612-.15 1.146-.45 1.602-.288.456-.708.84-1.26 1.152-1.068.6-2.538.9-4.41.9h-6.93zm7.056-1.098c1.932 0 2.898-.87 2.898-2.61 0-1.068-.348-1.848-1.044-2.34-.36-.252-.828-.432-1.404-.54-.564-.108-1.26-.162-2.088-.162h-.864v3.6c0 .744.192 1.272.576 1.584.384.312 1.026.468 1.926.468zM71.6 84.17c.54 0 1.008-.048 1.404-.144a3.249 3.249 0 0 0 1.008-.45c.576-.396.864-1.014.864-1.854 0-.876-.216-1.506-.648-1.89-.432-.396-1.128-.594-2.088-.594h-1.278c-.216 0-.324.102-.324.306v4.626H71.6zm14.325 2.7c-1.008.456-1.77.882-2.286 1.278-.504.384-.756.786-.756 1.206 0 .348.096.624.288.828a.948.948 0 0 0 .72.306c.288 0 .558-.048.81-.144.252-.108.468-.246.648-.414.18-.168.318-.366.414-.594.108-.24.162-.492.162-.756v-1.71zm0-.954v-.756c0-.696-.126-1.2-.378-1.512-.24-.324-.618-.486-1.134-.486-.348 0-.612.096-.792.288-.18.18-.348.486-.504.918-.108.3-.264.534-.468.702-.192.168-.462.252-.81.252-.336 0-.594-.102-.774-.306-.18-.204-.27-.492-.27-.864 0-.576.312-1.032.936-1.368.636-.336 1.59-.504 2.862-.504 1.344 0 2.304.246 2.88.738.576.48.864 1.29.864 2.43v3.942c0 1.02.204 1.53.612 1.53a.978.978 0 0 0 .63-.234l.27.522c-.168.3-.432.54-.792.72a2.7 2.7 0 0 1-1.188.252c-.552 0-.972-.168-1.26-.504-.288-.336-.432-.81-.432-1.422h-.09c-.348.624-.798 1.098-1.35 1.422-.552.324-1.182.486-1.89.486-.756 0-1.362-.21-1.818-.63-.456-.432-.684-.99-.684-1.674 0-.528.234-1.02.702-1.476.468-.468 1.248-.924 2.34-1.368l2.538-1.098zM91.6 92h-.558v-3.276h.756c.204.864.498 1.494.882 1.89.384.396.882.594 1.494.594.444 0 .786-.09 1.026-.27a.923.923 0 0 0 .378-.774c0-.336-.15-.66-.45-.972-.3-.324-.786-.666-1.458-1.026-.912-.492-1.566-.978-1.962-1.458a2.574 2.574 0 0 1-.594-1.656c0-.396.072-.762.216-1.098.156-.348.36-.648.612-.9.264-.252.576-.444.936-.576.36-.144.75-.216 1.17-.216.372 0 .738.054 1.098.162.372.108.696.258.972.45l.324-.432h.468v2.718h-.702c-.276-.684-.564-1.176-.864-1.476-.288-.3-.642-.45-1.062-.45-.336 0-.606.09-.81.27-.192.18-.288.42-.288.72 0 .336.144.654.432.954.3.3.792.63 1.476.99.48.264.894.522 1.242.774s.63.51.846.774c.216.252.372.522.468.81.108.276.162.576.162.9 0 .42-.078.798-.234 1.134a2.462 2.462 0 0 1-.666.864c-.288.24-.636.426-1.044.558-.396.132-.84.198-1.332.198-.516 0-.996-.066-1.44-.198-.444-.144-.81-.348-1.098-.612L91.6 92zm13.299-.72c.384 0 .654-.012.81-.036.156-.036.234-.102.234-.198 0-.072-.084-.246-.252-.522-.156-.288-.36-.618-.612-.99l-1.368-2.052-.9.864v.702c0 .468.018.846.054 1.134.036.288.096.516.18.684a.759.759 0 0 0 .378.324c.168.06.378.09.63.09V92h-5.31v-.72c.336-.012.606-.048.81-.108a.969.969 0 0 0 .486-.306c.12-.156.198-.366.234-.63a6.4 6.4 0 0 0 .072-1.062v-7.632c0-.732-.012-1.308-.036-1.728-.024-.42-.09-.732-.198-.936a.647.647 0 0 0-.468-.396 3.877 3.877 0 0 0-.846-.072v-.666l4.014-.684v10.008l1.728-1.638a28.697 28.697 0 0 0 1.332-1.314c.264-.3.396-.516.396-.648 0-.108-.114-.18-.342-.216-.216-.048-.624-.072-1.224-.072v-.72h4.914v.72c-.456 0-.858.078-1.206.234-.348.156-.726.426-1.134.81l-1.746 1.638 3.114 4.41c.276.384.546.648.81.792.264.144.612.216 1.044.216V92h-5.598v-.72zm14.737-.954c-1.092 1.236-2.454 1.854-4.086 1.854a5.787 5.787 0 0 1-2.034-.342c-.6-.24-1.116-.57-1.548-.99a4.592 4.592 0 0 1-1.008-1.53c-.24-.588-.36-1.242-.36-1.962 0-.744.126-1.422.378-2.034a4.619 4.619 0 0 1 1.062-1.602 5.01 5.01 0 0 1 1.638-1.062 5.62 5.62 0 0 1 2.088-.378c1.272 0 2.262.342 2.97 1.026.708.684 1.062 1.644 1.062 2.88 0 .192-.03.312-.09.36-.06.036-.228.054-.504.054h-5.796c-.048.108-.072.306-.072.594 0 1.176.252 2.106.756 2.79.516.684 1.212 1.026 2.088 1.026.504 0 1.002-.114 1.494-.342.504-.228.99-.552 1.458-.972l.504.63zm-3.492-4.734c.48 0 .786-.024.918-.072.144-.06.216-.192.216-.396 0-.528-.15-.96-.45-1.296a1.455 1.455 0 0 0-1.134-.504c-.516 0-.978.216-1.386.648-.396.42-.654.96-.774 1.62h2.61zm8.945 3.618c0 .468.018.84.054 1.116.048.264.138.468.27.612.132.144.324.24.576.288.252.036.588.054 1.008.054V92h-6.012v-.72c.36-.024.648-.06.864-.108.216-.048.378-.144.486-.288.108-.144.174-.348.198-.612.036-.276.054-.642.054-1.098v-2.196c0-.744-.018-1.338-.054-1.782-.036-.444-.114-.786-.234-1.026a.867.867 0 0 0-.522-.468c-.216-.084-.504-.126-.864-.126v-.63l3.6-.666.288 2.07h.072c.324-.636.75-1.14 1.278-1.512.528-.372 1.086-.558 1.674-.558.456 0 .828.114 1.116.342.288.228.432.516.432.864 0 .384-.114.708-.342.972-.216.264-.516.396-.9.396-.18 0-.342-.036-.486-.108a3.131 3.131 0 0 1-.396-.234 2.28 2.28 0 0 0-.342-.252.549.549 0 0 0-.342-.126c-.228 0-.444.15-.648.45-.204.3-.372.702-.504 1.206a9.68 9.68 0 0 0-.234 1.224c-.06.444-.09.888-.09 1.332v.864zm6.139-4.428a5.587 5.587 0 0 0-.378-.828 1.667 1.667 0 0 0-.378-.486.847.847 0 0 0-.414-.234 2.18 2.18 0 0 0-.522-.054v-.72h5.382v.72c-.3 0-.54.012-.72.036-.168.024-.3.06-.396.108a.328.328 0 0 0-.162.198.798.798 0 0 0-.036.252c0 .156.03.336.09.54.06.204.132.408.216.612l1.71 4.716h.072l1.926-4.698a6.35 6.35 0 0 0 .198-.54 1.66 1.66 0 0 0 .072-.45c0-.264-.09-.456-.27-.576-.18-.12-.498-.186-.954-.198v-.72h3.978v.72c-.324 0-.606.084-.846.252-.228.168-.468.54-.72 1.116l-3.366 7.632h-1.638l-2.844-7.398zm14.041 4.266c0 .48.018.864.054 1.152.036.288.108.51.216.666a.833.833 0 0 0 .468.324c.204.048.48.078.828.09V92h-5.67v-.72c.336-.012.606-.048.81-.108a.968.968 0 0 0 .486-.324c.12-.156.198-.366.234-.63.048-.276.072-.624.072-1.044V86.96c0-.696-.012-1.266-.036-1.71-.024-.456-.054-.768-.09-.936-.06-.3-.198-.498-.414-.594-.204-.096-.582-.144-1.134-.144v-.612l4.176-.684v6.768zm-2.646-10.584c0-.396.132-.726.396-.99a1.35 1.35 0 0 1 .99-.414c.396 0 .726.138.99.414.276.264.414.594.414.99 0 .384-.138.714-.414.99a1.343 1.343 0 0 1-.99.396c-.384 0-.714-.132-.99-.396a1.382 1.382 0 0 1-.396-.99zm8.969 10.584c0 .48.018.864.054 1.152.036.288.108.51.216.666a.833.833 0 0 0 .468.324c.204.048.48.078.828.09V92h-5.67v-.72c.336-.012.606-.048.81-.108a.968.968 0 0 0 .486-.324c.12-.156.198-.366.234-.63.048-.276.072-.624.072-1.044V81.74c0-.696-.012-1.266-.036-1.71-.024-.456-.054-.768-.09-.936-.06-.3-.198-.498-.414-.594-.204-.096-.582-.144-1.134-.144v-.612l4.176-.684v11.988zm6.399 0c0 .48.018.864.054 1.152.036.288.108.51.216.666a.833.833 0 0 0 .468.324c.204.048.48.078.828.09V92h-5.67v-.72c.336-.012.606-.048.81-.108a.968.968 0 0 0 .486-.324c.12-.156.198-.366.234-.63.048-.276.072-.624.072-1.044V81.74c0-.696-.012-1.266-.036-1.71-.024-.456-.054-.768-.09-.936-.06-.3-.198-.498-.414-.594-.204-.096-.582-.144-1.134-.144v-.612l4.176-.684v11.988zm11.672 1.278c-1.092 1.236-2.454 1.854-4.086 1.854a5.787 5.787 0 0 1-2.034-.342c-.6-.24-1.116-.57-1.548-.99a4.592 4.592 0 0 1-1.008-1.53c-.24-.588-.36-1.242-.36-1.962 0-.744.126-1.422.378-2.034a4.619 4.619 0 0 1 1.062-1.602 5.01 5.01 0 0 1 1.638-1.062 5.62 5.62 0 0 1 2.088-.378c1.272 0 2.262.342 2.97 1.026.708.684 1.062 1.644 1.062 2.88 0 .192-.03.312-.09.36-.06.036-.228.054-.504.054h-5.796c-.048.108-.072.306-.072.594 0 1.176.252 2.106.756 2.79.516.684 1.212 1.026 2.088 1.026.504 0 1.002-.114 1.494-.342.504-.228.99-.552 1.458-.972l.504.63zm-3.492-4.734c.48 0 .786-.024.918-.072.144-.06.216-.192.216-.396 0-.528-.15-.96-.45-1.296a1.455 1.455 0 0 0-1.134-.504c-.516 0-.978.216-1.386.648-.396.42-.654.96-.774 1.62h2.61z",fill:"#FFF1E1"}));case"RUBIK_WORK":return Object(_.createElement)(y.SVG,{width:"232",height:"132",viewBox:"0 0 232 132",xmlns:"http://www.w3.org/2000/svg"},Object(_.createElement)(y.Path,{fill:"#000",d:"M0 0h232v132H0z"}),Object(_.createElement)(y.Path,{d:"M14.936 62c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912V29.696c0-.352.128-.656.384-.912s.56-.384.912-.384h14.208c4.608 0 8.208 1.04 10.8 3.12 2.592 2.048 3.888 4.896 3.888 8.544 0 2.08-.464 3.92-1.392 5.52-.928 1.568-2.192 2.864-3.792 3.888l5.904 10.944c.096.192.144.368.144.528 0 .288-.112.544-.336.768a.977.977 0 0 1-.72.288H33.8c-.576 0-1.04-.128-1.392-.384-.32-.288-.544-.592-.672-.912l-4.128-9.168H25.64v9.168c0 .352-.128.656-.384.912s-.56.384-.912.384h-9.408zm14.208-19.584c.704 0 1.248-.224 1.632-.672.384-.48.576-1.072.576-1.776s-.192-1.312-.576-1.824c-.352-.544-.896-.816-1.632-.816H25.64v5.088h3.504zM56.873 62.48c-1.696 0-3.248-.384-4.656-1.152-1.408-.8-2.544-2.016-3.408-3.648-.832-1.632-1.248-3.664-1.248-6.096V38.336c0-.352.128-.656.384-.912s.56-.384.912-.384h9.168c.352 0 .656.128.912.384s.384.56.384.912v12.912c0 .864.208 1.52.624 1.968.416.448 1.008.672 1.776.672s1.36-.224 1.776-.672c.416-.448.624-1.104.624-1.968V38.336c0-.352.128-.656.384-.912s.56-.384.912-.384h9.12c.352 0 .656.128.912.384s.384.56.384.912v22.368c0 .352-.128.656-.384.912s-.56.384-.912.384h-8.4c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912V59.12c-.768 1.12-1.84 1.968-3.216 2.544-1.376.544-2.96.816-4.752.816zm41.127 0c-3.04 0-5.408-.96-7.104-2.88v1.104c0 .352-.128.656-.384.912s-.56.384-.912.384h-8.16c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912V29.216c0-.352.128-.656.384-.912s.56-.384.912-.384h8.88c.352 0 .656.128.912.384s.384.56.384.912v9.6C93.28 37.312 95.408 36.56 98 36.56c2.912 0 5.296.944 7.152 2.832 1.888 1.856 2.896 4.592 3.024 8.208.032.48.048 1.104.048 1.872 0 .8-.016 1.44-.048 1.92-.16 3.808-1.152 6.608-2.976 8.4-1.824 1.792-4.224 2.688-7.2 2.688zm-3.984-8.592c.832 0 1.408-.224 1.728-.672.352-.448.576-1.152.672-2.112.064-.64.096-1.168.096-1.584 0-.416-.032-.944-.096-1.584-.096-.96-.32-1.664-.672-2.112-.32-.448-.896-.672-1.728-.672-.8 0-1.392.208-1.776.624-.352.384-.56.976-.624 1.776-.032.48-.048 1.072-.048 1.776s.016 1.296.048 1.776c.064.928.272 1.632.624 2.112.352.448.944.672 1.776.672zM113.415 34.4c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912v-5.808c0-.352.128-.656.384-.912s.56-.384.912-.384h8.112c.352 0 .656.128.912.384s.384.56.384.912v5.808c0 .352-.128.656-.384.912s-.56.384-.912.384h-8.112zm-.24 27.6c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912V38.336c0-.352.128-.656.384-.912s.56-.384.912-.384h8.592c.352 0 .656.128.912.384s.384.56.384.912v22.368c0 .352-.128.656-.384.912s-.56.384-.912.384h-8.592zm15.515 0c-.352 0-.656-.128-.912-.384a1.246 1.246 0 0 1-.384-.912V29.216c0-.352.128-.656.384-.912s.56-.384.912-.384h8.4c.352 0 .656.128.912.384s.384.56.384.912v15.552l4.224-6.912c.32-.544.784-.816 1.392-.816h9.696c.32 0 .592.112.816.336.224.224.336.496.336.816 0 .224-.08.464-.24.72l-6.576 9.36 7.776 11.952c.128.192.192.4.192.624 0 .32-.112.592-.336.816a1.11 1.11 0 0 1-.816.336h-10.08c-.64 0-1.136-.272-1.488-.816l-4.896-8.16v7.68c0 .352-.128.656-.384.912s-.56.384-.912.384h-8.4zM25.4 105.48c-3.776 0-6.768-.88-8.976-2.64-2.208-1.76-3.312-4.16-3.312-7.2 0-1.952.56-3.664 1.68-5.136 1.12-1.472 2.72-2.8 4.8-3.984-1.216-1.312-2.096-2.528-2.64-3.648-.512-1.152-.768-2.32-.768-3.504 0-1.536.4-2.944 1.2-4.224.8-1.28 1.984-2.304 3.552-3.072 1.568-.768 3.456-1.152 5.664-1.152 2.048 0 3.824.384 5.328 1.152 1.536.736 2.688 1.744 3.456 3.024a7.494 7.494 0 0 1 1.2 4.128c0 1.856-.56 3.456-1.68 4.8-1.12 1.312-2.784 2.608-4.992 3.888l5.712 5.712c.512-.832.944-1.632 1.296-2.4.384-.8.768-1.84 1.152-3.12.128-.448.464-.672 1.008-.672h4.848c.256 0 .48.096.672.288.192.16.288.368.288.624-.032 1.12-.56 2.64-1.584 4.56-.992 1.92-2.096 3.616-3.312 5.088l5.376 5.424c.224.288.336.528.336.72a.774.774 0 0 1-.288.624.844.844 0 0 1-.624.24h-6.528c-.512 0-.928-.16-1.248-.48l-2.16-2.064c-2.464 2.016-5.616 3.024-9.456 3.024zm.432-21.984c1.28-.64 2.24-1.264 2.88-1.872.672-.608 1.008-1.328 1.008-2.16 0-.864-.304-1.552-.912-2.064-.576-.544-1.312-.816-2.208-.816a3.31 3.31 0 0 0-2.208.816c-.608.544-.912 1.248-.912 2.112 0 .576.176 1.184.528 1.824.384.608.992 1.328 1.824 2.16zM25.4 99.384c1.984 0 3.632-.592 4.944-1.776l-6.384-6.384c-2.112 1.12-3.168 2.48-3.168 4.08 0 1.216.464 2.208 1.392 2.976.928.736 2 1.104 3.216 1.104zM65.56 105h-3.168l-6.24-21.12h2.752l5.088 19.104 4.992-19.104h2.912l4.992 19.168 5.12-19.168H84.6L78.392 105h-3.168L71.48 91.304l-1.088-4.768h-.032l-1.088 4.768L65.56 105zm28.824-16.32c2.41 0 4.299.736 5.664 2.208 1.387 1.472 2.08 3.51 2.08 6.112 0 2.603-.693 4.64-2.08 6.112-1.365 1.472-3.253 2.208-5.664 2.208-2.41 0-4.31-.736-5.696-2.208-1.365-1.472-2.048-3.51-2.048-6.112 0-2.603.683-4.64 2.048-6.112 1.387-1.472 3.286-2.208 5.696-2.208zm0 2.208c-1.621 0-2.89.544-3.808 1.632C89.66 93.608 89.2 95.101 89.2 97c0 1.899.459 3.392 1.376 4.48.918 1.088 2.187 1.632 3.808 1.632 1.622 0 2.89-.544 3.808-1.632.918-1.088 1.376-2.581 1.376-4.48 0-1.899-.458-3.392-1.376-4.48-.917-1.088-2.186-1.632-3.808-1.632zm20.269-2.208c.768 0 1.355.107 1.76.32l-.512 2.496c-.512-.277-1.184-.416-2.016-.416-.683 0-1.355.203-2.016.608-.64.384-1.173.981-1.6 1.792-.405.79-.608 1.75-.608 2.88V105h-2.56V89h2.08l.352 2.624c.896-1.963 2.603-2.944 5.12-2.944zm11.463 8.416l-3.392 3.392V105h-2.56V81.64h2.56v15.648L131.012 89h3.2l-6.24 6.24 6.624 9.76h-3.104l-5.376-7.904zm29.655-13.536c3.776 0 6.496 1.493 8.16 4.48l-2.208 1.792c-.64-1.408-1.408-2.4-2.304-2.976-.874-.597-2.08-.896-3.616-.896-1.621 0-2.901.341-3.84 1.024-.917.661-1.376 1.515-1.376 2.56 0 .683.182 1.248.544 1.696.363.448.96.843 1.792 1.184.854.32 2.027.608 3.52.864 2.795.47 4.768 1.173 5.92 2.112 1.174.939 1.76 2.24 1.76 3.904 0 1.195-.341 2.251-1.024 3.168-.661.896-1.61 1.6-2.848 2.112-1.237.491-2.666.736-4.288.736-2.133 0-3.957-.416-5.472-1.248-1.493-.832-2.634-1.941-3.424-3.328l2.208-1.792c.576 1.259 1.419 2.24 2.528 2.944 1.131.683 2.539 1.024 4.224 1.024 1.664 0 2.987-.299 3.968-.896.982-.619 1.472-1.483 1.472-2.592 0-.939-.426-1.685-1.28-2.24-.853-.555-2.368-1.024-4.544-1.408-2.816-.49-4.81-1.195-5.984-2.112-1.173-.917-1.76-2.197-1.76-3.84 0-1.13.32-2.176.96-3.136.64-.96 1.558-1.717 2.752-2.272 1.195-.576 2.582-.864 4.16-.864zm26.044 19.584a5.25 5.25 0 0 0 1.28-.16l-.16 2.016a5.68 5.68 0 0 1-1.92.32c-.832 0-1.494-.181-1.984-.544-.47-.363-.768-.971-.896-1.824-.491.747-1.216 1.333-2.176 1.76a7.435 7.435 0 0 1-2.976.608c-1.579 0-2.88-.363-3.904-1.088-1.024-.747-1.536-1.813-1.536-3.2 0-1.216.533-2.261 1.6-3.136 1.066-.896 2.613-1.515 4.64-1.856l4.256-.704v-.896c0-1.067-.331-1.92-.992-2.56-.662-.64-1.579-.96-2.752-.96-1.067 0-1.995.256-2.784.768-.768.512-1.366 1.27-1.792 2.272l-1.888-1.376c.426-1.195 1.216-2.144 2.368-2.848 1.173-.704 2.538-1.056 4.096-1.056 1.898 0 3.424.459 4.576 1.376 1.152.917 1.728 2.272 1.728 4.064v7.872c0 .384.096.672.288.864.192.192.501.288.928.288zm-8.704-.064c1.344 0 2.496-.32 3.456-.96.981-.64 1.472-1.472 1.472-2.496v-2.208l-3.584.672c-1.43.256-2.496.63-3.2 1.12-.704.47-1.056 1.077-1.056 1.824 0 .661.256 1.173.768 1.536.512.341 1.226.512 2.144.512zm21.485-14.4c1.813 0 3.306.523 4.48 1.568 1.173 1.045 1.76 2.55 1.76 4.512V105h-2.56v-9.344c0-1.664-.363-2.87-1.088-3.616-.704-.747-1.654-1.12-2.848-1.12-.854 0-1.654.192-2.4.576-.747.363-1.366.97-1.856 1.824-.47.832-.704 1.888-.704 3.168V105h-2.56V89h2.24l.16 2.496c.533-.96 1.269-1.664 2.208-2.112.938-.47 1.994-.704 3.168-.704zm17.476 16.64c-1.536 0-2.922-.299-4.16-.896-1.237-.619-2.144-1.525-2.72-2.72l2.08-1.44a3.898 3.898 0 0 0 1.888 2.112c.896.469 1.952.704 3.168.704 1.259 0 2.219-.224 2.88-.672.662-.448.992-1.013.992-1.696 0-.619-.309-1.11-.928-1.472-.618-.384-1.706-.715-3.264-.992-1.536-.277-2.752-.608-3.648-.992-.896-.405-1.546-.907-1.952-1.504-.405-.619-.608-1.376-.608-2.272 0-.875.256-1.675.768-2.4.512-.725 1.248-1.301 2.208-1.728.96-.448 2.07-.672 3.328-.672 1.707 0 3.072.32 4.096.96 1.046.619 1.792 1.579 2.24 2.88l-2.176 1.28c-.341-1.024-.864-1.76-1.568-2.208-.682-.448-1.546-.672-2.592-.672-1.045 0-1.93.235-2.656.704-.725.47-1.088 1.013-1.088 1.632 0 .704.31 1.248.928 1.632.64.384 1.771.715 3.392.992 2.219.363 3.787.907 4.704 1.632.918.725 1.376 1.75 1.376 3.072a3.95 3.95 0 0 1-.832 2.464c-.533.704-1.312 1.259-2.336 1.664-1.002.405-2.176.608-3.52.608z",fill:"#fff"}));case"PLAY_ROBOTO":return Object(_.createElement)(y.SVG,{width:"232",height:"132",viewBox:"0 0 232 132",xmlns:"http://www.w3.org/2000/svg"},Object(_.createElement)(y.Path,{fill:"#B9B5B8",d:"M0 0h232v132H0z"}),Object(_.createElement)(y.Path,{d:"M149.438 101c-.75-2.125-1.23-5.27-1.438-9.438-2.625 3.417-5.979 6.063-10.062 7.938-4.042 1.833-8.334 2.75-12.876 2.75-6.5 0-11.77-1.812-15.812-5.438-4-3.624-6-8.208-6-13.75 0-6.583 2.729-11.791 8.188-15.624 5.5-3.834 13.145-5.75 22.937-5.75h13.563V54c0-4.833-1.5-8.625-4.5-11.375-2.959-2.792-7.292-4.188-13-4.188-5.209 0-9.521 1.334-12.938 4-3.417 2.667-5.125 5.876-5.125 9.626l-7.5-.063c0-5.375 2.5-10.02 7.5-13.938 5-3.958 11.146-5.937 18.437-5.937 7.542 0 13.48 1.896 17.813 5.688 4.375 3.75 6.625 9 6.75 15.75v32c0 6.541.687 11.437 2.063 14.687v.75h-8zm-23.5-5.375c5 0 9.458-1.208 13.374-3.625 3.959-2.417 6.834-5.646 8.626-9.688V67.439h-13.376c-7.458.083-13.291 1.458-17.5 4.124-4.208 2.626-6.312 6.25-6.312 10.876 0 3.791 1.396 6.937 4.188 9.437 2.833 2.5 6.5 3.75 11 3.75zM39.328 101.896c-5.461 0-9.6-1.451-12.416-4.352-2.73-2.987-4.096-6.699-4.096-11.136 0-3.84.981-6.997 2.944-9.472 2.048-2.56 4.437-4.523 7.168-5.888 2.73-1.365 6.272-2.773 10.624-4.224 4.608-1.536 7.979-2.944 10.112-4.224 2.133-1.28 3.2-3.072 3.2-5.376V45.832c0-2.73-.683-5.163-2.048-7.296s-3.712-3.2-7.04-3.2c-2.645 0-5.035.725-7.168 2.176 2.901 1.024 5.035 2.56 6.4 4.608 1.45 1.963 2.176 4.181 2.176 6.656 0 3.328-1.195 6.016-3.584 8.064-2.304 1.963-5.12 2.944-8.448 2.944-3.328 0-5.973-1.024-7.936-3.072-1.877-2.133-2.816-4.821-2.816-8.064 0-2.56.64-4.779 1.92-6.656 1.28-1.877 3.285-3.584 6.016-5.12 4.779-2.73 11.605-4.096 20.48-4.096 4.693 0 8.747.47 12.16 1.408 3.413.853 6.315 2.517 8.704 4.992 1.707 1.792 2.816 4.053 3.328 6.784.597 2.645.896 6.357.896 11.136V91.4c0 2.133.128 3.584.384 4.352.341.768.896 1.152 1.664 1.152.597 0 1.237-.17 1.92-.512a15.863 15.863 0 0 0 1.92-1.408l1.28 2.176c-3.67 3.157-8.917 4.736-15.744 4.736-5.12 0-8.704-.853-10.752-2.56-2.048-1.792-3.157-4.181-3.328-7.168-4.01 6.485-9.984 9.728-17.92 9.728zm12.8-10.24c1.792 0 3.37-.725 4.736-2.176V62.472c-.768 1.28-2.176 2.944-4.224 4.992-2.304 2.219-4.053 4.395-5.248 6.528-1.195 2.048-1.792 4.864-1.792 8.448 0 6.144 2.176 9.216 6.528 9.216z",fill:"#270920"}));default:return Object(_.createElement)("div",{className:"font-pairings-panel__preview"},Object(_.createElement)("h1",{style:{fontFamily:t}},"Lorem Ipsum"),Object(_.createElement)("p",{style:{fontFamily:c}},"Etiam tempor orci eu lobortis elementum nibh tellus molestie."))}},M=function(e){var t=e.fontPairings,c=e.fontBase,n=e.fontHeadings,a=e.update;return Object(_.createElement)(_.Fragment,null,Object(_.createElement)("h3",null,Object(w.__)("Font Pairings","full-site-editing")),t&&n&&c?Object(_.createElement)("div",{role:"listbox"},t.map((function(e){var t=e.label,r=e.headings,l=e.base,o=e.preview,i=r===n&&l===c,s=S()("font-pairings-panel",{"is-selected":i});return Object(_.createElement)("div",{key:t,tabIndex:0,role:"option","aria-selected":i,className:s,onClick:function(){return a({headings:r,base:l})},onKeyDown:function(e){return e.keyCode===P.ENTER?a({headings:r,base:l}):null}},Object(_.createElement)("div",{className:"font-pairings-panel__preview"},x(o,r,l)),Object(_.createElement)("p",{className:"font-pairings-panel__label"},t))}))):Object(_.createElement)(H,{unsupportedFeature:Object(w.__)("font pairings","full-site-editing")}))},B=function(e){var t=e.fontBase,c=e.fontBaseDefault,n=e.fontHeadings,a=e.fontHeadingsDefault,r=e.fontBaseOptions,l=e.fontHeadingsOptions,o=e.updateBaseFont,i=e.updateHeadingsFont;return r&&l?Object(_.createElement)(_.Fragment,null,Object(_.createElement)(y.SelectControl,{label:Object(w.__)("Heading Font","full-site-editing"),value:n,options:l,onChange:function(e){return i(e)},style:{fontFamily:"unset"!==n?n:a}}),Object(_.createElement)(y.SelectControl,{label:Object(w.__)("Base Font","full-site-editing"),value:t,options:r,onChange:function(e){return o(e)},style:{fontFamily:"unset"!==t?t:c}}),Object(_.createElement)("hr",null)):Object(_.createElement)(H,{unsupportedFeature:Object(w.__)("custom font selection","full-site-editing")})},T=function(){return Object(_.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(_.createElement)(y.Path,{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z"}))},L="font_base",N="font_headings",C="ANY_PROPERTY",F=function(e){if("object"==typeof e){var t=e.label,c=e.value,n=e.prop;return{label:t,value:c,prop:void 0===n?C:n}}return{label:e,value:e,prop:C}},I=function(e){return null!==e.value&&null!==e.label},A=function(e,t){return e?e.map(F).filter(I).filter(function(e){return function(t){return t.prop===C||t.prop===e}}(t)):[]},R=function(e){var t=e.hasLocalChanges,c=e.resetAction,n=e.publishAction,a=e.className,r=void 0===a?null:a;return Object(_.createElement)("div",{className:r},Object(_.createElement)(y.Button,{disabled:!t,isDefault:!0,onClick:c},Object(w.__)("Reset","full-site-editing")),Object(_.createElement)(y.Button,{className:"global-styles-sidebar__publish-button",disabled:!t,isPrimary:!0,onClick:n},Object(w.__)("Publish","full-site-editing")))},D=(c(14),JETPACK_GLOBAL_STYLES_EDITOR_CONSTANTS),k=D.PLUGIN_NAME,G=D.STORE_NAME,U=D.REST_PATH;n=G,a=U,Object(i.registerStore)(n,{reducer:function(e,t){switch(t.type){case"UPDATE_OPTIONS":case"RESET_OPTIONS":case"PUBLISH_OPTIONS":return h()(h()({},e),t.options)}return e},actions:O,selectors:{getOption:function(e,t){return e?e[t]:void 0},hasLocalChanges:function(e){return!!e&&Object.keys(v).some((function(t){return v[t]!==e[t]}))}},resolvers:{getOption:regeneratorRuntime.mark((function e(t){var c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,b=!0,e.next=6,O.fetchOptions();case 6:c=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),c={};case 12:return v=c,e.abrupt("return",{type:"UPDATE_OPTIONS",options:c});case 14:case"end":return e.stop()}}),e,null,[[2,9]])}))},controls:{IO_FETCH_OPTIONS:function(){return p()({path:a})},IO_PUBLISH_OPTIONS:function(e){var t=e.options;return v=t,p()({path:a,method:"POST",data:h()({},t)})}}}),r=[L,N],l=Object(i.select)(G).getOption,d()((function(){var e={},t={},c={};r.forEach((function(e){c[e]="--".concat(e.replace("_","-"))}));var n=null;Object(i.subscribe)((function(){var a=Object(i.select)("core/editor").__unstableIsEditorReady;if(!(a&&!1===a()||(n||(n=document.createElement("style"),document.body.appendChild(n)),r.forEach((function(t){e[t]=l(t)})),Object(g.isEmpty)(e)||Object(g.isEqual)(e,t)))){t=h()({},e);var o="";Object.keys(e).forEach((function(t){o+="".concat(c[t],":").concat(e[t],";")})),n.textContent=".edit-post-visual-editor.editor-styles-wrapper{".concat(o,"}")}}))})),Object(o.registerPlugin)(k,{render:Object(s.compose)(Object(i.withSelect)((function(e){return{siteName:e(G).getOption("blogname"),fontHeadings:e(G).getOption(N),fontHeadingsDefault:e(G).getOption("font_headings_default"),fontBase:e(G).getOption(L),fontBaseDefault:e(G).getOption("font_base_default"),fontPairings:e(G).getOption("font_pairings"),fontOptions:e(G).getOption("font_options"),hasLocalChanges:e(G).hasLocalChanges()}})),Object(i.withDispatch)((function(e){return{updateOptions:e(G).updateOptions,publishOptions:e(G).publishOptions,resetLocalChanges:e(G).resetLocalChanges}})))((function(e){var t=e.fontHeadings,c=e.fontHeadingsDefault,n=e.fontBase,a=e.fontBaseDefault,r=e.fontPairings,l=e.fontOptions,o=e.siteName,i=e.publishOptions,s=e.updateOptions,u=e.hasLocalChanges,h=e.resetLocalChanges,f=function(){var e;return i((e={},E()(e,L,n),E()(e,N,t),e))};return Object(_.createElement)(_.Fragment,null,Object(_.createElement)(z.PluginSidebarMoreMenuItem,{icon:Object(_.createElement)(T,null),target:"global-styles"},Object(w.__)("Global Styles","full-site-editing")),Object(_.createElement)(z.PluginSidebar,{icon:Object(_.createElement)(T,null),name:"global-styles",title:Object(w.__)("Global Styles","full-site-editing"),className:"global-styles-sidebar"},Object(_.createElement)(y.PanelBody,null,Object(_.createElement)("p",null,Object(w.sprintf)(Object(w.__)("You are customizing %s.","full-site-editing"),o)),Object(_.createElement)("p",null,Object(w.__)("Any change you make here will apply to the entire website.","full-site-editing")),u?Object(_.createElement)("div",null,Object(_.createElement)("p",null,Object(_.createElement)("em",null,Object(w.__)("You have unsaved changes.","full-site-editing"))),Object(_.createElement)(R,{hasLocalChanges:u,publishAction:f,resetAction:h})):null),Object(_.createElement)(y.PanelBody,{title:Object(w.__)("Font Selection","full-site-editing")},Object(_.createElement)(B,{fontBase:n,fontBaseDefault:a,fontHeadings:t,fontHeadingsDefault:c,fontBaseOptions:A(l,L),fontHeadingsOptions:A(l,N),updateBaseFont:function(e){return s(E()({},L,e))},updateHeadingsFont:function(e){return s(E()({},N,e))}}),Object(_.createElement)(M,{fontHeadings:t,fontBase:n,fontPairings:r,update:function(e){var t,c=e.headings,n=e.base;return s((t={},E()(t,N,c),E()(t,L,n),t))}})),Object(_.createElement)(y.PanelBody,null,u?Object(_.createElement)("p",null,Object(_.createElement)("em",null,Object(w.__)("You have unsaved changes.","full-site-editing"))):null,Object(_.createElement)(R,{hasLocalChanges:u,publishAction:f,resetAction:h,className:"global-styles-sidebar__panel-action-buttons"}))))}))})}]));
|
jetpack-timeline/dist/jetpack-timeline.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'aed0cb09cb23debe6b4d35371d0b557d');
|
mailerlite/subscriber-popup.php
CHANGED
@@ -14,10 +14,10 @@ class WPCOM_Widget_Mailerlite extends \WP_Widget {
|
|
14 |
parent::__construct(
|
15 |
'wpcom-mailerlite',
|
16 |
/** This filter is documented in modules/widgets/facebook-likebox.php */
|
17 |
-
apply_filters( 'jetpack_widget_name', __( 'Mailerlite subscriber popup', '
|
18 |
array(
|
19 |
'classname' => 'widget_mailerlite',
|
20 |
-
'description' => __( 'Display Mailerlite subscriber popup', '
|
21 |
'customize_selective_refresh' => true,
|
22 |
)
|
23 |
);
|
@@ -39,7 +39,7 @@ class WPCOM_Widget_Mailerlite extends \WP_Widget {
|
|
39 |
echo '<p>' . sprintf(
|
40 |
wp_kses(
|
41 |
/* translators: %1$s - URL to manage the widget, %2$s - documentation URL. */
|
42 |
-
__( 'You need to enter your numeric account ID and UUID for the <a href="%1$s">Mailerlite Widget</a> to work correctly. <a href="%2$s" target="_blank">Full instructions</a>.', '
|
43 |
array(
|
44 |
'a' => array(
|
45 |
'href' => array(),
|
@@ -110,10 +110,10 @@ class WPCOM_Widget_Mailerlite extends \WP_Widget {
|
|
110 |
echo '
|
111 |
<p><label for="' . esc_attr( $this->get_field_id( 'account' ) ) . '">';
|
112 |
/* translators: link to documentation */
|
113 |
-
printf( wp_kses_post( __( 'Account ID <a href="%s" target="_blank">(instructions)</a>:', '
|
114 |
echo '<input class="widefat" id="' . esc_attr( $this->get_field_id( 'account' ) ) . '" name="' . esc_attr( $this->get_field_name( 'account' ) ) . '" type="text" value="' . esc_attr( $instance['account'] ) . '" />
|
115 |
</label></p>
|
116 |
-
<p><label for="' . esc_attr( $this->get_field_id( 'shelf' ) ) . '">' . esc_html__( 'UUID:', '
|
117 |
echo '<input class="widefat" id="' . esc_attr( $this->get_field_id( 'uuid' ) ) . '" name="' . esc_attr( $this->get_field_name( 'uuid' ) ) . '" type="text" value="' . esc_attr( $instance['uuid'] ) . '" />';
|
118 |
echo '</label></p>
|
119 |
';
|
@@ -127,4 +127,3 @@ function mailerlite_register_widget() {
|
|
127 |
register_widget( '\A8C\FSE\Mailerlite\WPCOM_Widget_Mailerlite' );
|
128 |
}
|
129 |
add_action( 'widgets_init', '\A8C\FSE\Mailerlite\mailerlite_register_widget' );
|
130 |
-
|
14 |
parent::__construct(
|
15 |
'wpcom-mailerlite',
|
16 |
/** This filter is documented in modules/widgets/facebook-likebox.php */
|
17 |
+
apply_filters( 'jetpack_widget_name', __( 'Mailerlite subscriber popup', 'full-site-editing' ) ),
|
18 |
array(
|
19 |
'classname' => 'widget_mailerlite',
|
20 |
+
'description' => __( 'Display Mailerlite subscriber popup', 'full-site-editing' ),
|
21 |
'customize_selective_refresh' => true,
|
22 |
)
|
23 |
);
|
39 |
echo '<p>' . sprintf(
|
40 |
wp_kses(
|
41 |
/* translators: %1$s - URL to manage the widget, %2$s - documentation URL. */
|
42 |
+
__( 'You need to enter your numeric account ID and UUID for the <a href="%1$s">Mailerlite Widget</a> to work correctly. <a href="%2$s" target="_blank">Full instructions</a>.', 'full-site-editing' ),
|
43 |
array(
|
44 |
'a' => array(
|
45 |
'href' => array(),
|
110 |
echo '
|
111 |
<p><label for="' . esc_attr( $this->get_field_id( 'account' ) ) . '">';
|
112 |
/* translators: link to documentation */
|
113 |
+
printf( wp_kses_post( __( 'Account ID <a href="%s" target="_blank">(instructions)</a>:', 'full-site-editing' ) ), 'https://wordpress.com/support/widgets/mailerlite' );
|
114 |
echo '<input class="widefat" id="' . esc_attr( $this->get_field_id( 'account' ) ) . '" name="' . esc_attr( $this->get_field_name( 'account' ) ) . '" type="text" value="' . esc_attr( $instance['account'] ) . '" />
|
115 |
</label></p>
|
116 |
+
<p><label for="' . esc_attr( $this->get_field_id( 'shelf' ) ) . '">' . esc_html__( 'UUID:', 'full-site-editing' );
|
117 |
echo '<input class="widefat" id="' . esc_attr( $this->get_field_id( 'uuid' ) ) . '" name="' . esc_attr( $this->get_field_name( 'uuid' ) ) . '" type="text" value="' . esc_attr( $instance['uuid'] ) . '" />';
|
118 |
echo '</label></p>
|
119 |
';
|
127 |
register_widget( '\A8C\FSE\Mailerlite\WPCOM_Widget_Mailerlite' );
|
128 |
}
|
129 |
add_action( 'widgets_init', '\A8C\FSE\Mailerlite\mailerlite_register_widget' );
|
|
newspack-blocks/dist/blog-posts-block-editor.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '2815ed4247c594e6093f8317d26e19cd');
|
newspack-blocks/dist/blog-posts-block-editor.js
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o)&&o.length){var c=i.apply(null,o);c&&e.push(c)}else if("object"===r)for(var a in o)n.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(o=function(){return i}.apply(t,[]))||(e.exports=o)}()},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}},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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){function n(t,o){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,o)}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 o=n(29),i=n(4);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?i(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,n){var o=n(22);e.exports=function(e){if(Array.isArray(e))return o(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 o=n(22);e.exports=function(e,t){if(e){if("string"==typeof e)return o(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)?o(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,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o=n(5),i=n.n(o),r=n(16),c=n(1),a=n(17),l=n(0),s=n(2),u=n(12),f=n.n(u),p=n(18),d=n.n(p),g=n(4),h=n.n(g),b=n(13),m=n.n(b),O=n(14),y=n.n(O),j=n(3),v=n.n(j),_=n(23),w=n.n(_),S=n(7),E=n.n(S),k=n(8),C=n(6),P=n(19),x=n.n(P),A=n(11),T=(n(34),function(e){m()(n,e);var t=y()(n);function n(e){var o;return f()(this,n),o=t.call(this,e),v()(h()(o),"isFetchingInfoOnLoad",(function(){var e=o.props,t=e.tokens,n=e.fetchSavedInfo;return Boolean(t.length&&n)})),o.state={suggestions:[],validValues:{},loading:o.isFetchingInfoOnLoad()},o.debouncedUpdateSuggestions=Object(A.debounce)(o.updateSuggestions,500),o}return d()(n,[{key:"componentDidMount",value:function(){var e=this;if(this.isFetchingInfoOnLoad()){var t=this.props,n=t.tokens;(0,t.fetchSavedInfo)(n).then((function(t){var n=e.state.validValues;t.forEach((function(e){n[e.value]=e.label})),e.setState({validValues:n,loading:!1})}))}}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}},{key:"getLabelsForValues",value:function(e){var t=this.state.validValues;return e.reduce((function(e,n){return t[n]?[].concat(x()(e),[t[n]]):e}),[])}},{key:"getValuesForLabels",value:function(e){var t=this.state.validValues;return e.map((function(e){return Object.keys(t).find((function(n){return t[n]===e}))}))}},{key:"updateSuggestions",value:function(e){var t=this,n=this.props.fetchSuggestions;n&&this.setState({loading:!0},(function(){var o=n(e);o.then((function(e){if(t.suggestionsRequest===o){var n=t.state.validValues,i=[];e.forEach((function(e){i.push(e.label),n[e.value]=e.label})),t.setState({suggestions:i,validValues:n,loading:!1})}})).catch((function(){t.suggestionsRequest===o&&t.setState({loading:!1})})),t.suggestionsRequest=o}))}},{key:"handleOnChange",value:function(e){(0,this.props.onChange)(this.getValuesForLabels(e))}},{key:"getTokens",value:function(){var e=this.props.tokens;return this.getLabelsForValues(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.help,o=t.label,i=void 0===o?"":o,r=this.state,c=r.suggestions,a=r.loading;return Object(l.createElement)("div",{className:"autocomplete-tokenfield"},Object(l.createElement)(s.FormTokenField,{value:this.getTokens(),suggestions:c,onChange:function(t){return e.handleOnChange(t)},onInputChange:function(t){return e.debouncedUpdateSuggestions(t)},label:i}),a&&Object(l.createElement)(s.Spinner,null),n&&Object(l.createElement)("p",{className:"autocomplete-tokenfield__help"},n))}}]),n}(l.Component)),I=function(e){m()(n,e);var t=y()(n);function n(){var e;f()(this,n);for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return e=t.call.apply(t,[this].concat(i)),v()(h()(e),"state",{showAdvancedFilters:!1}),v()(h()(e),"fetchPostSuggestions",(function(e){return E()({path:Object(k.addQueryArgs)("/wp/v2/search",{search:e,per_page:20,_fields:"id,title",type:"post"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.title)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"fetchSavedPosts",(function(e){return E()({path:Object(k.addQueryArgs)("/wp/v2/posts",{per_page:100,include:e.join(","),_fields:"id,title"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.title.rendered)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"fetchAuthorSuggestions",(function(e){return E()({path:Object(k.addQueryArgs)("/wp/v2/users",{search:e,per_page:20,_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no name)","full-site-editing")}}))}))})),v()(h()(e),"fetchSavedAuthors",(function(e){return E()({path:Object(k.addQueryArgs)("/wp/v2/users",{per_page:100,include:e.join(","),_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no name)","full-site-editing")}}))}))})),v()(h()(e),"fetchCategorySuggestions",(function(e){return E()({path:Object(k.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"fetchSavedCategories",(function(e){return E()({path:Object(k.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"fetchTagSuggestions",(function(e){return E()({path:Object(k.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"fetchSavedTags",(function(e){return E()({path:Object(k.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"render",(function(){var t=e.props,n=t.specificMode,o=t.onSpecificModeChange,i=t.specificPosts,r=t.onSpecificPostsChange,a=t.authors,u=t.onAuthorsChange,f=t.categories,p=t.onCategoriesChange,d=t.tags,g=t.onTagsChange,h=t.tagExclusions,b=t.onTagExclusionsChange,m=t.enableSpecific,O=e.state.showAdvancedFilters;return[m&&Object(l.createElement)(s.ToggleControl,{key:"specificMode",checked:n,onChange:o,label:Object(c.__)("Choose Specific Posts","full-site-editing")}),n&&Object(l.createElement)(T,{key:"posts",tokens:i||[],onChange:r,fetchSuggestions:e.fetchPostSuggestions,fetchSavedInfo:e.fetchSavedPosts,label:Object(c.__)("Posts","full-site-editing"),help:Object(c.__)("Begin typing post title, click autocomplete result to select.","full-site-editing")}),!n&&Object(l.createElement)(s.QueryControls,w()({key:"queryControls"},e.props)),!n&&u&&Object(l.createElement)(T,{key:"authors",tokens:a||[],onChange:u,fetchSuggestions:e.fetchAuthorSuggestions,fetchSavedInfo:e.fetchSavedAuthors,label:Object(c.__)("Authors","full-site-editing")}),!n&&p&&Object(l.createElement)(T,{key:"categories",tokens:f||[],onChange:p,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:Object(c.__)("Categories","full-site-editing")}),!n&&g&&Object(l.createElement)(T,{key:"tags",tokens:d||[],onChange:g,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:Object(c.__)("Tags","full-site-editing")}),!n&&b&&Object(l.createElement)("p",{key:"toggle-advanced-filters"},Object(l.createElement)(s.Button,{isLink:!0,onClick:function(){return e.setState({showAdvancedFilters:!O})}},O?Object(c.__)("Hide Advanced Filters","full-site-editing"):Object(c.__)("Show Advanced Filters","full-site-editing"))),!n&&b&&O&&Object(l.createElement)(T,{key:"tag-exclusion",tokens:h||[],onChange:b,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:Object(c.__)("Excluded Tags","full-site-editing")})]})),e}return n}(l.Component);I.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],tagExclusions:[]};var B,M=I,D=n(10),H=n(15),L=H.name,N={queryBlocks:[],postsByBlock:{},specificPostsByBlock:{}},R={updateBlocks:function(e){return{type:"UPDATE_BLOCKS",blocks:e}},markPostsAsDisplayed:function(e,t){return{type:"MARK_POSTS_DISPLAYED",clientId:e,posts:t}},markSpecificPostsAsDisplayed:function(e,t){return{type:"MARK_SPECIFIC_POSTS_DISPLAYED",clientId:e,posts:t}}},V={previousPostIds:function(e,t){var n,o,i,r=e.queryBlocks,c=e.specificPostsByBlock,a=e.postsByBlock,l=r.filter((function(e){var t=e.clientId;return c[t]})).flatMap((function(e){var t=e.clientId;return c[t].map((function(e){return e.id}))})),s=(n=r,o=t,i=n.findIndex((function(e){return e.clientId===o})),n.slice(0,i)).filter((function(e){var t=e.clientId;return a[t]})).flatMap((function(e){var t=e.clientId;return a[t].map((function(e){return e.id}))}));return Object(A.uniq)(l.concat(s)).sort()}},z=function(){return"object"==typeof window&&window.wpcomGutenberg&&-1===Number(window.wpcomGutenberg.blogPublic)},F=function(e){var t=e.specificMode,n=e.specificPosts;return t&&n&&n.length},q=function(e){return e.map((function(e){return Object(l.createElement)("span",{className:"avatar author-avatar",key:e.id},Object(l.createElement)("a",{className:"url fn n",href:e.author_link},Object(l.createElement)(l.RawHTML,null,e.avatar)))}))},G=function(e){return Object(l.createElement)("span",{className:"byline"},Object(c._x)("by","post author","full-site-editing")," ",e.reduce((function(t,n,o){return[].concat(x()(t),[Object(l.createElement)("span",{className:"author vcard",key:n.id},Object(l.createElement)("a",{className:"url fn n",href:n.author_link},n.display_name)),o<e.length-2&&", ",e.length>1&&o===e.length-2&&Object(c._x)(" and ","post author","full-site-editing")])}),[]))},Q=n(20),U=n.n(Q),K=n(21),Y=n(9),W=n(24);"object"==typeof window&&window.newspackIsPostSubtitleSupported&&window.newspackIsPostSubtitleSupported.post_subtitle&&(B=!0);var J=Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"})),X=Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"})),$=Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"})),Z=Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"})),ee=Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"})),te=function(e){m()(n,e);var t=y()(n);function n(){var e;f()(this,n);for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return e=t.call.apply(t,[this].concat(i)),v()(h()(e),"renderPost",(function(t){var n=e.props.attributes,o=n.showImage,i=n.imageShape,r=n.mediaPosition,c=n.minHeight,a=n.showCaption,s=n.showExcerpt,u=n.showSubtitle,f=n.showAuthor,p=n.showAvatar,d=n.showDate,g=n.showCategory,h=n.sectionHeader,b={minHeight:"behind"===r&&o&&t.newspack_featured_image_src&&c+"vh",paddingTop:"behind"===r&&o&&t.newspack_featured_image_src&&c/5+"vh"},m=U()({"post-has-image":t.newspack_featured_image_src},t.newspack_article_classes),O=e.titleForPost(t),y=Object(K.__experimentalGetSettings)().formats.date;return Object(l.createElement)("article",{className:m,key:t.id,style:b},o&&t.newspack_featured_image_src&&Object(l.createElement)("figure",{className:"post-thumbnail",key:"thumbnail"},Object(l.createElement)("a",{href:"#"},"landscape"===i&&Object(l.createElement)("img",{src:t.newspack_featured_image_src.landscape,alt:""}),"portrait"===i&&Object(l.createElement)("img",{src:t.newspack_featured_image_src.portrait,alt:""}),"square"===i&&Object(l.createElement)("img",{src:t.newspack_featured_image_src.square,alt:""}),"uncropped"===i&&Object(l.createElement)("img",{src:t.newspack_featured_image_src.uncropped,alt:""})),a&&""!==t.newspack_featured_image_caption&&Object(l.createElement)("figcaption",null,t.newspack_featured_image_caption)),Object(l.createElement)("div",{className:"entry-wrapper"},g&&t.newspack_category_info.length&&Object(l.createElement)("div",{className:"cat-links"},Object(l.createElement)("a",{href:"#"},Object(C.decodeEntities)(t.newspack_category_info))),Y.RichText.isEmpty(h)?Object(l.createElement)("h2",{className:"entry-title",key:"title"},Object(l.createElement)("a",{href:"#"},O)):Object(l.createElement)("h3",{className:"entry-title",key:"title"},Object(l.createElement)("a",{href:"#"},O)),B&&u&&Object(l.createElement)(l.RawHTML,{key:"subtitle",className:"newspack-post-subtitle newspack-post-subtitle--in-homepage-block"},t.meta.newspack_post_subtitle||""),s&&Object(l.createElement)(l.RawHTML,{key:"excerpt",className:"excerpt-contain"},t.excerpt.rendered),Object(l.createElement)("div",{className:"entry-meta"},f&&p&&q(t.newspack_author_info),f&&G(t.newspack_author_info),d&&Object(l.createElement)("time",{className:"entry-date published",key:"pub-date"},Object(K.dateI18n)(y,t.date_gmt)))))})),v()(h()(e),"titleForPost",(function(e){return e.title?"string"==typeof e.title?Object(C.decodeEntities)(e.title.trim()):"object"==typeof e.title&&e.title.rendered?Object(C.decodeEntities)(e.title.rendered.trim()):void 0:""})),v()(h()(e),"renderInspectorControls",(function(){var t=e.props,n=t.attributes,o=t.setAttributes,i=t.textColor,r=t.setTextColor,a=n.authors,u=n.specificPosts,f=n.postsToShow,p=n.categories,d=n.columns,g=n.showImage,h=n.showCaption,b=n.imageScale,m=n.mobileStack,O=n.minHeight,y=n.moreButton,j=n.showExcerpt,v=n.showSubtitle,_=n.typeScale,w=n.showDate,S=n.showAuthor,E=n.showAvatar,k=n.showCategory,C=n.postLayout,P=n.mediaPosition,x=n.specificMode,A=n.tags,T=n.tagExclusions,I=[{value:1,label:Object(c.__)("Small","full-site-editing"),shortName:Object(c.__)("S","full-site-editing")},{value:2,label:Object(c.__)("Medium","full-site-editing"),shortName:Object(c.__)("M","full-site-editing")},{value:3,label:Object(c.__)("Large","full-site-editing"),shortName:Object(c.__)("L","full-site-editing")},{value:4,label:Object(c.__)("Extra Large","full-site-editing"),shortName:Object(c.__)("XL","full-site-editing")}];return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(s.PanelBody,{title:Object(c.__)("Display Settings","full-site-editing"),initialOpen:!0},f&&Object(l.createElement)(M,{numberOfItems:f,onNumberOfItemsChange:function(e){return o({postsToShow:e})},specificMode:x,onSpecificModeChange:function(e){return o({specificMode:e})},specificPosts:u,onSpecificPostsChange:function(e){return o({specificPosts:e})},authors:a,onAuthorsChange:function(e){return o({authors:e})},categories:p,onCategoriesChange:function(e){return o({categories:e})},tags:A,onTagsChange:function(e){o({tags:e})},tagExclusions:T,onTagExclusionsChange:function(e){return o({tagExclusions:e})}}),"grid"===C&&Object(l.createElement)(s.RangeControl,{label:Object(c.__)("Columns","full-site-editing"),value:d,onChange:function(e){return o({columns:e})},min:2,max:6,required:!0}),!x&&!z()&&Object(l.createElement)(s.ToggleControl,{label:Object(c.__)('Show "More" Button',"full-site-editing"),checked:y,onChange:function(){return o({moreButton:!y})}})),Object(l.createElement)(s.PanelBody,{title:Object(c.__)("Featured Image Settings","full-site-editing")},Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Featured Image","full-site-editing"),checked:g,onChange:function(){return o({showImage:!g})}})),g&&Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Featured Image Caption","full-site-editing"),checked:h,onChange:function(){return o({showCaption:!h})}})),g&&"top"!==P&&"behind"!==P&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Stack on mobile","full-site-editing"),checked:m,onChange:function(){return o({mobileStack:!m})}})),Object(l.createElement)(s.BaseControl,{label:Object(c.__)("Featured Image Size","full-site-editing"),id:"newspackfeatured-image-size"},Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ButtonGroup,{id:"newspackfeatured-image-size","aria-label":Object(c.__)("Featured Image Size","full-site-editing")},I.map((function(e){var t=b===e.value;return Object(l.createElement)(s.Button,{isLarge:!0,isPrimary:t,"aria-pressed":t,"aria-label":e.label,key:e.value,onClick:function(){return o({imageScale:e.value})}},e.shortName)})))))),g&&"behind"===P&&Object(l.createElement)(s.RangeControl,{label:Object(c.__)("Minimum height","full-site-editing"),help:Object(c.__)("Sets a minimum height for the block, using a percentage of the screen's current height.","full-site-editing"),value:O,onChange:function(e){return o({minHeight:e})},min:0,max:100,required:!0})),Object(l.createElement)(s.PanelBody,{title:Object(c.__)("Post Control Settings","full-site-editing")},B&&Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Subtitle","full-site-editing"),checked:v,onChange:function(){return o({showSubtitle:!v})}})),Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Excerpt","full-site-editing"),checked:j,onChange:function(){return o({showExcerpt:!j})}})),Object(l.createElement)(s.RangeControl,{className:"type-scale-slider",label:Object(c.__)("Type Scale","full-site-editing"),value:_,onChange:function(e){return o({typeScale:e})},min:1,max:10,beforeIcon:"editor-textcolor",afterIcon:"editor-textcolor",required:!0})),Object(l.createElement)(Y.PanelColorSettings,{title:Object(c.__)("Color Settings","full-site-editing"),initialOpen:!0,colorSettings:[{value:i.color,onChange:r,label:Object(c.__)("Text Color","full-site-editing")}]}),Object(l.createElement)(s.PanelBody,{title:Object(c.__)("Post Meta Settings","full-site-editing")},Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Date","full-site-editing"),checked:w,onChange:function(){return o({showDate:!w})}})),Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Category","full-site-editing"),checked:k,onChange:function(){return o({showCategory:!k})}})),Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Author","full-site-editing"),checked:S,onChange:function(){return o({showAuthor:!S})}})),S&&Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Author Avatar","full-site-editing"),checked:E,onChange:function(){return o({showAvatar:!E})}}))))})),e}return d()(n,[{key:"render",value:function(){var e,t=this,n=this.props,o=n.attributes,i=n.className,r=n.clientId,a=n.setAttributes,u=n.isSelected,f=n.latestPosts,p=n.textColor,d=n.markPostsAsDisplayed,g=o.showImage,h=o.imageShape,b=o.postLayout,m=o.mediaPosition,O=o.moreButton,y=o.moreButtonText,j=o.columns,_=o.typeScale,w=o.imageScale,S=o.mobileStack,E=o.sectionHeader,k=o.showCaption,C=o.showCategory,P=o.specificMode,x=U()(i,(e={"is-grid":"grid"===b,"show-image":g},v()(e,"columns-".concat(j),"grid"===b),v()(e,"ts-".concat(_),"5"!==_),v()(e,"image-align".concat(m),g),v()(e,"is-".concat(w),"1"!==w&&g),v()(e,"mobile-stack",S),v()(e,"is-".concat(h),g),v()(e,"has-text-color",""!==p.color),v()(e,"show-caption",k),v()(e,"show-category",C),v()(e,"wpnbha",!0),e)),A=[{icon:"list-view",title:Object(c.__)("List View","full-site-editing"),onClick:function(){return a({postLayout:"list"})},isActive:"list"===b},{icon:"grid-view",title:Object(c.__)("Grid View","full-site-editing"),onClick:function(){return a({postLayout:"grid"})},isActive:"grid"===b}],T=[{icon:"align-none",title:Object(c.__)("Show media on top","full-site-editing"),isActive:"top"===m,onClick:function(){return a({mediaPosition:"top"})}},{icon:"align-pull-left",title:Object(c.__)("Show media on left","full-site-editing"),isActive:"left"===m,onClick:function(){return a({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(c.__)("Show media on right","full-site-editing"),isActive:"right"===m,onClick:function(){return a({mediaPosition:"right"})}},{icon:ee,title:Object(c.__)("Show media behind","full-site-editing"),isActive:"behind"===m,onClick:function(){return a({mediaPosition:"behind"})}}],I=[{icon:J,title:Object(c.__)("Landscape Image Shape","full-site-editing"),isActive:"landscape"===h,onClick:function(){return a({imageShape:"landscape"})}},{icon:X,title:Object(c.__)("portrait Image Shape","full-site-editing"),isActive:"portrait"===h,onClick:function(){return a({imageShape:"portrait"})}},{icon:$,title:Object(c.__)("Square Image Shape","full-site-editing"),isActive:"square"===h,onClick:function(){return a({imageShape:"square"})}},{icon:Z,title:Object(c.__)("Uncropped","full-site-editing"),isActive:"uncropped"===h,onClick:function(){return a({imageShape:"uncropped"})}}];return d(r,f),Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:x,style:{color:p.color}},Object(l.createElement)("div",null,f&&(!Y.RichText.isEmpty(E)||u)&&Object(l.createElement)(Y.RichText,{onChange:function(e){return a({sectionHeader:e})},placeholder:Object(c.__)("Write header…","full-site-editing"),value:E,tagName:"h2",className:"article-section-title"}),f&&!f.length&&Object(l.createElement)(s.Placeholder,null,Object(c.__)("Sorry, no posts were found.","full-site-editing")),!f&&Object(l.createElement)(s.Placeholder,{icon:Object(l.createElement)(s.Spinner,null),className:"component-placeholder__align-center"}),f&&f.map((function(e){return t.renderPost(e)})))),!P&&f&&O&&!z()&&Object(l.createElement)("div",{className:"editor-styles-wrapper wpnbha__wp-block-button__wrapper"},Object(l.createElement)("div",{className:"wp-block-button"},Object(l.createElement)(Y.RichText,{placeholder:Object(c.__)("Load more posts","full-site-editing"),value:y,onChange:function(e){return a({moreButtonText:e})},className:"wp-block-button__link",keepPlaceholderOnFocus:!0,allowedFormats:[]}))),Object(l.createElement)(Y.BlockControls,null,Object(l.createElement)(s.Toolbar,{controls:A}),g&&Object(l.createElement)(s.Toolbar,{controls:T}),g&&Object(l.createElement)(s.Toolbar,{controls:I})),Object(l.createElement)(Y.InspectorControls,null,this.renderInspectorControls()))}}]),n}(l.Component),ne=Object(W.compose)([Object(Y.withColors)({textColor:"color"}),Object(D.withSelect)((function(e,t){var n=t.attributes,o=t.clientId,i=function(e){var t=e.postsToShow,n=e.authors,o=e.categories,i=e.tags,r=e.specificPosts,c=e.tagExclusions;return Object(A.pickBy)(F(e)?{include:r,orderby:"include",per_page:r.length}:{per_page:t,categories:o,author:n,tags:i,tags_exclude:c},(function(e){return!Object(A.isUndefined)(e)}))}(n);if(!F(n)){var r=e(L).previousPostIds(o);i.exclude=r.join(",")}return{latestPosts:e("core").getEntityRecords("postType","post",i)}})),Object(D.withDispatch)((function(e,t){var n=t.attributes;return{markPostsAsDisplayed:F(n)?e(L).markSpecificPostsAsDisplayed:e(L).markPostsAsDisplayed}}))])(te),oe=(n(35),n(36),H.name,H.attributes),ie=H.category,re={title:Object(c.__)("Homepage Posts","full-site-editing"),icon:Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zM10 9h8v2h-8zm0 3h4v2h-4zm0-6h8v2h-8z"})),attributes:oe,category:ie,keywords:[Object(c.__)("posts","full-site-editing"),Object(c.__)("articles","full-site-editing"),Object(c.__)("latest","full-site-editing")],description:Object(c.__)("A block for displaying homepage posts.","full-site-editing"),styles:[{name:"default",label:Object(c._x)("Default","block style","full-site-editing"),isDefault:!0},{name:"borders",label:Object(c._x)("Borders","block style","full-site-editing")}],supports:{html:!1,align:["wide","full"],default:""},edit:ne,save:function(){return null},transforms:{from:[{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.displayPostContent,n=e.displayPostDate,o=e.postLayout,i=e.columns,c=e.postsToShow,l=e.categories;return Object(r.createBlock)(Object(a.applyFilters)("blocks.transforms_from_name","newspack-blocks/homepage-articles"),{showExcerpt:t,showDate:n,postLayout:o,columns:i,postsToShow:c,showAuthor:!1,categories:l?[l]:[]})}}],to:[{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.showExcerpt,n=e.showDate,o=e.postLayout,i=e.columns,c=e.postsToShow,a=e.categories;return Object(r.createBlock)("core/latest-posts",{displayPostContent:t,displayPostDate:n,postLayout:o,columns:i,postsToShow:c,categories:a[0]||""})}}]}};Object(a.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/homepage-articles"!==e?e:"a8c/blog-posts"})),Object(r.registerBlockType)("a8c/blog-posts",i()(i()({},re),{},{title:Object(c.__)("Blog Posts","full-site-editing"),category:"widgets"})),function(e){var t=function t(n){return n.flatMap((function(n){var o=[];return n.name===e&&o.push(n),o.concat(t(n.innerBlocks))}))};Object(D.registerStore)(L,{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"UPDATE_BLOCKS":return i()(i()({},e),{},{queryBlocks:t(n.blocks)});case"MARK_POSTS_DISPLAYED":return i()(i()({},e),{},{postsByBlock:i()(i()({},e.postsByBlock),{},v()({},n.clientId,n.posts))});case"MARK_SPECIFIC_POSTS_DISPLAYED":return i()(i()({},e),{},{specificPostsByBlock:i()(i()({},e.specificPostsByBlock),{},v()({},n.clientId,n.posts))})}return e},actions:R,selectors:V,initialState:N});var n,o=Object(D.select)("core/block-editor"),r=o.getClientIdsWithDescendants,c=o.getBlocks,a=Object(D.dispatch)(L).updateBlocks;Object(D.subscribe)((function(){var e=r(),t=e!==n;n=e,t&&a(c())}))}("a8c/blog-posts")}]));
|
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 o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o)&&o.length){var c=i.apply(null,o);c&&e.push(c)}else if("object"===r)for(var a in o)n.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(o=function(){return i}.apply(t,[]))||(e.exports=o)}()},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}},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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){function n(t,o){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,o)}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 o=n(29),i=n(4);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?i(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,n){var o=n(22);e.exports=function(e){if(Array.isArray(e))return o(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 o=n(22);e.exports=function(e,t){if(e){if("string"==typeof e)return o(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)?o(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,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o=n(5),i=n.n(o),r=n(16),c=n(1),a=n(17),l=n(0),s=n(2),u=n(12),f=n.n(u),p=n(18),d=n.n(p),g=n(4),h=n.n(g),b=n(13),m=n.n(b),O=n(14),y=n.n(O),j=n(3),v=n.n(j),_=n(23),w=n.n(_),S=n(7),k=n.n(S),E=n(8),C=n(6),P=n(19),x=n.n(P),A=n(11),T=(n(34),function(e){m()(n,e);var t=y()(n);function n(e){var o;return f()(this,n),o=t.call(this,e),v()(h()(o),"isFetchingInfoOnLoad",(function(){var e=o.props,t=e.tokens,n=e.fetchSavedInfo;return Boolean(t.length&&n)})),o.state={suggestions:[],validValues:{},loading:o.isFetchingInfoOnLoad()},o.debouncedUpdateSuggestions=Object(A.debounce)(o.updateSuggestions,500),o}return d()(n,[{key:"componentDidMount",value:function(){var e=this;if(this.isFetchingInfoOnLoad()){var t=this.props,n=t.tokens;(0,t.fetchSavedInfo)(n).then((function(t){var n=e.state.validValues;t.forEach((function(e){n[e.value]=e.label})),e.setState({validValues:n,loading:!1})}))}}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}},{key:"getLabelsForValues",value:function(e){var t=this.state.validValues;return e.reduce((function(e,n){return t[n]?[].concat(x()(e),[t[n]]):e}),[])}},{key:"getValuesForLabels",value:function(e){var t=this.state.validValues;return e.map((function(e){return Object.keys(t).find((function(n){return t[n]===e}))}))}},{key:"updateSuggestions",value:function(e){var t=this,n=this.props.fetchSuggestions;n&&this.setState({loading:!0},(function(){var o=n(e);o.then((function(e){if(t.suggestionsRequest===o){var n=t.state.validValues,i=[];e.forEach((function(e){i.push(e.label),n[e.value]=e.label})),t.setState({suggestions:i,validValues:n,loading:!1})}})).catch((function(){t.suggestionsRequest===o&&t.setState({loading:!1})})),t.suggestionsRequest=o}))}},{key:"handleOnChange",value:function(e){(0,this.props.onChange)(this.getValuesForLabels(e))}},{key:"getTokens",value:function(){var e=this.props.tokens;return this.getLabelsForValues(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.help,o=t.label,i=void 0===o?"":o,r=this.state,c=r.suggestions,a=r.loading;return Object(l.createElement)("div",{className:"autocomplete-tokenfield"},Object(l.createElement)(s.FormTokenField,{value:this.getTokens(),suggestions:c,onChange:function(t){return e.handleOnChange(t)},onInputChange:function(t){return e.debouncedUpdateSuggestions(t)},label:i}),a&&Object(l.createElement)(s.Spinner,null),n&&Object(l.createElement)("p",{className:"autocomplete-tokenfield__help"},n))}}]),n}(l.Component)),I=function(e){m()(n,e);var t=y()(n);function n(){var e;f()(this,n);for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return e=t.call.apply(t,[this].concat(i)),v()(h()(e),"state",{showAdvancedFilters:!1}),v()(h()(e),"fetchPostSuggestions",(function(e){return k()({path:Object(E.addQueryArgs)("/wp/v2/search",{search:e,per_page:20,_fields:"id,title",type:"post"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.title)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"fetchSavedPosts",(function(e){return k()({path:Object(E.addQueryArgs)("/wp/v2/posts",{per_page:100,include:e.join(","),_fields:"id,title"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.title.rendered)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"fetchAuthorSuggestions",(function(e){return k()({path:Object(E.addQueryArgs)("/wp/v2/users",{search:e,per_page:20,_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no name)","full-site-editing")}}))}))})),v()(h()(e),"fetchSavedAuthors",(function(e){return k()({path:Object(E.addQueryArgs)("/wp/v2/users",{per_page:100,include:e.join(","),_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no name)","full-site-editing")}}))}))})),v()(h()(e),"fetchCategorySuggestions",(function(e){return k()({path:Object(E.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"fetchSavedCategories",(function(e){return k()({path:Object(E.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"fetchTagSuggestions",(function(e){return k()({path:Object(E.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"fetchSavedTags",(function(e){return k()({path:Object(E.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(c.__)("(no title)","full-site-editing")}}))}))})),v()(h()(e),"render",(function(){var t=e.props,n=t.specificMode,o=t.onSpecificModeChange,i=t.specificPosts,r=t.onSpecificPostsChange,a=t.authors,u=t.onAuthorsChange,f=t.categories,p=t.onCategoriesChange,d=t.tags,g=t.onTagsChange,h=t.tagExclusions,b=t.onTagExclusionsChange,m=t.enableSpecific,O=e.state.showAdvancedFilters;return[m&&Object(l.createElement)(s.ToggleControl,{key:"specificMode",checked:n,onChange:o,label:Object(c.__)("Choose Specific Posts","full-site-editing")}),n&&Object(l.createElement)(T,{key:"posts",tokens:i||[],onChange:r,fetchSuggestions:e.fetchPostSuggestions,fetchSavedInfo:e.fetchSavedPosts,label:Object(c.__)("Posts","full-site-editing"),help:Object(c.__)("Begin typing post title, click autocomplete result to select.","full-site-editing")}),!n&&Object(l.createElement)(s.QueryControls,w()({key:"queryControls"},e.props)),!n&&u&&Object(l.createElement)(T,{key:"authors",tokens:a||[],onChange:u,fetchSuggestions:e.fetchAuthorSuggestions,fetchSavedInfo:e.fetchSavedAuthors,label:Object(c.__)("Authors","full-site-editing")}),!n&&p&&Object(l.createElement)(T,{key:"categories",tokens:f||[],onChange:p,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:Object(c.__)("Categories","full-site-editing")}),!n&&g&&Object(l.createElement)(T,{key:"tags",tokens:d||[],onChange:g,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:Object(c.__)("Tags","full-site-editing")}),!n&&b&&Object(l.createElement)("p",{key:"toggle-advanced-filters"},Object(l.createElement)(s.Button,{isLink:!0,onClick:function(){return e.setState({showAdvancedFilters:!O})}},O?Object(c.__)("Hide Advanced Filters","full-site-editing"):Object(c.__)("Show Advanced Filters","full-site-editing"))),!n&&b&&O&&Object(l.createElement)(T,{key:"tag-exclusion",tokens:h||[],onChange:b,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:Object(c.__)("Excluded Tags","full-site-editing")})]})),e}return n}(l.Component);I.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],tagExclusions:[]};var B,M=I,H=n(10),N=n(15),V=N.name,R={queryBlocks:[],postsByBlock:{},specificPostsByBlock:{}},z="UPDATE_BLOCKS",D="MARK_POSTS_DISPLAYED",L="MARK_SPECIFIC_POSTS_DISPLAYED",F={updateBlocks:function(e){return{type:z,blocks:e}},markPostsAsDisplayed:function(e,t){return{type:D,clientId:e,posts:t}},markSpecificPostsAsDisplayed:function(e,t){return{type:L,clientId:e,posts:t}}},q={previousPostIds:function(e,t){var n,o,i,r=e.queryBlocks,c=e.specificPostsByBlock,a=e.postsByBlock,l=r.filter((function(e){var t=e.clientId;return c[t]})).flatMap((function(e){var t=e.clientId;return c[t].map((function(e){return e.id}))})),s=(n=r,o=t,i=n.findIndex((function(e){return e.clientId===o})),n.slice(0,i)).filter((function(e){var t=e.clientId;return a[t]})).flatMap((function(e){var t=e.clientId;return a[t].map((function(e){return e.id}))}));return Object(A.uniq)(l.concat(s)).sort()}},G=function(){return"object"==typeof window&&window.wpcomGutenberg&&-1===Number(window.wpcomGutenberg.blogPublic)},Q=function(e){var t=e.specificMode,n=e.specificPosts;return t&&n&&n.length},U=function(e){return e.map((function(e){return Object(l.createElement)("span",{className:"avatar author-avatar",key:e.id},Object(l.createElement)("a",{className:"url fn n",href:e.author_link},Object(l.createElement)(l.RawHTML,null,e.avatar)))}))},K=function(e){return Object(l.createElement)("span",{className:"byline"},Object(c._x)("by","post author","full-site-editing")," ",e.reduce((function(t,n,o){return[].concat(x()(t),[Object(l.createElement)("span",{className:"author vcard",key:n.id},Object(l.createElement)("a",{className:"url fn n",href:n.author_link},n.display_name)),o<e.length-2&&", ",e.length>1&&o===e.length-2&&Object(c._x)(" and ","post author","full-site-editing")])}),[]))},W=n(20),Y=n.n(W),J=n(21),X=n(9),$=n(24);"object"==typeof window&&window.newspackIsPostSubtitleSupported&&window.newspackIsPostSubtitleSupported.post_subtitle&&(B=!0);var Z=Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"})),ee=Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"})),te=Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"})),ne=Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"})),oe=Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"})),ie=function(e){m()(n,e);var t=y()(n);function n(){var e;f()(this,n);for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return e=t.call.apply(t,[this].concat(i)),v()(h()(e),"renderPost",(function(t){var n=e.props.attributes,o=n.showImage,i=n.imageShape,r=n.mediaPosition,c=n.minHeight,a=n.showCaption,s=n.showExcerpt,u=n.showSubtitle,f=n.showAuthor,p=n.showAvatar,d=n.showDate,g=n.showCategory,h=n.sectionHeader,b={minHeight:"behind"===r&&o&&t.newspack_featured_image_src&&c+"vh",paddingTop:"behind"===r&&o&&t.newspack_featured_image_src&&c/5+"vh"},m=Y()({"post-has-image":t.newspack_featured_image_src},t.newspack_article_classes),O=e.titleForPost(t),y=Object(J.__experimentalGetSettings)().formats.date;return Object(l.createElement)("article",{className:m,key:t.id,style:b},o&&t.newspack_featured_image_src&&Object(l.createElement)("figure",{className:"post-thumbnail",key:"thumbnail"},Object(l.createElement)("a",{href:"#"},"landscape"===i&&Object(l.createElement)("img",{src:t.newspack_featured_image_src.landscape,alt:""}),"portrait"===i&&Object(l.createElement)("img",{src:t.newspack_featured_image_src.portrait,alt:""}),"square"===i&&Object(l.createElement)("img",{src:t.newspack_featured_image_src.square,alt:""}),"uncropped"===i&&Object(l.createElement)("img",{src:t.newspack_featured_image_src.uncropped,alt:""})),a&&""!==t.newspack_featured_image_caption&&Object(l.createElement)("figcaption",null,t.newspack_featured_image_caption)),Object(l.createElement)("div",{className:"entry-wrapper"},g&&t.newspack_category_info.length&&Object(l.createElement)("div",{className:"cat-links"},Object(l.createElement)("a",{href:"#"},Object(C.decodeEntities)(t.newspack_category_info))),X.RichText.isEmpty(h)?Object(l.createElement)("h2",{className:"entry-title",key:"title"},Object(l.createElement)("a",{href:"#"},O)):Object(l.createElement)("h3",{className:"entry-title",key:"title"},Object(l.createElement)("a",{href:"#"},O)),B&&u&&Object(l.createElement)(l.RawHTML,{key:"subtitle",className:"newspack-post-subtitle newspack-post-subtitle--in-homepage-block"},t.meta.newspack_post_subtitle||""),s&&Object(l.createElement)(l.RawHTML,{key:"excerpt",className:"excerpt-contain"},t.excerpt.rendered),Object(l.createElement)("div",{className:"entry-meta"},f&&p&&U(t.newspack_author_info),f&&K(t.newspack_author_info),d&&Object(l.createElement)("time",{className:"entry-date published",key:"pub-date"},Object(J.dateI18n)(y,t.date_gmt)))))})),v()(h()(e),"titleForPost",(function(e){return e.title?"string"==typeof e.title?Object(C.decodeEntities)(e.title.trim()):"object"==typeof e.title&&e.title.rendered?Object(C.decodeEntities)(e.title.rendered.trim()):void 0:""})),v()(h()(e),"renderInspectorControls",(function(){var t=e.props,n=t.attributes,o=t.setAttributes,i=t.textColor,r=t.setTextColor,a=n.authors,u=n.specificPosts,f=n.postsToShow,p=n.categories,d=n.columns,g=n.showImage,h=n.showCaption,b=n.imageScale,m=n.mobileStack,O=n.minHeight,y=n.moreButton,j=n.showExcerpt,v=n.showSubtitle,_=n.typeScale,w=n.showDate,S=n.showAuthor,k=n.showAvatar,E=n.showCategory,C=n.postLayout,P=n.mediaPosition,x=n.specificMode,A=n.tags,T=n.tagExclusions,I=[{value:1,label:Object(c.__)("Small","full-site-editing"),shortName:Object(c.__)("S","full-site-editing")},{value:2,label:Object(c.__)("Medium","full-site-editing"),shortName:Object(c.__)("M","full-site-editing")},{value:3,label:Object(c.__)("Large","full-site-editing"),shortName:Object(c.__)("L","full-site-editing")},{value:4,label:Object(c.__)("Extra Large","full-site-editing"),shortName:Object(c.__)("XL","full-site-editing")}];return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(s.PanelBody,{title:Object(c.__)("Display Settings","full-site-editing"),initialOpen:!0},f&&Object(l.createElement)(M,{numberOfItems:f,onNumberOfItemsChange:function(e){return o({postsToShow:e})},specificMode:x,onSpecificModeChange:function(e){return o({specificMode:e})},specificPosts:u,onSpecificPostsChange:function(e){return o({specificPosts:e})},authors:a,onAuthorsChange:function(e){return o({authors:e})},categories:p,onCategoriesChange:function(e){return o({categories:e})},tags:A,onTagsChange:function(e){o({tags:e})},tagExclusions:T,onTagExclusionsChange:function(e){return o({tagExclusions:e})}}),"grid"===C&&Object(l.createElement)(s.RangeControl,{label:Object(c.__)("Columns","full-site-editing"),value:d,onChange:function(e){return o({columns:e})},min:2,max:6,required:!0}),!x&&!G()&&Object(l.createElement)(s.ToggleControl,{label:Object(c.__)('Show "More" Button',"full-site-editing"),checked:y,onChange:function(){return o({moreButton:!y})}})),Object(l.createElement)(s.PanelBody,{title:Object(c.__)("Featured Image Settings","full-site-editing")},Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Featured Image","full-site-editing"),checked:g,onChange:function(){return o({showImage:!g})}})),g&&Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Featured Image Caption","full-site-editing"),checked:h,onChange:function(){return o({showCaption:!h})}})),g&&"top"!==P&&"behind"!==P&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Stack on mobile","full-site-editing"),checked:m,onChange:function(){return o({mobileStack:!m})}})),Object(l.createElement)(s.BaseControl,{label:Object(c.__)("Featured Image Size","full-site-editing"),id:"newspackfeatured-image-size"},Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ButtonGroup,{id:"newspackfeatured-image-size","aria-label":Object(c.__)("Featured Image Size","full-site-editing")},I.map((function(e){var t=b===e.value;return Object(l.createElement)(s.Button,{isLarge:!0,isPrimary:t,"aria-pressed":t,"aria-label":e.label,key:e.value,onClick:function(){return o({imageScale:e.value})}},e.shortName)})))))),g&&"behind"===P&&Object(l.createElement)(s.RangeControl,{label:Object(c.__)("Minimum height","full-site-editing"),help:Object(c.__)("Sets a minimum height for the block, using a percentage of the screen's current height.","full-site-editing"),value:O,onChange:function(e){return o({minHeight:e})},min:0,max:100,required:!0})),Object(l.createElement)(s.PanelBody,{title:Object(c.__)("Post Control Settings","full-site-editing")},B&&Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Subtitle","full-site-editing"),checked:v,onChange:function(){return o({showSubtitle:!v})}})),Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Excerpt","full-site-editing"),checked:j,onChange:function(){return o({showExcerpt:!j})}})),Object(l.createElement)(s.RangeControl,{className:"type-scale-slider",label:Object(c.__)("Type Scale","full-site-editing"),value:_,onChange:function(e){return o({typeScale:e})},min:1,max:10,beforeIcon:"editor-textcolor",afterIcon:"editor-textcolor",required:!0})),Object(l.createElement)(X.PanelColorSettings,{title:Object(c.__)("Color Settings","full-site-editing"),initialOpen:!0,colorSettings:[{value:i.color,onChange:r,label:Object(c.__)("Text Color","full-site-editing")}]}),Object(l.createElement)(s.PanelBody,{title:Object(c.__)("Post Meta Settings","full-site-editing")},Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Date","full-site-editing"),checked:w,onChange:function(){return o({showDate:!w})}})),Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Category","full-site-editing"),checked:E,onChange:function(){return o({showCategory:!E})}})),Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Author","full-site-editing"),checked:S,onChange:function(){return o({showAuthor:!S})}})),S&&Object(l.createElement)(s.PanelRow,null,Object(l.createElement)(s.ToggleControl,{label:Object(c.__)("Show Author Avatar","full-site-editing"),checked:k,onChange:function(){return o({showAvatar:!k})}}))))})),e}return d()(n,[{key:"render",value:function(){var e,t=this,n=this.props,o=n.attributes,i=n.className,r=n.clientId,a=n.setAttributes,u=n.isSelected,f=n.latestPosts,p=n.textColor,d=n.markPostsAsDisplayed,g=o.showImage,h=o.imageShape,b=o.postLayout,m=o.mediaPosition,O=o.moreButton,y=o.moreButtonText,j=o.columns,_=o.typeScale,w=o.imageScale,S=o.mobileStack,k=o.sectionHeader,E=o.showCaption,C=o.showCategory,P=o.specificMode,x=Y()(i,(e={"is-grid":"grid"===b,"show-image":g},v()(e,"columns-".concat(j),"grid"===b),v()(e,"ts-".concat(_),"5"!==_),v()(e,"image-align".concat(m),g),v()(e,"is-".concat(w),"1"!==w&&g),v()(e,"mobile-stack",S),v()(e,"is-".concat(h),g),v()(e,"has-text-color",""!==p.color),v()(e,"show-caption",E),v()(e,"show-category",C),v()(e,"wpnbha",!0),e)),A=[{icon:"list-view",title:Object(c.__)("List View","full-site-editing"),onClick:function(){return a({postLayout:"list"})},isActive:"list"===b},{icon:"grid-view",title:Object(c.__)("Grid View","full-site-editing"),onClick:function(){return a({postLayout:"grid"})},isActive:"grid"===b}],T=[{icon:"align-none",title:Object(c.__)("Show media on top","full-site-editing"),isActive:"top"===m,onClick:function(){return a({mediaPosition:"top"})}},{icon:"align-pull-left",title:Object(c.__)("Show media on left","full-site-editing"),isActive:"left"===m,onClick:function(){return a({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(c.__)("Show media on right","full-site-editing"),isActive:"right"===m,onClick:function(){return a({mediaPosition:"right"})}},{icon:oe,title:Object(c.__)("Show media behind","full-site-editing"),isActive:"behind"===m,onClick:function(){return a({mediaPosition:"behind"})}}],I=[{icon:Z,title:Object(c.__)("Landscape Image Shape","full-site-editing"),isActive:"landscape"===h,onClick:function(){return a({imageShape:"landscape"})}},{icon:ee,title:Object(c.__)("portrait Image Shape","full-site-editing"),isActive:"portrait"===h,onClick:function(){return a({imageShape:"portrait"})}},{icon:te,title:Object(c.__)("Square Image Shape","full-site-editing"),isActive:"square"===h,onClick:function(){return a({imageShape:"square"})}},{icon:ne,title:Object(c.__)("Uncropped","full-site-editing"),isActive:"uncropped"===h,onClick:function(){return a({imageShape:"uncropped"})}}];return d(r,f),Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:x,style:{color:p.color}},Object(l.createElement)("div",null,f&&(!X.RichText.isEmpty(k)||u)&&Object(l.createElement)(X.RichText,{onChange:function(e){return a({sectionHeader:e})},placeholder:Object(c.__)("Write header…","full-site-editing"),value:k,tagName:"h2",className:"article-section-title"}),f&&!f.length&&Object(l.createElement)(s.Placeholder,null,Object(c.__)("Sorry, no posts were found.","full-site-editing")),!f&&Object(l.createElement)(s.Placeholder,{icon:Object(l.createElement)(s.Spinner,null),className:"component-placeholder__align-center"}),f&&f.map((function(e){return t.renderPost(e)})))),!P&&f&&O&&!G()&&Object(l.createElement)("div",{className:"editor-styles-wrapper wpnbha__wp-block-button__wrapper"},Object(l.createElement)("div",{className:"wp-block-button"},Object(l.createElement)(X.RichText,{placeholder:Object(c.__)("Load more posts","full-site-editing"),value:y,onChange:function(e){return a({moreButtonText:e})},className:"wp-block-button__link",keepPlaceholderOnFocus:!0,allowedFormats:[]}))),Object(l.createElement)(X.BlockControls,null,Object(l.createElement)(s.Toolbar,{controls:A}),g&&Object(l.createElement)(s.Toolbar,{controls:T}),g&&Object(l.createElement)(s.Toolbar,{controls:I})),Object(l.createElement)(X.InspectorControls,null,this.renderInspectorControls()))}}]),n}(l.Component),re=Object($.compose)([Object(X.withColors)({textColor:"color"}),Object(H.withSelect)((function(e,t){var n=t.attributes,o=t.clientId,i=function(e){var t=e.postsToShow,n=e.authors,o=e.categories,i=e.tags,r=e.specificPosts,c=e.tagExclusions;return Object(A.pickBy)(Q(e)?{include:r,orderby:"include",per_page:r.length}:{per_page:t,categories:o,author:n,tags:i,tags_exclude:c},(function(e){return!Object(A.isUndefined)(e)}))}(n);if(!Q(n)){var r=e(V).previousPostIds(o);i.exclude=r.join(",")}return{latestPosts:e("core").getEntityRecords("postType","post",i)}})),Object(H.withDispatch)((function(e,t){var n=t.attributes;return{markPostsAsDisplayed:Q(n)?e(V).markSpecificPostsAsDisplayed:e(V).markPostsAsDisplayed}}))])(ie),ce=(n(35),n(36),N.name,N.attributes),ae=N.category,le={title:Object(c.__)("Homepage Posts","full-site-editing"),icon:Object(l.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(l.createElement)(s.Path,{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zM10 9h8v2h-8zm0 3h4v2h-4zm0-6h8v2h-8z"})),attributes:ce,category:ae,keywords:[Object(c.__)("posts","full-site-editing"),Object(c.__)("articles","full-site-editing"),Object(c.__)("latest","full-site-editing")],description:Object(c.__)("A block for displaying homepage posts.","full-site-editing"),styles:[{name:"default",label:Object(c._x)("Default","block style","full-site-editing"),isDefault:!0},{name:"borders",label:Object(c._x)("Borders","block style","full-site-editing")}],supports:{html:!1,align:["wide","full"],default:""},edit:re,save:function(){return null},transforms:{from:[{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.displayPostContent,n=e.displayPostDate,o=e.postLayout,i=e.columns,c=e.postsToShow,l=e.categories;return Object(r.createBlock)(Object(a.applyFilters)("blocks.transforms_from_name","newspack-blocks/homepage-articles"),{showExcerpt:t,showDate:n,postLayout:o,columns:i,postsToShow:c,showAuthor:!1,categories:l?[l]:[]})}}],to:[{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.showExcerpt,n=e.showDate,o=e.postLayout,i=e.columns,c=e.postsToShow,a=e.categories;return Object(r.createBlock)("core/latest-posts",{displayPostContent:t,displayPostDate:n,postLayout:o,columns:i,postsToShow:c,categories:a[0]||""})}}]}},se="a8c/blog-posts";Object(a.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/homepage-articles"!==e?e:se})),Object(r.registerBlockType)(se,i()(i()({},le),{},{title:Object(c.__)("Blog Posts","full-site-editing"),category:"widgets"})),function(e){var t=function t(n){return n.flatMap((function(n){var o=[];return n.name===e&&o.push(n),o.concat(t(n.innerBlocks))}))};Object(H.registerStore)(V,{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case z:return i()(i()({},e),{},{queryBlocks:t(n.blocks)});case D:return i()(i()({},e),{},{postsByBlock:i()(i()({},e.postsByBlock),{},v()({},n.clientId,n.posts))});case L:return i()(i()({},e),{},{specificPostsByBlock:i()(i()({},e.specificPostsByBlock),{},v()({},n.clientId,n.posts))})}return e},actions:F,selectors:q,initialState:R});var n,o=Object(H.select)("core/block-editor"),r=o.getClientIdsWithDescendants,c=o.getBlocks,a=Object(H.dispatch)(V).updateBlocks;Object(H.subscribe)((function(){var e=r(),t=e!==n;n=e,t&&a(c())}))}(se)}]));
|
newspack-blocks/dist/blog-posts-block-view.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '29e5f3d902c32515241c5332b52bc7e6');
|
newspack-blocks/dist/carousel-block-editor.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '68598ad5262e4600afbb56606bcc0ddf');
|
newspack-blocks/dist/carousel-block-editor.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
!function(e,t){for(var s in t)e[s]=t[s]}(window,function(e){var t={};function s(
|
2 |
/*!
|
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 s={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var n=typeof i;if("string"===n||"number"===n)e.push(i);else if(Array.isArray(i)&&i.length){var r=a.apply(null,i);r&&e.push(r)}else if("object"===n)for(var o in i)s.call(i,o)&&i[o]&&e.push(o)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(i=function(){return a}.apply(t,[]))||(e.exports=i)}()},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){function s(){return e.exports=s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},s.apply(this,arguments)}e.exports=s},function(e,t){!function(){e.exports=this.wp.escapeHtml}()},function(e,t){function s(t,i){return e.exports=s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(t,i)}e.exports=s},function(e,t){function s(t){return e.exports=s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(t)}e.exports=s},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,s){var i=s(30),a=s(4);e.exports=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?a(e):t}},function(e,t){function s(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=s=function(e){return typeof e}:e.exports=s=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(t)}e.exports=s},function(e,t,s){var i=s(17);e.exports=function(e){if(Array.isArray(e))return i(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,s){var i=s(17);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(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,s){},function(e,t,s){},function(e,t,s){},function(e,t,s){},function(e,t,s){"use strict";s.r(t);var i=s(15),a=s.n(i),n=s(18),r=s(19),o=s(0),l=s(2),d=s(1),c=s(8),p=s.n(c),u=s(12),h=s.n(u),f=s(9),m=s.n(f),g=s(10),v=s.n(g),b=s(11),y=s(20),w=s.n(y),x=s(16),E=s(21),S=s(22),T=s(23),C=s(5),$=s(24),k=s.n($),M=s(4),P=s.n(M),O=s(3),z=s.n(O),I=s(6),L=s.n(I),j=s(7),D=s(13),A=s.n(D),_=(s(35),function(e){m()(s,e);var t=v()(s);function s(e){var i;return p()(this,s),i=t.call(this,e),z()(P()(i),"isFetchingInfoOnLoad",(function(){var e=i.props,t=e.tokens,s=e.fetchSavedInfo;return Boolean(t.length&&s)})),i.state={suggestions:[],validValues:{},loading:i.isFetchingInfoOnLoad()},i.debouncedUpdateSuggestions=Object(b.debounce)(i.updateSuggestions,500),i}return h()(s,[{key:"componentDidMount",value:function(){var e=this;if(this.isFetchingInfoOnLoad()){var t=this.props,s=t.tokens;(0,t.fetchSavedInfo)(s).then((function(t){var s=e.state.validValues;t.forEach((function(e){s[e.value]=e.label})),e.setState({validValues:s,loading:!1})}))}}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}},{key:"getLabelsForValues",value:function(e){var t=this.state.validValues;return e.reduce((function(e,s){return t[s]?[].concat(A()(e),[t[s]]):e}),[])}},{key:"getValuesForLabels",value:function(e){var t=this.state.validValues;return e.map((function(e){return Object.keys(t).find((function(s){return t[s]===e}))}))}},{key:"updateSuggestions",value:function(e){var t=this,s=this.props.fetchSuggestions;s&&this.setState({loading:!0},(function(){var i=s(e);i.then((function(e){if(t.suggestionsRequest===i){var s=t.state.validValues,a=[];e.forEach((function(e){a.push(e.label),s[e.value]=e.label})),t.setState({suggestions:a,validValues:s,loading:!1})}})).catch((function(){t.suggestionsRequest===i&&t.setState({loading:!1})})),t.suggestionsRequest=i}))}},{key:"handleOnChange",value:function(e){(0,this.props.onChange)(this.getValuesForLabels(e))}},{key:"getTokens",value:function(){var e=this.props.tokens;return this.getLabelsForValues(e)}},{key:"render",value:function(){var e=this,t=this.props,s=t.help,i=t.label,a=void 0===i?"":i,n=this.state,r=n.suggestions,d=n.loading;return Object(o.createElement)("div",{className:"autocomplete-tokenfield"},Object(o.createElement)(l.FormTokenField,{value:this.getTokens(),suggestions:r,onChange:function(t){return e.handleOnChange(t)},onInputChange:function(t){return e.debouncedUpdateSuggestions(t)},label:a}),d&&Object(o.createElement)(l.Spinner,null),s&&Object(o.createElement)("p",{className:"autocomplete-tokenfield__help"},s))}}]),s}(o.Component)),N=function(e){m()(s,e);var t=v()(s);function s(){var e;p()(this,s);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return e=t.call.apply(t,[this].concat(a)),z()(P()(e),"state",{showAdvancedFilters:!1}),z()(P()(e),"fetchPostSuggestions",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/search",{search:e,per_page:20,_fields:"id,title",type:"post"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.title)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"fetchSavedPosts",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/posts",{per_page:100,include:e.join(","),_fields:"id,title"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.title.rendered)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"fetchAuthorSuggestions",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/users",{search:e,per_page:20,_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no name)","full-site-editing")}}))}))})),z()(P()(e),"fetchSavedAuthors",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/users",{per_page:100,include:e.join(","),_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no name)","full-site-editing")}}))}))})),z()(P()(e),"fetchCategorySuggestions",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"fetchSavedCategories",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"fetchTagSuggestions",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"fetchSavedTags",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"render",(function(){var t=e.props,s=t.specificMode,i=t.onSpecificModeChange,a=t.specificPosts,n=t.onSpecificPostsChange,r=t.authors,c=t.onAuthorsChange,p=t.categories,u=t.onCategoriesChange,h=t.tags,f=t.onTagsChange,m=t.tagExclusions,g=t.onTagExclusionsChange,v=t.enableSpecific,b=e.state.showAdvancedFilters;return[v&&Object(o.createElement)(l.ToggleControl,{key:"specificMode",checked:s,onChange:i,label:Object(d.__)("Choose Specific Posts","full-site-editing")}),s&&Object(o.createElement)(_,{key:"posts",tokens:a||[],onChange:n,fetchSuggestions:e.fetchPostSuggestions,fetchSavedInfo:e.fetchSavedPosts,label:Object(d.__)("Posts","full-site-editing"),help:Object(d.__)("Begin typing post title, click autocomplete result to select.","full-site-editing")}),!s&&Object(o.createElement)(l.QueryControls,k()({key:"queryControls"},e.props)),!s&&c&&Object(o.createElement)(_,{key:"authors",tokens:r||[],onChange:c,fetchSuggestions:e.fetchAuthorSuggestions,fetchSavedInfo:e.fetchSavedAuthors,label:Object(d.__)("Authors","full-site-editing")}),!s&&u&&Object(o.createElement)(_,{key:"categories",tokens:p||[],onChange:u,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:Object(d.__)("Categories","full-site-editing")}),!s&&f&&Object(o.createElement)(_,{key:"tags",tokens:h||[],onChange:f,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:Object(d.__)("Tags","full-site-editing")}),!s&&g&&Object(o.createElement)("p",{key:"toggle-advanced-filters"},Object(o.createElement)(l.Button,{isLink:!0,onClick:function(){return e.setState({showAdvancedFilters:!b})}},b?Object(d.__)("Hide Advanced Filters","full-site-editing"):Object(d.__)("Show Advanced Filters","full-site-editing"))),!s&&g&&b&&Object(o.createElement)(_,{key:"tag-exclusion",tokens:m||[],onChange:g,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:Object(d.__)("Excluded Tags","full-site-editing")})]})),e}return s}(o.Component);N.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],tagExclusions:[]};var H=N,B=s(14),V=s(25),G="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,R="undefined"==typeof window?{document:G,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;class X{constructor(e){const t=this;for(let s=0;s<e.length;s+=1)t[s]=e[s];return t.length=e.length,this}}function Y(e,t){const s=[];let i=0;if(e&&!t&&e instanceof X)return e;if(e)if("string"==typeof e){let a,n;const r=e.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let e="div";for(0===r.indexOf("<li")&&(e="ul"),0===r.indexOf("<tr")&&(e="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(e="tr"),0===r.indexOf("<tbody")&&(e="table"),0===r.indexOf("<option")&&(e="select"),n=G.createElement(e),n.innerHTML=r,i=0;i<n.childNodes.length;i+=1)s.push(n.childNodes[i])}else for(a=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||G).querySelectorAll(e.trim()):[G.getElementById(e.trim().split("#")[1])],i=0;i<a.length;i+=1)a[i]&&s.push(a[i])}else if(e.nodeType||e===R||e===G)s.push(e);else if(e.length>0&&e[0].nodeType)for(i=0;i<e.length;i+=1)s.push(e[i]);return new X(s)}function F(e){const t=[];for(let s=0;s<e.length;s+=1)-1===t.indexOf(e[s])&&t.push(e[s]);return t}Y.fn=X.prototype,Y.Class=X,Y.Dom7=X;"resize scroll".split(" ");const q={addClass:function(e){if(void 0===e)return this;const t=e.split(" ");for(let s=0;s<t.length;s+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.add(t[s]);return this},removeClass:function(e){const t=e.split(" ");for(let s=0;s<t.length;s+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.remove(t[s]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){const t=e.split(" ");for(let s=0;s<t.length;s+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.toggle(t[s]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let s=0;s<this.length;s+=1)if(2===arguments.length)this[s].setAttribute(e,t);else for(const t in e)this[s][t]=e[t],this[s].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){let s;if(void 0!==t){for(let i=0;i<this.length;i+=1)s=this[i],s.dom7ElementDataStorage||(s.dom7ElementDataStorage={}),s.dom7ElementDataStorage[e]=t;return this}if(s=this[0],s){if(s.dom7ElementDataStorage&&e in s.dom7ElementDataStorage)return s.dom7ElementDataStorage[e];const t=s.getAttribute("data-"+e);return t||void 0}},transform:function(e){for(let t=0;t<this.length;t+=1){const s=this[t].style;s.webkitTransform=e,s.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(let t=0;t<this.length;t+=1){const s=this[t].style;s.webkitTransitionDuration=e,s.transitionDuration=e}return this},on:function(...e){let[t,s,i,a]=e;function n(e){const t=e.target;if(!t)return;const a=e.target.dom7EventData||[];if(a.indexOf(e)<0&&a.unshift(e),Y(t).is(s))i.apply(t,a);else{const e=Y(t).parents();for(let t=0;t<e.length;t+=1)Y(e[t]).is(s)&&i.apply(e[t],a)}}function r(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof e[1]&&([t,i,a]=e,s=void 0),a||(a=!1);const o=t.split(" ");let l;for(let d=0;d<this.length;d+=1){const e=this[d];if(s)for(l=0;l<o.length;l+=1){const t=o[l];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:i,proxyListener:n}),e.addEventListener(t,n,a)}else for(l=0;l<o.length;l+=1){const t=o[l];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:i,proxyListener:r}),e.addEventListener(t,r,a)}}return this},off:function(...e){let[t,s,i,a]=e;"function"==typeof e[1]&&([t,i,a]=e,s=void 0),a||(a=!1);const n=t.split(" ");for(let r=0;r<n.length;r+=1){const e=n[r];for(let t=0;t<this.length;t+=1){const n=this[t];let r;if(!s&&n.dom7Listeners?r=n.dom7Listeners[e]:s&&n.dom7LiveListeners&&(r=n.dom7LiveListeners[e]),r&&r.length)for(let t=r.length-1;t>=0;t-=1){const s=r[t];i&&s.listener===i||i&&s.listener&&s.listener.dom7proxy&&s.listener.dom7proxy===i?(n.removeEventListener(e,s.proxyListener,a),r.splice(t,1)):i||(n.removeEventListener(e,s.proxyListener,a),r.splice(t,1))}}}return this},trigger:function(...e){const t=e[0].split(" "),s=e[1];for(let a=0;a<t.length;a+=1){const n=t[a];for(let t=0;t<this.length;t+=1){const a=this[t];let r;try{r=new R.CustomEvent(n,{detail:s,bubbles:!0,cancelable:!0})}catch(i){r=G.createEvent("Event"),r.initEvent(n,!0,!0),r.detail=s}a.dom7EventData=e.filter((e,t)=>t>0),a.dispatchEvent(r),a.dom7EventData=[],delete a.dom7EventData}}return this},transitionEnd:function(e){const t=["webkitTransitionEnd","transitionend"],s=this;let i;function a(n){if(n.target===this)for(e.call(this,n),i=0;i<t.length;i+=1)s.off(t[i],a)}if(e)for(i=0;i<t.length;i+=1)s.on(t[i],a);return this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){const e=this[0],t=e.getBoundingClientRect(),s=G.body,i=e.clientTop||s.clientTop||0,a=e.clientLeft||s.clientLeft||0,n=e===R?R.scrollY:e.scrollTop,r=e===R?R.scrollX:e.scrollLeft;return{top:t.top+n-i,left:t.left+r-a}}return null},css:function(e,t){let s;if(1===arguments.length){if("string"!=typeof e){for(s=0;s<this.length;s+=1)for(let t in e)this[s].style[t]=e[t];return this}if(this[0])return R.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(s=0;s<this.length;s+=1)this[s].style[e]=t;return this}return this},each:function(e){if(!e)return this;for(let t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=this[0];let s,i;if(!t||void 0===e)return!1;if("string"==typeof e){if(t.matches)return t.matches(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);for(s=Y(e),i=0;i<s.length;i+=1)if(s[i]===t)return!0;return!1}if(e===G)return t===G;if(e===R)return t===R;if(e.nodeType||e instanceof X){for(s=e.nodeType?[e]:e,i=0;i<s.length;i+=1)if(s[i]===t)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;let s;return e>t-1?new X([]):e<0?(s=t+e,new X(s<0?[]:[this[s]])):new X([this[e]])},append:function(...e){let t;for(let s=0;s<e.length;s+=1){t=e[s];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const s=G.createElement("div");for(s.innerHTML=t;s.firstChild;)this[e].appendChild(s.firstChild)}else if(t instanceof X)for(let s=0;s<t.length;s+=1)this[e].appendChild(t[s]);else this[e].appendChild(t)}return this},prepend:function(e){let t,s;for(t=0;t<this.length;t+=1)if("string"==typeof e){const i=G.createElement("div");for(i.innerHTML=e,s=i.childNodes.length-1;s>=0;s-=1)this[t].insertBefore(i.childNodes[s],this[t].childNodes[0])}else if(e instanceof X)for(s=0;s<e.length;s+=1)this[t].insertBefore(e[s],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&Y(this[0].nextElementSibling).is(e)?new X([this[0].nextElementSibling]):new X([]):this[0].nextElementSibling?new X([this[0].nextElementSibling]):new X([]):new X([])},nextAll:function(e){const t=[];let s=this[0];if(!s)return new X([]);for(;s.nextElementSibling;){const i=s.nextElementSibling;e?Y(i).is(e)&&t.push(i):t.push(i),s=i}return new X(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&Y(t.previousElementSibling).is(e)?new X([t.previousElementSibling]):new X([]):t.previousElementSibling?new X([t.previousElementSibling]):new X([])}return new X([])},prevAll:function(e){const t=[];let s=this[0];if(!s)return new X([]);for(;s.previousElementSibling;){const i=s.previousElementSibling;e?Y(i).is(e)&&t.push(i):t.push(i),s=i}return new X(t)},parent:function(e){const t=[];for(let s=0;s<this.length;s+=1)null!==this[s].parentNode&&(e?Y(this[s].parentNode).is(e)&&t.push(this[s].parentNode):t.push(this[s].parentNode));return Y(F(t))},parents:function(e){const t=[];for(let s=0;s<this.length;s+=1){let i=this[s].parentNode;for(;i;)e?Y(i).is(e)&&t.push(i):t.push(i),i=i.parentNode}return Y(F(t))},closest:function(e){let t=this;return void 0===e?new X([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let s=0;s<this.length;s+=1){const i=this[s].querySelectorAll(e);for(let e=0;e<i.length;e+=1)t.push(i[e])}return new X(t)},children:function(e){const t=[];for(let s=0;s<this.length;s+=1){const i=this[s].childNodes;for(let s=0;s<i.length;s+=1)e?1===i[s].nodeType&&Y(i[s]).is(e)&&t.push(i[s]):1===i[s].nodeType&&t.push(i[s])}return new X(F(t))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(...e){const t=this;let s,i;for(s=0;s<e.length;s+=1){const a=Y(e[s]);for(i=0;i<a.length;i+=1)t[t.length]=a[i],t.length+=1}return t},styles:function(){return this[0]?R.getComputedStyle(this[0],null):{}}};Object.keys(q).forEach(e=>{Y.fn[e]=Y.fn[e]||q[e]});const W={deleteProps(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(s){}try{delete t[e]}catch(s){}})},nextTick:(e,t=0)=>setTimeout(e,t),now:()=>Date.now(),getTranslate(e,t="x"){let s,i,a;const n=R.getComputedStyle(e,null);return R.WebKitCSSMatrix?(i=n.transform||n.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new R.WebKitCSSMatrix("none"===i?"":i)):(a=n.MozTransform||n.OTransform||n.MsTransform||n.msTransform||n.transform||n.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=a.toString().split(",")),"x"===t&&(i=R.WebKitCSSMatrix?a.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(i=R.WebKitCSSMatrix?a.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),i||0},parseUrlQuery(e){const t={};let s,i,a,n,r=e||R.location.href;if("string"==typeof r&&r.length)for(r=r.indexOf("?")>-1?r.replace(/\S*\?/,""):"",i=r.split("&").filter(e=>""!==e),n=i.length,s=0;s<n;s+=1)a=i[s].replace(/#\S+/g,"").split("="),t[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a[1])||"";return t},isObject:e=>"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object,extend(...e){const t=Object(e[0]);for(let s=1;s<e.length;s+=1){const i=e[s];if(null!=i){const e=Object.keys(Object(i));for(let s=0,a=e.length;s<a;s+=1){const a=e[s],n=Object.getOwnPropertyDescriptor(i,a);void 0!==n&&n.enumerable&&(W.isObject(t[a])&&W.isObject(i[a])?W.extend(t[a],i[a]):!W.isObject(t[a])&&W.isObject(i[a])?(t[a]={},W.extend(t[a],i[a])):t[a]=i[a])}}}return t}},U=function(){const e=G.createElement("div");return{touch:R.Modernizr&&!0===R.Modernizr.touch||!!(R.navigator.maxTouchPoints>0||"ontouchstart"in R||R.DocumentTouch&&G instanceof R.DocumentTouch),pointerEvents:!!(R.navigator.pointerEnabled||R.PointerEvent||"maxTouchPoints"in R.navigator&&R.navigator.maxTouchPoints>0),prefixedPointerEvents:!!R.navigator.msPointerEnabled,transition:function(){const t=e.style;return"transition"in t||"webkitTransition"in t||"MozTransition"in t}(),transforms3d:R.Modernizr&&!0===R.Modernizr.csstransforms3d||function(){const t=e.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){const t=e.style,s="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" ");for(let e=0;e<s.length;e+=1)if(s[e]in t)return!0;return!1}(),observer:"MutationObserver"in R||"WebkitMutationObserver"in R,passiveListener:function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});R.addEventListener("testPassiveListener",null,t)}catch(t){}return e}(),gestures:"ongesturestart"in R}}(),K={isIE:!!R.navigator.userAgent.match(/Trident/g)||!!R.navigator.userAgent.match(/MSIE/g),isEdge:!!R.navigator.userAgent.match(/Edge/g),isSafari:function(){const e=R.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(R.navigator.userAgent)};class Q{constructor(e={}){const t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach(e=>{t.on(e,t.params.on[e])})}on(e,t,s){const i=this;if("function"!=typeof t)return i;const a=s?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][a](t)}),i}once(e,t,s){const i=this;if("function"!=typeof t)return i;function a(...s){t.apply(i,s),i.off(e,a),a.f7proxy&&delete a.f7proxy}return a.f7proxy=t,i.on(e,a,s)}off(e,t){const s=this;return s.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].length&&s.eventsListeners[e].forEach((i,a)=>{(i===t||i.f7proxy&&i.f7proxy===t)&&s.eventsListeners[e].splice(a,1)})}),s):s}emit(...e){const t=this;if(!t.eventsListeners)return t;let s,i,a;"string"==typeof e[0]||Array.isArray(e[0])?(s=e[0],i=e.slice(1,e.length),a=t):(s=e[0].events,i=e[0].data,a=e[0].context||t);return(Array.isArray(s)?s:s.split(" ")).forEach(e=>{if(t.eventsListeners&&t.eventsListeners[e]){const s=[];t.eventsListeners[e].forEach(e=>{s.push(e)}),s.forEach(e=>{e.apply(a,i)})}}),t}useModulesParams(e){const t=this;t.modules&&Object.keys(t.modules).forEach(s=>{const i=t.modules[s];i.params&&W.extend(e,i.params)})}useModules(e={}){const t=this;t.modules&&Object.keys(t.modules).forEach(s=>{const i=t.modules[s],a=e[s]||{};i.instance&&Object.keys(i.instance).forEach(e=>{const s=i.instance[e];t[e]="function"==typeof s?s.bind(t):s}),i.on&&t.on&&Object.keys(i.on).forEach(e=>{t.on(e,i.on[e])}),i.create&&i.create.bind(t)(a)})}static set components(e){this.use&&this.use(e)}static installModule(e,...t){const s=this;s.prototype.modules||(s.prototype.modules={});const i=e.name||`${Object.keys(s.prototype.modules).length}_${W.now()}`;return s.prototype.modules[i]=e,e.proto&&Object.keys(e.proto).forEach(t=>{s.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(t=>{s[t]=e.static[t]}),e.install&&e.install.apply(s,t),s}static use(e,...t){const s=this;return Array.isArray(e)?(e.forEach(e=>s.installModule(e)),s):s.installModule(e,...t)}}var Z={updateSize:function(){const e=this;let t,s;const i=e.$el;t=void 0!==e.params.width?e.params.width:i[0].clientWidth,s=void 0!==e.params.height?e.params.height:i[0].clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),s=s-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),W.extend(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this,t=e.params,{$wrapperEl:s,size:i,rtlTranslate:a,wrongRTL:n}=e,r=e.virtual&&t.virtual.enabled,o=r?e.virtual.slides.length:e.slides.length,l=s.children("."+e.params.slideClass),d=r?e.virtual.slides.length:l.length;let c=[];const p=[],u=[];let h=t.slidesOffsetBefore;"function"==typeof h&&(h=t.slidesOffsetBefore.call(e));let f=t.slidesOffsetAfter;"function"==typeof f&&(f=t.slidesOffsetAfter.call(e));const m=e.snapGrid.length,g=e.snapGrid.length;let v,b,y=t.spaceBetween,w=-h,x=0,E=0;if(void 0===i)return;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*i),e.virtualSize=-y,a?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(v=Math.floor(d/t.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(v=Math.max(v,t.slidesPerView*t.slidesPerColumn)));const S=t.slidesPerColumn,T=v/S,C=Math.floor(d/t.slidesPerColumn);for(let k=0;k<d;k+=1){b=0;const s=l.eq(k);if(t.slidesPerColumn>1){let i,a,n;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)a=Math.floor(k/S),n=k-a*S,(a>C||a===C&&n===S-1)&&(n+=1,n>=S&&(n=0,a+=1));else{const e=Math.floor(k/t.slidesPerGroup);n=Math.floor(k/t.slidesPerView)-e*t.slidesPerColumn,a=k-n*t.slidesPerView-e*t.slidesPerView}i=a+n*v/S,s.css({"-webkit-box-ordinal-group":i,"-moz-box-ordinal-group":i,"-ms-flex-order":i,"-webkit-order":i,order:i})}else n=Math.floor(k/T),a=k-n*T;s.css("margin-"+(e.isHorizontal()?"top":"left"),0!==n&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",a).attr("data-swiper-row",n)}if("none"!==s.css("display")){if("auto"===t.slidesPerView){const i=R.getComputedStyle(s[0],null),a=s[0].style.transform,n=s[0].style.webkitTransform;if(a&&(s[0].style.transform="none"),n&&(s[0].style.webkitTransform="none"),t.roundLengths)b=e.isHorizontal()?s.outerWidth(!0):s.outerHeight(!0);else if(e.isHorizontal()){const e=parseFloat(i.getPropertyValue("width")),t=parseFloat(i.getPropertyValue("padding-left")),s=parseFloat(i.getPropertyValue("padding-right")),a=parseFloat(i.getPropertyValue("margin-left")),n=parseFloat(i.getPropertyValue("margin-right")),r=i.getPropertyValue("box-sizing");b=r&&"border-box"===r&&!K.isIE?e+a+n:e+t+s+a+n}else{const e=parseFloat(i.getPropertyValue("height")),t=parseFloat(i.getPropertyValue("padding-top")),s=parseFloat(i.getPropertyValue("padding-bottom")),a=parseFloat(i.getPropertyValue("margin-top")),n=parseFloat(i.getPropertyValue("margin-bottom")),r=i.getPropertyValue("box-sizing");b=r&&"border-box"===r&&!K.isIE?e+a+n:e+t+s+a+n}a&&(s[0].style.transform=a),n&&(s[0].style.webkitTransform=n),t.roundLengths&&(b=Math.floor(b))}else b=(i-(t.slidesPerView-1)*y)/t.slidesPerView,t.roundLengths&&(b=Math.floor(b)),l[k]&&(e.isHorizontal()?l[k].style.width=b+"px":l[k].style.height=b+"px");l[k]&&(l[k].swiperSlideSize=b),u.push(b),t.centeredSlides?(w=w+b/2+x/2+y,0===x&&0!==k&&(w=w-i/2-y),0===k&&(w=w-i/2-y),Math.abs(w)<.001&&(w=0),t.roundLengths&&(w=Math.floor(w)),E%t.slidesPerGroup==0&&c.push(w),p.push(w)):(t.roundLengths&&(w=Math.floor(w)),E%t.slidesPerGroup==0&&c.push(w),p.push(w),w=w+b+y),e.virtualSize+=b+y,x=b,E+=1}}let $;if(e.virtualSize=Math.max(e.virtualSize,i)+f,a&&n&&("slide"===t.effect||"coverflow"===t.effect)&&s.css({width:e.virtualSize+t.spaceBetween+"px"}),U.flexbox&&!t.setWrapperSize||(e.isHorizontal()?s.css({width:e.virtualSize+t.spaceBetween+"px"}):s.css({height:e.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(e.virtualSize=(b+t.spaceBetween)*v,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?s.css({width:e.virtualSize+t.spaceBetween+"px"}):s.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){$=[];for(let s=0;s<c.length;s+=1){let i=c[s];t.roundLengths&&(i=Math.floor(i)),c[s]<e.virtualSize+c[0]&&$.push(i)}c=$}if(!t.centeredSlides){$=[];for(let s=0;s<c.length;s+=1){let a=c[s];t.roundLengths&&(a=Math.floor(a)),c[s]<=e.virtualSize-i&&$.push(a)}c=$,Math.floor(e.virtualSize-i)-Math.floor(c[c.length-1])>1&&c.push(e.virtualSize-i)}if(0===c.length&&(c=[0]),0!==t.spaceBetween&&(e.isHorizontal()?a?l.css({marginLeft:y+"px"}):l.css({marginRight:y+"px"}):l.css({marginBottom:y+"px"})),t.centerInsufficientSlides){let e=0;if(u.forEach(s=>{e+=s+(t.spaceBetween?t.spaceBetween:0)}),e-=t.spaceBetween,e<i){const t=(i-e)/2;c.forEach((e,s)=>{c[s]=e-t}),p.forEach((e,s)=>{p[s]=e+t})}}W.extend(e,{slides:l,snapGrid:c,slidesGrid:p,slidesSizesGrid:u}),d!==o&&e.emit("slidesLengthChange"),c.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==g&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()},updateAutoHeight:function(e){const t=this,s=[];let i,a=0;if("number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed),"auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length)break;s.push(t.slides.eq(e)[0])}else s.push(t.slides.eq(t.activeIndex)[0]);for(i=0;i<s.length;i+=1)if(void 0!==s[i]){const e=s[i].offsetHeight;a=e>a?e:a}a&&t.$wrapperEl.css("height",a+"px")},updateSlidesOffset:function(){const e=this,t=e.slides;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,s=t.params,{slides:i,rtlTranslate:a}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;a&&(n=e),i.removeClass(s.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let r=0;r<i.length;r+=1){const e=i[r],o=(n+(s.centeredSlides?t.minTranslate():0)-e.swiperSlideOffset)/(e.swiperSlideSize+s.spaceBetween);if(s.watchSlidesVisibility){const a=-(n-e.swiperSlideOffset),o=a+t.slidesSizesGrid[r];(a>=0&&a<t.size-1||o>1&&o<=t.size||a<=0&&o>=t.size)&&(t.visibleSlides.push(e),t.visibleSlidesIndexes.push(r),i.eq(r).addClass(s.slideVisibleClass))}e.progress=a?-o:o}t.visibleSlides=Y(t.visibleSlides)},updateProgress:function(e=this&&this.translate||0){const t=this,s=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:n,isEnd:r}=t;const o=n,l=r;0===i?(a=0,n=!0,r=!0):(a=(e-t.minTranslate())/i,n=a<=0,r=a>=1),W.extend(t,{progress:a,isBeginning:n,isEnd:r}),(s.watchSlidesProgress||s.watchSlidesVisibility)&&t.updateSlidesProgress(e),n&&!o&&t.emit("reachBeginning toEdge"),r&&!l&&t.emit("reachEnd toEdge"),(o&&!n||l&&!r)&&t.emit("fromEdge"),t.emit("progress",a)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,$wrapperEl:i,activeIndex:a,realIndex:n}=e,r=e.virtual&&s.virtual.enabled;let o;t.removeClass(`${s.slideActiveClass} ${s.slideNextClass} ${s.slidePrevClass} ${s.slideDuplicateActiveClass} ${s.slideDuplicateNextClass} ${s.slideDuplicatePrevClass}`),o=r?e.$wrapperEl.find(`.${s.slideClass}[data-swiper-slide-index="${a}"]`):t.eq(a),o.addClass(s.slideActiveClass),s.loop&&(o.hasClass(s.slideDuplicateClass)?i.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${n}"]`).addClass(s.slideDuplicateActiveClass):i.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${n}"]`).addClass(s.slideDuplicateActiveClass));let l=o.nextAll("."+s.slideClass).eq(0).addClass(s.slideNextClass);s.loop&&0===l.length&&(l=t.eq(0),l.addClass(s.slideNextClass));let d=o.prevAll("."+s.slideClass).eq(0).addClass(s.slidePrevClass);s.loop&&0===d.length&&(d=t.eq(-1),d.addClass(s.slidePrevClass)),s.loop&&(l.hasClass(s.slideDuplicateClass)?i.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass):i.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass),d.hasClass(s.slideDuplicateClass)?i.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass):i.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass))},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:i,snapGrid:a,params:n,activeIndex:r,realIndex:o,snapIndex:l}=t;let d,c=e;if(void 0===c){for(let e=0;e<i.length;e+=1)void 0!==i[e+1]?s>=i[e]&&s<i[e+1]-(i[e+1]-i[e])/2?c=e:s>=i[e]&&s<i[e+1]&&(c=e+1):s>=i[e]&&(c=e);n.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(d=a.indexOf(s)>=0?a.indexOf(s):Math.floor(c/n.slidesPerGroup),d>=a.length&&(d=a.length-1),c===r)return void(d!==l&&(t.snapIndex=d,t.emit("snapIndexChange")));const p=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10);W.extend(t,{snapIndex:d,realIndex:p,previousIndex:r,activeIndex:c}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==p&&t.emit("realIndexChange"),(t.initialized||t.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,s=t.params,i=Y(e.target).closest("."+s.slideClass)[0];let a=!1;if(i)for(let n=0;n<t.slides.length;n+=1)t.slides[n]===i&&(a=!0);if(!i||!a)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(Y(i).attr("data-swiper-slide-index"),10):t.clickedIndex=Y(i).index(),s.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var J={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:s,translate:i,$wrapperEl:a}=this;if(t.virtualTranslate)return s?-i:i;let n=W.getTranslate(a[0],e);return s&&(n=-n),n||0},setTranslate:function(e,t){const s=this,{rtlTranslate:i,params:a,$wrapperEl:n,progress:r}=s;let o,l=0,d=0;s.isHorizontal()?l=i?-e:e:d=e,a.roundLengths&&(l=Math.floor(l),d=Math.floor(d)),a.virtualTranslate||(U.transforms3d?n.transform(`translate3d(${l}px, ${d}px, 0px)`):n.transform(`translate(${l}px, ${d}px)`)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?l:d;const c=s.maxTranslate()-s.minTranslate();o=0===c?0:(e-s.minTranslate())/c,o!==r&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var ee={setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const s=this,{activeIndex:i,params:a,previousIndex:n}=s;a.autoHeight&&s.updateAutoHeight();let r=t;if(r||(r=i>n?"next":i<n?"prev":"reset"),s.emit("transitionStart"),e&&i!==n){if("reset"===r)return void s.emit("slideResetTransitionStart");s.emit("slideChangeTransitionStart"),"next"===r?s.emit("slideNextTransitionStart"):s.emit("slidePrevTransitionStart")}},transitionEnd:function(e=!0,t){const s=this,{activeIndex:i,previousIndex:a}=s;s.animating=!1,s.setTransition(0);let n=t;if(n||(n=i>a?"next":i<a?"prev":"reset"),s.emit("transitionEnd"),e&&i!==a){if("reset"===n)return void s.emit("slideResetTransitionEnd");s.emit("slideChangeTransitionEnd"),"next"===n?s.emit("slideNextTransitionEnd"):s.emit("slidePrevTransitionEnd")}}};var te={slideTo:function(e=0,t=this.params.speed,s=!0,i){const a=this;let n=e;n<0&&(n=0);const{params:r,snapGrid:o,slidesGrid:l,previousIndex:d,activeIndex:c,rtlTranslate:p}=a;if(a.animating&&r.preventInteractionOnTransition)return!1;let u=Math.floor(n/r.slidesPerGroup);u>=o.length&&(u=o.length-1),(c||r.initialSlide||0)===(d||0)&&s&&a.emit("beforeSlideChangeStart");const h=-o[u];if(a.updateProgress(h),r.normalizeSlideIndex)for(let m=0;m<l.length;m+=1)-Math.floor(100*h)>=Math.floor(100*l[m])&&(n=m);if(a.initialized&&n!==c){if(!a.allowSlideNext&&h<a.translate&&h<a.minTranslate())return!1;if(!a.allowSlidePrev&&h>a.translate&&h>a.maxTranslate()&&(c||0)!==n)return!1}let f;return f=n>c?"next":n<c?"prev":"reset",p&&-h===a.translate||!p&&h===a.translate?(a.updateActiveIndex(n),r.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==r.effect&&a.setTranslate(h),"reset"!==f&&(a.transitionStart(s,f),a.transitionEnd(s,f)),!1):(0!==t&&U.transition?(a.setTransition(t),a.setTranslate(h),a.updateActiveIndex(n),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,i),a.transitionStart(s,f),a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(s,f))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd))):(a.setTransition(0),a.setTranslate(h),a.updateActiveIndex(n),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,i),a.transitionStart(s,f),a.transitionEnd(s,f)),!0)},slideToLoop:function(e=0,t=this.params.speed,s=!0,i){const a=this;let n=e;return a.params.loop&&(n+=a.loopedSlides),a.slideTo(n,t,s,i)},slideNext:function(e=this.params.speed,t=!0,s){const i=this,{params:a,animating:n}=i;return a.loop?!n&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,i.slideTo(i.activeIndex+a.slidesPerGroup,e,t,s)):i.slideTo(i.activeIndex+a.slidesPerGroup,e,t,s)},slidePrev:function(e=this.params.speed,t=!0,s){const i=this,{params:a,animating:n,snapGrid:r,slidesGrid:o,rtlTranslate:l}=i;if(a.loop){if(n)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const c=d(l?i.translate:-i.translate),p=r.map(e=>d(e)),u=(o.map(e=>d(e)),r[p.indexOf(c)],r[p.indexOf(c)-1]);let h;return void 0!==u&&(h=o.indexOf(u),h<0&&(h=i.activeIndex-1)),i.slideTo(h,e,t,s)},slideReset:function(e=this.params.speed,t=!0,s){return this.slideTo(this.activeIndex,e,t,s)},slideToClosest:function(e=this.params.speed,t=!0,s){const i=this;let a=i.activeIndex;const n=Math.floor(a/i.params.slidesPerGroup);if(n<i.snapGrid.length-1){const e=i.rtlTranslate?i.translate:-i.translate,t=i.snapGrid[n];e-t>(i.snapGrid[n+1]-t)/2&&(a=i.params.slidesPerGroup)}return i.slideTo(a,e,t,s)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:s}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let a,n=e.clickedIndex;if(t.loop){if(e.animating)return;a=parseInt(Y(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?n<e.loopedSlides-i/2||n>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),n=s.children(`.${t.slideClass}[data-swiper-slide-index="${a}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),W.nextTick(()=>{e.slideTo(n)})):e.slideTo(n):n>e.slides.length-i?(e.loopFix(),n=s.children(`.${t.slideClass}[data-swiper-slide-index="${a}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),W.nextTick(()=>{e.slideTo(n)})):e.slideTo(n)}else e.slideTo(n)}};var se={loopCreate:function(){const e=this,{params:t,$wrapperEl:s}=e;s.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let i=s.children("."+t.slideClass);if(t.loopFillGroupWithBlank){const e=t.slidesPerGroup-i.length%t.slidesPerGroup;if(e!==t.slidesPerGroup){for(let i=0;i<e;i+=1){const e=Y(G.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);s.append(e)}i=s.children("."+t.slideClass)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=i.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>i.length&&(e.loopedSlides=i.length);const a=[],n=[];i.each((t,s)=>{const r=Y(s);t<e.loopedSlides&&n.push(s),t<i.length&&t>=i.length-e.loopedSlides&&a.push(s),r.attr("data-swiper-slide-index",t)});for(let r=0;r<n.length;r+=1)s.append(Y(n[r].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let r=a.length-1;r>=0;r-=1)s.prepend(Y(a[r].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){const e=this,{params:t,activeIndex:s,slides:i,loopedSlides:a,allowSlidePrev:n,allowSlideNext:r,snapGrid:o,rtlTranslate:l}=e;let d;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-o[s]-e.getTranslate();if(s<a){d=i.length-3*a+s,d+=a;e.slideTo(d,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}else if("auto"===t.slidesPerView&&s>=2*a||s>=i.length-a){d=-i.length+s+a,d+=a;e.slideTo(d,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}e.allowSlidePrev=n,e.allowSlideNext=r},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:s}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),s.removeAttr("data-swiper-slide-index")}};var ie={setGrabCursor:function(e){if(U.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)return;const t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){U.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}};var ae={appendSlide:function(e){const t=this,{$wrapperEl:s,params:i}=t;if(i.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let a=0;a<e.length;a+=1)e[a]&&s.append(e[a]);else s.append(e);i.loop&&t.loopCreate(),i.observer&&U.observer||t.update()},prependSlide:function(e){const t=this,{params:s,$wrapperEl:i,activeIndex:a}=t;s.loop&&t.loopDestroy();let n=a+1;if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&i.prepend(e[t]);n=a+e.length}else i.prepend(e);s.loop&&t.loopCreate(),s.observer&&U.observer||t.update(),t.slideTo(n,0,!1)},addSlide:function(e,t){const s=this,{$wrapperEl:i,params:a,activeIndex:n}=s;let r=n;a.loop&&(r-=s.loopedSlides,s.loopDestroy(),s.slides=i.children("."+a.slideClass));const o=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=o)return void s.appendSlide(t);let l=r>e?r+1:r;const d=[];for(let c=o-1;c>=e;c-=1){const e=s.slides.eq(c);e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&i.append(t[e]);l=r>e?r+t.length:r}else i.append(t);for(let c=0;c<d.length;c+=1)i.append(d[c]);a.loop&&s.loopCreate(),a.observer&&U.observer||s.update(),a.loop?s.slideTo(l+s.loopedSlides,0,!1):s.slideTo(l,0,!1)},removeSlide:function(e){const t=this,{params:s,$wrapperEl:i,activeIndex:a}=t;let n=a;s.loop&&(n-=t.loopedSlides,t.loopDestroy(),t.slides=i.children("."+s.slideClass));let r,o=n;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)r=e[s],t.slides[r]&&t.slides.eq(r).remove(),r<o&&(o-=1);o=Math.max(o,0)}else r=e,t.slides[r]&&t.slides.eq(r).remove(),r<o&&(o-=1),o=Math.max(o,0);s.loop&&t.loopCreate(),s.observer&&U.observer||t.update(),s.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)},removeAllSlides:function(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}};const ne=function(){const e=R.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:R.cordova||R.phonegap,phonegap:R.cordova||R.phonegap},s=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),i=e.match(/(Android);?[\s\/]+([\d.]+)?/),a=e.match(/(iPad).*OS\s([\d_]+)/),n=e.match(/(iPod)(.*OS\s([\d_]+))?/),r=!a&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(s&&(t.os="windows",t.osVersion=s[2],t.windows=!0),i&&!s&&(t.os="android",t.osVersion=i[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(a||r||n)&&(t.os="ios",t.ios=!0),r&&!n&&(t.osVersion=r[2].replace(/_/g,"."),t.iphone=!0),a&&(t.osVersion=a[2].replace(/_/g,"."),t.ipad=!0),n&&(t.osVersion=n[3]?n[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(r||a||n)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){const e=t.osVersion.split("."),s=G.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(n||r)&&(1*e[0]==7?1*e[1]>=1:1*e[0]>7)&&s&&s.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=R.devicePixelRatio||1,t}();function re(e){const t=this,s=t.touchEventsData,{params:i,touches:a}=t;if(t.animating&&i.preventInteractionOnTransition)return;let n=e;if(n.originalEvent&&(n=n.originalEvent),s.isTouchEvent="touchstart"===n.type,!s.isTouchEvent&&"which"in n&&3===n.which)return;if(!s.isTouchEvent&&"button"in n&&n.button>0)return;if(s.isTouched&&s.isMoved)return;if(i.noSwiping&&Y(n.target).closest(i.noSwipingSelector?i.noSwipingSelector:"."+i.noSwipingClass)[0])return void(t.allowClick=!0);if(i.swipeHandler&&!Y(n).closest(i.swipeHandler)[0])return;a.currentX="touchstart"===n.type?n.targetTouches[0].pageX:n.pageX,a.currentY="touchstart"===n.type?n.targetTouches[0].pageY:n.pageY;const r=a.currentX,o=a.currentY,l=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,d=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(!l||!(r<=d||r>=R.screen.width-d)){if(W.extend(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=r,a.startY=o,s.touchStartTime=W.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(s.allowThresholdMove=!1),"touchstart"!==n.type){let e=!0;Y(n.target).is(s.formElements)&&(e=!1),G.activeElement&&Y(G.activeElement).is(s.formElements)&&G.activeElement!==n.target&&G.activeElement.blur();const a=e&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||a)&&n.preventDefault()}t.emit("touchStart",n)}}function oe(e){const t=this,s=t.touchEventsData,{params:i,touches:a,rtlTranslate:n}=t;let r=e;if(r.originalEvent&&(r=r.originalEvent),!s.isTouched)return void(s.startMoving&&s.isScrolling&&t.emit("touchMoveOpposite",r));if(s.isTouchEvent&&"mousemove"===r.type)return;const o="touchmove"===r.type?r.targetTouches[0].pageX:r.pageX,l="touchmove"===r.type?r.targetTouches[0].pageY:r.pageY;if(r.preventedByNestedSwiper)return a.startX=o,void(a.startY=l);if(!t.allowTouchMove)return t.allowClick=!1,void(s.isTouched&&(W.extend(a,{startX:o,startY:l,currentX:o,currentY:l}),s.touchStartTime=W.now()));if(s.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(t.isVertical()){if(l<a.startY&&t.translate<=t.maxTranslate()||l>a.startY&&t.translate>=t.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(o<a.startX&&t.translate<=t.maxTranslate()||o>a.startX&&t.translate>=t.minTranslate())return;if(s.isTouchEvent&&G.activeElement&&r.target===G.activeElement&&Y(r.target).is(s.formElements))return s.isMoved=!0,void(t.allowClick=!1);if(s.allowTouchCallbacks&&t.emit("touchMove",r),r.targetTouches&&r.targetTouches.length>1)return;a.currentX=o,a.currentY=l;const d=a.currentX-a.startX,c=a.currentY-a.startY;if(t.params.threshold&&Math.sqrt(d**2+c**2)<t.params.threshold)return;if(void 0===s.isScrolling){let e;t.isHorizontal()&&a.currentY===a.startY||t.isVertical()&&a.currentX===a.startX?s.isScrolling=!1:d*d+c*c>=25&&(e=180*Math.atan2(Math.abs(c),Math.abs(d))/Math.PI,s.isScrolling=t.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(s.isScrolling&&t.emit("touchMoveOpposite",r),void 0===s.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(s.startMoving=!0)),s.isScrolling)return void(s.isTouched=!1);if(!s.startMoving)return;t.allowClick=!1,r.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&r.stopPropagation(),s.isMoved||(i.loop&&t.loopFix(),s.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,!i.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",r)),t.emit("sliderMove",r),s.isMoved=!0;let p=t.isHorizontal()?d:c;a.diff=p,p*=i.touchRatio,n&&(p=-p),t.swipeDirection=p>0?"prev":"next",s.currentTranslate=p+s.startTranslate;let u=!0,h=i.resistanceRatio;if(i.touchReleaseOnEdges&&(h=0),p>0&&s.currentTranslate>t.minTranslate()?(u=!1,i.resistance&&(s.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+s.startTranslate+p)**h)):p<0&&s.currentTranslate<t.maxTranslate()&&(u=!1,i.resistance&&(s.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-s.startTranslate-p)**h)),u&&(r.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),i.threshold>0){if(!(Math.abs(p)>i.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,s.currentTranslate=s.startTranslate,void(a.diff=t.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}i.followFinger&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&(0===s.velocities.length&&s.velocities.push({position:a[t.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:a[t.isHorizontal()?"currentX":"currentY"],time:W.now()})),t.updateProgress(s.currentTranslate),t.setTranslate(s.currentTranslate))}function le(e){const t=this,s=t.touchEventsData,{params:i,touches:a,rtlTranslate:n,$wrapperEl:r,slidesGrid:o,snapGrid:l}=t;let d=e;if(d.originalEvent&&(d=d.originalEvent),s.allowTouchCallbacks&&t.emit("touchEnd",d),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&i.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);i.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=W.now(),p=c-s.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(d),t.emit("tap",d),p<300&&c-s.lastClickTime>300&&(s.clickTimeout&&clearTimeout(s.clickTimeout),s.clickTimeout=W.nextTick(()=>{t&&!t.destroyed&&t.emit("click",d)},300)),p<300&&c-s.lastClickTime<300&&(s.clickTimeout&&clearTimeout(s.clickTimeout),t.emit("doubleTap",d))),s.lastClickTime=W.now(),W.nextTick(()=>{t.destroyed||(t.allowClick=!0)}),!s.isTouched||!s.isMoved||!t.swipeDirection||0===a.diff||s.currentTranslate===s.startTranslate)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let u;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,u=i.followFinger?n?t.translate:-t.translate:-s.currentTranslate,i.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(i.freeModeMomentum){if(s.velocities.length>1){const e=s.velocities.pop(),a=s.velocities.pop(),n=e.position-a.position,r=e.time-a.time;t.velocity=n/r,t.velocity/=2,Math.abs(t.velocity)<i.freeModeMinimumVelocity&&(t.velocity=0),(r>150||W.now()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freeModeMomentumVelocityRatio,s.velocities.length=0;let e=1e3*i.freeModeMomentumRatio;const a=t.velocity*e;let o=t.translate+a;n&&(o=-o);let d,c=!1;const p=20*Math.abs(t.velocity)*i.freeModeMomentumBounceRatio;let u;if(o<t.maxTranslate())i.freeModeMomentumBounce?(o+t.maxTranslate()<-p&&(o=t.maxTranslate()-p),d=t.maxTranslate(),c=!0,s.allowMomentumBounce=!0):o=t.maxTranslate(),i.loop&&i.centeredSlides&&(u=!0);else if(o>t.minTranslate())i.freeModeMomentumBounce?(o-t.minTranslate()>p&&(o=t.minTranslate()+p),d=t.minTranslate(),c=!0,s.allowMomentumBounce=!0):o=t.minTranslate(),i.loop&&i.centeredSlides&&(u=!0);else if(i.freeModeSticky){let e;for(let t=0;t<l.length;t+=1)if(l[t]>-o){e=t;break}o=Math.abs(l[e]-o)<Math.abs(l[e-1]-o)||"next"===t.swipeDirection?l[e]:l[e-1],o=-o}if(u&&t.once("transitionEnd",()=>{t.loopFix()}),0!==t.velocity)e=n?Math.abs((-o-t.translate)/t.velocity):Math.abs((o-t.translate)/t.velocity);else if(i.freeModeSticky)return void t.slideToClosest();i.freeModeMomentumBounce&&c?(t.updateProgress(d),t.setTransition(e),t.setTranslate(o),t.transitionStart(!0,t.swipeDirection),t.animating=!0,r.transitionEnd(()=>{t&&!t.destroyed&&s.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(i.speed),t.setTranslate(d),r.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(o),t.setTransition(e),t.setTranslate(o),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,r.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(o),t.updateActiveIndex(),t.updateSlidesClasses()}else if(i.freeModeSticky)return void t.slideToClosest();return void((!i.freeModeMomentum||p>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses()))}let h=0,f=t.slidesSizesGrid[0];for(let g=0;g<o.length;g+=i.slidesPerGroup)void 0!==o[g+i.slidesPerGroup]?u>=o[g]&&u<o[g+i.slidesPerGroup]&&(h=g,f=o[g+i.slidesPerGroup]-o[g]):u>=o[g]&&(h=g,f=o[o.length-1]-o[o.length-2]);const m=(u-o[h])/f;if(p>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(m>=i.longSwipesRatio?t.slideTo(h+i.slidesPerGroup):t.slideTo(h)),"prev"===t.swipeDirection&&(m>1-i.longSwipesRatio?t.slideTo(h+i.slidesPerGroup):t.slideTo(h))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(h+i.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(h)}}function de(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:a,snapGrid:n}=e;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){const s=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=a,e.allowSlideNext=i,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function ce(e){const t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}var pe={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};const ue={update:Z,translate:J,transition:ee,slide:te,loop:se,grabCursor:ie,manipulation:ae,events:{attachEvents:function(){const e=this,{params:t,touchEvents:s,el:i,wrapperEl:a}=e;e.onTouchStart=re.bind(e),e.onTouchMove=oe.bind(e),e.onTouchEnd=le.bind(e),e.onClick=ce.bind(e);const n="container"===t.touchEventsTarget?i:a,r=!!t.nested;if(U.touch||!U.pointerEvents&&!U.prefixedPointerEvents){if(U.touch){const i=!("touchstart"!==s.start||!U.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(s.start,e.onTouchStart,i),n.addEventListener(s.move,e.onTouchMove,U.passiveListener?{passive:!1,capture:r}:r),n.addEventListener(s.end,e.onTouchEnd,i)}(t.simulateTouch&&!ne.ios&&!ne.android||t.simulateTouch&&!U.touch&&ne.ios)&&(n.addEventListener("mousedown",e.onTouchStart,!1),G.addEventListener("mousemove",e.onTouchMove,r),G.addEventListener("mouseup",e.onTouchEnd,!1))}else n.addEventListener(s.start,e.onTouchStart,!1),G.addEventListener(s.move,e.onTouchMove,r),G.addEventListener(s.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&n.addEventListener("click",e.onClick,!0),e.on(ne.ios||ne.android?"resize orientationchange observerUpdate":"resize observerUpdate",de,!0)},detachEvents:function(){const e=this,{params:t,touchEvents:s,el:i,wrapperEl:a}=e,n="container"===t.touchEventsTarget?i:a,r=!!t.nested;if(U.touch||!U.pointerEvents&&!U.prefixedPointerEvents){if(U.touch){const i=!("onTouchStart"!==s.start||!U.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};n.removeEventListener(s.start,e.onTouchStart,i),n.removeEventListener(s.move,e.onTouchMove,r),n.removeEventListener(s.end,e.onTouchEnd,i)}(t.simulateTouch&&!ne.ios&&!ne.android||t.simulateTouch&&!U.touch&&ne.ios)&&(n.removeEventListener("mousedown",e.onTouchStart,!1),G.removeEventListener("mousemove",e.onTouchMove,r),G.removeEventListener("mouseup",e.onTouchEnd,!1))}else n.removeEventListener(s.start,e.onTouchStart,!1),G.removeEventListener(s.move,e.onTouchMove,r),G.removeEventListener(s.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&n.removeEventListener("click",e.onClick,!0),e.off(ne.ios||ne.android?"resize orientationchange observerUpdate":"resize observerUpdate",de)}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:s,loopedSlides:i=0,params:a}=e,n=a.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const r=e.getBreakpoint(n);if(r&&e.currentBreakpoint!==r){const o=r in n?n[r]:void 0;o&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(e=>{const t=o[e];void 0!==t&&(o[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")});const l=o||e.originalParams,d=l.direction&&l.direction!==a.direction,c=a.loop&&(l.slidesPerView!==a.slidesPerView||d);d&&s&&e.changeDirection(),W.extend(e.params,l),W.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=r,c&&s&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",l)}},getBreakpoint:function(e){const t=this;if(!e)return;let s=!1;const i=[];Object.keys(e).forEach(e=>{i.push(e)}),i.sort((e,t)=>parseInt(e,10)-parseInt(t,10));for(let a=0;a<i.length;a+=1){const e=i[a];t.params.breakpointsInverse?e<=R.innerWidth&&(s=e):e>=R.innerWidth&&!s&&(s=e)}return s||"max"}},checkOverflow:{checkOverflow:function(){const e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}},classes:{addClasses:function(){const{classNames:e,params:t,rtl:s,$el:i}=this,a=[];a.push("initialized"),a.push(t.direction),t.freeMode&&a.push("free-mode"),U.flexbox||a.push("no-flexbox"),t.autoHeight&&a.push("autoheight"),s&&a.push("rtl"),t.slidesPerColumn>1&&a.push("multirow"),ne.android&&a.push("android"),ne.ios&&a.push("ios"),(K.isIE||K.isEdge)&&(U.pointerEvents||U.prefixedPointerEvents)&&a.push("wp8-"+t.direction),a.forEach(s=>{e.push(t.containerModifierClass+s)}),i.addClass(e.join(" "))},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,s,i,a,n){let r;function o(){n&&n()}e.complete&&a?o():t?(r=new R.Image,r.onload=o,r.onerror=o,i&&(r.sizes=i),s&&(r.srcset=s),t&&(r.src=t)):o()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let s=0;s<e.imagesToLoad.length;s+=1){const i=e.imagesToLoad[s];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}}},he={};class fe extends Q{constructor(...e){let t,s;1===e.length&&e[0].constructor&&e[0].constructor===Object?s=e[0]:[t,s]=e,s||(s={}),s=W.extend({},s),t&&!s.el&&(s.el=t),super(s),Object.keys(ue).forEach(e=>{Object.keys(ue[e]).forEach(t=>{fe.prototype[t]||(fe.prototype[t]=ue[e][t])})});const i=this;void 0===i.modules&&(i.modules={}),Object.keys(i.modules).forEach(e=>{const t=i.modules[e];if(t.params){const e=Object.keys(t.params)[0],i=t.params[e];if("object"!=typeof i||null===i)return;if(!(e in s)||!("enabled"in i))return;!0===s[e]&&(s[e]={enabled:!0}),"object"!=typeof s[e]||"enabled"in s[e]||(s[e].enabled=!0),s[e]||(s[e]={enabled:!1})}});const a=W.extend({},pe);i.useModulesParams(a),i.params=W.extend({},a,he,s),i.originalParams=W.extend({},i.params),i.passedParams=W.extend({},s),i.$=Y;const n=Y(i.params.el);if(t=n[0],!t)return;if(n.length>1){const e=[];return n.each((t,i)=>{const a=W.extend({},s,{el:i});e.push(new fe(a))}),e}t.swiper=i,n.data("swiper",i);const r=n.children("."+i.params.wrapperClass);return W.extend(i,{$el:n,el:t,$wrapperEl:r,wrapperEl:r[0],classNames:[],slides:Y(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===i.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===r.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend"];let t=["mousedown","mousemove","mouseup"];return U.pointerEvents?t=["pointerdown","pointermove","pointerup"]:U.prefixedPointerEvents&&(t=["MSPointerDown","MSPointerMove","MSPointerUp"]),i.touchEventsTouch={start:e[0],move:e[1],end:e[2]},i.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},U.touch||!i.params.simulateTouch?i.touchEventsTouch:i.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:W.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.useModules(),i.params.init&&i.init(),i}slidesPerViewDynamic(){const{params:e,slides:t,slidesGrid:s,size:i,activeIndex:a}=this;let n=1;if(e.centeredSlides){let e,s=t[a].swiperSlideSize;for(let r=a+1;r<t.length;r+=1)t[r]&&!e&&(s+=t[r].swiperSlideSize,n+=1,s>i&&(e=!0));for(let r=a-1;r>=0;r-=1)t[r]&&!e&&(s+=t[r].swiperSlideSize,n+=1,s>i&&(e=!0))}else for(let r=a+1;r<t.length;r+=1)s[r]-s[a]<i&&(n+=1);return n}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let a;s.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(i(),e.params.autoHeight&&e.updateAutoHeight()):(a=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),a||i()),s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const s=this,i=s.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(s.$el.removeClass(`${s.params.containerModifierClass}${i} wp8-${i}`).addClass(`${s.params.containerModifierClass}${e}`),(K.isIE||K.isEdge)&&(U.pointerEvents||U.prefixedPointerEvents)&&s.$el.addClass(`${s.params.containerModifierClass}wp8-${e}`),s.params.direction=e,s.slides.each((t,s)=>{"vertical"===e?s.style.width="":s.style.height=""}),s.emit("changeDirection"),t&&s.update()),s}init(){const e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))}destroy(e=!0,t=!0){const s=this,{params:i,$el:a,$wrapperEl:n,slides:r}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),i.loop&&s.loopDestroy(),t&&(s.removeClasses(),a.removeAttr("style"),n.removeAttr("style"),r&&r.length&&r.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(e=>{s.off(e)}),!1!==e&&(s.$el[0].swiper=null,s.$el.data("swiper",null),W.deleteProps(s)),s.destroyed=!0),null}static extendDefaults(e){W.extend(he,e)}static get extendedDefaults(){return he}static get defaults(){return pe}static get Class(){return Q}static get $(){return Y}}var me={name:"device",proto:{device:ne},static:{device:ne}},ge={name:"support",proto:{support:U},static:{support:U}},ve={name:"browser",proto:{browser:K},static:{browser:K}},be={name:"resize",create(){const e=this;W.extend(e,{resize:{resizeHandler(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init(){R.addEventListener("resize",this.resize.resizeHandler),R.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy(){R.removeEventListener("resize",this.resize.resizeHandler),R.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}};const ye={func:R.MutationObserver||R.WebkitMutationObserver,attach(e,t={}){const s=this,i=new(0,ye.func)(e=>{if(1===e.length)return void s.emit("observerUpdate",e[0]);const t=function(){s.emit("observerUpdate",e[0])};R.requestAnimationFrame?R.requestAnimationFrame(t):R.setTimeout(t,0)});i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),s.observer.observers.push(i)},init(){const e=this;if(U.observer&&e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let s=0;s<t.length;s+=1)e.observer.attach(t[s])}e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy(){this.observer.observers.forEach(e=>{e.disconnect()}),this.observer.observers=[]}};var we={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){W.extend(this,{observer:{init:ye.init.bind(this),attach:ye.attach.bind(this),destroy:ye.destroy.bind(this),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const xe={update(e){const t=this,{slidesPerView:s,slidesPerGroup:i,centeredSlides:a}=t.params,{addSlidesBefore:n,addSlidesAfter:r}=t.params.virtual,{from:o,to:l,slides:d,slidesGrid:c,renderSlide:p,offset:u}=t.virtual;t.updateActiveIndex();const h=t.activeIndex||0;let f,m,g;f=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",a?(m=Math.floor(s/2)+i+n,g=Math.floor(s/2)+i+r):(m=s+(i-1)+n,g=i+r);const v=Math.max((h||0)-g,0),b=Math.min((h||0)+m,d.length-1),y=(t.slidesGrid[v]||0)-(t.slidesGrid[0]||0);function w(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(W.extend(t.virtual,{from:v,to:b,offset:y,slidesGrid:t.slidesGrid}),o===v&&l===b&&!e)return t.slidesGrid!==c&&y!==u&&t.slides.css(f,y+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:y,from:v,to:b,slides:function(){const e=[];for(let t=v;t<=b;t+=1)e.push(d[t]);return e}()}),void w();const x=[],E=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(let S=o;S<=l;S+=1)(S<v||S>b)&&t.$wrapperEl.find(`.${t.params.slideClass}[data-swiper-slide-index="${S}"]`).remove();for(let S=0;S<d.length;S+=1)S>=v&&S<=b&&(void 0===l||e?E.push(S):(S>l&&E.push(S),S<o&&x.push(S)));E.forEach(e=>{t.$wrapperEl.append(p(d[e],e))}),x.sort((e,t)=>t-e).forEach(e=>{t.$wrapperEl.prepend(p(d[e],e))}),t.$wrapperEl.children(".swiper-slide").css(f,y+"px"),w()},renderSlide(e,t){const s=this,i=s.params.virtual;if(i.cache&&s.virtual.cache[t])return s.virtual.cache[t];const a=i.renderSlide?Y(i.renderSlide.call(s,e,t)):Y(`<div class="${s.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`);return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",t),i.cache&&(s.virtual.cache[t]=a),a},appendSlide(e){const t=this;if("object"==typeof e&&"length"in e)for(let s=0;s<e.length;s+=1)e[s]&&t.virtual.slides.push(e[s]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide(e){const t=this,s=t.activeIndex;let i=s+1,a=1;if(Array.isArray(e)){for(let s=0;s<e.length;s+=1)e[s]&&t.virtual.slides.unshift(e[s]);i=s+e.length,a=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){const e=t.virtual.cache,s={};Object.keys(e).forEach(t=>{s[parseInt(t,10)+a]=e[t]}),t.virtual.cache=s}t.virtual.update(!0),t.slideTo(i,0)},removeSlide(e){const t=this;if(null==e)return;let s=t.activeIndex;if(Array.isArray(e))for(let i=e.length-1;i>=0;i-=1)t.virtual.slides.splice(e[i],1),t.params.virtual.cache&&delete t.virtual.cache[e[i]],e[i]<s&&(s-=1),s=Math.max(s,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<s&&(s-=1),s=Math.max(s,0);t.virtual.update(!0),t.slideTo(s,0)},removeAllSlides(){const e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}};var Ee={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){W.extend(this,{virtual:{update:xe.update.bind(this),appendSlide:xe.appendSlide.bind(this),prependSlide:xe.prependSlide.bind(this),removeSlide:xe.removeSlide.bind(this),removeAllSlides:xe.removeAllSlides.bind(this),renderSlide:xe.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit(){const e=this;if(!e.params.virtual.enabled)return;e.classNames.push(e.params.containerModifierClass+"virtual");const t={watchSlidesProgress:!0};W.extend(e.params,t),W.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()},setTranslate(){this.params.virtual.enabled&&this.virtual.update()}}};const Se={handle(e){const t=this,{rtlTranslate:s}=t;let i=e;i.originalEvent&&(i=i.originalEvent);const a=i.keyCode||i.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===a||t.isVertical()&&40===a||34===a))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===a||t.isVertical()&&38===a||33===a))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||G.activeElement&&G.activeElement.nodeName&&("input"===G.activeElement.nodeName.toLowerCase()||"textarea"===G.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===a||34===a||37===a||39===a||38===a||40===a)){let e=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;const i=R.innerWidth,a=R.innerHeight,n=t.$el.offset();s&&(n.left-=t.$el[0].scrollLeft);const r=[[n.left,n.top],[n.left+t.width,n.top],[n.left,n.top+t.height],[n.left+t.width,n.top+t.height]];for(let t=0;t<r.length;t+=1){const s=r[t];s[0]>=0&&s[0]<=i&&s[1]>=0&&s[1]<=a&&(e=!0)}if(!e)return}t.isHorizontal()?(33!==a&&34!==a&&37!==a&&39!==a||(i.preventDefault?i.preventDefault():i.returnValue=!1),(34!==a&&39!==a||s)&&(33!==a&&37!==a||!s)||t.slideNext(),(33!==a&&37!==a||s)&&(34!==a&&39!==a||!s)||t.slidePrev()):(33!==a&&34!==a&&38!==a&&40!==a||(i.preventDefault?i.preventDefault():i.returnValue=!1),34!==a&&40!==a||t.slideNext(),33!==a&&38!==a||t.slidePrev()),t.emit("keyPress",a)}},enable(){this.keyboard.enabled||(Y(G).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable(){this.keyboard.enabled&&(Y(G).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}};var Te={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create(){W.extend(this,{keyboard:{enabled:!1,enable:Se.enable.bind(this),disable:Se.disable.bind(this),handle:Se.handle.bind(this)}})},on:{init(){const e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy(){const e=this;e.keyboard.enabled&&e.keyboard.disable()}}};const Ce={lastScrollTime:W.now(),event:R.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){let e="onwheel"in G;if(!e){const t=G.createElement("div");t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&G.implementation&&G.implementation.hasFeature&&!0!==G.implementation.hasFeature("","")&&(e=G.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel",normalize(e){let t=0,s=0,i=0,a=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),i=10*t,a=10*s,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||a)&&e.deltaMode&&(1===e.deltaMode?(i*=40,a*=40):(i*=800,a*=800)),i&&!t&&(t=i<1?-1:1),a&&!s&&(s=a<1?-1:1),{spinX:t,spinY:s,pixelX:i,pixelY:a}},handleMouseEnter(){this.mouseEntered=!0},handleMouseLeave(){this.mouseEntered=!1},handle(e){let t=e;const s=this,i=s.params.mousewheel;if(!s.mouseEntered&&!i.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);let a=0;const n=s.rtlTranslate?-1:1,r=Ce.normalize(t);if(i.forceToAxis)if(s.isHorizontal()){if(!(Math.abs(r.pixelX)>Math.abs(r.pixelY)))return!0;a=r.pixelX*n}else{if(!(Math.abs(r.pixelY)>Math.abs(r.pixelX)))return!0;a=r.pixelY}else a=Math.abs(r.pixelX)>Math.abs(r.pixelY)?-r.pixelX*n:-r.pixelY;if(0===a)return!0;if(i.invert&&(a=-a),s.params.freeMode){s.params.loop&&s.loopFix();let e=s.getTranslate()+a*i.sensitivity;const n=s.isBeginning,r=s.isEnd;if(e>=s.minTranslate()&&(e=s.minTranslate()),e<=s.maxTranslate()&&(e=s.maxTranslate()),s.setTransition(0),s.setTranslate(e),s.updateProgress(),s.updateActiveIndex(),s.updateSlidesClasses(),(!n&&s.isBeginning||!r&&s.isEnd)&&s.updateSlidesClasses(),s.params.freeModeSticky&&(clearTimeout(s.mousewheel.timeout),s.mousewheel.timeout=W.nextTick(()=>{s.slideToClosest()},300)),s.emit("scroll",t),s.params.autoplay&&s.params.autoplayDisableOnInteraction&&s.autoplay.stop(),e===s.minTranslate()||e===s.maxTranslate())return!0}else{if(W.now()-s.mousewheel.lastScrollTime>60)if(a<0)if(s.isEnd&&!s.params.loop||s.animating){if(i.releaseOnEdges)return!0}else s.slideNext(),s.emit("scroll",t);else if(s.isBeginning&&!s.params.loop||s.animating){if(i.releaseOnEdges)return!0}else s.slidePrev(),s.emit("scroll",t);s.mousewheel.lastScrollTime=(new R.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable(){const e=this;if(!Ce.event)return!1;if(e.mousewheel.enabled)return!1;let t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=Y(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(Ce.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable(){const e=this;if(!Ce.event)return!1;if(!e.mousewheel.enabled)return!1;let t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=Y(e.params.mousewheel.eventsTarged)),t.off(Ce.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}};const $e={update(){const e=this,t=e.params.navigation;if(e.params.loop)return;const{$nextEl:s,$prevEl:i}=e.navigation;i&&i.length>0&&(e.isBeginning?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),s&&s.length>0&&(e.isEnd?s.addClass(t.disabledClass):s.removeClass(t.disabledClass),s[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))},onPrevClick(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init(){const e=this,t=e.params.navigation;if(!t.nextEl&&!t.prevEl)return;let s,i;t.nextEl&&(s=Y(t.nextEl),e.params.uniqueNavElements&&"string"==typeof t.nextEl&&s.length>1&&1===e.$el.find(t.nextEl).length&&(s=e.$el.find(t.nextEl))),t.prevEl&&(i=Y(t.prevEl),e.params.uniqueNavElements&&"string"==typeof t.prevEl&&i.length>1&&1===e.$el.find(t.prevEl).length&&(i=e.$el.find(t.prevEl))),s&&s.length>0&&s.on("click",e.navigation.onNextClick),i&&i.length>0&&i.on("click",e.navigation.onPrevClick),W.extend(e.navigation,{$nextEl:s,nextEl:s&&s[0],$prevEl:i,prevEl:i&&i[0]})},destroy(){const e=this,{$nextEl:t,$prevEl:s}=e.navigation;t&&t.length&&(t.off("click",e.navigation.onNextClick),t.removeClass(e.params.navigation.disabledClass)),s&&s.length&&(s.off("click",e.navigation.onPrevClick),s.removeClass(e.params.navigation.disabledClass))}};const ke={update(){const e=this,t=e.rtl,s=e.params.pagination;if(!s.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length)return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,a=e.pagination.$el;let n;const r=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(n=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),n>i-1-2*e.loopedSlides&&(n-=i-2*e.loopedSlides),n>r-1&&(n-=r),n<0&&"bullets"!==e.params.paginationType&&(n=r+n)):n=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===s.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let r,o,l;if(s.dynamicBullets&&(e.pagination.bulletSize=i.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),a.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(s.dynamicMainBullets+4)+"px"),s.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=n-e.previousIndex,e.pagination.dynamicBulletIndex>s.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=s.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),r=n-e.pagination.dynamicBulletIndex,o=r+(Math.min(i.length,s.dynamicMainBullets)-1),l=(o+r)/2),i.removeClass(`${s.bulletActiveClass} ${s.bulletActiveClass}-next ${s.bulletActiveClass}-next-next ${s.bulletActiveClass}-prev ${s.bulletActiveClass}-prev-prev ${s.bulletActiveClass}-main`),a.length>1)i.each((e,t)=>{const i=Y(t),a=i.index();a===n&&i.addClass(s.bulletActiveClass),s.dynamicBullets&&(a>=r&&a<=o&&i.addClass(s.bulletActiveClass+"-main"),a===r&&i.prev().addClass(s.bulletActiveClass+"-prev").prev().addClass(s.bulletActiveClass+"-prev-prev"),a===o&&i.next().addClass(s.bulletActiveClass+"-next").next().addClass(s.bulletActiveClass+"-next-next"))});else{if(i.eq(n).addClass(s.bulletActiveClass),s.dynamicBullets){const e=i.eq(r),t=i.eq(o);for(let a=r;a<=o;a+=1)i.eq(a).addClass(s.bulletActiveClass+"-main");e.prev().addClass(s.bulletActiveClass+"-prev").prev().addClass(s.bulletActiveClass+"-prev-prev"),t.next().addClass(s.bulletActiveClass+"-next").next().addClass(s.bulletActiveClass+"-next-next")}}if(s.dynamicBullets){const a=Math.min(i.length,s.dynamicMainBullets+4),n=(e.pagination.bulletSize*a-e.pagination.bulletSize)/2-l*e.pagination.bulletSize,r=t?"right":"left";i.css(e.isHorizontal()?r:"top",n+"px")}}if("fraction"===s.type&&(a.find("."+s.currentClass).text(s.formatFractionCurrent(n+1)),a.find("."+s.totalClass).text(s.formatFractionTotal(r))),"progressbar"===s.type){let t;t=s.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const i=(n+1)/r;let o=1,l=1;"horizontal"===t?o=i:l=i,a.find("."+s.progressbarFillClass).transform(`translate3d(0,0,0) scaleX(${o}) scaleY(${l})`).transition(e.params.speed)}"custom"===s.type&&s.renderCustom?(a.html(s.renderCustom(e,n+1,r)),e.emit("paginationRender",e,a[0])):e.emit("paginationUpdate",e,a[0]),a[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](s.lockClass)},render(){const e=this,t=e.params.pagination;if(!t.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length)return;const s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el;let a="";if("bullets"===t.type){const n=e.params.loop?Math.ceil((s-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;for(let s=0;s<n;s+=1)t.renderBullet?a+=t.renderBullet.call(e,s,t.bulletClass):a+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;i.html(a),e.pagination.bullets=i.find("."+t.bulletClass)}"fraction"===t.type&&(a=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,i.html(a)),"progressbar"===t.type&&(a=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,i.html(a)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])},init(){const e=this,t=e.params.pagination;if(!t.el)return;let s=Y(t.el);0!==s.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&s.length>1&&1===e.$el.find(t.el).length&&(s=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&s.addClass(t.clickableClass),s.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(s.addClass(`${t.modifierClass}${t.type}-dynamic`),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&s.addClass(t.progressbarOppositeClass),t.clickable&&s.on("click","."+t.bulletClass,(function(t){t.preventDefault();let s=Y(this).index()*e.params.slidesPerGroup;e.params.loop&&(s+=e.loopedSlides),e.slideTo(s)})),W.extend(e.pagination,{$el:s,el:s[0]}))},destroy(){const e=this.params.pagination;if(!e.el||!this.pagination.el||!this.pagination.$el||0===this.pagination.$el.length)return;const t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click","."+e.bulletClass)}};const Me={setTranslate(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:s,progress:i}=e,{dragSize:a,trackSize:n,$dragEl:r,$el:o}=t,l=e.params.scrollbar;let d=a,c=(n-a)*i;s?(c=-c,c>0?(d=a-c,c=0):-c+a>n&&(d=n+c)):c<0?(d=a+c,c=0):c+a>n&&(d=n-c),e.isHorizontal()?(U.transforms3d?r.transform(`translate3d(${c}px, 0, 0)`):r.transform(`translateX(${c}px)`),r[0].style.width=d+"px"):(U.transforms3d?r.transform(`translate3d(0px, ${c}px, 0)`):r.transform(`translateY(${c}px)`),r[0].style.height=d+"px"),l.hide&&(clearTimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=setTimeout(()=>{o[0].style.opacity=0,o.transition(400)},1e3))},setTransition(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{$dragEl:s,$el:i}=t;s[0].style.width="",s[0].style.height="";const a=e.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,n=e.size/e.virtualSize,r=n*(a/e.size);let o;o="auto"===e.params.scrollbar.dragSize?a*n:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?s[0].style.width=o+"px":s[0].style.height=o+"px",i[0].style.display=n>=1?"none":"",e.params.scrollbar.hide&&(i[0].style.opacity=0),W.extend(t,{trackSize:a,divider:n,moveDivider:r,dragSize:o}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)},getPointerPosition(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition(e){const{scrollbar:t,rtlTranslate:s}=this,{$el:i,dragSize:a,trackSize:n,dragStartPos:r}=t;let o;o=(t.getPointerPosition(e)-i.offset()[this.isHorizontal()?"left":"top"]-(null!==r?r:a/2))/(n-a),o=Math.max(Math.min(o,1),0),s&&(o=1-o);const l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*o;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart(e){const t=this.params.scrollbar,{scrollbar:s,$wrapperEl:i}=this,{$el:a,$dragEl:n}=s;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===n[0]||e.target===n?s.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.transition(100),n.transition(100),s.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),a.transition(0),t.hide&&a.css("opacity",1),this.emit("scrollbarDragStart",e)},onDragMove(e){const{scrollbar:t,$wrapperEl:s}=this,{$el:i,$dragEl:a}=t;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),s.transition(0),i.transition(0),a.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd(e){const t=this,s=t.params.scrollbar,{scrollbar:i}=t,{$el:a}=i;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,s.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=W.nextTick(()=>{a.css("opacity",0),a.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),s.snapOnRelease&&t.slideToClosest())},enableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:s,touchEventsDesktop:i,params:a}=e,n=t.$el[0],r=!(!U.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},o=!(!U.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};U.touch?(n.addEventListener(s.start,e.scrollbar.onDragStart,r),n.addEventListener(s.move,e.scrollbar.onDragMove,r),n.addEventListener(s.end,e.scrollbar.onDragEnd,o)):(n.addEventListener(i.start,e.scrollbar.onDragStart,r),G.addEventListener(i.move,e.scrollbar.onDragMove,r),G.addEventListener(i.end,e.scrollbar.onDragEnd,o))},disableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:s,touchEventsDesktop:i,params:a}=e,n=t.$el[0],r=!(!U.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},o=!(!U.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};U.touch?(n.removeEventListener(s.start,e.scrollbar.onDragStart,r),n.removeEventListener(s.move,e.scrollbar.onDragMove,r),n.removeEventListener(s.end,e.scrollbar.onDragEnd,o)):(n.removeEventListener(i.start,e.scrollbar.onDragStart,r),G.removeEventListener(i.move,e.scrollbar.onDragMove,r),G.removeEventListener(i.end,e.scrollbar.onDragEnd,o))},init(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,$el:s}=e,i=e.params.scrollbar;let a=Y(i.el);e.params.uniqueNavElements&&"string"==typeof i.el&&a.length>1&&1===s.find(i.el).length&&(a=s.find(i.el));let n=a.find("."+e.params.scrollbar.dragClass);0===n.length&&(n=Y(`<div class="${e.params.scrollbar.dragClass}"></div>`),a.append(n)),W.extend(t,{$el:a,el:a[0],$dragEl:n,dragEl:n[0]}),i.draggable&&t.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};const Pe={setTransform(e,t){const{rtl:s}=this,i=Y(e),a=s?-1:1,n=i.attr("data-swiper-parallax")||"0";let r=i.attr("data-swiper-parallax-x"),o=i.attr("data-swiper-parallax-y");const l=i.attr("data-swiper-parallax-scale"),d=i.attr("data-swiper-parallax-opacity");if(r||o?(r=r||"0",o=o||"0"):this.isHorizontal()?(r=n,o="0"):(o=n,r="0"),r=r.indexOf("%")>=0?parseInt(r,10)*t*a+"%":r*t*a+"px",o=o.indexOf("%")>=0?parseInt(o,10)*t+"%":o*t+"px",null!=d){const e=d-(d-1)*(1-Math.abs(t));i[0].style.opacity=e}if(null==l)i.transform(`translate3d(${r}, ${o}, 0px)`);else{const e=l-(l-1)*(1-Math.abs(t));i.transform(`translate3d(${r}, ${o}, 0px) scale(${e})`)}},setTranslate(){const e=this,{$el:t,slides:s,progress:i,snapGrid:a}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,s)=>{e.parallax.setTransform(s,i)}),s.each((t,s)=>{let n=s.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(n+=Math.ceil(t/2)-i*(a.length-1)),n=Math.min(Math.max(n,-1),1),Y(s).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,s)=>{e.parallax.setTransform(s,n)})})},setTransition(e=this.params.speed){const{$el:t}=this;t.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,s)=>{const i=Y(s);let a=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(a=0),i.transition(a)})}};const Oe={getDistanceBetweenTouches(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,s=e.targetTouches[0].pageY,i=e.targetTouches[1].pageX,a=e.targetTouches[1].pageY;return Math.sqrt((i-t)**2+(a-s)**2)},onGestureStart(e){const t=this,s=t.params.zoom,i=t.zoom,{gesture:a}=i;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!U.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.fakeGestureTouched=!0,a.scaleStart=Oe.getDistanceBetweenTouches(e)}a.$slideEl&&a.$slideEl.length||(a.$slideEl=Y(e.target).closest(".swiper-slide"),0===a.$slideEl.length&&(a.$slideEl=t.slides.eq(t.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+s.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,0!==a.$imageWrapEl.length)?(a.$imageEl.transition(0),t.zoom.isScaling=!0):a.$imageEl=void 0},onGestureChange(e){const t=this.params.zoom,s=this.zoom,{gesture:i}=s;if(!U.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;s.fakeGestureMoved=!0,i.scaleMove=Oe.getDistanceBetweenTouches(e)}i.$imageEl&&0!==i.$imageEl.length&&(U.gestures?s.scale=e.scale*s.currentScale:s.scale=i.scaleMove/i.scaleStart*s.currentScale,s.scale>i.maxRatio&&(s.scale=i.maxRatio-1+(s.scale-i.maxRatio+1)**.5),s.scale<t.minRatio&&(s.scale=t.minRatio+1-(t.minRatio-s.scale+1)**.5),i.$imageEl.transform(`translate3d(0,0,0) scale(${s.scale})`))},onGestureEnd(e){const t=this.params.zoom,s=this.zoom,{gesture:i}=s;if(!U.gestures){if(!s.fakeGestureTouched||!s.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!ne.android)return;s.fakeGestureTouched=!1,s.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(s.scale=Math.max(Math.min(s.scale,i.maxRatio),t.minRatio),i.$imageEl.transition(this.params.speed).transform(`translate3d(0,0,0) scale(${s.scale})`),s.currentScale=s.scale,s.isScaling=!1,1===s.scale&&(i.$slideEl=void 0))},onTouchStart(e){const t=this.zoom,{gesture:s,image:i}=t;s.$imageEl&&0!==s.$imageEl.length&&(i.isTouched||(ne.android&&e.preventDefault(),i.isTouched=!0,i.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove(e){const t=this,s=t.zoom,{gesture:i,image:a,velocity:n}=s;if(!i.$imageEl||0===i.$imageEl.length)return;if(t.allowClick=!1,!a.isTouched||!i.$slideEl)return;a.isMoved||(a.width=i.$imageEl[0].offsetWidth,a.height=i.$imageEl[0].offsetHeight,a.startX=W.getTranslate(i.$imageWrapEl[0],"x")||0,a.startY=W.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),t.rtl&&(a.startX=-a.startX,a.startY=-a.startY));const r=a.width*s.scale,o=a.height*s.scale;if(!(r<i.slideWidth&&o<i.slideHeight)){if(a.minX=Math.min(i.slideWidth/2-r/2,0),a.maxX=-a.minX,a.minY=Math.min(i.slideHeight/2-o/2,0),a.maxY=-a.minY,a.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,a.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!a.isMoved&&!s.isScaling){if(t.isHorizontal()&&(Math.floor(a.minX)===Math.floor(a.startX)&&a.touchesCurrent.x<a.touchesStart.x||Math.floor(a.maxX)===Math.floor(a.startX)&&a.touchesCurrent.x>a.touchesStart.x))return void(a.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(a.minY)===Math.floor(a.startY)&&a.touchesCurrent.y<a.touchesStart.y||Math.floor(a.maxY)===Math.floor(a.startY)&&a.touchesCurrent.y>a.touchesStart.y))return void(a.isTouched=!1)}e.preventDefault(),e.stopPropagation(),a.isMoved=!0,a.currentX=a.touchesCurrent.x-a.touchesStart.x+a.startX,a.currentY=a.touchesCurrent.y-a.touchesStart.y+a.startY,a.currentX<a.minX&&(a.currentX=a.minX+1-(a.minX-a.currentX+1)**.8),a.currentX>a.maxX&&(a.currentX=a.maxX-1+(a.currentX-a.maxX+1)**.8),a.currentY<a.minY&&(a.currentY=a.minY+1-(a.minY-a.currentY+1)**.8),a.currentY>a.maxY&&(a.currentY=a.maxY-1+(a.currentY-a.maxY+1)**.8),n.prevPositionX||(n.prevPositionX=a.touchesCurrent.x),n.prevPositionY||(n.prevPositionY=a.touchesCurrent.y),n.prevTime||(n.prevTime=Date.now()),n.x=(a.touchesCurrent.x-n.prevPositionX)/(Date.now()-n.prevTime)/2,n.y=(a.touchesCurrent.y-n.prevPositionY)/(Date.now()-n.prevTime)/2,Math.abs(a.touchesCurrent.x-n.prevPositionX)<2&&(n.x=0),Math.abs(a.touchesCurrent.y-n.prevPositionY)<2&&(n.y=0),n.prevPositionX=a.touchesCurrent.x,n.prevPositionY=a.touchesCurrent.y,n.prevTime=Date.now(),i.$imageWrapEl.transform(`translate3d(${a.currentX}px, ${a.currentY}px,0)`)}},onTouchEnd(){const e=this.zoom,{gesture:t,image:s,velocity:i}=e;if(!t.$imageEl||0===t.$imageEl.length)return;if(!s.isTouched||!s.isMoved)return s.isTouched=!1,void(s.isMoved=!1);s.isTouched=!1,s.isMoved=!1;let a=300,n=300;const r=i.x*a,o=s.currentX+r,l=i.y*n,d=s.currentY+l;0!==i.x&&(a=Math.abs((o-s.currentX)/i.x)),0!==i.y&&(n=Math.abs((d-s.currentY)/i.y));const c=Math.max(a,n);s.currentX=o,s.currentY=d;const p=s.width*e.scale,u=s.height*e.scale;s.minX=Math.min(t.slideWidth/2-p/2,0),s.maxX=-s.minX,s.minY=Math.min(t.slideHeight/2-u/2,0),s.maxY=-s.minY,s.currentX=Math.max(Math.min(s.currentX,s.maxX),s.minX),s.currentY=Math.max(Math.min(s.currentY,s.maxY),s.minY),t.$imageWrapEl.transition(c).transform(`translate3d(${s.currentX}px, ${s.currentY}px,0)`)},onTransitionEnd(){const e=this.zoom,{gesture:t}=e;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle(e){const t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in(e){const t=this,s=t.zoom,i=t.params.zoom,{gesture:a,image:n}=s;if(a.$slideEl||(a.$slideEl=t.clickedSlide?Y(t.clickedSlide):t.slides.eq(t.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+i.containerClass)),!a.$imageEl||0===a.$imageEl.length)return;let r,o,l,d,c,p,u,h,f,m,g,v,b,y,w,x,E,S;a.$slideEl.addClass(""+i.zoomedSlideClass),void 0===n.touchesStart.x&&e?(r="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,o="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(r=n.touchesStart.x,o=n.touchesStart.y),s.scale=a.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,s.currentScale=a.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,e?(E=a.$slideEl[0].offsetWidth,S=a.$slideEl[0].offsetHeight,l=a.$slideEl.offset().left,d=a.$slideEl.offset().top,c=l+E/2-r,p=d+S/2-o,f=a.$imageEl[0].offsetWidth,m=a.$imageEl[0].offsetHeight,g=f*s.scale,v=m*s.scale,b=Math.min(E/2-g/2,0),y=Math.min(S/2-v/2,0),w=-b,x=-y,u=c*s.scale,h=p*s.scale,u<b&&(u=b),u>w&&(u=w),h<y&&(h=y),h>x&&(h=x)):(u=0,h=0),a.$imageWrapEl.transition(300).transform(`translate3d(${u}px, ${h}px,0)`),a.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${s.scale})`)},out(){const e=this,t=e.zoom,s=e.params.zoom,{gesture:i}=t;i.$slideEl||(i.$slideEl=e.clickedSlide?Y(e.clickedSlide):e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+s.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+s.zoomedSlideClass),i.$slideEl=void 0)},enable(){const e=this,t=e.zoom;if(t.enabled)return;t.enabled=!0;const s=!("touchstart"!==e.touchEvents.start||!U.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};U.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,s),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,s),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,s)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,s),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,s),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,s)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)},disable(){const e=this,t=e.zoom;if(!t.enabled)return;e.zoom.enabled=!1;const s=!("touchstart"!==e.touchEvents.start||!U.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};U.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,s),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,s),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,s)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,s),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,s),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,s)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}};const ze={loadInSlide(e,t=!0){const s=this,i=s.params.lazy;if(void 0===e)return;if(0===s.slides.length)return;const a=s.virtual&&s.params.virtual.enabled?s.$wrapperEl.children(`.${s.params.slideClass}[data-swiper-slide-index="${e}"]`):s.slides.eq(e);let n=a.find(`.${i.elementClass}:not(.${i.loadedClass}):not(.${i.loadingClass})`);!a.hasClass(i.elementClass)||a.hasClass(i.loadedClass)||a.hasClass(i.loadingClass)||(n=n.add(a[0])),0!==n.length&&n.each((e,n)=>{const r=Y(n);r.addClass(i.loadingClass);const o=r.attr("data-background"),l=r.attr("data-src"),d=r.attr("data-srcset"),c=r.attr("data-sizes");s.loadImage(r[0],l||o,d,c,!1,()=>{if(null!=s&&s&&(!s||s.params)&&!s.destroyed){if(o?(r.css("background-image",`url("${o}")`),r.removeAttr("data-background")):(d&&(r.attr("srcset",d),r.removeAttr("data-srcset")),c&&(r.attr("sizes",c),r.removeAttr("data-sizes")),l&&(r.attr("src",l),r.removeAttr("data-src"))),r.addClass(i.loadedClass).removeClass(i.loadingClass),a.find("."+i.preloaderClass).remove(),s.params.loop&&t){const e=a.attr("data-swiper-slide-index");if(a.hasClass(s.params.slideDuplicateClass)){const t=s.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${s.params.slideDuplicateClass})`);s.lazy.loadInSlide(t.index(),!1)}else{const t=s.$wrapperEl.children(`.${s.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`);s.lazy.loadInSlide(t.index(),!1)}}s.emit("lazyImageReady",a[0],r[0])}}),s.emit("lazyImageLoad",a[0],r[0])})},load(){const e=this,{$wrapperEl:t,params:s,slides:i,activeIndex:a}=e,n=e.virtual&&s.virtual.enabled,r=s.lazy;let o=s.slidesPerView;function l(e){if(n){if(t.children(`.${s.slideClass}[data-swiper-slide-index="${e}"]`).length)return!0}else if(i[e])return!0;return!1}function d(e){return n?Y(e).attr("data-swiper-slide-index"):Y(e).index()}if("auto"===o&&(o=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+s.slideVisibleClass).each((t,s)=>{const i=n?Y(s).attr("data-swiper-slide-index"):Y(s).index();e.lazy.loadInSlide(i)});else if(o>1)for(let c=a;c<a+o;c+=1)l(c)&&e.lazy.loadInSlide(c);else e.lazy.loadInSlide(a);if(r.loadPrevNext)if(o>1||r.loadPrevNextAmount&&r.loadPrevNextAmount>1){const t=r.loadPrevNextAmount,s=o,n=Math.min(a+s+Math.max(t,s),i.length),d=Math.max(a-Math.max(s,t),0);for(let i=a+o;i<n;i+=1)l(i)&&e.lazy.loadInSlide(i);for(let i=d;i<a;i+=1)l(i)&&e.lazy.loadInSlide(i)}else{const i=t.children("."+s.slideNextClass);i.length>0&&e.lazy.loadInSlide(d(i));const a=t.children("."+s.slidePrevClass);a.length>0&&e.lazy.loadInSlide(d(a))}}};const Ie={LinearSpline:function(e,t){const s=function(){let e,t,s;return(i,a)=>{for(t=-1,e=i.length;e-t>1;)s=e+t>>1,i[s]<=a?t=s:e=s;return e}}();let i,a;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(a=s(this.x,e),i=a-1,(e-this.x[i])*(this.y[a]-this.y[i])/(this.x[a]-this.x[i])+this.y[i]):0},this},getInterpolateFunction(e){const t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Ie.LinearSpline(t.slidesGrid,e.slidesGrid):new Ie.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate(e,t){const s=this,i=s.controller.control;let a,n;function r(e){const t=s.rtlTranslate?-s.translate:s.translate;"slide"===s.params.controller.by&&(s.controller.getInterpolateFunction(e),n=-s.controller.spline.interpolate(-t)),n&&"container"!==s.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(s.maxTranslate()-s.minTranslate()),n=(t-s.minTranslate())*a+e.minTranslate()),s.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,s),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(i))for(let o=0;o<i.length;o+=1)i[o]!==t&&i[o]instanceof fe&&r(i[o]);else i instanceof fe&&t!==i&&r(i)},setTransition(e,t){const s=this,i=s.controller.control;let a;function n(t){t.setTransition(e,s),0!==e&&(t.transitionStart(),t.params.autoHeight&&W.nextTick(()=>{t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(()=>{i&&(t.params.loop&&"slide"===s.params.controller.by&&t.loopFix(),t.transitionEnd())}))}if(Array.isArray(i))for(a=0;a<i.length;a+=1)i[a]!==t&&i[a]instanceof fe&&n(i[a]);else i instanceof fe&&t!==i&&n(i)}};const Le={makeElFocusable:e=>(e.attr("tabIndex","0"),e),addElRole:(e,t)=>(e.attr("role",t),e),addElLabel:(e,t)=>(e.attr("aria-label",t),e),disableEl:e=>(e.attr("aria-disabled",!0),e),enableEl:e=>(e.attr("aria-disabled",!1),e),onEnterKey(e){const t=this,s=t.params.a11y;if(13!==e.keyCode)return;const i=Y(e.target);t.navigation&&t.navigation.$nextEl&&i.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(s.lastSlideMessage):t.a11y.notify(s.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&i.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(s.firstSlideMessage):t.a11y.notify(s.prevSlideMessage)),t.pagination&&i.is("."+t.params.pagination.bulletClass)&&i[0].click()},notify(e){const t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation(){const e=this;if(e.params.loop)return;const{$nextEl:t,$prevEl:s}=e.navigation;s&&s.length>0&&(e.isBeginning?e.a11y.disableEl(s):e.a11y.enableEl(s)),t&&t.length>0&&(e.isEnd?e.a11y.disableEl(t):e.a11y.enableEl(t))},updatePagination(){const e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((s,i)=>{const a=Y(i);e.a11y.makeElFocusable(a),e.a11y.addElRole(a,"button"),e.a11y.addElLabel(a,t.paginationBulletMessage.replace(/{{index}}/,a.index()+1))})},init(){const e=this;e.$el.append(e.a11y.liveRegion);const t=e.params.a11y;let s,i;e.navigation&&e.navigation.$nextEl&&(s=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),s&&(e.a11y.makeElFocusable(s),e.a11y.addElRole(s,"button"),e.a11y.addElLabel(s,t.nextSlideMessage),s.on("keydown",e.a11y.onEnterKey)),i&&(e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,t.prevSlideMessage),i.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)},destroy(){const e=this;let t,s;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove(),e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(s=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),s&&s.off("keydown",e.a11y.onEnterKey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)}};const je={init(){const e=this;if(!e.params.history)return;if(!R.history||!R.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);const t=e.history;t.initialized=!0,t.paths=je.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||R.addEventListener("popstate",e.history.setHistoryPopState))},destroy(){const e=this;e.params.history.replaceState||R.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState(){this.history.paths=je.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues(){const e=R.location.pathname.slice(1).split("/").filter(e=>""!==e),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory(e,t){if(!this.history.initialized||!this.params.history.enabled)return;const s=this.slides.eq(t);let i=je.slugify(s.attr("data-history"));R.location.pathname.includes(e)||(i=`${e}/${i}`);const a=R.history.state;a&&a.value===i||(this.params.history.replaceState?R.history.replaceState({value:i},null,i):R.history.pushState({value:i},null,i))},slugify:e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),scrollToSlide(e,t,s){const i=this;if(t)for(let a=0,n=i.slides.length;a<n;a+=1){const n=i.slides.eq(a);if(je.slugify(n.attr("data-history"))===t&&!n.hasClass(i.params.slideDuplicateClass)){const t=n.index();i.slideTo(t,e,s)}}else i.slideTo(0,e,s)}};const De={onHashCange(){const e=this,t=G.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){const s=e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index();if(void 0===s)return;e.slideTo(s)}},setHash(){const e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&R.history&&R.history.replaceState)R.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||"");else{const t=e.slides.eq(e.activeIndex),s=t.attr("data-hash")||t.attr("data-history");G.location.hash=s||""}},init(){const e=this;if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;e.hashNavigation.initialized=!0;const t=G.location.hash.replace("#","");if(t){const s=0;for(let i=0,a=e.slides.length;i<a;i+=1){const a=e.slides.eq(i);if((a.attr("data-hash")||a.attr("data-history"))===t&&!a.hasClass(e.params.slideDuplicateClass)){const t=a.index();e.slideTo(t,s,e.params.runCallbacksOnInit,!0)}}}e.params.hashNavigation.watchState&&Y(R).on("hashchange",e.hashNavigation.onHashCange)},destroy(){const e=this;e.params.hashNavigation.watchState&&Y(R).off("hashchange",e.hashNavigation.onHashCange)}};const Ae={run(){const e=this,t=e.slides.eq(e.activeIndex);let s=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(s=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=W.nextTick(()=>{e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))},s)},start(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop(){const e=this;return!!e.autoplay.running&&(void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause(e){const t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}};const _e={setTranslate(){const e=this,{slides:t}=e;for(let s=0;s<t.length;s+=1){const t=e.slides.eq(s);let i=-t[0].swiperSlideOffset;e.params.virtualTranslate||(i-=e.translate);let a=0;e.isHorizontal()||(a=i,i=0);const n=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);t.css({opacity:n}).transform(`translate3d(${i}px, ${a}px, 0px)`)}},setTransition(e){const t=this,{slides:s,$wrapperEl:i}=t;if(s.transition(e),t.params.virtualTranslate&&0!==e){let e=!1;s.transitionEnd(()=>{if(e)return;if(!t||t.destroyed)return;e=!0,t.animating=!1;const s=["webkitTransitionEnd","transitionend"];for(let e=0;e<s.length;e+=1)i.trigger(s[e])})}}};const Ne={setTranslate(){const{$el:e,$wrapperEl:t,slides:s,width:i,height:a,rtlTranslate:n,size:r}=this,o=this.params.cubeEffect,l=this.isHorizontal(),d=this.virtual&&this.params.virtual.enabled;let c,p=0;o.shadow&&(l?(c=t.find(".swiper-cube-shadow"),0===c.length&&(c=Y('<div class="swiper-cube-shadow"></div>'),t.append(c)),c.css({height:i+"px"})):(c=e.find(".swiper-cube-shadow"),0===c.length&&(c=Y('<div class="swiper-cube-shadow"></div>'),e.append(c))));for(let h=0;h<s.length;h+=1){const e=s.eq(h);let t=h;d&&(t=parseInt(e.attr("data-swiper-slide-index"),10));let i=90*t,a=Math.floor(i/360);n&&(i=-i,a=Math.floor(-i/360));const c=Math.max(Math.min(e[0].progress,1),-1);let u=0,f=0,m=0;t%4==0?(u=4*-a*r,m=0):(t-1)%4==0?(u=0,m=4*-a*r):(t-2)%4==0?(u=r+4*a*r,m=r):(t-3)%4==0&&(u=-r,m=3*r+4*r*a),n&&(u=-u),l||(f=u,u=0);const g=`rotateX(${l?0:-i}deg) rotateY(${l?i:0}deg) translate3d(${u}px, ${f}px, ${m}px)`;if(c<=1&&c>-1&&(p=90*t+90*c,n&&(p=90*-t-90*c)),e.transform(g),o.slideShadows){let t=l?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),s=l?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=Y(`<div class="swiper-slide-shadow-${l?"left":"top"}"></div>`),e.append(t)),0===s.length&&(s=Y(`<div class="swiper-slide-shadow-${l?"right":"bottom"}"></div>`),e.append(s)),t.length&&(t[0].style.opacity=Math.max(-c,0)),s.length&&(s[0].style.opacity=Math.max(c,0))}}if(t.css({"-webkit-transform-origin":`50% 50% -${r/2}px`,"-moz-transform-origin":`50% 50% -${r/2}px`,"-ms-transform-origin":`50% 50% -${r/2}px`,"transform-origin":`50% 50% -${r/2}px`}),o.shadow)if(l)c.transform(`translate3d(0px, ${i/2+o.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${o.shadowScale})`);else{const e=Math.abs(p)-90*Math.floor(Math.abs(p)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=o.shadowScale,i=o.shadowScale/t,n=o.shadowOffset;c.transform(`scale3d(${s}, 1, ${i}) translate3d(0px, ${a/2+n}px, ${-a/2/i}px) rotateX(-90deg)`)}const u=K.isSafari||K.isUiWebView?-r/2:0;t.transform(`translate3d(0px,0,${u}px) rotateX(${this.isHorizontal()?0:p}deg) rotateY(${this.isHorizontal()?-p:0}deg)`)},setTransition(e){const{$el:t,slides:s}=this;s.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}};const He={setTranslate(){const e=this,{slides:t,rtlTranslate:s}=e;for(let i=0;i<t.length;i+=1){const a=t.eq(i);let n=a[0].progress;e.params.flipEffect.limitRotation&&(n=Math.max(Math.min(a[0].progress,1),-1));let r=-180*n,o=0,l=-a[0].swiperSlideOffset,d=0;if(e.isHorizontal()?s&&(r=-r):(d=l,l=0,o=-r,r=0),a[0].style.zIndex=-Math.abs(Math.round(n))+t.length,e.params.flipEffect.slideShadows){let t=e.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),s=e.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===t.length&&(t=Y(`<div class="swiper-slide-shadow-${e.isHorizontal()?"left":"top"}"></div>`),a.append(t)),0===s.length&&(s=Y(`<div class="swiper-slide-shadow-${e.isHorizontal()?"right":"bottom"}"></div>`),a.append(s)),t.length&&(t[0].style.opacity=Math.max(-n,0)),s.length&&(s[0].style.opacity=Math.max(n,0))}a.transform(`translate3d(${l}px, ${d}px, 0px) rotateX(${o}deg) rotateY(${r}deg)`)}},setTransition(e){const t=this,{slides:s,activeIndex:i,$wrapperEl:a}=t;if(s.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){let e=!1;s.eq(i).transitionEnd((function(){if(e)return;if(!t||t.destroyed)return;e=!0,t.animating=!1;const s=["webkitTransitionEnd","transitionend"];for(let e=0;e<s.length;e+=1)a.trigger(s[e])}))}}};const Be={setTranslate(){const{width:e,height:t,slides:s,$wrapperEl:i,slidesSizesGrid:a}=this,n=this.params.coverflowEffect,r=this.isHorizontal(),o=this.translate,l=r?e/2-o:t/2-o,d=r?n.rotate:-n.rotate,c=n.depth;for(let p=0,u=s.length;p<u;p+=1){const e=s.eq(p),t=a[p],i=(l-e[0].swiperSlideOffset-t/2)/t*n.modifier;let o=r?d*i:0,u=r?0:d*i,h=-c*Math.abs(i),f=r?0:n.stretch*i,m=r?n.stretch*i:0;Math.abs(m)<.001&&(m=0),Math.abs(f)<.001&&(f=0),Math.abs(h)<.001&&(h=0),Math.abs(o)<.001&&(o=0),Math.abs(u)<.001&&(u=0);const g=`translate3d(${m}px,${f}px,${h}px) rotateX(${u}deg) rotateY(${o}deg)`;if(e.transform(g),e[0].style.zIndex=1-Math.abs(Math.round(i)),n.slideShadows){let t=r?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),s=r?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=Y(`<div class="swiper-slide-shadow-${r?"left":"top"}"></div>`),e.append(t)),0===s.length&&(s=Y(`<div class="swiper-slide-shadow-${r?"right":"bottom"}"></div>`),e.append(s)),t.length&&(t[0].style.opacity=i>0?i:0),s.length&&(s[0].style.opacity=-i>0?-i:0)}}if(U.pointerEvents||U.prefixedPointerEvents){i[0].style.perspectiveOrigin=l+"px 50%"}},setTransition(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}};const Ve={init(){const e=this,{thumbs:t}=e.params,s=e.constructor;t.swiper instanceof s?(e.thumbs.swiper=t.swiper,W.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),W.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):W.isObject(t.swiper)&&(e.thumbs.swiper=new s(W.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick(){const e=this,t=e.thumbs.swiper;if(!t)return;const s=t.clickedIndex,i=t.clickedSlide;if(i&&Y(i).hasClass(e.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let a;if(a=t.params.loop?parseInt(Y(t.clickedSlide).attr("data-swiper-slide-index"),10):s,e.params.loop){let t=e.activeIndex;e.slides.eq(t).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,t=e.activeIndex);const s=e.slides.eq(t).prevAll(`[data-swiper-slide-index="${a}"]`).eq(0).index(),i=e.slides.eq(t).nextAll(`[data-swiper-slide-index="${a}"]`).eq(0).index();a=void 0===s?i:void 0===i?s:i-t<t-s?i:s}e.slideTo(a)},update(e){const t=this,s=t.thumbs.swiper;if(!s)return;const i="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;if(t.realIndex!==s.realIndex){let a,n=s.activeIndex;if(s.params.loop){s.slides.eq(n).hasClass(s.params.slideDuplicateClass)&&(s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft,n=s.activeIndex);const e=s.slides.eq(n).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),i=s.slides.eq(n).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();a=void 0===e?i:void 0===i?e:i-n==n-e?n:i-n<n-e?i:e}else a=t.realIndex;s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(a)<0&&(s.params.centeredSlides?a=a>n?a-Math.floor(i/2)+1:a+Math.floor(i/2)-1:a>n&&(a=a-i+1),s.slideTo(a,e?0:void 0))}let a=1;const n=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(a=t.params.slidesPerView),s.slides.removeClass(n),s.params.loop||s.params.virtual)for(let r=0;r<a;r+=1)s.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+r}"]`).addClass(n);else for(let r=0;r<a;r+=1)s.slides.eq(t.realIndex+r).addClass(n)}};const Ge=[me,ge,ve,be,we,Ee,Te,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){W.extend(this,{mousewheel:{enabled:!1,enable:Ce.enable.bind(this),disable:Ce.disable.bind(this),handle:Ce.handle.bind(this),handleMouseEnter:Ce.handleMouseEnter.bind(this),handleMouseLeave:Ce.handleMouseLeave.bind(this),lastScrollTime:W.now()}})},on:{init(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){W.extend(this,{navigation:{init:$e.init.bind(this),update:$e.update.bind(this),destroy:$e.destroy.bind(this),onNextClick:$e.onNextClick.bind(this),onPrevClick:$e.onPrevClick.bind(this)}})},on:{init(){this.navigation.init(),this.navigation.update()},toEdge(){this.navigation.update()},fromEdge(){this.navigation.update()},destroy(){this.navigation.destroy()},click(e){const t=this,{$nextEl:s,$prevEl:i}=t.navigation;if(t.params.navigation.hideOnClick&&!Y(e.target).is(i)&&!Y(e.target).is(s)){let e;s?e=s.hasClass(t.params.navigation.hiddenClass):i&&(e=i.hasClass(t.params.navigation.hiddenClass)),!0===e?t.emit("navigationShow",t):t.emit("navigationHide",t),s&&s.toggleClass(t.params.navigation.hiddenClass),i&&i.toggleClass(t.params.navigation.hiddenClass)}}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){W.extend(this,{pagination:{init:ke.init.bind(this),render:ke.render.bind(this),update:ke.update.bind(this),destroy:ke.destroy.bind(this),dynamicBulletIndex:0}})},on:{init(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange(){const e=this;(e.params.loop||void 0===e.snapIndex)&&e.pagination.update()},snapIndexChange(){const e=this;e.params.loop||e.pagination.update()},slidesLengthChange(){const e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange(){const e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy(){this.pagination.destroy()},click(e){const t=this;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!Y(e.target).hasClass(t.params.pagination.bulletClass)){!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){W.extend(this,{scrollbar:{init:Me.init.bind(this),destroy:Me.destroy.bind(this),updateSize:Me.updateSize.bind(this),setTranslate:Me.setTranslate.bind(this),setTransition:Me.setTransition.bind(this),enableDraggable:Me.enableDraggable.bind(this),disableDraggable:Me.disableDraggable.bind(this),setDragPosition:Me.setDragPosition.bind(this),getPointerPosition:Me.getPointerPosition.bind(this),onDragStart:Me.onDragStart.bind(this),onDragMove:Me.onDragMove.bind(this),onDragEnd:Me.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update(){this.scrollbar.updateSize()},resize(){this.scrollbar.updateSize()},observerUpdate(){this.scrollbar.updateSize()},setTranslate(){this.scrollbar.setTranslate()},setTransition(e){this.scrollbar.setTransition(e)},destroy(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create(){W.extend(this,{parallax:{setTransform:Pe.setTransform.bind(this),setTranslate:Pe.setTranslate.bind(this),setTransition:Pe.setTransition.bind(this)}})},on:{beforeInit(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(s=>{t[s]=Oe[s].bind(e)}),W.extend(e,{zoom:t});let s=1;Object.defineProperty(e.zoom,"scale",{get:()=>s,set(t){if(s!==t){const s=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,i=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,s,i)}s=t}})},on:{init(){const e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy(){this.zoom.disable()},touchStart(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap(e){const t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd(){const e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){W.extend(this,{lazy:{initialImageLoaded:!1,load:ze.load.bind(this),loadInSlide:ze.loadInSlide.bind(this)}})},on:{beforeInit(){const e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init(){const e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll(){const e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize(){const e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove(){const e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart(){const e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd(){const e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){W.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:Ie.getInterpolateFunction.bind(this),setTranslate:Ie.setTranslate.bind(this),setTransition:Ie.setTransition.bind(this)}})},on:{update(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create(){const e=this;W.extend(e,{a11y:{liveRegion:Y(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(Le).forEach(t=>{e.a11y[t]=Le[t].bind(e)})},on:{init(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){W.extend(this,{history:{init:je.init.bind(this),setHistory:je.setHistory.bind(this),setHistoryPopState:je.setHistoryPopState.bind(this),scrollToSlide:je.scrollToSlide.bind(this),destroy:je.destroy.bind(this)}})},on:{init(){const e=this;e.params.history.enabled&&e.history.init()},destroy(){const e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd(){const e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){W.extend(this,{hashNavigation:{initialized:!1,init:De.init.bind(this),destroy:De.destroy.bind(this),setHash:De.setHash.bind(this),onHashCange:De.onHashCange.bind(this)}})},on:{init(){const e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy(){const e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd(){const e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const e=this;W.extend(e,{autoplay:{running:!1,paused:!1,run:Ae.run.bind(e),start:Ae.start.bind(e),stop:Ae.stop.bind(e),pause:Ae.pause.bind(e),onTransitionEnd(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init(){const e=this;e.params.autoplay.enabled&&e.autoplay.start()},beforeTransitionStart(e,t){const s=this;s.autoplay.running&&(t||!s.params.autoplay.disableOnInteraction?s.autoplay.pause(e):s.autoplay.stop())},sliderFirstMove(){const e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy(){const e=this;e.autoplay.running&&e.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){W.extend(this,{fadeEffect:{setTranslate:_e.setTranslate.bind(this),setTransition:_e.setTransition.bind(this)}})},on:{beforeInit(){if("fade"!==this.params.effect)return;this.classNames.push(this.params.containerModifierClass+"fade");const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};W.extend(this.params,e),W.extend(this.originalParams,e)},setTranslate(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){W.extend(this,{cubeEffect:{setTranslate:Ne.setTranslate.bind(this),setTransition:Ne.setTransition.bind(this)}})},on:{beforeInit(){if("cube"!==this.params.effect)return;this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};W.extend(this.params,e),W.extend(this.originalParams,e)},setTranslate(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){W.extend(this,{flipEffect:{setTranslate:He.setTranslate.bind(this),setTransition:He.setTransition.bind(this)}})},on:{beforeInit(){if("flip"!==this.params.effect)return;this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};W.extend(this.params,e),W.extend(this.originalParams,e)},setTranslate(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create(){W.extend(this,{coverflowEffect:{setTranslate:Be.setTranslate.bind(this),setTransition:Be.setTransition.bind(this)}})},on:{beforeInit(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){W.extend(this,{thumbs:{swiper:null,init:Ve.init.bind(this),update:Ve.update.bind(this),onThumbClick:Ve.onThumbClick.bind(this)}})},on:{beforeInit(){const{thumbs:e}=this.params;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange(){this.thumbs.swiper&&this.thumbs.update()},update(){this.thumbs.swiper&&this.thumbs.update()},resize(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate(){this.thumbs.swiper&&this.thumbs.update()},setTransition(e){const t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy(){const e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];void 0===fe.use&&(fe.use=fe.Class.use,fe.installModule=fe.Class.installModule),fe.use(Ge);var Re=fe,Xe=(s(36),"wp-block-newspack-blocks-carousel__autoplay-playing");function Ye(e,t){Array.prototype.forEach.call(e,t)}function Fe(e){e.setAttribute("aria-hidden","false"),Ye(e.querySelectorAll("a"),(function(e){return e.removeAttribute("tabindex")}))}function qe(e){e.setAttribute("aria-hidden","true"),Ye(e.querySelectorAll("a"),(function(e){return e.setAttribute("tabindex","-1")}))}var We=function(e){m()(s,e);var t=v()(s);function s(e){var i;return p()(this,s),(i=t.call(this,e)).btnPlayRef=Object(o.createRef)(),i.btnPauseRef=Object(o.createRef)(),i.btnNextRef=Object(o.createRef)(),i.btnPrevRef=Object(o.createRef)(),i.carouselRef=Object(o.createRef)(),i.paginationRef=Object(o.createRef)(),i}return h()(s,[{key:"componentDidMount",value:function(){this.initializeSwiper(0)}},{key:"componentDidUpdate",value:function(e){var t=this.props,s=t.attributes,i=t.latestPosts;if(e.latestPosts!==i||e.latestPosts&&i&&e.latestPosts.length!==i.length||!Object(b.isEqual)(e.attributes,s)){var a=0;this.swiperInstance&&(i&&this.swiperInstance.realIndex<i.length&&(a=this.swiperInstance.realIndex),this.swiperInstance.destroy(!0,!0)),this.initializeSwiper(a)}}},{key:"initializeSwiper",value:function(e){var t=this.props.latestPosts;if(t&&t.length){var s=this.props.attributes,i=s.autoplay,a=s.delay;this.swiperInstance=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=new Re(e.container,{a11y:!1,autoplay:!!t.autoplay&&{delay:t.delay,disableOnInteraction:!1},effect:"slide",grabCursor:!0,init:!1,initialSlide:t.initialSlide||0,loop:!0,navigation:{nextEl:e.next,prevEl:e.prev},pagination:{bulletElement:"button",clickable:!0,el:e.pagination,type:"bullets",renderBullet:function(e,t){return'<button class="'.concat(t,'"><span>').concat(Object(d.sprintf)(Object(d.__)("Slide %s","full-site-editing"),e+1),"</span></button>")}},preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,touchStartPreventDefault:!1,on:{init:function(){Ye(this.wrapperEl.querySelectorAll(".swiper-slide"),(function(e){return qe(e)})),Fe(this.slides[this.activeIndex])},slideChange:function(){var e=this.slides[this.activeIndex];if(qe(this.slides[this.previousIndex]),Fe(e),!this.autoplay.running){var t=e.querySelector("img"),s=!!t&&t.alt,i=Object(d.sprintf)(Object(d.__)("Slide %s of %s","full-site-editing"),this.realIndex+1,this.pagination.bullets.length);Object(B.speak)(Object(V.escapeHTML)("".concat(e.innerText,",\n\t\t\t\t\t\t\t").concat(s?Object(d.sprintf)(Object(d.__)("Image: %s, ","full-site-editing"),s):"","\n\t\t\t\t\t\t\t").concat(i)),"assertive")}}}});if(t.autoplay){function i(){s.autoplay.stop(),e.play.focus()}function a(){s.autoplay.start(),e.pause.focus()}s.on("init",(function(){e.play.addEventListener("click",a),e.pause.addEventListener("click",i)})),s.on("autoplayStart",(function(){e.block.classList.add(Xe),Object(B.speak)(Object(d.__)("Playing","full-site-editing"),"assertive")})),s.on("autoplayStop",(function(){e.block.classList.remove(Xe),Object(B.speak)(Object(d.__)("Paused","full-site-editing"),"assertive")})),s.on("beforeDestroy",(function(){e.play.removeEventListener("click",a),e.pause.removeEventListener("click",i)}))}return s.init(),s}({block:this.carouselRef.current,container:this.carouselRef.current,next:this.btnNextRef.current,prev:this.btnPrevRef.current,play:this.btnPlayRef.current,pause:this.btnPauseRef.current,pagination:this.paginationRef.current},{autoplay:i,delay:1e3*a,initialSlide:e})}}},{key:"render",value:function(){var e=this.props,t=e.attributes,s=e.className,i=e.setAttributes,a=e.latestPosts,n=t.authors,r=t.autoplay,c=t.categories,p=t.delay,u=t.postsToShow,h=t.showCategory,f=t.showDate,m=t.showAuthor,g=t.showAvatar,v=t.tags,b=w()(s,"wp-block-newspack-blocks-carousel","swiper-container",r&&"wp-block-newspack-blocks-carousel__autoplay-playing"),y=Object(x.__experimentalGetSettings)().formats.date;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:b,ref:this.carouselRef},a&&!a.length&&Object(o.createElement)(l.Placeholder,null,Object(d.__)("Sorry, no posts were found.","full-site-editing")),!a&&Object(o.createElement)(l.Placeholder,{icon:Object(o.createElement)(l.Spinner,null),className:"component-placeholder__align-center"}),a&&Object(o.createElement)(o.Fragment,null,r&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("button",{className:"amp-carousel-button-pause amp-carousel-button",ref:this.btnPauseRef}),Object(o.createElement)("button",{className:"amp-carousel-button-play amp-carousel-button",ref:this.btnPlayRef})),Object(o.createElement)("div",{className:"swiper-wrapper"},a.map((function(e){return e.newspack_featured_image_src&&Object(o.createElement)("article",{className:"post-has-image swiper-slide",key:e.id},Object(o.createElement)("figure",{className:"post-thumbnail"},e.newspack_featured_image_src&&Object(o.createElement)("a",{href:"#",rel:"bookmark"},Object(o.createElement)("img",{src:e.newspack_featured_image_src.large,alt:""}))),Object(o.createElement)("div",{className:"entry-wrapper"},h&&e.newspack_category_info.length&&Object(o.createElement)("div",{className:"cat-links"},Object(o.createElement)("a",{href:"#"},Object(C.decodeEntities)(e.newspack_category_info))),Object(o.createElement)("h3",{className:"entry-title"},Object(o.createElement)("a",{href:"#"},Object(C.decodeEntities)(e.title.rendered.trim()))),Object(o.createElement)("div",{className:"entry-meta"},m&&g&&e.newspack_author_info.map((function(e){return Object(o.createElement)("span",{className:"avatar author-avatar",key:e.id},Object(o.createElement)("a",{className:"url fn n",href:e.author_link},Object(o.createElement)(o.RawHTML,null,e.avatar)))})),m&&function(e){return Object(o.createElement)("span",{className:"byline"},Object(d._x)("by","post author","full-site-editing")," ",e.reduce((function(t,s,i){return[].concat(A()(t),[Object(o.createElement)("span",{className:"author vcard",key:s.id},Object(o.createElement)("a",{className:"url fn n",href:s.author_link},s.display_name)),i<e.length-2&&", ",e.length>1&&i===e.length-2&&Object(d._x)(" and ","post author","full-site-editing")])}),[]))}(e.newspack_author_info),f&&Object(o.createElement)("time",{className:"entry-date published",key:"pub-date"},Object(x.dateI18n)(y,e.date_gmt)))))}))),Object(o.createElement)("button",{className:"amp-carousel-button amp-carousel-button-prev swiper-button-prev",ref:this.btnPrevRef}),Object(o.createElement)("button",{className:"amp-carousel-button amp-carousel-button-next swiper-button-next",ref:this.btnNextRef}),Object(o.createElement)("div",{className:"swiper-pagination-bullets amp-pagination",ref:this.paginationRef}))),Object(o.createElement)(E.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(d.__)("Display Settings","full-site-editing"),initialOpen:!0},u&&Object(o.createElement)(H,{enableSpecific:!1,numberOfItems:u,onNumberOfItemsChange:function(e){return i({postsToShow:e||1})},authors:n,onAuthorsChange:function(e){return i({authors:e})},categories:c,onCategoriesChange:function(e){return i({categories:e})},tags:v,onTagsChange:function(e){return i({tags:e})}})),Object(o.createElement)(l.PanelBody,{title:Object(d.__)("Slideshow Settings","full-site-editing"),initialOpen:!0},Object(o.createElement)(l.ToggleControl,{label:Object(d.__)("Autoplay","full-site-editing"),help:Object(d.__)("Autoplay between slides","full-site-editing"),checked:r,onChange:function(e){i({autoplay:e})}}),r&&Object(o.createElement)(l.RangeControl,{label:Object(d.__)("Delay between transitions (in seconds)","full-site-editing"),value:p,onChange:function(e){i({delay:e})},min:1,max:20})),Object(o.createElement)(l.PanelBody,{title:Object(d.__)("Article Meta Settings","full-site-editing")},Object(o.createElement)(l.PanelRow,null,Object(o.createElement)(l.ToggleControl,{label:Object(d.__)("Show Date","full-site-editing"),checked:f,onChange:function(){return i({showDate:!f})}})),Object(o.createElement)(l.PanelRow,null,Object(o.createElement)(l.ToggleControl,{label:Object(d.__)("Show Category","full-site-editing"),checked:h,onChange:function(){return i({showCategory:!h})}})),Object(o.createElement)(l.PanelRow,null,Object(o.createElement)(l.ToggleControl,{label:Object(d.__)("Show Author","full-site-editing"),checked:m,onChange:function(){return i({showAuthor:!m})}})),m&&Object(o.createElement)(l.PanelRow,null,Object(o.createElement)(l.ToggleControl,{label:Object(d.__)("Show Author Avatar","full-site-editing"),checked:g,onChange:function(){return i({showAvatar:!g})}})))))}}]),s}(o.Component),Ue=Object(T.compose)([Object(S.withSelect)((function(e,t){var s=t.attributes,i=s.postsToShow,a=s.authors,n=s.categories,r=s.tags;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(b.pickBy)({per_page:i,categories:n,author:a,tags:r,meta_key:"_thumbnail_id",meta_value_num:0,meta_compare:">"},(function(e){return!Object(b.isUndefined)(e)})))}}))])(We),Ke=(s(37),s(38),{title:Object(d.__)("Post Carousel","full-site-editing"),icon:Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(o.createElement)(l.Path,{d:"M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"})),category:"newspack",keywords:[Object(d.__)("posts","full-site-editing"),Object(d.__)("slideshow","full-site-editing"),Object(d.__)("carousel","full-site-editing")],description:Object(d.__)("A carousel of posts.","full-site-editing"),attributes:{className:{type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:5},postsToShow:{type:"integer",default:3},authors:{type:"array"},categories:{type:"array"},tags:{type:"array"},showDate:{type:"boolean",default:!0},showAuthor:{type:"boolean",default:!0},showAvatar:{type:"boolean",default:!0},showCategory:{type:"boolean",default:!1}},supports:{html:!1,align:!1},edit:Ue,save:function(){return null}});Object(r.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/carousel"!==e?e:"a8c/posts-carousel"})),Object(n.registerBlockType)("a8c/posts-carousel",a()(a()({},Ke),{},{category:"widgets"}))}]));
|
1 |
+
!function(e,t){for(var s in t)e[s]=t[s]}(window,function(e){var t={};function s(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,s),i.l=!0,i.exports}return s.m=e,s.c=t,s.d=function(e,t,a){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)s.d(a,i,function(t){return e[t]}.bind(null,i));return a},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=39)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}},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(){e.exports=this.wp.htmlEntities}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.url}()},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,s){var a=s(26);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&&a(e,t)}},function(e,t,s){var a=s(27),i=s(28),n=s(29);e.exports=function(e){var t=i();return function(){var s,i=a(e);if(t){var r=a(this).constructor;s=Reflect.construct(i,arguments,r)}else s=i.apply(this,arguments);return n(this,s)}}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){function s(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}e.exports=function(e,t,a){return t&&s(e.prototype,t),a&&s(e,a),e}},function(e,t,s){var a=s(31),i=s(32),n=s(33),r=s(34);e.exports=function(e){return a(e)||i(e)||n(e)||r()}},function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,s){var a=s(3);function i(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,a)}return s}e.exports=function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?i(Object(s),!0).forEach((function(t){a(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,a=new Array(t);s<t;s++)a[s]=e[s];return a}},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,s){var a;
|
2 |
/*!
|
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 s={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)&&a.length){var r=i.apply(null,a);r&&e.push(r)}else if("object"===n)for(var o in a)s.call(a,o)&&a[o]&&e.push(o)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(a=function(){return i}.apply(t,[]))||(e.exports=a)}()},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){function s(){return e.exports=s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},s.apply(this,arguments)}e.exports=s},function(e,t){!function(){e.exports=this.wp.escapeHtml}()},function(e,t){function s(t,a){return e.exports=s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(t,a)}e.exports=s},function(e,t){function s(t){return e.exports=s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(t)}e.exports=s},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,s){var a=s(30),i=s(4);e.exports=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?i(e):t}},function(e,t){function s(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=s=function(e){return typeof e}:e.exports=s=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(t)}e.exports=s},function(e,t,s){var a=s(17);e.exports=function(e){if(Array.isArray(e))return a(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,s){var a=s(17);e.exports=function(e,t){if(e){if("string"==typeof e)return a(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?a(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,s){},function(e,t,s){},function(e,t,s){},function(e,t,s){},function(e,t,s){"use strict";s.r(t);var a=s(15),i=s.n(a),n=s(18),r=s(19),o=s(0),l=s(2),d=s(1),c=s(8),p=s.n(c),u=s(12),h=s.n(u),f=s(9),m=s.n(f),g=s(10),v=s.n(g),b=s(11),y=s(20),w=s.n(y),x=s(16),E=s(21),S=s(22),T=s(23),C=s(5),$=s(24),k=s.n($),M=s(4),P=s.n(M),O=s(3),z=s.n(O),I=s(6),L=s.n(I),j=s(7),D=s(13),A=s.n(D),_=(s(35),function(e){m()(s,e);var t=v()(s);function s(e){var a;return p()(this,s),a=t.call(this,e),z()(P()(a),"isFetchingInfoOnLoad",(function(){var e=a.props,t=e.tokens,s=e.fetchSavedInfo;return Boolean(t.length&&s)})),a.state={suggestions:[],validValues:{},loading:a.isFetchingInfoOnLoad()},a.debouncedUpdateSuggestions=Object(b.debounce)(a.updateSuggestions,500),a}return h()(s,[{key:"componentDidMount",value:function(){var e=this;if(this.isFetchingInfoOnLoad()){var t=this.props,s=t.tokens;(0,t.fetchSavedInfo)(s).then((function(t){var s=e.state.validValues;t.forEach((function(e){s[e.value]=e.label})),e.setState({validValues:s,loading:!1})}))}}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}},{key:"getLabelsForValues",value:function(e){var t=this.state.validValues;return e.reduce((function(e,s){return t[s]?[].concat(A()(e),[t[s]]):e}),[])}},{key:"getValuesForLabels",value:function(e){var t=this.state.validValues;return e.map((function(e){return Object.keys(t).find((function(s){return t[s]===e}))}))}},{key:"updateSuggestions",value:function(e){var t=this,s=this.props.fetchSuggestions;s&&this.setState({loading:!0},(function(){var a=s(e);a.then((function(e){if(t.suggestionsRequest===a){var s=t.state.validValues,i=[];e.forEach((function(e){i.push(e.label),s[e.value]=e.label})),t.setState({suggestions:i,validValues:s,loading:!1})}})).catch((function(){t.suggestionsRequest===a&&t.setState({loading:!1})})),t.suggestionsRequest=a}))}},{key:"handleOnChange",value:function(e){(0,this.props.onChange)(this.getValuesForLabels(e))}},{key:"getTokens",value:function(){var e=this.props.tokens;return this.getLabelsForValues(e)}},{key:"render",value:function(){var e=this,t=this.props,s=t.help,a=t.label,i=void 0===a?"":a,n=this.state,r=n.suggestions,d=n.loading;return Object(o.createElement)("div",{className:"autocomplete-tokenfield"},Object(o.createElement)(l.FormTokenField,{value:this.getTokens(),suggestions:r,onChange:function(t){return e.handleOnChange(t)},onInputChange:function(t){return e.debouncedUpdateSuggestions(t)},label:i}),d&&Object(o.createElement)(l.Spinner,null),s&&Object(o.createElement)("p",{className:"autocomplete-tokenfield__help"},s))}}]),s}(o.Component)),N=function(e){m()(s,e);var t=v()(s);function s(){var e;p()(this,s);for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];return e=t.call.apply(t,[this].concat(i)),z()(P()(e),"state",{showAdvancedFilters:!1}),z()(P()(e),"fetchPostSuggestions",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/search",{search:e,per_page:20,_fields:"id,title",type:"post"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.title)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"fetchSavedPosts",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/posts",{per_page:100,include:e.join(","),_fields:"id,title"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.title.rendered)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"fetchAuthorSuggestions",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/users",{search:e,per_page:20,_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no name)","full-site-editing")}}))}))})),z()(P()(e),"fetchSavedAuthors",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/users",{per_page:100,include:e.join(","),_fields:"id,name"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no name)","full-site-editing")}}))}))})),z()(P()(e),"fetchCategorySuggestions",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"fetchSavedCategories",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"fetchTagSuggestions",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"fetchSavedTags",(function(e){return L()({path:Object(j.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((function(e){return{value:e.id,label:Object(C.decodeEntities)(e.name)||Object(d.__)("(no title)","full-site-editing")}}))}))})),z()(P()(e),"render",(function(){var t=e.props,s=t.specificMode,a=t.onSpecificModeChange,i=t.specificPosts,n=t.onSpecificPostsChange,r=t.authors,c=t.onAuthorsChange,p=t.categories,u=t.onCategoriesChange,h=t.tags,f=t.onTagsChange,m=t.tagExclusions,g=t.onTagExclusionsChange,v=t.enableSpecific,b=e.state.showAdvancedFilters;return[v&&Object(o.createElement)(l.ToggleControl,{key:"specificMode",checked:s,onChange:a,label:Object(d.__)("Choose Specific Posts","full-site-editing")}),s&&Object(o.createElement)(_,{key:"posts",tokens:i||[],onChange:n,fetchSuggestions:e.fetchPostSuggestions,fetchSavedInfo:e.fetchSavedPosts,label:Object(d.__)("Posts","full-site-editing"),help:Object(d.__)("Begin typing post title, click autocomplete result to select.","full-site-editing")}),!s&&Object(o.createElement)(l.QueryControls,k()({key:"queryControls"},e.props)),!s&&c&&Object(o.createElement)(_,{key:"authors",tokens:r||[],onChange:c,fetchSuggestions:e.fetchAuthorSuggestions,fetchSavedInfo:e.fetchSavedAuthors,label:Object(d.__)("Authors","full-site-editing")}),!s&&u&&Object(o.createElement)(_,{key:"categories",tokens:p||[],onChange:u,fetchSuggestions:e.fetchCategorySuggestions,fetchSavedInfo:e.fetchSavedCategories,label:Object(d.__)("Categories","full-site-editing")}),!s&&f&&Object(o.createElement)(_,{key:"tags",tokens:h||[],onChange:f,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:Object(d.__)("Tags","full-site-editing")}),!s&&g&&Object(o.createElement)("p",{key:"toggle-advanced-filters"},Object(o.createElement)(l.Button,{isLink:!0,onClick:function(){return e.setState({showAdvancedFilters:!b})}},b?Object(d.__)("Hide Advanced Filters","full-site-editing"):Object(d.__)("Show Advanced Filters","full-site-editing"))),!s&&g&&b&&Object(o.createElement)(_,{key:"tag-exclusion",tokens:m||[],onChange:g,fetchSuggestions:e.fetchTagSuggestions,fetchSavedInfo:e.fetchSavedTags,label:Object(d.__)("Excluded Tags","full-site-editing")})]})),e}return s}(o.Component);N.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],tagExclusions:[]};var H=N,B=s(14),V=s(25),G="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,R="undefined"==typeof window?{document:G,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;class X{constructor(e){const t=this;for(let s=0;s<e.length;s+=1)t[s]=e[s];return t.length=e.length,this}}function Y(e,t){const s=[];let a=0;if(e&&!t&&e instanceof X)return e;if(e)if("string"==typeof e){let i,n;const r=e.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let e="div";for(0===r.indexOf("<li")&&(e="ul"),0===r.indexOf("<tr")&&(e="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(e="tr"),0===r.indexOf("<tbody")&&(e="table"),0===r.indexOf("<option")&&(e="select"),n=G.createElement(e),n.innerHTML=r,a=0;a<n.childNodes.length;a+=1)s.push(n.childNodes[a])}else for(i=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||G).querySelectorAll(e.trim()):[G.getElementById(e.trim().split("#")[1])],a=0;a<i.length;a+=1)i[a]&&s.push(i[a])}else if(e.nodeType||e===R||e===G)s.push(e);else if(e.length>0&&e[0].nodeType)for(a=0;a<e.length;a+=1)s.push(e[a]);return new X(s)}function F(e){const t=[];for(let s=0;s<e.length;s+=1)-1===t.indexOf(e[s])&&t.push(e[s]);return t}Y.fn=X.prototype,Y.Class=X,Y.Dom7=X;"resize scroll".split(" ");const q={addClass:function(e){if(void 0===e)return this;const t=e.split(" ");for(let s=0;s<t.length;s+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.add(t[s]);return this},removeClass:function(e){const t=e.split(" ");for(let s=0;s<t.length;s+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.remove(t[s]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){const t=e.split(" ");for(let s=0;s<t.length;s+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.toggle(t[s]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let s=0;s<this.length;s+=1)if(2===arguments.length)this[s].setAttribute(e,t);else for(const t in e)this[s][t]=e[t],this[s].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){let s;if(void 0!==t){for(let a=0;a<this.length;a+=1)s=this[a],s.dom7ElementDataStorage||(s.dom7ElementDataStorage={}),s.dom7ElementDataStorage[e]=t;return this}if(s=this[0],s){if(s.dom7ElementDataStorage&&e in s.dom7ElementDataStorage)return s.dom7ElementDataStorage[e];const t=s.getAttribute("data-"+e);return t||void 0}},transform:function(e){for(let t=0;t<this.length;t+=1){const s=this[t].style;s.webkitTransform=e,s.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(let t=0;t<this.length;t+=1){const s=this[t].style;s.webkitTransitionDuration=e,s.transitionDuration=e}return this},on:function(...e){let[t,s,a,i]=e;function n(e){const t=e.target;if(!t)return;const i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),Y(t).is(s))a.apply(t,i);else{const e=Y(t).parents();for(let t=0;t<e.length;t+=1)Y(e[t]).is(s)&&a.apply(e[t],i)}}function r(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"==typeof e[1]&&([t,a,i]=e,s=void 0),i||(i=!1);const o=t.split(" ");let l;for(let d=0;d<this.length;d+=1){const e=this[d];if(s)for(l=0;l<o.length;l+=1){const t=o[l];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:a,proxyListener:n}),e.addEventListener(t,n,i)}else for(l=0;l<o.length;l+=1){const t=o[l];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:a,proxyListener:r}),e.addEventListener(t,r,i)}}return this},off:function(...e){let[t,s,a,i]=e;"function"==typeof e[1]&&([t,a,i]=e,s=void 0),i||(i=!1);const n=t.split(" ");for(let r=0;r<n.length;r+=1){const e=n[r];for(let t=0;t<this.length;t+=1){const n=this[t];let r;if(!s&&n.dom7Listeners?r=n.dom7Listeners[e]:s&&n.dom7LiveListeners&&(r=n.dom7LiveListeners[e]),r&&r.length)for(let t=r.length-1;t>=0;t-=1){const s=r[t];a&&s.listener===a||a&&s.listener&&s.listener.dom7proxy&&s.listener.dom7proxy===a?(n.removeEventListener(e,s.proxyListener,i),r.splice(t,1)):a||(n.removeEventListener(e,s.proxyListener,i),r.splice(t,1))}}}return this},trigger:function(...e){const t=e[0].split(" "),s=e[1];for(let i=0;i<t.length;i+=1){const n=t[i];for(let t=0;t<this.length;t+=1){const i=this[t];let r;try{r=new R.CustomEvent(n,{detail:s,bubbles:!0,cancelable:!0})}catch(a){r=G.createEvent("Event"),r.initEvent(n,!0,!0),r.detail=s}i.dom7EventData=e.filter((e,t)=>t>0),i.dispatchEvent(r),i.dom7EventData=[],delete i.dom7EventData}}return this},transitionEnd:function(e){const t=["webkitTransitionEnd","transitionend"],s=this;let a;function i(n){if(n.target===this)for(e.call(this,n),a=0;a<t.length;a+=1)s.off(t[a],i)}if(e)for(a=0;a<t.length;a+=1)s.on(t[a],i);return this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){const e=this[0],t=e.getBoundingClientRect(),s=G.body,a=e.clientTop||s.clientTop||0,i=e.clientLeft||s.clientLeft||0,n=e===R?R.scrollY:e.scrollTop,r=e===R?R.scrollX:e.scrollLeft;return{top:t.top+n-a,left:t.left+r-i}}return null},css:function(e,t){let s;if(1===arguments.length){if("string"!=typeof e){for(s=0;s<this.length;s+=1)for(let t in e)this[s].style[t]=e[t];return this}if(this[0])return R.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(s=0;s<this.length;s+=1)this[s].style[e]=t;return this}return this},each:function(e){if(!e)return this;for(let t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=this[0];let s,a;if(!t||void 0===e)return!1;if("string"==typeof e){if(t.matches)return t.matches(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);for(s=Y(e),a=0;a<s.length;a+=1)if(s[a]===t)return!0;return!1}if(e===G)return t===G;if(e===R)return t===R;if(e.nodeType||e instanceof X){for(s=e.nodeType?[e]:e,a=0;a<s.length;a+=1)if(s[a]===t)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;let s;return e>t-1?new X([]):e<0?(s=t+e,new X(s<0?[]:[this[s]])):new X([this[e]])},append:function(...e){let t;for(let s=0;s<e.length;s+=1){t=e[s];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const s=G.createElement("div");for(s.innerHTML=t;s.firstChild;)this[e].appendChild(s.firstChild)}else if(t instanceof X)for(let s=0;s<t.length;s+=1)this[e].appendChild(t[s]);else this[e].appendChild(t)}return this},prepend:function(e){let t,s;for(t=0;t<this.length;t+=1)if("string"==typeof e){const a=G.createElement("div");for(a.innerHTML=e,s=a.childNodes.length-1;s>=0;s-=1)this[t].insertBefore(a.childNodes[s],this[t].childNodes[0])}else if(e instanceof X)for(s=0;s<e.length;s+=1)this[t].insertBefore(e[s],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&Y(this[0].nextElementSibling).is(e)?new X([this[0].nextElementSibling]):new X([]):this[0].nextElementSibling?new X([this[0].nextElementSibling]):new X([]):new X([])},nextAll:function(e){const t=[];let s=this[0];if(!s)return new X([]);for(;s.nextElementSibling;){const a=s.nextElementSibling;e?Y(a).is(e)&&t.push(a):t.push(a),s=a}return new X(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&Y(t.previousElementSibling).is(e)?new X([t.previousElementSibling]):new X([]):t.previousElementSibling?new X([t.previousElementSibling]):new X([])}return new X([])},prevAll:function(e){const t=[];let s=this[0];if(!s)return new X([]);for(;s.previousElementSibling;){const a=s.previousElementSibling;e?Y(a).is(e)&&t.push(a):t.push(a),s=a}return new X(t)},parent:function(e){const t=[];for(let s=0;s<this.length;s+=1)null!==this[s].parentNode&&(e?Y(this[s].parentNode).is(e)&&t.push(this[s].parentNode):t.push(this[s].parentNode));return Y(F(t))},parents:function(e){const t=[];for(let s=0;s<this.length;s+=1){let a=this[s].parentNode;for(;a;)e?Y(a).is(e)&&t.push(a):t.push(a),a=a.parentNode}return Y(F(t))},closest:function(e){let t=this;return void 0===e?new X([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let s=0;s<this.length;s+=1){const a=this[s].querySelectorAll(e);for(let e=0;e<a.length;e+=1)t.push(a[e])}return new X(t)},children:function(e){const t=[];for(let s=0;s<this.length;s+=1){const a=this[s].childNodes;for(let s=0;s<a.length;s+=1)e?1===a[s].nodeType&&Y(a[s]).is(e)&&t.push(a[s]):1===a[s].nodeType&&t.push(a[s])}return new X(F(t))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(...e){const t=this;let s,a;for(s=0;s<e.length;s+=1){const i=Y(e[s]);for(a=0;a<i.length;a+=1)t[t.length]=i[a],t.length+=1}return t},styles:function(){return this[0]?R.getComputedStyle(this[0],null):{}}};Object.keys(q).forEach(e=>{Y.fn[e]=Y.fn[e]||q[e]});const W={deleteProps(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(s){}try{delete t[e]}catch(s){}})},nextTick:(e,t=0)=>setTimeout(e,t),now:()=>Date.now(),getTranslate(e,t="x"){let s,a,i;const n=R.getComputedStyle(e,null);return R.WebKitCSSMatrix?(a=n.transform||n.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(e=>e.replace(",",".")).join(", ")),i=new R.WebKitCSSMatrix("none"===a?"":a)):(i=n.MozTransform||n.OTransform||n.MsTransform||n.msTransform||n.transform||n.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=i.toString().split(",")),"x"===t&&(a=R.WebKitCSSMatrix?i.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(a=R.WebKitCSSMatrix?i.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),a||0},parseUrlQuery(e){const t={};let s,a,i,n,r=e||R.location.href;if("string"==typeof r&&r.length)for(r=r.indexOf("?")>-1?r.replace(/\S*\?/,""):"",a=r.split("&").filter(e=>""!==e),n=a.length,s=0;s<n;s+=1)i=a[s].replace(/#\S+/g,"").split("="),t[decodeURIComponent(i[0])]=void 0===i[1]?void 0:decodeURIComponent(i[1])||"";return t},isObject:e=>"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object,extend(...e){const t=Object(e[0]);for(let s=1;s<e.length;s+=1){const a=e[s];if(null!=a){const e=Object.keys(Object(a));for(let s=0,i=e.length;s<i;s+=1){const i=e[s],n=Object.getOwnPropertyDescriptor(a,i);void 0!==n&&n.enumerable&&(W.isObject(t[i])&&W.isObject(a[i])?W.extend(t[i],a[i]):!W.isObject(t[i])&&W.isObject(a[i])?(t[i]={},W.extend(t[i],a[i])):t[i]=a[i])}}}return t}},U=function(){const e=G.createElement("div");return{touch:R.Modernizr&&!0===R.Modernizr.touch||!!(R.navigator.maxTouchPoints>0||"ontouchstart"in R||R.DocumentTouch&&G instanceof R.DocumentTouch),pointerEvents:!!(R.navigator.pointerEnabled||R.PointerEvent||"maxTouchPoints"in R.navigator&&R.navigator.maxTouchPoints>0),prefixedPointerEvents:!!R.navigator.msPointerEnabled,transition:function(){const t=e.style;return"transition"in t||"webkitTransition"in t||"MozTransition"in t}(),transforms3d:R.Modernizr&&!0===R.Modernizr.csstransforms3d||function(){const t=e.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){const t=e.style,s="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" ");for(let e=0;e<s.length;e+=1)if(s[e]in t)return!0;return!1}(),observer:"MutationObserver"in R||"WebkitMutationObserver"in R,passiveListener:function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});R.addEventListener("testPassiveListener",null,t)}catch(t){}return e}(),gestures:"ongesturestart"in R}}(),K={isIE:!!R.navigator.userAgent.match(/Trident/g)||!!R.navigator.userAgent.match(/MSIE/g),isEdge:!!R.navigator.userAgent.match(/Edge/g),isSafari:function(){const e=R.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(R.navigator.userAgent)};class Q{constructor(e={}){const t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach(e=>{t.on(e,t.params.on[e])})}on(e,t,s){const a=this;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach(e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)}),a}once(e,t,s){const a=this;if("function"!=typeof t)return a;function i(...s){t.apply(a,s),a.off(e,i),i.f7proxy&&delete i.f7proxy}return i.f7proxy=t,a.on(e,i,s)}off(e,t){const s=this;return s.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].length&&s.eventsListeners[e].forEach((a,i)=>{(a===t||a.f7proxy&&a.f7proxy===t)&&s.eventsListeners[e].splice(i,1)})}),s):s}emit(...e){const t=this;if(!t.eventsListeners)return t;let s,a,i;"string"==typeof e[0]||Array.isArray(e[0])?(s=e[0],a=e.slice(1,e.length),i=t):(s=e[0].events,a=e[0].data,i=e[0].context||t);return(Array.isArray(s)?s:s.split(" ")).forEach(e=>{if(t.eventsListeners&&t.eventsListeners[e]){const s=[];t.eventsListeners[e].forEach(e=>{s.push(e)}),s.forEach(e=>{e.apply(i,a)})}}),t}useModulesParams(e){const t=this;t.modules&&Object.keys(t.modules).forEach(s=>{const a=t.modules[s];a.params&&W.extend(e,a.params)})}useModules(e={}){const t=this;t.modules&&Object.keys(t.modules).forEach(s=>{const a=t.modules[s],i=e[s]||{};a.instance&&Object.keys(a.instance).forEach(e=>{const s=a.instance[e];t[e]="function"==typeof s?s.bind(t):s}),a.on&&t.on&&Object.keys(a.on).forEach(e=>{t.on(e,a.on[e])}),a.create&&a.create.bind(t)(i)})}static set components(e){this.use&&this.use(e)}static installModule(e,...t){const s=this;s.prototype.modules||(s.prototype.modules={});const a=e.name||`${Object.keys(s.prototype.modules).length}_${W.now()}`;return s.prototype.modules[a]=e,e.proto&&Object.keys(e.proto).forEach(t=>{s.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(t=>{s[t]=e.static[t]}),e.install&&e.install.apply(s,t),s}static use(e,...t){const s=this;return Array.isArray(e)?(e.forEach(e=>s.installModule(e)),s):s.installModule(e,...t)}}var Z={updateSize:function(){const e=this;let t,s;const a=e.$el;t=void 0!==e.params.width?e.params.width:a[0].clientWidth,s=void 0!==e.params.height?e.params.height:a[0].clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(a.css("padding-left"),10)-parseInt(a.css("padding-right"),10),s=s-parseInt(a.css("padding-top"),10)-parseInt(a.css("padding-bottom"),10),W.extend(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this,t=e.params,{$wrapperEl:s,size:a,rtlTranslate:i,wrongRTL:n}=e,r=e.virtual&&t.virtual.enabled,o=r?e.virtual.slides.length:e.slides.length,l=s.children("."+e.params.slideClass),d=r?e.virtual.slides.length:l.length;let c=[];const p=[],u=[];let h=t.slidesOffsetBefore;"function"==typeof h&&(h=t.slidesOffsetBefore.call(e));let f=t.slidesOffsetAfter;"function"==typeof f&&(f=t.slidesOffsetAfter.call(e));const m=e.snapGrid.length,g=e.snapGrid.length;let v,b,y=t.spaceBetween,w=-h,x=0,E=0;if(void 0===a)return;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*a),e.virtualSize=-y,i?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(v=Math.floor(d/t.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(v=Math.max(v,t.slidesPerView*t.slidesPerColumn)));const S=t.slidesPerColumn,T=v/S,C=Math.floor(d/t.slidesPerColumn);for(let k=0;k<d;k+=1){b=0;const s=l.eq(k);if(t.slidesPerColumn>1){let a,i,n;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)i=Math.floor(k/S),n=k-i*S,(i>C||i===C&&n===S-1)&&(n+=1,n>=S&&(n=0,i+=1));else{const e=Math.floor(k/t.slidesPerGroup);n=Math.floor(k/t.slidesPerView)-e*t.slidesPerColumn,i=k-n*t.slidesPerView-e*t.slidesPerView}a=i+n*v/S,s.css({"-webkit-box-ordinal-group":a,"-moz-box-ordinal-group":a,"-ms-flex-order":a,"-webkit-order":a,order:a})}else n=Math.floor(k/T),i=k-n*T;s.css("margin-"+(e.isHorizontal()?"top":"left"),0!==n&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",i).attr("data-swiper-row",n)}if("none"!==s.css("display")){if("auto"===t.slidesPerView){const a=R.getComputedStyle(s[0],null),i=s[0].style.transform,n=s[0].style.webkitTransform;if(i&&(s[0].style.transform="none"),n&&(s[0].style.webkitTransform="none"),t.roundLengths)b=e.isHorizontal()?s.outerWidth(!0):s.outerHeight(!0);else if(e.isHorizontal()){const e=parseFloat(a.getPropertyValue("width")),t=parseFloat(a.getPropertyValue("padding-left")),s=parseFloat(a.getPropertyValue("padding-right")),i=parseFloat(a.getPropertyValue("margin-left")),n=parseFloat(a.getPropertyValue("margin-right")),r=a.getPropertyValue("box-sizing");b=r&&"border-box"===r&&!K.isIE?e+i+n:e+t+s+i+n}else{const e=parseFloat(a.getPropertyValue("height")),t=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom")),i=parseFloat(a.getPropertyValue("margin-top")),n=parseFloat(a.getPropertyValue("margin-bottom")),r=a.getPropertyValue("box-sizing");b=r&&"border-box"===r&&!K.isIE?e+i+n:e+t+s+i+n}i&&(s[0].style.transform=i),n&&(s[0].style.webkitTransform=n),t.roundLengths&&(b=Math.floor(b))}else b=(a-(t.slidesPerView-1)*y)/t.slidesPerView,t.roundLengths&&(b=Math.floor(b)),l[k]&&(e.isHorizontal()?l[k].style.width=b+"px":l[k].style.height=b+"px");l[k]&&(l[k].swiperSlideSize=b),u.push(b),t.centeredSlides?(w=w+b/2+x/2+y,0===x&&0!==k&&(w=w-a/2-y),0===k&&(w=w-a/2-y),Math.abs(w)<.001&&(w=0),t.roundLengths&&(w=Math.floor(w)),E%t.slidesPerGroup==0&&c.push(w),p.push(w)):(t.roundLengths&&(w=Math.floor(w)),E%t.slidesPerGroup==0&&c.push(w),p.push(w),w=w+b+y),e.virtualSize+=b+y,x=b,E+=1}}let $;if(e.virtualSize=Math.max(e.virtualSize,a)+f,i&&n&&("slide"===t.effect||"coverflow"===t.effect)&&s.css({width:e.virtualSize+t.spaceBetween+"px"}),U.flexbox&&!t.setWrapperSize||(e.isHorizontal()?s.css({width:e.virtualSize+t.spaceBetween+"px"}):s.css({height:e.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(e.virtualSize=(b+t.spaceBetween)*v,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?s.css({width:e.virtualSize+t.spaceBetween+"px"}):s.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){$=[];for(let s=0;s<c.length;s+=1){let a=c[s];t.roundLengths&&(a=Math.floor(a)),c[s]<e.virtualSize+c[0]&&$.push(a)}c=$}if(!t.centeredSlides){$=[];for(let s=0;s<c.length;s+=1){let i=c[s];t.roundLengths&&(i=Math.floor(i)),c[s]<=e.virtualSize-a&&$.push(i)}c=$,Math.floor(e.virtualSize-a)-Math.floor(c[c.length-1])>1&&c.push(e.virtualSize-a)}if(0===c.length&&(c=[0]),0!==t.spaceBetween&&(e.isHorizontal()?i?l.css({marginLeft:y+"px"}):l.css({marginRight:y+"px"}):l.css({marginBottom:y+"px"})),t.centerInsufficientSlides){let e=0;if(u.forEach(s=>{e+=s+(t.spaceBetween?t.spaceBetween:0)}),e-=t.spaceBetween,e<a){const t=(a-e)/2;c.forEach((e,s)=>{c[s]=e-t}),p.forEach((e,s)=>{p[s]=e+t})}}W.extend(e,{slides:l,snapGrid:c,slidesGrid:p,slidesSizesGrid:u}),d!==o&&e.emit("slidesLengthChange"),c.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==g&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()},updateAutoHeight:function(e){const t=this,s=[];let a,i=0;if("number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed),"auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){const e=t.activeIndex+a;if(e>t.slides.length)break;s.push(t.slides.eq(e)[0])}else s.push(t.slides.eq(t.activeIndex)[0]);for(a=0;a<s.length;a+=1)if(void 0!==s[a]){const e=s[a].offsetHeight;i=e>i?e:i}i&&t.$wrapperEl.css("height",i+"px")},updateSlidesOffset:function(){const e=this,t=e.slides;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,s=t.params,{slides:a,rtlTranslate:i}=t;if(0===a.length)return;void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;i&&(n=e),a.removeClass(s.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let r=0;r<a.length;r+=1){const e=a[r],o=(n+(s.centeredSlides?t.minTranslate():0)-e.swiperSlideOffset)/(e.swiperSlideSize+s.spaceBetween);if(s.watchSlidesVisibility){const i=-(n-e.swiperSlideOffset),o=i+t.slidesSizesGrid[r];(i>=0&&i<t.size-1||o>1&&o<=t.size||i<=0&&o>=t.size)&&(t.visibleSlides.push(e),t.visibleSlidesIndexes.push(r),a.eq(r).addClass(s.slideVisibleClass))}e.progress=i?-o:o}t.visibleSlides=Y(t.visibleSlides)},updateProgress:function(e=this&&this.translate||0){const t=this,s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:n,isEnd:r}=t;const o=n,l=r;0===a?(i=0,n=!0,r=!0):(i=(e-t.minTranslate())/a,n=i<=0,r=i>=1),W.extend(t,{progress:i,isBeginning:n,isEnd:r}),(s.watchSlidesProgress||s.watchSlidesVisibility)&&t.updateSlidesProgress(e),n&&!o&&t.emit("reachBeginning toEdge"),r&&!l&&t.emit("reachEnd toEdge"),(o&&!n||l&&!r)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,$wrapperEl:a,activeIndex:i,realIndex:n}=e,r=e.virtual&&s.virtual.enabled;let o;t.removeClass(`${s.slideActiveClass} ${s.slideNextClass} ${s.slidePrevClass} ${s.slideDuplicateActiveClass} ${s.slideDuplicateNextClass} ${s.slideDuplicatePrevClass}`),o=r?e.$wrapperEl.find(`.${s.slideClass}[data-swiper-slide-index="${i}"]`):t.eq(i),o.addClass(s.slideActiveClass),s.loop&&(o.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${n}"]`).addClass(s.slideDuplicateActiveClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${n}"]`).addClass(s.slideDuplicateActiveClass));let l=o.nextAll("."+s.slideClass).eq(0).addClass(s.slideNextClass);s.loop&&0===l.length&&(l=t.eq(0),l.addClass(s.slideNextClass));let d=o.prevAll("."+s.slideClass).eq(0).addClass(s.slidePrevClass);s.loop&&0===d.length&&(d=t.eq(-1),d.addClass(s.slidePrevClass)),s.loop&&(l.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass),d.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass))},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:a,snapGrid:i,params:n,activeIndex:r,realIndex:o,snapIndex:l}=t;let d,c=e;if(void 0===c){for(let e=0;e<a.length;e+=1)void 0!==a[e+1]?s>=a[e]&&s<a[e+1]-(a[e+1]-a[e])/2?c=e:s>=a[e]&&s<a[e+1]&&(c=e+1):s>=a[e]&&(c=e);n.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(d=i.indexOf(s)>=0?i.indexOf(s):Math.floor(c/n.slidesPerGroup),d>=i.length&&(d=i.length-1),c===r)return void(d!==l&&(t.snapIndex=d,t.emit("snapIndexChange")));const p=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10);W.extend(t,{snapIndex:d,realIndex:p,previousIndex:r,activeIndex:c}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==p&&t.emit("realIndexChange"),(t.initialized||t.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,s=t.params,a=Y(e.target).closest("."+s.slideClass)[0];let i=!1;if(a)for(let n=0;n<t.slides.length;n+=1)t.slides[n]===a&&(i=!0);if(!a||!i)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=a,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(Y(a).attr("data-swiper-slide-index"),10):t.clickedIndex=Y(a).index(),s.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var J={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:s,translate:a,$wrapperEl:i}=this;if(t.virtualTranslate)return s?-a:a;let n=W.getTranslate(i[0],e);return s&&(n=-n),n||0},setTranslate:function(e,t){const s=this,{rtlTranslate:a,params:i,$wrapperEl:n,progress:r}=s;let o,l=0,d=0;s.isHorizontal()?l=a?-e:e:d=e,i.roundLengths&&(l=Math.floor(l),d=Math.floor(d)),i.virtualTranslate||(U.transforms3d?n.transform(`translate3d(${l}px, ${d}px, 0px)`):n.transform(`translate(${l}px, ${d}px)`)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?l:d;const c=s.maxTranslate()-s.minTranslate();o=0===c?0:(e-s.minTranslate())/c,o!==r&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var ee={setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const s=this,{activeIndex:a,params:i,previousIndex:n}=s;i.autoHeight&&s.updateAutoHeight();let r=t;if(r||(r=a>n?"next":a<n?"prev":"reset"),s.emit("transitionStart"),e&&a!==n){if("reset"===r)return void s.emit("slideResetTransitionStart");s.emit("slideChangeTransitionStart"),"next"===r?s.emit("slideNextTransitionStart"):s.emit("slidePrevTransitionStart")}},transitionEnd:function(e=!0,t){const s=this,{activeIndex:a,previousIndex:i}=s;s.animating=!1,s.setTransition(0);let n=t;if(n||(n=a>i?"next":a<i?"prev":"reset"),s.emit("transitionEnd"),e&&a!==i){if("reset"===n)return void s.emit("slideResetTransitionEnd");s.emit("slideChangeTransitionEnd"),"next"===n?s.emit("slideNextTransitionEnd"):s.emit("slidePrevTransitionEnd")}}};var te={slideTo:function(e=0,t=this.params.speed,s=!0,a){const i=this;let n=e;n<0&&(n=0);const{params:r,snapGrid:o,slidesGrid:l,previousIndex:d,activeIndex:c,rtlTranslate:p}=i;if(i.animating&&r.preventInteractionOnTransition)return!1;let u=Math.floor(n/r.slidesPerGroup);u>=o.length&&(u=o.length-1),(c||r.initialSlide||0)===(d||0)&&s&&i.emit("beforeSlideChangeStart");const h=-o[u];if(i.updateProgress(h),r.normalizeSlideIndex)for(let m=0;m<l.length;m+=1)-Math.floor(100*h)>=Math.floor(100*l[m])&&(n=m);if(i.initialized&&n!==c){if(!i.allowSlideNext&&h<i.translate&&h<i.minTranslate())return!1;if(!i.allowSlidePrev&&h>i.translate&&h>i.maxTranslate()&&(c||0)!==n)return!1}let f;return f=n>c?"next":n<c?"prev":"reset",p&&-h===i.translate||!p&&h===i.translate?(i.updateActiveIndex(n),r.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==r.effect&&i.setTranslate(h),"reset"!==f&&(i.transitionStart(s,f),i.transitionEnd(s,f)),!1):(0!==t&&U.transition?(i.setTransition(t),i.setTranslate(h),i.updateActiveIndex(n),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,a),i.transitionStart(s,f),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(s,f))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))):(i.setTransition(0),i.setTranslate(h),i.updateActiveIndex(n),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,a),i.transitionStart(s,f),i.transitionEnd(s,f)),!0)},slideToLoop:function(e=0,t=this.params.speed,s=!0,a){const i=this;let n=e;return i.params.loop&&(n+=i.loopedSlides),i.slideTo(n,t,s,a)},slideNext:function(e=this.params.speed,t=!0,s){const a=this,{params:i,animating:n}=a;return i.loop?!n&&(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,a.slideTo(a.activeIndex+i.slidesPerGroup,e,t,s)):a.slideTo(a.activeIndex+i.slidesPerGroup,e,t,s)},slidePrev:function(e=this.params.speed,t=!0,s){const a=this,{params:i,animating:n,snapGrid:r,slidesGrid:o,rtlTranslate:l}=a;if(i.loop){if(n)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const c=d(l?a.translate:-a.translate),p=r.map(e=>d(e)),u=(o.map(e=>d(e)),r[p.indexOf(c)],r[p.indexOf(c)-1]);let h;return void 0!==u&&(h=o.indexOf(u),h<0&&(h=a.activeIndex-1)),a.slideTo(h,e,t,s)},slideReset:function(e=this.params.speed,t=!0,s){return this.slideTo(this.activeIndex,e,t,s)},slideToClosest:function(e=this.params.speed,t=!0,s){const a=this;let i=a.activeIndex;const n=Math.floor(i/a.params.slidesPerGroup);if(n<a.snapGrid.length-1){const e=a.rtlTranslate?a.translate:-a.translate,t=a.snapGrid[n];e-t>(a.snapGrid[n+1]-t)/2&&(i=a.params.slidesPerGroup)}return a.slideTo(i,e,t,s)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,n=e.clickedIndex;if(t.loop){if(e.animating)return;i=parseInt(Y(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?n<e.loopedSlides-a/2||n>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),n=s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),W.nextTick(()=>{e.slideTo(n)})):e.slideTo(n):n>e.slides.length-a?(e.loopFix(),n=s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),W.nextTick(()=>{e.slideTo(n)})):e.slideTo(n)}else e.slideTo(n)}};var se={loopCreate:function(){const e=this,{params:t,$wrapperEl:s}=e;s.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let a=s.children("."+t.slideClass);if(t.loopFillGroupWithBlank){const e=t.slidesPerGroup-a.length%t.slidesPerGroup;if(e!==t.slidesPerGroup){for(let a=0;a<e;a+=1){const e=Y(G.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);s.append(e)}a=s.children("."+t.slideClass)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=a.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>a.length&&(e.loopedSlides=a.length);const i=[],n=[];a.each((t,s)=>{const r=Y(s);t<e.loopedSlides&&n.push(s),t<a.length&&t>=a.length-e.loopedSlides&&i.push(s),r.attr("data-swiper-slide-index",t)});for(let r=0;r<n.length;r+=1)s.append(Y(n[r].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let r=i.length-1;r>=0;r-=1)s.prepend(Y(i[r].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){const e=this,{params:t,activeIndex:s,slides:a,loopedSlides:i,allowSlidePrev:n,allowSlideNext:r,snapGrid:o,rtlTranslate:l}=e;let d;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-o[s]-e.getTranslate();if(s<i){d=a.length-3*i+s,d+=i;e.slideTo(d,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}else if("auto"===t.slidesPerView&&s>=2*i||s>=a.length-i){d=-a.length+s+i,d+=i;e.slideTo(d,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}e.allowSlidePrev=n,e.allowSlideNext=r},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:s}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),s.removeAttr("data-swiper-slide-index")}};var ae={setGrabCursor:function(e){const t=this;if(U.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)return;const s=t.el;s.style.cursor="move",s.style.cursor=e?"-webkit-grabbing":"-webkit-grab",s.style.cursor=e?"-moz-grabbin":"-moz-grab",s.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;U.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}};var ie={appendSlide:function(e){const t=this,{$wrapperEl:s,params:a}=t;if(a.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let i=0;i<e.length;i+=1)e[i]&&s.append(e[i]);else s.append(e);a.loop&&t.loopCreate(),a.observer&&U.observer||t.update()},prependSlide:function(e){const t=this,{params:s,$wrapperEl:a,activeIndex:i}=t;s.loop&&t.loopDestroy();let n=i+1;if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&a.prepend(e[t]);n=i+e.length}else a.prepend(e);s.loop&&t.loopCreate(),s.observer&&U.observer||t.update(),t.slideTo(n,0,!1)},addSlide:function(e,t){const s=this,{$wrapperEl:a,params:i,activeIndex:n}=s;let r=n;i.loop&&(r-=s.loopedSlides,s.loopDestroy(),s.slides=a.children("."+i.slideClass));const o=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=o)return void s.appendSlide(t);let l=r>e?r+1:r;const d=[];for(let c=o-1;c>=e;c-=1){const e=s.slides.eq(c);e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a.append(t[e]);l=r>e?r+t.length:r}else a.append(t);for(let c=0;c<d.length;c+=1)a.append(d[c]);i.loop&&s.loopCreate(),i.observer&&U.observer||s.update(),i.loop?s.slideTo(l+s.loopedSlides,0,!1):s.slideTo(l,0,!1)},removeSlide:function(e){const t=this,{params:s,$wrapperEl:a,activeIndex:i}=t;let n=i;s.loop&&(n-=t.loopedSlides,t.loopDestroy(),t.slides=a.children("."+s.slideClass));let r,o=n;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)r=e[s],t.slides[r]&&t.slides.eq(r).remove(),r<o&&(o-=1);o=Math.max(o,0)}else r=e,t.slides[r]&&t.slides.eq(r).remove(),r<o&&(o-=1),o=Math.max(o,0);s.loop&&t.loopCreate(),s.observer&&U.observer||t.update(),s.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)},removeAllSlides:function(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}};const ne=function(){const e=R.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:R.cordova||R.phonegap,phonegap:R.cordova||R.phonegap},s=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),a=e.match(/(Android);?[\s\/]+([\d.]+)?/),i=e.match(/(iPad).*OS\s([\d_]+)/),n=e.match(/(iPod)(.*OS\s([\d_]+))?/),r=!i&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(s&&(t.os="windows",t.osVersion=s[2],t.windows=!0),a&&!s&&(t.os="android",t.osVersion=a[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(i||r||n)&&(t.os="ios",t.ios=!0),r&&!n&&(t.osVersion=r[2].replace(/_/g,"."),t.iphone=!0),i&&(t.osVersion=i[2].replace(/_/g,"."),t.ipad=!0),n&&(t.osVersion=n[3]?n[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(r||i||n)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){const e=t.osVersion.split("."),s=G.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(n||r)&&(1*e[0]==7?1*e[1]>=1:1*e[0]>7)&&s&&s.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=R.devicePixelRatio||1,t}();function re(e){const t=this,s=t.touchEventsData,{params:a,touches:i}=t;if(t.animating&&a.preventInteractionOnTransition)return;let n=e;if(n.originalEvent&&(n=n.originalEvent),s.isTouchEvent="touchstart"===n.type,!s.isTouchEvent&&"which"in n&&3===n.which)return;if(!s.isTouchEvent&&"button"in n&&n.button>0)return;if(s.isTouched&&s.isMoved)return;if(a.noSwiping&&Y(n.target).closest(a.noSwipingSelector?a.noSwipingSelector:"."+a.noSwipingClass)[0])return void(t.allowClick=!0);if(a.swipeHandler&&!Y(n).closest(a.swipeHandler)[0])return;i.currentX="touchstart"===n.type?n.targetTouches[0].pageX:n.pageX,i.currentY="touchstart"===n.type?n.targetTouches[0].pageY:n.pageY;const r=i.currentX,o=i.currentY,l=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,d=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!l||!(r<=d||r>=R.screen.width-d)){if(W.extend(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=r,i.startY=o,s.touchStartTime=W.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(s.allowThresholdMove=!1),"touchstart"!==n.type){let e=!0;Y(n.target).is(s.formElements)&&(e=!1),G.activeElement&&Y(G.activeElement).is(s.formElements)&&G.activeElement!==n.target&&G.activeElement.blur();const i=e&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||i)&&n.preventDefault()}t.emit("touchStart",n)}}function oe(e){const t=this,s=t.touchEventsData,{params:a,touches:i,rtlTranslate:n}=t;let r=e;if(r.originalEvent&&(r=r.originalEvent),!s.isTouched)return void(s.startMoving&&s.isScrolling&&t.emit("touchMoveOpposite",r));if(s.isTouchEvent&&"mousemove"===r.type)return;const o="touchmove"===r.type?r.targetTouches[0].pageX:r.pageX,l="touchmove"===r.type?r.targetTouches[0].pageY:r.pageY;if(r.preventedByNestedSwiper)return i.startX=o,void(i.startY=l);if(!t.allowTouchMove)return t.allowClick=!1,void(s.isTouched&&(W.extend(i,{startX:o,startY:l,currentX:o,currentY:l}),s.touchStartTime=W.now()));if(s.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop)if(t.isVertical()){if(l<i.startY&&t.translate<=t.maxTranslate()||l>i.startY&&t.translate>=t.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(o<i.startX&&t.translate<=t.maxTranslate()||o>i.startX&&t.translate>=t.minTranslate())return;if(s.isTouchEvent&&G.activeElement&&r.target===G.activeElement&&Y(r.target).is(s.formElements))return s.isMoved=!0,void(t.allowClick=!1);if(s.allowTouchCallbacks&&t.emit("touchMove",r),r.targetTouches&&r.targetTouches.length>1)return;i.currentX=o,i.currentY=l;const d=i.currentX-i.startX,c=i.currentY-i.startY;if(t.params.threshold&&Math.sqrt(d**2+c**2)<t.params.threshold)return;if(void 0===s.isScrolling){let e;t.isHorizontal()&&i.currentY===i.startY||t.isVertical()&&i.currentX===i.startX?s.isScrolling=!1:d*d+c*c>=25&&(e=180*Math.atan2(Math.abs(c),Math.abs(d))/Math.PI,s.isScrolling=t.isHorizontal()?e>a.touchAngle:90-e>a.touchAngle)}if(s.isScrolling&&t.emit("touchMoveOpposite",r),void 0===s.startMoving&&(i.currentX===i.startX&&i.currentY===i.startY||(s.startMoving=!0)),s.isScrolling)return void(s.isTouched=!1);if(!s.startMoving)return;t.allowClick=!1,r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation(),s.isMoved||(a.loop&&t.loopFix(),s.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,!a.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",r)),t.emit("sliderMove",r),s.isMoved=!0;let p=t.isHorizontal()?d:c;i.diff=p,p*=a.touchRatio,n&&(p=-p),t.swipeDirection=p>0?"prev":"next",s.currentTranslate=p+s.startTranslate;let u=!0,h=a.resistanceRatio;if(a.touchReleaseOnEdges&&(h=0),p>0&&s.currentTranslate>t.minTranslate()?(u=!1,a.resistance&&(s.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+s.startTranslate+p)**h)):p<0&&s.currentTranslate<t.maxTranslate()&&(u=!1,a.resistance&&(s.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-s.startTranslate-p)**h)),u&&(r.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),a.threshold>0){if(!(Math.abs(p)>a.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,s.currentTranslate=s.startTranslate,void(i.diff=t.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY)}a.followFinger&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),a.freeMode&&(0===s.velocities.length&&s.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:W.now()})),t.updateProgress(s.currentTranslate),t.setTranslate(s.currentTranslate))}function le(e){const t=this,s=t.touchEventsData,{params:a,touches:i,rtlTranslate:n,$wrapperEl:r,slidesGrid:o,snapGrid:l}=t;let d=e;if(d.originalEvent&&(d=d.originalEvent),s.allowTouchCallbacks&&t.emit("touchEnd",d),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&a.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);a.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=W.now(),p=c-s.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(d),t.emit("tap",d),p<300&&c-s.lastClickTime>300&&(s.clickTimeout&&clearTimeout(s.clickTimeout),s.clickTimeout=W.nextTick(()=>{t&&!t.destroyed&&t.emit("click",d)},300)),p<300&&c-s.lastClickTime<300&&(s.clickTimeout&&clearTimeout(s.clickTimeout),t.emit("doubleTap",d))),s.lastClickTime=W.now(),W.nextTick(()=>{t.destroyed||(t.allowClick=!0)}),!s.isTouched||!s.isMoved||!t.swipeDirection||0===i.diff||s.currentTranslate===s.startTranslate)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let u;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,u=a.followFinger?n?t.translate:-t.translate:-s.currentTranslate,a.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(a.freeModeMomentum){if(s.velocities.length>1){const e=s.velocities.pop(),i=s.velocities.pop(),n=e.position-i.position,r=e.time-i.time;t.velocity=n/r,t.velocity/=2,Math.abs(t.velocity)<a.freeModeMinimumVelocity&&(t.velocity=0),(r>150||W.now()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeModeMomentumVelocityRatio,s.velocities.length=0;let e=1e3*a.freeModeMomentumRatio;const i=t.velocity*e;let o=t.translate+i;n&&(o=-o);let d,c=!1;const p=20*Math.abs(t.velocity)*a.freeModeMomentumBounceRatio;let u;if(o<t.maxTranslate())a.freeModeMomentumBounce?(o+t.maxTranslate()<-p&&(o=t.maxTranslate()-p),d=t.maxTranslate(),c=!0,s.allowMomentumBounce=!0):o=t.maxTranslate(),a.loop&&a.centeredSlides&&(u=!0);else if(o>t.minTranslate())a.freeModeMomentumBounce?(o-t.minTranslate()>p&&(o=t.minTranslate()+p),d=t.minTranslate(),c=!0,s.allowMomentumBounce=!0):o=t.minTranslate(),a.loop&&a.centeredSlides&&(u=!0);else if(a.freeModeSticky){let e;for(let t=0;t<l.length;t+=1)if(l[t]>-o){e=t;break}o=Math.abs(l[e]-o)<Math.abs(l[e-1]-o)||"next"===t.swipeDirection?l[e]:l[e-1],o=-o}if(u&&t.once("transitionEnd",()=>{t.loopFix()}),0!==t.velocity)e=n?Math.abs((-o-t.translate)/t.velocity):Math.abs((o-t.translate)/t.velocity);else if(a.freeModeSticky)return void t.slideToClosest();a.freeModeMomentumBounce&&c?(t.updateProgress(d),t.setTransition(e),t.setTranslate(o),t.transitionStart(!0,t.swipeDirection),t.animating=!0,r.transitionEnd(()=>{t&&!t.destroyed&&s.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(a.speed),t.setTranslate(d),r.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(o),t.setTransition(e),t.setTranslate(o),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,r.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(o),t.updateActiveIndex(),t.updateSlidesClasses()}else if(a.freeModeSticky)return void t.slideToClosest();return void((!a.freeModeMomentum||p>=a.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses()))}let h=0,f=t.slidesSizesGrid[0];for(let g=0;g<o.length;g+=a.slidesPerGroup)void 0!==o[g+a.slidesPerGroup]?u>=o[g]&&u<o[g+a.slidesPerGroup]&&(h=g,f=o[g+a.slidesPerGroup]-o[g]):u>=o[g]&&(h=g,f=o[o.length-1]-o[o.length-2]);const m=(u-o[h])/f;if(p>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(m>=a.longSwipesRatio?t.slideTo(h+a.slidesPerGroup):t.slideTo(h)),"prev"===t.swipeDirection&&(m>1-a.longSwipesRatio?t.slideTo(h+a.slidesPerGroup):t.slideTo(h))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(h+a.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(h)}}function de(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:n}=e;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){const s=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function ce(e){const t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}var pe={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};const ue={update:Z,translate:J,transition:ee,slide:te,loop:se,grabCursor:ae,manipulation:ie,events:{attachEvents:function(){const e=this,{params:t,touchEvents:s,el:a,wrapperEl:i}=e;e.onTouchStart=re.bind(e),e.onTouchMove=oe.bind(e),e.onTouchEnd=le.bind(e),e.onClick=ce.bind(e);const n="container"===t.touchEventsTarget?a:i,r=!!t.nested;if(U.touch||!U.pointerEvents&&!U.prefixedPointerEvents){if(U.touch){const a=!("touchstart"!==s.start||!U.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(s.start,e.onTouchStart,a),n.addEventListener(s.move,e.onTouchMove,U.passiveListener?{passive:!1,capture:r}:r),n.addEventListener(s.end,e.onTouchEnd,a)}(t.simulateTouch&&!ne.ios&&!ne.android||t.simulateTouch&&!U.touch&&ne.ios)&&(n.addEventListener("mousedown",e.onTouchStart,!1),G.addEventListener("mousemove",e.onTouchMove,r),G.addEventListener("mouseup",e.onTouchEnd,!1))}else n.addEventListener(s.start,e.onTouchStart,!1),G.addEventListener(s.move,e.onTouchMove,r),G.addEventListener(s.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&n.addEventListener("click",e.onClick,!0),e.on(ne.ios||ne.android?"resize orientationchange observerUpdate":"resize observerUpdate",de,!0)},detachEvents:function(){const e=this,{params:t,touchEvents:s,el:a,wrapperEl:i}=e,n="container"===t.touchEventsTarget?a:i,r=!!t.nested;if(U.touch||!U.pointerEvents&&!U.prefixedPointerEvents){if(U.touch){const a=!("onTouchStart"!==s.start||!U.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};n.removeEventListener(s.start,e.onTouchStart,a),n.removeEventListener(s.move,e.onTouchMove,r),n.removeEventListener(s.end,e.onTouchEnd,a)}(t.simulateTouch&&!ne.ios&&!ne.android||t.simulateTouch&&!U.touch&&ne.ios)&&(n.removeEventListener("mousedown",e.onTouchStart,!1),G.removeEventListener("mousemove",e.onTouchMove,r),G.removeEventListener("mouseup",e.onTouchEnd,!1))}else n.removeEventListener(s.start,e.onTouchStart,!1),G.removeEventListener(s.move,e.onTouchMove,r),G.removeEventListener(s.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&n.removeEventListener("click",e.onClick,!0),e.off(ne.ios||ne.android?"resize orientationchange observerUpdate":"resize observerUpdate",de)}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:s,loopedSlides:a=0,params:i}=e,n=i.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const r=e.getBreakpoint(n);if(r&&e.currentBreakpoint!==r){const o=r in n?n[r]:void 0;o&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(e=>{const t=o[e];void 0!==t&&(o[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")});const l=o||e.originalParams,d=l.direction&&l.direction!==i.direction,c=i.loop&&(l.slidesPerView!==i.slidesPerView||d);d&&s&&e.changeDirection(),W.extend(e.params,l),W.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=r,c&&s&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-a+e.loopedSlides,0,!1)),e.emit("breakpoint",l)}},getBreakpoint:function(e){const t=this;if(!e)return;let s=!1;const a=[];Object.keys(e).forEach(e=>{a.push(e)}),a.sort((e,t)=>parseInt(e,10)-parseInt(t,10));for(let i=0;i<a.length;i+=1){const e=a[i];t.params.breakpointsInverse?e<=R.innerWidth&&(s=e):e>=R.innerWidth&&!s&&(s=e)}return s||"max"}},checkOverflow:{checkOverflow:function(){const e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}},classes:{addClasses:function(){const{classNames:e,params:t,rtl:s,$el:a}=this,i=[];i.push("initialized"),i.push(t.direction),t.freeMode&&i.push("free-mode"),U.flexbox||i.push("no-flexbox"),t.autoHeight&&i.push("autoheight"),s&&i.push("rtl"),t.slidesPerColumn>1&&i.push("multirow"),ne.android&&i.push("android"),ne.ios&&i.push("ios"),(K.isIE||K.isEdge)&&(U.pointerEvents||U.prefixedPointerEvents)&&i.push("wp8-"+t.direction),i.forEach(s=>{e.push(t.containerModifierClass+s)}),a.addClass(e.join(" "))},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,s,a,i,n){let r;function o(){n&&n()}e.complete&&i?o():t?(r=new R.Image,r.onload=o,r.onerror=o,a&&(r.sizes=a),s&&(r.srcset=s),t&&(r.src=t)):o()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let s=0;s<e.imagesToLoad.length;s+=1){const a=e.imagesToLoad[s];e.loadImage(a,a.currentSrc||a.getAttribute("src"),a.srcset||a.getAttribute("srcset"),a.sizes||a.getAttribute("sizes"),!0,t)}}}},he={};class fe extends Q{constructor(...e){let t,s;1===e.length&&e[0].constructor&&e[0].constructor===Object?s=e[0]:[t,s]=e,s||(s={}),s=W.extend({},s),t&&!s.el&&(s.el=t),super(s),Object.keys(ue).forEach(e=>{Object.keys(ue[e]).forEach(t=>{fe.prototype[t]||(fe.prototype[t]=ue[e][t])})});const a=this;void 0===a.modules&&(a.modules={}),Object.keys(a.modules).forEach(e=>{const t=a.modules[e];if(t.params){const e=Object.keys(t.params)[0],a=t.params[e];if("object"!=typeof a||null===a)return;if(!(e in s)||!("enabled"in a))return;!0===s[e]&&(s[e]={enabled:!0}),"object"!=typeof s[e]||"enabled"in s[e]||(s[e].enabled=!0),s[e]||(s[e]={enabled:!1})}});const i=W.extend({},pe);a.useModulesParams(i),a.params=W.extend({},i,he,s),a.originalParams=W.extend({},a.params),a.passedParams=W.extend({},s),a.$=Y;const n=Y(a.params.el);if(t=n[0],!t)return;if(n.length>1){const e=[];return n.each((t,a)=>{const i=W.extend({},s,{el:a});e.push(new fe(i))}),e}t.swiper=a,n.data("swiper",a);const r=n.children("."+a.params.wrapperClass);return W.extend(a,{$el:n,el:t,$wrapperEl:r,wrapperEl:r[0],classNames:[],slides:Y(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===a.params.direction,isVertical:()=>"vertical"===a.params.direction,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===a.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===r.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend"];let t=["mousedown","mousemove","mouseup"];return U.pointerEvents?t=["pointerdown","pointermove","pointerup"]:U.prefixedPointerEvents&&(t=["MSPointerDown","MSPointerMove","MSPointerUp"]),a.touchEventsTouch={start:e[0],move:e[1],end:e[2]},a.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},U.touch||!a.params.simulateTouch?a.touchEventsTouch:a.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:W.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.useModules(),a.params.init&&a.init(),a}slidesPerViewDynamic(){const{params:e,slides:t,slidesGrid:s,size:a,activeIndex:i}=this;let n=1;if(e.centeredSlides){let e,s=t[i].swiperSlideSize;for(let r=i+1;r<t.length;r+=1)t[r]&&!e&&(s+=t[r].swiperSlideSize,n+=1,s>a&&(e=!0));for(let r=i-1;r>=0;r-=1)t[r]&&!e&&(s+=t[r].swiperSlideSize,n+=1,s>a&&(e=!0))}else for(let r=i+1;r<t.length;r+=1)s[r]-s[i]<a&&(n+=1);return n}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function a(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let i;s.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(a(),e.params.autoHeight&&e.updateAutoHeight()):(i=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),i||a()),s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.$el.removeClass(`${s.params.containerModifierClass}${a} wp8-${a}`).addClass(`${s.params.containerModifierClass}${e}`),(K.isIE||K.isEdge)&&(U.pointerEvents||U.prefixedPointerEvents)&&s.$el.addClass(`${s.params.containerModifierClass}wp8-${e}`),s.params.direction=e,s.slides.each((t,s)=>{"vertical"===e?s.style.width="":s.style.height=""}),s.emit("changeDirection"),t&&s.update()),s}init(){const e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))}destroy(e=!0,t=!0){const s=this,{params:a,$el:i,$wrapperEl:n,slides:r}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i.removeAttr("style"),n.removeAttr("style"),r&&r.length&&r.removeClass([a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(e=>{s.off(e)}),!1!==e&&(s.$el[0].swiper=null,s.$el.data("swiper",null),W.deleteProps(s)),s.destroyed=!0),null}static extendDefaults(e){W.extend(he,e)}static get extendedDefaults(){return he}static get defaults(){return pe}static get Class(){return Q}static get $(){return Y}}var me={name:"device",proto:{device:ne},static:{device:ne}},ge={name:"support",proto:{support:U},static:{support:U}},ve={name:"browser",proto:{browser:K},static:{browser:K}},be={name:"resize",create(){const e=this;W.extend(e,{resize:{resizeHandler(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init(){R.addEventListener("resize",this.resize.resizeHandler),R.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy(){R.removeEventListener("resize",this.resize.resizeHandler),R.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}};const ye={func:R.MutationObserver||R.WebkitMutationObserver,attach(e,t={}){const s=this,a=new(0,ye.func)(e=>{if(1===e.length)return void s.emit("observerUpdate",e[0]);const t=function(){s.emit("observerUpdate",e[0])};R.requestAnimationFrame?R.requestAnimationFrame(t):R.setTimeout(t,0)});a.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),s.observer.observers.push(a)},init(){const e=this;if(U.observer&&e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let s=0;s<t.length;s+=1)e.observer.attach(t[s])}e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy(){this.observer.observers.forEach(e=>{e.disconnect()}),this.observer.observers=[]}};var we={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const e=this;W.extend(e,{observer:{init:ye.init.bind(e),attach:ye.attach.bind(e),destroy:ye.destroy.bind(e),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const xe={update(e){const t=this,{slidesPerView:s,slidesPerGroup:a,centeredSlides:i}=t.params,{addSlidesBefore:n,addSlidesAfter:r}=t.params.virtual,{from:o,to:l,slides:d,slidesGrid:c,renderSlide:p,offset:u}=t.virtual;t.updateActiveIndex();const h=t.activeIndex||0;let f,m,g;f=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",i?(m=Math.floor(s/2)+a+n,g=Math.floor(s/2)+a+r):(m=s+(a-1)+n,g=a+r);const v=Math.max((h||0)-g,0),b=Math.min((h||0)+m,d.length-1),y=(t.slidesGrid[v]||0)-(t.slidesGrid[0]||0);function w(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(W.extend(t.virtual,{from:v,to:b,offset:y,slidesGrid:t.slidesGrid}),o===v&&l===b&&!e)return t.slidesGrid!==c&&y!==u&&t.slides.css(f,y+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:y,from:v,to:b,slides:function(){const e=[];for(let t=v;t<=b;t+=1)e.push(d[t]);return e}()}),void w();const x=[],E=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(let S=o;S<=l;S+=1)(S<v||S>b)&&t.$wrapperEl.find(`.${t.params.slideClass}[data-swiper-slide-index="${S}"]`).remove();for(let S=0;S<d.length;S+=1)S>=v&&S<=b&&(void 0===l||e?E.push(S):(S>l&&E.push(S),S<o&&x.push(S)));E.forEach(e=>{t.$wrapperEl.append(p(d[e],e))}),x.sort((e,t)=>t-e).forEach(e=>{t.$wrapperEl.prepend(p(d[e],e))}),t.$wrapperEl.children(".swiper-slide").css(f,y+"px"),w()},renderSlide(e,t){const s=this,a=s.params.virtual;if(a.cache&&s.virtual.cache[t])return s.virtual.cache[t];const i=a.renderSlide?Y(a.renderSlide.call(s,e,t)):Y(`<div class="${s.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",t),a.cache&&(s.virtual.cache[t]=i),i},appendSlide(e){const t=this;if("object"==typeof e&&"length"in e)for(let s=0;s<e.length;s+=1)e[s]&&t.virtual.slides.push(e[s]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide(e){const t=this,s=t.activeIndex;let a=s+1,i=1;if(Array.isArray(e)){for(let s=0;s<e.length;s+=1)e[s]&&t.virtual.slides.unshift(e[s]);a=s+e.length,i=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){const e=t.virtual.cache,s={};Object.keys(e).forEach(t=>{s[parseInt(t,10)+i]=e[t]}),t.virtual.cache=s}t.virtual.update(!0),t.slideTo(a,0)},removeSlide(e){const t=this;if(null==e)return;let s=t.activeIndex;if(Array.isArray(e))for(let a=e.length-1;a>=0;a-=1)t.virtual.slides.splice(e[a],1),t.params.virtual.cache&&delete t.virtual.cache[e[a]],e[a]<s&&(s-=1),s=Math.max(s,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<s&&(s-=1),s=Math.max(s,0);t.virtual.update(!0),t.slideTo(s,0)},removeAllSlides(){const e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}};var Ee={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const e=this;W.extend(e,{virtual:{update:xe.update.bind(e),appendSlide:xe.appendSlide.bind(e),prependSlide:xe.prependSlide.bind(e),removeSlide:xe.removeSlide.bind(e),removeAllSlides:xe.removeAllSlides.bind(e),renderSlide:xe.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit(){const e=this;if(!e.params.virtual.enabled)return;e.classNames.push(e.params.containerModifierClass+"virtual");const t={watchSlidesProgress:!0};W.extend(e.params,t),W.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()},setTranslate(){this.params.virtual.enabled&&this.virtual.update()}}};const Se={handle(e){const t=this,{rtlTranslate:s}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===i||t.isVertical()&&40===i||34===i))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===i||t.isVertical()&&38===i||33===i))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||G.activeElement&&G.activeElement.nodeName&&("input"===G.activeElement.nodeName.toLowerCase()||"textarea"===G.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===i||34===i||37===i||39===i||38===i||40===i)){let e=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;const a=R.innerWidth,i=R.innerHeight,n=t.$el.offset();s&&(n.left-=t.$el[0].scrollLeft);const r=[[n.left,n.top],[n.left+t.width,n.top],[n.left,n.top+t.height],[n.left+t.width,n.top+t.height]];for(let t=0;t<r.length;t+=1){const s=r[t];s[0]>=0&&s[0]<=a&&s[1]>=0&&s[1]<=i&&(e=!0)}if(!e)return}t.isHorizontal()?(33!==i&&34!==i&&37!==i&&39!==i||(a.preventDefault?a.preventDefault():a.returnValue=!1),(34!==i&&39!==i||s)&&(33!==i&&37!==i||!s)||t.slideNext(),(33!==i&&37!==i||s)&&(34!==i&&39!==i||!s)||t.slidePrev()):(33!==i&&34!==i&&38!==i&&40!==i||(a.preventDefault?a.preventDefault():a.returnValue=!1),34!==i&&40!==i||t.slideNext(),33!==i&&38!==i||t.slidePrev()),t.emit("keyPress",i)}},enable(){const e=this;e.keyboard.enabled||(Y(G).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable(){const e=this;e.keyboard.enabled&&(Y(G).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}};var Te={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create(){const e=this;W.extend(e,{keyboard:{enabled:!1,enable:Se.enable.bind(e),disable:Se.disable.bind(e),handle:Se.handle.bind(e)}})},on:{init(){const e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy(){const e=this;e.keyboard.enabled&&e.keyboard.disable()}}};const Ce={lastScrollTime:W.now(),event:R.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){const e="onwheel";let t=e in G;if(!t){const s=G.createElement("div");s.setAttribute(e,"return;"),t="function"==typeof s.onwheel}return!t&&G.implementation&&G.implementation.hasFeature&&!0!==G.implementation.hasFeature("","")&&(t=G.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}},handleMouseEnter(){this.mouseEntered=!0},handleMouseLeave(){this.mouseEntered=!1},handle(e){let t=e;const s=this,a=s.params.mousewheel;if(!s.mouseEntered&&!a.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);let i=0;const n=s.rtlTranslate?-1:1,r=Ce.normalize(t);if(a.forceToAxis)if(s.isHorizontal()){if(!(Math.abs(r.pixelX)>Math.abs(r.pixelY)))return!0;i=r.pixelX*n}else{if(!(Math.abs(r.pixelY)>Math.abs(r.pixelX)))return!0;i=r.pixelY}else i=Math.abs(r.pixelX)>Math.abs(r.pixelY)?-r.pixelX*n:-r.pixelY;if(0===i)return!0;if(a.invert&&(i=-i),s.params.freeMode){s.params.loop&&s.loopFix();let e=s.getTranslate()+i*a.sensitivity;const n=s.isBeginning,r=s.isEnd;if(e>=s.minTranslate()&&(e=s.minTranslate()),e<=s.maxTranslate()&&(e=s.maxTranslate()),s.setTransition(0),s.setTranslate(e),s.updateProgress(),s.updateActiveIndex(),s.updateSlidesClasses(),(!n&&s.isBeginning||!r&&s.isEnd)&&s.updateSlidesClasses(),s.params.freeModeSticky&&(clearTimeout(s.mousewheel.timeout),s.mousewheel.timeout=W.nextTick(()=>{s.slideToClosest()},300)),s.emit("scroll",t),s.params.autoplay&&s.params.autoplayDisableOnInteraction&&s.autoplay.stop(),e===s.minTranslate()||e===s.maxTranslate())return!0}else{if(W.now()-s.mousewheel.lastScrollTime>60)if(i<0)if(s.isEnd&&!s.params.loop||s.animating){if(a.releaseOnEdges)return!0}else s.slideNext(),s.emit("scroll",t);else if(s.isBeginning&&!s.params.loop||s.animating){if(a.releaseOnEdges)return!0}else s.slidePrev(),s.emit("scroll",t);s.mousewheel.lastScrollTime=(new R.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable(){const e=this;if(!Ce.event)return!1;if(e.mousewheel.enabled)return!1;let t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=Y(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(Ce.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable(){const e=this;if(!Ce.event)return!1;if(!e.mousewheel.enabled)return!1;let t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=Y(e.params.mousewheel.eventsTarged)),t.off(Ce.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}};const $e={update(){const e=this,t=e.params.navigation;if(e.params.loop)return;const{$nextEl:s,$prevEl:a}=e.navigation;a&&a.length>0&&(e.isBeginning?a.addClass(t.disabledClass):a.removeClass(t.disabledClass),a[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),s&&s.length>0&&(e.isEnd?s.addClass(t.disabledClass):s.removeClass(t.disabledClass),s[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))},onPrevClick(e){const t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick(e){const t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init(){const e=this,t=e.params.navigation;if(!t.nextEl&&!t.prevEl)return;let s,a;t.nextEl&&(s=Y(t.nextEl),e.params.uniqueNavElements&&"string"==typeof t.nextEl&&s.length>1&&1===e.$el.find(t.nextEl).length&&(s=e.$el.find(t.nextEl))),t.prevEl&&(a=Y(t.prevEl),e.params.uniqueNavElements&&"string"==typeof t.prevEl&&a.length>1&&1===e.$el.find(t.prevEl).length&&(a=e.$el.find(t.prevEl))),s&&s.length>0&&s.on("click",e.navigation.onNextClick),a&&a.length>0&&a.on("click",e.navigation.onPrevClick),W.extend(e.navigation,{$nextEl:s,nextEl:s&&s[0],$prevEl:a,prevEl:a&&a[0]})},destroy(){const e=this,{$nextEl:t,$prevEl:s}=e.navigation;t&&t.length&&(t.off("click",e.navigation.onNextClick),t.removeClass(e.params.navigation.disabledClass)),s&&s.length&&(s.off("click",e.navigation.onPrevClick),s.removeClass(e.params.navigation.disabledClass))}};const ke={update(){const e=this,t=e.rtl,s=e.params.pagination;if(!s.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length)return;const a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el;let n;const r=e.params.loop?Math.ceil((a-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(n=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),n>a-1-2*e.loopedSlides&&(n-=a-2*e.loopedSlides),n>r-1&&(n-=r),n<0&&"bullets"!==e.params.paginationType&&(n=r+n)):n=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===s.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const a=e.pagination.bullets;let r,o,l;if(s.dynamicBullets&&(e.pagination.bulletSize=a.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(s.dynamicMainBullets+4)+"px"),s.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=n-e.previousIndex,e.pagination.dynamicBulletIndex>s.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=s.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),r=n-e.pagination.dynamicBulletIndex,o=r+(Math.min(a.length,s.dynamicMainBullets)-1),l=(o+r)/2),a.removeClass(`${s.bulletActiveClass} ${s.bulletActiveClass}-next ${s.bulletActiveClass}-next-next ${s.bulletActiveClass}-prev ${s.bulletActiveClass}-prev-prev ${s.bulletActiveClass}-main`),i.length>1)a.each((e,t)=>{const a=Y(t),i=a.index();i===n&&a.addClass(s.bulletActiveClass),s.dynamicBullets&&(i>=r&&i<=o&&a.addClass(s.bulletActiveClass+"-main"),i===r&&a.prev().addClass(s.bulletActiveClass+"-prev").prev().addClass(s.bulletActiveClass+"-prev-prev"),i===o&&a.next().addClass(s.bulletActiveClass+"-next").next().addClass(s.bulletActiveClass+"-next-next"))});else{if(a.eq(n).addClass(s.bulletActiveClass),s.dynamicBullets){const e=a.eq(r),t=a.eq(o);for(let i=r;i<=o;i+=1)a.eq(i).addClass(s.bulletActiveClass+"-main");e.prev().addClass(s.bulletActiveClass+"-prev").prev().addClass(s.bulletActiveClass+"-prev-prev"),t.next().addClass(s.bulletActiveClass+"-next").next().addClass(s.bulletActiveClass+"-next-next")}}if(s.dynamicBullets){const i=Math.min(a.length,s.dynamicMainBullets+4),n=(e.pagination.bulletSize*i-e.pagination.bulletSize)/2-l*e.pagination.bulletSize,r=t?"right":"left";a.css(e.isHorizontal()?r:"top",n+"px")}}if("fraction"===s.type&&(i.find("."+s.currentClass).text(s.formatFractionCurrent(n+1)),i.find("."+s.totalClass).text(s.formatFractionTotal(r))),"progressbar"===s.type){let t;t=s.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const a=(n+1)/r;let o=1,l=1;"horizontal"===t?o=a:l=a,i.find("."+s.progressbarFillClass).transform(`translate3d(0,0,0) scaleX(${o}) scaleY(${l})`).transition(e.params.speed)}"custom"===s.type&&s.renderCustom?(i.html(s.renderCustom(e,n+1,r)),e.emit("paginationRender",e,i[0])):e.emit("paginationUpdate",e,i[0]),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](s.lockClass)},render(){const e=this,t=e.params.pagination;if(!t.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length)return;const s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,a=e.pagination.$el;let i="";if("bullets"===t.type){const n=e.params.loop?Math.ceil((s-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;for(let s=0;s<n;s+=1)t.renderBullet?i+=t.renderBullet.call(e,s,t.bulletClass):i+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;a.html(i),e.pagination.bullets=a.find("."+t.bulletClass)}"fraction"===t.type&&(i=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,a.html(i)),"progressbar"===t.type&&(i=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,a.html(i)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])},init(){const e=this,t=e.params.pagination;if(!t.el)return;let s=Y(t.el);0!==s.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&s.length>1&&1===e.$el.find(t.el).length&&(s=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&s.addClass(t.clickableClass),s.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(s.addClass(`${t.modifierClass}${t.type}-dynamic`),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&s.addClass(t.progressbarOppositeClass),t.clickable&&s.on("click","."+t.bulletClass,(function(t){t.preventDefault();let s=Y(this).index()*e.params.slidesPerGroup;e.params.loop&&(s+=e.loopedSlides),e.slideTo(s)})),W.extend(e.pagination,{$el:s,el:s[0]}))},destroy(){const e=this,t=e.params.pagination;if(!t.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length)return;const s=e.pagination.$el;s.removeClass(t.hiddenClass),s.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&s.off("click","."+t.bulletClass)}};const Me={setTranslate(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:s,progress:a}=e,{dragSize:i,trackSize:n,$dragEl:r,$el:o}=t,l=e.params.scrollbar;let d=i,c=(n-i)*a;s?(c=-c,c>0?(d=i-c,c=0):-c+i>n&&(d=n+c)):c<0?(d=i+c,c=0):c+i>n&&(d=n-c),e.isHorizontal()?(U.transforms3d?r.transform(`translate3d(${c}px, 0, 0)`):r.transform(`translateX(${c}px)`),r[0].style.width=d+"px"):(U.transforms3d?r.transform(`translate3d(0px, ${c}px, 0)`):r.transform(`translateY(${c}px)`),r[0].style.height=d+"px"),l.hide&&(clearTimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=setTimeout(()=>{o[0].style.opacity=0,o.transition(400)},1e3))},setTransition(e){const t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{$dragEl:s,$el:a}=t;s[0].style.width="",s[0].style.height="";const i=e.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,n=e.size/e.virtualSize,r=n*(i/e.size);let o;o="auto"===e.params.scrollbar.dragSize?i*n:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?s[0].style.width=o+"px":s[0].style.height=o+"px",a[0].style.display=n>=1?"none":"",e.params.scrollbar.hide&&(a[0].style.opacity=0),W.extend(t,{trackSize:i,divider:n,moveDivider:r,dragSize:o}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)},getPointerPosition(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition(e){const t=this,{scrollbar:s,rtlTranslate:a}=t,{$el:i,dragSize:n,trackSize:r,dragStartPos:o}=s;let l;l=(s.getPointerPosition(e)-i.offset()[t.isHorizontal()?"left":"top"]-(null!==o?o:n/2))/(r-n),l=Math.max(Math.min(l,1),0),a&&(l=1-l);const d=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*l;t.updateProgress(d),t.setTranslate(d),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart(e){const t=this,s=t.params.scrollbar,{scrollbar:a,$wrapperEl:i}=t,{$el:n,$dragEl:r}=a;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===r[0]||e.target===r?a.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.transition(100),r.transition(100),a.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),n.transition(0),s.hide&&n.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove(e){const t=this,{scrollbar:s,$wrapperEl:a}=t,{$el:i,$dragEl:n}=s;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,s.setDragPosition(e),a.transition(0),i.transition(0),n.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd(e){const t=this,s=t.params.scrollbar,{scrollbar:a}=t,{$el:i}=a;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,s.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=W.nextTick(()=>{i.css("opacity",0),i.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),s.snapOnRelease&&t.slideToClosest())},enableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:s,touchEventsDesktop:a,params:i}=e,n=t.$el[0],r=!(!U.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},o=!(!U.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};U.touch?(n.addEventListener(s.start,e.scrollbar.onDragStart,r),n.addEventListener(s.move,e.scrollbar.onDragMove,r),n.addEventListener(s.end,e.scrollbar.onDragEnd,o)):(n.addEventListener(a.start,e.scrollbar.onDragStart,r),G.addEventListener(a.move,e.scrollbar.onDragMove,r),G.addEventListener(a.end,e.scrollbar.onDragEnd,o))},disableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:s,touchEventsDesktop:a,params:i}=e,n=t.$el[0],r=!(!U.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},o=!(!U.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};U.touch?(n.removeEventListener(s.start,e.scrollbar.onDragStart,r),n.removeEventListener(s.move,e.scrollbar.onDragMove,r),n.removeEventListener(s.end,e.scrollbar.onDragEnd,o)):(n.removeEventListener(a.start,e.scrollbar.onDragStart,r),G.removeEventListener(a.move,e.scrollbar.onDragMove,r),G.removeEventListener(a.end,e.scrollbar.onDragEnd,o))},init(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,$el:s}=e,a=e.params.scrollbar;let i=Y(a.el);e.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===s.find(a.el).length&&(i=s.find(a.el));let n=i.find("."+e.params.scrollbar.dragClass);0===n.length&&(n=Y(`<div class="${e.params.scrollbar.dragClass}"></div>`),i.append(n)),W.extend(t,{$el:i,el:i[0],$dragEl:n,dragEl:n[0]}),a.draggable&&t.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};const Pe={setTransform(e,t){const{rtl:s}=this,a=Y(e),i=s?-1:1,n=a.attr("data-swiper-parallax")||"0";let r=a.attr("data-swiper-parallax-x"),o=a.attr("data-swiper-parallax-y");const l=a.attr("data-swiper-parallax-scale"),d=a.attr("data-swiper-parallax-opacity");if(r||o?(r=r||"0",o=o||"0"):this.isHorizontal()?(r=n,o="0"):(o=n,r="0"),r=r.indexOf("%")>=0?parseInt(r,10)*t*i+"%":r*t*i+"px",o=o.indexOf("%")>=0?parseInt(o,10)*t+"%":o*t+"px",null!=d){const e=d-(d-1)*(1-Math.abs(t));a[0].style.opacity=e}if(null==l)a.transform(`translate3d(${r}, ${o}, 0px)`);else{const e=l-(l-1)*(1-Math.abs(t));a.transform(`translate3d(${r}, ${o}, 0px) scale(${e})`)}},setTranslate(){const e=this,{$el:t,slides:s,progress:a,snapGrid:i}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,s)=>{e.parallax.setTransform(s,a)}),s.each((t,s)=>{let n=s.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(n+=Math.ceil(t/2)-a*(i.length-1)),n=Math.min(Math.max(n,-1),1),Y(s).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,s)=>{e.parallax.setTransform(s,n)})})},setTransition(e=this.params.speed){const{$el:t}=this;t.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,s)=>{const a=Y(s);let i=parseInt(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),a.transition(i)})}};const Oe={getDistanceBetweenTouches(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,s=e.targetTouches[0].pageY,a=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt((a-t)**2+(i-s)**2)},onGestureStart(e){const t=this,s=t.params.zoom,a=t.zoom,{gesture:i}=a;if(a.fakeGestureTouched=!1,a.fakeGestureMoved=!1,!U.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;a.fakeGestureTouched=!0,i.scaleStart=Oe.getDistanceBetweenTouches(e)}i.$slideEl&&i.$slideEl.length||(i.$slideEl=Y(e.target).closest(".swiper-slide"),0===i.$slideEl.length&&(i.$slideEl=t.slides.eq(t.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+s.containerClass),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,0!==i.$imageWrapEl.length)?(i.$imageEl.transition(0),t.zoom.isScaling=!0):i.$imageEl=void 0},onGestureChange(e){const t=this.params.zoom,s=this.zoom,{gesture:a}=s;if(!U.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;s.fakeGestureMoved=!0,a.scaleMove=Oe.getDistanceBetweenTouches(e)}a.$imageEl&&0!==a.$imageEl.length&&(U.gestures?s.scale=e.scale*s.currentScale:s.scale=a.scaleMove/a.scaleStart*s.currentScale,s.scale>a.maxRatio&&(s.scale=a.maxRatio-1+(s.scale-a.maxRatio+1)**.5),s.scale<t.minRatio&&(s.scale=t.minRatio+1-(t.minRatio-s.scale+1)**.5),a.$imageEl.transform(`translate3d(0,0,0) scale(${s.scale})`))},onGestureEnd(e){const t=this,s=t.params.zoom,a=t.zoom,{gesture:i}=a;if(!U.gestures){if(!a.fakeGestureTouched||!a.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!ne.android)return;a.fakeGestureTouched=!1,a.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(a.scale=Math.max(Math.min(a.scale,i.maxRatio),s.minRatio),i.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${a.scale})`),a.currentScale=a.scale,a.isScaling=!1,1===a.scale&&(i.$slideEl=void 0))},onTouchStart(e){const t=this.zoom,{gesture:s,image:a}=t;s.$imageEl&&0!==s.$imageEl.length&&(a.isTouched||(ne.android&&e.preventDefault(),a.isTouched=!0,a.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,a.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove(e){const t=this,s=t.zoom,{gesture:a,image:i,velocity:n}=s;if(!a.$imageEl||0===a.$imageEl.length)return;if(t.allowClick=!1,!i.isTouched||!a.$slideEl)return;i.isMoved||(i.width=a.$imageEl[0].offsetWidth,i.height=a.$imageEl[0].offsetHeight,i.startX=W.getTranslate(a.$imageWrapEl[0],"x")||0,i.startY=W.getTranslate(a.$imageWrapEl[0],"y")||0,a.slideWidth=a.$slideEl[0].offsetWidth,a.slideHeight=a.$slideEl[0].offsetHeight,a.$imageWrapEl.transition(0),t.rtl&&(i.startX=-i.startX,i.startY=-i.startY));const r=i.width*s.scale,o=i.height*s.scale;if(!(r<a.slideWidth&&o<a.slideHeight)){if(i.minX=Math.min(a.slideWidth/2-r/2,0),i.maxX=-i.minX,i.minY=Math.min(a.slideHeight/2-o/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!i.isMoved&&!s.isScaling){if(t.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}e.preventDefault(),e.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-(i.minX-i.currentX+1)**.8),i.currentX>i.maxX&&(i.currentX=i.maxX-1+(i.currentX-i.maxX+1)**.8),i.currentY<i.minY&&(i.currentY=i.minY+1-(i.minY-i.currentY+1)**.8),i.currentY>i.maxY&&(i.currentY=i.maxY-1+(i.currentY-i.maxY+1)**.8),n.prevPositionX||(n.prevPositionX=i.touchesCurrent.x),n.prevPositionY||(n.prevPositionY=i.touchesCurrent.y),n.prevTime||(n.prevTime=Date.now()),n.x=(i.touchesCurrent.x-n.prevPositionX)/(Date.now()-n.prevTime)/2,n.y=(i.touchesCurrent.y-n.prevPositionY)/(Date.now()-n.prevTime)/2,Math.abs(i.touchesCurrent.x-n.prevPositionX)<2&&(n.x=0),Math.abs(i.touchesCurrent.y-n.prevPositionY)<2&&(n.y=0),n.prevPositionX=i.touchesCurrent.x,n.prevPositionY=i.touchesCurrent.y,n.prevTime=Date.now(),a.$imageWrapEl.transform(`translate3d(${i.currentX}px, ${i.currentY}px,0)`)}},onTouchEnd(){const e=this.zoom,{gesture:t,image:s,velocity:a}=e;if(!t.$imageEl||0===t.$imageEl.length)return;if(!s.isTouched||!s.isMoved)return s.isTouched=!1,void(s.isMoved=!1);s.isTouched=!1,s.isMoved=!1;let i=300,n=300;const r=a.x*i,o=s.currentX+r,l=a.y*n,d=s.currentY+l;0!==a.x&&(i=Math.abs((o-s.currentX)/a.x)),0!==a.y&&(n=Math.abs((d-s.currentY)/a.y));const c=Math.max(i,n);s.currentX=o,s.currentY=d;const p=s.width*e.scale,u=s.height*e.scale;s.minX=Math.min(t.slideWidth/2-p/2,0),s.maxX=-s.minX,s.minY=Math.min(t.slideHeight/2-u/2,0),s.maxY=-s.minY,s.currentX=Math.max(Math.min(s.currentX,s.maxX),s.minX),s.currentY=Math.max(Math.min(s.currentY,s.maxY),s.minY),t.$imageWrapEl.transition(c).transform(`translate3d(${s.currentX}px, ${s.currentY}px,0)`)},onTransitionEnd(){const e=this,t=e.zoom,{gesture:s}=t;s.$slideEl&&e.previousIndex!==e.activeIndex&&(s.$imageEl.transform("translate3d(0,0,0) scale(1)"),s.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,s.$slideEl=void 0,s.$imageEl=void 0,s.$imageWrapEl=void 0)},toggle(e){const t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in(e){const t=this,s=t.zoom,a=t.params.zoom,{gesture:i,image:n}=s;if(i.$slideEl||(i.$slideEl=t.clickedSlide?Y(t.clickedSlide):t.slides.eq(t.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+a.containerClass)),!i.$imageEl||0===i.$imageEl.length)return;let r,o,l,d,c,p,u,h,f,m,g,v,b,y,w,x,E,S;i.$slideEl.addClass(""+a.zoomedSlideClass),void 0===n.touchesStart.x&&e?(r="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,o="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(r=n.touchesStart.x,o=n.touchesStart.y),s.scale=i.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,s.currentScale=i.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,e?(E=i.$slideEl[0].offsetWidth,S=i.$slideEl[0].offsetHeight,l=i.$slideEl.offset().left,d=i.$slideEl.offset().top,c=l+E/2-r,p=d+S/2-o,f=i.$imageEl[0].offsetWidth,m=i.$imageEl[0].offsetHeight,g=f*s.scale,v=m*s.scale,b=Math.min(E/2-g/2,0),y=Math.min(S/2-v/2,0),w=-b,x=-y,u=c*s.scale,h=p*s.scale,u<b&&(u=b),u>w&&(u=w),h<y&&(h=y),h>x&&(h=x)):(u=0,h=0),i.$imageWrapEl.transition(300).transform(`translate3d(${u}px, ${h}px,0)`),i.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${s.scale})`)},out(){const e=this,t=e.zoom,s=e.params.zoom,{gesture:a}=t;a.$slideEl||(a.$slideEl=e.clickedSlide?Y(e.clickedSlide):e.slides.eq(e.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+s.containerClass)),a.$imageEl&&0!==a.$imageEl.length&&(t.scale=1,t.currentScale=1,a.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),a.$slideEl.removeClass(""+s.zoomedSlideClass),a.$slideEl=void 0)},enable(){const e=this,t=e.zoom;if(t.enabled)return;t.enabled=!0;const s=!("touchstart"!==e.touchEvents.start||!U.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};U.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,s),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,s),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,s)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,s),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,s),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,s)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)},disable(){const e=this,t=e.zoom;if(!t.enabled)return;e.zoom.enabled=!1;const s=!("touchstart"!==e.touchEvents.start||!U.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};U.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,s),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,s),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,s)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,s),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,s),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,s)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}};const ze={loadInSlide(e,t=!0){const s=this,a=s.params.lazy;if(void 0===e)return;if(0===s.slides.length)return;const i=s.virtual&&s.params.virtual.enabled?s.$wrapperEl.children(`.${s.params.slideClass}[data-swiper-slide-index="${e}"]`):s.slides.eq(e);let n=i.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`);!i.hasClass(a.elementClass)||i.hasClass(a.loadedClass)||i.hasClass(a.loadingClass)||(n=n.add(i[0])),0!==n.length&&n.each((e,n)=>{const r=Y(n);r.addClass(a.loadingClass);const o=r.attr("data-background"),l=r.attr("data-src"),d=r.attr("data-srcset"),c=r.attr("data-sizes");s.loadImage(r[0],l||o,d,c,!1,()=>{if(null!=s&&s&&(!s||s.params)&&!s.destroyed){if(o?(r.css("background-image",`url("${o}")`),r.removeAttr("data-background")):(d&&(r.attr("srcset",d),r.removeAttr("data-srcset")),c&&(r.attr("sizes",c),r.removeAttr("data-sizes")),l&&(r.attr("src",l),r.removeAttr("data-src"))),r.addClass(a.loadedClass).removeClass(a.loadingClass),i.find("."+a.preloaderClass).remove(),s.params.loop&&t){const e=i.attr("data-swiper-slide-index");if(i.hasClass(s.params.slideDuplicateClass)){const t=s.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${s.params.slideDuplicateClass})`);s.lazy.loadInSlide(t.index(),!1)}else{const t=s.$wrapperEl.children(`.${s.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`);s.lazy.loadInSlide(t.index(),!1)}}s.emit("lazyImageReady",i[0],r[0])}}),s.emit("lazyImageLoad",i[0],r[0])})},load(){const e=this,{$wrapperEl:t,params:s,slides:a,activeIndex:i}=e,n=e.virtual&&s.virtual.enabled,r=s.lazy;let o=s.slidesPerView;function l(e){if(n){if(t.children(`.${s.slideClass}[data-swiper-slide-index="${e}"]`).length)return!0}else if(a[e])return!0;return!1}function d(e){return n?Y(e).attr("data-swiper-slide-index"):Y(e).index()}if("auto"===o&&(o=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+s.slideVisibleClass).each((t,s)=>{const a=n?Y(s).attr("data-swiper-slide-index"):Y(s).index();e.lazy.loadInSlide(a)});else if(o>1)for(let c=i;c<i+o;c+=1)l(c)&&e.lazy.loadInSlide(c);else e.lazy.loadInSlide(i);if(r.loadPrevNext)if(o>1||r.loadPrevNextAmount&&r.loadPrevNextAmount>1){const t=r.loadPrevNextAmount,s=o,n=Math.min(i+s+Math.max(t,s),a.length),d=Math.max(i-Math.max(s,t),0);for(let a=i+o;a<n;a+=1)l(a)&&e.lazy.loadInSlide(a);for(let a=d;a<i;a+=1)l(a)&&e.lazy.loadInSlide(a)}else{const a=t.children("."+s.slideNextClass);a.length>0&&e.lazy.loadInSlide(d(a));const i=t.children("."+s.slidePrevClass);i.length>0&&e.lazy.loadInSlide(d(i))}}};const Ie={LinearSpline:function(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this},getInterpolateFunction(e){const t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Ie.LinearSpline(t.slidesGrid,e.slidesGrid):new Ie.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate(e,t){const s=this,a=s.controller.control;let i,n;function r(e){const t=s.rtlTranslate?-s.translate:s.translate;"slide"===s.params.controller.by&&(s.controller.getInterpolateFunction(e),n=-s.controller.spline.interpolate(-t)),n&&"container"!==s.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(s.maxTranslate()-s.minTranslate()),n=(t-s.minTranslate())*i+e.minTranslate()),s.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,s),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(let o=0;o<a.length;o+=1)a[o]!==t&&a[o]instanceof fe&&r(a[o]);else a instanceof fe&&t!==a&&r(a)},setTransition(e,t){const s=this,a=s.controller.control;let i;function n(t){t.setTransition(e,s),0!==e&&(t.transitionStart(),t.params.autoHeight&&W.nextTick(()=>{t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(()=>{a&&(t.params.loop&&"slide"===s.params.controller.by&&t.loopFix(),t.transitionEnd())}))}if(Array.isArray(a))for(i=0;i<a.length;i+=1)a[i]!==t&&a[i]instanceof fe&&n(a[i]);else a instanceof fe&&t!==a&&n(a)}};const Le={makeElFocusable:e=>(e.attr("tabIndex","0"),e),addElRole:(e,t)=>(e.attr("role",t),e),addElLabel:(e,t)=>(e.attr("aria-label",t),e),disableEl:e=>(e.attr("aria-disabled",!0),e),enableEl:e=>(e.attr("aria-disabled",!1),e),onEnterKey(e){const t=this,s=t.params.a11y;if(13!==e.keyCode)return;const a=Y(e.target);t.navigation&&t.navigation.$nextEl&&a.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(s.lastSlideMessage):t.a11y.notify(s.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&a.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(s.firstSlideMessage):t.a11y.notify(s.prevSlideMessage)),t.pagination&&a.is("."+t.params.pagination.bulletClass)&&a[0].click()},notify(e){const t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation(){const e=this;if(e.params.loop)return;const{$nextEl:t,$prevEl:s}=e.navigation;s&&s.length>0&&(e.isBeginning?e.a11y.disableEl(s):e.a11y.enableEl(s)),t&&t.length>0&&(e.isEnd?e.a11y.disableEl(t):e.a11y.enableEl(t))},updatePagination(){const e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((s,a)=>{const i=Y(a);e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,t.paginationBulletMessage.replace(/{{index}}/,i.index()+1))})},init(){const e=this;e.$el.append(e.a11y.liveRegion);const t=e.params.a11y;let s,a;e.navigation&&e.navigation.$nextEl&&(s=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(a=e.navigation.$prevEl),s&&(e.a11y.makeElFocusable(s),e.a11y.addElRole(s,"button"),e.a11y.addElLabel(s,t.nextSlideMessage),s.on("keydown",e.a11y.onEnterKey)),a&&(e.a11y.makeElFocusable(a),e.a11y.addElRole(a,"button"),e.a11y.addElLabel(a,t.prevSlideMessage),a.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)},destroy(){const e=this;let t,s;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove(),e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(s=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),s&&s.off("keydown",e.a11y.onEnterKey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)}};const je={init(){const e=this;if(!e.params.history)return;if(!R.history||!R.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);const t=e.history;t.initialized=!0,t.paths=je.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||R.addEventListener("popstate",e.history.setHistoryPopState))},destroy(){const e=this;e.params.history.replaceState||R.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState(){const e=this;e.history.paths=je.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues(){const e=R.location.pathname.slice(1).split("/").filter(e=>""!==e),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory(e,t){const s=this;if(!s.history.initialized||!s.params.history.enabled)return;const a=s.slides.eq(t);let i=je.slugify(a.attr("data-history"));R.location.pathname.includes(e)||(i=`${e}/${i}`);const n=R.history.state;n&&n.value===i||(s.params.history.replaceState?R.history.replaceState({value:i},null,i):R.history.pushState({value:i},null,i))},slugify:e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),scrollToSlide(e,t,s){const a=this;if(t)for(let i=0,n=a.slides.length;i<n;i+=1){const n=a.slides.eq(i);if(je.slugify(n.attr("data-history"))===t&&!n.hasClass(a.params.slideDuplicateClass)){const t=n.index();a.slideTo(t,e,s)}}else a.slideTo(0,e,s)}};const De={onHashCange(){const e=this,t=G.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){const s=e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index();if(void 0===s)return;e.slideTo(s)}},setHash(){const e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&R.history&&R.history.replaceState)R.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||"");else{const t=e.slides.eq(e.activeIndex),s=t.attr("data-hash")||t.attr("data-history");G.location.hash=s||""}},init(){const e=this;if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;e.hashNavigation.initialized=!0;const t=G.location.hash.replace("#","");if(t){const s=0;for(let a=0,i=e.slides.length;a<i;a+=1){const i=e.slides.eq(a);if((i.attr("data-hash")||i.attr("data-history"))===t&&!i.hasClass(e.params.slideDuplicateClass)){const t=i.index();e.slideTo(t,s,e.params.runCallbacksOnInit,!0)}}}e.params.hashNavigation.watchState&&Y(R).on("hashchange",e.hashNavigation.onHashCange)},destroy(){const e=this;e.params.hashNavigation.watchState&&Y(R).off("hashchange",e.hashNavigation.onHashCange)}};const Ae={run(){const e=this,t=e.slides.eq(e.activeIndex);let s=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(s=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=W.nextTick(()=>{e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))},s)},start(){const e=this;return void 0===e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop(){const e=this;return!!e.autoplay.running&&(void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause(e){const t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}};const _e={setTranslate(){const e=this,{slides:t}=e;for(let s=0;s<t.length;s+=1){const t=e.slides.eq(s);let a=-t[0].swiperSlideOffset;e.params.virtualTranslate||(a-=e.translate);let i=0;e.isHorizontal()||(i=a,a=0);const n=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);t.css({opacity:n}).transform(`translate3d(${a}px, ${i}px, 0px)`)}},setTransition(e){const t=this,{slides:s,$wrapperEl:a}=t;if(s.transition(e),t.params.virtualTranslate&&0!==e){let e=!1;s.transitionEnd(()=>{if(e)return;if(!t||t.destroyed)return;e=!0,t.animating=!1;const s=["webkitTransitionEnd","transitionend"];for(let e=0;e<s.length;e+=1)a.trigger(s[e])})}}};const Ne={setTranslate(){const e=this,{$el:t,$wrapperEl:s,slides:a,width:i,height:n,rtlTranslate:r,size:o}=e,l=e.params.cubeEffect,d=e.isHorizontal(),c=e.virtual&&e.params.virtual.enabled;let p,u=0;l.shadow&&(d?(p=s.find(".swiper-cube-shadow"),0===p.length&&(p=Y('<div class="swiper-cube-shadow"></div>'),s.append(p)),p.css({height:i+"px"})):(p=t.find(".swiper-cube-shadow"),0===p.length&&(p=Y('<div class="swiper-cube-shadow"></div>'),t.append(p))));for(let f=0;f<a.length;f+=1){const e=a.eq(f);let t=f;c&&(t=parseInt(e.attr("data-swiper-slide-index"),10));let s=90*t,i=Math.floor(s/360);r&&(s=-s,i=Math.floor(-s/360));const n=Math.max(Math.min(e[0].progress,1),-1);let p=0,h=0,m=0;t%4==0?(p=4*-i*o,m=0):(t-1)%4==0?(p=0,m=4*-i*o):(t-2)%4==0?(p=o+4*i*o,m=o):(t-3)%4==0&&(p=-o,m=3*o+4*o*i),r&&(p=-p),d||(h=p,p=0);const g=`rotateX(${d?0:-s}deg) rotateY(${d?s:0}deg) translate3d(${p}px, ${h}px, ${m}px)`;if(n<=1&&n>-1&&(u=90*t+90*n,r&&(u=90*-t-90*n)),e.transform(g),l.slideShadows){let t=d?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),s=d?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=Y(`<div class="swiper-slide-shadow-${d?"left":"top"}"></div>`),e.append(t)),0===s.length&&(s=Y(`<div class="swiper-slide-shadow-${d?"right":"bottom"}"></div>`),e.append(s)),t.length&&(t[0].style.opacity=Math.max(-n,0)),s.length&&(s[0].style.opacity=Math.max(n,0))}}if(s.css({"-webkit-transform-origin":`50% 50% -${o/2}px`,"-moz-transform-origin":`50% 50% -${o/2}px`,"-ms-transform-origin":`50% 50% -${o/2}px`,"transform-origin":`50% 50% -${o/2}px`}),l.shadow)if(d)p.transform(`translate3d(0px, ${i/2+l.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${l.shadowScale})`);else{const e=Math.abs(u)-90*Math.floor(Math.abs(u)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=l.shadowScale,a=l.shadowScale/t,i=l.shadowOffset;p.transform(`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-90deg)`)}const h=K.isSafari||K.isUiWebView?-o/2:0;s.transform(`translate3d(0px,0,${h}px) rotateX(${e.isHorizontal()?0:u}deg) rotateY(${e.isHorizontal()?-u:0}deg)`)},setTransition(e){const t=this,{$el:s,slides:a}=t;a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&s.find(".swiper-cube-shadow").transition(e)}};const He={setTranslate(){const e=this,{slides:t,rtlTranslate:s}=e;for(let a=0;a<t.length;a+=1){const i=t.eq(a);let n=i[0].progress;e.params.flipEffect.limitRotation&&(n=Math.max(Math.min(i[0].progress,1),-1));let r=-180*n,o=0,l=-i[0].swiperSlideOffset,d=0;if(e.isHorizontal()?s&&(r=-r):(d=l,l=0,o=-r,r=0),i[0].style.zIndex=-Math.abs(Math.round(n))+t.length,e.params.flipEffect.slideShadows){let t=e.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),s=e.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===t.length&&(t=Y(`<div class="swiper-slide-shadow-${e.isHorizontal()?"left":"top"}"></div>`),i.append(t)),0===s.length&&(s=Y(`<div class="swiper-slide-shadow-${e.isHorizontal()?"right":"bottom"}"></div>`),i.append(s)),t.length&&(t[0].style.opacity=Math.max(-n,0)),s.length&&(s[0].style.opacity=Math.max(n,0))}i.transform(`translate3d(${l}px, ${d}px, 0px) rotateX(${o}deg) rotateY(${r}deg)`)}},setTransition(e){const t=this,{slides:s,activeIndex:a,$wrapperEl:i}=t;if(s.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){let e=!1;s.eq(a).transitionEnd((function(){if(e)return;if(!t||t.destroyed)return;e=!0,t.animating=!1;const s=["webkitTransitionEnd","transitionend"];for(let e=0;e<s.length;e+=1)i.trigger(s[e])}))}}};const Be={setTranslate(){const e=this,{width:t,height:s,slides:a,$wrapperEl:i,slidesSizesGrid:n}=e,r=e.params.coverflowEffect,o=e.isHorizontal(),l=e.translate,d=o?t/2-l:s/2-l,c=o?r.rotate:-r.rotate,p=r.depth;for(let u=0,h=a.length;u<h;u+=1){const e=a.eq(u),t=n[u],s=(d-e[0].swiperSlideOffset-t/2)/t*r.modifier;let i=o?c*s:0,l=o?0:c*s,h=-p*Math.abs(s),f=o?0:r.stretch*s,m=o?r.stretch*s:0;Math.abs(m)<.001&&(m=0),Math.abs(f)<.001&&(f=0),Math.abs(h)<.001&&(h=0),Math.abs(i)<.001&&(i=0),Math.abs(l)<.001&&(l=0);const g=`translate3d(${m}px,${f}px,${h}px) rotateX(${l}deg) rotateY(${i}deg)`;if(e.transform(g),e[0].style.zIndex=1-Math.abs(Math.round(s)),r.slideShadows){let t=o?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),a=o?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=Y(`<div class="swiper-slide-shadow-${o?"left":"top"}"></div>`),e.append(t)),0===a.length&&(a=Y(`<div class="swiper-slide-shadow-${o?"right":"bottom"}"></div>`),e.append(a)),t.length&&(t[0].style.opacity=s>0?s:0),a.length&&(a[0].style.opacity=-s>0?-s:0)}}if(U.pointerEvents||U.prefixedPointerEvents){i[0].style.perspectiveOrigin=d+"px 50%"}},setTransition(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}};const Ve={init(){const e=this,{thumbs:t}=e.params,s=e.constructor;t.swiper instanceof s?(e.thumbs.swiper=t.swiper,W.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),W.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):W.isObject(t.swiper)&&(e.thumbs.swiper=new s(W.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick(){const e=this,t=e.thumbs.swiper;if(!t)return;const s=t.clickedIndex,a=t.clickedSlide;if(a&&Y(a).hasClass(e.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let i;if(i=t.params.loop?parseInt(Y(t.clickedSlide).attr("data-swiper-slide-index"),10):s,e.params.loop){let t=e.activeIndex;e.slides.eq(t).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,t=e.activeIndex);const s=e.slides.eq(t).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),a=e.slides.eq(t).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();i=void 0===s?a:void 0===a?s:a-t<t-s?a:s}e.slideTo(i)},update(e){const t=this,s=t.thumbs.swiper;if(!s)return;const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;if(t.realIndex!==s.realIndex){let i,n=s.activeIndex;if(s.params.loop){s.slides.eq(n).hasClass(s.params.slideDuplicateClass)&&(s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft,n=s.activeIndex);const e=s.slides.eq(n).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),a=s.slides.eq(n).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();i=void 0===e?a:void 0===a?e:a-n==n-e?n:a-n<n-e?a:e}else i=t.realIndex;s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(i)<0&&(s.params.centeredSlides?i=i>n?i-Math.floor(a/2)+1:i+Math.floor(a/2)-1:i>n&&(i=i-a+1),s.slideTo(i,e?0:void 0))}let i=1;const n=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),s.slides.removeClass(n),s.params.loop||s.params.virtual)for(let r=0;r<i;r+=1)s.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+r}"]`).addClass(n);else for(let r=0;r<i;r+=1)s.slides.eq(t.realIndex+r).addClass(n)}};const Ge=[me,ge,ve,be,we,Ee,Te,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const e=this;W.extend(e,{mousewheel:{enabled:!1,enable:Ce.enable.bind(e),disable:Ce.disable.bind(e),handle:Ce.handle.bind(e),handleMouseEnter:Ce.handleMouseEnter.bind(e),handleMouseLeave:Ce.handleMouseLeave.bind(e),lastScrollTime:W.now()}})},on:{init(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){const e=this;W.extend(e,{navigation:{init:$e.init.bind(e),update:$e.update.bind(e),destroy:$e.destroy.bind(e),onNextClick:$e.onNextClick.bind(e),onPrevClick:$e.onPrevClick.bind(e)}})},on:{init(){this.navigation.init(),this.navigation.update()},toEdge(){this.navigation.update()},fromEdge(){this.navigation.update()},destroy(){this.navigation.destroy()},click(e){const t=this,{$nextEl:s,$prevEl:a}=t.navigation;if(t.params.navigation.hideOnClick&&!Y(e.target).is(a)&&!Y(e.target).is(s)){let e;s?e=s.hasClass(t.params.navigation.hiddenClass):a&&(e=a.hasClass(t.params.navigation.hiddenClass)),!0===e?t.emit("navigationShow",t):t.emit("navigationHide",t),s&&s.toggleClass(t.params.navigation.hiddenClass),a&&a.toggleClass(t.params.navigation.hiddenClass)}}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){const e=this;W.extend(e,{pagination:{init:ke.init.bind(e),render:ke.render.bind(e),update:ke.update.bind(e),destroy:ke.destroy.bind(e),dynamicBulletIndex:0}})},on:{init(){const e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange(){const e=this;(e.params.loop||void 0===e.snapIndex)&&e.pagination.update()},snapIndexChange(){const e=this;e.params.loop||e.pagination.update()},slidesLengthChange(){const e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange(){const e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy(){this.pagination.destroy()},click(e){const t=this;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!Y(e.target).hasClass(t.params.pagination.bulletClass)){!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){const e=this;W.extend(e,{scrollbar:{init:Me.init.bind(e),destroy:Me.destroy.bind(e),updateSize:Me.updateSize.bind(e),setTranslate:Me.setTranslate.bind(e),setTransition:Me.setTransition.bind(e),enableDraggable:Me.enableDraggable.bind(e),disableDraggable:Me.disableDraggable.bind(e),setDragPosition:Me.setDragPosition.bind(e),getPointerPosition:Me.getPointerPosition.bind(e),onDragStart:Me.onDragStart.bind(e),onDragMove:Me.onDragMove.bind(e),onDragEnd:Me.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){const e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update(){this.scrollbar.updateSize()},resize(){this.scrollbar.updateSize()},observerUpdate(){this.scrollbar.updateSize()},setTranslate(){this.scrollbar.setTranslate()},setTransition(e){this.scrollbar.setTransition(e)},destroy(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create(){const e=this;W.extend(e,{parallax:{setTransform:Pe.setTransform.bind(e),setTranslate:Pe.setTranslate.bind(e),setTransition:Pe.setTransition.bind(e)}})},on:{beforeInit(){const e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(s=>{t[s]=Oe[s].bind(e)}),W.extend(e,{zoom:t});let s=1;Object.defineProperty(e.zoom,"scale",{get:()=>s,set(t){if(s!==t){const s=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,a=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,s,a)}s=t}})},on:{init(){const e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy(){this.zoom.disable()},touchStart(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap(e){const t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd(){const e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){const e=this;W.extend(e,{lazy:{initialImageLoaded:!1,load:ze.load.bind(e),loadInSlide:ze.loadInSlide.bind(e)}})},on:{beforeInit(){const e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init(){const e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll(){const e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize(){const e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove(){const e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart(){const e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd(){const e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const e=this;W.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Ie.getInterpolateFunction.bind(e),setTranslate:Ie.setTranslate.bind(e),setTransition:Ie.setTransition.bind(e)}})},on:{update(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create(){const e=this;W.extend(e,{a11y:{liveRegion:Y(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(Le).forEach(t=>{e.a11y[t]=Le[t].bind(e)})},on:{init(){const e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const e=this;W.extend(e,{history:{init:je.init.bind(e),setHistory:je.setHistory.bind(e),setHistoryPopState:je.setHistoryPopState.bind(e),scrollToSlide:je.scrollToSlide.bind(e),destroy:je.destroy.bind(e)}})},on:{init(){const e=this;e.params.history.enabled&&e.history.init()},destroy(){const e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd(){const e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const e=this;W.extend(e,{hashNavigation:{initialized:!1,init:De.init.bind(e),destroy:De.destroy.bind(e),setHash:De.setHash.bind(e),onHashCange:De.onHashCange.bind(e)}})},on:{init(){const e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy(){const e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd(){const e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const e=this;W.extend(e,{autoplay:{running:!1,paused:!1,run:Ae.run.bind(e),start:Ae.start.bind(e),stop:Ae.stop.bind(e),pause:Ae.pause.bind(e),onTransitionEnd(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init(){const e=this;e.params.autoplay.enabled&&e.autoplay.start()},beforeTransitionStart(e,t){const s=this;s.autoplay.running&&(t||!s.params.autoplay.disableOnInteraction?s.autoplay.pause(e):s.autoplay.stop())},sliderFirstMove(){const e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy(){const e=this;e.autoplay.running&&e.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const e=this;W.extend(e,{fadeEffect:{setTranslate:_e.setTranslate.bind(e),setTransition:_e.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if("fade"!==e.params.effect)return;e.classNames.push(e.params.containerModifierClass+"fade");const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};W.extend(e.params,t),W.extend(e.originalParams,t)},setTranslate(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const e=this;W.extend(e,{cubeEffect:{setTranslate:Ne.setTranslate.bind(e),setTransition:Ne.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if("cube"!==e.params.effect)return;e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};W.extend(e.params,t),W.extend(e.originalParams,t)},setTranslate(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const e=this;W.extend(e,{flipEffect:{setTranslate:He.setTranslate.bind(e),setTransition:He.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if("flip"!==e.params.effect)return;e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};W.extend(e.params,t),W.extend(e.originalParams,t)},setTranslate(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create(){const e=this;W.extend(e,{coverflowEffect:{setTranslate:Be.setTranslate.bind(e),setTransition:Be.setTransition.bind(e)}})},on:{beforeInit(){const e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const e=this;W.extend(e,{thumbs:{swiper:null,init:Ve.init.bind(e),update:Ve.update.bind(e),onThumbClick:Ve.onThumbClick.bind(e)}})},on:{beforeInit(){const e=this,{thumbs:t}=e.params;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange(){this.thumbs.swiper&&this.thumbs.update()},update(){this.thumbs.swiper&&this.thumbs.update()},resize(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate(){this.thumbs.swiper&&this.thumbs.update()},setTransition(e){const t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy(){const e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];void 0===fe.use&&(fe.use=fe.Class.use,fe.installModule=fe.Class.installModule),fe.use(Ge);var Re=fe,Xe=(s(36),"wp-block-newspack-blocks-carousel__autoplay-playing");function Ye(e,t){Array.prototype.forEach.call(e,t)}function Fe(e){e.setAttribute("aria-hidden","false"),Ye(e.querySelectorAll("a"),(function(e){return e.removeAttribute("tabindex")}))}function qe(e){e.setAttribute("aria-hidden","true"),Ye(e.querySelectorAll("a"),(function(e){return e.setAttribute("tabindex","-1")}))}var We=function(e){m()(s,e);var t=v()(s);function s(e){var a;return p()(this,s),(a=t.call(this,e)).btnPlayRef=Object(o.createRef)(),a.btnPauseRef=Object(o.createRef)(),a.btnNextRef=Object(o.createRef)(),a.btnPrevRef=Object(o.createRef)(),a.carouselRef=Object(o.createRef)(),a.paginationRef=Object(o.createRef)(),a}return h()(s,[{key:"componentDidMount",value:function(){this.initializeSwiper(0)}},{key:"componentDidUpdate",value:function(e){var t=this.props,s=t.attributes,a=t.latestPosts;if(e.latestPosts!==a||e.latestPosts&&a&&e.latestPosts.length!==a.length||!Object(b.isEqual)(e.attributes,s)){var i=0;this.swiperInstance&&(a&&this.swiperInstance.realIndex<a.length&&(i=this.swiperInstance.realIndex),this.swiperInstance.destroy(!0,!0)),this.initializeSwiper(i)}}},{key:"initializeSwiper",value:function(e){var t=this.props.latestPosts;if(t&&t.length){var s=this.props.attributes,a=s.autoplay,i=s.delay;this.swiperInstance=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=new Re(e.container,{a11y:!1,autoplay:!!t.autoplay&&{delay:t.delay,disableOnInteraction:!1},effect:"slide",grabCursor:!0,init:!1,initialSlide:t.initialSlide||0,loop:!0,navigation:{nextEl:e.next,prevEl:e.prev},pagination:{bulletElement:"button",clickable:!0,el:e.pagination,type:"bullets",renderBullet:function(e,t){return'<button class="'.concat(t,'"><span>').concat(Object(d.sprintf)(Object(d.__)("Slide %s","full-site-editing"),e+1),"</span></button>")}},preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,touchStartPreventDefault:!1,on:{init:function(){Ye(this.wrapperEl.querySelectorAll(".swiper-slide"),(function(e){return qe(e)})),Fe(this.slides[this.activeIndex])},slideChange:function(){var e=this.slides[this.activeIndex];if(qe(this.slides[this.previousIndex]),Fe(e),!this.autoplay.running){var t=e.querySelector("img"),s=!!t&&t.alt,a=Object(d.sprintf)(Object(d.__)("Slide %s of %s","full-site-editing"),this.realIndex+1,this.pagination.bullets.length);Object(B.speak)(Object(V.escapeHTML)("".concat(e.innerText,",\n\t\t\t\t\t\t\t").concat(s?Object(d.sprintf)(Object(d.__)("Image: %s, ","full-site-editing"),s):"","\n\t\t\t\t\t\t\t").concat(a)),"assertive")}}}});if(t.autoplay){function a(){s.autoplay.stop(),e.play.focus()}function i(){s.autoplay.start(),e.pause.focus()}s.on("init",(function(){e.play.addEventListener("click",i),e.pause.addEventListener("click",a)})),s.on("autoplayStart",(function(){e.block.classList.add(Xe),Object(B.speak)(Object(d.__)("Playing","full-site-editing"),"assertive")})),s.on("autoplayStop",(function(){e.block.classList.remove(Xe),Object(B.speak)(Object(d.__)("Paused","full-site-editing"),"assertive")})),s.on("beforeDestroy",(function(){e.play.removeEventListener("click",i),e.pause.removeEventListener("click",a)}))}return s.init(),s}({block:this.carouselRef.current,container:this.carouselRef.current,next:this.btnNextRef.current,prev:this.btnPrevRef.current,play:this.btnPlayRef.current,pause:this.btnPauseRef.current,pagination:this.paginationRef.current},{autoplay:a,delay:1e3*i,initialSlide:e})}}},{key:"render",value:function(){var e=this.props,t=e.attributes,s=e.className,a=e.setAttributes,i=e.latestPosts,n=t.authors,r=t.autoplay,c=t.categories,p=t.delay,u=t.postsToShow,h=t.showCategory,f=t.showDate,m=t.showAuthor,g=t.showAvatar,v=t.tags,b=w()(s,"wp-block-newspack-blocks-carousel","swiper-container",r&&"wp-block-newspack-blocks-carousel__autoplay-playing"),y=Object(x.__experimentalGetSettings)().formats.date;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:b,ref:this.carouselRef},i&&!i.length&&Object(o.createElement)(l.Placeholder,null,Object(d.__)("Sorry, no posts were found.","full-site-editing")),!i&&Object(o.createElement)(l.Placeholder,{icon:Object(o.createElement)(l.Spinner,null),className:"component-placeholder__align-center"}),i&&Object(o.createElement)(o.Fragment,null,r&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("button",{className:"amp-carousel-button-pause amp-carousel-button",ref:this.btnPauseRef}),Object(o.createElement)("button",{className:"amp-carousel-button-play amp-carousel-button",ref:this.btnPlayRef})),Object(o.createElement)("div",{className:"swiper-wrapper"},i.map((function(e){return e.newspack_featured_image_src&&Object(o.createElement)("article",{className:"post-has-image swiper-slide",key:e.id},Object(o.createElement)("figure",{className:"post-thumbnail"},e.newspack_featured_image_src&&Object(o.createElement)("a",{href:"#",rel:"bookmark"},Object(o.createElement)("img",{src:e.newspack_featured_image_src.large,alt:""}))),Object(o.createElement)("div",{className:"entry-wrapper"},h&&e.newspack_category_info.length&&Object(o.createElement)("div",{className:"cat-links"},Object(o.createElement)("a",{href:"#"},Object(C.decodeEntities)(e.newspack_category_info))),Object(o.createElement)("h3",{className:"entry-title"},Object(o.createElement)("a",{href:"#"},Object(C.decodeEntities)(e.title.rendered.trim()))),Object(o.createElement)("div",{className:"entry-meta"},m&&g&&e.newspack_author_info.map((function(e){return Object(o.createElement)("span",{className:"avatar author-avatar",key:e.id},Object(o.createElement)("a",{className:"url fn n",href:e.author_link},Object(o.createElement)(o.RawHTML,null,e.avatar)))})),m&&function(e){return Object(o.createElement)("span",{className:"byline"},Object(d._x)("by","post author","full-site-editing")," ",e.reduce((function(t,s,a){return[].concat(A()(t),[Object(o.createElement)("span",{className:"author vcard",key:s.id},Object(o.createElement)("a",{className:"url fn n",href:s.author_link},s.display_name)),a<e.length-2&&", ",e.length>1&&a===e.length-2&&Object(d._x)(" and ","post author","full-site-editing")])}),[]))}(e.newspack_author_info),f&&Object(o.createElement)("time",{className:"entry-date published",key:"pub-date"},Object(x.dateI18n)(y,e.date_gmt)))))}))),Object(o.createElement)("button",{className:"amp-carousel-button amp-carousel-button-prev swiper-button-prev",ref:this.btnPrevRef}),Object(o.createElement)("button",{className:"amp-carousel-button amp-carousel-button-next swiper-button-next",ref:this.btnNextRef}),Object(o.createElement)("div",{className:"swiper-pagination-bullets amp-pagination",ref:this.paginationRef}))),Object(o.createElement)(E.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(d.__)("Display Settings","full-site-editing"),initialOpen:!0},u&&Object(o.createElement)(H,{enableSpecific:!1,numberOfItems:u,onNumberOfItemsChange:function(e){return a({postsToShow:e||1})},authors:n,onAuthorsChange:function(e){return a({authors:e})},categories:c,onCategoriesChange:function(e){return a({categories:e})},tags:v,onTagsChange:function(e){return a({tags:e})}})),Object(o.createElement)(l.PanelBody,{title:Object(d.__)("Slideshow Settings","full-site-editing"),initialOpen:!0},Object(o.createElement)(l.ToggleControl,{label:Object(d.__)("Autoplay","full-site-editing"),help:Object(d.__)("Autoplay between slides","full-site-editing"),checked:r,onChange:function(e){a({autoplay:e})}}),r&&Object(o.createElement)(l.RangeControl,{label:Object(d.__)("Delay between transitions (in seconds)","full-site-editing"),value:p,onChange:function(e){a({delay:e})},min:1,max:20})),Object(o.createElement)(l.PanelBody,{title:Object(d.__)("Article Meta Settings","full-site-editing")},Object(o.createElement)(l.PanelRow,null,Object(o.createElement)(l.ToggleControl,{label:Object(d.__)("Show Date","full-site-editing"),checked:f,onChange:function(){return a({showDate:!f})}})),Object(o.createElement)(l.PanelRow,null,Object(o.createElement)(l.ToggleControl,{label:Object(d.__)("Show Category","full-site-editing"),checked:h,onChange:function(){return a({showCategory:!h})}})),Object(o.createElement)(l.PanelRow,null,Object(o.createElement)(l.ToggleControl,{label:Object(d.__)("Show Author","full-site-editing"),checked:m,onChange:function(){return a({showAuthor:!m})}})),m&&Object(o.createElement)(l.PanelRow,null,Object(o.createElement)(l.ToggleControl,{label:Object(d.__)("Show Author Avatar","full-site-editing"),checked:g,onChange:function(){return a({showAvatar:!g})}})))))}}]),s}(o.Component),Ue=Object(T.compose)([Object(S.withSelect)((function(e,t){var s=t.attributes,a=s.postsToShow,i=s.authors,n=s.categories,r=s.tags;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(b.pickBy)({per_page:a,categories:n,author:i,tags:r,meta_key:"_thumbnail_id",meta_value_num:0,meta_compare:">"},(function(e){return!Object(b.isUndefined)(e)})))}}))])(We),Ke=(s(37),s(38),{title:Object(d.__)("Post Carousel","full-site-editing"),icon:Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(o.createElement)(l.Path,{d:"M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"})),category:"newspack",keywords:[Object(d.__)("posts","full-site-editing"),Object(d.__)("slideshow","full-site-editing"),Object(d.__)("carousel","full-site-editing")],description:Object(d.__)("A carousel of posts.","full-site-editing"),attributes:{className:{type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:5},postsToShow:{type:"integer",default:3},authors:{type:"array"},categories:{type:"array"},tags:{type:"array"},showDate:{type:"boolean",default:!0},showAuthor:{type:"boolean",default:!0},showAvatar:{type:"boolean",default:!0},showCategory:{type:"boolean",default:!1}},supports:{html:!1,align:!1},edit:Ue,save:function(){return null}}),Qe="a8c/posts-carousel";Object(r.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/carousel"!==e?e:Qe})),Object(n.registerBlockType)(Qe,i()(i()({},Ke),{},{category:"widgets"}))}]));
|
newspack-blocks/dist/carousel-block-view.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => '1c57000d544f7ceeae75a52181672b71');
|
newspack-blocks/dist/carousel-block-view.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e,t){for(var s in t)e[s]=t[s]}(window,function(e){var t={};function s(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,s),a.l=!0,a.exports}return s.m=e,s.c=t,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)s.d(i,a,function(t){return e[t]}.bind(null,a));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=6)}([function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.escapeHtml}()},function(e,t,s){},function(e,t,s){},function(e,t,s){"use strict";s.r(t);var i=s(2),a=s.n(i),n=s(1),r=s(3),l=s(0),o="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,d="undefined"==typeof window?{document:o,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;class p{constructor(e){const t=this;for(let s=0;s<e.length;s+=1)t[s]=e[s];return t.length=e.length,this}}function c(e,t){const s=[];let i=0;if(e&&!t&&e instanceof p)return e;if(e)if("string"==typeof e){let a,n;const r=e.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let e="div";for(0===r.indexOf("<li")&&(e="ul"),0===r.indexOf("<tr")&&(e="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(e="tr"),0===r.indexOf("<tbody")&&(e="table"),0===r.indexOf("<option")&&(e="select"),n=o.createElement(e),n.innerHTML=r,i=0;i<n.childNodes.length;i+=1)s.push(n.childNodes[i])}else for(a=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||o).querySelectorAll(e.trim()):[o.getElementById(e.trim().split("#")[1])],i=0;i<a.length;i+=1)a[i]&&s.push(a[i])}else if(e.nodeType||e===d||e===o)s.push(e);else if(e.length>0&&e[0].nodeType)for(i=0;i<e.length;i+=1)s.push(e[i]);return new p(s)}function h(e){const t=[];for(let s=0;s<e.length;s+=1)-1===t.indexOf(e[s])&&t.push(e[s]);return t}c.fn=p.prototype,c.Class=p,c.Dom7=p;"resize scroll".split(" ");const u={addClass:function(e){if(void 0===e)return this;const t=e.split(" ");for(let s=0;s<t.length;s+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.add(t[s]);return this},removeClass:function(e){const t=e.split(" ");for(let s=0;s<t.length;s+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.remove(t[s]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){const t=e.split(" ");for(let s=0;s<t.length;s+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.toggle(t[s]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let s=0;s<this.length;s+=1)if(2===arguments.length)this[s].setAttribute(e,t);else for(const t in e)this[s][t]=e[t],this[s].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){let s;if(void 0!==t){for(let i=0;i<this.length;i+=1)s=this[i],s.dom7ElementDataStorage||(s.dom7ElementDataStorage={}),s.dom7ElementDataStorage[e]=t;return this}if(s=this[0],s){if(s.dom7ElementDataStorage&&e in s.dom7ElementDataStorage)return s.dom7ElementDataStorage[e];const t=s.getAttribute("data-"+e);return t||void 0}},transform:function(e){for(let t=0;t<this.length;t+=1){const s=this[t].style;s.webkitTransform=e,s.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(let t=0;t<this.length;t+=1){const s=this[t].style;s.webkitTransitionDuration=e,s.transitionDuration=e}return this},on:function(...e){let[t,s,i,a]=e;function n(e){const t=e.target;if(!t)return;const a=e.target.dom7EventData||[];if(a.indexOf(e)<0&&a.unshift(e),c(t).is(s))i.apply(t,a);else{const e=c(t).parents();for(let t=0;t<e.length;t+=1)c(e[t]).is(s)&&i.apply(e[t],a)}}function r(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof e[1]&&([t,i,a]=e,s=void 0),a||(a=!1);const l=t.split(" ");let o;for(let d=0;d<this.length;d+=1){const e=this[d];if(s)for(o=0;o<l.length;o+=1){const t=l[o];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:i,proxyListener:n}),e.addEventListener(t,n,a)}else for(o=0;o<l.length;o+=1){const t=l[o];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:i,proxyListener:r}),e.addEventListener(t,r,a)}}return this},off:function(...e){let[t,s,i,a]=e;"function"==typeof e[1]&&([t,i,a]=e,s=void 0),a||(a=!1);const n=t.split(" ");for(let r=0;r<n.length;r+=1){const e=n[r];for(let t=0;t<this.length;t+=1){const n=this[t];let r;if(!s&&n.dom7Listeners?r=n.dom7Listeners[e]:s&&n.dom7LiveListeners&&(r=n.dom7LiveListeners[e]),r&&r.length)for(let t=r.length-1;t>=0;t-=1){const s=r[t];i&&s.listener===i||i&&s.listener&&s.listener.dom7proxy&&s.listener.dom7proxy===i?(n.removeEventListener(e,s.proxyListener,a),r.splice(t,1)):i||(n.removeEventListener(e,s.proxyListener,a),r.splice(t,1))}}}return this},trigger:function(...e){const t=e[0].split(" "),s=e[1];for(let a=0;a<t.length;a+=1){const n=t[a];for(let t=0;t<this.length;t+=1){const a=this[t];let r;try{r=new d.CustomEvent(n,{detail:s,bubbles:!0,cancelable:!0})}catch(i){r=o.createEvent("Event"),r.initEvent(n,!0,!0),r.detail=s}a.dom7EventData=e.filter((e,t)=>t>0),a.dispatchEvent(r),a.dom7EventData=[],delete a.dom7EventData}}return this},transitionEnd:function(e){const t=["webkitTransitionEnd","transitionend"],s=this;let i;function a(n){if(n.target===this)for(e.call(this,n),i=0;i<t.length;i+=1)s.off(t[i],a)}if(e)for(i=0;i<t.length;i+=1)s.on(t[i],a);return this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){const e=this[0],t=e.getBoundingClientRect(),s=o.body,i=e.clientTop||s.clientTop||0,a=e.clientLeft||s.clientLeft||0,n=e===d?d.scrollY:e.scrollTop,r=e===d?d.scrollX:e.scrollLeft;return{top:t.top+n-i,left:t.left+r-a}}return null},css:function(e,t){let s;if(1===arguments.length){if("string"!=typeof e){for(s=0;s<this.length;s+=1)for(let t in e)this[s].style[t]=e[t];return this}if(this[0])return d.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(s=0;s<this.length;s+=1)this[s].style[e]=t;return this}return this},each:function(e){if(!e)return this;for(let t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=this[0];let s,i;if(!t||void 0===e)return!1;if("string"==typeof e){if(t.matches)return t.matches(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);for(s=c(e),i=0;i<s.length;i+=1)if(s[i]===t)return!0;return!1}if(e===o)return t===o;if(e===d)return t===d;if(e.nodeType||e instanceof p){for(s=e.nodeType?[e]:e,i=0;i<s.length;i+=1)if(s[i]===t)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;let s;return e>t-1?new p([]):e<0?(s=t+e,new p(s<0?[]:[this[s]])):new p([this[e]])},append:function(...e){let t;for(let s=0;s<e.length;s+=1){t=e[s];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const s=o.createElement("div");for(s.innerHTML=t;s.firstChild;)this[e].appendChild(s.firstChild)}else if(t instanceof p)for(let s=0;s<t.length;s+=1)this[e].appendChild(t[s]);else this[e].appendChild(t)}return this},prepend:function(e){let t,s;for(t=0;t<this.length;t+=1)if("string"==typeof e){const i=o.createElement("div");for(i.innerHTML=e,s=i.childNodes.length-1;s>=0;s-=1)this[t].insertBefore(i.childNodes[s],this[t].childNodes[0])}else if(e instanceof p)for(s=0;s<e.length;s+=1)this[t].insertBefore(e[s],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&c(this[0].nextElementSibling).is(e)?new p([this[0].nextElementSibling]):new p([]):this[0].nextElementSibling?new p([this[0].nextElementSibling]):new p([]):new p([])},nextAll:function(e){const t=[];let s=this[0];if(!s)return new p([]);for(;s.nextElementSibling;){const i=s.nextElementSibling;e?c(i).is(e)&&t.push(i):t.push(i),s=i}return new p(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&c(t.previousElementSibling).is(e)?new p([t.previousElementSibling]):new p([]):t.previousElementSibling?new p([t.previousElementSibling]):new p([])}return new p([])},prevAll:function(e){const t=[];let s=this[0];if(!s)return new p([]);for(;s.previousElementSibling;){const i=s.previousElementSibling;e?c(i).is(e)&&t.push(i):t.push(i),s=i}return new p(t)},parent:function(e){const t=[];for(let s=0;s<this.length;s+=1)null!==this[s].parentNode&&(e?c(this[s].parentNode).is(e)&&t.push(this[s].parentNode):t.push(this[s].parentNode));return c(h(t))},parents:function(e){const t=[];for(let s=0;s<this.length;s+=1){let i=this[s].parentNode;for(;i;)e?c(i).is(e)&&t.push(i):t.push(i),i=i.parentNode}return c(h(t))},closest:function(e){let t=this;return void 0===e?new p([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let s=0;s<this.length;s+=1){const i=this[s].querySelectorAll(e);for(let e=0;e<i.length;e+=1)t.push(i[e])}return new p(t)},children:function(e){const t=[];for(let s=0;s<this.length;s+=1){const i=this[s].childNodes;for(let s=0;s<i.length;s+=1)e?1===i[s].nodeType&&c(i[s]).is(e)&&t.push(i[s]):1===i[s].nodeType&&t.push(i[s])}return new p(h(t))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(...e){const t=this;let s,i;for(s=0;s<e.length;s+=1){const a=c(e[s]);for(i=0;i<a.length;i+=1)t[t.length]=a[i],t.length+=1}return t},styles:function(){return this[0]?d.getComputedStyle(this[0],null):{}}};Object.keys(u).forEach(e=>{c.fn[e]=c.fn[e]||u[e]});const m={deleteProps(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(s){}try{delete t[e]}catch(s){}})},nextTick:(e,t=0)=>setTimeout(e,t),now:()=>Date.now(),getTranslate(e,t="x"){let s,i,a;const n=d.getComputedStyle(e,null);return d.WebKitCSSMatrix?(i=n.transform||n.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new d.WebKitCSSMatrix("none"===i?"":i)):(a=n.MozTransform||n.OTransform||n.MsTransform||n.msTransform||n.transform||n.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=a.toString().split(",")),"x"===t&&(i=d.WebKitCSSMatrix?a.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(i=d.WebKitCSSMatrix?a.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),i||0},parseUrlQuery(e){const t={};let s,i,a,n,r=e||d.location.href;if("string"==typeof r&&r.length)for(r=r.indexOf("?")>-1?r.replace(/\S*\?/,""):"",i=r.split("&").filter(e=>""!==e),n=i.length,s=0;s<n;s+=1)a=i[s].replace(/#\S+/g,"").split("="),t[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a[1])||"";return t},isObject:e=>"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object,extend(...e){const t=Object(e[0]);for(let s=1;s<e.length;s+=1){const i=e[s];if(null!=i){const e=Object.keys(Object(i));for(let s=0,a=e.length;s<a;s+=1){const a=e[s],n=Object.getOwnPropertyDescriptor(i,a);void 0!==n&&n.enumerable&&(m.isObject(t[a])&&m.isObject(i[a])?m.extend(t[a],i[a]):!m.isObject(t[a])&&m.isObject(i[a])?(t[a]={},m.extend(t[a],i[a])):t[a]=i[a])}}}return t}},f=function(){const e=o.createElement("div");return{touch:d.Modernizr&&!0===d.Modernizr.touch||!!(d.navigator.maxTouchPoints>0||"ontouchstart"in d||d.DocumentTouch&&o instanceof d.DocumentTouch),pointerEvents:!!(d.navigator.pointerEnabled||d.PointerEvent||"maxTouchPoints"in d.navigator&&d.navigator.maxTouchPoints>0),prefixedPointerEvents:!!d.navigator.msPointerEnabled,transition:function(){const t=e.style;return"transition"in t||"webkitTransition"in t||"MozTransition"in t}(),transforms3d:d.Modernizr&&!0===d.Modernizr.csstransforms3d||function(){const t=e.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){const t=e.style,s="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" ");for(let e=0;e<s.length;e+=1)if(s[e]in t)return!0;return!1}(),observer:"MutationObserver"in d||"WebkitMutationObserver"in d,passiveListener:function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});d.addEventListener("testPassiveListener",null,t)}catch(t){}return e}(),gestures:"ongesturestart"in d}}(),g={isIE:!!d.navigator.userAgent.match(/Trident/g)||!!d.navigator.userAgent.match(/MSIE/g),isEdge:!!d.navigator.userAgent.match(/Edge/g),isSafari:function(){const e=d.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(d.navigator.userAgent)};class v{constructor(e={}){const t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach(e=>{t.on(e,t.params.on[e])})}on(e,t,s){const i=this;if("function"!=typeof t)return i;const a=s?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][a](t)}),i}once(e,t,s){const i=this;if("function"!=typeof t)return i;function a(...s){t.apply(i,s),i.off(e,a),a.f7proxy&&delete a.f7proxy}return a.f7proxy=t,i.on(e,a,s)}off(e,t){const s=this;return s.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].length&&s.eventsListeners[e].forEach((i,a)=>{(i===t||i.f7proxy&&i.f7proxy===t)&&s.eventsListeners[e].splice(a,1)})}),s):s}emit(...e){const t=this;if(!t.eventsListeners)return t;let s,i,a;"string"==typeof e[0]||Array.isArray(e[0])?(s=e[0],i=e.slice(1,e.length),a=t):(s=e[0].events,i=e[0].data,a=e[0].context||t);return(Array.isArray(s)?s:s.split(" ")).forEach(e=>{if(t.eventsListeners&&t.eventsListeners[e]){const s=[];t.eventsListeners[e].forEach(e=>{s.push(e)}),s.forEach(e=>{e.apply(a,i)})}}),t}useModulesParams(e){const t=this;t.modules&&Object.keys(t.modules).forEach(s=>{const i=t.modules[s];i.params&&m.extend(e,i.params)})}useModules(e={}){const t=this;t.modules&&Object.keys(t.modules).forEach(s=>{const i=t.modules[s],a=e[s]||{};i.instance&&Object.keys(i.instance).forEach(e=>{const s=i.instance[e];t[e]="function"==typeof s?s.bind(t):s}),i.on&&t.on&&Object.keys(i.on).forEach(e=>{t.on(e,i.on[e])}),i.create&&i.create.bind(t)(a)})}static set components(e){this.use&&this.use(e)}static installModule(e,...t){const s=this;s.prototype.modules||(s.prototype.modules={});const i=e.name||`${Object.keys(s.prototype.modules).length}_${m.now()}`;return s.prototype.modules[i]=e,e.proto&&Object.keys(e.proto).forEach(t=>{s.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(t=>{s[t]=e.static[t]}),e.install&&e.install.apply(s,t),s}static use(e,...t){const s=this;return Array.isArray(e)?(e.forEach(e=>s.installModule(e)),s):s.installModule(e,...t)}}var b={updateSize:function(){const e=this;let t,s;const i=e.$el;t=void 0!==e.params.width?e.params.width:i[0].clientWidth,s=void 0!==e.params.height?e.params.height:i[0].clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),s=s-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),m.extend(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this,t=e.params,{$wrapperEl:s,size:i,rtlTranslate:a,wrongRTL:n}=e,r=e.virtual&&t.virtual.enabled,l=r?e.virtual.slides.length:e.slides.length,o=s.children("."+e.params.slideClass),p=r?e.virtual.slides.length:o.length;let c=[];const h=[],u=[];let v=t.slidesOffsetBefore;"function"==typeof v&&(v=t.slidesOffsetBefore.call(e));let b=t.slidesOffsetAfter;"function"==typeof b&&(b=t.slidesOffsetAfter.call(e));const w=e.snapGrid.length,y=e.snapGrid.length;let x,T,E=t.spaceBetween,S=-v,C=0,$=0;if(void 0===i)return;"string"==typeof E&&E.indexOf("%")>=0&&(E=parseFloat(E.replace("%",""))/100*i),e.virtualSize=-E,a?o.css({marginLeft:"",marginTop:""}):o.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(x=Math.floor(p/t.slidesPerColumn)===p/e.params.slidesPerColumn?p:Math.ceil(p/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(x=Math.max(x,t.slidesPerView*t.slidesPerColumn)));const M=t.slidesPerColumn,P=x/M,k=Math.floor(p/t.slidesPerColumn);for(let m=0;m<p;m+=1){T=0;const s=o.eq(m);if(t.slidesPerColumn>1){let i,a,n;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)a=Math.floor(m/M),n=m-a*M,(a>k||a===k&&n===M-1)&&(n+=1,n>=M&&(n=0,a+=1));else{const e=Math.floor(m/t.slidesPerGroup);n=Math.floor(m/t.slidesPerView)-e*t.slidesPerColumn,a=m-n*t.slidesPerView-e*t.slidesPerView}i=a+n*x/M,s.css({"-webkit-box-ordinal-group":i,"-moz-box-ordinal-group":i,"-ms-flex-order":i,"-webkit-order":i,order:i})}else n=Math.floor(m/P),a=m-n*P;s.css("margin-"+(e.isHorizontal()?"top":"left"),0!==n&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",a).attr("data-swiper-row",n)}if("none"!==s.css("display")){if("auto"===t.slidesPerView){const i=d.getComputedStyle(s[0],null),a=s[0].style.transform,n=s[0].style.webkitTransform;if(a&&(s[0].style.transform="none"),n&&(s[0].style.webkitTransform="none"),t.roundLengths)T=e.isHorizontal()?s.outerWidth(!0):s.outerHeight(!0);else if(e.isHorizontal()){const e=parseFloat(i.getPropertyValue("width")),t=parseFloat(i.getPropertyValue("padding-left")),s=parseFloat(i.getPropertyValue("padding-right")),a=parseFloat(i.getPropertyValue("margin-left")),n=parseFloat(i.getPropertyValue("margin-right")),r=i.getPropertyValue("box-sizing");T=r&&"border-box"===r&&!g.isIE?e+a+n:e+t+s+a+n}else{const e=parseFloat(i.getPropertyValue("height")),t=parseFloat(i.getPropertyValue("padding-top")),s=parseFloat(i.getPropertyValue("padding-bottom")),a=parseFloat(i.getPropertyValue("margin-top")),n=parseFloat(i.getPropertyValue("margin-bottom")),r=i.getPropertyValue("box-sizing");T=r&&"border-box"===r&&!g.isIE?e+a+n:e+t+s+a+n}a&&(s[0].style.transform=a),n&&(s[0].style.webkitTransform=n),t.roundLengths&&(T=Math.floor(T))}else T=(i-(t.slidesPerView-1)*E)/t.slidesPerView,t.roundLengths&&(T=Math.floor(T)),o[m]&&(e.isHorizontal()?o[m].style.width=T+"px":o[m].style.height=T+"px");o[m]&&(o[m].swiperSlideSize=T),u.push(T),t.centeredSlides?(S=S+T/2+C/2+E,0===C&&0!==m&&(S=S-i/2-E),0===m&&(S=S-i/2-E),Math.abs(S)<.001&&(S=0),t.roundLengths&&(S=Math.floor(S)),$%t.slidesPerGroup==0&&c.push(S),h.push(S)):(t.roundLengths&&(S=Math.floor(S)),$%t.slidesPerGroup==0&&c.push(S),h.push(S),S=S+T+E),e.virtualSize+=T+E,C=T,$+=1}}let z;if(e.virtualSize=Math.max(e.virtualSize,i)+b,a&&n&&("slide"===t.effect||"coverflow"===t.effect)&&s.css({width:e.virtualSize+t.spaceBetween+"px"}),f.flexbox&&!t.setWrapperSize||(e.isHorizontal()?s.css({width:e.virtualSize+t.spaceBetween+"px"}):s.css({height:e.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(e.virtualSize=(T+t.spaceBetween)*x,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?s.css({width:e.virtualSize+t.spaceBetween+"px"}):s.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){z=[];for(let s=0;s<c.length;s+=1){let i=c[s];t.roundLengths&&(i=Math.floor(i)),c[s]<e.virtualSize+c[0]&&z.push(i)}c=z}if(!t.centeredSlides){z=[];for(let s=0;s<c.length;s+=1){let a=c[s];t.roundLengths&&(a=Math.floor(a)),c[s]<=e.virtualSize-i&&z.push(a)}c=z,Math.floor(e.virtualSize-i)-Math.floor(c[c.length-1])>1&&c.push(e.virtualSize-i)}if(0===c.length&&(c=[0]),0!==t.spaceBetween&&(e.isHorizontal()?a?o.css({marginLeft:E+"px"}):o.css({marginRight:E+"px"}):o.css({marginBottom:E+"px"})),t.centerInsufficientSlides){let e=0;if(u.forEach(s=>{e+=s+(t.spaceBetween?t.spaceBetween:0)}),e-=t.spaceBetween,e<i){const t=(i-e)/2;c.forEach((e,s)=>{c[s]=e-t}),h.forEach((e,s)=>{h[s]=e+t})}}m.extend(e,{slides:o,snapGrid:c,slidesGrid:h,slidesSizesGrid:u}),p!==l&&e.emit("slidesLengthChange"),c.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==y&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()},updateAutoHeight:function(e){const t=this,s=[];let i,a=0;if("number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed),"auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length)break;s.push(t.slides.eq(e)[0])}else s.push(t.slides.eq(t.activeIndex)[0]);for(i=0;i<s.length;i+=1)if(void 0!==s[i]){const e=s[i].offsetHeight;a=e>a?e:a}a&&t.$wrapperEl.css("height",a+"px")},updateSlidesOffset:function(){const e=this,t=e.slides;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,s=t.params,{slides:i,rtlTranslate:a}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;a&&(n=e),i.removeClass(s.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let r=0;r<i.length;r+=1){const e=i[r],l=(n+(s.centeredSlides?t.minTranslate():0)-e.swiperSlideOffset)/(e.swiperSlideSize+s.spaceBetween);if(s.watchSlidesVisibility){const a=-(n-e.swiperSlideOffset),l=a+t.slidesSizesGrid[r];(a>=0&&a<t.size-1||l>1&&l<=t.size||a<=0&&l>=t.size)&&(t.visibleSlides.push(e),t.visibleSlidesIndexes.push(r),i.eq(r).addClass(s.slideVisibleClass))}e.progress=a?-l:l}t.visibleSlides=c(t.visibleSlides)},updateProgress:function(e=this&&this.translate||0){const t=this,s=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:n,isEnd:r}=t;const l=n,o=r;0===i?(a=0,n=!0,r=!0):(a=(e-t.minTranslate())/i,n=a<=0,r=a>=1),m.extend(t,{progress:a,isBeginning:n,isEnd:r}),(s.watchSlidesProgress||s.watchSlidesVisibility)&&t.updateSlidesProgress(e),n&&!l&&t.emit("reachBeginning toEdge"),r&&!o&&t.emit("reachEnd toEdge"),(l&&!n||o&&!r)&&t.emit("fromEdge"),t.emit("progress",a)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,$wrapperEl:i,activeIndex:a,realIndex:n}=e,r=e.virtual&&s.virtual.enabled;let l;t.removeClass(`${s.slideActiveClass} ${s.slideNextClass} ${s.slidePrevClass} ${s.slideDuplicateActiveClass} ${s.slideDuplicateNextClass} ${s.slideDuplicatePrevClass}`),l=r?e.$wrapperEl.find(`.${s.slideClass}[data-swiper-slide-index="${a}"]`):t.eq(a),l.addClass(s.slideActiveClass),s.loop&&(l.hasClass(s.slideDuplicateClass)?i.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${n}"]`).addClass(s.slideDuplicateActiveClass):i.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${n}"]`).addClass(s.slideDuplicateActiveClass));let o=l.nextAll("."+s.slideClass).eq(0).addClass(s.slideNextClass);s.loop&&0===o.length&&(o=t.eq(0),o.addClass(s.slideNextClass));let d=l.prevAll("."+s.slideClass).eq(0).addClass(s.slidePrevClass);s.loop&&0===d.length&&(d=t.eq(-1),d.addClass(s.slidePrevClass)),s.loop&&(o.hasClass(s.slideDuplicateClass)?i.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass):i.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass),d.hasClass(s.slideDuplicateClass)?i.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass):i.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass))},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:i,snapGrid:a,params:n,activeIndex:r,realIndex:l,snapIndex:o}=t;let d,p=e;if(void 0===p){for(let e=0;e<i.length;e+=1)void 0!==i[e+1]?s>=i[e]&&s<i[e+1]-(i[e+1]-i[e])/2?p=e:s>=i[e]&&s<i[e+1]&&(p=e+1):s>=i[e]&&(p=e);n.normalizeSlideIndex&&(p<0||void 0===p)&&(p=0)}if(d=a.indexOf(s)>=0?a.indexOf(s):Math.floor(p/n.slidesPerGroup),d>=a.length&&(d=a.length-1),p===r)return void(d!==o&&(t.snapIndex=d,t.emit("snapIndexChange")));const c=parseInt(t.slides.eq(p).attr("data-swiper-slide-index")||p,10);m.extend(t,{snapIndex:d,realIndex:c,previousIndex:r,activeIndex:p}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==c&&t.emit("realIndexChange"),(t.initialized||t.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,s=t.params,i=c(e.target).closest("."+s.slideClass)[0];let a=!1;if(i)for(let n=0;n<t.slides.length;n+=1)t.slides[n]===i&&(a=!0);if(!i||!a)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(c(i).attr("data-swiper-slide-index"),10):t.clickedIndex=c(i).index(),s.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var w={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:s,translate:i,$wrapperEl:a}=this;if(t.virtualTranslate)return s?-i:i;let n=m.getTranslate(a[0],e);return s&&(n=-n),n||0},setTranslate:function(e,t){const s=this,{rtlTranslate:i,params:a,$wrapperEl:n,progress:r}=s;let l,o=0,d=0;s.isHorizontal()?o=i?-e:e:d=e,a.roundLengths&&(o=Math.floor(o),d=Math.floor(d)),a.virtualTranslate||(f.transforms3d?n.transform(`translate3d(${o}px, ${d}px, 0px)`):n.transform(`translate(${o}px, ${d}px)`)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?o:d;const p=s.maxTranslate()-s.minTranslate();l=0===p?0:(e-s.minTranslate())/p,l!==r&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var y={setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const s=this,{activeIndex:i,params:a,previousIndex:n}=s;a.autoHeight&&s.updateAutoHeight();let r=t;if(r||(r=i>n?"next":i<n?"prev":"reset"),s.emit("transitionStart"),e&&i!==n){if("reset"===r)return void s.emit("slideResetTransitionStart");s.emit("slideChangeTransitionStart"),"next"===r?s.emit("slideNextTransitionStart"):s.emit("slidePrevTransitionStart")}},transitionEnd:function(e=!0,t){const s=this,{activeIndex:i,previousIndex:a}=s;s.animating=!1,s.setTransition(0);let n=t;if(n||(n=i>a?"next":i<a?"prev":"reset"),s.emit("transitionEnd"),e&&i!==a){if("reset"===n)return void s.emit("slideResetTransitionEnd");s.emit("slideChangeTransitionEnd"),"next"===n?s.emit("slideNextTransitionEnd"):s.emit("slidePrevTransitionEnd")}}};var x={slideTo:function(e=0,t=this.params.speed,s=!0,i){const a=this;let n=e;n<0&&(n=0);const{params:r,snapGrid:l,slidesGrid:o,previousIndex:d,activeIndex:p,rtlTranslate:c}=a;if(a.animating&&r.preventInteractionOnTransition)return!1;let h=Math.floor(n/r.slidesPerGroup);h>=l.length&&(h=l.length-1),(p||r.initialSlide||0)===(d||0)&&s&&a.emit("beforeSlideChangeStart");const u=-l[h];if(a.updateProgress(u),r.normalizeSlideIndex)for(let f=0;f<o.length;f+=1)-Math.floor(100*u)>=Math.floor(100*o[f])&&(n=f);if(a.initialized&&n!==p){if(!a.allowSlideNext&&u<a.translate&&u<a.minTranslate())return!1;if(!a.allowSlidePrev&&u>a.translate&&u>a.maxTranslate()&&(p||0)!==n)return!1}let m;return m=n>p?"next":n<p?"prev":"reset",c&&-u===a.translate||!c&&u===a.translate?(a.updateActiveIndex(n),r.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==r.effect&&a.setTranslate(u),"reset"!==m&&(a.transitionStart(s,m),a.transitionEnd(s,m)),!1):(0!==t&&f.transition?(a.setTransition(t),a.setTranslate(u),a.updateActiveIndex(n),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,i),a.transitionStart(s,m),a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(s,m))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd))):(a.setTransition(0),a.setTranslate(u),a.updateActiveIndex(n),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,i),a.transitionStart(s,m),a.transitionEnd(s,m)),!0)},slideToLoop:function(e=0,t=this.params.speed,s=!0,i){const a=this;let n=e;return a.params.loop&&(n+=a.loopedSlides),a.slideTo(n,t,s,i)},slideNext:function(e=this.params.speed,t=!0,s){const i=this,{params:a,animating:n}=i;return a.loop?!n&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,i.slideTo(i.activeIndex+a.slidesPerGroup,e,t,s)):i.slideTo(i.activeIndex+a.slidesPerGroup,e,t,s)},slidePrev:function(e=this.params.speed,t=!0,s){const i=this,{params:a,animating:n,snapGrid:r,slidesGrid:l,rtlTranslate:o}=i;if(a.loop){if(n)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=d(o?i.translate:-i.translate),c=r.map(e=>d(e)),h=(l.map(e=>d(e)),r[c.indexOf(p)],r[c.indexOf(p)-1]);let u;return void 0!==h&&(u=l.indexOf(h),u<0&&(u=i.activeIndex-1)),i.slideTo(u,e,t,s)},slideReset:function(e=this.params.speed,t=!0,s){return this.slideTo(this.activeIndex,e,t,s)},slideToClosest:function(e=this.params.speed,t=!0,s){const i=this;let a=i.activeIndex;const n=Math.floor(a/i.params.slidesPerGroup);if(n<i.snapGrid.length-1){const e=i.rtlTranslate?i.translate:-i.translate,t=i.snapGrid[n];e-t>(i.snapGrid[n+1]-t)/2&&(a=i.params.slidesPerGroup)}return i.slideTo(a,e,t,s)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:s}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let a,n=e.clickedIndex;if(t.loop){if(e.animating)return;a=parseInt(c(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?n<e.loopedSlides-i/2||n>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),n=s.children(`.${t.slideClass}[data-swiper-slide-index="${a}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),m.nextTick(()=>{e.slideTo(n)})):e.slideTo(n):n>e.slides.length-i?(e.loopFix(),n=s.children(`.${t.slideClass}[data-swiper-slide-index="${a}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),m.nextTick(()=>{e.slideTo(n)})):e.slideTo(n)}else e.slideTo(n)}};var T={loopCreate:function(){const e=this,{params:t,$wrapperEl:s}=e;s.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let i=s.children("."+t.slideClass);if(t.loopFillGroupWithBlank){const e=t.slidesPerGroup-i.length%t.slidesPerGroup;if(e!==t.slidesPerGroup){for(let i=0;i<e;i+=1){const e=c(o.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);s.append(e)}i=s.children("."+t.slideClass)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=i.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>i.length&&(e.loopedSlides=i.length);const a=[],n=[];i.each((t,s)=>{const r=c(s);t<e.loopedSlides&&n.push(s),t<i.length&&t>=i.length-e.loopedSlides&&a.push(s),r.attr("data-swiper-slide-index",t)});for(let r=0;r<n.length;r+=1)s.append(c(n[r].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let r=a.length-1;r>=0;r-=1)s.prepend(c(a[r].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){const e=this,{params:t,activeIndex:s,slides:i,loopedSlides:a,allowSlidePrev:n,allowSlideNext:r,snapGrid:l,rtlTranslate:o}=e;let d;e.allowSlidePrev=!0,e.allowSlideNext=!0;const p=-l[s]-e.getTranslate();if(s<a){d=i.length-3*a+s,d+=a;e.slideTo(d,0,!1,!0)&&0!==p&&e.setTranslate((o?-e.translate:e.translate)-p)}else if("auto"===t.slidesPerView&&s>=2*a||s>=i.length-a){d=-i.length+s+a,d+=a;e.slideTo(d,0,!1,!0)&&0!==p&&e.setTranslate((o?-e.translate:e.translate)-p)}e.allowSlidePrev=n,e.allowSlideNext=r},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:s}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),s.removeAttr("data-swiper-slide-index")}};var E={setGrabCursor:function(e){if(f.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)return;const t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){f.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}};var S={appendSlide:function(e){const t=this,{$wrapperEl:s,params:i}=t;if(i.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let a=0;a<e.length;a+=1)e[a]&&s.append(e[a]);else s.append(e);i.loop&&t.loopCreate(),i.observer&&f.observer||t.update()},prependSlide:function(e){const t=this,{params:s,$wrapperEl:i,activeIndex:a}=t;s.loop&&t.loopDestroy();let n=a+1;if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&i.prepend(e[t]);n=a+e.length}else i.prepend(e);s.loop&&t.loopCreate(),s.observer&&f.observer||t.update(),t.slideTo(n,0,!1)},addSlide:function(e,t){const s=this,{$wrapperEl:i,params:a,activeIndex:n}=s;let r=n;a.loop&&(r-=s.loopedSlides,s.loopDestroy(),s.slides=i.children("."+a.slideClass));const l=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=l)return void s.appendSlide(t);let o=r>e?r+1:r;const d=[];for(let p=l-1;p>=e;p-=1){const e=s.slides.eq(p);e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&i.append(t[e]);o=r>e?r+t.length:r}else i.append(t);for(let p=0;p<d.length;p+=1)i.append(d[p]);a.loop&&s.loopCreate(),a.observer&&f.observer||s.update(),a.loop?s.slideTo(o+s.loopedSlides,0,!1):s.slideTo(o,0,!1)},removeSlide:function(e){const t=this,{params:s,$wrapperEl:i,activeIndex:a}=t;let n=a;s.loop&&(n-=t.loopedSlides,t.loopDestroy(),t.slides=i.children("."+s.slideClass));let r,l=n;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)r=e[s],t.slides[r]&&t.slides.eq(r).remove(),r<l&&(l-=1);l=Math.max(l,0)}else r=e,t.slides[r]&&t.slides.eq(r).remove(),r<l&&(l-=1),l=Math.max(l,0);s.loop&&t.loopCreate(),s.observer&&f.observer||t.update(),s.loop?t.slideTo(l+t.loopedSlides,0,!1):t.slideTo(l,0,!1)},removeAllSlides:function(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}};const C=function(){const e=d.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:d.cordova||d.phonegap,phonegap:d.cordova||d.phonegap},s=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),i=e.match(/(Android);?[\s\/]+([\d.]+)?/),a=e.match(/(iPad).*OS\s([\d_]+)/),n=e.match(/(iPod)(.*OS\s([\d_]+))?/),r=!a&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(s&&(t.os="windows",t.osVersion=s[2],t.windows=!0),i&&!s&&(t.os="android",t.osVersion=i[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(a||r||n)&&(t.os="ios",t.ios=!0),r&&!n&&(t.osVersion=r[2].replace(/_/g,"."),t.iphone=!0),a&&(t.osVersion=a[2].replace(/_/g,"."),t.ipad=!0),n&&(t.osVersion=n[3]?n[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(r||a||n)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){const e=t.osVersion.split("."),s=o.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(n||r)&&(1*e[0]==7?1*e[1]>=1:1*e[0]>7)&&s&&s.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=d.devicePixelRatio||1,t}();function $(e){const t=this,s=t.touchEventsData,{params:i,touches:a}=t;if(t.animating&&i.preventInteractionOnTransition)return;let n=e;if(n.originalEvent&&(n=n.originalEvent),s.isTouchEvent="touchstart"===n.type,!s.isTouchEvent&&"which"in n&&3===n.which)return;if(!s.isTouchEvent&&"button"in n&&n.button>0)return;if(s.isTouched&&s.isMoved)return;if(i.noSwiping&&c(n.target).closest(i.noSwipingSelector?i.noSwipingSelector:"."+i.noSwipingClass)[0])return void(t.allowClick=!0);if(i.swipeHandler&&!c(n).closest(i.swipeHandler)[0])return;a.currentX="touchstart"===n.type?n.targetTouches[0].pageX:n.pageX,a.currentY="touchstart"===n.type?n.targetTouches[0].pageY:n.pageY;const r=a.currentX,l=a.currentY,p=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,h=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(!p||!(r<=h||r>=d.screen.width-h)){if(m.extend(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=r,a.startY=l,s.touchStartTime=m.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(s.allowThresholdMove=!1),"touchstart"!==n.type){let e=!0;c(n.target).is(s.formElements)&&(e=!1),o.activeElement&&c(o.activeElement).is(s.formElements)&&o.activeElement!==n.target&&o.activeElement.blur();const a=e&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||a)&&n.preventDefault()}t.emit("touchStart",n)}}function M(e){const t=this,s=t.touchEventsData,{params:i,touches:a,rtlTranslate:n}=t;let r=e;if(r.originalEvent&&(r=r.originalEvent)
|
|