diff --git a/wp-includes/blocks/social-link.php b/wp-includes/blocks/social-link.php deleted file mode 100644 index 4d04c9cd1c..0000000000 --- a/wp-includes/blocks/social-link.php +++ /dev/null @@ -1,227 +0,0 @@ - ' . $icon . ''; -} - -/** - * Registers the `core/social-link` blocks. - */ -function register_block_core_social_link() { - $sites = array( - 'amazon', - 'bandcamp', - 'behance', - 'chain', - 'codepen', - 'deviantart', - 'dribbble', - 'dropbox', - 'etsy', - 'facebook', - 'feed', - 'fivehundredpx', - 'flickr', - 'foursquare', - 'goodreads', - 'google', - 'github', - 'instagram', - 'lastfm', - 'linkedin', - 'mail', - 'mastodon', - 'meetup', - 'medium', - 'pinterest', - 'pocket', - 'reddit', - 'skype', - 'snapchat', - 'soundcloud', - 'spotify', - 'tumblr', - 'twitch', - 'twitter', - 'vimeo', - 'vk', - 'wordpress', - 'yelp', - 'youtube', - ); - - foreach ( $sites as $site ) { - register_block_type( - 'core/social-link-' . $site, - array( - 'attributes' => array( - 'url' => array( - 'type' => 'string', - ), - 'site' => array( - 'type' => 'string', - 'default' => $site, - ), - ), - 'render_callback' => 'render_core_social_link', - ) - ); - } -} -add_action( 'init', 'register_block_core_social_link' ); - - -/** - * Returns the SVG for social link. - * - * @param string $site The site icon. - * - * @return string SVG Element for site icon. - */ -function core_social_link_get_icon( $site ) { - switch ( $site ) { - - case 'fivehundredpx': - return ''; - - case 'amazon': - return ''; - - case 'bandcamp': - return ''; - - case 'behance': - return ''; - - case 'chain': - return ''; - - case 'codepen': - return ''; - - case 'deviantart': - return ''; - - case 'dribbble': - return ''; - - case 'dropbox': - return ''; - - case 'etsy': - return ''; - - case 'facebook': - return ''; - - case 'feed': - return ''; - - case 'flickr': - return ''; - - case 'foursquare': - return ''; - - case 'goodreads': - return ''; - - case 'google': - return ''; - - case 'github': - return ''; - - case 'instagram': - return ''; - - case 'lastfm': - return ''; - - case 'linkedin': - return ''; - - case 'mail': - return ''; - - case 'mastodon': - return ''; - - case 'meetup': - return ''; - - case 'medium': - return ''; - - case 'pinterest': - return ''; - - case 'pocket': - return ''; - - case 'reddit': - return ''; - - case 'skype': - return ''; - - case 'snapchat': - return ''; - - case 'soundcloud': - return ''; - - case 'spotify': - return ''; - - case 'tumblr': - return ''; - - case 'twitch': - return ''; - - case 'twitter': - return ''; - - case 'vimeo': - return ''; - - case 'vk': - return ''; - - // phpcs:disable WordPress.WP.CapitalPDangit.Misspelled - case 'wordpress': - return ''; - - case 'yelp': - return ''; - - case 'youtube': - return ''; - - case 'share': - default: - return ''; - } -} diff --git a/wp-includes/js/dist/a11y.js b/wp-includes/js/dist/a11y.js index b7d140fc16..385c9e0244 100644 --- a/wp-includes/js/dist/a11y.js +++ b/wp-includes/js/dist/a11y.js @@ -82,26 +82,26 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 406); +/******/ return __webpack_require__(__webpack_require__.s = 334); /******/ }) /************************************************************************/ /******/ ({ -/***/ 225: +/***/ 194: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["domReady"]; }()); /***/ }), -/***/ 406: +/***/ 334: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: external {"this":["wp","domReady"]} -var external_this_wp_domReady_ = __webpack_require__(225); +var external_this_wp_domReady_ = __webpack_require__(194); var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_); // CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/addContainer.js diff --git a/wp-includes/js/dist/a11y.min.js b/wp-includes/js/dist/a11y.min.js index 58487bdf9f..772022932e 100644 --- a/wp-includes/js/dist/a11y.min.js +++ b/wp-includes/js/dist/a11y.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.a11y=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=406)}({225:function(e,t){!function(){e.exports=this.wp.domReady}()},406:function(e,t,n){"use strict";n.r(t);var r=n(225),o=n.n(r),i=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t},a=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t]+>/g," "),u===e&&(e+=" "),u=e,e};n.d(t,"setup",(function(){return p})),n.d(t,"speak",(function(){return c}));var p=function(){var e=document.getElementById("a11y-speak-polite"),t=document.getElementById("a11y-speak-assertive");null===e&&(e=i("polite")),null===t&&(t=i("assertive"))};o()(p);var c=function(e,t){a(),e=l(e);var n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive");r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.a11y=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=334)}({194:function(e,t){!function(){e.exports=this.wp.domReady}()},334:function(e,t,n){"use strict";n.r(t);var r=n(194),o=n.n(r),i=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t},a=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t]+>/g," "),u===e&&(e+=" "),u=e,e};n.d(t,"setup",(function(){return p})),n.d(t,"speak",(function(){return c}));var p=function(){var e=document.getElementById("a11y-speak-polite"),t=document.getElementById("a11y-speak-assertive");null===e&&(e=i("polite")),null===t&&(t=i("assertive"))};o()(p);var c=function(e,t){a(),e=l(e);var n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive");r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/annotations.js b/wp-includes/js/dist/annotations.js index 302ef9e5e0..ff2eff6253 100644 --- a/wp-includes/js/dist/annotations.js +++ b/wp-includes/js/dist/annotations.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 394); +/******/ return __webpack_require__(__webpack_require__.s = 325); /******/ }) /************************************************************************/ /******/ ({ @@ -225,289 +225,7 @@ function _iterableToArray(iter) { /***/ }), -/***/ 36: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - - -var LEAF_KEY, hasWeakMap; - -/** - * Arbitrary value used as key for referencing cache object in WeakMap tree. - * - * @type {Object} - */ -LEAF_KEY = {}; - -/** - * Whether environment supports WeakMap. - * - * @type {boolean} - */ -hasWeakMap = typeof WeakMap !== 'undefined'; - -/** - * Returns the first argument as the sole entry in an array. - * - * @param {*} value Value to return. - * - * @return {Array} Value returned as entry in array. - */ -function arrayOf( value ) { - return [ value ]; -} - -/** - * Returns true if the value passed is object-like, or false otherwise. A value - * is object-like if it can support property assignment, e.g. object or array. - * - * @param {*} value Value to test. - * - * @return {boolean} Whether value is object-like. - */ -function isObjectLike( value ) { - return !! value && 'object' === typeof value; -} - -/** - * Creates and returns a new cache object. - * - * @return {Object} Cache object. - */ -function createCache() { - var cache = { - clear: function() { - cache.head = null; - }, - }; - - return cache; -} - -/** - * Returns true if entries within the two arrays are strictly equal by - * reference from a starting index. - * - * @param {Array} a First array. - * @param {Array} b Second array. - * @param {number} fromIndex Index from which to start comparison. - * - * @return {boolean} Whether arrays are shallowly equal. - */ -function isShallowEqual( a, b, fromIndex ) { - var i; - - if ( a.length !== b.length ) { - return false; - } - - for ( i = fromIndex; i < a.length; i++ ) { - if ( a[ i ] !== b[ i ] ) { - return false; - } - } - - return true; -} - -/** - * Returns a memoized selector function. The getDependants function argument is - * called before the memoized selector and is expected to return an immutable - * reference or array of references on which the selector depends for computing - * its own return value. The memoize cache is preserved only as long as those - * dependant references remain the same. If getDependants returns a different - * reference(s), the cache is cleared and the selector value regenerated. - * - * @param {Function} selector Selector function. - * @param {Function} getDependants Dependant getter returning an immutable - * reference or array of reference used in - * cache bust consideration. - * - * @return {Function} Memoized selector. - */ -/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { - var rootCache, getCache; - - // Use object source as dependant if getter not provided - if ( ! getDependants ) { - getDependants = arrayOf; - } - - /** - * Returns the root cache. If WeakMap is supported, this is assigned to the - * root WeakMap cache set, otherwise it is a shared instance of the default - * cache object. - * - * @return {(WeakMap|Object)} Root cache object. - */ - function getRootCache() { - return rootCache; - } - - /** - * Returns the cache for a given dependants array. When possible, a WeakMap - * will be used to create a unique cache for each set of dependants. This - * is feasible due to the nature of WeakMap in allowing garbage collection - * to occur on entries where the key object is no longer referenced. Since - * WeakMap requires the key to be an object, this is only possible when the - * dependant is object-like. The root cache is created as a hierarchy where - * each top-level key is the first entry in a dependants set, the value a - * WeakMap where each key is the next dependant, and so on. This continues - * so long as the dependants are object-like. If no dependants are object- - * like, then the cache is shared across all invocations. - * - * @see isObjectLike - * - * @param {Array} dependants Selector dependants. - * - * @return {Object} Cache object. - */ - function getWeakMapCache( dependants ) { - var caches = rootCache, - isUniqueByDependants = true, - i, dependant, map, cache; - - for ( i = 0; i < dependants.length; i++ ) { - dependant = dependants[ i ]; - - // Can only compose WeakMap from object-like key. - if ( ! isObjectLike( dependant ) ) { - isUniqueByDependants = false; - break; - } - - // Does current segment of cache already have a WeakMap? - if ( caches.has( dependant ) ) { - // Traverse into nested WeakMap. - caches = caches.get( dependant ); - } else { - // Create, set, and traverse into a new one. - map = new WeakMap(); - caches.set( dependant, map ); - caches = map; - } - } - - // We use an arbitrary (but consistent) object as key for the last item - // in the WeakMap to serve as our running cache. - if ( ! caches.has( LEAF_KEY ) ) { - cache = createCache(); - cache.isUniqueByDependants = isUniqueByDependants; - caches.set( LEAF_KEY, cache ); - } - - return caches.get( LEAF_KEY ); - } - - // Assign cache handler by availability of WeakMap - getCache = hasWeakMap ? getWeakMapCache : getRootCache; - - /** - * Resets root memoization cache. - */ - function clear() { - rootCache = hasWeakMap ? new WeakMap() : createCache(); - } - - // eslint-disable-next-line jsdoc/check-param-names - /** - * The augmented selector call, considering first whether dependants have - * changed before passing it to underlying memoize function. - * - * @param {Object} source Source object for derivation. - * @param {...*} extraArgs Additional arguments to pass to selector. - * - * @return {*} Selector result. - */ - function callSelector( /* source, ...extraArgs */ ) { - var len = arguments.length, - cache, node, i, args, dependants; - - // Create copy of arguments (avoid leaking deoptimization). - args = new Array( len ); - for ( i = 0; i < len; i++ ) { - args[ i ] = arguments[ i ]; - } - - dependants = getDependants.apply( null, args ); - cache = getCache( dependants ); - - // If not guaranteed uniqueness by dependants (primitive type or lack - // of WeakMap support), shallow compare against last dependants and, if - // references have changed, destroy cache to recalculate result. - if ( ! cache.isUniqueByDependants ) { - if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { - cache.clear(); - } - - cache.lastDependants = dependants; - } - - node = cache.head; - while ( node ) { - // Check whether node arguments match arguments - if ( ! isShallowEqual( node.args, args, 1 ) ) { - node = node.next; - continue; - } - - // At this point we can assume we've found a match - - // Surface matched node to head if not already - if ( node !== cache.head ) { - // Adjust siblings to point to each other. - node.prev.next = node.next; - if ( node.next ) { - node.next.prev = node.prev; - } - - node.next = cache.head; - node.prev = null; - cache.head.prev = node; - cache.head = node; - } - - // Return immediately - return node.val; - } - - // No cached value found. Continue to insertion phase: - - node = { - // Generate the result from original function - val: selector.apply( null, args ), - }; - - // Avoid including the source object in the cache. - args[ 0 ] = null; - node.args = args; - - // Don't need to check whether node is already head, since it would - // have been returned above already if it was - - // Shift existing head down list - if ( cache.head ) { - cache.head.prev = node; - node.next = cache.head; - } - - cache.head = node; - - return node.val; - } - - callSelector.getDependants = getDependants; - callSelector.clear = clear; - clear(); - - return callSelector; -}); - - -/***/ }), - -/***/ 394: +/***/ 325: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -729,7 +447,7 @@ function __experimentalGetAnnotations(state) { } // EXTERNAL MODULE: ./node_modules/uuid/v4.js -var v4 = __webpack_require__(70); +var v4 = __webpack_require__(64); var v4_default = /*#__PURE__*/__webpack_require__.n(v4); // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/actions.js @@ -1095,6 +813,288 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/anno +/***/ }), + +/***/ 36: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + + +var LEAF_KEY, hasWeakMap; + +/** + * Arbitrary value used as key for referencing cache object in WeakMap tree. + * + * @type {Object} + */ +LEAF_KEY = {}; + +/** + * Whether environment supports WeakMap. + * + * @type {boolean} + */ +hasWeakMap = typeof WeakMap !== 'undefined'; + +/** + * Returns the first argument as the sole entry in an array. + * + * @param {*} value Value to return. + * + * @return {Array} Value returned as entry in array. + */ +function arrayOf( value ) { + return [ value ]; +} + +/** + * Returns true if the value passed is object-like, or false otherwise. A value + * is object-like if it can support property assignment, e.g. object or array. + * + * @param {*} value Value to test. + * + * @return {boolean} Whether value is object-like. + */ +function isObjectLike( value ) { + return !! value && 'object' === typeof value; +} + +/** + * Creates and returns a new cache object. + * + * @return {Object} Cache object. + */ +function createCache() { + var cache = { + clear: function() { + cache.head = null; + }, + }; + + return cache; +} + +/** + * Returns true if entries within the two arrays are strictly equal by + * reference from a starting index. + * + * @param {Array} a First array. + * @param {Array} b Second array. + * @param {number} fromIndex Index from which to start comparison. + * + * @return {boolean} Whether arrays are shallowly equal. + */ +function isShallowEqual( a, b, fromIndex ) { + var i; + + if ( a.length !== b.length ) { + return false; + } + + for ( i = fromIndex; i < a.length; i++ ) { + if ( a[ i ] !== b[ i ] ) { + return false; + } + } + + return true; +} + +/** + * Returns a memoized selector function. The getDependants function argument is + * called before the memoized selector and is expected to return an immutable + * reference or array of references on which the selector depends for computing + * its own return value. The memoize cache is preserved only as long as those + * dependant references remain the same. If getDependants returns a different + * reference(s), the cache is cleared and the selector value regenerated. + * + * @param {Function} selector Selector function. + * @param {Function} getDependants Dependant getter returning an immutable + * reference or array of reference used in + * cache bust consideration. + * + * @return {Function} Memoized selector. + */ +/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { + var rootCache, getCache; + + // Use object source as dependant if getter not provided + if ( ! getDependants ) { + getDependants = arrayOf; + } + + /** + * Returns the root cache. If WeakMap is supported, this is assigned to the + * root WeakMap cache set, otherwise it is a shared instance of the default + * cache object. + * + * @return {(WeakMap|Object)} Root cache object. + */ + function getRootCache() { + return rootCache; + } + + /** + * Returns the cache for a given dependants array. When possible, a WeakMap + * will be used to create a unique cache for each set of dependants. This + * is feasible due to the nature of WeakMap in allowing garbage collection + * to occur on entries where the key object is no longer referenced. Since + * WeakMap requires the key to be an object, this is only possible when the + * dependant is object-like. The root cache is created as a hierarchy where + * each top-level key is the first entry in a dependants set, the value a + * WeakMap where each key is the next dependant, and so on. This continues + * so long as the dependants are object-like. If no dependants are object- + * like, then the cache is shared across all invocations. + * + * @see isObjectLike + * + * @param {Array} dependants Selector dependants. + * + * @return {Object} Cache object. + */ + function getWeakMapCache( dependants ) { + var caches = rootCache, + isUniqueByDependants = true, + i, dependant, map, cache; + + for ( i = 0; i < dependants.length; i++ ) { + dependant = dependants[ i ]; + + // Can only compose WeakMap from object-like key. + if ( ! isObjectLike( dependant ) ) { + isUniqueByDependants = false; + break; + } + + // Does current segment of cache already have a WeakMap? + if ( caches.has( dependant ) ) { + // Traverse into nested WeakMap. + caches = caches.get( dependant ); + } else { + // Create, set, and traverse into a new one. + map = new WeakMap(); + caches.set( dependant, map ); + caches = map; + } + } + + // We use an arbitrary (but consistent) object as key for the last item + // in the WeakMap to serve as our running cache. + if ( ! caches.has( LEAF_KEY ) ) { + cache = createCache(); + cache.isUniqueByDependants = isUniqueByDependants; + caches.set( LEAF_KEY, cache ); + } + + return caches.get( LEAF_KEY ); + } + + // Assign cache handler by availability of WeakMap + getCache = hasWeakMap ? getWeakMapCache : getRootCache; + + /** + * Resets root memoization cache. + */ + function clear() { + rootCache = hasWeakMap ? new WeakMap() : createCache(); + } + + // eslint-disable-next-line jsdoc/check-param-names + /** + * The augmented selector call, considering first whether dependants have + * changed before passing it to underlying memoize function. + * + * @param {Object} source Source object for derivation. + * @param {...*} extraArgs Additional arguments to pass to selector. + * + * @return {*} Selector result. + */ + function callSelector( /* source, ...extraArgs */ ) { + var len = arguments.length, + cache, node, i, args, dependants; + + // Create copy of arguments (avoid leaking deoptimization). + args = new Array( len ); + for ( i = 0; i < len; i++ ) { + args[ i ] = arguments[ i ]; + } + + dependants = getDependants.apply( null, args ); + cache = getCache( dependants ); + + // If not guaranteed uniqueness by dependants (primitive type or lack + // of WeakMap support), shallow compare against last dependants and, if + // references have changed, destroy cache to recalculate result. + if ( ! cache.isUniqueByDependants ) { + if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { + cache.clear(); + } + + cache.lastDependants = dependants; + } + + node = cache.head; + while ( node ) { + // Check whether node arguments match arguments + if ( ! isShallowEqual( node.args, args, 1 ) ) { + node = node.next; + continue; + } + + // At this point we can assume we've found a match + + // Surface matched node to head if not already + if ( node !== cache.head ) { + // Adjust siblings to point to each other. + node.prev.next = node.next; + if ( node.next ) { + node.next.prev = node.prev; + } + + node.next = cache.head; + node.prev = null; + cache.head.prev = node; + cache.head = node; + } + + // Return immediately + return node.val; + } + + // No cached value found. Continue to insertion phase: + + node = { + // Generate the result from original function + val: selector.apply( null, args ), + }; + + // Avoid including the source object in the cache. + args[ 0 ] = null; + node.args = args; + + // Don't need to check whether node is already head, since it would + // have been returned above already if it was + + // Shift existing head down list + if ( cache.head ) { + cache.head.prev = node; + node.next = cache.head; + } + + cache.head = node; + + return node.val; + } + + callSelector.getDependants = getDependants; + callSelector.clear = clear; + clear(); + + return callSelector; +}); + + /***/ }), /***/ 4: @@ -1104,39 +1104,11 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/anno /***/ }), -/***/ 7: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); -/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); - }); - } - - return target; -} - -/***/ }), - -/***/ 70: +/***/ 64: /***/ (function(module, exports, __webpack_require__) { -var rng = __webpack_require__(92); -var bytesToUuid = __webpack_require__(93); +var rng = __webpack_require__(82); +var bytesToUuid = __webpack_require__(83); function v4(options, buf, offset) { var i = buf && offset || 0; @@ -1168,7 +1140,35 @@ module.exports = v4; /***/ }), -/***/ 92: +/***/ 7: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); + } + + return target; +} + +/***/ }), + +/***/ 82: /***/ (function(module, exports) { // Unique ID creation requires a high quality random # generator. In the @@ -1209,7 +1209,7 @@ if (getRandomValues) { /***/ }), -/***/ 93: +/***/ 83: /***/ (function(module, exports) { /** diff --git a/wp-includes/js/dist/annotations.min.js b/wp-includes/js/dist/annotations.min.js index c3ed9ea1b0..be3f6836e9 100644 --- a/wp-includes/js/dist/annotations.min.js +++ b/wp-includes/js/dist/annotations.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.annotations=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=394)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},10:function(t,n,e){"use strict";function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e.d(n,"a",(function(){return r}))},17:function(t,n,e){"use strict";var r=e(30);function o(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}e.d(n,"a",(function(){return r}))},22:function(t,n){!function(){t.exports=this.wp.richText}()},27:function(t,n){!function(){t.exports=this.wp.hooks}()},30:function(t,n,e){"use strict";function r(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}e.d(n,"a",(function(){return r}))},36:function(t,n,e){"use strict";var r,o;function a(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,n,e){var r;if(t.length!==n.length)return!1;for(r=e;r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var r=e.blockClientId,o={id:e.id,blockClientId:r,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===o.selector&&(t=o.range,!(Object(f.isNumber)(t.start)&&Object(f.isNumber)(t.end)&&t.start<=t.end)))return n;var a=Object(f.get)(n,r,[]);return Object(c.a)({},n,Object(i.a)({},r,[].concat(Object(u.a)(a),[o])));case"ANNOTATION_REMOVE":return Object(f.mapValues)(n,(function(t){return l(t,(function(t){return t.id!==e.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(f.mapValues)(n,(function(t){var n=!1,r=t.map((function(t){return t.id===e.annotationId?(n=!0,Object(c.a)({},t,{range:{start:e.start,end:e.end}})):t}));return n?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(f.mapValues)(n,(function(t){return l(t,(function(t){return t.source!==e.source}))}))}return n},d=e(21),p=e(36),b=[],v=Object(p.a)((function(t,n){return Object(f.get)(t,n,[]).filter((function(t){return"block"===t.selector}))}),(function(t,n){return[Object(f.get)(t,n,b)]})),O=function(t,n){return Object(f.get)(t,n,b)},g=Object(p.a)((function(t,n,e){return Object(f.get)(t,n,[]).filter((function(t){return"range"===t.selector&&e===t.richTextIdentifier})).map((function(t){var n=t.range,e=Object(d.a)(t,["range"]);return Object(c.a)({},n,e)}))}),(function(t,n){return[Object(f.get)(t,n,b)]}));function m(t){return Object(f.flatMap)(t,(function(t){return t}))}var y=e(70),h=e.n(y);function x(t){var n=t.blockClientId,e=t.richTextIdentifier,r=void 0===e?null:e,o=t.range,a=void 0===o?null:o,i=t.selector,u=void 0===i?"range":i,c=t.source,f=void 0===c?"default":c,l=t.id,s={type:"ANNOTATION_ADD",id:void 0===l?h()():l,blockClientId:n,richTextIdentifier:r,source:f,selector:u};return"range"===u&&(s.range=a),s}function A(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function _(t,n,e){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:n,end:e}}function j(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}Object(a.registerStore)("core/annotations",{reducer:s,selectors:r,actions:o});var T=e(22),N=e(1),w="core/annotation",I="annotation-text-";var E={name:w,title:Object(N.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:function(){return null},__experimentalGetPropsForEditableTreePreparation:function(t,n){var e=n.richTextIdentifier,r=n.blockClientId;return{annotations:t("core/annotations").__experimentalGetAnnotationsForRichText(r,e)}},__experimentalCreatePrepareEditableTree:function(t){var n=t.annotations;return function(t,e){if(0===n.length)return t;var r={formats:t,text:e};return(r=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(n){var e=n.start,r=n.end;e>t.text.length&&(e=t.text.length),r>t.text.length&&(r=t.text.length);var o=I+n.source,a=I+n.id;t=Object(T.applyFormat)(t,{type:w,attributes:{className:o,id:a}},e,r)})),t}(r,n)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(n){var e=function(t){var n={};return t.forEach((function(t,e){(t=(t=t||[]).filter((function(t){return t.type===w}))).forEach((function(t){var r=t.attributes.id;r=r.replace(I,""),n.hasOwnProperty(r)||(n[r]={start:e}),n[r].end=e+1}))})),n}(n),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,n,e){var r=e.removeAnnotation,o=e.updateAnnotationRange;t.forEach((function(t){var e=n[t.id];if(e){var a=t.start,i=t.end;a===e.start&&i===e.end||o(t.id,e.start,e.end)}else r(t.id)}))}(t.annotations,e,{removeAnnotation:r,updateAnnotationRange:o})}}},R=E.name,k=Object(d.a)(E,["name"]);Object(T.registerFormatType)(R,k);var P=e(27);Object(P.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(a.withSelect)((function(t,n){var e=n.clientId;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(e).map((function(t){return"is-annotated-by-"+t.source})).join(" ")}}))(t)}))},4:function(t,n){!function(){t.exports=this.wp.data}()},7:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(10);function o(t){for(var n=1;n>>((3&n)<<3)&255;return o}}},93:function(t,n){for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);t.exports=function(t,n){var r=n||0,o=e;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.annotations=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=325)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},10:function(t,n,e){"use strict";function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e.d(n,"a",(function(){return r}))},17:function(t,n,e){"use strict";var r=e(30);function o(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}e.d(n,"a",(function(){return r}))},22:function(t,n){!function(){t.exports=this.wp.richText}()},27:function(t,n){!function(){t.exports=this.wp.hooks}()},30:function(t,n,e){"use strict";function r(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}e.d(n,"a",(function(){return r}))},325:function(t,n,e){"use strict";e.r(n);var r={};e.r(r),e.d(r,"__experimentalGetAnnotationsForBlock",(function(){return v})),e.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return O})),e.d(r,"__experimentalGetAnnotationsForRichText",(function(){return g})),e.d(r,"__experimentalGetAnnotations",(function(){return m}));var o={};e.r(o),e.d(o,"__experimentalAddAnnotation",(function(){return x})),e.d(o,"__experimentalRemoveAnnotation",(function(){return A})),e.d(o,"__experimentalUpdateAnnotationRange",(function(){return _})),e.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return j}));var a=e(4),i=e(10),u=e(17),c=e(7),f=e(2);function l(t,n){var e=t.filter(n);return t.length===e.length?t:e}var s=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var r=e.blockClientId,o={id:e.id,blockClientId:r,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===o.selector&&(t=o.range,!(Object(f.isNumber)(t.start)&&Object(f.isNumber)(t.end)&&t.start<=t.end)))return n;var a=Object(f.get)(n,r,[]);return Object(c.a)({},n,Object(i.a)({},r,[].concat(Object(u.a)(a),[o])));case"ANNOTATION_REMOVE":return Object(f.mapValues)(n,(function(t){return l(t,(function(t){return t.id!==e.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(f.mapValues)(n,(function(t){var n=!1,r=t.map((function(t){return t.id===e.annotationId?(n=!0,Object(c.a)({},t,{range:{start:e.start,end:e.end}})):t}));return n?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(f.mapValues)(n,(function(t){return l(t,(function(t){return t.source!==e.source}))}))}return n},d=e(21),p=e(36),b=[],v=Object(p.a)((function(t,n){return Object(f.get)(t,n,[]).filter((function(t){return"block"===t.selector}))}),(function(t,n){return[Object(f.get)(t,n,b)]})),O=function(t,n){return Object(f.get)(t,n,b)},g=Object(p.a)((function(t,n,e){return Object(f.get)(t,n,[]).filter((function(t){return"range"===t.selector&&e===t.richTextIdentifier})).map((function(t){var n=t.range,e=Object(d.a)(t,["range"]);return Object(c.a)({},n,e)}))}),(function(t,n){return[Object(f.get)(t,n,b)]}));function m(t){return Object(f.flatMap)(t,(function(t){return t}))}var y=e(64),h=e.n(y);function x(t){var n=t.blockClientId,e=t.richTextIdentifier,r=void 0===e?null:e,o=t.range,a=void 0===o?null:o,i=t.selector,u=void 0===i?"range":i,c=t.source,f=void 0===c?"default":c,l=t.id,s={type:"ANNOTATION_ADD",id:void 0===l?h()():l,blockClientId:n,richTextIdentifier:r,source:f,selector:u};return"range"===u&&(s.range=a),s}function A(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function _(t,n,e){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:n,end:e}}function j(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}Object(a.registerStore)("core/annotations",{reducer:s,selectors:r,actions:o});var T=e(22),N=e(1),w="core/annotation",I="annotation-text-";var E={name:w,title:Object(N.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:function(){return null},__experimentalGetPropsForEditableTreePreparation:function(t,n){var e=n.richTextIdentifier,r=n.blockClientId;return{annotations:t("core/annotations").__experimentalGetAnnotationsForRichText(r,e)}},__experimentalCreatePrepareEditableTree:function(t){var n=t.annotations;return function(t,e){if(0===n.length)return t;var r={formats:t,text:e};return(r=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(n){var e=n.start,r=n.end;e>t.text.length&&(e=t.text.length),r>t.text.length&&(r=t.text.length);var o=I+n.source,a=I+n.id;t=Object(T.applyFormat)(t,{type:w,attributes:{className:o,id:a}},e,r)})),t}(r,n)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(n){var e=function(t){var n={};return t.forEach((function(t,e){(t=(t=t||[]).filter((function(t){return t.type===w}))).forEach((function(t){var r=t.attributes.id;r=r.replace(I,""),n.hasOwnProperty(r)||(n[r]={start:e}),n[r].end=e+1}))})),n}(n),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,n,e){var r=e.removeAnnotation,o=e.updateAnnotationRange;t.forEach((function(t){var e=n[t.id];if(e){var a=t.start,i=t.end;a===e.start&&i===e.end||o(t.id,e.start,e.end)}else r(t.id)}))}(t.annotations,e,{removeAnnotation:r,updateAnnotationRange:o})}}},R=E.name,k=Object(d.a)(E,["name"]);Object(T.registerFormatType)(R,k);var P=e(27);Object(P.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(a.withSelect)((function(t,n){var e=n.clientId;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(e).map((function(t){return"is-annotated-by-"+t.source})).join(" ")}}))(t)}))},36:function(t,n,e){"use strict";var r,o;function a(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,n,e){var r;if(t.length!==n.length)return!1;for(r=e;r>>((3&n)<<3)&255;return o}}},83:function(t,n){for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);t.exports=function(t,n){var r=n||0,o=e;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/api-fetch.js b/wp-includes/js/dist/api-fetch.js index dd26e359f1..9fd433329d 100644 --- a/wp-includes/js/dist/api-fetch.js +++ b/wp-includes/js/dist/api-fetch.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 395); +/******/ return __webpack_require__(__webpack_require__.s = 324); /******/ }) /************************************************************************/ /******/ ({ @@ -119,7 +119,7 @@ function _defineProperty(obj, key, value) { /***/ 20: /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(48); +module.exports = __webpack_require__(47); /***/ }), @@ -175,7 +175,7 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 395: +/***/ 324: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -338,7 +338,7 @@ var regenerator = __webpack_require__(20); var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(44); +var asyncToGenerator = __webpack_require__(43); // EXTERNAL MODULE: external {"this":["wp","url"]} var external_this_wp_url_ = __webpack_require__(26); @@ -755,7 +755,7 @@ apiFetch.fetchAllMiddleware = fetch_all_middleware; /***/ }), -/***/ 44: +/***/ 43: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -798,7 +798,7 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 48: +/***/ 47: /***/ (function(module, exports, __webpack_require__) { /** diff --git a/wp-includes/js/dist/api-fetch.min.js b/wp-includes/js/dist/api-fetch.min.js index 5d16985c97..fcef15bead 100644 --- a/wp-includes/js/dist/api-fetch.min.js +++ b/wp-includes/js/dist/api-fetch.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.apiFetch=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=395)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},10:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))},20:function(t,e,r){t.exports=r(48)},21:function(t,e,r){"use strict";function n(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}r.d(e,"a",(function(){return n}))},26:function(t,e){!function(){t.exports=this.wp.url}()},395:function(t,e,r){"use strict";r.r(e);var n=r(7),o=r(21),i=r(1);var a=function(t){function e(t,r){var o=t.headers,i=void 0===o?{}:o;for(var a in i)if("x-wp-nonce"===a.toLowerCase())return r(t);return r(Object(n.a)({},t,{headers:Object(n.a)({},i,{"X-WP-Nonce":e.nonce})}))}return e.nonce=t,e},c=function(t,e){var r,o,i=t.path;return"string"==typeof t.namespace&&"string"==typeof t.endpoint&&(r=t.namespace.replace(/^\/|\/$/g,""),i=(o=t.endpoint.replace(/^\//,""))?r+"/"+o:r),delete t.namespace,delete t.endpoint,e(Object(n.a)({},t,{path:i}))},u=function(t){return function(e,r){return c(e,(function(e){var o,i=e.url,a=e.path;return"string"==typeof a&&(o=t,-1!==t.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof o&&-1!==o.indexOf("?")&&(a=a.replace("?","&")),i=o+a),r(Object(n.a)({},e,{url:i}))}))}},f=function(t){return function(e,r){var n=e.parse,o=void 0===n||n;if("string"==typeof e.path){var i=e.method||"GET",a=function(t){var e=t.split("?"),r=e[1],n=e[0];return r?n+"?"+r.split("&").map((function(t){return t.split("=")})).sort((function(t,e){return t[0].localeCompare(e[0])})).map((function(t){return t.join("=")})).join("&"):n}(e.path);if(o&&"GET"===i&&t[a])return Promise.resolve(t[a].body);if("OPTIONS"===i&&t[i]&&t[i][a])return Promise.resolve(t[i][a])}return r(e)}},s=r(20),l=r.n(s),h=r(44),p=r(26),d=function(t,e){var r=t.path,i=t.url,a=Object(o.a)(t,["path","url"]);return Object(n.a)({},a,{url:i&&Object(p.addQueryArgs)(i,e),path:r&&Object(p.addQueryArgs)(r,e)})},y=function(t){return t.json?t.json():Promise.reject(t)},v=function(t){return function(t){if(!t)return{};var e=t.match(/<([^>]+)>; rel="next"/);return e?{next:e[1]}:{}}(t.headers.get("link")).next},g=function(t){var e=t.path&&-1!==t.path.indexOf("per_page=-1"),r=t.url&&-1!==t.url.indexOf("per_page=-1");return e||r},b=function(){var t=Object(h.a)(l.a.mark((function t(e,r){var o,i,a,c,u,f;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==e.parse){t.next=2;break}return t.abrupt("return",r(e));case 2:if(g(e)){t.next=4;break}return t.abrupt("return",r(e));case 4:return t.next=6,r(Object(n.a)({},d(e,{per_page:100}),{parse:!1}));case 6:return o=t.sent,t.next=9,y(o);case 9:if(i=t.sent,Array.isArray(i)){t.next=12;break}return t.abrupt("return",i);case 12:if(a=v(o)){t.next=15;break}return t.abrupt("return",i);case 15:c=[].concat(i);case 16:if(!a){t.next=27;break}return t.next=19,r(Object(n.a)({},e,{path:void 0,url:a,parse:!1}));case 19:return u=t.sent,t.next=22,y(u);case 22:f=t.sent,c=c.concat(f),a=v(u),t.next=16;break;case 27:return t.abrupt("return",c);case 28:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),m=new Set(["PATCH","PUT","DELETE"]),w="GET";var O={Accept:"application/json, */*;q=0.1"},j={credentials:"include"},x=[function(t,e){return"string"!=typeof t.url||Object(p.hasQueryArg)(t.url,"_locale")||(t.url=Object(p.addQueryArgs)(t.url,{_locale:"user"})),"string"!=typeof t.path||Object(p.hasQueryArg)(t.path,"_locale")||(t.path=Object(p.addQueryArgs)(t.path,{_locale:"user"})),e(t,e)},c,function(t,e){var r=t.method,o=void 0===r?w:r;return m.has(o.toUpperCase())&&(t=Object(n.a)({},t,{headers:Object(n.a)({},t.headers,{"X-HTTP-Method-Override":o,"Content-Type":"application/json"}),method:"POST"})),e(t,e)},b];var _=function(t){if(t.status>=200&&t.status<300)return t;throw t},P=function(t){var e=t.url,r=t.path,a=t.data,c=t.parse,u=void 0===c||c,f=Object(o.a)(t,["url","path","data","parse"]),s=t.body,l=t.headers;l=Object(n.a)({},O,l),a&&(s=JSON.stringify(a),l["Content-Type"]="application/json");return window.fetch(e||r,Object(n.a)({},j,f,{body:s,headers:l})).then(_).then((function(t){return u?204===t.status?null:t.json?t.json():Promise.reject(t):t})).catch((function(t){if(!u)throw t;var e={code:"invalid_json",message:Object(i.__)("The response is not a valid JSON response.")};if(!t||!t.json)throw e;return t.json().catch((function(){throw e})).then((function(t){var e={code:"unknown_error",message:Object(i.__)("An unknown error occurred.")};throw t||e}))}))};function E(t){var e=[].concat(x,[P]);return new Promise((function(r,n){(function t(r){return function(n){var o=e[r];return r===e.length-1?o(n):o(n,t(r+1))}})(0)(t).then(r).catch((function(e){if("rest_cookie_invalid_nonce"!==e.code)return n(e);window.fetch(E.nonceEndpoint).then(_).then((function(t){return t.text()})).then((function(e){E.nonceMiddleware.nonce=e,E(t).then(r).catch(n)})).catch(n)}))}))}E.use=function(t){x.unshift(t)},E.setFetchHandler=function(t){P=t},E.createNonceMiddleware=a,E.createPreloadingMiddleware=f,E.createRootURLMiddleware=u,E.fetchAllMiddleware=b;e.default=E},44:function(t,e,r){"use strict";function n(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}r.d(e,"a",(function(){return o}))},48:function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n=s;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===s)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?p:l,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var s="suspendedStart",l="suspendedYield",h="executing",p="completed",d={};function y(){}function v(){}function g(){}var b={};b[i]=function(){return this};var m=Object.getPrototypeOf,w=m&&m(m(k([])));w&&w!==r&&n.call(w,i)&&(b=w);var O=g.prototype=y.prototype=Object.create(b);function j(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function x(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,a){var c=f(t[r],t,o);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?Promise.resolve(s.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function _(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function k(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(10);function o(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}r.d(e,"a",(function(){return n}))},26:function(t,e){!function(){t.exports=this.wp.url}()},324:function(t,e,r){"use strict";r.r(e);var n=r(7),o=r(21),i=r(1);var a=function(t){function e(t,r){var o=t.headers,i=void 0===o?{}:o;for(var a in i)if("x-wp-nonce"===a.toLowerCase())return r(t);return r(Object(n.a)({},t,{headers:Object(n.a)({},i,{"X-WP-Nonce":e.nonce})}))}return e.nonce=t,e},c=function(t,e){var r,o,i=t.path;return"string"==typeof t.namespace&&"string"==typeof t.endpoint&&(r=t.namespace.replace(/^\/|\/$/g,""),i=(o=t.endpoint.replace(/^\//,""))?r+"/"+o:r),delete t.namespace,delete t.endpoint,e(Object(n.a)({},t,{path:i}))},u=function(t){return function(e,r){return c(e,(function(e){var o,i=e.url,a=e.path;return"string"==typeof a&&(o=t,-1!==t.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof o&&-1!==o.indexOf("?")&&(a=a.replace("?","&")),i=o+a),r(Object(n.a)({},e,{url:i}))}))}},f=function(t){return function(e,r){var n=e.parse,o=void 0===n||n;if("string"==typeof e.path){var i=e.method||"GET",a=function(t){var e=t.split("?"),r=e[1],n=e[0];return r?n+"?"+r.split("&").map((function(t){return t.split("=")})).sort((function(t,e){return t[0].localeCompare(e[0])})).map((function(t){return t.join("=")})).join("&"):n}(e.path);if(o&&"GET"===i&&t[a])return Promise.resolve(t[a].body);if("OPTIONS"===i&&t[i]&&t[i][a])return Promise.resolve(t[i][a])}return r(e)}},s=r(20),l=r.n(s),h=r(43),p=r(26),d=function(t,e){var r=t.path,i=t.url,a=Object(o.a)(t,["path","url"]);return Object(n.a)({},a,{url:i&&Object(p.addQueryArgs)(i,e),path:r&&Object(p.addQueryArgs)(r,e)})},y=function(t){return t.json?t.json():Promise.reject(t)},v=function(t){return function(t){if(!t)return{};var e=t.match(/<([^>]+)>; rel="next"/);return e?{next:e[1]}:{}}(t.headers.get("link")).next},g=function(t){var e=t.path&&-1!==t.path.indexOf("per_page=-1"),r=t.url&&-1!==t.url.indexOf("per_page=-1");return e||r},b=function(){var t=Object(h.a)(l.a.mark((function t(e,r){var o,i,a,c,u,f;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==e.parse){t.next=2;break}return t.abrupt("return",r(e));case 2:if(g(e)){t.next=4;break}return t.abrupt("return",r(e));case 4:return t.next=6,r(Object(n.a)({},d(e,{per_page:100}),{parse:!1}));case 6:return o=t.sent,t.next=9,y(o);case 9:if(i=t.sent,Array.isArray(i)){t.next=12;break}return t.abrupt("return",i);case 12:if(a=v(o)){t.next=15;break}return t.abrupt("return",i);case 15:c=[].concat(i);case 16:if(!a){t.next=27;break}return t.next=19,r(Object(n.a)({},e,{path:void 0,url:a,parse:!1}));case 19:return u=t.sent,t.next=22,y(u);case 22:f=t.sent,c=c.concat(f),a=v(u),t.next=16;break;case 27:return t.abrupt("return",c);case 28:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),m=new Set(["PATCH","PUT","DELETE"]),w="GET";var O={Accept:"application/json, */*;q=0.1"},j={credentials:"include"},x=[function(t,e){return"string"!=typeof t.url||Object(p.hasQueryArg)(t.url,"_locale")||(t.url=Object(p.addQueryArgs)(t.url,{_locale:"user"})),"string"!=typeof t.path||Object(p.hasQueryArg)(t.path,"_locale")||(t.path=Object(p.addQueryArgs)(t.path,{_locale:"user"})),e(t,e)},c,function(t,e){var r=t.method,o=void 0===r?w:r;return m.has(o.toUpperCase())&&(t=Object(n.a)({},t,{headers:Object(n.a)({},t.headers,{"X-HTTP-Method-Override":o,"Content-Type":"application/json"}),method:"POST"})),e(t,e)},b];var _=function(t){if(t.status>=200&&t.status<300)return t;throw t},P=function(t){var e=t.url,r=t.path,a=t.data,c=t.parse,u=void 0===c||c,f=Object(o.a)(t,["url","path","data","parse"]),s=t.body,l=t.headers;l=Object(n.a)({},O,l),a&&(s=JSON.stringify(a),l["Content-Type"]="application/json");return window.fetch(e||r,Object(n.a)({},j,f,{body:s,headers:l})).then(_).then((function(t){return u?204===t.status?null:t.json?t.json():Promise.reject(t):t})).catch((function(t){if(!u)throw t;var e={code:"invalid_json",message:Object(i.__)("The response is not a valid JSON response.")};if(!t||!t.json)throw e;return t.json().catch((function(){throw e})).then((function(t){var e={code:"unknown_error",message:Object(i.__)("An unknown error occurred.")};throw t||e}))}))};function E(t){var e=[].concat(x,[P]);return new Promise((function(r,n){(function t(r){return function(n){var o=e[r];return r===e.length-1?o(n):o(n,t(r+1))}})(0)(t).then(r).catch((function(e){if("rest_cookie_invalid_nonce"!==e.code)return n(e);window.fetch(E.nonceEndpoint).then(_).then((function(t){return t.text()})).then((function(e){E.nonceMiddleware.nonce=e,E(t).then(r).catch(n)})).catch(n)}))}))}E.use=function(t){x.unshift(t)},E.setFetchHandler=function(t){P=t},E.createNonceMiddleware=a,E.createPreloadingMiddleware=f,E.createRootURLMiddleware=u,E.fetchAllMiddleware=b;e.default=E},43:function(t,e,r){"use strict";function n(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}r.d(e,"a",(function(){return o}))},47:function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n=s;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===s)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?p:l,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var s="suspendedStart",l="suspendedYield",h="executing",p="completed",d={};function y(){}function v(){}function g(){}var b={};b[i]=function(){return this};var m=Object.getPrototypeOf,w=m&&m(m(k([])));w&&w!==r&&n.call(w,i)&&(b=w);var O=g.prototype=y.prototype=Object.create(b);function j(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function x(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,a){var c=f(t[r],t,o);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?Promise.resolve(s.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function _(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function k(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(10);function o(t){for(var e=1;e)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);)n.push(t.slice(0,r.index)),n.push(r[0]),t=t.slice(r.index+r[0].length);return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf(""),a=p.pop();e="";for(var i=0;i";n.push([s,o.substr(l)+""]),e+=o.substr(0,l)+s}else e+=o}e+=a}var u="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/\s*/g,"\n\n")).replace(new RegExp("(<"+u+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("()","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("\s*/g,"")),-1!==e.indexOf("")&&(e=(e=(e=e.replace(/(]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("]*>)/,"$1")).replace(/<\/figcaption>\s*/,""));var g=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",g.forEach((function(r){e+="

"+r.replace(/^\n*|\n*$/g,"")+"

\n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/

\s*<\/p>/g,"")).replace(/

([^<]+)<\/(div|address|form)>/g,"

$1

")).replace(new RegExp("

\\s*(]*>)\\s*

","g"),"$1")).replace(/

(/g,"$1")).replace(/

]*)>/gi,"

")).replace(/<\/blockquote><\/p>/g,"

")).replace(new RegExp("

\\s*(]*>)","g"),"$1")).replace(new RegExp("(]*>)\\s*

","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(function(e){return e[0].replace(/\n/g,"")}))).replace(/
|/g,"
")).replace(/(
)?\s*\n/g,(function(e,r){return r?e:"
\n"}))).replace(//g,"\n")),e=(e=(e=e.replace(new RegExp("(]*>)\\s*
","g"),"$1")).replace(/
(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"

"),n.forEach((function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?\s?/g,"\n")),e}function i(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("]*>[\s\S]*?<\/\1>/g,(function(e){return p.push(e),""}))),-1!==e.indexOf("]*>[\s\S]+?<\/pre>/g,(function(e){return(e=(e=e.replace(/
(\r\n|\n)?/g,"")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"")).replace(/\r?\n/g,"")}))),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,(function(e){return e.replace(/]*)>/g,"").replace(/[\r\n\t]+/,"")}))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*\\s*","g"),"\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(

]+>[\s\S]*?)<\/p>/g,"$1")).replace(/]*)?>\s*

/gi,"\n\n")).replace(/\s*

/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)
\s*/gi,(function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"}))).replace(/\s*

\s*/g,"
\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*\\s*","g"),"\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("/g,"\n")),-1!==e.indexOf("]*)?>\s*/g,"\n\n\n\n")),-1!==e.indexOf("/g,(function(e){return e.replace(/[\r\n]+/g,"")}))),e=(e=(e=(e=e.replace(/<\/p#>/g,"

\n")).replace(/\s*(

]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(//g,"\n")),a&&(e=e.replace(/]*)>/g,"")),p.length&&(e=e.replace(//g,(function(){return p.shift()}))),e):""}},38:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},39:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(r,"a",(function(){return t}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},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,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=210)}({210:function(e,r,n){"use strict";n.r(r),n.d(r,"autop",(function(){return a})),n.d(r,"removep",(function(){return i}));var t=n(23),p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);)n.push(t.slice(0,r.index)),n.push(r[0]),t=t.slice(r.index+r[0].length);return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf(""),a=p.pop();e="";for(var i=0;i";n.push([s,o.substr(l)+""]),e+=o.substr(0,l)+s}else e+=o}e+=a}var u="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/\s*/g,"\n\n")).replace(new RegExp("(<"+u+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("()","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("\s*/g,"")),-1!==e.indexOf("")&&(e=(e=(e=e.replace(/(]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("]*>)/,"$1")).replace(/<\/figcaption>\s*/,""));var g=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",g.forEach((function(r){e+="

"+r.replace(/^\n*|\n*$/g,"")+"

\n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/

\s*<\/p>/g,"")).replace(/

([^<]+)<\/(div|address|form)>/g,"

$1

")).replace(new RegExp("

\\s*(]*>)\\s*

","g"),"$1")).replace(/

(/g,"$1")).replace(/

]*)>/gi,"

")).replace(/<\/blockquote><\/p>/g,"

")).replace(new RegExp("

\\s*(]*>)","g"),"$1")).replace(new RegExp("(]*>)\\s*

","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(function(e){return e[0].replace(/\n/g,"")}))).replace(/
|/g,"
")).replace(/(
)?\s*\n/g,(function(e,r){return r?e:"
\n"}))).replace(//g,"\n")),e=(e=(e=e.replace(new RegExp("(]*>)\\s*
","g"),"$1")).replace(/
(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"

"),n.forEach((function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?\s?/g,"\n")),e}function i(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("]*>[\s\S]*?<\/\1>/g,(function(e){return p.push(e),""}))),-1!==e.indexOf("]*>[\s\S]+?<\/pre>/g,(function(e){return(e=(e=e.replace(/
(\r\n|\n)?/g,"")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"")).replace(/\r?\n/g,"")}))),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,(function(e){return e.replace(/]*)>/g,"").replace(/[\r\n\t]+/,"")}))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*\\s*","g"),"\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(

]+>[\s\S]*?)<\/p>/g,"$1")).replace(/]*)?>\s*

/gi,"\n\n")).replace(/\s*

/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)
\s*/gi,(function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"}))).replace(/\s*

\s*/g,"
\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*\\s*","g"),"\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("/g,"\n")),-1!==e.indexOf("]*)?>\s*/g,"\n\n\n\n")),-1!==e.indexOf("/g,(function(e){return e.replace(/[\r\n]+/g,"")}))),e=(e=(e=(e=e.replace(/<\/p#>/g,"

\n")).replace(/\s*(

]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(//g,"\n")),a&&(e=e.replace(/]*)>/g,"")),p.length&&(e=e.replace(//g,(function(){return p.shift()}))),e):""}},23:function(e,r,n){"use strict";var t=n(38);var p=n(39);function c(e,r){return Object(t.a)(e)||function(e,r){var n=[],t=!0,p=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){p=!0,c=e}finally{try{t||null==i.return||i.return()}finally{if(p)throw c}}return n}(e,r)||Object(p.a)()}n.d(r,"a",(function(){return c}))},38:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},39:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(r,"a",(function(){return t}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/blob.js b/wp-includes/js/dist/blob.js index c97a7a0fee..2f9955d465 100644 --- a/wp-includes/js/dist/blob.js +++ b/wp-includes/js/dist/blob.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["blob"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 281); +/******/ return __webpack_require__(__webpack_require__.s = 211); /******/ }) /************************************************************************/ /******/ ({ -/***/ 281: +/***/ 211: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/blob.min.js b/wp-includes/js/dist/blob.min.js index 3e25164412..82be75137a 100644 --- a/wp-includes/js/dist/blob.min.js +++ b/wp-includes/js/dist/blob.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.blob=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=281)}({281:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"revokeBlobURL",(function(){return l})),n.d(t,"isBlobURL",(function(){return d}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.blob=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=211)}({211:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"revokeBlobURL",(function(){return l})),n.d(t,"isBlobURL",(function(){return d}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/block-editor.js b/wp-includes/js/dist/block-editor.js index e592ee4199..4c56eba53b 100644 --- a/wp-includes/js/dist/block-editor.js +++ b/wp-includes/js/dist/block-editor.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockEditor"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 381); +/******/ return __webpack_require__(__webpack_require__.s = 311); /******/ }) /************************************************************************/ /******/ ({ @@ -123,50 +123,7 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 104: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["wordcount"]; }()); - -/***/ }), - -/***/ 11: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} - -/***/ }), - -/***/ 12: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -/***/ }), - -/***/ 122: +/***/ 106: /***/ (function(module, exports) { if (typeof Object.create === 'function') { @@ -200,32 +157,13 @@ if (typeof Object.create === 'function') { /***/ }), -/***/ 13: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); -/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31); -/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5); - - -function _possibleConstructorReturn(self, call) { - if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) { - return call; - } - - return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self); -} - -/***/ }), - -/***/ 130: +/***/ 107: /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(131); +var util = __webpack_require__(108); function scrollIntoView(elem, container, config) { config = config || {}; @@ -355,7 +293,7 @@ module.exports = scrollIntoView; /***/ }), -/***/ 131: +/***/ 108: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -801,7 +739,7 @@ module.exports = _extends({ /***/ }), -/***/ 132: +/***/ 109: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -836,8 +774,8 @@ var __rest = (this && this.__rest) || function (s, e) { exports.__esModule = true; var React = __webpack_require__(28); var PropTypes = __webpack_require__(34); -var autosize = __webpack_require__(133); -var _getLineHeight = __webpack_require__(134); +var autosize = __webpack_require__(110); +var _getLineHeight = __webpack_require__(111); var getLineHeight = _getLineHeight; var UPDATE = 'autosize:update'; var DESTROY = 'autosize:destroy'; @@ -930,7 +868,30 @@ exports["default"] = TextareaAutosize; /***/ }), -/***/ 133: +/***/ 11: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +/***/ }), + +/***/ 110: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -1219,11 +1180,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/***/ 134: +/***/ 111: /***/ (function(module, exports, __webpack_require__) { // Load in dependencies -var computedStyle = __webpack_require__(135); +var computedStyle = __webpack_require__(112); /** * Calculate the `line-height` of a given node @@ -1323,7 +1284,7 @@ module.exports = lineHeight; /***/ }), -/***/ 135: +/***/ 112: /***/ (function(module, exports) { // This code has been refactored for 140 bytes @@ -1357,7 +1318,7 @@ module.exports = computedStyle; /***/ }), -/***/ 136: +/***/ 113: /***/ (function(module, exports) { function _extends() { @@ -1382,7 +1343,7 @@ module.exports = _extends; /***/ }), -/***/ 137: +/***/ 114: /***/ (function(module, exports) { function _objectWithoutPropertiesLoose(source, excluded) { @@ -1404,7 +1365,7 @@ module.exports = _objectWithoutPropertiesLoose; /***/ }), -/***/ 138: +/***/ 115: /***/ (function(module, exports) { function _inheritsLoose(subClass, superClass) { @@ -1417,7 +1378,7 @@ module.exports = _inheritsLoose; /***/ }), -/***/ 139: +/***/ 116: /***/ (function(module, exports) { function _assertThisInitialized(self) { @@ -1432,21 +1393,7 @@ module.exports = _assertThisInitialized; /***/ }), -/***/ 14: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} - -/***/ }), - -/***/ 140: +/***/ 117: /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathias */ @@ -1969,11 +1916,11 @@ function _getPrototypeOf(o) { }(this)); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(141)(module), __webpack_require__(67))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(118)(module), __webpack_require__(61))) /***/ }), -/***/ 141: +/***/ 118: /***/ (function(module, exports) { module.exports = function(module) { @@ -2002,7 +1949,7 @@ module.exports = function(module) { /***/ }), -/***/ 142: +/***/ 119: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2026,19 +1973,32 @@ module.exports = { /***/ }), -/***/ 143: +/***/ 12: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +/***/ }), + +/***/ 120: /***/ (function(module, exports, __webpack_require__) { "use strict"; -exports.decode = exports.parse = __webpack_require__(144); -exports.encode = exports.stringify = __webpack_require__(145); +exports.decode = exports.parse = __webpack_require__(121); +exports.encode = exports.stringify = __webpack_require__(122); /***/ }), -/***/ 144: +/***/ 121: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2130,7 +2090,7 @@ var isArray = Array.isArray || function (xs) { /***/ }), -/***/ 145: +/***/ 122: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2221,6 +2181,46 @@ var objectKeys = Object.keys || function (obj) { }; +/***/ }), + +/***/ 13: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); +/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5); + + +function _possibleConstructorReturn(self, call) { + if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) { + return call; + } + + return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self); +} + +/***/ }), + +/***/ 135: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["tokenList"]; }()); + +/***/ }), + +/***/ 14: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} + /***/ }), /***/ 15: @@ -2257,13 +2257,6 @@ function _inherits(subClass, superClass) { /***/ }), -/***/ 158: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["tokenList"]; }()); - -/***/ }), - /***/ 16: /***/ (function(module, exports, __webpack_require__) { @@ -2387,73 +2380,7 @@ function _extends() { /***/ }), -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 20: -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(48); - - -/***/ }), - -/***/ 21: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); - -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = _objectWithoutPropertiesLoose(source, excluded); - var key, i; - - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - - return target; -} - -/***/ }), - -/***/ 22: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["richText"]; }()); - -/***/ }), - -/***/ 226: +/***/ 195: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2484,7 +2411,7 @@ exports.default = multi; /***/ }), -/***/ 227: +/***/ 196: /***/ (function(module, exports, __webpack_require__) { /*! @@ -4327,7 +4254,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }), -/***/ 228: +/***/ 197: /***/ (function(module, exports) { var traverse = module.exports = function (obj) { @@ -4646,6 +4573,72 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { }; +/***/ }), + +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); + +/***/ }), + +/***/ 20: +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(47); + + +/***/ }), + +/***/ 21: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); + +function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = _objectWithoutPropertiesLoose(source, excluded); + var key, i; + + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + + return target; +} + +/***/ }), + +/***/ 22: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["richText"]; }()); + /***/ }), /***/ 23: @@ -4765,333 +4758,7 @@ function _typeof(obj) { /***/ }), -/***/ 34: -/***/ (function(module, exports, __webpack_require__) { - -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -if (false) { var throwOnDirectAccess, ReactIs; } else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(94)(); -} - - -/***/ }), - -/***/ 35: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blob"]; }()); - -/***/ }), - -/***/ 36: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - - -var LEAF_KEY, hasWeakMap; - -/** - * Arbitrary value used as key for referencing cache object in WeakMap tree. - * - * @type {Object} - */ -LEAF_KEY = {}; - -/** - * Whether environment supports WeakMap. - * - * @type {boolean} - */ -hasWeakMap = typeof WeakMap !== 'undefined'; - -/** - * Returns the first argument as the sole entry in an array. - * - * @param {*} value Value to return. - * - * @return {Array} Value returned as entry in array. - */ -function arrayOf( value ) { - return [ value ]; -} - -/** - * Returns true if the value passed is object-like, or false otherwise. A value - * is object-like if it can support property assignment, e.g. object or array. - * - * @param {*} value Value to test. - * - * @return {boolean} Whether value is object-like. - */ -function isObjectLike( value ) { - return !! value && 'object' === typeof value; -} - -/** - * Creates and returns a new cache object. - * - * @return {Object} Cache object. - */ -function createCache() { - var cache = { - clear: function() { - cache.head = null; - }, - }; - - return cache; -} - -/** - * Returns true if entries within the two arrays are strictly equal by - * reference from a starting index. - * - * @param {Array} a First array. - * @param {Array} b Second array. - * @param {number} fromIndex Index from which to start comparison. - * - * @return {boolean} Whether arrays are shallowly equal. - */ -function isShallowEqual( a, b, fromIndex ) { - var i; - - if ( a.length !== b.length ) { - return false; - } - - for ( i = fromIndex; i < a.length; i++ ) { - if ( a[ i ] !== b[ i ] ) { - return false; - } - } - - return true; -} - -/** - * Returns a memoized selector function. The getDependants function argument is - * called before the memoized selector and is expected to return an immutable - * reference or array of references on which the selector depends for computing - * its own return value. The memoize cache is preserved only as long as those - * dependant references remain the same. If getDependants returns a different - * reference(s), the cache is cleared and the selector value regenerated. - * - * @param {Function} selector Selector function. - * @param {Function} getDependants Dependant getter returning an immutable - * reference or array of reference used in - * cache bust consideration. - * - * @return {Function} Memoized selector. - */ -/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { - var rootCache, getCache; - - // Use object source as dependant if getter not provided - if ( ! getDependants ) { - getDependants = arrayOf; - } - - /** - * Returns the root cache. If WeakMap is supported, this is assigned to the - * root WeakMap cache set, otherwise it is a shared instance of the default - * cache object. - * - * @return {(WeakMap|Object)} Root cache object. - */ - function getRootCache() { - return rootCache; - } - - /** - * Returns the cache for a given dependants array. When possible, a WeakMap - * will be used to create a unique cache for each set of dependants. This - * is feasible due to the nature of WeakMap in allowing garbage collection - * to occur on entries where the key object is no longer referenced. Since - * WeakMap requires the key to be an object, this is only possible when the - * dependant is object-like. The root cache is created as a hierarchy where - * each top-level key is the first entry in a dependants set, the value a - * WeakMap where each key is the next dependant, and so on. This continues - * so long as the dependants are object-like. If no dependants are object- - * like, then the cache is shared across all invocations. - * - * @see isObjectLike - * - * @param {Array} dependants Selector dependants. - * - * @return {Object} Cache object. - */ - function getWeakMapCache( dependants ) { - var caches = rootCache, - isUniqueByDependants = true, - i, dependant, map, cache; - - for ( i = 0; i < dependants.length; i++ ) { - dependant = dependants[ i ]; - - // Can only compose WeakMap from object-like key. - if ( ! isObjectLike( dependant ) ) { - isUniqueByDependants = false; - break; - } - - // Does current segment of cache already have a WeakMap? - if ( caches.has( dependant ) ) { - // Traverse into nested WeakMap. - caches = caches.get( dependant ); - } else { - // Create, set, and traverse into a new one. - map = new WeakMap(); - caches.set( dependant, map ); - caches = map; - } - } - - // We use an arbitrary (but consistent) object as key for the last item - // in the WeakMap to serve as our running cache. - if ( ! caches.has( LEAF_KEY ) ) { - cache = createCache(); - cache.isUniqueByDependants = isUniqueByDependants; - caches.set( LEAF_KEY, cache ); - } - - return caches.get( LEAF_KEY ); - } - - // Assign cache handler by availability of WeakMap - getCache = hasWeakMap ? getWeakMapCache : getRootCache; - - /** - * Resets root memoization cache. - */ - function clear() { - rootCache = hasWeakMap ? new WeakMap() : createCache(); - } - - // eslint-disable-next-line jsdoc/check-param-names - /** - * The augmented selector call, considering first whether dependants have - * changed before passing it to underlying memoize function. - * - * @param {Object} source Source object for derivation. - * @param {...*} extraArgs Additional arguments to pass to selector. - * - * @return {*} Selector result. - */ - function callSelector( /* source, ...extraArgs */ ) { - var len = arguments.length, - cache, node, i, args, dependants; - - // Create copy of arguments (avoid leaking deoptimization). - args = new Array( len ); - for ( i = 0; i < len; i++ ) { - args[ i ] = arguments[ i ]; - } - - dependants = getDependants.apply( null, args ); - cache = getCache( dependants ); - - // If not guaranteed uniqueness by dependants (primitive type or lack - // of WeakMap support), shallow compare against last dependants and, if - // references have changed, destroy cache to recalculate result. - if ( ! cache.isUniqueByDependants ) { - if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { - cache.clear(); - } - - cache.lastDependants = dependants; - } - - node = cache.head; - while ( node ) { - // Check whether node arguments match arguments - if ( ! isShallowEqual( node.args, args, 1 ) ) { - node = node.next; - continue; - } - - // At this point we can assume we've found a match - - // Surface matched node to head if not already - if ( node !== cache.head ) { - // Adjust siblings to point to each other. - node.prev.next = node.next; - if ( node.next ) { - node.next.prev = node.prev; - } - - node.next = cache.head; - node.prev = null; - cache.head.prev = node; - cache.head = node; - } - - // Return immediately - return node.val; - } - - // No cached value found. Continue to insertion phase: - - node = { - // Generate the result from original function - val: selector.apply( null, args ), - }; - - // Avoid including the source object in the cache. - args[ 0 ] = null; - node.args = args; - - // Don't need to check whether node is already head, since it would - // have been returned above already if it was - - // Shift existing head down list - if ( cache.head ) { - cache.head.prev = node; - node.next = cache.head; - } - - cache.head = node; - - return node.val; - } - - callSelector.getDependants = getDependants; - callSelector.clear = clear; - clear(); - - return callSelector; -}); - - -/***/ }), - -/***/ 37: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["deprecated"]; }()); - -/***/ }), - -/***/ 38: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -/***/ }), - -/***/ 381: +/***/ 311: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5214,7 +4881,7 @@ var external_this_wp_blocks_ = __webpack_require__(9); var external_this_wp_richText_ = __webpack_require__(22); // EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(43); +var external_this_wp_viewport_ = __webpack_require__(42); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js var objectSpread = __webpack_require__(7); @@ -5242,7 +4909,7 @@ var external_this_wp_hooks_ = __webpack_require__(27); var external_this_wp_data_ = __webpack_require__(4); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js -var tinycolor = __webpack_require__(49); +var tinycolor = __webpack_require__(48); var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/utils.js @@ -6119,7 +5786,7 @@ BlockControls.Slot = Slot; /* harmony default export */ var block_controls = (BlockControls); // EXTERNAL MODULE: ./node_modules/memize/index.js -var memize = __webpack_require__(45); +var memize = __webpack_require__(44); var memize_default = /*#__PURE__*/__webpack_require__.n(memize); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/edit.js @@ -6848,7 +6515,7 @@ function (_Component) { var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js -var lib = __webpack_require__(71); +var lib = __webpack_require__(65); var lib_default = /*#__PURE__*/__webpack_require__.n(lib); // EXTERNAL MODULE: external {"this":["wp","url"]} @@ -8325,15 +7992,15 @@ function reducer_didAutomaticChange(state, action) { })); // EXTERNAL MODULE: ./node_modules/refx/refx.js -var refx = __webpack_require__(76); +var refx = __webpack_require__(69); var refx_default = /*#__PURE__*/__webpack_require__.n(refx); // EXTERNAL MODULE: ./node_modules/redux-multi/lib/index.js -var redux_multi_lib = __webpack_require__(226); +var redux_multi_lib = __webpack_require__(195); var redux_multi_lib_default = /*#__PURE__*/__webpack_require__.n(redux_multi_lib); // EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(46); +var external_this_wp_a11y_ = __webpack_require__(45); // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js var regenerator = __webpack_require__(20); @@ -11272,7 +10939,7 @@ var block_async_mode_provider_BlockAsyncModeProvider = function BlockAsyncModePr /* harmony default export */ var block_async_mode_provider = (block_async_mode_provider_BlockAsyncModeProvider); // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js -var web_cjs = __webpack_require__(66); +var web_cjs = __webpack_require__(60); // EXTERNAL MODULE: external {"this":["wp","dom"]} var external_this_wp_dom_ = __webpack_require__(25); @@ -11731,7 +11398,7 @@ function Warning(_ref) { /* harmony default export */ var warning = (Warning); // EXTERNAL MODULE: ./node_modules/diff/dist/diff.js -var dist_diff = __webpack_require__(227); +var dist_diff = __webpack_require__(196); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/block-view.js @@ -12116,7 +11783,7 @@ function (_Component) { /* harmony default export */ var block_crash_boundary = (block_crash_boundary_BlockCrashBoundary); // EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js -var react_autosize_textarea_lib = __webpack_require__(64); +var react_autosize_textarea_lib = __webpack_require__(59); var react_autosize_textarea_lib_default = /*#__PURE__*/__webpack_require__.n(react_autosize_textarea_lib); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-html.js @@ -13793,7 +13460,7 @@ Object(external_this_wp_compose_["ifCondition"])(function (_ref5) { }), Object(external_this_wp_components_["withFilters"])('editor.BlockListBlock'))(block_BlockListBlock)); // EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} -var external_this_wp_htmlEntities_ = __webpack_require__(54); +var external_this_wp_htmlEntities_ = __webpack_require__(52); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/default-block-appender/index.js @@ -15502,7 +15169,7 @@ function ContrastChecker(_ref2) { /* harmony default export */ var contrast_checker = (ContrastChecker); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(41); +var external_this_wp_isShallowEqual_ = __webpack_require__(40); var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/with-client-id.js @@ -18399,7 +18066,7 @@ var skip_to_selected_block_SkipToSelectedBlock = function SkipToSelectedBlock(_r })(skip_to_selected_block_SkipToSelectedBlock)); // EXTERNAL MODULE: external {"this":["wp","tokenList"]} -var external_this_wp_tokenList_ = __webpack_require__(158); +var external_this_wp_tokenList_ = __webpack_require__(135); var external_this_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_tokenList_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-styles/index.js @@ -18602,7 +18269,7 @@ function BlockStyles(_ref) { })])(BlockStyles)); // EXTERNAL MODULE: external {"this":["wp","wordcount"]} -var external_this_wp_wordcount_ = __webpack_require__(104); +var external_this_wp_wordcount_ = __webpack_require__(93); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/multi-selection-inspector/index.js @@ -21199,7 +20866,7 @@ Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', // EXTERNAL MODULE: ./node_modules/traverse/index.js -var traverse = __webpack_require__(228); +var traverse = __webpack_require__(197); var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js @@ -21902,7 +21569,7 @@ function addParent(obj, parent) { /* eslint-enable @wordpress/no-unused-vars-before-return */ // EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js -var inherits_browser = __webpack_require__(122); +var inherits_browser = __webpack_require__(106); var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/stringify/compiler.js @@ -22390,7 +22057,7 @@ function traverseCSS(css, callback) { /* harmony default export */ var transform_styles_traverse = (traverseCSS); // EXTERNAL MODULE: ./node_modules/url/url.js -var url_url = __webpack_require__(87); +var url_url = __webpack_require__(79); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/transforms/url-rewrite.js @@ -22721,6 +22388,332 @@ var transform_styles_transformStyles = function transformStyles(styles) { +/***/ }), + +/***/ 34: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +if (false) { var throwOnDirectAccess, ReactIs; } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(84)(); +} + + +/***/ }), + +/***/ 35: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blob"]; }()); + +/***/ }), + +/***/ 36: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + + +var LEAF_KEY, hasWeakMap; + +/** + * Arbitrary value used as key for referencing cache object in WeakMap tree. + * + * @type {Object} + */ +LEAF_KEY = {}; + +/** + * Whether environment supports WeakMap. + * + * @type {boolean} + */ +hasWeakMap = typeof WeakMap !== 'undefined'; + +/** + * Returns the first argument as the sole entry in an array. + * + * @param {*} value Value to return. + * + * @return {Array} Value returned as entry in array. + */ +function arrayOf( value ) { + return [ value ]; +} + +/** + * Returns true if the value passed is object-like, or false otherwise. A value + * is object-like if it can support property assignment, e.g. object or array. + * + * @param {*} value Value to test. + * + * @return {boolean} Whether value is object-like. + */ +function isObjectLike( value ) { + return !! value && 'object' === typeof value; +} + +/** + * Creates and returns a new cache object. + * + * @return {Object} Cache object. + */ +function createCache() { + var cache = { + clear: function() { + cache.head = null; + }, + }; + + return cache; +} + +/** + * Returns true if entries within the two arrays are strictly equal by + * reference from a starting index. + * + * @param {Array} a First array. + * @param {Array} b Second array. + * @param {number} fromIndex Index from which to start comparison. + * + * @return {boolean} Whether arrays are shallowly equal. + */ +function isShallowEqual( a, b, fromIndex ) { + var i; + + if ( a.length !== b.length ) { + return false; + } + + for ( i = fromIndex; i < a.length; i++ ) { + if ( a[ i ] !== b[ i ] ) { + return false; + } + } + + return true; +} + +/** + * Returns a memoized selector function. The getDependants function argument is + * called before the memoized selector and is expected to return an immutable + * reference or array of references on which the selector depends for computing + * its own return value. The memoize cache is preserved only as long as those + * dependant references remain the same. If getDependants returns a different + * reference(s), the cache is cleared and the selector value regenerated. + * + * @param {Function} selector Selector function. + * @param {Function} getDependants Dependant getter returning an immutable + * reference or array of reference used in + * cache bust consideration. + * + * @return {Function} Memoized selector. + */ +/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { + var rootCache, getCache; + + // Use object source as dependant if getter not provided + if ( ! getDependants ) { + getDependants = arrayOf; + } + + /** + * Returns the root cache. If WeakMap is supported, this is assigned to the + * root WeakMap cache set, otherwise it is a shared instance of the default + * cache object. + * + * @return {(WeakMap|Object)} Root cache object. + */ + function getRootCache() { + return rootCache; + } + + /** + * Returns the cache for a given dependants array. When possible, a WeakMap + * will be used to create a unique cache for each set of dependants. This + * is feasible due to the nature of WeakMap in allowing garbage collection + * to occur on entries where the key object is no longer referenced. Since + * WeakMap requires the key to be an object, this is only possible when the + * dependant is object-like. The root cache is created as a hierarchy where + * each top-level key is the first entry in a dependants set, the value a + * WeakMap where each key is the next dependant, and so on. This continues + * so long as the dependants are object-like. If no dependants are object- + * like, then the cache is shared across all invocations. + * + * @see isObjectLike + * + * @param {Array} dependants Selector dependants. + * + * @return {Object} Cache object. + */ + function getWeakMapCache( dependants ) { + var caches = rootCache, + isUniqueByDependants = true, + i, dependant, map, cache; + + for ( i = 0; i < dependants.length; i++ ) { + dependant = dependants[ i ]; + + // Can only compose WeakMap from object-like key. + if ( ! isObjectLike( dependant ) ) { + isUniqueByDependants = false; + break; + } + + // Does current segment of cache already have a WeakMap? + if ( caches.has( dependant ) ) { + // Traverse into nested WeakMap. + caches = caches.get( dependant ); + } else { + // Create, set, and traverse into a new one. + map = new WeakMap(); + caches.set( dependant, map ); + caches = map; + } + } + + // We use an arbitrary (but consistent) object as key for the last item + // in the WeakMap to serve as our running cache. + if ( ! caches.has( LEAF_KEY ) ) { + cache = createCache(); + cache.isUniqueByDependants = isUniqueByDependants; + caches.set( LEAF_KEY, cache ); + } + + return caches.get( LEAF_KEY ); + } + + // Assign cache handler by availability of WeakMap + getCache = hasWeakMap ? getWeakMapCache : getRootCache; + + /** + * Resets root memoization cache. + */ + function clear() { + rootCache = hasWeakMap ? new WeakMap() : createCache(); + } + + // eslint-disable-next-line jsdoc/check-param-names + /** + * The augmented selector call, considering first whether dependants have + * changed before passing it to underlying memoize function. + * + * @param {Object} source Source object for derivation. + * @param {...*} extraArgs Additional arguments to pass to selector. + * + * @return {*} Selector result. + */ + function callSelector( /* source, ...extraArgs */ ) { + var len = arguments.length, + cache, node, i, args, dependants; + + // Create copy of arguments (avoid leaking deoptimization). + args = new Array( len ); + for ( i = 0; i < len; i++ ) { + args[ i ] = arguments[ i ]; + } + + dependants = getDependants.apply( null, args ); + cache = getCache( dependants ); + + // If not guaranteed uniqueness by dependants (primitive type or lack + // of WeakMap support), shallow compare against last dependants and, if + // references have changed, destroy cache to recalculate result. + if ( ! cache.isUniqueByDependants ) { + if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { + cache.clear(); + } + + cache.lastDependants = dependants; + } + + node = cache.head; + while ( node ) { + // Check whether node arguments match arguments + if ( ! isShallowEqual( node.args, args, 1 ) ) { + node = node.next; + continue; + } + + // At this point we can assume we've found a match + + // Surface matched node to head if not already + if ( node !== cache.head ) { + // Adjust siblings to point to each other. + node.prev.next = node.next; + if ( node.next ) { + node.next.prev = node.prev; + } + + node.next = cache.head; + node.prev = null; + cache.head.prev = node; + cache.head = node; + } + + // Return immediately + return node.val; + } + + // No cached value found. Continue to insertion phase: + + node = { + // Generate the result from original function + val: selector.apply( null, args ), + }; + + // Avoid including the source object in the cache. + args[ 0 ] = null; + node.args = args; + + // Don't need to check whether node is already head, since it would + // have been returned above already if it was + + // Shift existing head down list + if ( cache.head ) { + cache.head.prev = node; + node.next = cache.head; + } + + cache.head = node; + + return node.val; + } + + callSelector.getDependants = getDependants; + callSelector.clear = clear; + clear(); + + return callSelector; +}); + + +/***/ }), + +/***/ 37: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["deprecated"]; }()); + +/***/ }), + +/***/ 38: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + /***/ }), /***/ 39: @@ -22741,21 +22734,21 @@ function _nonIterableRest() { /***/ }), -/***/ 41: +/***/ 40: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["isShallowEqual"]; }()); /***/ }), -/***/ 43: +/***/ 42: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["viewport"]; }()); /***/ }), -/***/ 45: +/***/ 44: /***/ (function(module, exports, __webpack_require__) { module.exports = function memize( fn, options ) { @@ -22873,14 +22866,14 @@ module.exports = function memize( fn, options ) { /***/ }), -/***/ 46: +/***/ 45: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["a11y"]; }()); /***/ }), -/***/ 48: +/***/ 47: /***/ (function(module, exports, __webpack_require__) { /** @@ -23613,7 +23606,7 @@ try { /***/ }), -/***/ 49: +/***/ 48: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 @@ -24829,26 +24822,26 @@ function _assertThisInitialized(self) { /***/ }), -/***/ 54: +/***/ 52: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["htmlEntities"]; }()); /***/ }), -/***/ 64: +/***/ 59: /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; -var TextareaAutosize_1 = __webpack_require__(132); +var TextareaAutosize_1 = __webpack_require__(109); exports["default"] = TextareaAutosize_1["default"]; /***/ }), -/***/ 66: +/***/ 60: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -24858,12 +24851,12 @@ Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var _extends = _interopDefault(__webpack_require__(136)); -var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(137)); +var _extends = _interopDefault(__webpack_require__(113)); +var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(114)); var React = __webpack_require__(28); var React__default = _interopDefault(React); -var _inheritsLoose = _interopDefault(__webpack_require__(138)); -var _assertThisInitialized = _interopDefault(__webpack_require__(139)); +var _inheritsLoose = _interopDefault(__webpack_require__(115)); +var _assertThisInitialized = _interopDefault(__webpack_require__(116)); var is = { arr: Array.isArray, @@ -27179,7 +27172,7 @@ exports.useSprings = useSprings; /***/ }), -/***/ 67: +/***/ 61: /***/ (function(module, exports) { var g; @@ -27206,45 +27199,17 @@ module.exports = g; /***/ }), -/***/ 7: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); -/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); - }); - } - - return target; -} - -/***/ }), - -/***/ 71: +/***/ 65: /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(130); +module.exports = __webpack_require__(107); /***/ }), -/***/ 76: +/***/ 69: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -27300,14 +27265,35 @@ module.exports = refx; /***/ }), -/***/ 8: -/***/ (function(module, exports) { +/***/ 7: +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["compose"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); + } + + return target; +} /***/ }), -/***/ 87: +/***/ 79: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -27334,8 +27320,8 @@ module.exports = refx; -var punycode = __webpack_require__(140); -var util = __webpack_require__(142); +var punycode = __webpack_require__(117); +var util = __webpack_require__(119); exports.parse = urlParse; exports.resolve = urlResolve; @@ -27410,7 +27396,7 @@ var protocolPattern = /^([a-z0-9.+-]+:)/i, 'gopher:': true, 'file:': true }, - querystring = __webpack_require__(143); + querystring = __webpack_require__(120); function urlParse(url, parseQueryString, slashesDenoteHost) { if (url && util.isObject(url) && url instanceof Url) return url; @@ -28047,14 +28033,14 @@ Url.prototype.parseHost = function() { /***/ }), -/***/ 9: +/***/ 8: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["blocks"]; }()); +(function() { module.exports = this["wp"]["compose"]; }()); /***/ }), -/***/ 94: +/***/ 84: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -28067,7 +28053,7 @@ Url.prototype.parseHost = function() { -var ReactPropTypesSecret = __webpack_require__(95); +var ReactPropTypesSecret = __webpack_require__(85); function emptyFunction() {} function emptyFunctionWithReset() {} @@ -28126,7 +28112,7 @@ module.exports = function() { /***/ }), -/***/ 95: +/***/ 85: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -28144,6 +28130,20 @@ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; module.exports = ReactPropTypesSecret; +/***/ }), + +/***/ 9: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blocks"]; }()); + +/***/ }), + +/***/ 93: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["wordcount"]; }()); + /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js index 9a1abc4eee..7be0e1d510 100644 --- a/wp-includes/js/dist/block-editor.min.js +++ b/wp-includes/js/dist/block-editor.min.js @@ -1,14 +1,14 @@ -this.wp=this.wp||{},this.wp.blockEditor=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=381)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},104:function(e,t){!function(){e.exports=this.wp.wordcount}()},11:function(e,t,n){"use strict";function r(e,t){for(var n=0;n0?!0===c?r.scrollTop(t,O.top+k.top):!1===c?r.scrollTop(t,O.top+y.top):k.top<0?r.scrollTop(t,O.top+k.top):r.scrollTop(t,O.top+y.top):i||((c=void 0===c||!!c)?r.scrollTop(t,O.top+k.top):r.scrollTop(t,O.top+y.top)),o&&(k.left<0||y.left>0?!0===a?r.scrollLeft(t,O.left+k.left):!1===a?r.scrollLeft(t,O.left+y.left):k.left<0?r.scrollLeft(t,O.left+k.left):r.scrollLeft(t,O.left+y.left):i||((a=void 0===a||!!a)?r.scrollLeft(t,O.left+k.left):r.scrollLeft(t,O.left+y.left)))}},131:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t0?!0===c?r.scrollTop(t,O.top+k.top):!1===c?r.scrollTop(t,O.top+y.top):k.top<0?r.scrollTop(t,O.top+k.top):r.scrollTop(t,O.top+y.top):i||((c=void 0===c||!!c)?r.scrollTop(t,O.top+k.top):r.scrollTop(t,O.top+y.top)),o&&(k.left<0||y.left>0?!0===a?r.scrollLeft(t,O.left+k.left):!1===a?r.scrollLeft(t,O.left+y.left):k.left<0?r.scrollLeft(t,O.left+k.left):r.scrollLeft(t,O.left+y.left):i||((a=void 0===a||!!a)?r.scrollLeft(t,O.left+k.left):r.scrollLeft(t,O.left+y.left)))}},108:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r=0||(o[n]=e[n]);return o}},138:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},139: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}},14:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},140:function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var a,l=2147483647,s=36,u=1,d=26,f=38,p=700,b=72,h=128,m="-",v=/^xn--/,g=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-u,j=Math.floor,_=String.fromCharCode;function S(e){throw RangeError(k[e])}function C(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(O,".")).split("."),t).join(".")}function w(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)})).join("")}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,n){var r=0;for(e=n?j(e/p):e>>1,e+=j(e/t);e>y*d>>1;r+=s)e=j(e/y);return j(r+(y+1)*e/(e+f))}function x(e){var t,n,r,o,i,c,a,f,p,v,g,O=[],k=e.length,y=0,_=h,C=b;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r=128&&S("not-basic"),O.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=k&&S("invalid-input"),((f=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:s)>=s||f>j((l-y)/c))&&S("overflow"),y+=f*c,!(f<(p=a<=C?u:a>=C+d?d:a-C));a+=s)c>j(l/(v=s-p))&&S("overflow"),c*=v;C=T(y-i,t=O.length+1,0==i),j(y/t)>l-_&&S("overflow"),_+=j(y/t),y%=t,O.splice(y++,0,_)}return I(O)}function L(e){var t,n,r,o,i,c,a,f,p,v,g,O,k,y,C,E=[];for(O=(e=w(e)).length,t=h,n=0,i=b,c=0;c=t&&gj((l-n)/(k=r+1))&&S("overflow"),n+=(a-t)*k,t=a,c=0;cl&&S("overflow"),g==t){for(f=n,p=s;!(f<(v=p<=i?u:p>=i+d?d:p-i));p+=s)C=f-v,y=s-v,E.push(_(B(v+C%y,0))),f=j(C/y);E.push(_(B(f,0))),i=T(n,k,r==o),n=0,++r}++n,++t}return E.join("")}a={version:"1.3.2",ucs2:{decode:w,encode:I},decode:x,encode:L,toASCII:function(e){return E(e,(function(e){return g.test(e)?"xn--"+L(e):e}))},toUnicode:function(e){return E(e,(function(e){return v.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return a}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(141)(e),n(67))},141:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},142:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},143:function(e,t,n){"use strict";t.decode=t.parse=n(144),t.encode=t.stringify=n(145)},144:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var a=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(d=h.substr(0,m),f=h.substr(m+1)):(d=h,f=""),p=decodeURIComponent(d),b=decodeURIComponent(f),r(c,p)?o(c[p])?c[p].push(b):c[p]=[c[p],b]:c[p]=b}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},145:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(c(e),(function(c){var a=encodeURIComponent(r(c))+n;return o(e[c])?i(e[c],(function(e){return a+encodeURIComponent(r(e))})).join(t):a+encodeURIComponent(r(e[c]))})).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r=0||(o[n]=e[n]);return o}},115:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},116: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}},117:function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var a,l=2147483647,s=36,u=1,d=26,f=38,p=700,b=72,h=128,m="-",v=/^xn--/,g=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-u,j=Math.floor,_=String.fromCharCode;function S(e){throw RangeError(k[e])}function C(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(O,".")).split("."),t).join(".")}function w(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)})).join("")}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,n){var r=0;for(e=n?j(e/p):e>>1,e+=j(e/t);e>y*d>>1;r+=s)e=j(e/y);return j(r+(y+1)*e/(e+f))}function x(e){var t,n,r,o,i,c,a,f,p,v,g,O=[],k=e.length,y=0,_=h,C=b;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r=128&&S("not-basic"),O.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=k&&S("invalid-input"),((f=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:s)>=s||f>j((l-y)/c))&&S("overflow"),y+=f*c,!(f<(p=a<=C?u:a>=C+d?d:a-C));a+=s)c>j(l/(v=s-p))&&S("overflow"),c*=v;C=T(y-i,t=O.length+1,0==i),j(y/t)>l-_&&S("overflow"),_+=j(y/t),y%=t,O.splice(y++,0,_)}return I(O)}function L(e){var t,n,r,o,i,c,a,f,p,v,g,O,k,y,C,E=[];for(O=(e=w(e)).length,t=h,n=0,i=b,c=0;c=t&&gj((l-n)/(k=r+1))&&S("overflow"),n+=(a-t)*k,t=a,c=0;cl&&S("overflow"),g==t){for(f=n,p=s;!(f<(v=p<=i?u:p>=i+d?d:p-i));p+=s)C=f-v,y=s-v,E.push(_(B(v+C%y,0))),f=j(C/y);E.push(_(B(f,0))),i=T(n,k,r==o),n=0,++r}++n,++t}return E.join("")}a={version:"1.3.2",ucs2:{decode:w,encode:I},decode:x,encode:L,toASCII:function(e){return E(e,(function(e){return g.test(e)?"xn--"+L(e):e}))},toUnicode:function(e){return E(e,(function(e){return v.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return a}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(118)(e),n(61))},118:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},119:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},12:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},120:function(e,t,n){"use strict";t.decode=t.parse=n(121),t.encode=t.stringify=n(122)},121:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var a=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(d=h.substr(0,m),f=h.substr(m+1)):(d=h,f=""),p=decodeURIComponent(d),b=decodeURIComponent(f),r(c,p)?o(c[p])?c[p].push(b):c[p]=[c[p],b]:c[p]=b}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},122:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(c(e),(function(c){var a=encodeURIComponent(r(c))+n;return o(e[c])?i(e[c],(function(e){return a+encodeURIComponent(r(e))})).join(t):a+encodeURIComponent(r(e[c]))})).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},22:function(e,t){!function(){e.exports=this.wp.richText}()},226:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dispatch;return function(e){return function(n){return Array.isArray(n)?n.filter(Boolean).map(t):e(n)}}}},227:function(e,t,n){ +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;te.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var f=t[c-1];return c>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[c-2].value+=f.value,t.pop()),t}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var c=this;function a(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,f=[{newPos:-1,components:[]}],p=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=l&&p+1>=s)return a([{value:this.join(t),count:t.length}]);function b(){for(var n=-1*u;n<=u;n+=2){var i=void 0,d=f[n-1],p=f[n+1],b=(p?p.newPos:0)-n;d&&(f[n-1]=void 0);var h=d&&d.newPos+1=l&&b+1>=s)return a(r(c,i.components,t,e,c.useLongestToken));f[n]=i}else f[n]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>d)return i();b()||e()}),0)}();else for(;u<=d;){var h=b();if(h)return h}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,c=e.newPos,a=c-r,l=0;c+12&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,o.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},s=0,u=n.fuzzFactor||0,d=0,f=0,p=void 0,b=void 0;function h(e,t){for(var n=0;n0?o[0]:" ",c=o.length>0?o.substr(1):o;if(" "===i||"-"===i){if(!l(t+1,r[t],i,c)&&++s>u)return!1;t++}}return!0}for(var m=0;m0?w[0]:" ",B=w.length>0?w.substr(1):w,T=S.linedelimiters[E];if(" "===I)C++;else if("-"===I)r.splice(C,1),i.splice(C,1);else if("+"===I)r.splice(C,0,B),i.splice(C,0,T),C++;else if("\\"===I){var x=S.lines[E-1]?S.lines[E-1][0]:null;"+"===x?p=!0:"-"===x&&(b=!0)}}}if(p)for(;!r[r.length-1];)r.pop(),i.pop();else b&&(r.push(""),i.push("\n"));for(var L=0;L1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function c(){var e={};for(o.push(e);i0?u(a.lines.slice(-l.context)):[],f-=b.length,p-=b.length)}(c=b).push.apply(c,o(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=r.length:h+=r.length}else{if(f)if(r.length<=2*l.context&&e=s.length-2&&r.length<=l.context){var y=/\n$/.test(n),j=/\n$/.test(i);0!=r.length||y?y&&j||b.push("\\ No newline at end of file"):b.splice(k.oldLines,0,"\\ No newline at end of file")}d.push(k),f=0,p=0,b=[]}h+=r.length,m+=r.length}},g=0;ge.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push((o=r.value,void 0,o.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),r.added?t.push(""):r.removed&&t.push("")}var o;return t.join("")}}])},e.exports=r()},228:function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var f=n?i(d):d,p={},b=!0,h={node:f,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(b=!1)},delete:function(e){delete h.parent.node[h.key],e&&(b=!1)},remove:function(e){l(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(b=!1)},keys:null,before:function(e){p.before=e},after:function(e){p.after=e},pre:function(e){p.pre=e},post:function(e){p.post=e},stop:function(){a=!1},block:function(){b=!1}};if(!a)return h;function m(){if("object"==typeof h.node&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=c(h.node)),h.isLeaf=0==h.keys.length;for(var e=0;e3&&void 0!==arguments[3]?arguments[3]:1,o=Object(Be.a)(e);return o.splice(t,r),Pe(o,e.slice(t,t+r),n)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(I.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Fe(o,r))})),n}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(I.a)({},n.clientId,t),He(n.innerBlocks,n.clientId))}),{})}function Ue(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(Be.a)(e);r.length;){var o=r.shift(),i=o.innerBlocks,c=Object(Ae.a)(o,["innerBlocks"]);r.push.apply(r,Object(Be.a)(i)),n[c.clientId]=t(c)}return n}function Ve(e){return Ue(e,(function(e){return Object(p.omit)(e,"attributes")}))}function ze(e){return Ue(e,(function(e){return e.attributes}))}function Ke(e,t){return e===t?Object(l.a)({},e):t}function We(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&e.clientId===t.clientId&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var qe=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var Ge=Object(p.flow)(m.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=Object(l.a)({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Object(l.a)({},e,{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(Ue(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var i=Object(p.keys)(Ue(n.blocks));n.rootClientId&&i.push(n.rootClientId),r.cache=Object(l.a)({},r.cache,qe(o(i)));break;case"UPDATE_BLOCK":case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Object(l.a)({},r.cache,qe(o([n.clientId])));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var c=qe(o(n.replacedClientIds));r.cache=Object(l.a)({},Object(p.omit)(r.cache,n.replacedClientIds),Object(p.omit)(c,n.replacedClientIds),qe(Object(p.keys)(Ue(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Object(l.a)({},Object(p.omit)(r.cache,n.removedClientIds),qe(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCK_TO_POSITION":var a=[n.clientId];n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Object(l.a)({},r.cache,qe(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var s=[];n.rootClientId&&s.push(n.rootClientId),r.cache=Object(l.a)({},r.cache,qe(o(s)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var u=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Object(l.a)({},r.cache,qe(o(u)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var n=e,r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.reduce)(t[n],(function(n,r){return[].concat(Object(Be.a)(n),[r],Object(Be.a)(e(t,r)))}),[])}(t.order);return Object(l.a)({},t,{byClientId:Object(l.a)({},Object(p.omit)(t.byClientId,r),Ve(n.blocks)),attributes:Object(l.a)({},Object(p.omit)(t.attributes,r),ze(n.blocks)),order:Object(l.a)({},Object(p.omit)(t.order,r),Fe(n.blocks)),parents:Object(l.a)({},Object(p.omit)(t.parents,r),He(n.blocks)),cache:Object(l.a)({},Object(p.omit)(t.cache,r),Object(p.mapValues)(Ue(n.blocks),(function(){return{}})))})}return e(t,n)}}),(function(e){var t;return function(n,r){var o=e(n,r),i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type;if(n===o&&!i){var c=Object(p.get)(n,["isPersistentChange"],!0);return n.isPersistentChange===c?n:Object(l.a)({},o,{isPersistentChange:c})}return o=Object(l.a)({},o,{isPersistentChange:i||!We(r,t)}),t=r,o}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Ve(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(l.a)({},e,Ve(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:Object(l.a)({},e,Object(I.a)({},t.clientId,Object(l.a)({},e[t.clientId],n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),Ve(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return ze(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(l.a)({},e,ze(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Object(l.a)({},e,Object(I.a)({},t.clientId,Object(l.a)({},e[t.clientId],t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(p.reduce)(t.attributes,(function(n,r,o){return r!==n[o]&&((n=Ke(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:Object(l.a)({},e,Object(I.a)({},t.clientId,n));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),ze(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Fe(t.blocks);case"RECEIVE_BLOCKS":return Object(l.a)({},e,Object(p.omit)(Fe(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],i=Fe(t.blocks,r),c=t.index,a=void 0===c?o.length:c;return Object(l.a)({},e,i,Object(I.a)({},r,Pe(o,i[r],a)));case"MOVE_BLOCK_TO_POSITION":var s,u=t.fromRootClientId,d=void 0===u?"":u,f=t.toRootClientId,b=void 0===f?"":f,h=t.clientId,m=t.index,v=void 0===m?e[b].length:m;if(d===b){var g=e[b],O=g.indexOf(h);return Object(l.a)({},e,Object(I.a)({},b,De(e[b],O,v)))}return Object(l.a)({},e,(s={},Object(I.a)(s,d,Object(p.without)(e[d],h)),Object(I.a)(s,b,Pe(e[b],h,v)),s));case"MOVE_BLOCKS_UP":var k=t.clientIds,y=t.rootClientId,j=void 0===y?"":y,_=Object(p.first)(k),S=e[j];if(!S.length||_===Object(p.first)(S))return e;var C=S.indexOf(_);return Object(l.a)({},e,Object(I.a)({},j,De(S,C,C-1,k.length)));case"MOVE_BLOCKS_DOWN":var E=t.clientIds,w=t.rootClientId,B=void 0===w?"":w,T=Object(p.first)(E),x=Object(p.last)(E),L=e[B];if(!L.length||x===Object(p.last)(L))return e;var N=L.indexOf(T);return Object(l.a)({},e,Object(I.a)({},B,De(L,N,N+1,E.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var A=t.clientIds;if(!t.blocks)return e;var M=Fe(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Object(l.a)({},e,Object(p.omit)(M,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===A[0]?[].concat(Object(Be.a)(e),Object(Be.a)(M[""])):(-1===A.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(Be.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return He(t.blocks);case"RECEIVE_BLOCKS":return Object(l.a)({},e,He(t.blocks));case"INSERT_BLOCKS":return Object(l.a)({},e,He(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return Object(l.a)({},e,Object(I.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),He(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e}});var $e={},Ye={start:$e,end:$e,isMultiSelecting:!1,isEnabled:!0,initialPosition:null};var Xe=Object(m.combineReducers)({blocks:Ge,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},blockSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ye,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.start&&e.start.clientId?Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null}):e;case"START_MULTI_SELECT":return e.isMultiSelecting?e:Object(l.a)({},e,{isMultiSelecting:!0,initialPosition:null});case"STOP_MULTI_SELECT":return e.isMultiSelecting?Object(l.a)({},e,{isMultiSelecting:!1,initialPosition:null}):e;case"MULTI_SELECT":return Object(l.a)({},e,{isMultiSelecting:e.isMultiSelecting,start:{clientId:t.start},end:{clientId:t.end}});case"SELECT_BLOCK":return t.clientId===e.start.clientId&&t.clientId===e.end.clientId?e:Object(l.a)({},e,{initialPosition:t.initialPosition,start:{clientId:t.clientId},end:{clientId:t.clientId}});case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection?Object(l.a)({},e,{start:{clientId:t.blocks[0].clientId},end:{clientId:t.blocks[0].clientId}}):e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.start.clientId)?Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null}):e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.start.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];return r?r.clientId===e.start.clientId&&r.clientId===e.end.clientId?e:Object(l.a)({},e,{start:{clientId:r.clientId},end:{clientId:r.clientId}}):Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null});case"TOGGLE_SELECTION":return Object(l.a)({},e,{isEnabled:t.isSelectionEnabled});case"SELECTION_CHANGE":return Object(l.a)({},e,{start:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},end:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}})}return e},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return Object(l.a)({},e,Object(I.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:Object(l.a)({},e,Object(I.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":return{rootClientId:t.rootClientId,index:t.index};case"HIDE_INSERTION_POINT":return null}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Object(l.a)({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Object(l.a)({},e,t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Me,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(i.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Object(l.a)({},e,{insertUsage:Object(l.a)({},e.insertUsage,Object(I.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(I.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return Object(I.a)({},t.clientId,t.attributes)}return null},isNavigationMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e},didAutomaticChange:function(e,t){return"MARK_AUTOMATIC_CHANGE"===t.type}}),Ze=n(76),Je=n.n(Ze),Qe=n(226),et=n.n(Qe),tt=n(46),nt=n(20),rt=n.n(nt);function ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:null,clientId:e}}function Ot(e){var t;return rt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ot("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,gt(t,-1);case 6:case"end":return n.stop()}}),at)}function kt(e){var t;return rt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ot("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,gt(t);case 6:case"end":return n.stop()}}),lt)}function yt(){return{type:"START_MULTI_SELECT"}}function jt(){return{type:"STOP_MULTI_SELECT"}}function _t(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function St(){return{type:"CLEAR_SELECTED_BLOCK"}}function Ct(){return{type:"TOGGLE_SELECTION",isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function Et(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(Object(p.includes)(r,"is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,c=n[t];return Object(l.a)({},e,{attributes:Object(l.a)({},i,{className:"".concat(r||""," is-style-").concat(c).trim()})})}))}function wt(e,t,n){var r,o,i;return rt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return e=Object(p.castArray)(e),c.t0=Et,c.t1=Object(p.castArray)(t),c.next=5,ot("core/block-editor","getSettings");case 5:return c.t2=c.sent,t=(0,c.t0)(c.t1,c.t2),c.next=9,ot("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:r=c.sent,o=0;case 11:if(!(o1&&void 0!==a[1]?a[1]:"",n=a.length>2&&void 0!==a[2]?a[2]:"",r=a.length>3?a[3]:void 0,l.next=5,ot("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(i={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,i;case 12:return l.abrupt("return");case 13:if("insert"!==o){l.next=15;break}return l.abrupt("return");case 15:return l.next=17,ot("core/block-editor","getBlockName",e);case 17:return c=l.sent,l.next=20,ot("core/block-editor","canInsertBlockType",c,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,i;case 24:case"end":return l.stop()}}),ut)}function Nt(e,t,n){return At([e],t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function At(e,t,n){var r,o,i,c,a,l,s,u,d=arguments;return rt.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return r=!(d.length>3&&void 0!==d[3])||d[3],f.t0=Et,f.t1=Object(p.castArray)(e),f.next=5,ot("core/block-editor","getSettings");case 5:f.t2=f.sent,e=(0,f.t0)(f.t1,f.t2),o=[],i=!0,c=!1,a=void 0,f.prev=11,l=e[Symbol.iterator]();case 13:if(i=(s=l.next()).done){f.next=22;break}return u=s.value,f.next=17,ot("core/block-editor","canInsertBlockType",u.name,n);case 17:f.sent&&o.push(u);case 19:i=!0,f.next=13;break;case 22:f.next=28;break;case 24:f.prev=24,f.t3=f.catch(11),c=!0,a=f.t3;case 28:f.prev=28,f.prev=29,i||null==l.return||l.return();case 31:if(f.prev=31,!c){f.next=34;break}throw a;case 34:return f.finish(31);case 35:return f.finish(28);case 36:if(!o.length){f.next=38;break}return f.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 38:case"end":return f.stop()}}),dt,null,[[11,24,28,36],[29,,31,35]])}function Mt(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Rt(){return{type:"HIDE_INSERTION_POINT"}}function Pt(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Dt(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Ft(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Ht(e){var t,n=arguments;return rt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=!(n.length>1&&void 0!==n[1])||n[1],e=Object(p.castArray)(e),!t){r.next=5;break}return r.next=5,Ot(e[0]);case 5:return r.next=7,{type:"REMOVE_BLOCKS",clientIds:e};case 7:return r.delegateYield(pt(),"t0",8);case 8:case"end":return r.stop()}}),ft)}function Ut(e,t){return Ht([e],t)}function Vt(e,t){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],time:Date.now()}}function zt(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Kt(){return{type:"START_TYPING"}}function Wt(){return{type:"STOP_TYPING"}}function qt(){return{type:"ENTER_FORMATTED_TEXT"}}function Gt(){return{type:"EXIT_FORMATTED_TEXT"}}function $t(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Yt(e,t,n){var r=Object(i.getDefaultBlockName)();if(r)return Nt(Object(i.createBlock)(r,e),n,t)}function Xt(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Zt(e){return{type:"UPDATE_SETTINGS",settings:e}}function Jt(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Qt(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function en(){return{type:"MARK_AUTOMATIC_CHANGE"}}function tn(){return{type:"SET_NAVIGATION_MODE",isNavigationMode:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}var nn=n(36),rn=3,on=2,cn=1,an=0,ln=Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(u.createElement)(P.G,null,Object(u.createElement)(P.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),sn=[];function un(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function dn(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function fn(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var pn=Object(nn.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Object(l.a)({},n,{attributes:fn(e,t),innerBlocks:hn(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),bn=Object(nn.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Object(l.a)({},n,{attributes:fn(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),hn=Object(nn.a)((function(e,t){return Object(p.map)(Wn(e,t),(function(t){return pn(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),mn=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=Wn(t,n);return[].concat(Object(Be.a)(r),Object(Be.a)(e(t,r)))}))},vn=Object(nn.a)((function(e){var t=Wn(e);return[].concat(Object(Be.a)(t),Object(Be.a)(mn(e,t)))}),(function(e){return[e.blocks.order]})),gn=Object(nn.a)((function(e,t){var n=vn(e);return t?Object(p.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),On=Object(nn.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return pn(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function kn(e,t){return Wn(e,t).length}function yn(e){return e.blockSelection.start}function jn(e){return e.blockSelection.end}function _n(e){return e.blockSelection.start.clientId}function Sn(e){return e.blockSelection.end.clientId}function Cn(e){var t=Rn(e).length;return t||(e.blockSelection.start.clientId?1:0)}function En(e){var t=e.blockSelection,n=t.start,r=t.end;return!!n.clientId&&n.clientId===r.clientId}function wn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId&&n.clientId===r.clientId&&e.blocks.byClientId[n.clientId]?n.clientId:null}function In(e){var t=wn(e);return t?pn(e,t):null}function Bn(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}function Tn(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=wn(e)),void 0===t&&(t=n<0?Dn(e):Fn(e)),!t)return null;var r=Bn(e,t);if(null===r)return null;var o=e.blocks.order[r],i=o.indexOf(t)+1*n;return i<0?null:i===o.length?null:o[i]}function Ln(e,t){return xn(e,t,-1)}function Nn(e,t){return xn(e,t,1)}function An(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId&&n.clientId?e.blockSelection.initialPosition:null}var Mn=Object(nn.a)((function(e){var t=e.blockSelection,n=t.start,r=t.end;if(void 0===n.clientId||void 0===r.clientId)return sn;if(n.clientId===r.clientId)return[n.clientId];var o=Bn(e,n.clientId);if(null===o)return sn;var i=Wn(e,o),c=i.indexOf(n.clientId),a=i.indexOf(r.clientId);return c>a?i.slice(a,c+1):i.slice(c,a+1)}),(function(e){return[e.blocks.order,e.blockSelection.start.clientId,e.blockSelection.end.clientId]}));function Rn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?sn:Mn(e)}var Pn=Object(nn.a)((function(e){var t=Rn(e);return t.length?t.map((function(t){return pn(e,t)})):sn}),(function(e){return[].concat(Object(Be.a)(Mn.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Dn(e){return Object(p.first)(Rn(e))||null}function Fn(e){return Object(p.last)(Rn(e))||null}function Hn(e,t){return Dn(e)===t}function Un(e,t){return-1!==Rn(e).indexOf(t)}var Vn=Object(nn.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Un(e,n=Bn(e,n));return r}),(function(e){return[e.blocks.order,e.blockSelection.start.clientId,e.blockSelection.end.clientId]}));function zn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?null:n.clientId||null}function Kn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?null:r.clientId||null}function Wn(e,t){return e.blocks.order[t||""]||sn}function qn(e,t,n){return Wn(e,n).indexOf(t)}function Gn(e,t){var n=e.blockSelection,r=n.start,o=n.end;return r.clientId===o.clientId&&r.clientId===t}function $n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(Wn(e,t),(function(t){return Gn(e,t)||Un(e,t)||n&&$n(e,t,n)}))}function Yn(e,t){if(!t)return!1;var n=Rn(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?Object(p.includes)(e,t):n},o=Object(i.getBlockType)(t);if(!o)return!1;var c=br(e),a=c.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!cr(e,n);if(s)return!1;var u=pr(e,n),d=Object(p.get)(u,["allowedBlocks"]),f=r(d,t),b=o.parent,h=un(e,n),m=r(b,h);return null!==f&&null!==m?f||m:null!==f?f:null===m||m},lr=Object(nn.a)(ar,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function sr(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var ur=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&ar(e,t.name,n)},dr=Object(nn.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?rn:t>0?on:"common"===e?cn:an},r=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},o=function(t){var o=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(p.some)(On(e,vn(e)),{name:t.name}));var a=Object(p.isArray)(t.parent),l=sr(e,o)||{},s=l.time,u=l.count,d=void 0===u?0:u;return{id:o,name:t.name,initialAttributes:{},title:t.title,icon:t.icon,category:t.category,keywords:t.keywords,isDisabled:c,utility:n(t.category,d,a),frecency:r(s,d)}},c=function(t){var o,c="core/block/".concat(t.id),a=mr(e,t.id);1===a.length&&(o=Object(i.getBlockType)(a[0].name));var l=sr(e,c)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=n("reusable",d,!1),p=r(s,d);return{id:c,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:o?o.icon:ln,category:"reusable",keywords:[],isDisabled:!1,utility:f,frecency:p}},a=Object(i.getBlockTypes)().filter((function(n){return ur(e,n,t)})).map(o),l=ar(e,"core/block",t)?Or(e).map(c):[];return Object(p.orderBy)([].concat(Object(Be.a)(a),Object(Be.a)(l)),["utility","frecency"],["desc","desc"])}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Or(e),Object(i.getBlockTypes)()]})),fr=Object(nn.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(i.getBlockTypes)(),(function(n){return ur(e,n,t)}));if(n)return!0;var r=ar(e,"core/block",t)&&Or(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Or(e),Object(i.getBlockTypes)()]}));function pr(e,t){return e.blockListSettings[t]}function br(e){return e.settings}function hr(e){return e.blocks.isPersistentChange}var mr=Object(nn.a)((function(e,t){var n=Object(p.find)(Or(e),(function(e){return e.id===t}));return n?Object(i.parse)(n.content):null}),(function(e){return[Or(e)]}));function vr(e){return e.blocks.isIgnoredChange}function gr(e){return e.lastBlockAttributesChange}function Or(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],sn)}function kr(e){return e.isNavigationMode}function yr(e){return e.didAutomaticChange}var jr={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(Ne.a)(e.blocks,2),a=o[0],s=o[1],u=pn(r,a),d=Object(i.getBlockType)(u.name);if(d.merge){var f=pn(r,s),b=Object(i.getBlockType)(f.name),h=yn(r),m=h.clientId,v=h.attributeKey,g=h.offset,O=(m===a||m===s)&&void 0!==v&&void 0!==g,k=Object(i.cloneBlock)(u),y=Object(i.cloneBlock)(f);if(O){var j=m===a?k:y,_=j.attributes[v],S=(m===a?d:b).attributes[v].multiline,C=Object(c.insert)(Object(c.create)({html:_,multilineTag:S}),"†",g,g);j.attributes[v]=Object(c.toHTMLString)({value:C,multilineTag:S})}var E=u.name===f.name?[y]:Object(i.switchToBlockType)(y,u.name);if(E&&E.length){var w=d.merge(k.attributes,E[0].attributes);if(O){var I=Object(p.findKey)(w,(function(e){return"string"==typeof e&&-1!==e.indexOf("†")})),B=w[I],T=d.attributes[I].multiline,x=Object(c.create)({html:B,multilineTag:T}),L=x.text.indexOf("†"),N=Object(c.remove)(x,L,L+1),A=Object(c.toHTMLString)({value:N,multilineTag:T});w[I]=A,n($t(u.clientId,I,L,L))}n(wt([u.clientId,f.clientId],[Object(l.a)({},u,{attributes:Object(l.a)({},u.attributes,w)})].concat(Object(Be.a)(E.slice(1)))))}}else n(gt(u.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=ir(n),o=cr(n),c=!r||"all"!==o||Object(i.doBlocksMatchTemplate)(e.blocks,r);if(c!==or(n))return Pt(c)}],MULTI_SELECT:function(e,t){var n=Cn((0,t.getState)());Object(tt.speak)(Object(H.sprintf)(Object(H._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=hn(n),o=ir(n);return bt(Object(i.synchronizeBlocksWithTemplate)(r,o))}};var _r=function(e){var t,n=[Je()(jr),et.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}};return t=n.map((function(e){return e(o)})),r=p.flowRight.apply(void 0,Object(Be.a)(t))(e.dispatch),e.dispatch=r,e},Sr={reducer:Xe,selectors:o,actions:r,controls:it},Cr=Object(m.registerStore)("core/block-editor",Object(l.a)({},Sr,{persist:["preferences"]}));_r(Cr);var Er=Object(b.createHigherOrderComponent)((function(e){return Object(m.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(Ae.a)(t,["useSubRegistry","registry"]);if(!r)return Object(u.createElement)(e,Object(s.a)({registry:o},i));var c=Object(u.useState)(null),a=Object(Ne.a)(c,2),l=a[0],d=a[1];return Object(u.useEffect)((function(){var e=Object(m.createRegistry)({},o),t=e.registerStore("core/block-editor",Sr);_r(t),d(e)}),[o]),l?Object(u.createElement)(m.RegistryProvider,{value:l},Object(u.createElement)(e,Object(s.a)({registry:l},i))):null}))}),"withRegistryProvider"),wr=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){this.props.updateSettings(this.props.settings),this.props.resetBlocks(this.props.value),this.attachChangeObserver(this.props.registry)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.settings,r=t.updateSettings,o=t.value,i=t.resetBlocks,c=t.registry;n!==e.settings&&r(n),c!==e.registry&&this.attachChangeObserver(c),null!==this.isSyncingOutcomingValue&&this.isSyncingOutcomingValue===o?this.isSyncingOutcomingValue=null:o!==e.value&&(this.isSyncingOutcomingValue=null,this.isSyncingIncomingValue=o,i(o))}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"attachChangeObserver",value:function(e){var t=this;this.unsubscribe&&this.unsubscribe();var n=e.select("core/block-editor"),r=n.getBlocks,o=n.isLastBlockChangePersistent,i=n.__unstableIsLastBlockChangeIgnored,c=r(),a=o();this.unsubscribe=e.subscribe((function(){var e=t.props,n=e.onChange,l=void 0===n?p.noop:n,s=e.onInput,u=void 0===s?p.noop:s,d=r(),f=o();if(d!==c&&(t.isSyncingIncomingValue||i()))return t.isSyncingIncomingValue=null,c=d,void(a=f);(d!==c||f&&!a)&&(d!==c&&(t.isSyncingOutcomingValue=d),c=d,(a=f)?l(c):u(c))}))}},{key:"render",value:function(){return this.props.children}}]),t}(u.Component),Ir=Object(b.compose)([Er,Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{updateSettings:t.updateSettings,resetBlocks:t.resetBlocks}}))])(wr),Br=function(e){var t=e.children,n=e.clientId,r=e.isBlockInSelection,o=Object(m.useSelect)((function(e){return e("core/block-editor").hasSelectedInnerBlock(n,!0)})),i=r||o;return Object(u.createElement)(m.__experimentalAsyncModeProvider,{value:!i},t)},Tr=n(66),xr=n(25);function Lr(e,t,n,r,o,i){var c=n+1;return e>1?function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(H.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(H.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(H.sprintf)(Object(H._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,i);if(o>0&&!r)return Object(H.sprintf)(Object(H._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,i)}(e,n,r,o,i):r&&o?Object(H.sprintf)(Object(H.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!o?Object(H.sprintf)(Object(H.__)("Move %1$s block from position %2$d down to position %3$d"),t,c,c+1):i>0&&o?Object(H.sprintf)(Object(H.__)("Block %s is at the end of the content and can’t be moved down"),t):i<0&&!r?Object(H.sprintf)(Object(H.__)("Move %1$s block from position %2$d up to position %3$d"),t,c,c-1):i<0&&r?Object(H.sprintf)(Object(H.__)("Block %s is at the beginning of the content and can’t be moved up"),t):void 0}var Nr=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Polygon,{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),Ar=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Polygon,{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),Mr=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Path,{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})),Rr=Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlockIndex,i=(0,r.getBlockRootClientId)(n);return{index:o(n,i),rootClientId:i}}))((function(e){var t=e.children,n=e.clientId,r=e.rootClientId,o=e.blockElementId,i=e.index,c=e.onDragStart,a=e.onDragEnd,l={type:"block",srcIndex:i,srcRootClientId:r,srcClientId:n};return Object(u.createElement)(P.Draggable,{elementId:o,transferData:l,onDragStart:c,onDragEnd:a},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:r})}))})),Pr=function(e){var t=e.isVisible,n=e.className,r=e.icon,o=e.onDragStart,i=e.onDragEnd,c=e.blockElementId,a=e.clientId;if(!t)return null;var l=f()("editor-block-mover__control-drag-handle block-editor-block-mover__control-drag-handle",n);return Object(u.createElement)(Rr,{clientId:a,blockElementId:c,onDragStart:o,onDragEnd:i},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return Object(u.createElement)("div",{className:l,"aria-hidden":"true",onDragStart:t,onDragEnd:n,draggable:!0},r)}))},Dr=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(E.a)(e)),e.onBlur=e.onBlur.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.onMoveUp,n=e.onMoveDown,r=e.isFirst,o=e.isLast,i=e.isDraggable,c=e.onDragStart,a=e.onDragEnd,l=e.clientIds,s=e.blockElementId,d=e.blockType,b=e.firstIndex,h=e.isLocked,m=e.instanceId,v=e.isHidden,g=e.rootClientId,O=this.state.isFocused,k=Object(p.castArray)(l).length;return h||r&&o&&!g?null:Object(u.createElement)("div",{className:f()("editor-block-mover block-editor-block-mover",{"is-visible":O||!v})},Object(u.createElement)(P.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:r?null:t,icon:Nr,label:Object(H.__)("Move up"),"aria-describedby":"block-editor-block-mover__up-description-".concat(m),"aria-disabled":r,onFocus:this.onFocus,onBlur:this.onBlur}),Object(u.createElement)(Pr,{className:"editor-block-mover__control block-editor-block-mover__control",icon:Mr,clientId:l,blockElementId:s,isVisible:i,onDragStart:c,onDragEnd:a}),Object(u.createElement)(P.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:o?null:n,icon:Ar,label:Object(H.__)("Move down"),"aria-describedby":"block-editor-block-mover__down-description-".concat(m),"aria-disabled":o,onFocus:this.onFocus,onBlur:this.onBlur}),Object(u.createElement)("span",{id:"block-editor-block-mover__up-description-".concat(m),className:"editor-block-mover__description block-editor-block-mover__description"},Lr(k,d&&d.title,b,r,o,-1)),Object(u.createElement)("span",{id:"block-editor-block-mover__down-description-".concat(m),className:"editor-block-mover__description block-editor-block-mover__description"},Lr(k,d&&d.title,b,r,o,1)))}}]),t}(u.Component),Fr=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockIndex,a=r.getTemplateLock,l=r.getBlockRootClientId,s=r.getBlockOrder,u=Object(p.castArray)(n),d=Object(p.first)(u),f=o(d),b=l(Object(p.first)(u)),h=s(b),m=c(d,b),v=c(Object(p.last)(u),b);return{blockType:f?Object(i.getBlockType)(f.name):null,isLocked:"all"===a(b),rootClientId:b,firstIndex:m,isFirst:0===m,isLast:v===h.length-1}})),Object(m.withDispatch)((function(e,t){var n=t.clientIds,r=t.rootClientId,o=e("core/block-editor"),i=o.moveBlocksDown,c=o.moveBlocksUp;return{onMoveDown:Object(p.partial)(i,n,r),onMoveUp:Object(p.partial)(c,n,r)}})),b.withInstanceId)(Dr);var Hr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(u.createElement)("div",{className:f()(t,"editor-warning block-editor-warning")},Object(u.createElement)("div",{className:"editor-warning__contents block-editor-warning__contents"},Object(u.createElement)("p",{className:"editor-warning__message block-editor-warning__message"},r),u.Children.count(n)>0&&Object(u.createElement)("div",{className:"editor-warning__actions block-editor-warning__actions"},u.Children.map(n,(function(e,t){return Object(u.createElement)("span",{key:t,className:"editor-warning__action block-editor-warning__action"},e)})))),o&&Object(u.createElement)(P.Dropdown,{className:"editor-warning__secondary block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(u.createElement)(P.IconButton,{icon:"ellipsis",label:Object(H.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(u.createElement)(P.MenuGroup,null,o.map((function(e,t){return Object(u.createElement)(P.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))},Ur=n(227),Vr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(u.createElement)("div",{className:c},Object(u.createElement)("div",{className:"editor-block-compare__content block-editor-block-compare__content"},Object(u.createElement)("h2",{className:"editor-block-compare__heading block-editor-block-compare__heading"},t),Object(u.createElement)("div",{className:"editor-block-compare__html block-editor-block-compare__html"},n),Object(u.createElement)("div",{className:"editor-block-compare__preview block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(u.createElement)("div",{className:"editor-block-compare__action block-editor-block-compare__action"},Object(u.createElement)(P.Button,{isLarge:!0,tabIndex:"0",onClick:o},i)))},zr=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"getDifference",value:function(e,t){return Object(Ur.diffChars)(e,t).map((function(e,t){var n=f()({"editor-block-compare__added block-editor-block-compare__added":e.added,"editor-block-compare__removed block-editor-block-compare__removed":e.removed});return Object(u.createElement)("span",{key:t,className:n},e.value)}))}},{key:"getOriginalContent",value:function(e){return{rawContent:e.originalContent,renderedContent:Object(i.getSaveElement)(e.name,e.attributes)}}},{key:"getConvertedContent",value:function(e){var t=Object(p.castArray)(e),n=t.map((function(e){return Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),r=t.map((function(e){return Object(i.getSaveElement)(e.name,e.attributes,e.innerBlocks)}));return{rawContent:n.join(""),renderedContent:r}}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.onKeep,r=e.onConvert,o=e.convertor,i=e.convertButtonText,c=this.getOriginalContent(t),a=this.getConvertedContent(o(t)),l=this.getDifference(c.rawContent,a.rawContent);return Object(u.createElement)("div",{className:"editor-block-compare__wrapper block-editor-block-compare__wrapper"},Object(u.createElement)(Vr,{title:Object(H.__)("Current"),className:"editor-block-compare__current block-editor-block-compare__current",action:n,actionText:Object(H.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(u.createElement)(Vr,{title:Object(H.__)("After Conversion"),className:"editor-block-compare__converted block-editor-block-compare__converted",action:r,actionText:i,rawContent:l,renderedContent:a.renderedContent}))}}]),t}(u.Component),Kr=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(E.a)(n)),n.onCompareClose=n.onCompareClose.bind(Object(E.a)(n)),n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,c=e.block,a=!!Object(i.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(H.__)("Convert to Classic Block"),onClick:r},{title:Object(H.__)("Attempt Block Recovery"),onClick:o}];return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Hr,{actions:[Object(u.createElement)(P.Button,{key:"convert",onClick:this.onCompare,isLarge:!0,isPrimary:!a},Object(H._x)("Resolve","imperative verb")),a&&Object(u.createElement)(P.Button,{key:"edit",onClick:t,isLarge:!0,isPrimary:!0},Object(H.__)("Convert to HTML"))],secondaryActions:s},Object(H.__)("This block contains unexpected or invalid content.")),l&&Object(u.createElement)(P.Modal,{title:Object(H.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"editor-block-compare block-editor-block-compare"},Object(u.createElement)(zr,{block:c,onKeep:t,onConvert:n,convertor:Wr,convertButtonText:Object(H.__)("Convert to Blocks")})))}}]),t}(u.Component),Wr=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},qr=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(m.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Wr(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(i.createBlock)(t,o,c)))}}}))])(Kr),Gr=Object(u.createElement)(Hr,{className:"block-editor-block-list__block-crash-warning"},Object(H.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return Gr},Yr=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),t}(u.Component),Xr=n(64),Zr=n.n(Xr),Jr=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(E.a)(n)),n.onBlur=n.onBlur.bind(Object(E.a)(n)),n.state={html:e.block.isValid?Object(i.getBlockContent)(e.block):e.block.originalContent},n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(e){Object(p.isEqual)(this.props.block.attributes,e.block.attributes)||this.setState({html:Object(i.getBlockContent)(this.props.block)})}},{key:"onBlur",value:function(){var e=this.state.html,t=Object(i.getBlockType)(this.props.block.name),n=Object(i.getBlockAttributes)(t,e,this.props.block.attributes),r=e||Object(i.getSaveContent)(t,n),o=!e||Object(i.isValidBlockContent)(t,n,r);this.props.onChange(this.props.clientId,n,r,o),e||this.setState({html:r})}},{key:"onChange",value:function(e){this.setState({html:e.target.value})}},{key:"render",value:function(){var e=this.state.html;return Object(u.createElement)(Zr.a,{className:"editor-block-list__block-html-textarea block-editor-block-list__block-html-textarea",value:e,onBlur:this.onBlur,onChange:this.onChange})}}]),t}(u.Component),Qr=Object(b.compose)([Object(m.withSelect)((function(e,t){return{block:e("core/block-editor").getBlock(t.clientId)}})),Object(m.withDispatch)((function(e){return{onChange:function(t,n,r,o){e("core/block-editor").updateBlock(t,{attributes:n,originalContent:r,isValid:o})}}}))])(Jr);var eo=Object(m.withSelect)((function(e,t){return{name:(0,e("core/block-editor").getBlockName)(t.clientId)}}))((function(e){var t=e.name;if(!t)return null;var n=Object(i.getBlockType)(t);return n?n.title:null})),to=Object(u.forwardRef)((function(e,t){var n=e.clientId,r=Object(m.useDispatch)("core/block-editor").setNavigationMode,o=Object(m.useSelect)((function(e){return{rootClientId:e("core/block-editor").getBlockRootClientId(n)}})).rootClientId;return Object(u.createElement)("div",{className:"editor-block-list__breadcrumb block-editor-block-list__breadcrumb"},Object(u.createElement)(P.Toolbar,null,o&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(eo,{clientId:o}),Object(u.createElement)("span",{className:"editor-block-list__descendant-arrow block-editor-block-list__descendant-arrow"})),Object(u.createElement)(P.Button,{ref:t,onClick:function(){return r(!1)}},Object(u.createElement)(eo,{clientId:n}))))})),no=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).focusToolbar=e.focusToolbar.bind(Object(E.a)(e)),e.toolbar=Object(u.createRef)(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"focusToolbar",value:function(){var e=xr.focus.tabbable.find(this.toolbar.current);e.length&&e[0].focus()}},{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusToolbar(),this.toolbar.current.addEventListener("keydown",this.switchOnKeyDown)}},{key:"componentwillUnmount",value:function(){this.toolbar.current.removeEventListener("keydown",this.switchOnKeyDown)}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(Ae.a)(e,["children"]);return Object(u.createElement)(P.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:this.toolbar},Object(p.omit)(n,["focusOnMount"])),Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":this.focusToolbar}}),t)}}]),t}(u.Component);var ro=function(e){var t=e.focusOnMount;return Object(u.createElement)(no,{focusOnMount:t,className:"editor-block-contextual-toolbar block-editor-block-contextual-toolbar","aria-label":Object(H.__)("Block tools")},Object(u.createElement)(wc,null))};var oo=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getMultiSelectedBlockClientIds,r=t.isMultiSelecting;return{multiSelectedBlockClientIds:n(),isSelecting:r()}}))((function(e){var t=e.multiSelectedBlockClientIds;return e.isSelecting?null:Object(u.createElement)(Fr,{clientIds:t})}));var io=Object(a.ifViewportMatches)("< small")((function(e){var t=e.clientId;return Object(u.createElement)("div",{className:"editor-block-list__block-mobile-toolbar block-editor-block-list__block-mobile-toolbar"},Object(u.createElement)(zo,null),Object(u.createElement)(Fr,{clientIds:[t]}))})),co=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={isInserterFocused:!1},e.onBlurInserter=e.onBlurInserter.bind(Object(E.a)(e)),e.onFocusInserter=e.onFocusInserter.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onFocusInserter",value:function(e){e.stopPropagation(),this.setState({isInserterFocused:!0})}},{key:"onBlurInserter",value:function(){this.setState({isInserterFocused:!1})}},{key:"render",value:function(){var e=this.state.isInserterFocused,t=this.props,n=t.showInsertionPoint,r=t.rootClientId,o=t.clientId;return Object(u.createElement)("div",{className:"editor-block-list__insertion-point block-editor-block-list__insertion-point"},n&&Object(u.createElement)("div",{className:"editor-block-list__insertion-point-indicator block-editor-block-list__insertion-point-indicator"}),Object(u.createElement)("div",{onFocus:this.onFocusInserter,onBlur:this.onBlurInserter,tabIndex:-1,className:f()("editor-block-list__insertion-point-inserter block-editor-block-list__insertion-point-inserter",{"is-visible":e})},Object(u.createElement)(zo,{rootClientId:r,clientId:o})))}}]),t}(u.Component),ao=Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),i=o.getBlockIndex,c=o.getBlockInsertionPoint,a=o.isBlockInsertionPointVisible,l=i(n,r),s=c();return{showInsertionPoint:a()&&s.index===l&&s.rootClientId===r}}))(co),lo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).proxyEvent=e.proxyEvent.bind(Object(E.a)(e)),e.eventMap={},e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"proxyEvent",value:function(e){var t=!!e.nativeEvent._blockHandled;e.nativeEvent._blockHandled=!0;var n=this.eventMap[e.type];t&&(n+="Handled"),this.props[n]&&this.props[n](e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.childHandledEvents,r=void 0===n?[]:n,o=t.forwardedRef,i=t.tagName,c=void 0===i?"div":i,a=Object(Ae.a)(t,["childHandledEvents","forwardedRef","tagName"]),s=Object(p.reduce)([].concat(Object(Be.a)(r),Object(Be.a)(Object.keys(a))),(function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(r){!!r[2]&&delete a[n];var o="on"+r[1];t[o]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=o}return t}),{});return Object(u.createElement)(c,Object(l.a)({ref:o},a,s))}}]),t}(u.Component),so=function(e,t){return Object(u.createElement)(lo,Object(s.a)({},e,{forwardedRef:t}))};so.displayName="IgnoreNestedEvents";var uo=Object(u.forwardRef)(so);var fo=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getInserterItems,i=r.getTemplateLock;return{items:o(n),isLocked:!!i(n)}})),Object(m.withDispatch)((function(e,t){var n=t.clientId,r=t.rootClientId;return{onInsert:function(t){var o=t.name,c=t.initialAttributes,a=Object(i.createBlock)(o,c);n?e("core/block-editor").replaceBlocks(n,a):e("core/block-editor").insertBlock(a,void 0,r)}}})))((function(e){var t=e.items,n=e.isLocked,r=e.onInsert;if(n)return null;var o=Object(p.filter)(t,(function(e){return!(e.isDisabled||e.name===Object(i.getDefaultBlockName)()&&Object(p.isEmpty)(e.initialAttributes))})).slice(0,3);return Object(u.createElement)("div",{className:"editor-inserter-with-shortcuts block-editor-inserter-with-shortcuts"},o.map((function(e){return Object(u.createElement)(P.IconButton,{key:e.id,className:"editor-inserter-with-shortcuts__block block-editor-inserter-with-shortcuts__block",onClick:function(){return r(e)},label:Object(H.sprintf)(Object(H.__)("Add %s"),e.title),icon:Object(u.createElement)(be,{icon:e.icon})})})))}));function po(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector('[data-block="'+e+'"]')}var bo=function(e){return e+1},ho=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var mo=function(e,t,n,r,o){var i=Object(b.useReducedMotion)()||!r,c=Object(u.useReducer)(bo,0),a=Object(Ne.a)(c,2),l=a[0],s=a[1],d=Object(u.useReducer)(bo,0),f=Object(Ne.a)(d,2),p=f[0],h=f[1],m=Object(u.useState)({x:0,y:0,scrollTop:0}),v=Object(Ne.a)(m,2),g=v[0],O=v[1],k=e.current?ho(e.current):null,y=Object(u.useMemo)((function(){return!!n&&Object(xr.getScrollContainer)(e.current)}),[n]);Object(u.useLayoutEffect)((function(){l&&h()}),[l]),Object(u.useLayoutEffect)((function(){if(i){if(n&&y){e.current.style.transform="none";var t=ho(e.current);y.scrollTop=y.scrollTop-k.top+t.top}}else{e.current.style.transform="none";var r=ho(e.current),o={x:k?k.left-r.left:0,y:k?k.top-r.top:0,scrollTop:k&&y?y.scrollTop-k.top+r.top:0};e.current.style.transform=0===o.x&&0===o.y?void 0:"translate3d(".concat(o.x,"px,").concat(o.y,"px,0)"),s(),O(o)}}),[o]);var j=Object(Tr.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:l!==p,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:function(e){n&&y&&!i&&e.y&&(y.scrollTop=g.scrollTop+e.y)}});return i?{}:{transformOrigin:"center",transform:Object(Tr.interpolate)([j.x,j.y],(function(e,t){return 0===e&&0===t?void 0:"translate3d(".concat(e,"px,").concat(t,"px,0)")})),zIndex:Object(Tr.interpolate)([j.x,j.y],(function(e,n){return!t||0===e&&0===n?void 0:"1"}))}},vo=function(e){e.preventDefault()};var go=Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=t.isLargeViewport,c=e("core/block-editor"),a=c.isBlockSelected,l=c.isAncestorMultiSelected,s=c.isBlockMultiSelected,u=c.isFirstMultiSelectedBlock,d=c.isTyping,f=c.isCaretWithinFormattedText,p=c.getBlockMode,b=c.isSelectionEnabled,h=c.getSelectedBlocksInitialCaretPosition,m=c.getSettings,v=c.hasSelectedInnerBlock,g=c.getTemplateLock,O=c.getBlockIndex,k=c.getBlockOrder,y=c.__unstableGetBlockWithoutInnerBlocks,j=c.isNavigationMode,_=y(n),S=a(n),C=m(),E=C.hasFixedToolbar,w=C.focusMode,I=C.isRTL,B=g(r),T=v(n,!0),x=O(n,r),L=k(r),N=_||{},A=N.name,M=N.attributes,R=N.isValid;return{isPartOfMultiSelection:s(n)||l(n),isFirstMultiSelected:u(n),isTypingWithinBlock:(S||T)&&d(),isCaretWithinFormattedText:f(),mode:p(n),isSelectionEnabled:b(),initialPosition:S?h():null,isEmptyDefaultBlock:A&&Object(i.isUnmodifiedDefaultBlock)({name:A,attributes:M}),isMovable:"all"!==B,isLocked:!!B,isFocusMode:w&&o,hasFixedToolbar:E&&o,isLast:x===L.length-1,isNavigationMode:j(),isRTL:I,block:_,name:A,attributes:M,isValid:R,isSelected:S,isParentOfSelectedBlock:T}})),Oo=Object(m.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.updateBlockAttributes,a=o.selectBlock,l=o.multiSelect,s=o.insertBlocks,u=o.insertDefaultBlock,d=o.removeBlock,f=o.mergeBlocks,p=o.replaceBlocks,b=o.toggleSelection,h=o.setNavigationMode,m=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId;c(n,e)},onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.clientId,n=arguments.length>1?arguments[1]:void 0;a(e,n)},onInsertBlocks:function(e,n){var r=t.rootClientId;s(e,n,r)},onInsertDefaultBlockAfter:function(){var e=t.clientId,n=t.rootClientId,o=(0,r("core/block-editor").getBlockIndex)(e,n);u({},n,o+1)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,i=(0,r("core/block-editor").getBlockIndex)(n,o);s(e,i+1,o)},onRemove:function(e){d(e)},onMerge:function(e){var n=t.clientId,o=r("core/block-editor"),i=o.getPreviousBlockClientId,c=o.getNextBlockClientId;if(e){var a=c(n);a&&f(n,a)}else{var l=i(n);l&&f(l,n)}},onReplace:function(e,n){e.length&&!Object(i.isUnmodifiedDefaultBlock)(e[e.length-1])&&m(),p([t.clientId],e,n)},onShiftSelection:function(){if(t.isSelectionEnabled){var e=r("core/block-editor").getBlockSelectionStart;e()?l(e(),t.clientId):a(t.clientId)}},toggleSelection:function(e){b(e)},enableNavigationMode:function(){h(!0)}}})),ko=Object(b.compose)(b.pure,Object(a.withViewportMatch)({isLargeViewport:"medium"}),go,Oo,Object(b.ifCondition)((function(e){return!!e.block})),Object(P.withFilters)("editor.BlockListBlock"))((function(e){var t=e.blockRef,n=e.mode,r=e.isFocusMode,o=e.hasFixedToolbar,c=e.isLocked,a=e.clientId,d=e.rootClientId,b=e.isSelected,h=e.isPartOfMultiSelection,m=e.isFirstMultiSelected,v=e.isTypingWithinBlock,g=e.isCaretWithinFormattedText,O=e.isEmptyDefaultBlock,k=e.isMovable,y=e.isParentOfSelectedBlock,j=e.isDraggable,_=e.isSelectionEnabled,S=e.className,C=e.name,E=e.isValid,w=e.isLast,I=e.attributes,B=e.initialPosition,T=e.wrapperProps,x=e.setAttributes,L=e.onReplace,N=e.onInsertBlocksAfter,A=e.onMerge,M=e.onSelect,R=e.onRemove,D=e.onInsertDefaultBlockAfter,F=e.toggleSelection,U=e.onShiftSelection,V=e.onSelectionStart,z=e.animateOnChange,K=e.enableAnimation,W=e.isNavigationMode,q=e.enableNavigationMode,G=Object(u.useState)({}),$=Object(Ne.a)(G,2)[1],Y=Object(u.useRef)(null);Object(u.useEffect)((function(){t(Y.current,a)}),[]);var X=Object(u.useRef)(),Z=Object(u.useRef)(),J=Object(u.useRef)(!1),Q=Object(u.useState)(!1),ee=Object(Ne.a)(Q,2),te=ee[0],ne=ee[1],re=function(){te&&ne(!1)};Object(u.useEffect)((function(){(v||b)&&re()}));var oe=Object(u.useState)(!1),ie=Object(Ne.a)(oe,2),ce=ie[0],ae=ie[1],se=Object(u.useState)(!1),ue=Object(Ne.a)(se,2),de=ue[0],fe=ue[1],pe=Object(u.useRef)(!1);Object(u.useEffect)((function(){pe.current&&(pe.current=!1)}));var be=function(e){if(!Y.current.contains(document.activeElement))if(W)Z.current.focus();else{var t=xr.focus.tabbable.find(X.current).filter(xr.isTextField).filter((function(t){return!e||(n=X.current,r=t,o=n.querySelector(".block-editor-block-list__layout"),n.contains(r)&&(!o||!o.contains(r)));var n,r,o})),n=-1===B,r=(n?p.last:p.first)(t);r?Object(xr.placeCaretAtHorizontalEdge)(r,n):Y.current.focus()}},me=Object(u.useRef)(!0);Object(u.useEffect)((function(){b&&be(!me.current),me.current=!1}),[b]),Object(u.useEffect)((function(){m&&Y.current.focus()}),[m]);var ve=mo(Y,b||h,b||m,K,z);Object(u.useLayoutEffect)((function(){b&&(W?Z.current.focus():be(!0))}),[b,W]);var ge=function(e){e&&!b&&M()},Oe=te&&!h,ke=Object(i.getBlockType)(C),ye=Object(H.sprintf)(Object(H.__)("Block: %s"),ke.title),je=C===Object(i.getUnregisteredTypeHandlerName)(),_e=!W&&(b||Oe)&&O&&E,Se=!W&&(b||Oe||w)&&O&&E,Ce=!r&&!Se&&b&&!v,Ee=!r&&!o&&Oe&&!O,we=!W&&b&&!Se&&!h&&!v,Be=b&&W||!W&&!r&&Oe&&!O,Te=!W&&!o&&!Se&&(b&&(!v||g)||m),xe=!W&&Ce,Le=h&&m||!h,Ae=f()("wp-block editor-block-list__block block-editor-block-list__block",{"has-warning":!E||!!de||je,"is-selected":Ce,"is-navigate-mode":W,"is-multi-selected":h,"is-hovered":Ee,"is-reusable":Object(i.isReusableBlock)(ke),"is-dragging":ce,"is-typing":v,"is-focused":r&&(b||y),"is-focus-mode":r,"has-child-selected":y},S);ke.getEditWrapperProps&&(T=Object(l.a)({},T,ke.getEditWrapperProps(I)));var Me="block-".concat(a),Re=Object(u.createElement)(le,{name:C,isSelected:b,attributes:I,setAttributes:x,insertBlocksAfter:c?void 0:N,onReplace:c?void 0:L,mergeBlocks:c?void 0:A,clientId:a,isSelectionEnabled:_,toggleSelection:F});return"visual"!==n&&(Re=Object(u.createElement)("div",{style:{display:"none"}},Re)),Object(u.createElement)(uo,Object(s.a)({id:Me,ref:Y,onMouseOver:function(){te||h||b||J.current||ne(!0)},onMouseOverHandled:re,onMouseLeave:re,className:Ae,"data-type":C,onTouchStart:function(){J.current=!0},onFocus:function(){b||h||M()},onClick:function(){J.current=!1},onKeyDown:function(e){var t=e.keyCode,n=e.target,r=b&&!c&&(n===Y.current||n===Z.current),o=!W;switch(t){case he.ENTER:r&&o&&(D(),e.preventDefault());break;case he.BACKSPACE:case he.DELETE:r&&(R(a),e.preventDefault());break;case he.ESCAPE:b&&o&&(q(),Y.current.focus())}},tabIndex:"0","aria-label":ye,childHandledEvents:["onDragStart","onMouseDown"],tagName:Tr.animated.div},T,{style:T&&T.style?Object(l.a)({},T.style,ve):ve}),Le&&Object(u.createElement)(ao,{clientId:a,rootClientId:d}),Object(u.createElement)(Ie,{clientId:a,rootClientId:d}),m&&Object(u.createElement)(oo,{rootClientId:d}),Object(u.createElement)("div",{className:"editor-block-list__block-edit block-editor-block-list__block-edit"},we&&Object(u.createElement)(Fr,{clientIds:a,blockElementId:Me,isHidden:!b,isDraggable:!1!==j&&!h&&k,onDragStart:function(){ae(!0)},onDragEnd:function(){ae(!1)}}),Be&&Object(u.createElement)(to,{clientId:a,ref:Z}),(Te||pe.current)&&Object(u.createElement)(ro,{focusOnMount:pe.current}),!W&&!Te&&b&&!o&&!O&&Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":function(){pe.current=!0,$({})}}}),Object(u.createElement)(uo,{ref:X,onDragStart:vo,onMouseDown:function(e){0===e.button&&(e.shiftKey?b||(U(),e.preventDefault()):X.current.contains(e.target)&&(V(a),h&&M()))},"data-block":a},Object(u.createElement)(Yr,{onError:function(){return fe(!0)}},E&&Re,E&&"html"===n&&Object(u.createElement)(Qr,{clientId:a}),!E&&[Object(u.createElement)(qr,{key:"invalid-warning",clientId:a}),Object(u.createElement)("div",{key:"invalid-preview"},Object(i.getSaveElement)(ke,I))]),!!de&&Object(u.createElement)($r,null),xe&&Object(u.createElement)(io,{clientId:a}))),_e&&Object(u.createElement)("div",{className:"editor-block-list__side-inserter block-editor-block-list__side-inserter"},Object(u.createElement)(fo,{clientId:a,rootClientId:d,onToggle:ge})),Se&&Object(u.createElement)("div",{className:"editor-block-list__empty-block-inserter block-editor-block-list__empty-block-inserter"},Object(u.createElement)(zo,{position:"top right",onToggle:ge,rootClientId:d,clientId:a})))})),yo=n(54);var jo=Object(b.compose)(Object(b.withState)({hovered:!1}),Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(i.getDefaultBlockName)(),d=c(t.lastBlockClientId),f=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:f}})),Object(m.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,i=e.placeholder,c=e.rootClientId,a=e.hovered,l=e.setState;if(t||!n)return null;var s=Object(yo.decodeEntities)(i)||Object(H.__)("Start writing or type / to choose a block");return Object(u.createElement)("div",{"data-root-client-id":c||"",className:"wp-block editor-default-block-appender block-editor-default-block-appender",onMouseEnter:function(){return l({hovered:!0})},onMouseLeave:function(){return l({hovered:!1})}},Object(u.createElement)(Ie,{rootClientId:c}),Object(u.createElement)(Zr.a,{role:"button","aria-label":Object(H.__)("Add block"),className:"editor-default-block-appender__content block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?s:""}),a&&Object(u.createElement)(fo,{rootClientId:c}),Object(u.createElement)(zo,{rootClientId:c,position:"top right",isAppender:!0}))}));var _o=Object(m.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,c=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(i.getDefaultBlockName)(),n)}}))((function(e){var t=e.blockClientIds,n=e.rootClientId,r=e.canInsertDefaultBlock,o=e.isLocked,i=e.renderAppender;return o?null:i?Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(i,null)):!1===i?null:r?Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(uo,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(u.createElement)(jo,{rootClientId:n,lastBlockClientId:Object(p.last)(t)}))):Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(Ko,{rootClientId:n,className:"block-list-appender__toggle"}))})),So=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).call(this,e))).onSelectionStart=n.onSelectionStart.bind(Object(E.a)(n)),n.onSelectionEnd=n.onSelectionEnd.bind(Object(E.a)(n)),n.setBlockRef=n.setBlockRef.bind(Object(E.a)(n)),n.setLastClientY=n.setLastClientY.bind(Object(E.a)(n)),n.onPointerMove=Object(p.throttle)(n.onPointerMove.bind(Object(E.a)(n)),100),n.onScroll=function(){return n.onPointerMove({clientY:n.lastClientY})},n.lastClientY=0,n.nodes={},n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("mousemove",this.setLastClientY)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mousemove",this.setLastClientY)}},{key:"setLastClientY",value:function(e){var t=e.clientY;this.lastClientY=t}},{key:"setBlockRef",value:function(e,t){null===e?delete this.nodes[t]:this.nodes=Object(l.a)({},this.nodes,Object(I.a)({},t,e))}},{key:"onPointerMove",value:function(e){var t=e.clientY;this.props.isMultiSelecting||this.props.onStartMultiSelect();var n=po(this.selectionAtStart).getBoundingClientRect();if(!(t>=n.top&&t<=n.bottom)){var r=t-n.top,o=Object(p.findLast)(this.coordMapKeys,(function(e){return ec.height*l?(i.height-c.height*l)/2:0;p(l),O({x:s*l,y:u}),o.style.marginTop="0"}else{var d=e.getBoundingClientRect();p(d.width/n)}a(!0)}}),100);return function(){e&&window.clearTimeout(e)}}),[]),!t||0===t.length)return null;var k={transform:"scale(".concat(d,")"),visibility:c?"visible":"hidden",left:-v,top:g,width:n};return Object(u.createElement)("div",{ref:r,className:f()("block-editor-block-preview__container editor-styles-wrapper",{"is-ready":c}),"aria-hidden":!0},Object(u.createElement)(P.Disabled,{style:k,className:"block-editor-block-preview__content"},Object(u.createElement)(Co,null)))}var wo=Object(m.withSelect)((function(e){return{settings:e("core/block-editor").getSettings()}}))((function(e){var t=e.blocks,n=e.viewportWidth,r=void 0===n?700:n,o=e.settings,i=Object(u.useMemo)((function(){return Object(p.castArray)(t)}),[t]),c=Object(u.useReducer)((function(e){return e+1}),0),a=Object(Ne.a)(c,2),l=a[0],s=a[1];return Object(u.useLayoutEffect)(s,[t]),Object(u.createElement)(Ir,{value:i,settings:o},Object(u.createElement)(Eo,{key:l,blocks:i,viewportWidth:r}))}));var Io=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,i=e.className,c=Object(Ae.a)(e,["icon","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(u.createElement)("li",{className:"editor-block-types-list__list-item block-editor-block-types-list__list-item"},Object(u.createElement)("button",Object(s.a)({className:f()("editor-block-types-list__item block-editor-block-types-list__item",i),onClick:function(e){e.preventDefault(),n()},disabled:r},c),Object(u.createElement)("span",{className:"editor-block-types-list__item-icon block-editor-block-types-list__item-icon",style:a},Object(u.createElement)(be,{icon:t,showColors:!0})),Object(u.createElement)("span",{className:"editor-block-types-list__item-title block-editor-block-types-list__item-title"},o)))};var Bo=function(e){var t=e.items,n=e.onSelect,r=e.onHover,o=void 0===r?function(){}:r,c=e.children;return(Object(u.createElement)("ul",{role:"list",className:"editor-block-types-list block-editor-block-types-list"},t&&t.map((function(e){return Object(u.createElement)(Io,{key:e.id,className:Object(i.getBlockMenuDefaultClassName)(e.id),icon:e.icon,onClick:function(){n(e),o(null)},onFocus:function(){return o(e)},onMouseEnter:function(){return o(e)},onMouseLeave:function(){return o(null)},onBlur:function(){return o(null)},isDisabled:e.isDisabled,title:e.title})})),c))};var To=function(e){var t=e.blockType;return Object(u.createElement)("div",{className:"block-editor-block-card"},Object(u.createElement)(be,{icon:t.icon,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-block-card__content"},Object(u.createElement)("div",{className:"block-editor-block-card__title"},t.title),Object(u.createElement)("div",{className:"block-editor-block-card__description"},t.description)))};var xo=Object(b.compose)(Object(b.ifCondition)((function(e){var t=e.items;return t&&t.length>0})),Object(m.withSelect)((function(e,t){var n=t.rootClientId,r=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(n));return{rootBlockTitle:r&&r.title,rootBlockIcon:r&&r.icon}})))((function(e){var t=e.rootBlockIcon,n=e.rootBlockTitle,r=e.items,o=Object(Ae.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(u.createElement)("div",{className:"editor-inserter__child-blocks block-editor-inserter__child-blocks"},(t||n)&&Object(u.createElement)("div",{className:"editor-inserter__parent-block-header block-editor-inserter__parent-block-header"},Object(u.createElement)(be,{icon:t,showColors:!0}),n&&Object(u.createElement)("h2",null,n)),Object(u.createElement)(Bo,Object(s.a)({items:r},o)))})),Lo=Object(P.createSlotFill)("__experimentalInserterMenuExtension"),No=Lo.Fill,Ao=Lo.Slot;No.Slot=Ao;var Mo=No,Ro=function(e){return e.stopPropagation()},Po=function(e,t){var n=Do(t),r=function(e){return-1!==Do(e).indexOf(n)},o=Object(i.getCategories)();return e.filter((function(e){var t=Object(p.find)(o,{slug:e.category});return r(e.title)||Object(p.some)(e.keywords,r)||t&&r(t.title)}))},Do=function(e){return e=(e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase()).trim()},Fo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(E.a)(e)),e.onHover=e.onHover.bind(Object(E.a)(e)),e.panels={},e.inserterResults=Object(u.createRef)(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchReusableBlocks(),this.filter()}},{key:"componentDidUpdate",value:function(e){e.items!==this.props.items&&this.filter(this.state.filterValue)}},{key:"onChangeSearchInput",value:function(e){this.filter(e.target.value)}},{key:"onHover",value:function(e){this.setState({hoveredItem:e});var t=this.props,n=t.showInsertionPoint,r=t.hideInsertionPoint;e?n():r()}},{key:"bindPanel",value:function(e){var t=this;return function(n){t.panels[e]=n}}},{key:"onTogglePanel",value:function(e){var t=this;return function(){-1!==t.state.openPanels.indexOf(e)?t.setState({openPanels:Object(p.without)(t.state.openPanels,e)}):(t.setState({openPanels:[].concat(Object(Be.a)(t.state.openPanels),[e])}),t.props.setTimeout((function(){xe()(t.panels[e],t.inserterResults.current,{alignWithTop:!0})})))}}},{key:"filterOpenPanels",value:function(e,t,n,r){if(e===this.state.filterValue)return this.state.openPanels;if(!e)return["suggested"];var o=[];return r.length>0&&o.push("reusable"),n.length>0&&(o=o.concat(Object.keys(t))),o}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.debouncedSpeak,r=t.items,o=t.rootChildBlocks,c=Po(r,e),a=Object(p.filter)(c,(function(e){var t=e.name;return Object(p.includes)(o,t)})),l=[];if(!e){var s=this.props.maxSuggestedItems||9;l=Object(p.filter)(r,(function(e){return e.utility>0})).slice(0,s)}var u=Object(p.filter)(c,{category:"reusable"}),d=function(e){return Object(p.findIndex)(Object(i.getCategories)(),(function(t){return t.slug===e.category}))},f=Object(p.flow)((function(e){return Object(p.filter)(e,(function(e){return"reusable"!==e.category}))}),(function(e){return Object(p.sortBy)(e,d)}),(function(e){return Object(p.groupBy)(e,"category")}))(c);this.setState({hoveredItem:null,childItems:a,filterValue:e,suggestedItems:l,reusableItems:u,itemsPerCategory:f,openPanels:this.filterOpenPanels(e,f,c,u)});var b=Object.keys(f).reduce((function(e,t){return e+f[t].length}),0),h=Object(H.sprintf)(Object(H._n)("%d result found.","%d results found.",b),b);n(h)}},{key:"onKeyDown",value:function(e){Object(p.includes)([he.LEFT,he.DOWN,he.RIGHT,he.UP,he.BACKSPACE,he.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.onSelect,o=t.rootClientId,c=t.showInserterHelpPanel,a=this.state,l=a.childItems,s=a.hoveredItem,d=a.itemsPerCategory,b=a.openPanels,h=a.reusableItems,m=a.suggestedItems,v=a.filterValue,g=function(e){return-1!==b.indexOf(e)},O=!Object(p.isEmpty)(m)||!Object(p.isEmpty)(h)||!Object(p.isEmpty)(d),k=s?Object(i.getBlockType)(s.name):null,y=O&&c;return Object(u.createElement)("div",{className:f()("editor-inserter__menu block-editor-inserter__menu",{"has-help-panel":y}),onKeyPress:Ro,onKeyDown:this.onKeyDown},Object(u.createElement)("div",{className:"block-editor-inserter__main-area"},Object(u.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(n),className:"screen-reader-text"},Object(H.__)("Search for a block")),Object(u.createElement)("input",{id:"block-editor-inserter__search-".concat(n),type:"search",placeholder:Object(H.__)("Search for a block"),className:"editor-inserter__search block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(u.createElement)("div",{className:"editor-inserter__results block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(H.__)("Available block types")},Object(u.createElement)(xo,{rootClientId:o,items:l,onSelect:r,onHover:this.onHover}),!!m.length&&Object(u.createElement)(P.PanelBody,{title:Object(H._x)("Most Used","blocks"),opened:g("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(u.createElement)(Bo,{items:m,onSelect:r,onHover:this.onHover})),Object(p.map)(Object(i.getCategories)(),(function(t){var n=d[t.slug];return n&&n.length?Object(u.createElement)(P.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:g(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(u.createElement)(Bo,{items:n,onSelect:r,onHover:e.onHover})):null})),!!h.length&&Object(u.createElement)(P.PanelBody,{className:"editor-inserter__reusable-blocks-panel block-editor-inserter__reusable-blocks-panel",title:Object(H.__)("Reusable"),opened:g("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(u.createElement)(Bo,{items:h,onSelect:r,onHover:this.onHover}),Object(u.createElement)("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:Object(Le.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(H.__)("Manage All Reusable Blocks"))),Object(u.createElement)(Mo.Slot,{fillProps:{onSelect:r,onHover:this.onHover,filterValue:v,hasItems:O}},(function(e){return e.length?e:O?null:Object(u.createElement)("p",{className:"editor-inserter__no-results block-editor-inserter__no-results"},Object(H.__)("No blocks found."))})))),y&&Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel"},s&&Object(u.createElement)(u.Fragment,null,!Object(i.isReusableBlock)(s)&&Object(u.createElement)(To,{blockType:k}),(Object(i.isReusableBlock)(s)||k.example)&&Object(u.createElement)("div",{className:"block-editor-inserter__preview"},Object(u.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(u.createElement)(wo,{viewportWidth:500,blocks:k.example?Object(i.getBlockFromExample)(s.name,k.example):Object(i.createBlock)(s.name,s.initialAttributes)})))),!s&&Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block"},Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block-text"},Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-title"},Object(H.__)("Content Blocks")),Object(u.createElement)("p",null,Object(H.__)("Welcome to the wonderful world of blocks! Blocks are the basis of all content within the editor.")),Object(u.createElement)("p",null,Object(H.__)("There are blocks available for all kinds of content: insert text, headings, images, lists, videos, tables, and lots more.")),Object(u.createElement)("p",null,Object(H.__)("Browse through the library to learn more about what each block does."))),Object(u.createElement)(P.Tip,null,Object(H.__)('While writing, you can press "/" to quickly insert new blocks.')))))}}]),t}(u.Component),Ho=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.isAppender,o=t.rootClientId,i=t.showInserterHelpPanel,c=e("core/block-editor"),a=c.getInserterItems,l=c.getBlockName,s=c.getBlockRootClientId,u=c.getBlockSelectionEnd,d=c.getSettings,f=e("core/blocks").getChildBlockNames,p=o;if(!p&&!n&&!r){var b=u();b&&(p=s(b)||void 0)}return{rootChildBlocks:f(l(p)),items:a(p),showInserterHelpPanel:i&&d().showInserterHelpPanel,destinationRootClientId:p}})),Object(m.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.showInsertionPoint,a=o.hideInsertionPoint;function l(){var e=r("core/block-editor"),n=e.getBlockIndex,o=e.getBlockSelectionEnd,i=e.getBlockOrder,c=t.clientId,a=t.destinationRootClientId,l=t.isAppender;if(c)return n(c,a);var s=o();return!l&&s?n(s,a)+1:i(a).length}return{fetchReusableBlocks:e("core/editor").__experimentalFetchReusableBlocks,showInsertionPoint:function(){var e=l();c(t.destinationRootClientId,e)},hideInsertionPoint:a,onSelect:function(n){var o=e("core/block-editor"),c=o.replaceBlocks,a=o.insertBlock,s=r("core/block-editor").getSelectedBlock,u=t.isAppender,d=n.name,f=n.initialAttributes,p=s(),b=Object(i.createBlock)(d,f);return!u&&p&&Object(i.isUnmodifiedDefaultBlock)(p)?c(p.clientId,b):a(b,l(),t.destinationRootClientId),t.onSelect(),b}}})),P.withSpokenMessages,b.withInstanceId,b.withSafeTimeout)(Fo),Uo=function(e){var t=e.onToggle,n=e.disabled,r=e.isOpen;return Object(u.createElement)(P.IconButton,{icon:"insert",label:Object(H.__)("Add block"),labelPosition:"bottom",onClick:t,className:"editor-inserter__toggle block-editor-inserter__toggle","aria-haspopup":"true","aria-expanded":r,disabled:n})},Vo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(E.a)(e)),e.renderToggle=e.renderToggle.bind(Object(E.a)(e)),e.renderContent=e.renderContent.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,i=r.renderToggle,c=void 0===i?Uo:i;return c({onToggle:t,isOpen:n,disabled:o})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,i=n.isAppender,c=n.showInserterHelpPanel;return Object(u.createElement)(Ho,{onSelect:t,rootClientId:r,clientId:o,isAppender:i,showInserterHelpPanel:c})}},{key:"render",value:function(){var e=this.props.position;return Object(u.createElement)(P.Dropdown,{className:"editor-inserter block-editor-inserter",contentClassName:"editor-inserter__popover block-editor-inserter__popover",position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(H.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(u.Component),zo=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.rootClientId;return{hasItems:(0,e("core/block-editor").hasInserterItems)(n)}})),Object(b.ifCondition)((function(e){return e.hasItems}))])(Vo);var Ko=function(e){var t=e.rootClientId,n=e.className;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Ie,{rootClientId:t}),Object(u.createElement)(zo,{rootClientId:t,renderToggle:function(e){var t=e.onToggle,r=e.disabled,o=e.isOpen;return Object(u.createElement)(P.Button,{className:f()(n,"block-editor-button-block-appender"),onClick:t,"aria-expanded":o,disabled:r},Object(u.createElement)("span",{className:"screen-reader-text"},Object(H.__)("Add Block")),Object(u.createElement)(P.Icon,{icon:"insert"}))},isAppender:!0}))},Wo=Object(b.createHigherOrderComponent)(Object(m.withSelect)((function(e,t){var n=e("core/block-editor").getSettings(),r=void 0===t.colors?n.colors:t.colors,o=void 0===t.disableCustomColors?n.disableCustomColors:t.disableCustomColors;return{colors:r,disableCustomColors:o,hasColorsToChoose:!Object(p.isEmpty)(r)||!o}})),"withColorContext"),qo=Wo(P.ColorPalette);function Go(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,i=t.getBrightness()=24?"large":"small"})?null:Object(u.createElement)(Go,{backgroundColor:t,textColor:c,tinyBackgroundColor:a,tinyTextColor:l})},Yo=n(41),Xo=n.n(Yo),Zo=Object(b.createHigherOrderComponent)((function(e){return q((function(e){return Object(p.pick)(e,["clientId"])}))(e)}),"withClientId"),Jo=Zo((function(e){var t=e.clientId;return Object(u.createElement)(Ko,{rootClientId:t})})),Qo=Object(b.compose)([Zo,Object(m.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(p.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(u.createElement)(uo,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(u.createElement)(jo,{rootClientId:t,lastBlockClientId:n}))}));var ei=function(e){var t=e.options,n=e.onSelect,r=e.allowSkip,o=f()("block-editor-inner-blocks__template-picker",{"has-many-options":t.length>4}),i=r?Object(H.__)("Select a layout to start with, or make one yourself."):Object(H.__)("Select a layout to start with.");return Object(u.createElement)(P.Placeholder,{icon:"layout",label:Object(H.__)("Choose Layout"),instructions:i,className:o},Object(u.createElement)("ul",{className:"block-editor-inner-blocks__template-picker-options",role:"list"},t.map((function(e,t){return Object(u.createElement)("li",{key:t},Object(u.createElement)(P.IconButton,{isLarge:!0,icon:e.icon,onClick:function(){return n(e.template)},className:"block-editor-inner-blocks__template-picker-option",label:e.title}))}))),r&&Object(u.createElement)("div",{className:"block-editor-inner-blocks__template-picker-skip"},Object(u.createElement)(P.Button,{isLink:!0,onClick:function(){return n(void 0)}},Object(H.__)("Skip"))))},ti=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={templateInProcess:!!e.props.template},e.updateNestedSettings(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.templateLock;0!==e.block.innerBlocks.length&&"all"!==t||this.synchronizeBlocksWithTemplate(),this.state.templateInProcess&&this.setState({templateInProcess:!1})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.template,r=t.block,o=t.templateLock,i=r.innerBlocks;(this.updateNestedSettings(),0===i.length||"all"===o)&&(!Object(p.isEqual)(n,e.template)&&this.synchronizeBlocksWithTemplate())}},{key:"synchronizeBlocksWithTemplate",value:function(){var e=this.props,t=e.template,n=e.block,r=e.replaceInnerBlocks,o=n.innerBlocks,c=Object(i.synchronizeBlocksWithTemplate)(o,t);Object(p.isEqual)(c,o)||r(c)}},{key:"updateNestedSettings",value:function(){var e=this.props,t=e.blockListSettings,n=e.allowedBlocks,r=e.updateNestedSettings,o=e.templateLock,i=e.parentLock,c={allowedBlocks:n,templateLock:void 0===o?i:o};Xo()(t,c)||r(c)}},{key:"render",value:function(){var e=this.props,t=e.isSmallScreen,n=e.clientId,r=e.hasOverlay,o=e.renderAppender,i=e.template,c=e.__experimentalTemplateOptions,a=e.__experimentalOnSelectTemplateOption,l=e.__experimentalAllowTemplateOptionSkip,s=this.state.templateInProcess,d=null===i&&!!c,p=f()("editor-inner-blocks block-editor-inner-blocks",{"has-overlay":t&&r&&!d});return Object(u.createElement)("div",{className:p},!s&&(d?Object(u.createElement)(ei,{options:c,onSelect:a,allowSkip:l}):Object(u.createElement)(Co,{rootClientId:n,renderAppender:o})))}}]),t}(u.Component);(ti=Object(b.compose)([Object(a.withViewportMatch)({isSmallScreen:"< medium"}),q((function(e){return Object(p.pick)(e,["clientId"])})),Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.isBlockSelected,o=n.hasSelectedInnerBlock,i=n.getBlock,c=n.getBlockListSettings,a=n.getBlockRootClientId,l=n.getTemplateLock,s=t.clientId,u=i(s),d=a(s);return{block:u,blockListSettings:c(s),hasOverlay:"core/template"!==u.name&&!r(s)&&!o(s,!0),parentLock:l(d)}})),Object(m.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.replaceInnerBlocks,o=n.updateBlockListSettings,i=t.block,c=t.clientId,a=t.templateInsertUpdatesSelection,l=void 0===a||a;return{replaceInnerBlocks:function(e){r(c,e,0===i.innerBlocks.length&&l)},updateNestedSettings:function(t){e(o(c,t))}}}))])(ti)).DefaultBlockAppender=Qo,ti.ButtonBlockAppender=Jo,ti.Content=Object(i.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(u.createElement)(t,null)}));var ni=ti,ri=Object(P.createSlotFill)("InspectorAdvancedControls"),oi=ri.Fill,ii=ri.Slot,ci=G(oi);ci.Slot=ii;var ai=ci,li=Object(P.createSlotFill)("InspectorControls"),si=li.Fill,ui=li.Slot,di=G(si);di.Slot=ui;var fi=di,pi=Object(P.withFilters)("editor.MediaUpload")((function(){return null}));function bi(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(u.createElement)(P.ExternalLink,{className:o,href:t},n||Object(Le.filterURLForDisplay)(Object(Le.safeDecodeURI)(t))):Object(u.createElement)("span",{className:o})}var hi=function(e){return e.stopPropagation()},mi=function(e){function t(e){var n,r=e.autocompleteRef;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(E.a)(n)),n.onKeyDown=n.onKeyDown.bind(Object(E.a)(n)),n.autocompleteRef=r||Object(u.createRef)(),n.inputRef=Object(u.createRef)(),n.updateSuggestions=Object(p.throttle)(n.updateSuggestions.bind(Object(E.a)(n)),200),n.suggestionNodes=[],n.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(){var e=this,t=this.state,n=t.showSuggestions,r=t.selectedSuggestion;n&&null!==r&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,xe()(this.suggestionNodes[r],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"updateSuggestions",value:function(e){var t=this,n=this.props.fetchLinkSuggestions;if(n)if(e.length<2||/^https?:/.test(e))this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});else{this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0});var r=n(e);r.then((function(e){t.suggestionsRequest===r&&(t.setState({suggestions:e,loading:!1}),e.length?t.props.debouncedSpeak(Object(H.sprintf)(Object(H._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):t.props.debouncedSpeak(Object(H.__)("No results."),"assertive"))})).catch((function(){t.suggestionsRequest===r&&t.setState({loading:!1})})),this.suggestionsRequest=r}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.updateSuggestions(t)}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,i=t.loading;if(n&&o.length&&!i){var c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case he.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case he.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case he.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(H.__)("Link selected.")));break;case he.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(c))}}else switch(e.keyCode){case he.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case he.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=void 0===n?"":n,o=t.autoFocus,i=void 0===o||o,c=t.instanceId,a=t.className,l=t.id,s=t.isFullWidth,d=t.hasBorder,p=this.state,b=p.showSuggestions,h=p.suggestions,m=p.selectedSuggestion,v=p.loading,g="block-editor-url-input-suggestions-".concat(c),O="block-editor-url-input-suggestion-".concat(c);return Object(u.createElement)("div",{className:f()("editor-url-input block-editor-url-input",a,{"is-full-width":s,"has-border":d})},Object(u.createElement)("input",{id:l,autoFocus:i,type:"text","aria-label":Object(H.__)("URL"),required:!0,value:r,onChange:this.onChange,onInput:hi,placeholder:Object(H.__)("Paste URL or type to search"),onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":b,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==m?"".concat(O,"-").concat(m):void 0,ref:this.inputRef}),v&&Object(u.createElement)(P.Spinner,null),b&&!!h.length&&Object(u.createElement)(P.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(u.createElement)("div",{className:f()("editor-url-input__suggestions","block-editor-url-input__suggestions","".concat(a,"__suggestions")),id:g,ref:this.autocompleteRef,role:"listbox"},h.map((function(t,n){return Object(u.createElement)("button",{key:t.id,role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),className:f()("editor-url-input__suggestion block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)},"aria-selected":n===m},t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.disableSuggestions,r=t.showSuggestions;return{showSuggestions:!0!==n&&r}}}]),t}(u.Component),vi=Object(b.compose)(b.withSafeTimeout,P.withSpokenMessages,b.withInstanceId,Object(m.withSelect)((function(e){return{fetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(mi);var gi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(E.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,i=void 0===o?"bottom center":o,c=e.focusOnMount,a=void 0===c?"firstElement":c,l=Object(Ae.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=this.state.isSettingsExpanded,f=!!r&&d;return Object(u.createElement)(P.Popover,Object(s.a)({className:"editor-url-popover block-editor-url-popover",focusOnMount:a,position:i},l),Object(u.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(u.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row"},n,!!r&&Object(u.createElement)(P.IconButton,{className:"editor-url-popover__settings-toggle block-editor-url-popover__settings-toggle",icon:"arrow-down-alt2",label:Object(H.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":d})),f&&Object(u.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row editor-url-popover__settings block-editor-url-popover__settings"},r())),t&&!f&&Object(u.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),t}(u.Component);gi.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,i=Object(Ae.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(u.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},i),Object(u.createElement)(vi,{value:o,onChange:r,autocompleteRef:t}),Object(u.createElement)(P.IconButton,{icon:"editor-break",label:Object(H.__)("Apply"),type:"submit"}))},gi.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,i=e.urlLabel,c=Object(Ae.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(u.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},c),Object(u.createElement)(bi,{url:o,urlLabel:i,className:n}),r&&Object(u.createElement)(P.IconButton,{icon:"edit",label:Object(H.__)("Edit"),onClick:r}))};var Oi=gi,ki=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(u.createElement)(Oi,{onClose:o},Object(u.createElement)("form",{className:"editor-media-placeholder__url-input-form block-editor-media-placeholder__url-input-form",onSubmit:r},Object(u.createElement)("input",{className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(H.__)("URL"),placeholder:Object(H.__)("Paste or type URL"),onChange:n,value:t}),Object(u.createElement)(P.IconButton,{className:"editor-media-placeholder__url-input-submit-button block-editor-media-placeholder__url-input-submit-button",icon:"editor-break",label:Object(H.__)("Apply"),type:"submit"})))},yi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(E.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(E.a)(e)),e.onUpload=e.onUpload.bind(Object(E.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(E.a)(e)),e.openURLInput=e.openURLInput.bind(Object(E.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this.props,r=n.addToGallery,o=n.allowedTypes,i=n.mediaUpload,c=n.multiple,a=n.onError,l=n.onSelect,s=n.value;if(c)if(r){var u=void 0===s?[]:s;t=function(e){l(u.concat(e))}}else t=l;else t=function(e){var t=Object(Ne.a)(e,1)[0];return l(t)};i({allowedTypes:o,filesList:e,onFileChange:t,onError:a})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,i=n.className,c=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,d=n.onDoubleClick,p=n.mediaPreview,b=n.notices,h=n.onSelectURL,m=n.mediaUpload,v=n.children,g=s.instructions,O=s.title;if(m||h||(g=Object(H.__)("To edit this block, you need permission to upload media.")),void 0===g||void 0===O){var k=1===o.length,y=k&&"audio"===o[0],j=k&&"image"===o[0],_=k&&"video"===o[0];void 0===g&&m&&(g=Object(H.__)("Upload a media file or pick one from your media library."),y?g=Object(H.__)("Upload an audio file, pick one from your media library, or add one with a URL."):j?g=Object(H.__)("Upload an image file, pick one from your media library, or add one with a URL."):_&&(g=Object(H.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===O&&(O=Object(H.__)("Media"),y?O=Object(H.__)("Audio"):j?O=Object(H.__)("Image"):_&&(O=Object(H.__)("Video")))}var S=f()("block-editor-media-placeholder","editor-media-placeholder",i,{"is-appender":a});return Object(u.createElement)(P.Placeholder,{icon:c,label:O,instructions:g,className:S,notices:b,onClick:t,onDoubleClick:d,preview:p},e,v)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(u.createElement)(P.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(u.createElement)(P.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(H.__)("Cancel"),isLink:!0,onClick:e},Object(H.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(u.createElement)("div",{className:"editor-media-placeholder__url-input-container block-editor-media-placeholder__url-input-container"},Object(u.createElement)(P.Button,{className:"editor-media-placeholder__button block-editor-media-placeholder__button",onClick:this.openURLInput,isToggled:t,isLarge:!0},Object(H.__)("Insert from URL")),t&&Object(u.createElement)(ki,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,i=void 0===o?[]:o,c=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,d=t.onSelect,b=t.value,h=void 0===b?{}:b,m=Object(u.createElement)(pi,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:d,allowedTypes:i,value:Object(p.isArray)(h)?h.map((function(e){return e.id})):h.id,render:function(e){var t=e.open;return Object(u.createElement)(P.Button,{isLarge:!0,className:f()("editor-media-placeholder__button","editor-media-placeholder__media-library-button"),onClick:function(e){e.stopPropagation(),t()}},Object(H.__)("Media Library"))}});if(a&&c)return Object(u.createElement)(u.Fragment,null,this.renderDropZone(),Object(u.createElement)(P.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.IconButton,{isLarge:!0,className:f()("block-editor-media-placeholder__button","editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),icon:"upload"},Object(H.__)("Upload")),m,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var v=Object(u.createElement)(u.Fragment,null,this.renderDropZone(),Object(u.createElement)(P.FormFileUpload,{isLarge:!0,className:f()("block-editor-media-placeholder__button","editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(H.__)("Upload")),m,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(v)}return this.renderPlaceholder(m)}},{key:"render",value:function(){return this.props.dropZoneUIOnly?Object(u.createElement)(Ee,null,this.renderDropZone()):Object(u.createElement)(Ee,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),t}(u.Component),ji=Object(m.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),_i=Object(b.compose)(ji,Object(P.withFilters)("editor.MediaPlaceholder"))(yi),Si=Object(H.__)("(current %s: %s)");var Ci=Object(b.compose)([Wo,Object(b.ifCondition)((function(e){return e.hasColorsToChoose}))])((function(e){var t=e.colors,n=e.disableCustomColors,r=e.label,o=e.onChange,i=e.value,c=k(t,i),a=c&&c.name,l=Object(H.sprintf)(Si,r.toLowerCase(),a||i);return Object(u.createElement)(P.BaseControl,{className:"editor-color-palette-control block-editor-color-palette-control"},Object(u.createElement)(P.BaseControl.VisualLabel,null,r,i&&Object(u.createElement)(P.ColorIndicator,{colorValue:i,"aria-label":l})),Object(u.createElement)(qo,Object(s.a)({className:"editor-color-palette-control__color-palette block-editor-color-palette-control__color-palette",value:i,onChange:o},{colors:t,disableCustomColors:n})))})),Ei=function(e,t){return void 0!==t.disableCustomColors?t.disableCustomColors:e},wi=Object(H.__)("(%s: %s)"),Ii=Object(b.ifCondition)((function(e){var t=e.colors,n=e.disableCustomColors,r=e.colorSettings;return Object(p.some)(r,(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return!Ei(t,n)||(n.colors||e).length>0}(t,n,e)}))}))((function(e){var t=e.children,n=e.colors,r=e.colorSettings,o=e.disableCustomColors,i=e.title,c=Object(Ae.a)(e,["children","colors","colorSettings","disableCustomColors","title"]),a=Object(u.createElement)("span",{className:"editor-panel-color-settings__panel-title block-editor-panel-color-settings__panel-title"},i,function(e,t){return e.map((function(e,n){var r=e.value,o=e.label,i=e.colors;if(!r)return null;var c=k(i||t,r),a=c&&c.name,l=Object(H.sprintf)(wi,o.toLowerCase(),a||r);return Object(u.createElement)(P.ColorIndicator,{key:n,colorValue:r,"aria-label":l})}))}(r,n));return Object(u.createElement)(P.PanelBody,Object(s.a)({className:"editor-panel-color-settings block-editor-panel-color-settings",title:a},c),r.map((function(e,t){return Object(u.createElement)(Ci,Object(s.a)({key:t},Object(l.a)({colors:n,disableCustomColors:o},e)))})),t)})),Bi=Wo(Ii),Ti=Object(u.forwardRef)((function(e,t){var n=e.onChange,r=e.className,o=Object(Ae.a)(e,["onChange","className"]);return Object(u.createElement)(Zr.a,Object(s.a)({ref:t,className:f()("editor-plain-text block-editor-plain-text",r),onChange:function(e){return n(e.target.value)}},o))})),xi=n(35),Li=n(37),Ni=n.n(Li),Ai={position:"bottom left"},Mi=function(){return Object(u.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},Object(u.createElement)(P.Toolbar,null,["bold","italic","link"].map((function(e){return Object(u.createElement)(P.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(u.createElement)(P.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(u.createElement)(P.DropdownMenu,{icon:!1,label:Object(H.__)("More rich text controls"),controls:Object(p.orderBy)(e.map((function(e){return Object(Ne.a)(e,1)[0].props})),"title"),popoverProps:Ai})}))))},Ri=[he.rawShortcut.primary("z"),he.rawShortcut.primaryShift("z"),he.rawShortcut.primary("y")],Pi=Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(Ri.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),Di=function(){return Pi},Fi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(I.a)({},he.rawShortcut[n](t),this.onUse)})}}]),t}(u.Component);function Hi(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(Ae.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=he.displayShortcut[r](o)),Object(u.createElement)(P.Fill,{name:c},Object(u.createElement)(P.ToolbarButton,Object(s.a)({},i,{shortcut:t})))}var Ui=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onInput=e.onInput.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),t}(u.Component),Vi=window.requestIdleCallback||function(e){window.setTimeout(e,100)};function zi(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}var Ki=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onEnter=e.onEnter.bind(Object(E.a)(e)),e.onSplit=e.onSplit.bind(Object(E.a)(e)),e.onPaste=e.onPaste.bind(Object(E.a)(e)),e.onDelete=e.onDelete.bind(Object(E.a)(e)),e.inputRule=e.inputRule.bind(Object(E.a)(e)),e.markAutomaticChange=e.markAutomaticChange.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onEnter",value:function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=this.props,a=o.onReplace,l=o.onSplit,s=o.multiline,u=a&&l;if(a){var d=Object(i.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),f=Object(i.findTransform)(d,(function(e){return e.regExp.test(t.text)}));f&&(a([f.transform({content:t.text})]),this.markAutomaticChange())}s?r?n(Object(c.insert)(t,"\n")):u&&Object(c.__unstableIsEmptyLine)(t)?this.onSplit(t):n(Object(c.__unstableInsertLineSeparator)(t)):r||!u?n(Object(c.insert)(t,"\n")):this.onSplit(t)}},{key:"onDelete",value:function(e){var t=e.value,n=e.isReverse,r=this.props,o=r.onMerge,i=r.onRemove;o&&o(!n),i&&Object(c.isEmpty)(t)&&n&&i(!n)}},{key:"onPaste",value:function(e){var t=e.value,n=e.onChange,r=e.html,o=e.plainText,a=e.image,l=this.props,s=l.onReplace,u=l.onSplit,d=l.tagName,f=l.canUserUseUnfilteredHTML,p=l.multiline,b=l.__unstableEmbedURLOnPaste;if(a&&!r){var h=a.getAsFile?a.getAsFile():a,m=Object(i.pasteHandler)({HTML:''),mode:"BLOCKS",tagName:d});return window.console.log("Received item:\n\n",h),void(s&&Object(c.isEmpty)(t)?s(m):this.onSplit(t,m))}var v=s&&u?"AUTO":"INLINE";b&&Object(c.isEmpty)(t)&&Object(Le.isURL)(o.trim())&&(v="BLOCKS");var g=Object(i.pasteHandler)({HTML:r,plainText:o,mode:v,tagName:d,canUserUseUnfilteredHTML:f});if("string"==typeof g){var O=Object(c.create)({html:g});p&&(O=Object(c.replace)(O,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,O))}else g.length>0&&(s&&Object(c.isEmpty)(t)?s(g):this.onSplit(t,g))}},{key:"onSplit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.props,r=n.onReplace,o=n.onSplit,i=n.__unstableOnSplitMiddle,a=n.multiline;if(r&&o){var l=[],s=Object(c.split)(e),u=Object(Ne.a)(s,2),d=u[0],f=u[1],p=t.length>0,b=zi(a);p&&Object(c.isEmpty)(d)||l.push(o(Object(c.toHTMLString)({value:d,multilineTag:b}))),p?l.push.apply(l,Object(Be.a)(t)):i&&l.push(i()),!p&&i&&Object(c.isEmpty)(f)||l.push(o(Object(c.toHTMLString)({value:f,multilineTag:b})));var h=p?l.length-1:1;r(l,h)}}},{key:"inputRule",value:function(e,t){var n=this.props.onReplace;if(n){var r=e.start,o=e.text;if(" "===o.slice(r-1,r)){var a=o.slice(0,r).trim(),l=Object(i.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),s=Object(i.findTransform)(l,(function(e){var t=e.prefix;return a===t}));if(s){var u=t(Object(c.slice)(e,r,o.length));n([s.transform(u)]),this.markAutomaticChange()}}}}},{key:"getAllowedFormats",value:function(){var e=this.props,t=e.allowedFormats,n=e.formattingControls;if(t||n)return t||(Ni()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)})))}},{key:"markAutomaticChange",value:function(){var e=this;Vi((function(){e.props.markAutomaticChange()}))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.tagName,r=e.value,o=e.onChange,a=e.selectionStart,l=e.selectionEnd,d=e.onSelectionChange,p=e.multiline,b=e.inlineToolbar,h=e.wrapperClassName,m=e.className,v=e.autocompleters,g=e.onReplace,O=e.isCaretWithinFormattedText,k=e.onEnterFormattedText,y=e.onExitFormattedText,j=e.isSelected,_=e.onCreateUndoLevel,S=(e.markAutomaticChange,e.didAutomaticChange),C=e.undo,E=e.placeholder,w=e.keepPlaceholderOnFocus,I=(e.allowedFormats,e.withoutInteractiveFormatting),B=(e.onRemove,e.onMerge,e.onSplit,e.canUserUseUnfilteredHTML,e.clientId,e.identifier,e.instanceId,e.start),T=e.reversed,x=Object(Ae.a)(e,["children","tagName","value","onChange","selectionStart","selectionEnd","onSelectionChange","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","isCaretWithinFormattedText","onEnterFormattedText","onExitFormattedText","isSelected","onCreateUndoLevel","markAutomaticChange","didAutomaticChange","undo","placeholder","keepPlaceholderOnFocus","allowedFormats","withoutInteractiveFormatting","onRemove","onMerge","onSplit","canUserUseUnfilteredHTML","clientId","identifier","instanceId","start","reversed"]),L=zi(p),N=this.getAllowedFormats(),A=!N||N.length>0,M=r,R=o;Array.isArray(r)&&(M=i.children.toHTML(r),R=function(e){return o(i.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var D=Object(u.createElement)(c.__experimentalRichText,Object(s.a)({},x,{value:M,onChange:R,selectionStart:a,selectionEnd:l,onSelectionChange:d,tagName:n,className:f()("editor-rich-text__editable block-editor-rich-text__editable",m,{"is-selected":j,"keep-placeholder-on-focus":w}),placeholder:E,allowedFormats:N,withoutInteractiveFormatting:I,onEnter:this.onEnter,onDelete:this.onDelete,onPaste:this.onPaste,__unstableIsSelected:j,__unstableInputRule:this.inputRule,__unstableMultilineTag:L,__unstableIsCaretWithinFormattedText:O,__unstableOnEnterFormattedText:k,__unstableOnExitFormattedText:y,__unstableOnCreateUndoLevel:_,__unstableMarkAutomaticChange:this.markAutomaticChange,__unstableDidAutomaticChange:S,__unstableUndo:C}),(function(e){var n=e.isSelected,r=e.value,o=e.onChange,i=e.Editable;return Object(u.createElement)(u.Fragment,null,t&&t({value:r,onChange:o}),n&&!b&&A&&Object(u.createElement)(pe,null,Object(u.createElement)(Mi,null)),n&&b&&A&&Object(u.createElement)(P.IsolatedEventContainer,{className:"editor-rich-text__inline-toolbar block-editor-rich-text__inline-toolbar"},Object(u.createElement)(Mi,null)),n&&Object(u.createElement)(Di,null),Object(u.createElement)($,{onReplace:g,completers:v,record:r,onChange:o,isSelected:n},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(u.createElement)(i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:B,reversed:T,onKeyDown:r})})))}));return Object(u.createElement)("div",{className:f()("editor-rich-text block-editor-rich-text",h)},D)}}]),t}(u.Component),Wi=Object(b.compose)([b.withInstanceId,q((function(e){return{clientId:e.clientId}})),Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.instanceId,o=t.identifier,i=void 0===o?r:o,c=t.isSelected,a=e("core/block-editor"),l=a.isCaretWithinFormattedText,s=a.getSelectionStart,u=a.getSelectionEnd,d=a.getSettings,f=a.didAutomaticChange,p=s(),b=u(),h=d().__experimentalCanUserUseUnfilteredHTML;return void 0===c?c=p.clientId===n&&p.attributeKey===i:c&&(c=p.clientId===n),{canUserUseUnfilteredHTML:h,isCaretWithinFormattedText:l(),selectionStart:c?p.offset:void 0,selectionEnd:c?b.offset:void 0,isSelected:c,didAutomaticChange:f()}})),Object(m.withDispatch)((function(e,t){var n=t.clientId,r=t.instanceId,o=t.identifier,i=void 0===o?r:o,c=e("core/block-editor"),a=c.__unstableMarkLastChangeAsPersistent,l=c.enterFormattedText,s=c.exitFormattedText,u=c.selectionChange;return{onCreateUndoLevel:a,onEnterFormattedText:l,onExitFormattedText:s,onSelectionChange:function(e,t){u(n,i,e,t)},markAutomaticChange:c.__unstableMarkAutomaticChange,undo:e("core/editor").undo}})),Object(P.withFilters)("experimentalRichText")])(Ki);Wi.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(Ae.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=i.children.toHTML(t));var c=zi(r);!t&&c&&(t="<".concat(c,">"));var a=Object(u.createElement)(u.RawHTML,null,t);return n?Object(u.createElement)(n,Object(p.omit)(o,["format"]),a):a},Wi.isEmpty=function(e){return!e||0===e.length},Wi.Content.defaultProps={format:"string",value:""};var qi=Wi,Gi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(E.a)(e)),e.submitLink=e.submitLink.bind(Object(E.a)(e)),e.state={expanded:!1},e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(H.__)("Edit link"):Object(H.__)("Insert link");return Object(u.createElement)("div",{className:"editor-url-input__button block-editor-url-input__button"},Object(u.createElement)(P.IconButton,{icon:"admin-links",label:o,onClick:this.toggle,className:f()("components-toolbar__control",{"is-active":t})}),r&&Object(u.createElement)("form",{className:"editor-url-input__button-modal block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(u.createElement)("div",{className:"editor-url-input__button-modal-line block-editor-url-input__button-modal-line"},Object(u.createElement)(P.IconButton,{className:"editor-url-input__back block-editor-url-input__back",icon:"arrow-left-alt",label:Object(H.__)("Close"),onClick:this.toggle}),Object(u.createElement)(vi,{value:t||"",onChange:n}),Object(u.createElement)(P.IconButton,{icon:"editor-break",label:Object(H.__)("Submit"),type:"submit"}))))}}]),t}(u.Component),$i=Object(P.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Yi=$i.Fill,Xi=$i.Slot;Yi.Slot=Xi;var Zi=Yi,Ji=Object(P.createSlotFill)("__experimentalBlockSettingsMenuPluginsExtension"),Qi=Ji.Fill,ec=Ji.Slot;Qi.Slot=ec;var tc=Qi;var nc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockRootClientId,c=n.getBlocksByClientId,a=n.getTemplateLock,l=e("core/blocks").getDefaultBlockName,s=c(t.clientIds),u=o(t.clientIds[0]);return{blocks:s,canDuplicate:Object(p.every)(s,(function(e){return!!e&&Object(i.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,u)})),canInsertDefaultBlock:r(l(),u),extraProps:t,isLocked:!!a(u),rootClientId:u}})),Object(m.withDispatch)((function(e,t,n){var r=n.select,o=t.clientIds,c=t.rootClientId,a=t.blocks,l=t.isLocked,s=t.canDuplicate,u=e("core/block-editor"),d=u.insertBlocks,f=u.multiSelect,b=u.removeBlocks,h=u.insertDefaultBlock,m=u.replaceBlocks;return{onDuplicate:function(){if(s){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.last)(Object(p.castArray)(o)),c),t=a.map((function(e){return Object(i.cloneBlock)(e)}));d(t,e+1,c),t.length>1&&f(Object(p.first)(t).clientId,Object(p.last)(t).clientId)}},onRemove:function(){l||b(o)},onInsertBefore:function(){if(!l){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.first)(Object(p.castArray)(o)),c);h({},c,e)}},onInsertAfter:function(){if(!l){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.last)(Object(p.castArray)(o)),c);h({},c,e+1)}},onGroup:function(){if(a.length){var e=(0,r("core/blocks").getGroupingBlockName)(),t=Object(i.switchToBlockType)(a,e);t&&m(o,t)}},onUngroup:function(){if(a.length){var e=a[0].innerBlocks;e.length&&m(o,e)}}}}))])((function(e){var t=e.canDuplicate,n=e.canInsertDefaultBlock;return(0,e.children)({canDuplicate:t,canInsertDefaultBlock:n,isLocked:e.isLocked,onDuplicate:e.onDuplicate,onGroup:e.onGroup,onInsertAfter:e.onInsertAfter,onInsertBefore:e.onInsertBefore,onRemove:e.onRemove,onUngroup:e.onUngroup})})),rc=function(e){return e.preventDefault(),e},oc={duplicate:{raw:he.rawShortcut.primaryShift("d"),display:he.displayShortcut.primaryShift("d")},removeBlock:{raw:he.rawShortcut.access("z"),display:he.displayShortcut.access("z")},insertBefore:{raw:he.rawShortcut.primaryAlt("t"),display:he.displayShortcut.primaryAlt("t")},insertAfter:{raw:he.rawShortcut.primaryAlt("y"),display:he.displayShortcut.primaryAlt("y")}},ic=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).selectAll=e.selectAll.bind(Object(E.a)(e)),e.deleteSelectedBlocks=e.deleteSelectedBlocks.bind(Object(E.a)(e)),e.clearMultiSelection=e.clearMultiSelection.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"selectAll",value:function(e){var t=this.props,n=t.rootBlocksClientIds,r=t.onMultiSelect;e.preventDefault(),r(Object(p.first)(n),Object(p.last)(n))}},{key:"deleteSelectedBlocks",value:function(e){var t=this.props,n=t.selectedBlockClientIds,r=t.hasMultiSelection,o=t.onRemove,i=t.isLocked;r&&(e.preventDefault(),i||o(n))}},{key:"clearMultiSelection",value:function(){var e=this.props,t=e.hasMultiSelection,n=e.clearSelectedBlock;t&&(n(),window.getSelection().removeAllRanges())}},{key:"render",value:function(){var e,t=this.props.selectedBlockClientIds;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.KeyboardShortcuts,{shortcuts:(e={},Object(I.a)(e,he.rawShortcut.primary("a"),this.selectAll),Object(I.a)(e,"backspace",this.deleteSelectedBlocks),Object(I.a)(e,"del",this.deleteSelectedBlocks),Object(I.a)(e,"escape",this.clearMultiSelection),e)}),t.length>0&&Object(u.createElement)(nc,{clientIds:t},(function(e){var t,n=e.onDuplicate,r=e.onRemove,o=e.onInsertAfter,i=e.onInsertBefore;return Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(I.a)(t,oc.duplicate.raw,Object(p.flow)(rc,n)),Object(I.a)(t,oc.removeBlock.raw,Object(p.flow)(rc,r)),Object(I.a)(t,oc.insertBefore.raw,Object(p.flow)(rc,i)),Object(I.a)(t,oc.insertAfter.raw,Object(p.flow)(rc,o)),t)})})))}}]),t}(u.Component),cc=Object(b.compose)([Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockOrder,r=t.getSelectedBlockClientIds,o=t.hasMultiSelection,i=t.getBlockRootClientId,c=t.getTemplateLock,a=r();return{rootBlocksClientIds:n(),hasMultiSelection:o(),isLocked:Object(p.some)(a,(function(e){return!!c(i(e))})),selectedBlockClientIds:a}})),Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{clearSelectedBlock:t.clearSelectedBlock,onMultiSelect:t.multiSelect,onRemove:t.removeBlocks}}))])(ic),ac=Object(m.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(u.createElement)(P.Button,{isDefault:!0,type:"button",className:"editor-skip-to-selected-block block-editor-skip-to-selected-block",onClick:function(){po(t).closest(".block-editor-block-list__block").focus()}},Object(H.__)("Skip to the selected block"))})),lc=n(158),sc=n.n(lc);function uc(e,t,n){var r=new sc.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}var dc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core/blocks").getBlockStyles,c=r(n),a=Object(i.getBlockType)(c.name);return{block:c,className:c.attributes.className||"",styles:o(c.name),type:a}})),Object(m.withDispatch)((function(e,t){var n=t.clientId;return{onChangeClassName:function(t){e("core/block-editor").updateBlockAttributes(n,{className:t})}}}))])((function(e){var t=e.styles,n=e.className,r=e.onChangeClassName,o=e.type,c=e.block,a=e.onSwitch,s=void 0===a?p.noop:a,d=e.onHoverClassName,b=void 0===d?p.noop:d;if(!t||0===t.length)return null;o.styles||Object(p.find)(t,"isDefault")||(t=[{name:"default",label:Object(H._x)("Default","block style"),isDefault:!0}].concat(Object(Be.a)(t)));var h=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,c=new sc.a(t).values()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=i.value;if(-1!==a.indexOf("is-style-")){var l=a.substring(9),s=Object(p.find)(e,{name:l});if(s)return s}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return Object(p.find)(e,"isDefault")}(t,n);function m(e){var t=uc(n,h,e);r(t),b(null),s()}return Object(u.createElement)("div",{className:"editor-block-styles block-editor-block-styles"},t.map((function(e){var t=uc(n,h,e);return Object(u.createElement)("div",{key:e.name,className:f()("editor-block-styles__item block-editor-block-styles__item",{"is-active":h===e}),onClick:function(){return m(e)},onKeyDown:function(t){he.ENTER!==t.keyCode&&he.SPACE!==t.keyCode||(t.preventDefault(),m(e))},onMouseEnter:function(){return b(t)},onMouseLeave:function(){return b(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(u.createElement)("div",{className:"editor-block-styles__item-preview block-editor-block-styles__item-preview"},Object(u.createElement)(wo,{viewportWidth:500,blocks:o.example?Object(i.getBlockFromExample)(c.name,{attributes:Object(l.a)({},o.example.attributes,{className:t}),innerBlocks:o.example.innerBlocks}):Object(i.cloneBlock)(c,{className:t})})),Object(u.createElement)("div",{className:"editor-block-styles__item-label block-editor-block-styles__item-label"},e.label||e.name))})))})),fc=n(104);var pc=Object(m.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(fc.count)(Object(i.serialize)(t),"words");return Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card block-editor-multi-selection-inspector__card"},Object(u.createElement)(be,{icon:Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),showColors:!0}),Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-content block-editor-multi-selection-inspector__card-content"},Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-title block-editor-multi-selection-inspector__card-title"},Object(H.sprintf)(Object(H._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-description block-editor-multi-selection-inspector__card-description"},Object(H.sprintf)(Object(H._n)("%d word","%d words",n),n))))}));function bc(e){var t=e.blockName,n=Object(m.useSelect)((function(e){var n=e("core/block-editor").getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:Object(p.get)(n,["value",t]),onUpdatePreferredStyleVariations:Object(p.get)(n,["onChange"],null),styles:e("core/blocks").getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,i=n.styles,c=Object(u.useMemo)((function(){return[{label:Object(H.__)("Not set"),value:""}].concat(Object(Be.a)(i.map((function(e){return{label:e.label,value:e.name}}))))}),[i]),a=Object(u.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(u.createElement)(P.SelectControl,{options:c,value:r||"",label:Object(H.__)("Default Style"),onChange:a})}var hc=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,c=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(i.getBlockType)(l),u=a&&c(l);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,c=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a;if(n>1)return Object(u.createElement)(pc,null);var s=c===Object(i.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(To,{blockType:t}),r&&Object(u.createElement)("div",null,Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Styles"),initialOpen:!1},Object(u.createElement)(dc,{clientId:o}),Object(u.createElement)(bc,{blockName:t.name}))),Object(u.createElement)("div",null,Object(u.createElement)(fi.Slot,null)),Object(u.createElement)("div",null,Object(u.createElement)(ai.Slot,null,(function(e){return!Object(p.isEmpty)(e)&&Object(u.createElement)(P.PanelBody,{className:"editor-block-inspector__advanced block-editor-block-inspector__advanced",title:Object(H.__)("Advanced"),initialOpen:!1},e)}))),Object(u.createElement)(ac,{key:"back"})):l?Object(u.createElement)("span",{className:"editor-block-inspector__no-blocks block-editor-block-inspector__no-blocks"},Object(H.__)("No block selected.")):null})),mc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(E.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,i=n||r;e.target===this.container&&i&&o()}},{key:"render",value:function(){return Object(u.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(u.Component),vc=Object(b.compose)([Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(m.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(mc);var gc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:c(n),blockType:l?Object(i.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(m.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(i.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(H.__)("Edit as HTML"):Object(H.__)("Edit visually");return Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:r,icon:"html"},!c&&s)}));function Oc(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(H.__)("Convert to Blocks");return Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:n,icon:"screenoptions"},!r&&o)}var kc=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(m.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.getBlockContent)(n)}))}}})))(Oc),yc=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(i.getFreeformContentHandlerName)()}})),Object(m.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.serialize)(n)}))}}})))(Oc),jc={className:"block-editor-block-settings-menu__popover editor-block-settings-menu__popover",position:"bottom right"};var _c=function(e){var t=e.clientIds,n=Object(p.castArray)(t),r=n.length,o=n[0];return Object(u.createElement)(nc,{clientIds:t},(function(e){var n=e.canDuplicate,i=e.canInsertDefaultBlock,c=e.isLocked,a=e.onDuplicate,l=e.onInsertAfter,s=e.onInsertBefore,d=e.onRemove;return Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.DropdownMenu,{icon:"ellipsis",label:Object(H.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:jc},(function(e){var f=e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.MenuGroup,null,Object(u.createElement)(Zi.Slot,{fillProps:{onClose:f}}),1===r&&Object(u.createElement)(yc,{clientId:o}),1===r&&Object(u.createElement)(kc,{clientId:o}),n&&Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,a),icon:"admin-page",shortcut:oc.duplicate.display},Object(H.__)("Duplicate")),i&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,s),icon:"insert-before",shortcut:oc.insertBefore.display},Object(H.__)("Insert Before")),Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,l),icon:"insert-after",shortcut:oc.insertAfter.display},Object(H.__)("Insert After"))),1===r&&Object(u.createElement)(gc,{clientId:o,onToggle:f}),Object(u.createElement)(tc.Slot,{fillProps:{clientIds:t,onClose:f}})),Object(u.createElement)(P.MenuGroup,null,!c&&Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,d),icon:"trash",shortcut:oc.removeBlock.display},Object(H.__)("Remove Block"))))})))}))},Sc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onHoverClassName",value:function(e){this.setState({hoveredClassName:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.blocks,r=t.onTransform,o=t.inserterItems,c=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var s,d=a?n[0]:null,f=a?Object(i.getBlockType)(d.name):null,b=Object(p.mapKeys)(o,(function(e){return e.name})),h=Object(p.orderBy)(Object(p.filter)(Object(i.getPossibleBlockTransformations)(n),(function(e){return e&&!!b[e.name]})),(function(e){return b[e.name].frecency}),"desc");if(1===Object(p.uniq)(Object(p.map)(n,"name")).length){var m=n[0].name,v=Object(i.getBlockType)(m);s=v.icon}else s="layout";return c||h.length?Object(u.createElement)(P.Dropdown,{position:"bottom right",className:"editor-block-switcher block-editor-block-switcher",contentClassName:"editor-block-switcher__popover block-editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,o=1===n.length?Object(H.__)("Change block type or style"):Object(H.sprintf)(Object(H._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.IconButton,{className:"editor-block-switcher__toggle block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,tooltip:o,onKeyDown:function(e){r||e.keyCode!==he.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(be,{icon:s,showColors:!0}),Object(u.createElement)(P.SVG,{className:"editor-block-switcher__transform block-editor-block-switcher__transform",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.Path,{d:"M6.5 8.9c.6-.6 1.4-.9 2.2-.9h6.9l-1.3 1.3 1.4 1.4L19.4 7l-3.7-3.7-1.4 1.4L15.6 6H8.7c-1.4 0-2.6.5-3.6 1.5l-2.8 2.8 1.4 1.4 2.8-2.8zm13.8 2.4l-2.8 2.8c-.6.6-1.3.9-2.1.9h-7l1.3-1.3-1.4-1.4L4.6 16l3.7 3.7 1.4-1.4L8.4 17h6.9c1.3 0 2.6-.5 3.5-1.5l2.8-2.8-1.3-1.4z"})))}))},renderContent:function(t){var o=t.onClose;return Object(u.createElement)(u.Fragment,null,(c||0!==h.length)&&Object(u.createElement)("div",{className:"block-editor-block-switcher__container"},c&&Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Block Styles"),initialOpen:!0},Object(u.createElement)(dc,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==h.length&&Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Transform To:"),initialOpen:!0},Object(u.createElement)(Bo,{items:h.map((function(e){return{id:e.name,icon:e.icon,title:e.title}})),onSelect:function(e){r(n,e.id),o()}}))),null!==a&&Object(u.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(u.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(H.__)("Preview")),Object(u.createElement)(wo,{viewportWidth:500,blocks:f.example?Object(i.getBlockFromExample)(d.name,{attributes:Object(l.a)({},f.example.attributes,{className:a}),innerBlocks:f.example.innerBlocks}):Object(i.cloneBlock)(d,{className:a})})))}}):Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.IconButton,{disabled:!0,className:"editor-block-switcher__no-switcher-icon block-editor-block-switcher__no-switcher-icon",label:Object(H.__)("Block icon"),icon:Object(u.createElement)(be,{icon:s,showColors:!0})}))}}]),t}(u.Component),Cc=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.getBlockRootClientId,c=r.getInserterItems,a=e("core/blocks").getBlockStyles,l=i(Object(p.first)(Object(p.castArray)(n))),s=o(n),u=s&&1===s.length?s[0]:null,d=u&&a(u.name);return{blocks:s,inserterItems:c(l),hasBlockStyles:d&&d.length>0}})),Object(m.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(i.switchToBlockType)(n,r))}}})))(Sc);var Ec=Object(m.withSelect)((function(e){var t=e("core/block-editor").getMultiSelectedBlockClientIds();return{isMultiBlockSelection:t.length>1,selectedBlockClientIds:t}}))((function(e){var t=e.isMultiBlockSelection,n=e.selectedBlockClientIds;return t?Object(u.createElement)(Cc,{key:"switcher",clientIds:n}):null}));var wc=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockMode,r=t.getSelectedBlockClientIds,o=t.isBlockValid,i=r();return{blockClientIds:i,isValid:1===i.length?o(i[0]):null,mode:1===i.length?n(i[0]):null}}))((function(e){var t=e.blockClientIds,n=e.isValid,r=e.mode;return 0===t.length?null:t.length>1?Object(u.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},Object(u.createElement)(Ec,null),Object(u.createElement)(_c,{clientIds:t})):Object(u.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},"visual"===r&&n&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Cc,{clientIds:t}),Object(u.createElement)(oe.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(u.createElement)(pe.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(u.createElement)(_c,{clientIds:t}))}));var Ic=Object(b.compose)([Object(m.withDispatch)((function(e,t,n){var r=(0,n.select)("core/block-editor"),o=r.getBlocksByClientId,c=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=e("core/block-editor").removeBlocks,s=function(e){var t=c();if(0!==t.length&&(a()||!Object(xr.documentHasSelection)())){var n=Object(i.serialize)(o(t));e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/html",n),e.preventDefault()}};return{onCopy:s,onCut:function(e){if(s(e),a()){var t=c();l(t)}}}}))])((function(e){var t=e.children,n=e.onCopy,r=e.onCut;return Object(u.createElement)("div",{onCopy:n,onCut:r},t)})),Bc=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(){this.scrollIntoView()}},{key:"scrollIntoView",value:function(){var e=this.props.extentClientId;if(e){var t=po(e);if(t){var n=Object(xr.getScrollContainer)(t);n&&xe()(t,n,{onlyScrollIfNeeded:!0})}}}},{key:"render",value:function(){return null}}]),t}(u.Component),Tc=Object(m.withSelect)((function(e){return{extentClientId:(0,e("core/block-editor").getLastMultiSelectedBlockClientId)()}}))(Bc),xc=[he.UP,he.RIGHT,he.DOWN,he.LEFT,he.ENTER,he.BACKSPACE];var Lc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(Object(E.a)(e)),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(Object(E.a)(e)),e.startTypingInTextField=e.startTypingInTextField.bind(Object(E.a)(e)),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(Object(E.a)(e)),e.stopTypingOnEscapeKey=e.stopTypingOnEscapeKey.bind(Object(E.a)(e)),e.onKeyDown=Object(p.over)([e.startTypingInTextField,e.stopTypingOnEscapeKey]),e.lastMouseMove=null,e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){this.toggleEventBindings(this.props.isTyping)}},{key:"componentDidUpdate",value:function(e){this.props.isTyping!==e.isTyping&&this.toggleEventBindings(this.props.isTyping)}},{key:"componentWillUnmount",value:function(){this.toggleEventBindings(!1)}},{key:"toggleEventBindings",value:function(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",this.stopTypingOnSelectionUncollapse),document[t]("mousemove",this.stopTypingOnMouseMove)}},{key:"stopTypingOnMouseMove",value:function(e){var t=e.clientX,n=e.clientY;if(this.lastMouseMove){var r=this.lastMouseMove,o=r.clientX,i=r.clientY;o===t&&i===n||this.props.onStopTyping()}this.lastMouseMove={clientX:t,clientY:n}}},{key:"stopTypingOnSelectionUncollapse",value:function(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||this.props.onStopTyping()}},{key:"stopTypingOnEscapeKey",value:function(e){this.props.isTyping&&e.keyCode===he.ESCAPE&&this.props.onStopTyping()}},{key:"startTypingInTextField",value:function(e){var t=this.props,n=t.isTyping,r=t.onStartTyping,o=e.type,i=e.target;n||!Object(xr.isTextField)(i)||i.closest(".block-editor-block-toolbar")||("keydown"!==o||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(xc,t)}(e))&&r()}},{key:"stopTypingOnNonTextField",value:function(e){var t=this;e.persist(),this.props.setTimeout((function(){var n=t.props,r=n.isTyping,o=n.onStopTyping,i=e.target;r&&!Object(xr.isTextField)(i)&&o()}))}},{key:"render",value:function(){var e=this.props.children;return Object(u.createElement)("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.onKeyDown},e)}}]),t}(u.Component),Nc=Object(b.compose)([Object(m.withSelect)((function(e){return{isTyping:(0,e("core/block-editor").isTyping)()}})),Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}})),b.withSafeTimeout])(Lc);function Ac(){return Ni()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}var Mc=-1!==window.navigator.userAgent.indexOf("Trident"),Rc=new Set([he.UP,he.DOWN,he.LEFT,he.RIGHT]),Pc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).ref=Object(u.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(E.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(E.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(E.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(E.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(E.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(E.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(xr.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(xr.computeCaretRect)();if(n)if(this.caretRect)if(Rc.has(t))this.caretRect=n;else{var r=n.y-this.caretRect.y;if(0!==r){var o=Object(xr.getScrollContainer)(this.ref.current);if(o){var i=o===document.body,c=i?window.scrollY:o.scrollTop,a=i?0:o.getBoundingClientRect().y,l=i?this.caretRect.y/window.innerHeight:(this.caretRect.y-a)/(window.innerHeight-a);if(0===c&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=i?window.innerHeight:o.clientHeight;this.caretRect.y+this.caretRect.height>a+s||this.caretRect.y1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?Wc:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(qc)):t}var $c=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Gc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0));return[r.length>0&&t.isSelected&&Object(u.createElement)(oe,{key:"align-controls"},Object(u.createElement)(Q,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(i.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:r})),Object(u.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),Yc=Object(b.createHigherOrderComponent)(Object(b.compose)([Object(m.withSelect)((function(e){return{hasWideEnabled:!!(0,e("core/block-editor").getSettings)().alignWide}})),function(e){return function(t){var n=t.name,r=t.attributes,o=t.hasWideEnabled,c=r.align,a=Gc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),o),d=t.wrapperProps;return Object(p.includes)(a,c)&&(d=Object(l.a)({},d,{"data-align":c})),Object(u.createElement)(e,Object(s.a)({},t,{wrapperProps:d}))}}]));Object(h.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])?e:(Object(i.hasBlockSupport)(e,"align")&&(e.attributes=Object(p.assign)(e.attributes,{align:{type:"string"}})),e)})),Object(h.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Yc),Object(h.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",$c),Object(h.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(i.getBlockSupport)(t,"align"),c=Object(i.hasBlockSupport)(t,"alignWide",!0);return Object(p.includes)(Gc(o,c),r)&&(e.className=f()("align".concat(r),e.className)),e}));var Xc=/[\s#]/g;var Zc=Object(b.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(ai,null,Object(u.createElement)(P.TextControl,{className:"html-anchor-control",label:Object(H.__)("HTML Anchor"),help:Object(u.createElement)(u.Fragment,null,Object(H.__)("Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(u.createElement)(P.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(H.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Xc,"-"),t.setAttributes({anchor:e})}}))):Object(u.createElement)(e,t)}}),"withInspectorControl");Object(h.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])?e:(Object(i.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(p.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e)})),Object(h.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Zc),Object(h.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var Jc=Object(b.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(ai,null,Object(u.createElement)(P.TextControl,{label:Object(H.__)("Additional CSS Class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(H.__)("Separate multiple classes with spaces.")}))):Object(u.createElement)(e,t)}}),"withInspectorControl");function Qc(e){e="

".concat(e,"
");var t=Object(i.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(h.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(i.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(p.assign)(e.attributes,{className:{type:"string"}})),e})),Object(h.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Jc),Object(h.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=f()(e.className,n.className)),e})),Object(h.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(i.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(i.getSaveContent)(t,r),c=Qc(o),a=Qc(n),l=Object(p.difference)(a,c);l.length?e.className=l.join(" "):o&&delete e.className}return e})),Object(h.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(i.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(p.uniq)([Object(i.getBlockDefaultClassName)(t.name)].concat(Object(Be.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e}));var ea=n(228),ta=n.n(ea),na=n(31),ra=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oa=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new c(e),p(),t}}function c(e){this.start=e,this.end={line:n,column:r},this.source=t.source}c.prototype.content=e;var a=[];function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;a.push(i)}function s(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){var t,n=[];for(p(),b(n);e.length&&"}"!==e.charAt(0)&&(t=C()||E());)!1!==t&&(n.push(t),b(n));return n}function f(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function p(){f(/^\s*/)}function b(e){var t;for(e=e||[];t=h();)!1!==t&&e.push(t);return e}function h(){var t=i();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var c=e.slice(2,n-2);return r+=2,o(c),e=e.slice(n),r+=2,t({type:"comment",comment:c})}}function m(){var e=f(/^([^{]+)/);if(e)return ia(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function v(){var e=i(),t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=ia(t[0]),!f(/^:\s*/))return l("property missing ':'");var n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(ra,""),value:n?ia(n[0]).replace(ra,""):""});return f(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(b(t);e=v();)!1!==e&&(t.push(e),b(t));return u()?t:l("missing '}'")}function O(){for(var e,t=[],n=i();e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var k,y=S("import"),j=S("charset"),_=S("namespace");function S(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=f(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function C(){if("@"===e[0])return function(){var e=i(),t=f(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=f(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var c=b();r=O();)c.push(r),c=c.concat(b());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):l("@keyframes missing '}'")}}()||function(){var e=i(),t=f(/^@media *([^{]+)/);if(t){var n=ia(t[1]);if(!s())return l("@media missing '{'");var r=b().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=i(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:ia(t[1]),media:ia(t[2])})}()||function(){var e=i(),t=f(/^@supports *([^{]+)/);if(t){var n=ia(t[1]);if(!s())return l("@supports missing '{'");var r=b().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||y()||j()||_()||function(){var e=i(),t=f(/^@([-\w]+)?document *([^{]+)/);if(t){var n=ia(t[1]),r=ia(t[2]);if(!s())return l("@document missing '{'");var o=b().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=i();if(f(/^@page */)){var t=m()||[];if(!s())return l("@page missing '{'");for(var n,r=b();n=v();)r.push(n),r=r.concat(b());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=i();if(f(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=b().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=i();if(f(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=b();t=v();)n.push(t),n=n.concat(b());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function E(){var e=i(),t=m();return t?(b(),e({type:"rule",selectors:t,declarations:g()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type;var o=r?t:n;for(var i in t){var c=t[i];Array.isArray(c)?c.forEach((function(t){e(t,o)})):c&&"object"===Object(na.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((k=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:k,parsingErrors:a}}))};function ia(e){return e?e.replace(/^\s+|\s+$/g,""):""}var ca=n(122),aa=n.n(ca),la=sa;function sa(e){this.options=e||{}}sa.prototype.emit=function(e){return e},sa.prototype.visit=function(e){return this[e.type](e)},sa.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Object(l.a)({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(ka)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},ja=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(ya(t)),r&&o.push(Oa(r)),o.length?ha(n,Object(b.compose)(o)):n}))};n.d(t,"AlignmentToolbar",(function(){return V})),n.d(t,"Autocomplete",(function(){return $})),n.d(t,"BlockAlignmentToolbar",(function(){return Q})),n.d(t,"BlockControls",(function(){return oe})),n.d(t,"BlockEdit",(function(){return le})),n.d(t,"BlockFormatControls",(function(){return pe})),n.d(t,"BlockIcon",(function(){return be})),n.d(t,"BlockNavigationDropdown",(function(){return Oe})),n.d(t,"__experimentalBlockNavigationList",(function(){return me})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Ce})),n.d(t,"ButtonBlockerAppender",(function(){return Ko})),n.d(t,"ColorPalette",(function(){return qo})),n.d(t,"ContrastChecker",(function(){return $o})),n.d(t,"InnerBlocks",(function(){return ni})),n.d(t,"InspectorAdvancedControls",(function(){return ai})),n.d(t,"InspectorControls",(function(){return fi})),n.d(t,"MediaPlaceholder",(function(){return _i})),n.d(t,"MediaUpload",(function(){return pi})),n.d(t,"MediaUploadCheck",(function(){return Ee})),n.d(t,"PanelColorSettings",(function(){return Bi})),n.d(t,"PlainText",(function(){return Ti})),n.d(t,"RichText",(function(){return qi})),n.d(t,"RichTextShortcut",(function(){return Fi})),n.d(t,"RichTextToolbarButton",(function(){return Hi})),n.d(t,"__unstableRichTextInputEvent",(function(){return Ui})),n.d(t,"URLInput",(function(){return vi})),n.d(t,"URLInputButton",(function(){return Gi})),n.d(t,"URLPopover",(function(){return Oi})),n.d(t,"withColorContext",(function(){return Wo})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Zi})),n.d(t,"__experimentalBlockSettingsMenuPluginsExtension",(function(){return tc})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Mo})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return cc})),n.d(t,"BlockInspector",(function(){return hc})),n.d(t,"BlockList",(function(){return Co})),n.d(t,"BlockMover",(function(){return Fr})),n.d(t,"BlockPreview",(function(){return wo})),n.d(t,"BlockSelectionClearer",(function(){return vc})),n.d(t,"BlockSettingsMenu",(function(){return _c})),n.d(t,"BlockTitle",(function(){return eo})),n.d(t,"BlockToolbar",(function(){return wc})),n.d(t,"CopyHandler",(function(){return Ic})),n.d(t,"DefaultBlockAppender",(function(){return jo})),n.d(t,"Inserter",(function(){return zo})),n.d(t,"MultiBlocksSwitcher",(function(){return Ec})),n.d(t,"MultiSelectScrollIntoView",(function(){return Tc})),n.d(t,"NavigableToolbar",(function(){return no})),n.d(t,"ObserveTyping",(function(){return Nc})),n.d(t,"PreserveScrollInReorder",(function(){return Ac})),n.d(t,"SkipToSelectedBlock",(function(){return ac})),n.d(t,"Typewriter",(function(){return Dc})),n.d(t,"Warning",(function(){return Hr})),n.d(t,"WritingFlow",(function(){return Kc})),n.d(t,"BlockEditorProvider",(function(){return Ir})),n.d(t,"getColorClassName",(function(){return y})),n.d(t,"getColorObjectByAttributeValues",(function(){return O})),n.d(t,"getColorObjectByColorValue",(function(){return k})),n.d(t,"createCustomColorsHOC",(function(){return N})),n.d(t,"withColors",(function(){return A})),n.d(t,"getFontSize",(function(){return M})),n.d(t,"getFontSizeClass",(function(){return R})),n.d(t,"FontSizePicker",(function(){return D})),n.d(t,"withFontSizes",(function(){return F})),n.d(t,"transformStyles",(function(){return ja})),n.d(t,"storeConfig",(function(){return Sr})),n.d(t,"SETTINGS_DEFAULTS",(function(){return Re}))},39:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},4:function(e,t){!function(){e.exports=this.wp.data}()},41:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},43:function(e,t){!function(){e.exports=this.wp.viewport}()},45:function(e,t,n){e.exports=function(e,t){var n,r,o,i=0;function c(){var t,c,a=r,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(c=0;c=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=r.call(c,"catchLoc"),s=r.call(c,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},49:function(e,t,n){var r;!function(o){var i=/^\s+/,c=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,l=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(c,"").toLowerCase();var t,n=!1;if(T[e])e=T[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=z.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=z.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=z.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=z.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=z.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=z.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=z.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=z.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:n?"name":"hex"};if(t=z.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=z.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(K(e.r)&&K(e.g)&&K(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*N(p,255),g:255*N(b,255),b:255*N(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):K(e.h)&&K(e.s)&&K(e.v)?(r=P(e.s),a=P(e.v),t=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=o.floor(e),i=e-r,c=n*(1-t),a=n*(1-i*t),l=n*(1-(1-i)*t),s=r%6;return{r:255*[n,a,c,c,l,n][s],g:255*[l,n,n,a,c,c][s],b:255*[c,c,l,n,n,a][s]}}(e.h,r,a),d=!0,f="hsv"):K(e.h)&&K(e.s)&&K(e.l)&&(r=P(e.s),l=P(e.l),t=function(e,t,n){var r,o,i;function c(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=i=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=c(l,a,e+1/3),o=c(l,a,e),i=c(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,l),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=L(n),{ok:d,format:e.format||f,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,i=u(e,t,n),c=s(e,t,n),a=(i+c)/2;if(i==c)r=o=0;else{var l=i-c;switch(o=a>.5?l/(2-i-c):l/(i+c),i){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function B(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,c=[],a=1/t;t--;)c.push(f({h:r,s:o,v:i})),i=(i+a)%1;return c}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=L(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=b(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16)),R(D(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:P(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),i=n/100;return f({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,i=f.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},f.mostReadable=function(e,t,n){var r,o,i,c,a=null,l=0;o=(n=n||{}).includeFallbackColors,i=n.level,c=n.size;for(var s=0;sl&&(l=r,a=f(t[s]));return f.isReadable(e,a,{level:i,size:c})||!o?a:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var T=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(T);function L(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return s(1,u(0,e))}function M(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function D(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return M(e)/255}var H,U,V,z=(U="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",V="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function K(e){return!!z.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},5:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},54:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},64:function(e,t,n){"use strict";t.__esModule=!0;var r=n(132);t.default=r.default},66:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(136)),i=r(n(137)),c=n(28),a=r(c),l=r(n(138)),s=r(n(139)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=c.useState(!1)[1];return c.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return u.und(e)||u.nul(e)?t:e}function p(e){return u.und(e)?[]:u.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var c=i,a=!1,l=0;l=p.startTime+s.duration;else if(s.decay)m=b+O/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(u=Math.abs(p.lastPosition-m)<.1)&&(h=m);else{d=void 0!==p.lastTime?p.lastTime:t,O=void 0!==p.lastVelocity?p.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var k=Math.floor(t-d),y=0;yh:m=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,c,a,l){var s=l?l(e):e;if(sn){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],l,c,a,r.map)}}var H=function(e){function t(n,r,o,i){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof O&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(r,o,i),c}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(O);var U=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new H(this,e,t,n)},t}(g),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new U(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new H(this,e,t)},t}(O),z=0,K=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=z++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,c=t.to,a=i(t,["delay","to"]);if(u.arr(c)||u.fun(c))this.queue.push(o({},a,{delay:r,to:c}));else if(c){var l={};Object.entries(c).forEach((function(e){var t,n=e[0],i=e[1],c=o({to:(t={},t[n]=i,t),delay:b(r,n)},a),s=l[c.delay]&&l[c.delay].to;l[c.delay]=o({},l[c.delay],c,{to:o({},s,c.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,c=void 0===i?{}:i;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(c)&&(n.merged=o({},n.merged,c))}));var r=this.local=++this.guid,c=this.localQueue=this.queue;this.queue=[],c.forEach((function(t,o){var a=t.delay,l=i(t,["delay"]),s=function(t){o===c.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,P.has(t)||P.add(t),R||(R=!0,S(x||D));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,P.has(t)&&P.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),c=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,i=o({},r,h(r.to[t]));u.arr(i.config)&&(i.config=i.config[t]),a=a.then((function(){if(c===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},s=0;s=r.length)return"break";c=r[i++]}else{if((i=r.next()).done)return"break";c=i.value}var n=c.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var c;if("break"===n())break}e.current.forceUpdate()}var Q=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=m.transform(t)),n.payload=t,n}return l(t,e),t}(k),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},te="[-+]?\\d*\\.?\\d+",ne=te+"%";function re(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=fe(o,r,e+1/3),c=fe(o,r,e),a=fe(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*c)<<16|Math.round(255*a)<<8}function be(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function he(e){return(parseFloat(e)%360+360)%360/360}function me(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ve(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ge(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ue.exec(t))?parseInt(n[1]+"ff",16)>>>0:ee.hasOwnProperty(t)?ee[t]:(n=oe.exec(t))?(be(n[1])<<24|be(n[2])<<16|be(n[3])<<8|255)>>>0:(n=ie.exec(t))?(be(n[1])<<24|be(n[2])<<16|be(n[3])<<8|me(n[4]))>>>0:(n=le.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=de.exec(t))?parseInt(n[1],16)>>>0:(n=se.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ce.exec(t))?(255|pe(he(n[1]),ve(n[2]),ve(n[3])))>>>0:(n=ae.exec(t))?(pe(he(n[1]),ve(n[2]),ve(n[3]))|me(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var Oe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ke=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ye=new RegExp("("+Object.keys(ee).join("|")+")","g"),je={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_e=["Webkit","Ms","Moz","O"];function Se(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||je.hasOwnProperty(e)&&je[e]?(""+t).trim():t+"px"}je=Object.keys(je).reduce((function(e,t){return _e.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),je);var Ce={};N((function(e){return new Q(e)})),B("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ke,ge)})).map((function(e){return e.replace(ye,ge)})),n=t[0].match(Oe).map((function(){return[]}));t.forEach((function(e){e.match(Oe).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(Oe).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(Oe,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),j(ee),y((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,c=t.scrollLeft,a=i(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==c&&(e.scrollLeft=c),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=Se(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var f in a){var p=l?f:Ce[f]||(Ce[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,a[f])}}),(function(e){return e}));var Ee,we,Ie=(Ee=function(e){return c.forwardRef((function(t,n){var r=d(),l=c.useRef(!0),s=c.useRef(null),f=c.useRef(null),p=c.useCallback((function(e){var t=s.current;s.current=new M(e,(function(){var e=!1;f.current&&(e=m.fn(f.current,s.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),c.useImperativeHandle(n,(function(){return L(f,l,r)})),p(t);var b,h=s.current.getValue(),v=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),g=(b=e,!u.fun(b)||b.prototype instanceof a.Component?function(e){return f.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},v,{ref:g}))}))},void 0===(we=!1)&&(we=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=we?t[0].toLowerCase()+t.substring(1):t;return e[n]=Ee(n),e}),Ee)}),Be=Ie(["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","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"]);t.apply=Ie,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=D,t.animated=Be,t.a=Be,t.interpolate=function(e,t,n){return e&&new H(e,t,n)},t.Globals=A,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=c.useRef(!1),r=u.fun(t),i=b(t),a=c.useRef(),l=W(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},i,{config:b(i.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],f=l[2],p=c.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,c=a.current[r];return o({},e,{config:b(e.config||i.config,t),attach:c&&function(){return c}})}))}}),[e,i.reverse]);return c.useEffect((function(){n.current&&!r&&p(t)})),c.useEffect((function(){n.current=!0}),[]),r?[s,p,f]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=Z(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),f=void 0!==u&&u,p=(a.enter,a.leave,a.update,a.onDestroyed),h=(a.keys,a.items,a.onFrame),m=a.onRest,v=a.onStart,g=a.ref,O=i(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),k=d(),y=c.useRef(!1),j=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!y.current&&new Map,forceUpdate:k});return c.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(j.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(j.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(j.current.instances).map((function(e){return e[1]}))}}})),j.current=function(e,t){var n=e.first,r=e.prevProps,c=i(e,["first","prevProps"]),a=Z(t),l=a.items,s=a.keys,u=a.initial,d=a.from,f=a.enter,p=a.leave,h=a.update,m=a.trail,v=void 0===m?0:m,g=a.unique,O=a.config,k=a.order,y=void 0===k?[G,$,Y]:k,j=Z(r),_=j.keys,S=j.items,C=o({},c.current),E=[].concat(c.deleted),w=Object.keys(C),I=new Set(w),B=new Set(s),T=s.filter((function(e){return!I.has(e)})),x=c.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),L=s.filter((function(e){return I.has(e)})),N=-v;for(;y.length;){switch(y.shift()){case G:T.forEach((function(e,t){g&&E.find((function(t){return t.originalKey===e}))&&(E=E.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],i=n&&void 0!==u?"initial":G;C[e]={slot:i,originalKey:e,key:g?String(e):q++,item:o,trail:N+=v,config:b(O,o,i),from:b(n&&void 0!==u?u||{}:d,o),to:b(f,o)}}));break;case $:x.forEach((function(e){var t=_.indexOf(e),n=S[t],r=$;E.unshift(o({},C[e],{slot:r,destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=v,config:b(O,n,r),to:b(p,n)})),delete C[e]}));break;case Y:L.forEach((function(e){var t=s.indexOf(e),n=l[t],r=Y;C[e]=o({},C[e],{item:n,slot:r,trail:N+=v,config:b(O,n,r),to:b(h,n)})}))}}var A=s.map((function(e){return C[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=A.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),A=[].concat(A.slice(0,t),[r],A.slice(t))})),o({},c,{changed:T.length||x.length||L.length,first:n&&0===T.length,transitions:A,current:C,deleted:E,prevProps:t})}(j.current,r),j.current.changed&&j.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,c=e.trail,a=e.key,l=e.item;j.current.instances.has(a)||j.current.instances.set(a,new K);var u=j.current.instances.get(a),d=o({},O,{to:r,from:n,config:i,ref:g,onRest:function(n){j.current.mounted&&(e.destroyed&&(g||s||J(j,a),p&&p(l)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&j.current.deleted.length>0&&J(j),m&&m(l,t,n))},onStart:v&&function(){return v(l,t)},onFrame:h&&function(e){return h(l,t,e)},delay:c,reset:f&&t===G});u.update(d),j.current.paused||u.start()})),c.useEffect((function(){return j.current.mounted=y.current=!0,function(){j.current.mounted=y.current=!1,Array.from(j.current.instances).map((function(e){return e[1].destroy()})),j.current.instances.clear()}}),[]),j.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:j.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=c.useRef();c.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var c=i.controllers;if(c.length){var a=n*t[r];c.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},67:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(e){for(var t=1;t",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),d=["%","/","?",";","#"].concat(u),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(143);function O(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i127?N+="x":N+=L[A];if(!N.match(p)){var R=T.slice(0,w),P=T.slice(w+1),D=L.match(b);D&&(R.push(D[1]),P.unshift(D[2])),P.length&&(O="/"+P.join(".")+O),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+F,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!h[j])for(w=0,x=u.length;w0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=_.slice(-1)[0],E=(n.host||e.host||_.length>1)&&("."===C||".."===C)||""===C,w=0,I=_.length;I>=0;I--)"."===(C=_[I])?_.splice(I,1):".."===C?(_.splice(I,1),w++):w&&(_.splice(I,1),w--);if(!y&&!j)for(;w--;w)_.unshift("..");!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push("");var B,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);S&&(n.hostname=n.host=T?"":_.length?_.shift():"",(B=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.shift()));return(y=y||n.host&&_.length)&&!T&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},9:function(e,t){!function(){e.exports=this.wp.blocks}()},94:function(e,t,n){"use strict";var r=n(95);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,c){if(c!==r){var a=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 a.name="Invariant Violation",a}}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}},95:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}); \ No newline at end of file +var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.merge=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(2),a=n(3),l=n(5),s=n(6),u=n(7),d=n(8),f=n(9),p=n(10),b=n(11),h=n(13),m=n(14),v=n(16),g=n(17);t.Diff=i.default,t.diffChars=c.diffChars,t.diffWords=a.diffWords,t.diffWordsWithSpace=a.diffWordsWithSpace,t.diffLines=l.diffLines,t.diffTrimmedLines=l.diffTrimmedLines,t.diffSentences=s.diffSentences,t.diffCss=u.diffCss,t.diffJson=d.diffJson,t.diffArrays=f.diffArrays,t.structuredPatch=m.structuredPatch,t.createTwoFilesPatch=m.createTwoFilesPatch,t.createPatch=m.createPatch,t.applyPatch=p.applyPatch,t.applyPatches=p.applyPatches,t.parsePatch=b.parsePatch,t.merge=h.merge,t.convertChangesToDMP=v.convertChangesToDMP,t.convertChangesToXML=g.convertChangesToXML,t.canonicalize=d.canonicalize},function(e,t){"use strict";function n(){}function r(e,t,n,r,o){for(var i=0,c=t.length,a=0,l=0;ie.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var f=t[c-1];return c>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[c-2].value+=f.value,t.pop()),t}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var c=this;function a(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,f=[{newPos:-1,components:[]}],p=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=l&&p+1>=s)return a([{value:this.join(t),count:t.length}]);function b(){for(var n=-1*u;n<=u;n+=2){var i=void 0,d=f[n-1],p=f[n+1],b=(p?p.newPos:0)-n;d&&(f[n-1]=void 0);var h=d&&d.newPos+1=l&&b+1>=s)return a(r(c,i.components,t,e,c.useLongestToken));f[n]=i}else f[n]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>d)return i();b()||e()}),0)}();else for(;u<=d;){var h=b();if(h)return h}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,c=e.newPos,a=c-r,l=0;c+12&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,o.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},s=0,u=n.fuzzFactor||0,d=0,f=0,p=void 0,b=void 0;function h(e,t){for(var n=0;n0?o[0]:" ",c=o.length>0?o.substr(1):o;if(" "===i||"-"===i){if(!l(t+1,r[t],i,c)&&++s>u)return!1;t++}}return!0}for(var m=0;m0?w[0]:" ",B=w.length>0?w.substr(1):w,T=S.linedelimiters[E];if(" "===I)C++;else if("-"===I)r.splice(C,1),i.splice(C,1);else if("+"===I)r.splice(C,0,B),i.splice(C,0,T),C++;else if("\\"===I){var x=S.lines[E-1]?S.lines[E-1][0]:null;"+"===x?p=!0:"-"===x&&(b=!0)}}}if(p)for(;!r[r.length-1];)r.pop(),i.pop();else b&&(r.push(""),i.push("\n"));for(var L=0;L1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function c(){var e={};for(o.push(e);i0?u(a.lines.slice(-l.context)):[],f-=b.length,p-=b.length)}(c=b).push.apply(c,o(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=r.length:h+=r.length}else{if(f)if(r.length<=2*l.context&&e=s.length-2&&r.length<=l.context){var y=/\n$/.test(n),j=/\n$/.test(i);0!=r.length||y?y&&j||b.push("\\ No newline at end of file"):b.splice(k.oldLines,0,"\\ No newline at end of file")}d.push(k),f=0,p=0,b=[]}h+=r.length,m+=r.length}},g=0;ge.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push((o=r.value,void 0,o.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""))),r.added?t.push(""):r.removed&&t.push("")}var o;return t.join("")}}])},e.exports=r()},197:function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var f=n?i(d):d,p={},b=!0,h={node:f,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(b=!1)},delete:function(e){delete h.parent.node[h.key],e&&(b=!1)},remove:function(e){l(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(b=!1)},keys:null,before:function(e){p.before=e},after:function(e){p.after=e},pre:function(e){p.pre=e},post:function(e){p.post=e},stop:function(){a=!1},block:function(){b=!1}};if(!a)return h;function m(){if("object"==typeof h.node&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=c(h.node)),h.isLeaf=0==h.keys.length;for(var e=0;e=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},22:function(e,t){!function(){e.exports=this.wp.richText}()},23:function(e,t,n){"use strict";var r=n(38);var o=n(39);function i(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return i}))},25:function(e,t){!function(){e.exports=this.wp.dom}()},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},28:function(e,t){!function(){e.exports=this.React}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},31:function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},311:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"resetBlocks",(function(){return bt})),n.d(r,"receiveBlocks",(function(){return ht})),n.d(r,"updateBlockAttributes",(function(){return mt})),n.d(r,"updateBlock",(function(){return vt})),n.d(r,"selectBlock",(function(){return gt})),n.d(r,"selectPreviousBlock",(function(){return Ot})),n.d(r,"selectNextBlock",(function(){return kt})),n.d(r,"startMultiSelect",(function(){return yt})),n.d(r,"stopMultiSelect",(function(){return jt})),n.d(r,"multiSelect",(function(){return _t})),n.d(r,"clearSelectedBlock",(function(){return St})),n.d(r,"toggleSelection",(function(){return Ct})),n.d(r,"replaceBlocks",(function(){return wt})),n.d(r,"replaceBlock",(function(){return It})),n.d(r,"moveBlocksDown",(function(){return Tt})),n.d(r,"moveBlocksUp",(function(){return xt})),n.d(r,"moveBlockToPosition",(function(){return Lt})),n.d(r,"insertBlock",(function(){return Nt})),n.d(r,"insertBlocks",(function(){return At})),n.d(r,"showInsertionPoint",(function(){return Mt})),n.d(r,"hideInsertionPoint",(function(){return Rt})),n.d(r,"setTemplateValidity",(function(){return Pt})),n.d(r,"synchronizeTemplate",(function(){return Dt})),n.d(r,"mergeBlocks",(function(){return Ft})),n.d(r,"removeBlocks",(function(){return Ht})),n.d(r,"removeBlock",(function(){return Ut})),n.d(r,"replaceInnerBlocks",(function(){return Vt})),n.d(r,"toggleBlockMode",(function(){return zt})),n.d(r,"startTyping",(function(){return Kt})),n.d(r,"stopTyping",(function(){return Wt})),n.d(r,"enterFormattedText",(function(){return qt})),n.d(r,"exitFormattedText",(function(){return Gt})),n.d(r,"selectionChange",(function(){return $t})),n.d(r,"insertDefaultBlock",(function(){return Yt})),n.d(r,"updateBlockListSettings",(function(){return Xt})),n.d(r,"updateSettings",(function(){return Zt})),n.d(r,"__unstableSaveReusableBlock",(function(){return Jt})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return Qt})),n.d(r,"__unstableMarkAutomaticChange",(function(){return en})),n.d(r,"setNavigationMode",(function(){return tn}));var o={};n.r(o),n.d(o,"INSERTER_UTILITY_HIGH",(function(){return rn})),n.d(o,"INSERTER_UTILITY_MEDIUM",(function(){return on})),n.d(o,"INSERTER_UTILITY_LOW",(function(){return cn})),n.d(o,"INSERTER_UTILITY_NONE",(function(){return an})),n.d(o,"getBlockName",(function(){return un})),n.d(o,"isBlockValid",(function(){return dn})),n.d(o,"getBlockAttributes",(function(){return fn})),n.d(o,"getBlock",(function(){return pn})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return bn})),n.d(o,"getBlocks",(function(){return hn})),n.d(o,"getClientIdsOfDescendants",(function(){return mn})),n.d(o,"getClientIdsWithDescendants",(function(){return vn})),n.d(o,"getGlobalBlockCount",(function(){return gn})),n.d(o,"getBlocksByClientId",(function(){return On})),n.d(o,"getBlockCount",(function(){return kn})),n.d(o,"getSelectionStart",(function(){return yn})),n.d(o,"getSelectionEnd",(function(){return jn})),n.d(o,"getBlockSelectionStart",(function(){return _n})),n.d(o,"getBlockSelectionEnd",(function(){return Sn})),n.d(o,"getSelectedBlockCount",(function(){return Cn})),n.d(o,"hasSelectedBlock",(function(){return En})),n.d(o,"getSelectedBlockClientId",(function(){return wn})),n.d(o,"getSelectedBlock",(function(){return In})),n.d(o,"getBlockRootClientId",(function(){return Bn})),n.d(o,"getBlockHierarchyRootClientId",(function(){return Tn})),n.d(o,"getAdjacentBlockClientId",(function(){return xn})),n.d(o,"getPreviousBlockClientId",(function(){return Ln})),n.d(o,"getNextBlockClientId",(function(){return Nn})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return An})),n.d(o,"getSelectedBlockClientIds",(function(){return Mn})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return Rn})),n.d(o,"getMultiSelectedBlocks",(function(){return Pn})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return Dn})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return Fn})),n.d(o,"isFirstMultiSelectedBlock",(function(){return Hn})),n.d(o,"isBlockMultiSelected",(function(){return Un})),n.d(o,"isAncestorMultiSelected",(function(){return Vn})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return zn})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return Kn})),n.d(o,"getBlockOrder",(function(){return Wn})),n.d(o,"getBlockIndex",(function(){return qn})),n.d(o,"isBlockSelected",(function(){return Gn})),n.d(o,"hasSelectedInnerBlock",(function(){return $n})),n.d(o,"isBlockWithinSelection",(function(){return Yn})),n.d(o,"hasMultiSelection",(function(){return Xn})),n.d(o,"isMultiSelecting",(function(){return Zn})),n.d(o,"isSelectionEnabled",(function(){return Jn})),n.d(o,"getBlockMode",(function(){return Qn})),n.d(o,"isTyping",(function(){return er})),n.d(o,"isCaretWithinFormattedText",(function(){return tr})),n.d(o,"getBlockInsertionPoint",(function(){return nr})),n.d(o,"isBlockInsertionPointVisible",(function(){return rr})),n.d(o,"isValidTemplate",(function(){return or})),n.d(o,"getTemplate",(function(){return ir})),n.d(o,"getTemplateLock",(function(){return cr})),n.d(o,"canInsertBlockType",(function(){return lr})),n.d(o,"getInserterItems",(function(){return dr})),n.d(o,"hasInserterItems",(function(){return fr})),n.d(o,"getBlockListSettings",(function(){return pr})),n.d(o,"getSettings",(function(){return br})),n.d(o,"isLastBlockChangePersistent",(function(){return hr})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return mr})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return vr})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return gr})),n.d(o,"isNavigationMode",(function(){return kr})),n.d(o,"didAutomaticChange",(function(){return yr}));var i=n(9),c=n(22),a=n(42),l=n(7),s=n(18),u=n(0),d=n(16),f=n.n(d),p=n(2),b=n(8),h=n(27),m=n(4),v=n(48),g=n.n(v),O=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{color:n}},k=function(e,t){return Object(p.find)(e,{color:t})};function y(e,t){if(e&&t)return"has-".concat(Object(p.kebabCase)(t),"-").concat(e)}var j=n(12),_=n(11),S=n(13),C=n(14),E=n(5),w=n(15),I=n(10),B=[],T=function(e){return Object(b.createHigherOrderComponent)((function(t){return function(n){return Object(u.createElement)(t,Object(s.a)({},n,{colors:e}))}}),"withCustomColorPalette")},x=function(){return Object(m.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{colors:Object(p.get)(t,["colors"],B)}}))};function L(e,t){var n=Object(p.reduce)(e,(function(e,t){return Object(l.a)({},e,Object(p.isString)(t)?Object(I.a)({},t,Object(p.kebabCase)(t)):t)}),{});return Object(b.compose)([t,function(e){return function(t){function r(e){var t;return Object(j.a)(this,r),(t=Object(S.a)(this,Object(C.a)(r).call(this,e))).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(E.a)(t))},t.state={},t}return Object(w.a)(r,t),Object(_.a)(r,[{key:"getMostReadableColor",value:function(e){return function(e,t){return g.a.mostReadable(t,Object(p.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(p.reduce)(n,(function(t,n,r){var o=Object(p.upperFirst)(r),i="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,i),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,i=k(n.props.colors,r);n.props.setAttributes((o={},Object(I.a)(o,e,i&&i.slug?i.slug:void 0),Object(I.a)(o,t,i&&i.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(u.createElement)(e,Object(l.a)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.attributes,o=e.colors;return Object(p.reduce)(n,(function(e,n,i){var c=O(o,r[i],r["custom".concat(Object(p.upperFirst)(i))]),a=t[i];return Object(p.get)(a,["color"])===c.color&&a?e[i]=a:e[i]=Object(l.a)({},c,{class:y(n,c.slug)}),e}),{})}}]),r}(u.Component)}])}function N(e){return function(){for(var t=T(e),n=arguments.length,r=new Array(n),o=0;o3&&void 0!==arguments[3]?arguments[3]:1,o=Object(Be.a)(e);return o.splice(t,r),Pe(o,e.slice(t,t+r),n)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(I.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Fe(o,r))})),n}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(I.a)({},n.clientId,t),He(n.innerBlocks,n.clientId))}),{})}function Ue(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(Be.a)(e);r.length;){var o=r.shift(),i=o.innerBlocks,c=Object(Ae.a)(o,["innerBlocks"]);r.push.apply(r,Object(Be.a)(i)),n[c.clientId]=t(c)}return n}function Ve(e){return Ue(e,(function(e){return Object(p.omit)(e,"attributes")}))}function ze(e){return Ue(e,(function(e){return e.attributes}))}function Ke(e,t){return e===t?Object(l.a)({},e):t}function We(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&e.clientId===t.clientId&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var qe=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var Ge=Object(p.flow)(m.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=Object(l.a)({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Object(l.a)({},e,{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(Ue(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var i=Object(p.keys)(Ue(n.blocks));n.rootClientId&&i.push(n.rootClientId),r.cache=Object(l.a)({},r.cache,qe(o(i)));break;case"UPDATE_BLOCK":case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Object(l.a)({},r.cache,qe(o([n.clientId])));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var c=qe(o(n.replacedClientIds));r.cache=Object(l.a)({},Object(p.omit)(r.cache,n.replacedClientIds),Object(p.omit)(c,n.replacedClientIds),qe(Object(p.keys)(Ue(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Object(l.a)({},Object(p.omit)(r.cache,n.removedClientIds),qe(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCK_TO_POSITION":var a=[n.clientId];n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Object(l.a)({},r.cache,qe(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var s=[];n.rootClientId&&s.push(n.rootClientId),r.cache=Object(l.a)({},r.cache,qe(o(s)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var u=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Object(l.a)({},r.cache,qe(o(u)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var n=e,r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.reduce)(t[n],(function(n,r){return[].concat(Object(Be.a)(n),[r],Object(Be.a)(e(t,r)))}),[])}(t.order);return Object(l.a)({},t,{byClientId:Object(l.a)({},Object(p.omit)(t.byClientId,r),Ve(n.blocks)),attributes:Object(l.a)({},Object(p.omit)(t.attributes,r),ze(n.blocks)),order:Object(l.a)({},Object(p.omit)(t.order,r),Fe(n.blocks)),parents:Object(l.a)({},Object(p.omit)(t.parents,r),He(n.blocks)),cache:Object(l.a)({},Object(p.omit)(t.cache,r),Object(p.mapValues)(Ue(n.blocks),(function(){return{}})))})}return e(t,n)}}),(function(e){var t;return function(n,r){var o=e(n,r),i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type;if(n===o&&!i){var c=Object(p.get)(n,["isPersistentChange"],!0);return n.isPersistentChange===c?n:Object(l.a)({},o,{isPersistentChange:c})}return o=Object(l.a)({},o,{isPersistentChange:i||!We(r,t)}),t=r,o}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Ve(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(l.a)({},e,Ve(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:Object(l.a)({},e,Object(I.a)({},t.clientId,Object(l.a)({},e[t.clientId],n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),Ve(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return ze(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(l.a)({},e,ze(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Object(l.a)({},e,Object(I.a)({},t.clientId,Object(l.a)({},e[t.clientId],t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(p.reduce)(t.attributes,(function(n,r,o){return r!==n[o]&&((n=Ke(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:Object(l.a)({},e,Object(I.a)({},t.clientId,n));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),ze(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Fe(t.blocks);case"RECEIVE_BLOCKS":return Object(l.a)({},e,Object(p.omit)(Fe(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],i=Fe(t.blocks,r),c=t.index,a=void 0===c?o.length:c;return Object(l.a)({},e,i,Object(I.a)({},r,Pe(o,i[r],a)));case"MOVE_BLOCK_TO_POSITION":var s,u=t.fromRootClientId,d=void 0===u?"":u,f=t.toRootClientId,b=void 0===f?"":f,h=t.clientId,m=t.index,v=void 0===m?e[b].length:m;if(d===b){var g=e[b],O=g.indexOf(h);return Object(l.a)({},e,Object(I.a)({},b,De(e[b],O,v)))}return Object(l.a)({},e,(s={},Object(I.a)(s,d,Object(p.without)(e[d],h)),Object(I.a)(s,b,Pe(e[b],h,v)),s));case"MOVE_BLOCKS_UP":var k=t.clientIds,y=t.rootClientId,j=void 0===y?"":y,_=Object(p.first)(k),S=e[j];if(!S.length||_===Object(p.first)(S))return e;var C=S.indexOf(_);return Object(l.a)({},e,Object(I.a)({},j,De(S,C,C-1,k.length)));case"MOVE_BLOCKS_DOWN":var E=t.clientIds,w=t.rootClientId,B=void 0===w?"":w,T=Object(p.first)(E),x=Object(p.last)(E),L=e[B];if(!L.length||x===Object(p.last)(L))return e;var N=L.indexOf(T);return Object(l.a)({},e,Object(I.a)({},B,De(L,N,N+1,E.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var A=t.clientIds;if(!t.blocks)return e;var M=Fe(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Object(l.a)({},e,Object(p.omit)(M,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===A[0]?[].concat(Object(Be.a)(e),Object(Be.a)(M[""])):(-1===A.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(Be.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return He(t.blocks);case"RECEIVE_BLOCKS":return Object(l.a)({},e,He(t.blocks));case"INSERT_BLOCKS":return Object(l.a)({},e,He(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return Object(l.a)({},e,Object(I.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),He(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e}});var $e={},Ye={start:$e,end:$e,isMultiSelecting:!1,isEnabled:!0,initialPosition:null};var Xe=Object(m.combineReducers)({blocks:Ge,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},blockSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ye,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.start&&e.start.clientId?Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null}):e;case"START_MULTI_SELECT":return e.isMultiSelecting?e:Object(l.a)({},e,{isMultiSelecting:!0,initialPosition:null});case"STOP_MULTI_SELECT":return e.isMultiSelecting?Object(l.a)({},e,{isMultiSelecting:!1,initialPosition:null}):e;case"MULTI_SELECT":return Object(l.a)({},e,{isMultiSelecting:e.isMultiSelecting,start:{clientId:t.start},end:{clientId:t.end}});case"SELECT_BLOCK":return t.clientId===e.start.clientId&&t.clientId===e.end.clientId?e:Object(l.a)({},e,{initialPosition:t.initialPosition,start:{clientId:t.clientId},end:{clientId:t.clientId}});case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection?Object(l.a)({},e,{start:{clientId:t.blocks[0].clientId},end:{clientId:t.blocks[0].clientId}}):e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.start.clientId)?Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null}):e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.start.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];return r?r.clientId===e.start.clientId&&r.clientId===e.end.clientId?e:Object(l.a)({},e,{start:{clientId:r.clientId},end:{clientId:r.clientId}}):Object(l.a)({},e,{start:$e,end:$e,isMultiSelecting:!1,initialPosition:null});case"TOGGLE_SELECTION":return Object(l.a)({},e,{isEnabled:t.isSelectionEnabled});case"SELECTION_CHANGE":return Object(l.a)({},e,{start:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},end:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}})}return e},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return Object(l.a)({},e,Object(I.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:Object(l.a)({},e,Object(I.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":return{rootClientId:t.rootClientId,index:t.index};case"HIDE_INSERTION_POINT":return null}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Object(l.a)({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Object(l.a)({},e,t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Me,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(i.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Object(l.a)({},e,{insertUsage:Object(l.a)({},e.insertUsage,Object(I.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(I.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return Object(I.a)({},t.clientId,t.attributes)}return null},isNavigationMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e},didAutomaticChange:function(e,t){return"MARK_AUTOMATIC_CHANGE"===t.type}}),Ze=n(69),Je=n.n(Ze),Qe=n(195),et=n.n(Qe),tt=n(45),nt=n(20),rt=n.n(nt);function ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:null,clientId:e}}function Ot(e){var t;return rt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ot("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,gt(t,-1);case 6:case"end":return n.stop()}}),at)}function kt(e){var t;return rt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ot("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,gt(t);case 6:case"end":return n.stop()}}),lt)}function yt(){return{type:"START_MULTI_SELECT"}}function jt(){return{type:"STOP_MULTI_SELECT"}}function _t(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function St(){return{type:"CLEAR_SELECTED_BLOCK"}}function Ct(){return{type:"TOGGLE_SELECTION",isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function Et(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(Object(p.includes)(r,"is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,c=n[t];return Object(l.a)({},e,{attributes:Object(l.a)({},i,{className:"".concat(r||""," is-style-").concat(c).trim()})})}))}function wt(e,t,n){var r,o,i;return rt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return e=Object(p.castArray)(e),c.t0=Et,c.t1=Object(p.castArray)(t),c.next=5,ot("core/block-editor","getSettings");case 5:return c.t2=c.sent,t=(0,c.t0)(c.t1,c.t2),c.next=9,ot("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:r=c.sent,o=0;case 11:if(!(o1&&void 0!==a[1]?a[1]:"",n=a.length>2&&void 0!==a[2]?a[2]:"",r=a.length>3?a[3]:void 0,l.next=5,ot("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(i={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,i;case 12:return l.abrupt("return");case 13:if("insert"!==o){l.next=15;break}return l.abrupt("return");case 15:return l.next=17,ot("core/block-editor","getBlockName",e);case 17:return c=l.sent,l.next=20,ot("core/block-editor","canInsertBlockType",c,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,i;case 24:case"end":return l.stop()}}),ut)}function Nt(e,t,n){return At([e],t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function At(e,t,n){var r,o,i,c,a,l,s,u,d=arguments;return rt.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return r=!(d.length>3&&void 0!==d[3])||d[3],f.t0=Et,f.t1=Object(p.castArray)(e),f.next=5,ot("core/block-editor","getSettings");case 5:f.t2=f.sent,e=(0,f.t0)(f.t1,f.t2),o=[],i=!0,c=!1,a=void 0,f.prev=11,l=e[Symbol.iterator]();case 13:if(i=(s=l.next()).done){f.next=22;break}return u=s.value,f.next=17,ot("core/block-editor","canInsertBlockType",u.name,n);case 17:f.sent&&o.push(u);case 19:i=!0,f.next=13;break;case 22:f.next=28;break;case 24:f.prev=24,f.t3=f.catch(11),c=!0,a=f.t3;case 28:f.prev=28,f.prev=29,i||null==l.return||l.return();case 31:if(f.prev=31,!c){f.next=34;break}throw a;case 34:return f.finish(31);case 35:return f.finish(28);case 36:if(!o.length){f.next=38;break}return f.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 38:case"end":return f.stop()}}),dt,null,[[11,24,28,36],[29,,31,35]])}function Mt(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Rt(){return{type:"HIDE_INSERTION_POINT"}}function Pt(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Dt(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Ft(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Ht(e){var t,n=arguments;return rt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=!(n.length>1&&void 0!==n[1])||n[1],e=Object(p.castArray)(e),!t){r.next=5;break}return r.next=5,Ot(e[0]);case 5:return r.next=7,{type:"REMOVE_BLOCKS",clientIds:e};case 7:return r.delegateYield(pt(),"t0",8);case 8:case"end":return r.stop()}}),ft)}function Ut(e,t){return Ht([e],t)}function Vt(e,t){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],time:Date.now()}}function zt(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Kt(){return{type:"START_TYPING"}}function Wt(){return{type:"STOP_TYPING"}}function qt(){return{type:"ENTER_FORMATTED_TEXT"}}function Gt(){return{type:"EXIT_FORMATTED_TEXT"}}function $t(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Yt(e,t,n){var r=Object(i.getDefaultBlockName)();if(r)return Nt(Object(i.createBlock)(r,e),n,t)}function Xt(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Zt(e){return{type:"UPDATE_SETTINGS",settings:e}}function Jt(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Qt(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function en(){return{type:"MARK_AUTOMATIC_CHANGE"}}function tn(){return{type:"SET_NAVIGATION_MODE",isNavigationMode:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}var nn=n(36),rn=3,on=2,cn=1,an=0,ln=Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(u.createElement)(P.G,null,Object(u.createElement)(P.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),sn=[];function un(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function dn(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function fn(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var pn=Object(nn.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Object(l.a)({},n,{attributes:fn(e,t),innerBlocks:hn(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),bn=Object(nn.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Object(l.a)({},n,{attributes:fn(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),hn=Object(nn.a)((function(e,t){return Object(p.map)(Wn(e,t),(function(t){return pn(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),mn=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=Wn(t,n);return[].concat(Object(Be.a)(r),Object(Be.a)(e(t,r)))}))},vn=Object(nn.a)((function(e){var t=Wn(e);return[].concat(Object(Be.a)(t),Object(Be.a)(mn(e,t)))}),(function(e){return[e.blocks.order]})),gn=Object(nn.a)((function(e,t){var n=vn(e);return t?Object(p.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),On=Object(nn.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return pn(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function kn(e,t){return Wn(e,t).length}function yn(e){return e.blockSelection.start}function jn(e){return e.blockSelection.end}function _n(e){return e.blockSelection.start.clientId}function Sn(e){return e.blockSelection.end.clientId}function Cn(e){var t=Rn(e).length;return t||(e.blockSelection.start.clientId?1:0)}function En(e){var t=e.blockSelection,n=t.start,r=t.end;return!!n.clientId&&n.clientId===r.clientId}function wn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId&&n.clientId===r.clientId&&e.blocks.byClientId[n.clientId]?n.clientId:null}function In(e){var t=wn(e);return t?pn(e,t):null}function Bn(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}function Tn(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=wn(e)),void 0===t&&(t=n<0?Dn(e):Fn(e)),!t)return null;var r=Bn(e,t);if(null===r)return null;var o=e.blocks.order[r],i=o.indexOf(t)+1*n;return i<0?null:i===o.length?null:o[i]}function Ln(e,t){return xn(e,t,-1)}function Nn(e,t){return xn(e,t,1)}function An(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId&&n.clientId?e.blockSelection.initialPosition:null}var Mn=Object(nn.a)((function(e){var t=e.blockSelection,n=t.start,r=t.end;if(void 0===n.clientId||void 0===r.clientId)return sn;if(n.clientId===r.clientId)return[n.clientId];var o=Bn(e,n.clientId);if(null===o)return sn;var i=Wn(e,o),c=i.indexOf(n.clientId),a=i.indexOf(r.clientId);return c>a?i.slice(a,c+1):i.slice(c,a+1)}),(function(e){return[e.blocks.order,e.blockSelection.start.clientId,e.blockSelection.end.clientId]}));function Rn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?sn:Mn(e)}var Pn=Object(nn.a)((function(e){var t=Rn(e);return t.length?t.map((function(t){return pn(e,t)})):sn}),(function(e){return[].concat(Object(Be.a)(Mn.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Dn(e){return Object(p.first)(Rn(e))||null}function Fn(e){return Object(p.last)(Rn(e))||null}function Hn(e,t){return Dn(e)===t}function Un(e,t){return-1!==Rn(e).indexOf(t)}var Vn=Object(nn.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Un(e,n=Bn(e,n));return r}),(function(e){return[e.blocks.order,e.blockSelection.start.clientId,e.blockSelection.end.clientId]}));function zn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?null:n.clientId||null}function Kn(e){var t=e.blockSelection,n=t.start,r=t.end;return n.clientId===r.clientId?null:r.clientId||null}function Wn(e,t){return e.blocks.order[t||""]||sn}function qn(e,t,n){return Wn(e,n).indexOf(t)}function Gn(e,t){var n=e.blockSelection,r=n.start,o=n.end;return r.clientId===o.clientId&&r.clientId===t}function $n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(Wn(e,t),(function(t){return Gn(e,t)||Un(e,t)||n&&$n(e,t,n)}))}function Yn(e,t){if(!t)return!1;var n=Rn(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?Object(p.includes)(e,t):n},o=Object(i.getBlockType)(t);if(!o)return!1;var c=br(e),a=c.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!cr(e,n);if(s)return!1;var u=pr(e,n),d=Object(p.get)(u,["allowedBlocks"]),f=r(d,t),b=o.parent,h=un(e,n),m=r(b,h);return null!==f&&null!==m?f||m:null!==f?f:null===m||m},lr=Object(nn.a)(ar,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function sr(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var ur=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&ar(e,t.name,n)},dr=Object(nn.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?rn:t>0?on:"common"===e?cn:an},r=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},o=function(t){var o=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(p.some)(On(e,vn(e)),{name:t.name}));var a=Object(p.isArray)(t.parent),l=sr(e,o)||{},s=l.time,u=l.count,d=void 0===u?0:u;return{id:o,name:t.name,initialAttributes:{},title:t.title,icon:t.icon,category:t.category,keywords:t.keywords,isDisabled:c,utility:n(t.category,d,a),frecency:r(s,d)}},c=function(t){var o,c="core/block/".concat(t.id),a=mr(e,t.id);1===a.length&&(o=Object(i.getBlockType)(a[0].name));var l=sr(e,c)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=n("reusable",d,!1),p=r(s,d);return{id:c,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:o?o.icon:ln,category:"reusable",keywords:[],isDisabled:!1,utility:f,frecency:p}},a=Object(i.getBlockTypes)().filter((function(n){return ur(e,n,t)})).map(o),l=ar(e,"core/block",t)?Or(e).map(c):[];return Object(p.orderBy)([].concat(Object(Be.a)(a),Object(Be.a)(l)),["utility","frecency"],["desc","desc"])}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Or(e),Object(i.getBlockTypes)()]})),fr=Object(nn.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(i.getBlockTypes)(),(function(n){return ur(e,n,t)}));if(n)return!0;var r=ar(e,"core/block",t)&&Or(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Or(e),Object(i.getBlockTypes)()]}));function pr(e,t){return e.blockListSettings[t]}function br(e){return e.settings}function hr(e){return e.blocks.isPersistentChange}var mr=Object(nn.a)((function(e,t){var n=Object(p.find)(Or(e),(function(e){return e.id===t}));return n?Object(i.parse)(n.content):null}),(function(e){return[Or(e)]}));function vr(e){return e.blocks.isIgnoredChange}function gr(e){return e.lastBlockAttributesChange}function Or(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],sn)}function kr(e){return e.isNavigationMode}function yr(e){return e.didAutomaticChange}var jr={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(Ne.a)(e.blocks,2),a=o[0],s=o[1],u=pn(r,a),d=Object(i.getBlockType)(u.name);if(d.merge){var f=pn(r,s),b=Object(i.getBlockType)(f.name),h=yn(r),m=h.clientId,v=h.attributeKey,g=h.offset,O=(m===a||m===s)&&void 0!==v&&void 0!==g,k=Object(i.cloneBlock)(u),y=Object(i.cloneBlock)(f);if(O){var j=m===a?k:y,_=j.attributes[v],S=(m===a?d:b).attributes[v].multiline,C=Object(c.insert)(Object(c.create)({html:_,multilineTag:S}),"†",g,g);j.attributes[v]=Object(c.toHTMLString)({value:C,multilineTag:S})}var E=u.name===f.name?[y]:Object(i.switchToBlockType)(y,u.name);if(E&&E.length){var w=d.merge(k.attributes,E[0].attributes);if(O){var I=Object(p.findKey)(w,(function(e){return"string"==typeof e&&-1!==e.indexOf("†")})),B=w[I],T=d.attributes[I].multiline,x=Object(c.create)({html:B,multilineTag:T}),L=x.text.indexOf("†"),N=Object(c.remove)(x,L,L+1),A=Object(c.toHTMLString)({value:N,multilineTag:T});w[I]=A,n($t(u.clientId,I,L,L))}n(wt([u.clientId,f.clientId],[Object(l.a)({},u,{attributes:Object(l.a)({},u.attributes,w)})].concat(Object(Be.a)(E.slice(1)))))}}else n(gt(u.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=ir(n),o=cr(n),c=!r||"all"!==o||Object(i.doBlocksMatchTemplate)(e.blocks,r);if(c!==or(n))return Pt(c)}],MULTI_SELECT:function(e,t){var n=Cn((0,t.getState)());Object(tt.speak)(Object(H.sprintf)(Object(H._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=hn(n),o=ir(n);return bt(Object(i.synchronizeBlocksWithTemplate)(r,o))}};var _r=function(e){var t,n=[Je()(jr),et.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}};return t=n.map((function(e){return e(o)})),r=p.flowRight.apply(void 0,Object(Be.a)(t))(e.dispatch),e.dispatch=r,e},Sr={reducer:Xe,selectors:o,actions:r,controls:it},Cr=Object(m.registerStore)("core/block-editor",Object(l.a)({},Sr,{persist:["preferences"]}));_r(Cr);var Er=Object(b.createHigherOrderComponent)((function(e){return Object(m.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(Ae.a)(t,["useSubRegistry","registry"]);if(!r)return Object(u.createElement)(e,Object(s.a)({registry:o},i));var c=Object(u.useState)(null),a=Object(Ne.a)(c,2),l=a[0],d=a[1];return Object(u.useEffect)((function(){var e=Object(m.createRegistry)({},o),t=e.registerStore("core/block-editor",Sr);_r(t),d(e)}),[o]),l?Object(u.createElement)(m.RegistryProvider,{value:l},Object(u.createElement)(e,Object(s.a)({registry:l},i))):null}))}),"withRegistryProvider"),wr=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){this.props.updateSettings(this.props.settings),this.props.resetBlocks(this.props.value),this.attachChangeObserver(this.props.registry)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.settings,r=t.updateSettings,o=t.value,i=t.resetBlocks,c=t.registry;n!==e.settings&&r(n),c!==e.registry&&this.attachChangeObserver(c),null!==this.isSyncingOutcomingValue&&this.isSyncingOutcomingValue===o?this.isSyncingOutcomingValue=null:o!==e.value&&(this.isSyncingOutcomingValue=null,this.isSyncingIncomingValue=o,i(o))}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"attachChangeObserver",value:function(e){var t=this;this.unsubscribe&&this.unsubscribe();var n=e.select("core/block-editor"),r=n.getBlocks,o=n.isLastBlockChangePersistent,i=n.__unstableIsLastBlockChangeIgnored,c=r(),a=o();this.unsubscribe=e.subscribe((function(){var e=t.props,n=e.onChange,l=void 0===n?p.noop:n,s=e.onInput,u=void 0===s?p.noop:s,d=r(),f=o();if(d!==c&&(t.isSyncingIncomingValue||i()))return t.isSyncingIncomingValue=null,c=d,void(a=f);(d!==c||f&&!a)&&(d!==c&&(t.isSyncingOutcomingValue=d),c=d,(a=f)?l(c):u(c))}))}},{key:"render",value:function(){return this.props.children}}]),t}(u.Component),Ir=Object(b.compose)([Er,Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{updateSettings:t.updateSettings,resetBlocks:t.resetBlocks}}))])(wr),Br=function(e){var t=e.children,n=e.clientId,r=e.isBlockInSelection,o=Object(m.useSelect)((function(e){return e("core/block-editor").hasSelectedInnerBlock(n,!0)})),i=r||o;return Object(u.createElement)(m.__experimentalAsyncModeProvider,{value:!i},t)},Tr=n(60),xr=n(25);function Lr(e,t,n,r,o,i){var c=n+1;return e>1?function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(H.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(H.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(H.sprintf)(Object(H._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,i);if(o>0&&!r)return Object(H.sprintf)(Object(H._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,i)}(e,n,r,o,i):r&&o?Object(H.sprintf)(Object(H.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!o?Object(H.sprintf)(Object(H.__)("Move %1$s block from position %2$d down to position %3$d"),t,c,c+1):i>0&&o?Object(H.sprintf)(Object(H.__)("Block %s is at the end of the content and can’t be moved down"),t):i<0&&!r?Object(H.sprintf)(Object(H.__)("Move %1$s block from position %2$d up to position %3$d"),t,c,c-1):i<0&&r?Object(H.sprintf)(Object(H.__)("Block %s is at the beginning of the content and can’t be moved up"),t):void 0}var Nr=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Polygon,{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),Ar=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Polygon,{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),Mr=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Path,{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})),Rr=Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlockIndex,i=(0,r.getBlockRootClientId)(n);return{index:o(n,i),rootClientId:i}}))((function(e){var t=e.children,n=e.clientId,r=e.rootClientId,o=e.blockElementId,i=e.index,c=e.onDragStart,a=e.onDragEnd,l={type:"block",srcIndex:i,srcRootClientId:r,srcClientId:n};return Object(u.createElement)(P.Draggable,{elementId:o,transferData:l,onDragStart:c,onDragEnd:a},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:r})}))})),Pr=function(e){var t=e.isVisible,n=e.className,r=e.icon,o=e.onDragStart,i=e.onDragEnd,c=e.blockElementId,a=e.clientId;if(!t)return null;var l=f()("editor-block-mover__control-drag-handle block-editor-block-mover__control-drag-handle",n);return Object(u.createElement)(Rr,{clientId:a,blockElementId:c,onDragStart:o,onDragEnd:i},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return Object(u.createElement)("div",{className:l,"aria-hidden":"true",onDragStart:t,onDragEnd:n,draggable:!0},r)}))},Dr=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(E.a)(e)),e.onBlur=e.onBlur.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.onMoveUp,n=e.onMoveDown,r=e.isFirst,o=e.isLast,i=e.isDraggable,c=e.onDragStart,a=e.onDragEnd,l=e.clientIds,s=e.blockElementId,d=e.blockType,b=e.firstIndex,h=e.isLocked,m=e.instanceId,v=e.isHidden,g=e.rootClientId,O=this.state.isFocused,k=Object(p.castArray)(l).length;return h||r&&o&&!g?null:Object(u.createElement)("div",{className:f()("editor-block-mover block-editor-block-mover",{"is-visible":O||!v})},Object(u.createElement)(P.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:r?null:t,icon:Nr,label:Object(H.__)("Move up"),"aria-describedby":"block-editor-block-mover__up-description-".concat(m),"aria-disabled":r,onFocus:this.onFocus,onBlur:this.onBlur}),Object(u.createElement)(Pr,{className:"editor-block-mover__control block-editor-block-mover__control",icon:Mr,clientId:l,blockElementId:s,isVisible:i,onDragStart:c,onDragEnd:a}),Object(u.createElement)(P.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:o?null:n,icon:Ar,label:Object(H.__)("Move down"),"aria-describedby":"block-editor-block-mover__down-description-".concat(m),"aria-disabled":o,onFocus:this.onFocus,onBlur:this.onBlur}),Object(u.createElement)("span",{id:"block-editor-block-mover__up-description-".concat(m),className:"editor-block-mover__description block-editor-block-mover__description"},Lr(k,d&&d.title,b,r,o,-1)),Object(u.createElement)("span",{id:"block-editor-block-mover__down-description-".concat(m),className:"editor-block-mover__description block-editor-block-mover__description"},Lr(k,d&&d.title,b,r,o,1)))}}]),t}(u.Component),Fr=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockIndex,a=r.getTemplateLock,l=r.getBlockRootClientId,s=r.getBlockOrder,u=Object(p.castArray)(n),d=Object(p.first)(u),f=o(d),b=l(Object(p.first)(u)),h=s(b),m=c(d,b),v=c(Object(p.last)(u),b);return{blockType:f?Object(i.getBlockType)(f.name):null,isLocked:"all"===a(b),rootClientId:b,firstIndex:m,isFirst:0===m,isLast:v===h.length-1}})),Object(m.withDispatch)((function(e,t){var n=t.clientIds,r=t.rootClientId,o=e("core/block-editor"),i=o.moveBlocksDown,c=o.moveBlocksUp;return{onMoveDown:Object(p.partial)(i,n,r),onMoveUp:Object(p.partial)(c,n,r)}})),b.withInstanceId)(Dr);var Hr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(u.createElement)("div",{className:f()(t,"editor-warning block-editor-warning")},Object(u.createElement)("div",{className:"editor-warning__contents block-editor-warning__contents"},Object(u.createElement)("p",{className:"editor-warning__message block-editor-warning__message"},r),u.Children.count(n)>0&&Object(u.createElement)("div",{className:"editor-warning__actions block-editor-warning__actions"},u.Children.map(n,(function(e,t){return Object(u.createElement)("span",{key:t,className:"editor-warning__action block-editor-warning__action"},e)})))),o&&Object(u.createElement)(P.Dropdown,{className:"editor-warning__secondary block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(u.createElement)(P.IconButton,{icon:"ellipsis",label:Object(H.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(u.createElement)(P.MenuGroup,null,o.map((function(e,t){return Object(u.createElement)(P.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))},Ur=n(196),Vr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(u.createElement)("div",{className:c},Object(u.createElement)("div",{className:"editor-block-compare__content block-editor-block-compare__content"},Object(u.createElement)("h2",{className:"editor-block-compare__heading block-editor-block-compare__heading"},t),Object(u.createElement)("div",{className:"editor-block-compare__html block-editor-block-compare__html"},n),Object(u.createElement)("div",{className:"editor-block-compare__preview block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(u.createElement)("div",{className:"editor-block-compare__action block-editor-block-compare__action"},Object(u.createElement)(P.Button,{isLarge:!0,tabIndex:"0",onClick:o},i)))},zr=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"getDifference",value:function(e,t){return Object(Ur.diffChars)(e,t).map((function(e,t){var n=f()({"editor-block-compare__added block-editor-block-compare__added":e.added,"editor-block-compare__removed block-editor-block-compare__removed":e.removed});return Object(u.createElement)("span",{key:t,className:n},e.value)}))}},{key:"getOriginalContent",value:function(e){return{rawContent:e.originalContent,renderedContent:Object(i.getSaveElement)(e.name,e.attributes)}}},{key:"getConvertedContent",value:function(e){var t=Object(p.castArray)(e),n=t.map((function(e){return Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),r=t.map((function(e){return Object(i.getSaveElement)(e.name,e.attributes,e.innerBlocks)}));return{rawContent:n.join(""),renderedContent:r}}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.onKeep,r=e.onConvert,o=e.convertor,i=e.convertButtonText,c=this.getOriginalContent(t),a=this.getConvertedContent(o(t)),l=this.getDifference(c.rawContent,a.rawContent);return Object(u.createElement)("div",{className:"editor-block-compare__wrapper block-editor-block-compare__wrapper"},Object(u.createElement)(Vr,{title:Object(H.__)("Current"),className:"editor-block-compare__current block-editor-block-compare__current",action:n,actionText:Object(H.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(u.createElement)(Vr,{title:Object(H.__)("After Conversion"),className:"editor-block-compare__converted block-editor-block-compare__converted",action:r,actionText:i,rawContent:l,renderedContent:a.renderedContent}))}}]),t}(u.Component),Kr=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(E.a)(n)),n.onCompareClose=n.onCompareClose.bind(Object(E.a)(n)),n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,c=e.block,a=!!Object(i.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(H.__)("Convert to Classic Block"),onClick:r},{title:Object(H.__)("Attempt Block Recovery"),onClick:o}];return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Hr,{actions:[Object(u.createElement)(P.Button,{key:"convert",onClick:this.onCompare,isLarge:!0,isPrimary:!a},Object(H._x)("Resolve","imperative verb")),a&&Object(u.createElement)(P.Button,{key:"edit",onClick:t,isLarge:!0,isPrimary:!0},Object(H.__)("Convert to HTML"))],secondaryActions:s},Object(H.__)("This block contains unexpected or invalid content.")),l&&Object(u.createElement)(P.Modal,{title:Object(H.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"editor-block-compare block-editor-block-compare"},Object(u.createElement)(zr,{block:c,onKeep:t,onConvert:n,convertor:Wr,convertButtonText:Object(H.__)("Convert to Blocks")})))}}]),t}(u.Component),Wr=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},qr=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(m.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Wr(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(i.createBlock)(t,o,c)))}}}))])(Kr),Gr=Object(u.createElement)(Hr,{className:"block-editor-block-list__block-crash-warning"},Object(H.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return Gr},Yr=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),t}(u.Component),Xr=n(59),Zr=n.n(Xr),Jr=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(E.a)(n)),n.onBlur=n.onBlur.bind(Object(E.a)(n)),n.state={html:e.block.isValid?Object(i.getBlockContent)(e.block):e.block.originalContent},n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(e){Object(p.isEqual)(this.props.block.attributes,e.block.attributes)||this.setState({html:Object(i.getBlockContent)(this.props.block)})}},{key:"onBlur",value:function(){var e=this.state.html,t=Object(i.getBlockType)(this.props.block.name),n=Object(i.getBlockAttributes)(t,e,this.props.block.attributes),r=e||Object(i.getSaveContent)(t,n),o=!e||Object(i.isValidBlockContent)(t,n,r);this.props.onChange(this.props.clientId,n,r,o),e||this.setState({html:r})}},{key:"onChange",value:function(e){this.setState({html:e.target.value})}},{key:"render",value:function(){var e=this.state.html;return Object(u.createElement)(Zr.a,{className:"editor-block-list__block-html-textarea block-editor-block-list__block-html-textarea",value:e,onBlur:this.onBlur,onChange:this.onChange})}}]),t}(u.Component),Qr=Object(b.compose)([Object(m.withSelect)((function(e,t){return{block:e("core/block-editor").getBlock(t.clientId)}})),Object(m.withDispatch)((function(e){return{onChange:function(t,n,r,o){e("core/block-editor").updateBlock(t,{attributes:n,originalContent:r,isValid:o})}}}))])(Jr);var eo=Object(m.withSelect)((function(e,t){return{name:(0,e("core/block-editor").getBlockName)(t.clientId)}}))((function(e){var t=e.name;if(!t)return null;var n=Object(i.getBlockType)(t);return n?n.title:null})),to=Object(u.forwardRef)((function(e,t){var n=e.clientId,r=Object(m.useDispatch)("core/block-editor").setNavigationMode,o=Object(m.useSelect)((function(e){return{rootClientId:e("core/block-editor").getBlockRootClientId(n)}})).rootClientId;return Object(u.createElement)("div",{className:"editor-block-list__breadcrumb block-editor-block-list__breadcrumb"},Object(u.createElement)(P.Toolbar,null,o&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(eo,{clientId:o}),Object(u.createElement)("span",{className:"editor-block-list__descendant-arrow block-editor-block-list__descendant-arrow"})),Object(u.createElement)(P.Button,{ref:t,onClick:function(){return r(!1)}},Object(u.createElement)(eo,{clientId:n}))))})),no=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).focusToolbar=e.focusToolbar.bind(Object(E.a)(e)),e.toolbar=Object(u.createRef)(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"focusToolbar",value:function(){var e=xr.focus.tabbable.find(this.toolbar.current);e.length&&e[0].focus()}},{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusToolbar(),this.toolbar.current.addEventListener("keydown",this.switchOnKeyDown)}},{key:"componentwillUnmount",value:function(){this.toolbar.current.removeEventListener("keydown",this.switchOnKeyDown)}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(Ae.a)(e,["children"]);return Object(u.createElement)(P.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:this.toolbar},Object(p.omit)(n,["focusOnMount"])),Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":this.focusToolbar}}),t)}}]),t}(u.Component);var ro=function(e){var t=e.focusOnMount;return Object(u.createElement)(no,{focusOnMount:t,className:"editor-block-contextual-toolbar block-editor-block-contextual-toolbar","aria-label":Object(H.__)("Block tools")},Object(u.createElement)(wc,null))};var oo=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getMultiSelectedBlockClientIds,r=t.isMultiSelecting;return{multiSelectedBlockClientIds:n(),isSelecting:r()}}))((function(e){var t=e.multiSelectedBlockClientIds;return e.isSelecting?null:Object(u.createElement)(Fr,{clientIds:t})}));var io=Object(a.ifViewportMatches)("< small")((function(e){var t=e.clientId;return Object(u.createElement)("div",{className:"editor-block-list__block-mobile-toolbar block-editor-block-list__block-mobile-toolbar"},Object(u.createElement)(zo,null),Object(u.createElement)(Fr,{clientIds:[t]}))})),co=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={isInserterFocused:!1},e.onBlurInserter=e.onBlurInserter.bind(Object(E.a)(e)),e.onFocusInserter=e.onFocusInserter.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onFocusInserter",value:function(e){e.stopPropagation(),this.setState({isInserterFocused:!0})}},{key:"onBlurInserter",value:function(){this.setState({isInserterFocused:!1})}},{key:"render",value:function(){var e=this.state.isInserterFocused,t=this.props,n=t.showInsertionPoint,r=t.rootClientId,o=t.clientId;return Object(u.createElement)("div",{className:"editor-block-list__insertion-point block-editor-block-list__insertion-point"},n&&Object(u.createElement)("div",{className:"editor-block-list__insertion-point-indicator block-editor-block-list__insertion-point-indicator"}),Object(u.createElement)("div",{onFocus:this.onFocusInserter,onBlur:this.onBlurInserter,tabIndex:-1,className:f()("editor-block-list__insertion-point-inserter block-editor-block-list__insertion-point-inserter",{"is-visible":e})},Object(u.createElement)(zo,{rootClientId:r,clientId:o})))}}]),t}(u.Component),ao=Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),i=o.getBlockIndex,c=o.getBlockInsertionPoint,a=o.isBlockInsertionPointVisible,l=i(n,r),s=c();return{showInsertionPoint:a()&&s.index===l&&s.rootClientId===r}}))(co),lo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).proxyEvent=e.proxyEvent.bind(Object(E.a)(e)),e.eventMap={},e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"proxyEvent",value:function(e){var t=!!e.nativeEvent._blockHandled;e.nativeEvent._blockHandled=!0;var n=this.eventMap[e.type];t&&(n+="Handled"),this.props[n]&&this.props[n](e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.childHandledEvents,r=void 0===n?[]:n,o=t.forwardedRef,i=t.tagName,c=void 0===i?"div":i,a=Object(Ae.a)(t,["childHandledEvents","forwardedRef","tagName"]),s=Object(p.reduce)([].concat(Object(Be.a)(r),Object(Be.a)(Object.keys(a))),(function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(r){!!r[2]&&delete a[n];var o="on"+r[1];t[o]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=o}return t}),{});return Object(u.createElement)(c,Object(l.a)({ref:o},a,s))}}]),t}(u.Component),so=function(e,t){return Object(u.createElement)(lo,Object(s.a)({},e,{forwardedRef:t}))};so.displayName="IgnoreNestedEvents";var uo=Object(u.forwardRef)(so);var fo=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getInserterItems,i=r.getTemplateLock;return{items:o(n),isLocked:!!i(n)}})),Object(m.withDispatch)((function(e,t){var n=t.clientId,r=t.rootClientId;return{onInsert:function(t){var o=t.name,c=t.initialAttributes,a=Object(i.createBlock)(o,c);n?e("core/block-editor").replaceBlocks(n,a):e("core/block-editor").insertBlock(a,void 0,r)}}})))((function(e){var t=e.items,n=e.isLocked,r=e.onInsert;if(n)return null;var o=Object(p.filter)(t,(function(e){return!(e.isDisabled||e.name===Object(i.getDefaultBlockName)()&&Object(p.isEmpty)(e.initialAttributes))})).slice(0,3);return Object(u.createElement)("div",{className:"editor-inserter-with-shortcuts block-editor-inserter-with-shortcuts"},o.map((function(e){return Object(u.createElement)(P.IconButton,{key:e.id,className:"editor-inserter-with-shortcuts__block block-editor-inserter-with-shortcuts__block",onClick:function(){return r(e)},label:Object(H.sprintf)(Object(H.__)("Add %s"),e.title),icon:Object(u.createElement)(be,{icon:e.icon})})})))}));function po(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector('[data-block="'+e+'"]')}var bo=function(e){return e+1},ho=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var mo=function(e,t,n,r,o){var i=Object(b.useReducedMotion)()||!r,c=Object(u.useReducer)(bo,0),a=Object(Ne.a)(c,2),l=a[0],s=a[1],d=Object(u.useReducer)(bo,0),f=Object(Ne.a)(d,2),p=f[0],h=f[1],m=Object(u.useState)({x:0,y:0,scrollTop:0}),v=Object(Ne.a)(m,2),g=v[0],O=v[1],k=e.current?ho(e.current):null,y=Object(u.useMemo)((function(){return!!n&&Object(xr.getScrollContainer)(e.current)}),[n]);Object(u.useLayoutEffect)((function(){l&&h()}),[l]),Object(u.useLayoutEffect)((function(){if(i){if(n&&y){e.current.style.transform="none";var t=ho(e.current);y.scrollTop=y.scrollTop-k.top+t.top}}else{e.current.style.transform="none";var r=ho(e.current),o={x:k?k.left-r.left:0,y:k?k.top-r.top:0,scrollTop:k&&y?y.scrollTop-k.top+r.top:0};e.current.style.transform=0===o.x&&0===o.y?void 0:"translate3d(".concat(o.x,"px,").concat(o.y,"px,0)"),s(),O(o)}}),[o]);var j=Object(Tr.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:l!==p,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:function(e){n&&y&&!i&&e.y&&(y.scrollTop=g.scrollTop+e.y)}});return i?{}:{transformOrigin:"center",transform:Object(Tr.interpolate)([j.x,j.y],(function(e,t){return 0===e&&0===t?void 0:"translate3d(".concat(e,"px,").concat(t,"px,0)")})),zIndex:Object(Tr.interpolate)([j.x,j.y],(function(e,n){return!t||0===e&&0===n?void 0:"1"}))}},vo=function(e){e.preventDefault()};var go=Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=t.isLargeViewport,c=e("core/block-editor"),a=c.isBlockSelected,l=c.isAncestorMultiSelected,s=c.isBlockMultiSelected,u=c.isFirstMultiSelectedBlock,d=c.isTyping,f=c.isCaretWithinFormattedText,p=c.getBlockMode,b=c.isSelectionEnabled,h=c.getSelectedBlocksInitialCaretPosition,m=c.getSettings,v=c.hasSelectedInnerBlock,g=c.getTemplateLock,O=c.getBlockIndex,k=c.getBlockOrder,y=c.__unstableGetBlockWithoutInnerBlocks,j=c.isNavigationMode,_=y(n),S=a(n),C=m(),E=C.hasFixedToolbar,w=C.focusMode,I=C.isRTL,B=g(r),T=v(n,!0),x=O(n,r),L=k(r),N=_||{},A=N.name,M=N.attributes,R=N.isValid;return{isPartOfMultiSelection:s(n)||l(n),isFirstMultiSelected:u(n),isTypingWithinBlock:(S||T)&&d(),isCaretWithinFormattedText:f(),mode:p(n),isSelectionEnabled:b(),initialPosition:S?h():null,isEmptyDefaultBlock:A&&Object(i.isUnmodifiedDefaultBlock)({name:A,attributes:M}),isMovable:"all"!==B,isLocked:!!B,isFocusMode:w&&o,hasFixedToolbar:E&&o,isLast:x===L.length-1,isNavigationMode:j(),isRTL:I,block:_,name:A,attributes:M,isValid:R,isSelected:S,isParentOfSelectedBlock:T}})),Oo=Object(m.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.updateBlockAttributes,a=o.selectBlock,l=o.multiSelect,s=o.insertBlocks,u=o.insertDefaultBlock,d=o.removeBlock,f=o.mergeBlocks,p=o.replaceBlocks,b=o.toggleSelection,h=o.setNavigationMode,m=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId;c(n,e)},onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.clientId,n=arguments.length>1?arguments[1]:void 0;a(e,n)},onInsertBlocks:function(e,n){var r=t.rootClientId;s(e,n,r)},onInsertDefaultBlockAfter:function(){var e=t.clientId,n=t.rootClientId,o=(0,r("core/block-editor").getBlockIndex)(e,n);u({},n,o+1)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,i=(0,r("core/block-editor").getBlockIndex)(n,o);s(e,i+1,o)},onRemove:function(e){d(e)},onMerge:function(e){var n=t.clientId,o=r("core/block-editor"),i=o.getPreviousBlockClientId,c=o.getNextBlockClientId;if(e){var a=c(n);a&&f(n,a)}else{var l=i(n);l&&f(l,n)}},onReplace:function(e,n){e.length&&!Object(i.isUnmodifiedDefaultBlock)(e[e.length-1])&&m(),p([t.clientId],e,n)},onShiftSelection:function(){if(t.isSelectionEnabled){var e=r("core/block-editor").getBlockSelectionStart;e()?l(e(),t.clientId):a(t.clientId)}},toggleSelection:function(e){b(e)},enableNavigationMode:function(){h(!0)}}})),ko=Object(b.compose)(b.pure,Object(a.withViewportMatch)({isLargeViewport:"medium"}),go,Oo,Object(b.ifCondition)((function(e){return!!e.block})),Object(P.withFilters)("editor.BlockListBlock"))((function(e){var t=e.blockRef,n=e.mode,r=e.isFocusMode,o=e.hasFixedToolbar,c=e.isLocked,a=e.clientId,d=e.rootClientId,b=e.isSelected,h=e.isPartOfMultiSelection,m=e.isFirstMultiSelected,v=e.isTypingWithinBlock,g=e.isCaretWithinFormattedText,O=e.isEmptyDefaultBlock,k=e.isMovable,y=e.isParentOfSelectedBlock,j=e.isDraggable,_=e.isSelectionEnabled,S=e.className,C=e.name,E=e.isValid,w=e.isLast,I=e.attributes,B=e.initialPosition,T=e.wrapperProps,x=e.setAttributes,L=e.onReplace,N=e.onInsertBlocksAfter,A=e.onMerge,M=e.onSelect,R=e.onRemove,D=e.onInsertDefaultBlockAfter,F=e.toggleSelection,U=e.onShiftSelection,V=e.onSelectionStart,z=e.animateOnChange,K=e.enableAnimation,W=e.isNavigationMode,q=e.enableNavigationMode,G=Object(u.useState)({}),$=Object(Ne.a)(G,2)[1],Y=Object(u.useRef)(null);Object(u.useEffect)((function(){t(Y.current,a)}),[]);var X=Object(u.useRef)(),Z=Object(u.useRef)(),J=Object(u.useRef)(!1),Q=Object(u.useState)(!1),ee=Object(Ne.a)(Q,2),te=ee[0],ne=ee[1],re=function(){te&&ne(!1)};Object(u.useEffect)((function(){(v||b)&&re()}));var oe=Object(u.useState)(!1),ie=Object(Ne.a)(oe,2),ce=ie[0],ae=ie[1],se=Object(u.useState)(!1),ue=Object(Ne.a)(se,2),de=ue[0],fe=ue[1],pe=Object(u.useRef)(!1);Object(u.useEffect)((function(){pe.current&&(pe.current=!1)}));var be=function(e){if(!Y.current.contains(document.activeElement))if(W)Z.current.focus();else{var t=xr.focus.tabbable.find(X.current).filter(xr.isTextField).filter((function(t){return!e||(n=X.current,r=t,o=n.querySelector(".block-editor-block-list__layout"),n.contains(r)&&(!o||!o.contains(r)));var n,r,o})),n=-1===B,r=(n?p.last:p.first)(t);r?Object(xr.placeCaretAtHorizontalEdge)(r,n):Y.current.focus()}},me=Object(u.useRef)(!0);Object(u.useEffect)((function(){b&&be(!me.current),me.current=!1}),[b]),Object(u.useEffect)((function(){m&&Y.current.focus()}),[m]);var ve=mo(Y,b||h,b||m,K,z);Object(u.useLayoutEffect)((function(){b&&(W?Z.current.focus():be(!0))}),[b,W]);var ge=function(e){e&&!b&&M()},Oe=te&&!h,ke=Object(i.getBlockType)(C),ye=Object(H.sprintf)(Object(H.__)("Block: %s"),ke.title),je=C===Object(i.getUnregisteredTypeHandlerName)(),_e=!W&&(b||Oe)&&O&&E,Se=!W&&(b||Oe||w)&&O&&E,Ce=!r&&!Se&&b&&!v,Ee=!r&&!o&&Oe&&!O,we=!W&&b&&!Se&&!h&&!v,Be=b&&W||!W&&!r&&Oe&&!O,Te=!W&&!o&&!Se&&(b&&(!v||g)||m),xe=!W&&Ce,Le=h&&m||!h,Ae=f()("wp-block editor-block-list__block block-editor-block-list__block",{"has-warning":!E||!!de||je,"is-selected":Ce,"is-navigate-mode":W,"is-multi-selected":h,"is-hovered":Ee,"is-reusable":Object(i.isReusableBlock)(ke),"is-dragging":ce,"is-typing":v,"is-focused":r&&(b||y),"is-focus-mode":r,"has-child-selected":y},S);ke.getEditWrapperProps&&(T=Object(l.a)({},T,ke.getEditWrapperProps(I)));var Me="block-".concat(a),Re=Object(u.createElement)(le,{name:C,isSelected:b,attributes:I,setAttributes:x,insertBlocksAfter:c?void 0:N,onReplace:c?void 0:L,mergeBlocks:c?void 0:A,clientId:a,isSelectionEnabled:_,toggleSelection:F});return"visual"!==n&&(Re=Object(u.createElement)("div",{style:{display:"none"}},Re)),Object(u.createElement)(uo,Object(s.a)({id:Me,ref:Y,onMouseOver:function(){te||h||b||J.current||ne(!0)},onMouseOverHandled:re,onMouseLeave:re,className:Ae,"data-type":C,onTouchStart:function(){J.current=!0},onFocus:function(){b||h||M()},onClick:function(){J.current=!1},onKeyDown:function(e){var t=e.keyCode,n=e.target,r=b&&!c&&(n===Y.current||n===Z.current),o=!W;switch(t){case he.ENTER:r&&o&&(D(),e.preventDefault());break;case he.BACKSPACE:case he.DELETE:r&&(R(a),e.preventDefault());break;case he.ESCAPE:b&&o&&(q(),Y.current.focus())}},tabIndex:"0","aria-label":ye,childHandledEvents:["onDragStart","onMouseDown"],tagName:Tr.animated.div},T,{style:T&&T.style?Object(l.a)({},T.style,ve):ve}),Le&&Object(u.createElement)(ao,{clientId:a,rootClientId:d}),Object(u.createElement)(Ie,{clientId:a,rootClientId:d}),m&&Object(u.createElement)(oo,{rootClientId:d}),Object(u.createElement)("div",{className:"editor-block-list__block-edit block-editor-block-list__block-edit"},we&&Object(u.createElement)(Fr,{clientIds:a,blockElementId:Me,isHidden:!b,isDraggable:!1!==j&&!h&&k,onDragStart:function(){ae(!0)},onDragEnd:function(){ae(!1)}}),Be&&Object(u.createElement)(to,{clientId:a,ref:Z}),(Te||pe.current)&&Object(u.createElement)(ro,{focusOnMount:pe.current}),!W&&!Te&&b&&!o&&!O&&Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":function(){pe.current=!0,$({})}}}),Object(u.createElement)(uo,{ref:X,onDragStart:vo,onMouseDown:function(e){0===e.button&&(e.shiftKey?b||(U(),e.preventDefault()):X.current.contains(e.target)&&(V(a),h&&M()))},"data-block":a},Object(u.createElement)(Yr,{onError:function(){return fe(!0)}},E&&Re,E&&"html"===n&&Object(u.createElement)(Qr,{clientId:a}),!E&&[Object(u.createElement)(qr,{key:"invalid-warning",clientId:a}),Object(u.createElement)("div",{key:"invalid-preview"},Object(i.getSaveElement)(ke,I))]),!!de&&Object(u.createElement)($r,null),xe&&Object(u.createElement)(io,{clientId:a}))),_e&&Object(u.createElement)("div",{className:"editor-block-list__side-inserter block-editor-block-list__side-inserter"},Object(u.createElement)(fo,{clientId:a,rootClientId:d,onToggle:ge})),Se&&Object(u.createElement)("div",{className:"editor-block-list__empty-block-inserter block-editor-block-list__empty-block-inserter"},Object(u.createElement)(zo,{position:"top right",onToggle:ge,rootClientId:d,clientId:a})))})),yo=n(52);var jo=Object(b.compose)(Object(b.withState)({hovered:!1}),Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(i.getDefaultBlockName)(),d=c(t.lastBlockClientId),f=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:f}})),Object(m.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,i=e.placeholder,c=e.rootClientId,a=e.hovered,l=e.setState;if(t||!n)return null;var s=Object(yo.decodeEntities)(i)||Object(H.__)("Start writing or type / to choose a block");return Object(u.createElement)("div",{"data-root-client-id":c||"",className:"wp-block editor-default-block-appender block-editor-default-block-appender",onMouseEnter:function(){return l({hovered:!0})},onMouseLeave:function(){return l({hovered:!1})}},Object(u.createElement)(Ie,{rootClientId:c}),Object(u.createElement)(Zr.a,{role:"button","aria-label":Object(H.__)("Add block"),className:"editor-default-block-appender__content block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?s:""}),a&&Object(u.createElement)(fo,{rootClientId:c}),Object(u.createElement)(zo,{rootClientId:c,position:"top right",isAppender:!0}))}));var _o=Object(m.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,c=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(i.getDefaultBlockName)(),n)}}))((function(e){var t=e.blockClientIds,n=e.rootClientId,r=e.canInsertDefaultBlock,o=e.isLocked,i=e.renderAppender;return o?null:i?Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(i,null)):!1===i?null:r?Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(uo,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(u.createElement)(jo,{rootClientId:n,lastBlockClientId:Object(p.last)(t)}))):Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(Ko,{rootClientId:n,className:"block-list-appender__toggle"}))})),So=function(e){function t(e){var n;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).call(this,e))).onSelectionStart=n.onSelectionStart.bind(Object(E.a)(n)),n.onSelectionEnd=n.onSelectionEnd.bind(Object(E.a)(n)),n.setBlockRef=n.setBlockRef.bind(Object(E.a)(n)),n.setLastClientY=n.setLastClientY.bind(Object(E.a)(n)),n.onPointerMove=Object(p.throttle)(n.onPointerMove.bind(Object(E.a)(n)),100),n.onScroll=function(){return n.onPointerMove({clientY:n.lastClientY})},n.lastClientY=0,n.nodes={},n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("mousemove",this.setLastClientY)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mousemove",this.setLastClientY)}},{key:"setLastClientY",value:function(e){var t=e.clientY;this.lastClientY=t}},{key:"setBlockRef",value:function(e,t){null===e?delete this.nodes[t]:this.nodes=Object(l.a)({},this.nodes,Object(I.a)({},t,e))}},{key:"onPointerMove",value:function(e){var t=e.clientY;this.props.isMultiSelecting||this.props.onStartMultiSelect();var n=po(this.selectionAtStart).getBoundingClientRect();if(!(t>=n.top&&t<=n.bottom)){var r=t-n.top,o=Object(p.findLast)(this.coordMapKeys,(function(e){return ec.height*l?(i.height-c.height*l)/2:0;p(l),O({x:s*l,y:u}),o.style.marginTop="0"}else{var d=e.getBoundingClientRect();p(d.width/n)}a(!0)}}),100);return function(){e&&window.clearTimeout(e)}}),[]),!t||0===t.length)return null;var k={transform:"scale(".concat(d,")"),visibility:c?"visible":"hidden",left:-v,top:g,width:n};return Object(u.createElement)("div",{ref:r,className:f()("block-editor-block-preview__container editor-styles-wrapper",{"is-ready":c}),"aria-hidden":!0},Object(u.createElement)(P.Disabled,{style:k,className:"block-editor-block-preview__content"},Object(u.createElement)(Co,null)))}var wo=Object(m.withSelect)((function(e){return{settings:e("core/block-editor").getSettings()}}))((function(e){var t=e.blocks,n=e.viewportWidth,r=void 0===n?700:n,o=e.settings,i=Object(u.useMemo)((function(){return Object(p.castArray)(t)}),[t]),c=Object(u.useReducer)((function(e){return e+1}),0),a=Object(Ne.a)(c,2),l=a[0],s=a[1];return Object(u.useLayoutEffect)(s,[t]),Object(u.createElement)(Ir,{value:i,settings:o},Object(u.createElement)(Eo,{key:l,blocks:i,viewportWidth:r}))}));var Io=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,i=e.className,c=Object(Ae.a)(e,["icon","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(u.createElement)("li",{className:"editor-block-types-list__list-item block-editor-block-types-list__list-item"},Object(u.createElement)("button",Object(s.a)({className:f()("editor-block-types-list__item block-editor-block-types-list__item",i),onClick:function(e){e.preventDefault(),n()},disabled:r},c),Object(u.createElement)("span",{className:"editor-block-types-list__item-icon block-editor-block-types-list__item-icon",style:a},Object(u.createElement)(be,{icon:t,showColors:!0})),Object(u.createElement)("span",{className:"editor-block-types-list__item-title block-editor-block-types-list__item-title"},o)))};var Bo=function(e){var t=e.items,n=e.onSelect,r=e.onHover,o=void 0===r?function(){}:r,c=e.children;return(Object(u.createElement)("ul",{role:"list",className:"editor-block-types-list block-editor-block-types-list"},t&&t.map((function(e){return Object(u.createElement)(Io,{key:e.id,className:Object(i.getBlockMenuDefaultClassName)(e.id),icon:e.icon,onClick:function(){n(e),o(null)},onFocus:function(){return o(e)},onMouseEnter:function(){return o(e)},onMouseLeave:function(){return o(null)},onBlur:function(){return o(null)},isDisabled:e.isDisabled,title:e.title})})),c))};var To=function(e){var t=e.blockType;return Object(u.createElement)("div",{className:"block-editor-block-card"},Object(u.createElement)(be,{icon:t.icon,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-block-card__content"},Object(u.createElement)("div",{className:"block-editor-block-card__title"},t.title),Object(u.createElement)("div",{className:"block-editor-block-card__description"},t.description)))};var xo=Object(b.compose)(Object(b.ifCondition)((function(e){var t=e.items;return t&&t.length>0})),Object(m.withSelect)((function(e,t){var n=t.rootClientId,r=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(n));return{rootBlockTitle:r&&r.title,rootBlockIcon:r&&r.icon}})))((function(e){var t=e.rootBlockIcon,n=e.rootBlockTitle,r=e.items,o=Object(Ae.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(u.createElement)("div",{className:"editor-inserter__child-blocks block-editor-inserter__child-blocks"},(t||n)&&Object(u.createElement)("div",{className:"editor-inserter__parent-block-header block-editor-inserter__parent-block-header"},Object(u.createElement)(be,{icon:t,showColors:!0}),n&&Object(u.createElement)("h2",null,n)),Object(u.createElement)(Bo,Object(s.a)({items:r},o)))})),Lo=Object(P.createSlotFill)("__experimentalInserterMenuExtension"),No=Lo.Fill,Ao=Lo.Slot;No.Slot=Ao;var Mo=No,Ro=function(e){return e.stopPropagation()},Po=function(e,t){var n=Do(t),r=function(e){return-1!==Do(e).indexOf(n)},o=Object(i.getCategories)();return e.filter((function(e){var t=Object(p.find)(o,{slug:e.category});return r(e.title)||Object(p.some)(e.keywords,r)||t&&r(t.title)}))},Do=function(e){return e=(e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase()).trim()},Fo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(E.a)(e)),e.onHover=e.onHover.bind(Object(E.a)(e)),e.panels={},e.inserterResults=Object(u.createRef)(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchReusableBlocks(),this.filter()}},{key:"componentDidUpdate",value:function(e){e.items!==this.props.items&&this.filter(this.state.filterValue)}},{key:"onChangeSearchInput",value:function(e){this.filter(e.target.value)}},{key:"onHover",value:function(e){this.setState({hoveredItem:e});var t=this.props,n=t.showInsertionPoint,r=t.hideInsertionPoint;e?n():r()}},{key:"bindPanel",value:function(e){var t=this;return function(n){t.panels[e]=n}}},{key:"onTogglePanel",value:function(e){var t=this;return function(){-1!==t.state.openPanels.indexOf(e)?t.setState({openPanels:Object(p.without)(t.state.openPanels,e)}):(t.setState({openPanels:[].concat(Object(Be.a)(t.state.openPanels),[e])}),t.props.setTimeout((function(){xe()(t.panels[e],t.inserterResults.current,{alignWithTop:!0})})))}}},{key:"filterOpenPanels",value:function(e,t,n,r){if(e===this.state.filterValue)return this.state.openPanels;if(!e)return["suggested"];var o=[];return r.length>0&&o.push("reusable"),n.length>0&&(o=o.concat(Object.keys(t))),o}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.debouncedSpeak,r=t.items,o=t.rootChildBlocks,c=Po(r,e),a=Object(p.filter)(c,(function(e){var t=e.name;return Object(p.includes)(o,t)})),l=[];if(!e){var s=this.props.maxSuggestedItems||9;l=Object(p.filter)(r,(function(e){return e.utility>0})).slice(0,s)}var u=Object(p.filter)(c,{category:"reusable"}),d=function(e){return Object(p.findIndex)(Object(i.getCategories)(),(function(t){return t.slug===e.category}))},f=Object(p.flow)((function(e){return Object(p.filter)(e,(function(e){return"reusable"!==e.category}))}),(function(e){return Object(p.sortBy)(e,d)}),(function(e){return Object(p.groupBy)(e,"category")}))(c);this.setState({hoveredItem:null,childItems:a,filterValue:e,suggestedItems:l,reusableItems:u,itemsPerCategory:f,openPanels:this.filterOpenPanels(e,f,c,u)});var b=Object.keys(f).reduce((function(e,t){return e+f[t].length}),0),h=Object(H.sprintf)(Object(H._n)("%d result found.","%d results found.",b),b);n(h)}},{key:"onKeyDown",value:function(e){Object(p.includes)([he.LEFT,he.DOWN,he.RIGHT,he.UP,he.BACKSPACE,he.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.onSelect,o=t.rootClientId,c=t.showInserterHelpPanel,a=this.state,l=a.childItems,s=a.hoveredItem,d=a.itemsPerCategory,b=a.openPanels,h=a.reusableItems,m=a.suggestedItems,v=a.filterValue,g=function(e){return-1!==b.indexOf(e)},O=!Object(p.isEmpty)(m)||!Object(p.isEmpty)(h)||!Object(p.isEmpty)(d),k=s?Object(i.getBlockType)(s.name):null,y=O&&c;return Object(u.createElement)("div",{className:f()("editor-inserter__menu block-editor-inserter__menu",{"has-help-panel":y}),onKeyPress:Ro,onKeyDown:this.onKeyDown},Object(u.createElement)("div",{className:"block-editor-inserter__main-area"},Object(u.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(n),className:"screen-reader-text"},Object(H.__)("Search for a block")),Object(u.createElement)("input",{id:"block-editor-inserter__search-".concat(n),type:"search",placeholder:Object(H.__)("Search for a block"),className:"editor-inserter__search block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(u.createElement)("div",{className:"editor-inserter__results block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(H.__)("Available block types")},Object(u.createElement)(xo,{rootClientId:o,items:l,onSelect:r,onHover:this.onHover}),!!m.length&&Object(u.createElement)(P.PanelBody,{title:Object(H._x)("Most Used","blocks"),opened:g("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(u.createElement)(Bo,{items:m,onSelect:r,onHover:this.onHover})),Object(p.map)(Object(i.getCategories)(),(function(t){var n=d[t.slug];return n&&n.length?Object(u.createElement)(P.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:g(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(u.createElement)(Bo,{items:n,onSelect:r,onHover:e.onHover})):null})),!!h.length&&Object(u.createElement)(P.PanelBody,{className:"editor-inserter__reusable-blocks-panel block-editor-inserter__reusable-blocks-panel",title:Object(H.__)("Reusable"),opened:g("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(u.createElement)(Bo,{items:h,onSelect:r,onHover:this.onHover}),Object(u.createElement)("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:Object(Le.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(H.__)("Manage All Reusable Blocks"))),Object(u.createElement)(Mo.Slot,{fillProps:{onSelect:r,onHover:this.onHover,filterValue:v,hasItems:O}},(function(e){return e.length?e:O?null:Object(u.createElement)("p",{className:"editor-inserter__no-results block-editor-inserter__no-results"},Object(H.__)("No blocks found."))})))),y&&Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel"},s&&Object(u.createElement)(u.Fragment,null,!Object(i.isReusableBlock)(s)&&Object(u.createElement)(To,{blockType:k}),(Object(i.isReusableBlock)(s)||k.example)&&Object(u.createElement)("div",{className:"block-editor-inserter__preview"},Object(u.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(u.createElement)(wo,{viewportWidth:500,blocks:k.example?Object(i.getBlockFromExample)(s.name,k.example):Object(i.createBlock)(s.name,s.initialAttributes)})))),!s&&Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block"},Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block-text"},Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-title"},Object(H.__)("Content Blocks")),Object(u.createElement)("p",null,Object(H.__)("Welcome to the wonderful world of blocks! Blocks are the basis of all content within the editor.")),Object(u.createElement)("p",null,Object(H.__)("There are blocks available for all kinds of content: insert text, headings, images, lists, videos, tables, and lots more.")),Object(u.createElement)("p",null,Object(H.__)("Browse through the library to learn more about what each block does."))),Object(u.createElement)(P.Tip,null,Object(H.__)('While writing, you can press "/" to quickly insert new blocks.')))))}}]),t}(u.Component),Ho=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.isAppender,o=t.rootClientId,i=t.showInserterHelpPanel,c=e("core/block-editor"),a=c.getInserterItems,l=c.getBlockName,s=c.getBlockRootClientId,u=c.getBlockSelectionEnd,d=c.getSettings,f=e("core/blocks").getChildBlockNames,p=o;if(!p&&!n&&!r){var b=u();b&&(p=s(b)||void 0)}return{rootChildBlocks:f(l(p)),items:a(p),showInserterHelpPanel:i&&d().showInserterHelpPanel,destinationRootClientId:p}})),Object(m.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.showInsertionPoint,a=o.hideInsertionPoint;function l(){var e=r("core/block-editor"),n=e.getBlockIndex,o=e.getBlockSelectionEnd,i=e.getBlockOrder,c=t.clientId,a=t.destinationRootClientId,l=t.isAppender;if(c)return n(c,a);var s=o();return!l&&s?n(s,a)+1:i(a).length}return{fetchReusableBlocks:e("core/editor").__experimentalFetchReusableBlocks,showInsertionPoint:function(){var e=l();c(t.destinationRootClientId,e)},hideInsertionPoint:a,onSelect:function(n){var o=e("core/block-editor"),c=o.replaceBlocks,a=o.insertBlock,s=r("core/block-editor").getSelectedBlock,u=t.isAppender,d=n.name,f=n.initialAttributes,p=s(),b=Object(i.createBlock)(d,f);return!u&&p&&Object(i.isUnmodifiedDefaultBlock)(p)?c(p.clientId,b):a(b,l(),t.destinationRootClientId),t.onSelect(),b}}})),P.withSpokenMessages,b.withInstanceId,b.withSafeTimeout)(Fo),Uo=function(e){var t=e.onToggle,n=e.disabled,r=e.isOpen;return Object(u.createElement)(P.IconButton,{icon:"insert",label:Object(H.__)("Add block"),labelPosition:"bottom",onClick:t,className:"editor-inserter__toggle block-editor-inserter__toggle","aria-haspopup":"true","aria-expanded":r,disabled:n})},Vo=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(E.a)(e)),e.renderToggle=e.renderToggle.bind(Object(E.a)(e)),e.renderContent=e.renderContent.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,i=r.renderToggle,c=void 0===i?Uo:i;return c({onToggle:t,isOpen:n,disabled:o})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,i=n.isAppender,c=n.showInserterHelpPanel;return Object(u.createElement)(Ho,{onSelect:t,rootClientId:r,clientId:o,isAppender:i,showInserterHelpPanel:c})}},{key:"render",value:function(){var e=this.props.position;return Object(u.createElement)(P.Dropdown,{className:"editor-inserter block-editor-inserter",contentClassName:"editor-inserter__popover block-editor-inserter__popover",position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(H.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(u.Component),zo=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.rootClientId;return{hasItems:(0,e("core/block-editor").hasInserterItems)(n)}})),Object(b.ifCondition)((function(e){return e.hasItems}))])(Vo);var Ko=function(e){var t=e.rootClientId,n=e.className;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Ie,{rootClientId:t}),Object(u.createElement)(zo,{rootClientId:t,renderToggle:function(e){var t=e.onToggle,r=e.disabled,o=e.isOpen;return Object(u.createElement)(P.Button,{className:f()(n,"block-editor-button-block-appender"),onClick:t,"aria-expanded":o,disabled:r},Object(u.createElement)("span",{className:"screen-reader-text"},Object(H.__)("Add Block")),Object(u.createElement)(P.Icon,{icon:"insert"}))},isAppender:!0}))},Wo=Object(b.createHigherOrderComponent)(Object(m.withSelect)((function(e,t){var n=e("core/block-editor").getSettings(),r=void 0===t.colors?n.colors:t.colors,o=void 0===t.disableCustomColors?n.disableCustomColors:t.disableCustomColors;return{colors:r,disableCustomColors:o,hasColorsToChoose:!Object(p.isEmpty)(r)||!o}})),"withColorContext"),qo=Wo(P.ColorPalette);function Go(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,i=t.getBrightness()=24?"large":"small"})?null:Object(u.createElement)(Go,{backgroundColor:t,textColor:c,tinyBackgroundColor:a,tinyTextColor:l})},Yo=n(40),Xo=n.n(Yo),Zo=Object(b.createHigherOrderComponent)((function(e){return q((function(e){return Object(p.pick)(e,["clientId"])}))(e)}),"withClientId"),Jo=Zo((function(e){var t=e.clientId;return Object(u.createElement)(Ko,{rootClientId:t})})),Qo=Object(b.compose)([Zo,Object(m.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(p.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(u.createElement)(uo,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(u.createElement)(jo,{rootClientId:t,lastBlockClientId:n}))}));var ei=function(e){var t=e.options,n=e.onSelect,r=e.allowSkip,o=f()("block-editor-inner-blocks__template-picker",{"has-many-options":t.length>4}),i=r?Object(H.__)("Select a layout to start with, or make one yourself."):Object(H.__)("Select a layout to start with.");return Object(u.createElement)(P.Placeholder,{icon:"layout",label:Object(H.__)("Choose Layout"),instructions:i,className:o},Object(u.createElement)("ul",{className:"block-editor-inner-blocks__template-picker-options",role:"list"},t.map((function(e,t){return Object(u.createElement)("li",{key:t},Object(u.createElement)(P.IconButton,{isLarge:!0,icon:e.icon,onClick:function(){return n(e.template)},className:"block-editor-inner-blocks__template-picker-option",label:e.title}))}))),r&&Object(u.createElement)("div",{className:"block-editor-inner-blocks__template-picker-skip"},Object(u.createElement)(P.Button,{isLink:!0,onClick:function(){return n(void 0)}},Object(H.__)("Skip"))))},ti=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={templateInProcess:!!e.props.template},e.updateNestedSettings(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.templateLock;0!==e.block.innerBlocks.length&&"all"!==t||this.synchronizeBlocksWithTemplate(),this.state.templateInProcess&&this.setState({templateInProcess:!1})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.template,r=t.block,o=t.templateLock,i=r.innerBlocks;(this.updateNestedSettings(),0===i.length||"all"===o)&&(!Object(p.isEqual)(n,e.template)&&this.synchronizeBlocksWithTemplate())}},{key:"synchronizeBlocksWithTemplate",value:function(){var e=this.props,t=e.template,n=e.block,r=e.replaceInnerBlocks,o=n.innerBlocks,c=Object(i.synchronizeBlocksWithTemplate)(o,t);Object(p.isEqual)(c,o)||r(c)}},{key:"updateNestedSettings",value:function(){var e=this.props,t=e.blockListSettings,n=e.allowedBlocks,r=e.updateNestedSettings,o=e.templateLock,i=e.parentLock,c={allowedBlocks:n,templateLock:void 0===o?i:o};Xo()(t,c)||r(c)}},{key:"render",value:function(){var e=this.props,t=e.isSmallScreen,n=e.clientId,r=e.hasOverlay,o=e.renderAppender,i=e.template,c=e.__experimentalTemplateOptions,a=e.__experimentalOnSelectTemplateOption,l=e.__experimentalAllowTemplateOptionSkip,s=this.state.templateInProcess,d=null===i&&!!c,p=f()("editor-inner-blocks block-editor-inner-blocks",{"has-overlay":t&&r&&!d});return Object(u.createElement)("div",{className:p},!s&&(d?Object(u.createElement)(ei,{options:c,onSelect:a,allowSkip:l}):Object(u.createElement)(Co,{rootClientId:n,renderAppender:o})))}}]),t}(u.Component);(ti=Object(b.compose)([Object(a.withViewportMatch)({isSmallScreen:"< medium"}),q((function(e){return Object(p.pick)(e,["clientId"])})),Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.isBlockSelected,o=n.hasSelectedInnerBlock,i=n.getBlock,c=n.getBlockListSettings,a=n.getBlockRootClientId,l=n.getTemplateLock,s=t.clientId,u=i(s),d=a(s);return{block:u,blockListSettings:c(s),hasOverlay:"core/template"!==u.name&&!r(s)&&!o(s,!0),parentLock:l(d)}})),Object(m.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.replaceInnerBlocks,o=n.updateBlockListSettings,i=t.block,c=t.clientId,a=t.templateInsertUpdatesSelection,l=void 0===a||a;return{replaceInnerBlocks:function(e){r(c,e,0===i.innerBlocks.length&&l)},updateNestedSettings:function(t){e(o(c,t))}}}))])(ti)).DefaultBlockAppender=Qo,ti.ButtonBlockAppender=Jo,ti.Content=Object(i.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(u.createElement)(t,null)}));var ni=ti,ri=Object(P.createSlotFill)("InspectorAdvancedControls"),oi=ri.Fill,ii=ri.Slot,ci=G(oi);ci.Slot=ii;var ai=ci,li=Object(P.createSlotFill)("InspectorControls"),si=li.Fill,ui=li.Slot,di=G(si);di.Slot=ui;var fi=di,pi=Object(P.withFilters)("editor.MediaUpload")((function(){return null}));function bi(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(u.createElement)(P.ExternalLink,{className:o,href:t},n||Object(Le.filterURLForDisplay)(Object(Le.safeDecodeURI)(t))):Object(u.createElement)("span",{className:o})}var hi=function(e){return e.stopPropagation()},mi=function(e){function t(e){var n,r=e.autocompleteRef;return Object(j.a)(this,t),(n=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(E.a)(n)),n.onKeyDown=n.onKeyDown.bind(Object(E.a)(n)),n.autocompleteRef=r||Object(u.createRef)(),n.inputRef=Object(u.createRef)(),n.updateSuggestions=Object(p.throttle)(n.updateSuggestions.bind(Object(E.a)(n)),200),n.suggestionNodes=[],n.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(){var e=this,t=this.state,n=t.showSuggestions,r=t.selectedSuggestion;n&&null!==r&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,xe()(this.suggestionNodes[r],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"updateSuggestions",value:function(e){var t=this,n=this.props.fetchLinkSuggestions;if(n)if(e.length<2||/^https?:/.test(e))this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});else{this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0});var r=n(e);r.then((function(e){t.suggestionsRequest===r&&(t.setState({suggestions:e,loading:!1}),e.length?t.props.debouncedSpeak(Object(H.sprintf)(Object(H._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):t.props.debouncedSpeak(Object(H.__)("No results."),"assertive"))})).catch((function(){t.suggestionsRequest===r&&t.setState({loading:!1})})),this.suggestionsRequest=r}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.updateSuggestions(t)}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,i=t.loading;if(n&&o.length&&!i){var c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case he.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case he.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case he.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(H.__)("Link selected.")));break;case he.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(c))}}else switch(e.keyCode){case he.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case he.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=void 0===n?"":n,o=t.autoFocus,i=void 0===o||o,c=t.instanceId,a=t.className,l=t.id,s=t.isFullWidth,d=t.hasBorder,p=this.state,b=p.showSuggestions,h=p.suggestions,m=p.selectedSuggestion,v=p.loading,g="block-editor-url-input-suggestions-".concat(c),O="block-editor-url-input-suggestion-".concat(c);return Object(u.createElement)("div",{className:f()("editor-url-input block-editor-url-input",a,{"is-full-width":s,"has-border":d})},Object(u.createElement)("input",{id:l,autoFocus:i,type:"text","aria-label":Object(H.__)("URL"),required:!0,value:r,onChange:this.onChange,onInput:hi,placeholder:Object(H.__)("Paste URL or type to search"),onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":b,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==m?"".concat(O,"-").concat(m):void 0,ref:this.inputRef}),v&&Object(u.createElement)(P.Spinner,null),b&&!!h.length&&Object(u.createElement)(P.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(u.createElement)("div",{className:f()("editor-url-input__suggestions","block-editor-url-input__suggestions","".concat(a,"__suggestions")),id:g,ref:this.autocompleteRef,role:"listbox"},h.map((function(t,n){return Object(u.createElement)("button",{key:t.id,role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),className:f()("editor-url-input__suggestion block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)},"aria-selected":n===m},t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.disableSuggestions,r=t.showSuggestions;return{showSuggestions:!0!==n&&r}}}]),t}(u.Component),vi=Object(b.compose)(b.withSafeTimeout,P.withSpokenMessages,b.withInstanceId,Object(m.withSelect)((function(e){return{fetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(mi);var gi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(E.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,i=void 0===o?"bottom center":o,c=e.focusOnMount,a=void 0===c?"firstElement":c,l=Object(Ae.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=this.state.isSettingsExpanded,f=!!r&&d;return Object(u.createElement)(P.Popover,Object(s.a)({className:"editor-url-popover block-editor-url-popover",focusOnMount:a,position:i},l),Object(u.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(u.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row"},n,!!r&&Object(u.createElement)(P.IconButton,{className:"editor-url-popover__settings-toggle block-editor-url-popover__settings-toggle",icon:"arrow-down-alt2",label:Object(H.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":d})),f&&Object(u.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row editor-url-popover__settings block-editor-url-popover__settings"},r())),t&&!f&&Object(u.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),t}(u.Component);gi.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,i=Object(Ae.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(u.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},i),Object(u.createElement)(vi,{value:o,onChange:r,autocompleteRef:t}),Object(u.createElement)(P.IconButton,{icon:"editor-break",label:Object(H.__)("Apply"),type:"submit"}))},gi.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,i=e.urlLabel,c=Object(Ae.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(u.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},c),Object(u.createElement)(bi,{url:o,urlLabel:i,className:n}),r&&Object(u.createElement)(P.IconButton,{icon:"edit",label:Object(H.__)("Edit"),onClick:r}))};var Oi=gi,ki=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(u.createElement)(Oi,{onClose:o},Object(u.createElement)("form",{className:"editor-media-placeholder__url-input-form block-editor-media-placeholder__url-input-form",onSubmit:r},Object(u.createElement)("input",{className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(H.__)("URL"),placeholder:Object(H.__)("Paste or type URL"),onChange:n,value:t}),Object(u.createElement)(P.IconButton,{className:"editor-media-placeholder__url-input-submit-button block-editor-media-placeholder__url-input-submit-button",icon:"editor-break",label:Object(H.__)("Apply"),type:"submit"})))},yi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(E.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(E.a)(e)),e.onUpload=e.onUpload.bind(Object(E.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(E.a)(e)),e.openURLInput=e.openURLInput.bind(Object(E.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this.props,r=n.addToGallery,o=n.allowedTypes,i=n.mediaUpload,c=n.multiple,a=n.onError,l=n.onSelect,s=n.value;if(c)if(r){var u=void 0===s?[]:s;t=function(e){l(u.concat(e))}}else t=l;else t=function(e){var t=Object(Ne.a)(e,1)[0];return l(t)};i({allowedTypes:o,filesList:e,onFileChange:t,onError:a})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,i=n.className,c=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,d=n.onDoubleClick,p=n.mediaPreview,b=n.notices,h=n.onSelectURL,m=n.mediaUpload,v=n.children,g=s.instructions,O=s.title;if(m||h||(g=Object(H.__)("To edit this block, you need permission to upload media.")),void 0===g||void 0===O){var k=1===o.length,y=k&&"audio"===o[0],j=k&&"image"===o[0],_=k&&"video"===o[0];void 0===g&&m&&(g=Object(H.__)("Upload a media file or pick one from your media library."),y?g=Object(H.__)("Upload an audio file, pick one from your media library, or add one with a URL."):j?g=Object(H.__)("Upload an image file, pick one from your media library, or add one with a URL."):_&&(g=Object(H.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===O&&(O=Object(H.__)("Media"),y?O=Object(H.__)("Audio"):j?O=Object(H.__)("Image"):_&&(O=Object(H.__)("Video")))}var S=f()("block-editor-media-placeholder","editor-media-placeholder",i,{"is-appender":a});return Object(u.createElement)(P.Placeholder,{icon:c,label:O,instructions:g,className:S,notices:b,onClick:t,onDoubleClick:d,preview:p},e,v)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(u.createElement)(P.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(u.createElement)(P.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(H.__)("Cancel"),isLink:!0,onClick:e},Object(H.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(u.createElement)("div",{className:"editor-media-placeholder__url-input-container block-editor-media-placeholder__url-input-container"},Object(u.createElement)(P.Button,{className:"editor-media-placeholder__button block-editor-media-placeholder__button",onClick:this.openURLInput,isToggled:t,isLarge:!0},Object(H.__)("Insert from URL")),t&&Object(u.createElement)(ki,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,i=void 0===o?[]:o,c=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,d=t.onSelect,b=t.value,h=void 0===b?{}:b,m=Object(u.createElement)(pi,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:d,allowedTypes:i,value:Object(p.isArray)(h)?h.map((function(e){return e.id})):h.id,render:function(e){var t=e.open;return Object(u.createElement)(P.Button,{isLarge:!0,className:f()("editor-media-placeholder__button","editor-media-placeholder__media-library-button"),onClick:function(e){e.stopPropagation(),t()}},Object(H.__)("Media Library"))}});if(a&&c)return Object(u.createElement)(u.Fragment,null,this.renderDropZone(),Object(u.createElement)(P.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.IconButton,{isLarge:!0,className:f()("block-editor-media-placeholder__button","editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),icon:"upload"},Object(H.__)("Upload")),m,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var v=Object(u.createElement)(u.Fragment,null,this.renderDropZone(),Object(u.createElement)(P.FormFileUpload,{isLarge:!0,className:f()("block-editor-media-placeholder__button","editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(H.__)("Upload")),m,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(v)}return this.renderPlaceholder(m)}},{key:"render",value:function(){return this.props.dropZoneUIOnly?Object(u.createElement)(Ee,null,this.renderDropZone()):Object(u.createElement)(Ee,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),t}(u.Component),ji=Object(m.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),_i=Object(b.compose)(ji,Object(P.withFilters)("editor.MediaPlaceholder"))(yi),Si=Object(H.__)("(current %s: %s)");var Ci=Object(b.compose)([Wo,Object(b.ifCondition)((function(e){return e.hasColorsToChoose}))])((function(e){var t=e.colors,n=e.disableCustomColors,r=e.label,o=e.onChange,i=e.value,c=k(t,i),a=c&&c.name,l=Object(H.sprintf)(Si,r.toLowerCase(),a||i);return Object(u.createElement)(P.BaseControl,{className:"editor-color-palette-control block-editor-color-palette-control"},Object(u.createElement)(P.BaseControl.VisualLabel,null,r,i&&Object(u.createElement)(P.ColorIndicator,{colorValue:i,"aria-label":l})),Object(u.createElement)(qo,Object(s.a)({className:"editor-color-palette-control__color-palette block-editor-color-palette-control__color-palette",value:i,onChange:o},{colors:t,disableCustomColors:n})))})),Ei=function(e,t){return void 0!==t.disableCustomColors?t.disableCustomColors:e},wi=Object(H.__)("(%s: %s)"),Ii=Object(b.ifCondition)((function(e){var t=e.colors,n=e.disableCustomColors,r=e.colorSettings;return Object(p.some)(r,(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return!Ei(t,n)||(n.colors||e).length>0}(t,n,e)}))}))((function(e){var t=e.children,n=e.colors,r=e.colorSettings,o=e.disableCustomColors,i=e.title,c=Object(Ae.a)(e,["children","colors","colorSettings","disableCustomColors","title"]),a=Object(u.createElement)("span",{className:"editor-panel-color-settings__panel-title block-editor-panel-color-settings__panel-title"},i,function(e,t){return e.map((function(e,n){var r=e.value,o=e.label,i=e.colors;if(!r)return null;var c=k(i||t,r),a=c&&c.name,l=Object(H.sprintf)(wi,o.toLowerCase(),a||r);return Object(u.createElement)(P.ColorIndicator,{key:n,colorValue:r,"aria-label":l})}))}(r,n));return Object(u.createElement)(P.PanelBody,Object(s.a)({className:"editor-panel-color-settings block-editor-panel-color-settings",title:a},c),r.map((function(e,t){return Object(u.createElement)(Ci,Object(s.a)({key:t},Object(l.a)({colors:n,disableCustomColors:o},e)))})),t)})),Bi=Wo(Ii),Ti=Object(u.forwardRef)((function(e,t){var n=e.onChange,r=e.className,o=Object(Ae.a)(e,["onChange","className"]);return Object(u.createElement)(Zr.a,Object(s.a)({ref:t,className:f()("editor-plain-text block-editor-plain-text",r),onChange:function(e){return n(e.target.value)}},o))})),xi=n(35),Li=n(37),Ni=n.n(Li),Ai={position:"bottom left"},Mi=function(){return Object(u.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},Object(u.createElement)(P.Toolbar,null,["bold","italic","link"].map((function(e){return Object(u.createElement)(P.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(u.createElement)(P.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(u.createElement)(P.DropdownMenu,{icon:!1,label:Object(H.__)("More rich text controls"),controls:Object(p.orderBy)(e.map((function(e){return Object(Ne.a)(e,1)[0].props})),"title"),popoverProps:Ai})}))))},Ri=[he.rawShortcut.primary("z"),he.rawShortcut.primaryShift("z"),he.rawShortcut.primary("y")],Pi=Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(Ri.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),Di=function(){return Pi},Fi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(I.a)({},he.rawShortcut[n](t),this.onUse)})}}]),t}(u.Component);function Hi(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(Ae.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=he.displayShortcut[r](o)),Object(u.createElement)(P.Fill,{name:c},Object(u.createElement)(P.ToolbarButton,Object(s.a)({},i,{shortcut:t})))}var Ui=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onInput=e.onInput.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),t}(u.Component),Vi=window.requestIdleCallback||function(e){window.setTimeout(e,100)};function zi(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}var Ki=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).onEnter=e.onEnter.bind(Object(E.a)(e)),e.onSplit=e.onSplit.bind(Object(E.a)(e)),e.onPaste=e.onPaste.bind(Object(E.a)(e)),e.onDelete=e.onDelete.bind(Object(E.a)(e)),e.inputRule=e.inputRule.bind(Object(E.a)(e)),e.markAutomaticChange=e.markAutomaticChange.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onEnter",value:function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=this.props,a=o.onReplace,l=o.onSplit,s=o.multiline,u=a&&l;if(a){var d=Object(i.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),f=Object(i.findTransform)(d,(function(e){return e.regExp.test(t.text)}));f&&(a([f.transform({content:t.text})]),this.markAutomaticChange())}s?r?n(Object(c.insert)(t,"\n")):u&&Object(c.__unstableIsEmptyLine)(t)?this.onSplit(t):n(Object(c.__unstableInsertLineSeparator)(t)):r||!u?n(Object(c.insert)(t,"\n")):this.onSplit(t)}},{key:"onDelete",value:function(e){var t=e.value,n=e.isReverse,r=this.props,o=r.onMerge,i=r.onRemove;o&&o(!n),i&&Object(c.isEmpty)(t)&&n&&i(!n)}},{key:"onPaste",value:function(e){var t=e.value,n=e.onChange,r=e.html,o=e.plainText,a=e.image,l=this.props,s=l.onReplace,u=l.onSplit,d=l.tagName,f=l.canUserUseUnfilteredHTML,p=l.multiline,b=l.__unstableEmbedURLOnPaste;if(a&&!r){var h=a.getAsFile?a.getAsFile():a,m=Object(i.pasteHandler)({HTML:''),mode:"BLOCKS",tagName:d});return window.console.log("Received item:\n\n",h),void(s&&Object(c.isEmpty)(t)?s(m):this.onSplit(t,m))}var v=s&&u?"AUTO":"INLINE";b&&Object(c.isEmpty)(t)&&Object(Le.isURL)(o.trim())&&(v="BLOCKS");var g=Object(i.pasteHandler)({HTML:r,plainText:o,mode:v,tagName:d,canUserUseUnfilteredHTML:f});if("string"==typeof g){var O=Object(c.create)({html:g});p&&(O=Object(c.replace)(O,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,O))}else g.length>0&&(s&&Object(c.isEmpty)(t)?s(g):this.onSplit(t,g))}},{key:"onSplit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.props,r=n.onReplace,o=n.onSplit,i=n.__unstableOnSplitMiddle,a=n.multiline;if(r&&o){var l=[],s=Object(c.split)(e),u=Object(Ne.a)(s,2),d=u[0],f=u[1],p=t.length>0,b=zi(a);p&&Object(c.isEmpty)(d)||l.push(o(Object(c.toHTMLString)({value:d,multilineTag:b}))),p?l.push.apply(l,Object(Be.a)(t)):i&&l.push(i()),!p&&i&&Object(c.isEmpty)(f)||l.push(o(Object(c.toHTMLString)({value:f,multilineTag:b})));var h=p?l.length-1:1;r(l,h)}}},{key:"inputRule",value:function(e,t){var n=this.props.onReplace;if(n){var r=e.start,o=e.text;if(" "===o.slice(r-1,r)){var a=o.slice(0,r).trim(),l=Object(i.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),s=Object(i.findTransform)(l,(function(e){var t=e.prefix;return a===t}));if(s){var u=t(Object(c.slice)(e,r,o.length));n([s.transform(u)]),this.markAutomaticChange()}}}}},{key:"getAllowedFormats",value:function(){var e=this.props,t=e.allowedFormats,n=e.formattingControls;if(t||n)return t||(Ni()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)})))}},{key:"markAutomaticChange",value:function(){var e=this;Vi((function(){e.props.markAutomaticChange()}))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.tagName,r=e.value,o=e.onChange,a=e.selectionStart,l=e.selectionEnd,d=e.onSelectionChange,p=e.multiline,b=e.inlineToolbar,h=e.wrapperClassName,m=e.className,v=e.autocompleters,g=e.onReplace,O=e.isCaretWithinFormattedText,k=e.onEnterFormattedText,y=e.onExitFormattedText,j=e.isSelected,_=e.onCreateUndoLevel,S=(e.markAutomaticChange,e.didAutomaticChange),C=e.undo,E=e.placeholder,w=e.keepPlaceholderOnFocus,I=(e.allowedFormats,e.withoutInteractiveFormatting),B=(e.onRemove,e.onMerge,e.onSplit,e.canUserUseUnfilteredHTML,e.clientId,e.identifier,e.instanceId,e.start),T=e.reversed,x=Object(Ae.a)(e,["children","tagName","value","onChange","selectionStart","selectionEnd","onSelectionChange","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","isCaretWithinFormattedText","onEnterFormattedText","onExitFormattedText","isSelected","onCreateUndoLevel","markAutomaticChange","didAutomaticChange","undo","placeholder","keepPlaceholderOnFocus","allowedFormats","withoutInteractiveFormatting","onRemove","onMerge","onSplit","canUserUseUnfilteredHTML","clientId","identifier","instanceId","start","reversed"]),L=zi(p),N=this.getAllowedFormats(),A=!N||N.length>0,M=r,R=o;Array.isArray(r)&&(M=i.children.toHTML(r),R=function(e){return o(i.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var D=Object(u.createElement)(c.__experimentalRichText,Object(s.a)({},x,{value:M,onChange:R,selectionStart:a,selectionEnd:l,onSelectionChange:d,tagName:n,className:f()("editor-rich-text__editable block-editor-rich-text__editable",m,{"is-selected":j,"keep-placeholder-on-focus":w}),placeholder:E,allowedFormats:N,withoutInteractiveFormatting:I,onEnter:this.onEnter,onDelete:this.onDelete,onPaste:this.onPaste,__unstableIsSelected:j,__unstableInputRule:this.inputRule,__unstableMultilineTag:L,__unstableIsCaretWithinFormattedText:O,__unstableOnEnterFormattedText:k,__unstableOnExitFormattedText:y,__unstableOnCreateUndoLevel:_,__unstableMarkAutomaticChange:this.markAutomaticChange,__unstableDidAutomaticChange:S,__unstableUndo:C}),(function(e){var n=e.isSelected,r=e.value,o=e.onChange,i=e.Editable;return Object(u.createElement)(u.Fragment,null,t&&t({value:r,onChange:o}),n&&!b&&A&&Object(u.createElement)(pe,null,Object(u.createElement)(Mi,null)),n&&b&&A&&Object(u.createElement)(P.IsolatedEventContainer,{className:"editor-rich-text__inline-toolbar block-editor-rich-text__inline-toolbar"},Object(u.createElement)(Mi,null)),n&&Object(u.createElement)(Di,null),Object(u.createElement)($,{onReplace:g,completers:v,record:r,onChange:o,isSelected:n},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(u.createElement)(i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:B,reversed:T,onKeyDown:r})})))}));return Object(u.createElement)("div",{className:f()("editor-rich-text block-editor-rich-text",h)},D)}}]),t}(u.Component),Wi=Object(b.compose)([b.withInstanceId,q((function(e){return{clientId:e.clientId}})),Object(m.withSelect)((function(e,t){var n=t.clientId,r=t.instanceId,o=t.identifier,i=void 0===o?r:o,c=t.isSelected,a=e("core/block-editor"),l=a.isCaretWithinFormattedText,s=a.getSelectionStart,u=a.getSelectionEnd,d=a.getSettings,f=a.didAutomaticChange,p=s(),b=u(),h=d().__experimentalCanUserUseUnfilteredHTML;return void 0===c?c=p.clientId===n&&p.attributeKey===i:c&&(c=p.clientId===n),{canUserUseUnfilteredHTML:h,isCaretWithinFormattedText:l(),selectionStart:c?p.offset:void 0,selectionEnd:c?b.offset:void 0,isSelected:c,didAutomaticChange:f()}})),Object(m.withDispatch)((function(e,t){var n=t.clientId,r=t.instanceId,o=t.identifier,i=void 0===o?r:o,c=e("core/block-editor"),a=c.__unstableMarkLastChangeAsPersistent,l=c.enterFormattedText,s=c.exitFormattedText,u=c.selectionChange;return{onCreateUndoLevel:a,onEnterFormattedText:l,onExitFormattedText:s,onSelectionChange:function(e,t){u(n,i,e,t)},markAutomaticChange:c.__unstableMarkAutomaticChange,undo:e("core/editor").undo}})),Object(P.withFilters)("experimentalRichText")])(Ki);Wi.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(Ae.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=i.children.toHTML(t));var c=zi(r);!t&&c&&(t="<".concat(c,">"));var a=Object(u.createElement)(u.RawHTML,null,t);return n?Object(u.createElement)(n,Object(p.omit)(o,["format"]),a):a},Wi.isEmpty=function(e){return!e||0===e.length},Wi.Content.defaultProps={format:"string",value:""};var qi=Wi,Gi=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(E.a)(e)),e.submitLink=e.submitLink.bind(Object(E.a)(e)),e.state={expanded:!1},e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(H.__)("Edit link"):Object(H.__)("Insert link");return Object(u.createElement)("div",{className:"editor-url-input__button block-editor-url-input__button"},Object(u.createElement)(P.IconButton,{icon:"admin-links",label:o,onClick:this.toggle,className:f()("components-toolbar__control",{"is-active":t})}),r&&Object(u.createElement)("form",{className:"editor-url-input__button-modal block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(u.createElement)("div",{className:"editor-url-input__button-modal-line block-editor-url-input__button-modal-line"},Object(u.createElement)(P.IconButton,{className:"editor-url-input__back block-editor-url-input__back",icon:"arrow-left-alt",label:Object(H.__)("Close"),onClick:this.toggle}),Object(u.createElement)(vi,{value:t||"",onChange:n}),Object(u.createElement)(P.IconButton,{icon:"editor-break",label:Object(H.__)("Submit"),type:"submit"}))))}}]),t}(u.Component),$i=Object(P.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Yi=$i.Fill,Xi=$i.Slot;Yi.Slot=Xi;var Zi=Yi,Ji=Object(P.createSlotFill)("__experimentalBlockSettingsMenuPluginsExtension"),Qi=Ji.Fill,ec=Ji.Slot;Qi.Slot=ec;var tc=Qi;var nc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockRootClientId,c=n.getBlocksByClientId,a=n.getTemplateLock,l=e("core/blocks").getDefaultBlockName,s=c(t.clientIds),u=o(t.clientIds[0]);return{blocks:s,canDuplicate:Object(p.every)(s,(function(e){return!!e&&Object(i.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,u)})),canInsertDefaultBlock:r(l(),u),extraProps:t,isLocked:!!a(u),rootClientId:u}})),Object(m.withDispatch)((function(e,t,n){var r=n.select,o=t.clientIds,c=t.rootClientId,a=t.blocks,l=t.isLocked,s=t.canDuplicate,u=e("core/block-editor"),d=u.insertBlocks,f=u.multiSelect,b=u.removeBlocks,h=u.insertDefaultBlock,m=u.replaceBlocks;return{onDuplicate:function(){if(s){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.last)(Object(p.castArray)(o)),c),t=a.map((function(e){return Object(i.cloneBlock)(e)}));d(t,e+1,c),t.length>1&&f(Object(p.first)(t).clientId,Object(p.last)(t).clientId)}},onRemove:function(){l||b(o)},onInsertBefore:function(){if(!l){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.first)(Object(p.castArray)(o)),c);h({},c,e)}},onInsertAfter:function(){if(!l){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.last)(Object(p.castArray)(o)),c);h({},c,e+1)}},onGroup:function(){if(a.length){var e=(0,r("core/blocks").getGroupingBlockName)(),t=Object(i.switchToBlockType)(a,e);t&&m(o,t)}},onUngroup:function(){if(a.length){var e=a[0].innerBlocks;e.length&&m(o,e)}}}}))])((function(e){var t=e.canDuplicate,n=e.canInsertDefaultBlock;return(0,e.children)({canDuplicate:t,canInsertDefaultBlock:n,isLocked:e.isLocked,onDuplicate:e.onDuplicate,onGroup:e.onGroup,onInsertAfter:e.onInsertAfter,onInsertBefore:e.onInsertBefore,onRemove:e.onRemove,onUngroup:e.onUngroup})})),rc=function(e){return e.preventDefault(),e},oc={duplicate:{raw:he.rawShortcut.primaryShift("d"),display:he.displayShortcut.primaryShift("d")},removeBlock:{raw:he.rawShortcut.access("z"),display:he.displayShortcut.access("z")},insertBefore:{raw:he.rawShortcut.primaryAlt("t"),display:he.displayShortcut.primaryAlt("t")},insertAfter:{raw:he.rawShortcut.primaryAlt("y"),display:he.displayShortcut.primaryAlt("y")}},ic=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).selectAll=e.selectAll.bind(Object(E.a)(e)),e.deleteSelectedBlocks=e.deleteSelectedBlocks.bind(Object(E.a)(e)),e.clearMultiSelection=e.clearMultiSelection.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"selectAll",value:function(e){var t=this.props,n=t.rootBlocksClientIds,r=t.onMultiSelect;e.preventDefault(),r(Object(p.first)(n),Object(p.last)(n))}},{key:"deleteSelectedBlocks",value:function(e){var t=this.props,n=t.selectedBlockClientIds,r=t.hasMultiSelection,o=t.onRemove,i=t.isLocked;r&&(e.preventDefault(),i||o(n))}},{key:"clearMultiSelection",value:function(){var e=this.props,t=e.hasMultiSelection,n=e.clearSelectedBlock;t&&(n(),window.getSelection().removeAllRanges())}},{key:"render",value:function(){var e,t=this.props.selectedBlockClientIds;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.KeyboardShortcuts,{shortcuts:(e={},Object(I.a)(e,he.rawShortcut.primary("a"),this.selectAll),Object(I.a)(e,"backspace",this.deleteSelectedBlocks),Object(I.a)(e,"del",this.deleteSelectedBlocks),Object(I.a)(e,"escape",this.clearMultiSelection),e)}),t.length>0&&Object(u.createElement)(nc,{clientIds:t},(function(e){var t,n=e.onDuplicate,r=e.onRemove,o=e.onInsertAfter,i=e.onInsertBefore;return Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(I.a)(t,oc.duplicate.raw,Object(p.flow)(rc,n)),Object(I.a)(t,oc.removeBlock.raw,Object(p.flow)(rc,r)),Object(I.a)(t,oc.insertBefore.raw,Object(p.flow)(rc,i)),Object(I.a)(t,oc.insertAfter.raw,Object(p.flow)(rc,o)),t)})})))}}]),t}(u.Component),cc=Object(b.compose)([Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockOrder,r=t.getSelectedBlockClientIds,o=t.hasMultiSelection,i=t.getBlockRootClientId,c=t.getTemplateLock,a=r();return{rootBlocksClientIds:n(),hasMultiSelection:o(),isLocked:Object(p.some)(a,(function(e){return!!c(i(e))})),selectedBlockClientIds:a}})),Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{clearSelectedBlock:t.clearSelectedBlock,onMultiSelect:t.multiSelect,onRemove:t.removeBlocks}}))])(ic),ac=Object(m.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(u.createElement)(P.Button,{isDefault:!0,type:"button",className:"editor-skip-to-selected-block block-editor-skip-to-selected-block",onClick:function(){po(t).closest(".block-editor-block-list__block").focus()}},Object(H.__)("Skip to the selected block"))})),lc=n(135),sc=n.n(lc);function uc(e,t,n){var r=new sc.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}var dc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core/blocks").getBlockStyles,c=r(n),a=Object(i.getBlockType)(c.name);return{block:c,className:c.attributes.className||"",styles:o(c.name),type:a}})),Object(m.withDispatch)((function(e,t){var n=t.clientId;return{onChangeClassName:function(t){e("core/block-editor").updateBlockAttributes(n,{className:t})}}}))])((function(e){var t=e.styles,n=e.className,r=e.onChangeClassName,o=e.type,c=e.block,a=e.onSwitch,s=void 0===a?p.noop:a,d=e.onHoverClassName,b=void 0===d?p.noop:d;if(!t||0===t.length)return null;o.styles||Object(p.find)(t,"isDefault")||(t=[{name:"default",label:Object(H._x)("Default","block style"),isDefault:!0}].concat(Object(Be.a)(t)));var h=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,c=new sc.a(t).values()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=i.value;if(-1!==a.indexOf("is-style-")){var l=a.substring(9),s=Object(p.find)(e,{name:l});if(s)return s}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return Object(p.find)(e,"isDefault")}(t,n);function m(e){var t=uc(n,h,e);r(t),b(null),s()}return Object(u.createElement)("div",{className:"editor-block-styles block-editor-block-styles"},t.map((function(e){var t=uc(n,h,e);return Object(u.createElement)("div",{key:e.name,className:f()("editor-block-styles__item block-editor-block-styles__item",{"is-active":h===e}),onClick:function(){return m(e)},onKeyDown:function(t){he.ENTER!==t.keyCode&&he.SPACE!==t.keyCode||(t.preventDefault(),m(e))},onMouseEnter:function(){return b(t)},onMouseLeave:function(){return b(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(u.createElement)("div",{className:"editor-block-styles__item-preview block-editor-block-styles__item-preview"},Object(u.createElement)(wo,{viewportWidth:500,blocks:o.example?Object(i.getBlockFromExample)(c.name,{attributes:Object(l.a)({},o.example.attributes,{className:t}),innerBlocks:o.example.innerBlocks}):Object(i.cloneBlock)(c,{className:t})})),Object(u.createElement)("div",{className:"editor-block-styles__item-label block-editor-block-styles__item-label"},e.label||e.name))})))})),fc=n(93);var pc=Object(m.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(fc.count)(Object(i.serialize)(t),"words");return Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card block-editor-multi-selection-inspector__card"},Object(u.createElement)(be,{icon:Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),showColors:!0}),Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-content block-editor-multi-selection-inspector__card-content"},Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-title block-editor-multi-selection-inspector__card-title"},Object(H.sprintf)(Object(H._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-description block-editor-multi-selection-inspector__card-description"},Object(H.sprintf)(Object(H._n)("%d word","%d words",n),n))))}));function bc(e){var t=e.blockName,n=Object(m.useSelect)((function(e){var n=e("core/block-editor").getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:Object(p.get)(n,["value",t]),onUpdatePreferredStyleVariations:Object(p.get)(n,["onChange"],null),styles:e("core/blocks").getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,i=n.styles,c=Object(u.useMemo)((function(){return[{label:Object(H.__)("Not set"),value:""}].concat(Object(Be.a)(i.map((function(e){return{label:e.label,value:e.name}}))))}),[i]),a=Object(u.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(u.createElement)(P.SelectControl,{options:c,value:r||"",label:Object(H.__)("Default Style"),onChange:a})}var hc=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,c=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(i.getBlockType)(l),u=a&&c(l);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,c=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a;if(n>1)return Object(u.createElement)(pc,null);var s=c===Object(i.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(To,{blockType:t}),r&&Object(u.createElement)("div",null,Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Styles"),initialOpen:!1},Object(u.createElement)(dc,{clientId:o}),Object(u.createElement)(bc,{blockName:t.name}))),Object(u.createElement)("div",null,Object(u.createElement)(fi.Slot,null)),Object(u.createElement)("div",null,Object(u.createElement)(ai.Slot,null,(function(e){return!Object(p.isEmpty)(e)&&Object(u.createElement)(P.PanelBody,{className:"editor-block-inspector__advanced block-editor-block-inspector__advanced",title:Object(H.__)("Advanced"),initialOpen:!1},e)}))),Object(u.createElement)(ac,{key:"back"})):l?Object(u.createElement)("span",{className:"editor-block-inspector__no-blocks block-editor-block-inspector__no-blocks"},Object(H.__)("No block selected.")):null})),mc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(E.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,i=n||r;e.target===this.container&&i&&o()}},{key:"render",value:function(){return Object(u.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(u.Component),vc=Object(b.compose)([Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(m.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(mc);var gc=Object(b.compose)([Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:c(n),blockType:l?Object(i.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(m.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(i.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(H.__)("Edit as HTML"):Object(H.__)("Edit visually");return Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:r,icon:"html"},!c&&s)}));function Oc(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(H.__)("Convert to Blocks");return Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:n,icon:"screenoptions"},!r&&o)}var kc=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(m.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.getBlockContent)(n)}))}}})))(Oc),yc=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(i.getFreeformContentHandlerName)()}})),Object(m.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.serialize)(n)}))}}})))(Oc),jc={className:"block-editor-block-settings-menu__popover editor-block-settings-menu__popover",position:"bottom right"};var _c=function(e){var t=e.clientIds,n=Object(p.castArray)(t),r=n.length,o=n[0];return Object(u.createElement)(nc,{clientIds:t},(function(e){var n=e.canDuplicate,i=e.canInsertDefaultBlock,c=e.isLocked,a=e.onDuplicate,l=e.onInsertAfter,s=e.onInsertBefore,d=e.onRemove;return Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.DropdownMenu,{icon:"ellipsis",label:Object(H.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:jc},(function(e){var f=e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.MenuGroup,null,Object(u.createElement)(Zi.Slot,{fillProps:{onClose:f}}),1===r&&Object(u.createElement)(yc,{clientId:o}),1===r&&Object(u.createElement)(kc,{clientId:o}),n&&Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,a),icon:"admin-page",shortcut:oc.duplicate.display},Object(H.__)("Duplicate")),i&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,s),icon:"insert-before",shortcut:oc.insertBefore.display},Object(H.__)("Insert Before")),Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,l),icon:"insert-after",shortcut:oc.insertAfter.display},Object(H.__)("Insert After"))),1===r&&Object(u.createElement)(gc,{clientId:o,onToggle:f}),Object(u.createElement)(tc.Slot,{fillProps:{clientIds:t,onClose:f}})),Object(u.createElement)(P.MenuGroup,null,!c&&Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,d),icon:"trash",shortcut:oc.removeBlock.display},Object(H.__)("Remove Block"))))})))}))},Sc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onHoverClassName",value:function(e){this.setState({hoveredClassName:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.blocks,r=t.onTransform,o=t.inserterItems,c=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var s,d=a?n[0]:null,f=a?Object(i.getBlockType)(d.name):null,b=Object(p.mapKeys)(o,(function(e){return e.name})),h=Object(p.orderBy)(Object(p.filter)(Object(i.getPossibleBlockTransformations)(n),(function(e){return e&&!!b[e.name]})),(function(e){return b[e.name].frecency}),"desc");if(1===Object(p.uniq)(Object(p.map)(n,"name")).length){var m=n[0].name,v=Object(i.getBlockType)(m);s=v.icon}else s="layout";return c||h.length?Object(u.createElement)(P.Dropdown,{position:"bottom right",className:"editor-block-switcher block-editor-block-switcher",contentClassName:"editor-block-switcher__popover block-editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,o=1===n.length?Object(H.__)("Change block type or style"):Object(H.sprintf)(Object(H._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.IconButton,{className:"editor-block-switcher__toggle block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,tooltip:o,onKeyDown:function(e){r||e.keyCode!==he.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(be,{icon:s,showColors:!0}),Object(u.createElement)(P.SVG,{className:"editor-block-switcher__transform block-editor-block-switcher__transform",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.Path,{d:"M6.5 8.9c.6-.6 1.4-.9 2.2-.9h6.9l-1.3 1.3 1.4 1.4L19.4 7l-3.7-3.7-1.4 1.4L15.6 6H8.7c-1.4 0-2.6.5-3.6 1.5l-2.8 2.8 1.4 1.4 2.8-2.8zm13.8 2.4l-2.8 2.8c-.6.6-1.3.9-2.1.9h-7l1.3-1.3-1.4-1.4L4.6 16l3.7 3.7 1.4-1.4L8.4 17h6.9c1.3 0 2.6-.5 3.5-1.5l2.8-2.8-1.3-1.4z"})))}))},renderContent:function(t){var o=t.onClose;return Object(u.createElement)(u.Fragment,null,(c||0!==h.length)&&Object(u.createElement)("div",{className:"block-editor-block-switcher__container"},c&&Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Block Styles"),initialOpen:!0},Object(u.createElement)(dc,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==h.length&&Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Transform To:"),initialOpen:!0},Object(u.createElement)(Bo,{items:h.map((function(e){return{id:e.name,icon:e.icon,title:e.title}})),onSelect:function(e){r(n,e.id),o()}}))),null!==a&&Object(u.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(u.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(H.__)("Preview")),Object(u.createElement)(wo,{viewportWidth:500,blocks:f.example?Object(i.getBlockFromExample)(d.name,{attributes:Object(l.a)({},f.example.attributes,{className:a}),innerBlocks:f.example.innerBlocks}):Object(i.cloneBlock)(d,{className:a})})))}}):Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.IconButton,{disabled:!0,className:"editor-block-switcher__no-switcher-icon block-editor-block-switcher__no-switcher-icon",label:Object(H.__)("Block icon"),icon:Object(u.createElement)(be,{icon:s,showColors:!0})}))}}]),t}(u.Component),Cc=Object(b.compose)(Object(m.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.getBlockRootClientId,c=r.getInserterItems,a=e("core/blocks").getBlockStyles,l=i(Object(p.first)(Object(p.castArray)(n))),s=o(n),u=s&&1===s.length?s[0]:null,d=u&&a(u.name);return{blocks:s,inserterItems:c(l),hasBlockStyles:d&&d.length>0}})),Object(m.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(i.switchToBlockType)(n,r))}}})))(Sc);var Ec=Object(m.withSelect)((function(e){var t=e("core/block-editor").getMultiSelectedBlockClientIds();return{isMultiBlockSelection:t.length>1,selectedBlockClientIds:t}}))((function(e){var t=e.isMultiBlockSelection,n=e.selectedBlockClientIds;return t?Object(u.createElement)(Cc,{key:"switcher",clientIds:n}):null}));var wc=Object(m.withSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockMode,r=t.getSelectedBlockClientIds,o=t.isBlockValid,i=r();return{blockClientIds:i,isValid:1===i.length?o(i[0]):null,mode:1===i.length?n(i[0]):null}}))((function(e){var t=e.blockClientIds,n=e.isValid,r=e.mode;return 0===t.length?null:t.length>1?Object(u.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},Object(u.createElement)(Ec,null),Object(u.createElement)(_c,{clientIds:t})):Object(u.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},"visual"===r&&n&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Cc,{clientIds:t}),Object(u.createElement)(oe.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(u.createElement)(pe.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(u.createElement)(_c,{clientIds:t}))}));var Ic=Object(b.compose)([Object(m.withDispatch)((function(e,t,n){var r=(0,n.select)("core/block-editor"),o=r.getBlocksByClientId,c=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=e("core/block-editor").removeBlocks,s=function(e){var t=c();if(0!==t.length&&(a()||!Object(xr.documentHasSelection)())){var n=Object(i.serialize)(o(t));e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/html",n),e.preventDefault()}};return{onCopy:s,onCut:function(e){if(s(e),a()){var t=c();l(t)}}}}))])((function(e){var t=e.children,n=e.onCopy,r=e.onCut;return Object(u.createElement)("div",{onCopy:n,onCut:r},t)})),Bc=function(e){function t(){return Object(j.a)(this,t),Object(S.a)(this,Object(C.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(){this.scrollIntoView()}},{key:"scrollIntoView",value:function(){var e=this.props.extentClientId;if(e){var t=po(e);if(t){var n=Object(xr.getScrollContainer)(t);n&&xe()(t,n,{onlyScrollIfNeeded:!0})}}}},{key:"render",value:function(){return null}}]),t}(u.Component),Tc=Object(m.withSelect)((function(e){return{extentClientId:(0,e("core/block-editor").getLastMultiSelectedBlockClientId)()}}))(Bc),xc=[he.UP,he.RIGHT,he.DOWN,he.LEFT,he.ENTER,he.BACKSPACE];var Lc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(Object(E.a)(e)),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(Object(E.a)(e)),e.startTypingInTextField=e.startTypingInTextField.bind(Object(E.a)(e)),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(Object(E.a)(e)),e.stopTypingOnEscapeKey=e.stopTypingOnEscapeKey.bind(Object(E.a)(e)),e.onKeyDown=Object(p.over)([e.startTypingInTextField,e.stopTypingOnEscapeKey]),e.lastMouseMove=null,e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){this.toggleEventBindings(this.props.isTyping)}},{key:"componentDidUpdate",value:function(e){this.props.isTyping!==e.isTyping&&this.toggleEventBindings(this.props.isTyping)}},{key:"componentWillUnmount",value:function(){this.toggleEventBindings(!1)}},{key:"toggleEventBindings",value:function(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",this.stopTypingOnSelectionUncollapse),document[t]("mousemove",this.stopTypingOnMouseMove)}},{key:"stopTypingOnMouseMove",value:function(e){var t=e.clientX,n=e.clientY;if(this.lastMouseMove){var r=this.lastMouseMove,o=r.clientX,i=r.clientY;o===t&&i===n||this.props.onStopTyping()}this.lastMouseMove={clientX:t,clientY:n}}},{key:"stopTypingOnSelectionUncollapse",value:function(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||this.props.onStopTyping()}},{key:"stopTypingOnEscapeKey",value:function(e){this.props.isTyping&&e.keyCode===he.ESCAPE&&this.props.onStopTyping()}},{key:"startTypingInTextField",value:function(e){var t=this.props,n=t.isTyping,r=t.onStartTyping,o=e.type,i=e.target;n||!Object(xr.isTextField)(i)||i.closest(".block-editor-block-toolbar")||("keydown"!==o||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(xc,t)}(e))&&r()}},{key:"stopTypingOnNonTextField",value:function(e){var t=this;e.persist(),this.props.setTimeout((function(){var n=t.props,r=n.isTyping,o=n.onStopTyping,i=e.target;r&&!Object(xr.isTextField)(i)&&o()}))}},{key:"render",value:function(){var e=this.props.children;return Object(u.createElement)("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.onKeyDown},e)}}]),t}(u.Component),Nc=Object(b.compose)([Object(m.withSelect)((function(e){return{isTyping:(0,e("core/block-editor").isTyping)()}})),Object(m.withDispatch)((function(e){var t=e("core/block-editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}})),b.withSafeTimeout])(Lc);function Ac(){return Ni()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}var Mc=-1!==window.navigator.userAgent.indexOf("Trident"),Rc=new Set([he.UP,he.DOWN,he.LEFT,he.RIGHT]),Pc=function(e){function t(){var e;return Object(j.a)(this,t),(e=Object(S.a)(this,Object(C.a)(t).apply(this,arguments))).ref=Object(u.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(E.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(E.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(E.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(E.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(E.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(E.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(E.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(xr.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(xr.computeCaretRect)();if(n)if(this.caretRect)if(Rc.has(t))this.caretRect=n;else{var r=n.y-this.caretRect.y;if(0!==r){var o=Object(xr.getScrollContainer)(this.ref.current);if(o){var i=o===document.body,c=i?window.scrollY:o.scrollTop,a=i?0:o.getBoundingClientRect().y,l=i?this.caretRect.y/window.innerHeight:(this.caretRect.y-a)/(window.innerHeight-a);if(0===c&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=i?window.innerHeight:o.clientHeight;this.caretRect.y+this.caretRect.height>a+s||this.caretRect.y1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?Wc:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(qc)):t}var $c=Object(b.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Gc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0));return[r.length>0&&t.isSelected&&Object(u.createElement)(oe,{key:"align-controls"},Object(u.createElement)(Q,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(i.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:r})),Object(u.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),Yc=Object(b.createHigherOrderComponent)(Object(b.compose)([Object(m.withSelect)((function(e){return{hasWideEnabled:!!(0,e("core/block-editor").getSettings)().alignWide}})),function(e){return function(t){var n=t.name,r=t.attributes,o=t.hasWideEnabled,c=r.align,a=Gc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),o),d=t.wrapperProps;return Object(p.includes)(a,c)&&(d=Object(l.a)({},d,{"data-align":c})),Object(u.createElement)(e,Object(s.a)({},t,{wrapperProps:d}))}}]));Object(h.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])?e:(Object(i.hasBlockSupport)(e,"align")&&(e.attributes=Object(p.assign)(e.attributes,{align:{type:"string"}})),e)})),Object(h.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Yc),Object(h.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",$c),Object(h.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(i.getBlockSupport)(t,"align"),c=Object(i.hasBlockSupport)(t,"alignWide",!0);return Object(p.includes)(Gc(o,c),r)&&(e.className=f()("align".concat(r),e.className)),e}));var Xc=/[\s#]/g;var Zc=Object(b.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(ai,null,Object(u.createElement)(P.TextControl,{className:"html-anchor-control",label:Object(H.__)("HTML Anchor"),help:Object(u.createElement)(u.Fragment,null,Object(H.__)("Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(u.createElement)(P.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(H.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Xc,"-"),t.setAttributes({anchor:e})}}))):Object(u.createElement)(e,t)}}),"withInspectorControl");Object(h.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])?e:(Object(i.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(p.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e)})),Object(h.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Zc),Object(h.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var Jc=Object(b.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(ai,null,Object(u.createElement)(P.TextControl,{label:Object(H.__)("Additional CSS Class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(H.__)("Separate multiple classes with spaces.")}))):Object(u.createElement)(e,t)}}),"withInspectorControl");function Qc(e){e="
".concat(e,"
");var t=Object(i.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(h.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(i.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(p.assign)(e.attributes,{className:{type:"string"}})),e})),Object(h.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Jc),Object(h.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=f()(e.className,n.className)),e})),Object(h.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(i.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(i.getSaveContent)(t,r),c=Qc(o),a=Qc(n),l=Object(p.difference)(a,c);l.length?e.className=l.join(" "):o&&delete e.className}return e})),Object(h.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(i.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(p.uniq)([Object(i.getBlockDefaultClassName)(t.name)].concat(Object(Be.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e}));var ea=n(197),ta=n.n(ea),na=n(31),ra=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oa=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new c(e),p(),t}}function c(e){this.start=e,this.end={line:n,column:r},this.source=t.source}c.prototype.content=e;var a=[];function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;a.push(i)}function s(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){var t,n=[];for(p(),b(n);e.length&&"}"!==e.charAt(0)&&(t=C()||E());)!1!==t&&(n.push(t),b(n));return n}function f(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function p(){f(/^\s*/)}function b(e){var t;for(e=e||[];t=h();)!1!==t&&e.push(t);return e}function h(){var t=i();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var c=e.slice(2,n-2);return r+=2,o(c),e=e.slice(n),r+=2,t({type:"comment",comment:c})}}function m(){var e=f(/^([^{]+)/);if(e)return ia(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function v(){var e=i(),t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=ia(t[0]),!f(/^:\s*/))return l("property missing ':'");var n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(ra,""),value:n?ia(n[0]).replace(ra,""):""});return f(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(b(t);e=v();)!1!==e&&(t.push(e),b(t));return u()?t:l("missing '}'")}function O(){for(var e,t=[],n=i();e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var k,y=S("import"),j=S("charset"),_=S("namespace");function S(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=f(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function C(){if("@"===e[0])return function(){var e=i(),t=f(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=f(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var c=b();r=O();)c.push(r),c=c.concat(b());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):l("@keyframes missing '}'")}}()||function(){var e=i(),t=f(/^@media *([^{]+)/);if(t){var n=ia(t[1]);if(!s())return l("@media missing '{'");var r=b().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=i(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:ia(t[1]),media:ia(t[2])})}()||function(){var e=i(),t=f(/^@supports *([^{]+)/);if(t){var n=ia(t[1]);if(!s())return l("@supports missing '{'");var r=b().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||y()||j()||_()||function(){var e=i(),t=f(/^@([-\w]+)?document *([^{]+)/);if(t){var n=ia(t[1]),r=ia(t[2]);if(!s())return l("@document missing '{'");var o=b().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=i();if(f(/^@page */)){var t=m()||[];if(!s())return l("@page missing '{'");for(var n,r=b();n=v();)r.push(n),r=r.concat(b());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=i();if(f(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=b().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=i();if(f(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=b();t=v();)n.push(t),n=n.concat(b());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function E(){var e=i(),t=m();return t?(b(),e({type:"rule",selectors:t,declarations:g()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type;var o=r?t:n;for(var i in t){var c=t[i];Array.isArray(c)?c.forEach((function(t){e(t,o)})):c&&"object"===Object(na.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((k=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:k,parsingErrors:a}}))};function ia(e){return e?e.replace(/^\s+|\s+$/g,""):""}var ca=n(106),aa=n.n(ca),la=sa;function sa(e){this.options=e||{}}sa.prototype.emit=function(e){return e},sa.prototype.visit=function(e){return this[e.type](e)},sa.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Object(l.a)({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(ka)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},ja=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(ya(t)),r&&o.push(Oa(r)),o.length?ha(n,Object(b.compose)(o)):n}))};n.d(t,"AlignmentToolbar",(function(){return V})),n.d(t,"Autocomplete",(function(){return $})),n.d(t,"BlockAlignmentToolbar",(function(){return Q})),n.d(t,"BlockControls",(function(){return oe})),n.d(t,"BlockEdit",(function(){return le})),n.d(t,"BlockFormatControls",(function(){return pe})),n.d(t,"BlockIcon",(function(){return be})),n.d(t,"BlockNavigationDropdown",(function(){return Oe})),n.d(t,"__experimentalBlockNavigationList",(function(){return me})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Ce})),n.d(t,"ButtonBlockerAppender",(function(){return Ko})),n.d(t,"ColorPalette",(function(){return qo})),n.d(t,"ContrastChecker",(function(){return $o})),n.d(t,"InnerBlocks",(function(){return ni})),n.d(t,"InspectorAdvancedControls",(function(){return ai})),n.d(t,"InspectorControls",(function(){return fi})),n.d(t,"MediaPlaceholder",(function(){return _i})),n.d(t,"MediaUpload",(function(){return pi})),n.d(t,"MediaUploadCheck",(function(){return Ee})),n.d(t,"PanelColorSettings",(function(){return Bi})),n.d(t,"PlainText",(function(){return Ti})),n.d(t,"RichText",(function(){return qi})),n.d(t,"RichTextShortcut",(function(){return Fi})),n.d(t,"RichTextToolbarButton",(function(){return Hi})),n.d(t,"__unstableRichTextInputEvent",(function(){return Ui})),n.d(t,"URLInput",(function(){return vi})),n.d(t,"URLInputButton",(function(){return Gi})),n.d(t,"URLPopover",(function(){return Oi})),n.d(t,"withColorContext",(function(){return Wo})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Zi})),n.d(t,"__experimentalBlockSettingsMenuPluginsExtension",(function(){return tc})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Mo})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return cc})),n.d(t,"BlockInspector",(function(){return hc})),n.d(t,"BlockList",(function(){return Co})),n.d(t,"BlockMover",(function(){return Fr})),n.d(t,"BlockPreview",(function(){return wo})),n.d(t,"BlockSelectionClearer",(function(){return vc})),n.d(t,"BlockSettingsMenu",(function(){return _c})),n.d(t,"BlockTitle",(function(){return eo})),n.d(t,"BlockToolbar",(function(){return wc})),n.d(t,"CopyHandler",(function(){return Ic})),n.d(t,"DefaultBlockAppender",(function(){return jo})),n.d(t,"Inserter",(function(){return zo})),n.d(t,"MultiBlocksSwitcher",(function(){return Ec})),n.d(t,"MultiSelectScrollIntoView",(function(){return Tc})),n.d(t,"NavigableToolbar",(function(){return no})),n.d(t,"ObserveTyping",(function(){return Nc})),n.d(t,"PreserveScrollInReorder",(function(){return Ac})),n.d(t,"SkipToSelectedBlock",(function(){return ac})),n.d(t,"Typewriter",(function(){return Dc})),n.d(t,"Warning",(function(){return Hr})),n.d(t,"WritingFlow",(function(){return Kc})),n.d(t,"BlockEditorProvider",(function(){return Ir})),n.d(t,"getColorClassName",(function(){return y})),n.d(t,"getColorObjectByAttributeValues",(function(){return O})),n.d(t,"getColorObjectByColorValue",(function(){return k})),n.d(t,"createCustomColorsHOC",(function(){return N})),n.d(t,"withColors",(function(){return A})),n.d(t,"getFontSize",(function(){return M})),n.d(t,"getFontSizeClass",(function(){return R})),n.d(t,"FontSizePicker",(function(){return D})),n.d(t,"withFontSizes",(function(){return F})),n.d(t,"transformStyles",(function(){return ja})),n.d(t,"storeConfig",(function(){return Sr})),n.d(t,"SETTINGS_DEFAULTS",(function(){return Re}))},34:function(e,t,n){e.exports=n(84)()},35:function(e,t){!function(){e.exports=this.wp.blob}()},36:function(e,t,n){"use strict";var r,o;function i(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=r.call(c,"catchLoc"),s=r.call(c,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},48:function(e,t,n){var r;!function(o){var i=/^\s+/,c=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,l=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(c,"").toLowerCase();var t,n=!1;if(T[e])e=T[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=z.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=z.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=z.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=z.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=z.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=z.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=z.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=z.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:n?"name":"hex"};if(t=z.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=z.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(K(e.r)&&K(e.g)&&K(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*N(p,255),g:255*N(b,255),b:255*N(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):K(e.h)&&K(e.s)&&K(e.v)?(r=P(e.s),a=P(e.v),t=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=o.floor(e),i=e-r,c=n*(1-t),a=n*(1-i*t),l=n*(1-(1-i)*t),s=r%6;return{r:255*[n,a,c,c,l,n][s],g:255*[l,n,n,a,c,c][s],b:255*[c,c,l,n,n,a][s]}}(e.h,r,a),d=!0,f="hsv"):K(e.h)&&K(e.s)&&K(e.l)&&(r=P(e.s),l=P(e.l),t=function(e,t,n){var r,o,i;function c(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=i=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=c(l,a,e+1/3),o=c(l,a,e),i=c(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,l),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=L(n),{ok:d,format:e.format||f,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,i=u(e,t,n),c=s(e,t,n),a=(i+c)/2;if(i==c)r=o=0;else{var l=i-c;switch(o=a>.5?l/(2-i-c):l/(i+c),i){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function B(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,c=[],a=1/t;t--;)c.push(f({h:r,s:o,v:i})),i=(i+a)%1;return c}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=L(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=b(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16)),R(D(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:P(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),i=n/100;return f({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,i=f.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},f.mostReadable=function(e,t,n){var r,o,i,c,a=null,l=0;o=(n=n||{}).includeFallbackColors,i=n.level,c=n.size;for(var s=0;sl&&(l=r,a=f(t[s]));return f.isReadable(e,a,{level:i,size:c})||!o?a:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var T=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(T);function L(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return s(1,u(0,e))}function M(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function D(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return M(e)/255}var H,U,V,z=(U="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",V="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function K(e){return!!z.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},5:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},52:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},59:function(e,t,n){"use strict";t.__esModule=!0;var r=n(109);t.default=r.default},60:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(113)),i=r(n(114)),c=n(28),a=r(c),l=r(n(115)),s=r(n(116)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=c.useState(!1)[1];return c.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return u.und(e)||u.nul(e)?t:e}function p(e){return u.und(e)?[]:u.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var c=i,a=!1,l=0;l=p.startTime+s.duration;else if(s.decay)m=b+O/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(u=Math.abs(p.lastPosition-m)<.1)&&(h=m);else{d=void 0!==p.lastTime?p.lastTime:t,O=void 0!==p.lastVelocity?p.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var k=Math.floor(t-d),y=0;yh:m=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,c,a,l){var s=l?l(e):e;if(sn){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],l,c,a,r.map)}}var H=function(e){function t(n,r,o,i){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof O&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(r,o,i),c}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(O);var U=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new H(this,e,t,n)},t}(g),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new U(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new H(this,e,t)},t}(O),z=0,K=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=z++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,c=t.to,a=i(t,["delay","to"]);if(u.arr(c)||u.fun(c))this.queue.push(o({},a,{delay:r,to:c}));else if(c){var l={};Object.entries(c).forEach((function(e){var t,n=e[0],i=e[1],c=o({to:(t={},t[n]=i,t),delay:b(r,n)},a),s=l[c.delay]&&l[c.delay].to;l[c.delay]=o({},l[c.delay],c,{to:o({},s,c.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,c=void 0===i?{}:i;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(c)&&(n.merged=o({},n.merged,c))}));var r=this.local=++this.guid,c=this.localQueue=this.queue;this.queue=[],c.forEach((function(t,o){var a=t.delay,l=i(t,["delay"]),s=function(t){o===c.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,P.has(t)||P.add(t),R||(R=!0,S(x||D));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,P.has(t)&&P.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),c=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,i=o({},r,h(r.to[t]));u.arr(i.config)&&(i.config=i.config[t]),a=a.then((function(){if(c===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},s=0;s=r.length)return"break";c=r[i++]}else{if((i=r.next()).done)return"break";c=i.value}var n=c.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var c;if("break"===n())break}e.current.forceUpdate()}var Q=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=m.transform(t)),n.payload=t,n}return l(t,e),t}(k),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},te="[-+]?\\d*\\.?\\d+",ne=te+"%";function re(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=fe(o,r,e+1/3),c=fe(o,r,e),a=fe(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*c)<<16|Math.round(255*a)<<8}function be(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function he(e){return(parseFloat(e)%360+360)%360/360}function me(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ve(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ge(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ue.exec(t))?parseInt(n[1]+"ff",16)>>>0:ee.hasOwnProperty(t)?ee[t]:(n=oe.exec(t))?(be(n[1])<<24|be(n[2])<<16|be(n[3])<<8|255)>>>0:(n=ie.exec(t))?(be(n[1])<<24|be(n[2])<<16|be(n[3])<<8|me(n[4]))>>>0:(n=le.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=de.exec(t))?parseInt(n[1],16)>>>0:(n=se.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ce.exec(t))?(255|pe(he(n[1]),ve(n[2]),ve(n[3])))>>>0:(n=ae.exec(t))?(pe(he(n[1]),ve(n[2]),ve(n[3]))|me(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var Oe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ke=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ye=new RegExp("("+Object.keys(ee).join("|")+")","g"),je={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_e=["Webkit","Ms","Moz","O"];function Se(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||je.hasOwnProperty(e)&&je[e]?(""+t).trim():t+"px"}je=Object.keys(je).reduce((function(e,t){return _e.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),je);var Ce={};N((function(e){return new Q(e)})),B("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ke,ge)})).map((function(e){return e.replace(ye,ge)})),n=t[0].match(Oe).map((function(){return[]}));t.forEach((function(e){e.match(Oe).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(Oe).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(Oe,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),j(ee),y((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,c=t.scrollLeft,a=i(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==c&&(e.scrollLeft=c),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=Se(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var f in a){var p=l?f:Ce[f]||(Ce[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,a[f])}}),(function(e){return e}));var Ee,we,Ie=(Ee=function(e){return c.forwardRef((function(t,n){var r=d(),l=c.useRef(!0),s=c.useRef(null),f=c.useRef(null),p=c.useCallback((function(e){var t=s.current;s.current=new M(e,(function(){var e=!1;f.current&&(e=m.fn(f.current,s.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),c.useImperativeHandle(n,(function(){return L(f,l,r)})),p(t);var b,h=s.current.getValue(),v=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),g=(b=e,!u.fun(b)||b.prototype instanceof a.Component?function(e){return f.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},v,{ref:g}))}))},void 0===(we=!1)&&(we=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=we?t[0].toLowerCase()+t.substring(1):t;return e[n]=Ee(n),e}),Ee)}),Be=Ie(["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","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"]);t.apply=Ie,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=D,t.animated=Be,t.a=Be,t.interpolate=function(e,t,n){return e&&new H(e,t,n)},t.Globals=A,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=c.useRef(!1),r=u.fun(t),i=b(t),a=c.useRef(),l=W(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},i,{config:b(i.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],f=l[2],p=c.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,c=a.current[r];return o({},e,{config:b(e.config||i.config,t),attach:c&&function(){return c}})}))}}),[e,i.reverse]);return c.useEffect((function(){n.current&&!r&&p(t)})),c.useEffect((function(){n.current=!0}),[]),r?[s,p,f]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=Z(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),f=void 0!==u&&u,p=(a.enter,a.leave,a.update,a.onDestroyed),h=(a.keys,a.items,a.onFrame),m=a.onRest,v=a.onStart,g=a.ref,O=i(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),k=d(),y=c.useRef(!1),j=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!y.current&&new Map,forceUpdate:k});return c.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(j.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(j.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(j.current.instances).map((function(e){return e[1]}))}}})),j.current=function(e,t){var n=e.first,r=e.prevProps,c=i(e,["first","prevProps"]),a=Z(t),l=a.items,s=a.keys,u=a.initial,d=a.from,f=a.enter,p=a.leave,h=a.update,m=a.trail,v=void 0===m?0:m,g=a.unique,O=a.config,k=a.order,y=void 0===k?[G,$,Y]:k,j=Z(r),_=j.keys,S=j.items,C=o({},c.current),E=[].concat(c.deleted),w=Object.keys(C),I=new Set(w),B=new Set(s),T=s.filter((function(e){return!I.has(e)})),x=c.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),L=s.filter((function(e){return I.has(e)})),N=-v;for(;y.length;){switch(y.shift()){case G:T.forEach((function(e,t){g&&E.find((function(t){return t.originalKey===e}))&&(E=E.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],i=n&&void 0!==u?"initial":G;C[e]={slot:i,originalKey:e,key:g?String(e):q++,item:o,trail:N+=v,config:b(O,o,i),from:b(n&&void 0!==u?u||{}:d,o),to:b(f,o)}}));break;case $:x.forEach((function(e){var t=_.indexOf(e),n=S[t],r=$;E.unshift(o({},C[e],{slot:r,destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=v,config:b(O,n,r),to:b(p,n)})),delete C[e]}));break;case Y:L.forEach((function(e){var t=s.indexOf(e),n=l[t],r=Y;C[e]=o({},C[e],{item:n,slot:r,trail:N+=v,config:b(O,n,r),to:b(h,n)})}))}}var A=s.map((function(e){return C[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=A.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),A=[].concat(A.slice(0,t),[r],A.slice(t))})),o({},c,{changed:T.length||x.length||L.length,first:n&&0===T.length,transitions:A,current:C,deleted:E,prevProps:t})}(j.current,r),j.current.changed&&j.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,c=e.trail,a=e.key,l=e.item;j.current.instances.has(a)||j.current.instances.set(a,new K);var u=j.current.instances.get(a),d=o({},O,{to:r,from:n,config:i,ref:g,onRest:function(n){j.current.mounted&&(e.destroyed&&(g||s||J(j,a),p&&p(l)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&j.current.deleted.length>0&&J(j),m&&m(l,t,n))},onStart:v&&function(){return v(l,t)},onFrame:h&&function(e){return h(l,t,e)},delay:c,reset:f&&t===G});u.update(d),j.current.paused||u.start()})),c.useEffect((function(){return j.current.mounted=y.current=!0,function(){j.current.mounted=y.current=!1,Array.from(j.current.instances).map((function(e){return e[1].destroy()})),j.current.instances.clear()}}),[]),j.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:j.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=c.useRef();c.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var c=i.controllers;if(c.length){var a=n*t[r];c.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},61:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},65:function(e,t,n){"use strict";e.exports=n(107)},69:function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),d=["%","/","?",";","#"].concat(u),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(120);function O(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i127?N+="x":N+=L[A];if(!N.match(p)){var R=T.slice(0,w),P=T.slice(w+1),D=L.match(b);D&&(R.push(D[1]),P.unshift(D[2])),P.length&&(O="/"+P.join(".")+O),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+F,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!h[j])for(w=0,x=u.length;w0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=_.slice(-1)[0],E=(n.host||e.host||_.length>1)&&("."===C||".."===C)||""===C,w=0,I=_.length;I>=0;I--)"."===(C=_[I])?_.splice(I,1):".."===C?(_.splice(I,1),w++):w&&(_.splice(I,1),w--);if(!y&&!j)for(;w--;w)_.unshift("..");!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push("");var B,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);S&&(n.hostname=n.host=T?"":_.length?_.shift():"",(B=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.shift()));return(y=y||n.host&&_.length)&&!T&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},8:function(e,t){!function(){e.exports=this.wp.compose}()},84:function(e,t,n){"use strict";var r=n(85);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,c){if(c!==r){var a=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 a.name="Invariant Violation",a}}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}},85:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9:function(e,t){!function(){e.exports=this.wp.blocks}()},93:function(e,t){!function(){e.exports=this.wp.wordcount}()}}); \ No newline at end of file diff --git a/wp-includes/js/dist/block-library.js b/wp-includes/js/dist/block-library.js index 5c62f30ff4..d90faf6b61 100644 --- a/wp-includes/js/dist/block-library.js +++ b/wp-includes/js/dist/block-library.js @@ -82,100 +82,26 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockLibrary"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 282); +/******/ return __webpack_require__(__webpack_require__.s = 310); /******/ }) /************************************************************************/ -/******/ ([ -/* 0 */ +/******/ ({ + +/***/ 0: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["element"]; }()); /***/ }), -/* 1 */ + +/***/ 1: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["i18n"]; }()); /***/ }), -/* 2 */ -/***/ (function(module, exports) { -(function() { module.exports = this["lodash"]; }()); - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["components"]; }()); - -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["data"]; }()); - -/***/ }), -/* 5 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -/***/ }), -/* 6 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blockEditor"]; }()); - -/***/ }), -/* 7 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); -/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); - }); - } - - return target; -} - -/***/ }), -/* 8 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["compose"]; }()); - -/***/ }), -/* 9 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blocks"]; }()); - -/***/ }), -/* 10 */ +/***/ 10: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -196,7 +122,8 @@ function _defineProperty(obj, key, value) { } /***/ }), -/* 11 */ + +/***/ 11: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -218,7 +145,588 @@ function _createClass(Constructor, protoProps, staticProps) { } /***/ }), -/* 12 */ + +/***/ 117: +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathias */ +;(function(root) { + + /** Detect free variables */ + var freeExports = true && exports && + !exports.nodeType && exports; + var freeModule = true && module && + !module.nodeType && module; + var freeGlobal = typeof global == 'object' && global; + if ( + freeGlobal.global === freeGlobal || + freeGlobal.window === freeGlobal || + freeGlobal.self === freeGlobal + ) { + root = freeGlobal; + } + + /** + * The `punycode` object. + * @name punycode + * @type Object + */ + var punycode, + + /** Highest positive signed 32-bit float value */ + maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1 + + /** Bootstring parameters */ + base = 36, + tMin = 1, + tMax = 26, + skew = 38, + damp = 700, + initialBias = 72, + initialN = 128, // 0x80 + delimiter = '-', // '\x2D' + + /** Regular expressions */ + regexPunycode = /^xn--/, + regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars + regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators + + /** Error messages */ + errors = { + 'overflow': 'Overflow: input needs wider integers to process', + 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', + 'invalid-input': 'Invalid input' + }, + + /** Convenience shortcuts */ + baseMinusTMin = base - tMin, + floor = Math.floor, + stringFromCharCode = String.fromCharCode, + + /** Temporary variable */ + key; + + /*--------------------------------------------------------------------------*/ + + /** + * A generic error utility function. + * @private + * @param {String} type The error type. + * @returns {Error} Throws a `RangeError` with the applicable error message. + */ + function error(type) { + throw RangeError(errors[type]); + } + + /** + * A generic `Array#map` utility function. + * @private + * @param {Array} array The array to iterate over. + * @param {Function} callback The function that gets called for every array + * item. + * @returns {Array} A new array of values returned by the callback function. + */ + function map(array, fn) { + var length = array.length; + var result = []; + while (length--) { + result[length] = fn(array[length]); + } + return result; + } + + /** + * A simple `Array#map`-like wrapper to work with domain name strings or email + * addresses. + * @private + * @param {String} domain The domain name or email address. + * @param {Function} callback The function that gets called for every + * character. + * @returns {Array} A new string of characters returned by the callback + * function. + */ + function mapDomain(string, fn) { + var parts = string.split('@'); + var result = ''; + if (parts.length > 1) { + // In email addresses, only the domain name should be punycoded. Leave + // the local part (i.e. everything up to `@`) intact. + result = parts[0] + '@'; + string = parts[1]; + } + // Avoid `split(regex)` for IE8 compatibility. See #17. + string = string.replace(regexSeparators, '\x2E'); + var labels = string.split('.'); + var encoded = map(labels, fn).join('.'); + return result + encoded; + } + + /** + * Creates an array containing the numeric code points of each Unicode + * character in the string. While JavaScript uses UCS-2 internally, + * this function will convert a pair of surrogate halves (each of which + * UCS-2 exposes as separate characters) into a single code point, + * matching UTF-16. + * @see `punycode.ucs2.encode` + * @see + * @memberOf punycode.ucs2 + * @name decode + * @param {String} string The Unicode input string (UCS-2). + * @returns {Array} The new array of code points. + */ + function ucs2decode(string) { + var output = [], + counter = 0, + length = string.length, + value, + extra; + while (counter < length) { + value = string.charCodeAt(counter++); + if (value >= 0xD800 && value <= 0xDBFF && counter < length) { + // high surrogate, and there is a next character + extra = string.charCodeAt(counter++); + if ((extra & 0xFC00) == 0xDC00) { // low surrogate + output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); + } else { + // unmatched surrogate; only append this code unit, in case the next + // code unit is the high surrogate of a surrogate pair + output.push(value); + counter--; + } + } else { + output.push(value); + } + } + return output; + } + + /** + * Creates a string based on an array of numeric code points. + * @see `punycode.ucs2.decode` + * @memberOf punycode.ucs2 + * @name encode + * @param {Array} codePoints The array of numeric code points. + * @returns {String} The new Unicode string (UCS-2). + */ + function ucs2encode(array) { + return map(array, function(value) { + var output = ''; + if (value > 0xFFFF) { + value -= 0x10000; + output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); + value = 0xDC00 | value & 0x3FF; + } + output += stringFromCharCode(value); + return output; + }).join(''); + } + + /** + * Converts a basic code point into a digit/integer. + * @see `digitToBasic()` + * @private + * @param {Number} codePoint The basic numeric code point value. + * @returns {Number} The numeric value of a basic code point (for use in + * representing integers) in the range `0` to `base - 1`, or `base` if + * the code point does not represent a value. + */ + function basicToDigit(codePoint) { + if (codePoint - 48 < 10) { + return codePoint - 22; + } + if (codePoint - 65 < 26) { + return codePoint - 65; + } + if (codePoint - 97 < 26) { + return codePoint - 97; + } + return base; + } + + /** + * Converts a digit/integer into a basic code point. + * @see `basicToDigit()` + * @private + * @param {Number} digit The numeric value of a basic code point. + * @returns {Number} The basic code point whose value (when used for + * representing integers) is `digit`, which needs to be in the range + * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is + * used; else, the lowercase form is used. The behavior is undefined + * if `flag` is non-zero and `digit` has no uppercase form. + */ + function digitToBasic(digit, flag) { + // 0..25 map to ASCII a..z or A..Z + // 26..35 map to ASCII 0..9 + return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); + } + + /** + * Bias adaptation function as per section 3.4 of RFC 3492. + * http://tools.ietf.org/html/rfc3492#section-3.4 + * @private + */ + function adapt(delta, numPoints, firstTime) { + var k = 0; + delta = firstTime ? floor(delta / damp) : delta >> 1; + delta += floor(delta / numPoints); + for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { + delta = floor(delta / baseMinusTMin); + } + return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); + } + + /** + * Converts a Punycode string of ASCII-only symbols to a string of Unicode + * symbols. + * @memberOf punycode + * @param {String} input The Punycode string of ASCII-only symbols. + * @returns {String} The resulting string of Unicode symbols. + */ + function decode(input) { + // Don't use UCS-2 + var output = [], + inputLength = input.length, + out, + i = 0, + n = initialN, + bias = initialBias, + basic, + j, + index, + oldi, + w, + k, + digit, + t, + /** Cached calculation results */ + baseMinusT; + + // Handle the basic code points: let `basic` be the number of input code + // points before the last delimiter, or `0` if there is none, then copy + // the first basic code points to the output. + + basic = input.lastIndexOf(delimiter); + if (basic < 0) { + basic = 0; + } + + for (j = 0; j < basic; ++j) { + // if it's not a basic code point + if (input.charCodeAt(j) >= 0x80) { + error('not-basic'); + } + output.push(input.charCodeAt(j)); + } + + // Main decoding loop: start just after the last delimiter if any basic code + // points were copied; start at the beginning otherwise. + + for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { + + // `index` is the index of the next character to be consumed. + // Decode a generalized variable-length integer into `delta`, + // which gets added to `i`. The overflow checking is easier + // if we increase `i` as we go, then subtract off its starting + // value at the end to obtain `delta`. + for (oldi = i, w = 1, k = base; /* no condition */; k += base) { + + if (index >= inputLength) { + error('invalid-input'); + } + + digit = basicToDigit(input.charCodeAt(index++)); + + if (digit >= base || digit > floor((maxInt - i) / w)) { + error('overflow'); + } + + i += digit * w; + t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); + + if (digit < t) { + break; + } + + baseMinusT = base - t; + if (w > floor(maxInt / baseMinusT)) { + error('overflow'); + } + + w *= baseMinusT; + + } + + out = output.length + 1; + bias = adapt(i - oldi, out, oldi == 0); + + // `i` was supposed to wrap around from `out` to `0`, + // incrementing `n` each time, so we'll fix that now: + if (floor(i / out) > maxInt - n) { + error('overflow'); + } + + n += floor(i / out); + i %= out; + + // Insert `n` at position `i` of the output + output.splice(i++, 0, n); + + } + + return ucs2encode(output); + } + + /** + * Converts a string of Unicode symbols (e.g. a domain name label) to a + * Punycode string of ASCII-only symbols. + * @memberOf punycode + * @param {String} input The string of Unicode symbols. + * @returns {String} The resulting Punycode string of ASCII-only symbols. + */ + function encode(input) { + var n, + delta, + handledCPCount, + basicLength, + bias, + j, + m, + q, + k, + t, + currentValue, + output = [], + /** `inputLength` will hold the number of code points in `input`. */ + inputLength, + /** Cached calculation results */ + handledCPCountPlusOne, + baseMinusT, + qMinusT; + + // Convert the input in UCS-2 to Unicode + input = ucs2decode(input); + + // Cache the length + inputLength = input.length; + + // Initialize the state + n = initialN; + delta = 0; + bias = initialBias; + + // Handle the basic code points + for (j = 0; j < inputLength; ++j) { + currentValue = input[j]; + if (currentValue < 0x80) { + output.push(stringFromCharCode(currentValue)); + } + } + + handledCPCount = basicLength = output.length; + + // `handledCPCount` is the number of code points that have been handled; + // `basicLength` is the number of basic code points. + + // Finish the basic string - if it is not empty - with a delimiter + if (basicLength) { + output.push(delimiter); + } + + // Main encoding loop: + while (handledCPCount < inputLength) { + + // All non-basic code points < n have been handled already. Find the next + // larger one: + for (m = maxInt, j = 0; j < inputLength; ++j) { + currentValue = input[j]; + if (currentValue >= n && currentValue < m) { + m = currentValue; + } + } + + // Increase `delta` enough to advance the decoder's state to , + // but guard against overflow + handledCPCountPlusOne = handledCPCount + 1; + if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { + error('overflow'); + } + + delta += (m - n) * handledCPCountPlusOne; + n = m; + + for (j = 0; j < inputLength; ++j) { + currentValue = input[j]; + + if (currentValue < n && ++delta > maxInt) { + error('overflow'); + } + + if (currentValue == n) { + // Represent delta as a generalized variable-length integer + for (q = delta, k = base; /* no condition */; k += base) { + t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); + if (q < t) { + break; + } + qMinusT = q - t; + baseMinusT = base - t; + output.push( + stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) + ); + q = floor(qMinusT / baseMinusT); + } + + output.push(stringFromCharCode(digitToBasic(q, 0))); + bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); + delta = 0; + ++handledCPCount; + } + } + + ++delta; + ++n; + + } + return output.join(''); + } + + /** + * Converts a Punycode string representing a domain name or an email address + * to Unicode. Only the Punycoded parts of the input will be converted, i.e. + * it doesn't matter if you call it on a string that has already been + * converted to Unicode. + * @memberOf punycode + * @param {String} input The Punycoded domain name or email address to + * convert to Unicode. + * @returns {String} The Unicode representation of the given Punycode + * string. + */ + function toUnicode(input) { + return mapDomain(input, function(string) { + return regexPunycode.test(string) + ? decode(string.slice(4).toLowerCase()) + : string; + }); + } + + /** + * Converts a Unicode string representing a domain name or an email address to + * Punycode. Only the non-ASCII parts of the domain name will be converted, + * i.e. it doesn't matter if you call it with a domain that's already in + * ASCII. + * @memberOf punycode + * @param {String} input The domain name or email address to convert, as a + * Unicode string. + * @returns {String} The Punycode representation of the given domain name or + * email address. + */ + function toASCII(input) { + return mapDomain(input, function(string) { + return regexNonASCII.test(string) + ? 'xn--' + encode(string) + : string; + }); + } + + /*--------------------------------------------------------------------------*/ + + /** Define the public API */ + punycode = { + /** + * A string representing the current Punycode.js version number. + * @memberOf punycode + * @type String + */ + 'version': '1.3.2', + /** + * An object of methods to convert from JavaScript's internal character + * representation (UCS-2) to Unicode code points, and back. + * @see + * @memberOf punycode + * @type Object + */ + 'ucs2': { + 'decode': ucs2decode, + 'encode': ucs2encode + }, + 'decode': decode, + 'encode': encode, + 'toASCII': toASCII, + 'toUnicode': toUnicode + }; + + /** Expose `punycode` */ + // Some AMD build optimizers, like r.js, check for specific condition patterns + // like the following: + if ( + true + ) { + !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { + return punycode; + }).call(exports, __webpack_require__, exports, module), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} + +}(this)); + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(118)(module), __webpack_require__(61))) + +/***/ }), + +/***/ 118: +/***/ (function(module, exports) { + +module.exports = function(module) { + if (!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + if (!module.children) module.children = []; + Object.defineProperty(module, "loaded", { + enumerable: true, + get: function() { + return module.l; + } + }); + Object.defineProperty(module, "id", { + enumerable: true, + get: function() { + return module.i; + } + }); + module.webpackPolyfill = 1; + } + return module; +}; + + +/***/ }), + +/***/ 119: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +module.exports = { + isString: function(arg) { + return typeof(arg) === 'string'; + }, + isObject: function(arg) { + return typeof(arg) === 'object' && arg !== null; + }, + isNull: function(arg) { + return arg === null; + }, + isNullOrUndefined: function(arg) { + return arg == null; + } +}; + + +/***/ }), + +/***/ 12: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -230,7 +738,205 @@ function _classCallCheck(instance, Constructor) { } /***/ }), -/* 13 */ + +/***/ 120: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.decode = exports.parse = __webpack_require__(121); +exports.encode = exports.stringify = __webpack_require__(122); + + +/***/ }), + +/***/ 121: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +// If obj.hasOwnProperty has been overridden, then calling +// obj.hasOwnProperty(prop) will break. +// See: https://github.com/joyent/node/issues/1707 +function hasOwnProperty(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); +} + +module.exports = function(qs, sep, eq, options) { + sep = sep || '&'; + eq = eq || '='; + var obj = {}; + + if (typeof qs !== 'string' || qs.length === 0) { + return obj; + } + + var regexp = /\+/g; + qs = qs.split(sep); + + var maxKeys = 1000; + if (options && typeof options.maxKeys === 'number') { + maxKeys = options.maxKeys; + } + + var len = qs.length; + // maxKeys <= 0 means that we should not limit keys count + if (maxKeys > 0 && len > maxKeys) { + len = maxKeys; + } + + for (var i = 0; i < len; ++i) { + var x = qs[i].replace(regexp, '%20'), + idx = x.indexOf(eq), + kstr, vstr, k, v; + + if (idx >= 0) { + kstr = x.substr(0, idx); + vstr = x.substr(idx + 1); + } else { + kstr = x; + vstr = ''; + } + + k = decodeURIComponent(kstr); + v = decodeURIComponent(vstr); + + if (!hasOwnProperty(obj, k)) { + obj[k] = v; + } else if (isArray(obj[k])) { + obj[k].push(v); + } else { + obj[k] = [obj[k], v]; + } + } + + return obj; +}; + +var isArray = Array.isArray || function (xs) { + return Object.prototype.toString.call(xs) === '[object Array]'; +}; + + +/***/ }), + +/***/ 122: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +var stringifyPrimitive = function(v) { + switch (typeof v) { + case 'string': + return v; + + case 'boolean': + return v ? 'true' : 'false'; + + case 'number': + return isFinite(v) ? v : ''; + + default: + return ''; + } +}; + +module.exports = function(obj, sep, eq, name) { + sep = sep || '&'; + eq = eq || '='; + if (obj === null) { + obj = undefined; + } + + if (typeof obj === 'object') { + return map(objectKeys(obj), function(k) { + var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; + if (isArray(obj[k])) { + return map(obj[k], function(v) { + return ks + encodeURIComponent(stringifyPrimitive(v)); + }).join(sep); + } else { + return ks + encodeURIComponent(stringifyPrimitive(obj[k])); + } + }).join(sep); + + } + + if (!name) return ''; + return encodeURIComponent(stringifyPrimitive(name)) + eq + + encodeURIComponent(stringifyPrimitive(obj)); +}; + +var isArray = Array.isArray || function (xs) { + return Object.prototype.toString.call(xs) === '[object Array]'; +}; + +function map (xs, f) { + if (xs.map) return xs.map(f); + var res = []; + for (var i = 0; i < xs.length; i++) { + res.push(f(xs[i], i)); + } + return res; +} + +var objectKeys = Object.keys || function (obj) { + var res = []; + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key); + } + return res; +}; + + +/***/ }), + +/***/ 13: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -248,7 +954,8 @@ function _possibleConstructorReturn(self, call) { } /***/ }), -/* 14 */ + +/***/ 14: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -261,7 +968,8 @@ function _getPrototypeOf(o) { } /***/ }), -/* 15 */ + +/***/ 15: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -294,7 +1002,8 @@ function _inherits(subClass, superClass) { } /***/ }), -/* 16 */ + +/***/ 16: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -351,7 +1060,8 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), -/* 17 */ + +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -383,7 +1093,8 @@ function _toConsumableArray(arr) { } /***/ }), -/* 18 */ + +/***/ 18: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -407,14 +1118,477 @@ function _extends() { } /***/ }), -/* 19 */ + +/***/ 19: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["keycodes"]; }()); /***/ }), -/* 20 */, -/* 21 */ + +/***/ 198: +/***/ (function(module, exports, __webpack_require__) { + +/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */ +(function (global, factory) { + true ? module.exports = factory() : + undefined; +}(this, (function () { 'use strict'; + +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +function _slicedToArray(arr, i) { + return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); +} + +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + +function _iterableToArrayLimit(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; +} + +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); +} + +var FastAverageColor = +/*#__PURE__*/ +function () { + function FastAverageColor() { + _classCallCheck(this, FastAverageColor); + } + + _createClass(FastAverageColor, [{ + key: "getColorAsync", + + /** + * Get asynchronously the average color from not loaded image. + * + * @param {HTMLImageElement} resource + * @param {Function} callback + * @param {Object|null} [options] + * @param {Array} [options.defaultColor=[255, 255, 255, 255]] + * @param {*} [options.data] + * @param {string} [options.mode="speed"] "precision" or "speed" + * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant" + * @param {number} [options.step=1] + * @param {number} [options.left=0] + * @param {number} [options.top=0] + * @param {number} [options.width=width of resource] + * @param {number} [options.height=height of resource] + */ + value: function getColorAsync(resource, callback, options) { + if (resource.complete) { + callback.call(resource, this.getColor(resource, options), options && options.data); + } else { + this._bindImageEvents(resource, callback, options); + } + } + /** + * Get the average color from images, videos and canvas. + * + * @param {HTMLImageElement|HTMLVideoElement|HTMLCanvasElement} resource + * @param {Object|null} [options] + * @param {Array} [options.defaultColor=[255, 255, 255, 255]] + * @param {*} [options.data] + * @param {string} [options.mode="speed"] "precision" or "speed" + * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant" + * @param {number} [options.step=1] + * @param {number} [options.left=0] + * @param {number} [options.top=0] + * @param {number} [options.width=width of resource] + * @param {number} [options.height=height of resource] + * + * @returns {Object} + */ + + }, { + key: "getColor", + value: function getColor(resource, options) { + options = options || {}; + + var defaultColor = this._getDefaultColor(options), + originalSize = this._getOriginalSize(resource), + size = this._prepareSizeAndPosition(originalSize, options); + + var error = null, + value = defaultColor; + + if (!size.srcWidth || !size.srcHeight || !size.destWidth || !size.destHeight) { + return this._prepareResult(defaultColor, new Error('FastAverageColor: Incorrect sizes.')); + } + + if (!this._ctx) { + this._canvas = this._makeCanvas(); + this._ctx = this._canvas.getContext && this._canvas.getContext('2d'); + + if (!this._ctx) { + return this._prepareResult(defaultColor, new Error('FastAverageColor: Canvas Context 2D is not supported in this browser.')); + } + } + + this._canvas.width = size.destWidth; + this._canvas.height = size.destHeight; + + try { + this._ctx.clearRect(0, 0, size.destWidth, size.destHeight); + + this._ctx.drawImage(resource, size.srcLeft, size.srcTop, size.srcWidth, size.srcHeight, 0, 0, size.destWidth, size.destHeight); + + var bitmapData = this._ctx.getImageData(0, 0, size.destWidth, size.destHeight).data; + + value = this.getColorFromArray4(bitmapData, options); + } catch (e) { + // Security error, CORS + // https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image + error = e; + } + + return this._prepareResult(value, error); + } + /** + * Get the average color from a array when 1 pixel is 4 bytes. + * + * @param {Array|Uint8Array} arr + * @param {Object} [options] + * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant" + * @param {Array} [options.defaultColor=[255, 255, 255, 255]] + * @param {number} [options.step=1] + * + * @returns {Array} [red (0-255), green (0-255), blue (0-255), alpha (0-255)] + */ + + }, { + key: "getColorFromArray4", + value: function getColorFromArray4(arr, options) { + options = options || {}; + var bytesPerPixel = 4, + arrLength = arr.length; + + if (arrLength < bytesPerPixel) { + return this._getDefaultColor(options); + } + + var len = arrLength - arrLength % bytesPerPixel, + preparedStep = (options.step || 1) * bytesPerPixel, + algorithm = '_' + (options.algorithm || 'sqrt') + 'Algorithm'; + + if (typeof this[algorithm] !== 'function') { + throw new Error("FastAverageColor: ".concat(options.algorithm, " is unknown algorithm.")); + } + + return this[algorithm](arr, len, preparedStep); + } + /** + * Destroy the instance. + */ + + }, { + key: "destroy", + value: function destroy() { + delete this._canvas; + delete this._ctx; + } + }, { + key: "_getDefaultColor", + value: function _getDefaultColor(options) { + return this._getOption(options, 'defaultColor', [255, 255, 255, 255]); + } + }, { + key: "_getOption", + value: function _getOption(options, name, defaultValue) { + return typeof options[name] === 'undefined' ? defaultValue : options[name]; + } + }, { + key: "_prepareSizeAndPosition", + value: function _prepareSizeAndPosition(originalSize, options) { + var srcLeft = this._getOption(options, 'left', 0), + srcTop = this._getOption(options, 'top', 0), + srcWidth = this._getOption(options, 'width', originalSize.width), + srcHeight = this._getOption(options, 'height', originalSize.height), + destWidth = srcWidth, + destHeight = srcHeight; + + if (options.mode === 'precision') { + return { + srcLeft: srcLeft, + srcTop: srcTop, + srcWidth: srcWidth, + srcHeight: srcHeight, + destWidth: destWidth, + destHeight: destHeight + }; + } + + var maxSize = 100, + minSize = 10; + var factor; + + if (srcWidth > srcHeight) { + factor = srcWidth / srcHeight; + destWidth = maxSize; + destHeight = Math.round(destWidth / factor); + } else { + factor = srcHeight / srcWidth; + destHeight = maxSize; + destWidth = Math.round(destHeight / factor); + } + + if (destWidth > srcWidth || destHeight > srcHeight || destWidth < minSize || destHeight < minSize) { + destWidth = srcWidth; + destHeight = srcHeight; + } + + return { + srcLeft: srcLeft, + srcTop: srcTop, + srcWidth: srcWidth, + srcHeight: srcHeight, + destWidth: destWidth, + destHeight: destHeight + }; + } + }, { + key: "_simpleAlgorithm", + value: function _simpleAlgorithm(arr, len, preparedStep) { + var redTotal = 0, + greenTotal = 0, + blueTotal = 0, + alphaTotal = 0, + count = 0; + + for (var i = 0; i < len; i += preparedStep) { + var alpha = arr[i + 3], + red = arr[i] * alpha, + green = arr[i + 1] * alpha, + blue = arr[i + 2] * alpha; + redTotal += red; + greenTotal += green; + blueTotal += blue; + alphaTotal += alpha; + count++; + } + + return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0]; + } + }, { + key: "_sqrtAlgorithm", + value: function _sqrtAlgorithm(arr, len, preparedStep) { + var redTotal = 0, + greenTotal = 0, + blueTotal = 0, + alphaTotal = 0, + count = 0; + + for (var i = 0; i < len; i += preparedStep) { + var red = arr[i], + green = arr[i + 1], + blue = arr[i + 2], + alpha = arr[i + 3]; + redTotal += red * red * alpha; + greenTotal += green * green * alpha; + blueTotal += blue * blue * alpha; + alphaTotal += alpha; + count++; + } + + return alphaTotal ? [Math.round(Math.sqrt(redTotal / alphaTotal)), Math.round(Math.sqrt(greenTotal / alphaTotal)), Math.round(Math.sqrt(blueTotal / alphaTotal)), Math.round(alphaTotal / count)] : [0, 0, 0, 0]; + } + }, { + key: "_dominantAlgorithm", + value: function _dominantAlgorithm(arr, len, preparedStep) { + var colorHash = {}, + divider = 24; + + for (var i = 0; i < len; i += preparedStep) { + var red = arr[i], + green = arr[i + 1], + blue = arr[i + 2], + alpha = arr[i + 3], + key = Math.round(red / divider) + ',' + Math.round(green / divider) + ',' + Math.round(blue / divider); + + if (colorHash[key]) { + colorHash[key] = [colorHash[key][0] + red * alpha, colorHash[key][1] + green * alpha, colorHash[key][2] + blue * alpha, colorHash[key][3] + alpha, colorHash[key][4] + 1]; + } else { + colorHash[key] = [red * alpha, green * alpha, blue * alpha, alpha, 1]; + } + } + + var buffer = Object.keys(colorHash).map(function (key) { + return colorHash[key]; + }).sort(function (a, b) { + var countA = a[4], + countB = b[4]; + return countA > countB ? -1 : countA === countB ? 0 : 1; + }); + + var _buffer$ = _slicedToArray(buffer[0], 5), + redTotal = _buffer$[0], + greenTotal = _buffer$[1], + blueTotal = _buffer$[2], + alphaTotal = _buffer$[3], + count = _buffer$[4]; + + return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0]; + } + }, { + key: "_bindImageEvents", + value: function _bindImageEvents(resource, callback, options) { + var _this = this; + + options = options || {}; + + var data = options && options.data, + defaultColor = this._getDefaultColor(options), + onload = function onload() { + unbindEvents(); + callback.call(resource, _this.getColor(resource, options), data); + }, + onerror = function onerror() { + unbindEvents(); + callback.call(resource, _this._prepareResult(defaultColor, new Error('Image error')), data); + }, + onabort = function onabort() { + unbindEvents(); + callback.call(resource, _this._prepareResult(defaultColor, new Error('Image abort')), data); + }, + unbindEvents = function unbindEvents() { + resource.removeEventListener('load', onload); + resource.removeEventListener('error', onerror); + resource.removeEventListener('abort', onabort); + }; + + resource.addEventListener('load', onload); + resource.addEventListener('error', onerror); + resource.addEventListener('abort', onabort); + } + }, { + key: "_prepareResult", + value: function _prepareResult(value, error) { + var rgb = value.slice(0, 3), + rgba = [].concat(rgb, value[3] / 255), + isDark = this._isDark(value); + + return { + error: error, + value: value, + rgb: 'rgb(' + rgb.join(',') + ')', + rgba: 'rgba(' + rgba.join(',') + ')', + hex: this._arrayToHex(rgb), + hexa: this._arrayToHex(value), + isDark: isDark, + isLight: !isDark + }; + } + }, { + key: "_getOriginalSize", + value: function _getOriginalSize(resource) { + if (resource instanceof HTMLImageElement) { + return { + width: resource.naturalWidth, + height: resource.naturalHeight + }; + } + + if (resource instanceof HTMLVideoElement) { + return { + width: resource.videoWidth, + height: resource.videoHeight + }; + } + + return { + width: resource.width, + height: resource.height + }; + } + }, { + key: "_toHex", + value: function _toHex(num) { + var str = num.toString(16); + return str.length === 1 ? '0' + str : str; + } + }, { + key: "_arrayToHex", + value: function _arrayToHex(arr) { + return '#' + arr.map(this._toHex).join(''); + } + }, { + key: "_isDark", + value: function _isDark(color) { + // http://www.w3.org/TR/AERT#color-contrast + var result = (color[0] * 299 + color[1] * 587 + color[2] * 114) / 1000; + return result < 128; + } + }, { + key: "_makeCanvas", + value: function _makeCanvas() { + return typeof window === 'undefined' ? new OffscreenCanvas(1, 1) : document.createElement('canvas'); + } + }]); + + return FastAverageColor; +}(); + +return FastAverageColor; + +}))); + + +/***/ }), + +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); + +/***/ }), + +/***/ 21: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -457,13 +1631,15 @@ function _objectWithoutProperties(source, excluded) { } /***/ }), -/* 22 */ + +/***/ 22: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["richText"]; }()); /***/ }), -/* 23 */ + +/***/ 23: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -510,28 +1686,36 @@ function _slicedToArray(arr, i) { } /***/ }), -/* 24 */ + +/***/ 24: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["editor"]; }()); /***/ }), -/* 25 */, -/* 26 */ + +/***/ 26: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["url"]; }()); /***/ }), -/* 27 */, -/* 28 */, -/* 29 */ + +/***/ 29: /***/ (function(module, exports) { (function() { module.exports = this["moment"]; }()); /***/ }), -/* 30 */ + +/***/ 3: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["components"]; }()); + +/***/ }), + +/***/ 30: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -541,7 +1725,8 @@ function _iterableToArray(iter) { } /***/ }), -/* 31 */ + +/***/ 31: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -563,28 +1748,20731 @@ function _typeof(obj) { } /***/ }), -/* 32 */ + +/***/ 310: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +var paragraph_namespaceObject = {}; +__webpack_require__.r(paragraph_namespaceObject); +__webpack_require__.d(paragraph_namespaceObject, "metadata", function() { return paragraph_metadata; }); +__webpack_require__.d(paragraph_namespaceObject, "name", function() { return paragraph_name; }); +__webpack_require__.d(paragraph_namespaceObject, "settings", function() { return paragraph_settings; }); +var image_namespaceObject = {}; +__webpack_require__.r(image_namespaceObject); +__webpack_require__.d(image_namespaceObject, "metadata", function() { return image_metadata; }); +__webpack_require__.d(image_namespaceObject, "name", function() { return image_name; }); +__webpack_require__.d(image_namespaceObject, "settings", function() { return image_settings; }); +var heading_namespaceObject = {}; +__webpack_require__.r(heading_namespaceObject); +__webpack_require__.d(heading_namespaceObject, "metadata", function() { return heading_metadata; }); +__webpack_require__.d(heading_namespaceObject, "name", function() { return heading_name; }); +__webpack_require__.d(heading_namespaceObject, "settings", function() { return heading_settings; }); +var quote_namespaceObject = {}; +__webpack_require__.r(quote_namespaceObject); +__webpack_require__.d(quote_namespaceObject, "metadata", function() { return quote_metadata; }); +__webpack_require__.d(quote_namespaceObject, "name", function() { return quote_name; }); +__webpack_require__.d(quote_namespaceObject, "settings", function() { return quote_settings; }); +var gallery_namespaceObject = {}; +__webpack_require__.r(gallery_namespaceObject); +__webpack_require__.d(gallery_namespaceObject, "metadata", function() { return gallery_metadata; }); +__webpack_require__.d(gallery_namespaceObject, "name", function() { return gallery_name; }); +__webpack_require__.d(gallery_namespaceObject, "settings", function() { return gallery_settings; }); +var archives_namespaceObject = {}; +__webpack_require__.r(archives_namespaceObject); +__webpack_require__.d(archives_namespaceObject, "name", function() { return archives_name; }); +__webpack_require__.d(archives_namespaceObject, "settings", function() { return archives_settings; }); +var audio_namespaceObject = {}; +__webpack_require__.r(audio_namespaceObject); +__webpack_require__.d(audio_namespaceObject, "metadata", function() { return audio_metadata; }); +__webpack_require__.d(audio_namespaceObject, "name", function() { return audio_name; }); +__webpack_require__.d(audio_namespaceObject, "settings", function() { return audio_settings; }); +var button_namespaceObject = {}; +__webpack_require__.r(button_namespaceObject); +__webpack_require__.d(button_namespaceObject, "metadata", function() { return button_metadata; }); +__webpack_require__.d(button_namespaceObject, "name", function() { return button_name; }); +__webpack_require__.d(button_namespaceObject, "settings", function() { return button_settings; }); +var calendar_namespaceObject = {}; +__webpack_require__.r(calendar_namespaceObject); +__webpack_require__.d(calendar_namespaceObject, "name", function() { return calendar_name; }); +__webpack_require__.d(calendar_namespaceObject, "settings", function() { return calendar_settings; }); +var categories_namespaceObject = {}; +__webpack_require__.r(categories_namespaceObject); +__webpack_require__.d(categories_namespaceObject, "name", function() { return categories_name; }); +__webpack_require__.d(categories_namespaceObject, "settings", function() { return categories_settings; }); +var code_namespaceObject = {}; +__webpack_require__.r(code_namespaceObject); +__webpack_require__.d(code_namespaceObject, "metadata", function() { return code_metadata; }); +__webpack_require__.d(code_namespaceObject, "name", function() { return code_name; }); +__webpack_require__.d(code_namespaceObject, "settings", function() { return code_settings; }); +var columns_namespaceObject = {}; +__webpack_require__.r(columns_namespaceObject); +__webpack_require__.d(columns_namespaceObject, "metadata", function() { return columns_metadata; }); +__webpack_require__.d(columns_namespaceObject, "name", function() { return columns_name; }); +__webpack_require__.d(columns_namespaceObject, "settings", function() { return columns_settings; }); +var column_namespaceObject = {}; +__webpack_require__.r(column_namespaceObject); +__webpack_require__.d(column_namespaceObject, "metadata", function() { return column_metadata; }); +__webpack_require__.d(column_namespaceObject, "name", function() { return column_name; }); +__webpack_require__.d(column_namespaceObject, "settings", function() { return column_settings; }); +var cover_namespaceObject = {}; +__webpack_require__.r(cover_namespaceObject); +__webpack_require__.d(cover_namespaceObject, "metadata", function() { return cover_metadata; }); +__webpack_require__.d(cover_namespaceObject, "name", function() { return cover_name; }); +__webpack_require__.d(cover_namespaceObject, "settings", function() { return cover_settings; }); +var embed_namespaceObject = {}; +__webpack_require__.r(embed_namespaceObject); +__webpack_require__.d(embed_namespaceObject, "name", function() { return embed_name; }); +__webpack_require__.d(embed_namespaceObject, "settings", function() { return embed_settings; }); +__webpack_require__.d(embed_namespaceObject, "common", function() { return embed_common; }); +__webpack_require__.d(embed_namespaceObject, "others", function() { return embed_others; }); +var file_namespaceObject = {}; +__webpack_require__.r(file_namespaceObject); +__webpack_require__.d(file_namespaceObject, "metadata", function() { return file_metadata; }); +__webpack_require__.d(file_namespaceObject, "name", function() { return file_name; }); +__webpack_require__.d(file_namespaceObject, "settings", function() { return file_settings; }); +var html_namespaceObject = {}; +__webpack_require__.r(html_namespaceObject); +__webpack_require__.d(html_namespaceObject, "metadata", function() { return html_metadata; }); +__webpack_require__.d(html_namespaceObject, "name", function() { return html_name; }); +__webpack_require__.d(html_namespaceObject, "settings", function() { return html_settings; }); +var media_text_namespaceObject = {}; +__webpack_require__.r(media_text_namespaceObject); +__webpack_require__.d(media_text_namespaceObject, "metadata", function() { return media_text_metadata; }); +__webpack_require__.d(media_text_namespaceObject, "name", function() { return media_text_name; }); +__webpack_require__.d(media_text_namespaceObject, "settings", function() { return media_text_settings; }); +var latest_comments_namespaceObject = {}; +__webpack_require__.r(latest_comments_namespaceObject); +__webpack_require__.d(latest_comments_namespaceObject, "name", function() { return latest_comments_name; }); +__webpack_require__.d(latest_comments_namespaceObject, "settings", function() { return latest_comments_settings; }); +var latest_posts_namespaceObject = {}; +__webpack_require__.r(latest_posts_namespaceObject); +__webpack_require__.d(latest_posts_namespaceObject, "name", function() { return latest_posts_name; }); +__webpack_require__.d(latest_posts_namespaceObject, "settings", function() { return latest_posts_settings; }); +var list_namespaceObject = {}; +__webpack_require__.r(list_namespaceObject); +__webpack_require__.d(list_namespaceObject, "metadata", function() { return list_metadata; }); +__webpack_require__.d(list_namespaceObject, "name", function() { return list_name; }); +__webpack_require__.d(list_namespaceObject, "settings", function() { return list_settings; }); +var missing_namespaceObject = {}; +__webpack_require__.r(missing_namespaceObject); +__webpack_require__.d(missing_namespaceObject, "metadata", function() { return missing_metadata; }); +__webpack_require__.d(missing_namespaceObject, "name", function() { return missing_name; }); +__webpack_require__.d(missing_namespaceObject, "settings", function() { return missing_settings; }); +var more_namespaceObject = {}; +__webpack_require__.r(more_namespaceObject); +__webpack_require__.d(more_namespaceObject, "metadata", function() { return more_metadata; }); +__webpack_require__.d(more_namespaceObject, "name", function() { return more_name; }); +__webpack_require__.d(more_namespaceObject, "settings", function() { return more_settings; }); +var nextpage_namespaceObject = {}; +__webpack_require__.r(nextpage_namespaceObject); +__webpack_require__.d(nextpage_namespaceObject, "metadata", function() { return nextpage_metadata; }); +__webpack_require__.d(nextpage_namespaceObject, "name", function() { return nextpage_name; }); +__webpack_require__.d(nextpage_namespaceObject, "settings", function() { return nextpage_settings; }); +var preformatted_namespaceObject = {}; +__webpack_require__.r(preformatted_namespaceObject); +__webpack_require__.d(preformatted_namespaceObject, "metadata", function() { return preformatted_metadata; }); +__webpack_require__.d(preformatted_namespaceObject, "name", function() { return preformatted_name; }); +__webpack_require__.d(preformatted_namespaceObject, "settings", function() { return preformatted_settings; }); +var pullquote_namespaceObject = {}; +__webpack_require__.r(pullquote_namespaceObject); +__webpack_require__.d(pullquote_namespaceObject, "metadata", function() { return pullquote_metadata; }); +__webpack_require__.d(pullquote_namespaceObject, "name", function() { return pullquote_name; }); +__webpack_require__.d(pullquote_namespaceObject, "settings", function() { return pullquote_settings; }); +var block_namespaceObject = {}; +__webpack_require__.r(block_namespaceObject); +__webpack_require__.d(block_namespaceObject, "name", function() { return block_name; }); +__webpack_require__.d(block_namespaceObject, "settings", function() { return block_settings; }); +var rss_namespaceObject = {}; +__webpack_require__.r(rss_namespaceObject); +__webpack_require__.d(rss_namespaceObject, "name", function() { return rss_name; }); +__webpack_require__.d(rss_namespaceObject, "settings", function() { return rss_settings; }); +var search_namespaceObject = {}; +__webpack_require__.r(search_namespaceObject); +__webpack_require__.d(search_namespaceObject, "name", function() { return search_name; }); +__webpack_require__.d(search_namespaceObject, "settings", function() { return search_settings; }); +var group_namespaceObject = {}; +__webpack_require__.r(group_namespaceObject); +__webpack_require__.d(group_namespaceObject, "metadata", function() { return group_metadata; }); +__webpack_require__.d(group_namespaceObject, "name", function() { return group_name; }); +__webpack_require__.d(group_namespaceObject, "settings", function() { return group_settings; }); +var separator_namespaceObject = {}; +__webpack_require__.r(separator_namespaceObject); +__webpack_require__.d(separator_namespaceObject, "metadata", function() { return separator_metadata; }); +__webpack_require__.d(separator_namespaceObject, "name", function() { return separator_name; }); +__webpack_require__.d(separator_namespaceObject, "settings", function() { return separator_settings; }); +var shortcode_namespaceObject = {}; +__webpack_require__.r(shortcode_namespaceObject); +__webpack_require__.d(shortcode_namespaceObject, "name", function() { return shortcode_name; }); +__webpack_require__.d(shortcode_namespaceObject, "settings", function() { return shortcode_settings; }); +var spacer_namespaceObject = {}; +__webpack_require__.r(spacer_namespaceObject); +__webpack_require__.d(spacer_namespaceObject, "metadata", function() { return spacer_metadata; }); +__webpack_require__.d(spacer_namespaceObject, "name", function() { return spacer_name; }); +__webpack_require__.d(spacer_namespaceObject, "settings", function() { return spacer_settings; }); +var subhead_namespaceObject = {}; +__webpack_require__.r(subhead_namespaceObject); +__webpack_require__.d(subhead_namespaceObject, "metadata", function() { return subhead_metadata; }); +__webpack_require__.d(subhead_namespaceObject, "name", function() { return subhead_name; }); +__webpack_require__.d(subhead_namespaceObject, "settings", function() { return subhead_settings; }); +var table_namespaceObject = {}; +__webpack_require__.r(table_namespaceObject); +__webpack_require__.d(table_namespaceObject, "metadata", function() { return table_metadata; }); +__webpack_require__.d(table_namespaceObject, "name", function() { return table_name; }); +__webpack_require__.d(table_namespaceObject, "settings", function() { return table_settings; }); +var text_columns_namespaceObject = {}; +__webpack_require__.r(text_columns_namespaceObject); +__webpack_require__.d(text_columns_namespaceObject, "metadata", function() { return text_columns_metadata; }); +__webpack_require__.d(text_columns_namespaceObject, "name", function() { return text_columns_name; }); +__webpack_require__.d(text_columns_namespaceObject, "settings", function() { return text_columns_settings; }); +var verse_namespaceObject = {}; +__webpack_require__.r(verse_namespaceObject); +__webpack_require__.d(verse_namespaceObject, "metadata", function() { return verse_metadata; }); +__webpack_require__.d(verse_namespaceObject, "name", function() { return verse_name; }); +__webpack_require__.d(verse_namespaceObject, "settings", function() { return verse_settings; }); +var video_namespaceObject = {}; +__webpack_require__.r(video_namespaceObject); +__webpack_require__.d(video_namespaceObject, "metadata", function() { return video_metadata; }); +__webpack_require__.d(video_namespaceObject, "name", function() { return video_name; }); +__webpack_require__.d(video_namespaceObject, "settings", function() { return video_settings; }); +var tag_cloud_namespaceObject = {}; +__webpack_require__.r(tag_cloud_namespaceObject); +__webpack_require__.d(tag_cloud_namespaceObject, "name", function() { return tag_cloud_name; }); +__webpack_require__.d(tag_cloud_namespaceObject, "settings", function() { return tag_cloud_settings; }); +var classic_namespaceObject = {}; +__webpack_require__.r(classic_namespaceObject); +__webpack_require__.d(classic_namespaceObject, "metadata", function() { return classic_metadata; }); +__webpack_require__.d(classic_namespaceObject, "name", function() { return classic_name; }); +__webpack_require__.d(classic_namespaceObject, "settings", function() { return classic_settings; }); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(17); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(10); + +// EXTERNAL MODULE: external {"this":["wp","coreData"]} +var external_this_wp_coreData_ = __webpack_require__(86); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(6); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(24); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(9); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/deprecated.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +var deprecated_supports = { + className: false +}; +var deprecated_blockAttributes = { + align: { + type: 'string' + }, + content: { + type: 'string', + source: 'html', + selector: 'p', + default: '' + }, + dropCap: { + type: 'boolean', + default: false + }, + placeholder: { + type: 'string' + }, + textColor: { + type: 'string' + }, + customTextColor: { + type: 'string' + }, + backgroundColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + fontSize: { + type: 'string' + }, + customFontSize: { + type: 'number' + }, + direction: { + type: 'string', + enum: ['ltr', 'rtl'] + } +}; +var deprecated = [{ + supports: deprecated_supports, + attributes: deprecated_blockAttributes, + save: function save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var align = attributes.align, + content = attributes.content, + dropCap = attributes.dropCap, + backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + customBackgroundColor = attributes.customBackgroundColor, + customTextColor = attributes.customTextColor, + fontSize = attributes.fontSize, + customFontSize = attributes.customFontSize, + direction = attributes.direction; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize); + var className = classnames_default()((_classnames = { + 'has-text-color': textColor || customTextColor, + 'has-background': backgroundColor || customBackgroundColor, + 'has-drop-cap': dropCap + }, Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); + var styles = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor, + fontSize: fontSizeClass ? undefined : customFontSize, + textAlign: align + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + style: styles, + className: className ? className : undefined, + value: content, + dir: direction + }); + } +}, { + supports: deprecated_supports, + attributes: Object(objectSpread["a" /* default */])({}, deprecated_blockAttributes, { + width: { + type: 'string' + } + }), + save: function save(_ref2) { + var _classnames2; + + var attributes = _ref2.attributes; + var width = attributes.width, + align = attributes.align, + content = attributes.content, + dropCap = attributes.dropCap, + backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + customBackgroundColor = attributes.customBackgroundColor, + customTextColor = attributes.customTextColor, + fontSize = attributes.fontSize, + customFontSize = attributes.customFontSize; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var fontSizeClass = fontSize && "is-".concat(fontSize, "-text"); + var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames2, 'has-drop-cap', dropCap), Object(defineProperty["a" /* default */])(_classnames2, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2)); + var styles = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor, + fontSize: fontSizeClass ? undefined : customFontSize, + textAlign: align + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + style: styles, + className: className ? className : undefined, + value: content + }); + } +}, { + supports: deprecated_supports, + attributes: Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, deprecated_blockAttributes, { + fontSize: { + type: 'number' + } + }), 'customFontSize', 'customTextColor', 'customBackgroundColor'), + save: function save(_ref3) { + var _classnames3; + + var attributes = _ref3.attributes; + var width = attributes.width, + align = attributes.align, + content = attributes.content, + dropCap = attributes.dropCap, + backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + fontSize = attributes.fontSize; + var className = classnames_default()((_classnames3 = {}, Object(defineProperty["a" /* default */])(_classnames3, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames3, 'has-background', backgroundColor), Object(defineProperty["a" /* default */])(_classnames3, 'has-drop-cap', dropCap), _classnames3)); + var styles = { + backgroundColor: backgroundColor, + color: textColor, + fontSize: fontSize, + textAlign: align + }; + return Object(external_this_wp_element_["createElement"])("p", { + style: styles, + className: className ? className : undefined + }, content); + }, + migrate: function migrate(attributes) { + return Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, attributes, { + customFontSize: Object(external_lodash_["isFinite"])(attributes.fontSize) ? attributes.fontSize : undefined, + customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, + customBackgroundColor: attributes.backgroundColor && '#' === attributes.backgroundColor[0] ? attributes.backgroundColor : undefined + }), ['fontSize', 'textColor', 'backgroundColor']); + } +}, { + supports: deprecated_supports, + attributes: Object(objectSpread["a" /* default */])({}, deprecated_blockAttributes, { + content: { + type: 'string', + source: 'html', + default: '' + } + }), + save: function save(_ref4) { + var attributes = _ref4.attributes; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content); + }, + migrate: function migrate(attributes) { + return attributes; + } +}]; +/* harmony default export */ var paragraph_deprecated = (deprecated); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(18); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(14); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(5); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(15); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(4); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js + + + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +var _window = window, + getComputedStyle = _window.getComputedStyle; +var edit_name = 'core/paragraph'; +var applyFallbackStyles = Object(external_this_wp_components_["withFallbackStyles"])(function (node, ownProps) { + var _ownProps$attributes = ownProps.attributes, + textColor = _ownProps$attributes.textColor, + backgroundColor = _ownProps$attributes.backgroundColor, + fontSize = _ownProps$attributes.fontSize, + customFontSize = _ownProps$attributes.customFontSize; + var editableNode = node.querySelector('[contenteditable="true"]'); //verify if editableNode is available, before using getComputedStyle. + + var computedStyles = editableNode ? getComputedStyle(editableNode) : null; + return { + fallbackBackgroundColor: backgroundColor || !computedStyles ? undefined : computedStyles.backgroundColor, + fallbackTextColor: textColor || !computedStyles ? undefined : computedStyles.color, + fallbackFontSize: fontSize || customFontSize || !computedStyles ? undefined : parseInt(computedStyles.fontSize) || undefined + }; +}); + +var edit_ParagraphBlock = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ParagraphBlock, _Component); + + function ParagraphBlock() { + var _this; + + Object(classCallCheck["a" /* default */])(this, ParagraphBlock); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ParagraphBlock).apply(this, arguments)); + _this.toggleDropCap = _this.toggleDropCap.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(ParagraphBlock, [{ + key: "toggleDropCap", + value: function toggleDropCap() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes; + setAttributes({ + dropCap: !attributes.dropCap + }); + } + }, { + key: "getDropCapHelp", + value: function getDropCapHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('Showing large initial letter.') : Object(external_this_wp_i18n_["__"])('Toggle to show a large initial letter.'); + } + }, { + key: "render", + value: function render() { + var _classnames; + + var _this$props2 = this.props, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes, + mergeBlocks = _this$props2.mergeBlocks, + onReplace = _this$props2.onReplace, + className = _this$props2.className, + backgroundColor = _this$props2.backgroundColor, + textColor = _this$props2.textColor, + setBackgroundColor = _this$props2.setBackgroundColor, + setTextColor = _this$props2.setTextColor, + fallbackBackgroundColor = _this$props2.fallbackBackgroundColor, + fallbackTextColor = _this$props2.fallbackTextColor, + fallbackFontSize = _this$props2.fallbackFontSize, + fontSize = _this$props2.fontSize, + setFontSize = _this$props2.setFontSize, + isRTL = _this$props2.isRTL; + var align = attributes.align, + content = attributes.content, + dropCap = attributes.dropCap, + placeholder = attributes.placeholder, + direction = attributes.direction; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { + value: align, + onChange: function onChange(nextAlign) { + setAttributes({ + align: nextAlign + }); + } + }), isRTL && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: [{ + icon: 'editor-ltr', + title: Object(external_this_wp_i18n_["_x"])('Left to right', 'editor button'), + isActive: direction === 'ltr', + onClick: function onClick() { + var nextDirection = direction === 'ltr' ? undefined : 'ltr'; + setAttributes({ + direction: nextDirection + }); + } + }] + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Text Settings'), + className: "blocks-font-size" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["FontSizePicker"], { + fallbackFontSize: fallbackFontSize, + value: fontSize.size, + onChange: setFontSize + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Drop Cap'), + checked: !!dropCap, + onChange: this.toggleDropCap, + help: this.getDropCapHelp + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + initialOpen: false, + colorSettings: [{ + value: backgroundColor.color, + onChange: setBackgroundColor, + label: Object(external_this_wp_i18n_["__"])('Background Color') + }, { + value: textColor.color, + onChange: setTextColor, + label: Object(external_this_wp_i18n_["__"])('Text Color') + }] + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], Object(esm_extends["a" /* default */])({ + textColor: textColor.color, + backgroundColor: backgroundColor.color, + fallbackTextColor: fallbackTextColor, + fallbackBackgroundColor: fallbackBackgroundColor + }, { + fontSize: fontSize.size + })))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + identifier: "content", + tagName: "p", + className: classnames_default()('wp-block-paragraph', className, (_classnames = { + 'has-text-color': textColor.color, + 'has-background': backgroundColor.color, + 'has-drop-cap': dropCap + }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), Object(defineProperty["a" /* default */])(_classnames, fontSize.class, fontSize.class), _classnames)), + style: { + backgroundColor: backgroundColor.color, + color: textColor.color, + fontSize: fontSize.size ? fontSize.size + 'px' : undefined, + direction: direction + }, + value: content, + onChange: function onChange(nextContent) { + setAttributes({ + content: nextContent + }); + }, + onSplit: function onSplit(value) { + if (!value) { + return Object(external_this_wp_blocks_["createBlock"])(edit_name); + } + + return Object(external_this_wp_blocks_["createBlock"])(edit_name, Object(objectSpread["a" /* default */])({}, attributes, { + content: value + })); + }, + onMerge: mergeBlocks, + onReplace: onReplace, + onRemove: onReplace ? function () { + return onReplace([]); + } : undefined, + "aria-label": content ? Object(external_this_wp_i18n_["__"])('Paragraph block') : Object(external_this_wp_i18n_["__"])('Empty block; start writing or type forward slash to choose a block'), + placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block'), + __unstableEmbedURLOnPaste: true + })); + } + }]); + + return ParagraphBlock; +}(external_this_wp_element_["Component"]); + +var ParagraphEdit = Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', { + textColor: 'color' +}), Object(external_this_wp_blockEditor_["withFontSizes"])('fontSize'), applyFallbackStyles, Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return { + isRTL: getSettings().isRTL + }; +})])(edit_ParagraphBlock); +/* harmony default export */ var paragraph_edit = (ParagraphEdit); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var paragraph_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/save.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function save_save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var align = attributes.align, + content = attributes.content, + dropCap = attributes.dropCap, + backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + customBackgroundColor = attributes.customBackgroundColor, + customTextColor = attributes.customTextColor, + fontSize = attributes.fontSize, + customFontSize = attributes.customFontSize, + direction = attributes.direction; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize); + var className = classnames_default()((_classnames = { + 'has-text-color': textColor || customTextColor, + 'has-background': backgroundColor || customBackgroundColor, + 'has-drop-cap': dropCap + }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); + var styles = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor, + fontSize: fontSizeClass ? undefined : customFontSize + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + style: styles, + className: className ? className : undefined, + value: content, + dir: direction + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/transforms.js +/** + * WordPress dependencies + */ + +var transforms_transforms = { + from: [{ + type: 'raw', + // Paragraph is a fallback and should be matched last. + priority: 20, + selector: 'p', + schema: { + p: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + } + }] +}; +/* harmony default export */ var paragraph_transforms = (transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var paragraph_metadata = { + name: "core/paragraph", + category: "common", + attributes: { + align: { + type: "string" + }, + content: { + type: "string", + source: "html", + selector: "p", + "default": "" + }, + dropCap: { + type: "boolean", + "default": false + }, + placeholder: { + type: "string" + }, + textColor: { + type: "string" + }, + customTextColor: { + type: "string" + }, + backgroundColor: { + type: "string" + }, + customBackgroundColor: { + type: "string" + }, + fontSize: { + type: "string" + }, + customFontSize: { + type: "number" + }, + direction: { + type: "string", + "enum": ["ltr", "rtl"] + } + } +}; + + +var paragraph_name = paragraph_metadata.name; + +var paragraph_settings = { + title: Object(external_this_wp_i18n_["__"])('Paragraph'), + description: Object(external_this_wp_i18n_["__"])('Start with the building block of all narrative.'), + icon: paragraph_icon, + keywords: [Object(external_this_wp_i18n_["__"])('text')], + example: { + attributes: { + content: Object(external_this_wp_i18n_["__"])('In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.'), + customFontSize: 28, + dropCap: true + } + }, + supports: { + className: false + }, + transforms: paragraph_transforms, + deprecated: paragraph_deprecated, + merge: function merge(attributes, attributesToMerge) { + return { + content: (attributes.content || '') + (attributesToMerge.content || '') + }; + }, + getEditWrapperProps: function getEditWrapperProps(attributes) { + var width = attributes.width; + + if (['wide', 'full', 'left', 'right'].indexOf(width) !== -1) { + return { + 'data-align': width + }; + } + }, + edit: paragraph_edit, + save: save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/deprecated.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +var image_deprecated_blockAttributes = { + align: { + type: 'string' + }, + url: { + type: 'string', + source: 'attribute', + selector: 'img', + attribute: 'src' + }, + alt: { + type: 'string', + source: 'attribute', + selector: 'img', + attribute: 'alt', + default: '' + }, + caption: { + type: 'string', + source: 'html', + selector: 'figcaption' + }, + href: { + type: 'string', + source: 'attribute', + selector: 'figure > a', + attribute: 'href' + }, + rel: { + type: 'string', + source: 'attribute', + selector: 'figure > a', + attribute: 'rel' + }, + linkClass: { + type: 'string', + source: 'attribute', + selector: 'figure > a', + attribute: 'class' + }, + id: { + type: 'number' + }, + width: { + type: 'number' + }, + height: { + type: 'number' + }, + linkDestination: { + type: 'string', + default: 'none' + }, + linkTarget: { + type: 'string', + source: 'attribute', + selector: 'figure > a', + attribute: 'target' + } +}; +var deprecated_deprecated = [{ + attributes: image_deprecated_blockAttributes, + save: function save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var url = attributes.url, + alt = attributes.alt, + caption = attributes.caption, + align = attributes.align, + href = attributes.href, + width = attributes.width, + height = attributes.height, + id = attributes.id; + var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames)); + var image = Object(external_this_wp_element_["createElement"])("img", { + src: url, + alt: alt, + className: id ? "wp-image-".concat(id) : null, + width: width, + height: height + }); + return Object(external_this_wp_element_["createElement"])("figure", { + className: classes + }, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + } +}, { + attributes: image_deprecated_blockAttributes, + save: function save(_ref2) { + var attributes = _ref2.attributes; + var url = attributes.url, + alt = attributes.alt, + caption = attributes.caption, + align = attributes.align, + href = attributes.href, + width = attributes.width, + height = attributes.height, + id = attributes.id; + var image = Object(external_this_wp_element_["createElement"])("img", { + src: url, + alt: alt, + className: id ? "wp-image-".concat(id) : null, + width: width, + height: height + }); + return Object(external_this_wp_element_["createElement"])("figure", { + className: align ? "align".concat(align) : null + }, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + } +}, { + attributes: image_deprecated_blockAttributes, + save: function save(_ref3) { + var attributes = _ref3.attributes; + var url = attributes.url, + alt = attributes.alt, + caption = attributes.caption, + align = attributes.align, + href = attributes.href, + width = attributes.width, + height = attributes.height; + var extraImageProps = width || height ? { + width: width, + height: height + } : {}; + var image = Object(external_this_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({ + src: url, + alt: alt + }, extraImageProps)); + var figureStyle = {}; + + if (width) { + figureStyle = { + width: width + }; + } else if (align === 'left' || align === 'right') { + figureStyle = { + maxWidth: '50%' + }; + } + + return Object(external_this_wp_element_["createElement"])("figure", { + className: align ? "align".concat(align) : null, + style: figureStyle + }, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + } +}]; +/* harmony default export */ var image_deprecated = (deprecated_deprecated); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(23); + +// EXTERNAL MODULE: external {"this":["wp","blob"]} +var external_this_wp_blob_ = __webpack_require__(35); + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(19); + +// EXTERNAL MODULE: external {"this":["wp","url"]} +var external_this_wp_url_ = __webpack_require__(26); + +// EXTERNAL MODULE: external {"this":["wp","viewport"]} +var external_this_wp_viewport_ = __webpack_require__(42); + +// EXTERNAL MODULE: external {"this":["wp","a11y"]} +var external_this_wp_a11y_ = __webpack_require__(45); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/icons.js + + +/** + * WordPress dependencies + */ + +var embedContentIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z" +})); +var embedAudioIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z" +})); +var embedPhotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { + points: "14.5 11 11 15.51 8.5 12.5 5 17 19 17" +})); +var embedVideoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z" +})); +var embedTwitterIcon = { + foreground: '#1da1f2', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z" + }))) +}; +var embedYouTubeIcon = { + foreground: '#ff0000', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z" + })) +}; +var embedFacebookIcon = { + foreground: '#3b5998', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z" + })) +}; +var embedInstagramIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z" +}))); +var embedWordPressIcon = { + foreground: '#0073AA', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z" + }))) +}; +var embedSpotifyIcon = { + foreground: '#1db954', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325" + })) +}; +var embedFlickrIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z" +})); +var embedVimeoIcon = { + foreground: '#1ab7ea', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z" + }))) +}; +var embedRedditIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z" +})); +var embedTumbrIcon = { + foreground: '#35465c', + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z" + })) +}; +var embedAmazonIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z" +})); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/core-embeds.js +/** + * Internal dependencies + */ + +/** + * WordPress dependencies + */ + + + +var common = [{ + name: 'core-embed/twitter', + settings: { + title: 'Twitter', + icon: embedTwitterIcon, + keywords: ['tweet'], + description: Object(external_this_wp_i18n_["__"])('Embed a tweet.') + }, + patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i] +}, { + name: 'core-embed/youtube', + settings: { + title: 'YouTube', + icon: embedYouTubeIcon, + keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('video')], + description: Object(external_this_wp_i18n_["__"])('Embed a YouTube video.') + }, + patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i] +}, { + name: 'core-embed/facebook', + settings: { + title: 'Facebook', + icon: embedFacebookIcon, + description: Object(external_this_wp_i18n_["__"])('Embed a Facebook post.') + }, + patterns: [/^https?:\/\/www\.facebook.com\/.+/i] +}, { + name: 'core-embed/instagram', + settings: { + title: 'Instagram', + icon: embedInstagramIcon, + keywords: [Object(external_this_wp_i18n_["__"])('image')], + description: Object(external_this_wp_i18n_["__"])('Embed an Instagram post.') + }, + patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i] +}, { + name: 'core-embed/wordpress', + settings: { + title: 'WordPress', + icon: embedWordPressIcon, + keywords: [Object(external_this_wp_i18n_["__"])('post'), Object(external_this_wp_i18n_["__"])('blog')], + responsive: false, + description: Object(external_this_wp_i18n_["__"])('Embed a WordPress post.') + } +}, { + name: 'core-embed/soundcloud', + settings: { + title: 'SoundCloud', + icon: embedAudioIcon, + keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], + description: Object(external_this_wp_i18n_["__"])('Embed SoundCloud content.') + }, + patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i] +}, { + name: 'core-embed/spotify', + settings: { + title: 'Spotify', + icon: embedSpotifyIcon, + keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], + description: Object(external_this_wp_i18n_["__"])('Embed Spotify content.') + }, + patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i] +}, { + name: 'core-embed/flickr', + settings: { + title: 'Flickr', + icon: embedFlickrIcon, + keywords: [Object(external_this_wp_i18n_["__"])('image')], + description: Object(external_this_wp_i18n_["__"])('Embed Flickr content.') + }, + patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i] +}, { + name: 'core-embed/vimeo', + settings: { + title: 'Vimeo', + icon: embedVimeoIcon, + keywords: [Object(external_this_wp_i18n_["__"])('video')], + description: Object(external_this_wp_i18n_["__"])('Embed a Vimeo video.') + }, + patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i] +}]; +var others = [{ + name: 'core-embed/animoto', + settings: { + title: 'Animoto', + icon: embedVideoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed an Animoto video.') + }, + patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i] +}, { + name: 'core-embed/cloudup', + settings: { + title: 'Cloudup', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Cloudup content.') + }, + patterns: [/^https?:\/\/cloudup\.com\/.+/i] +}, { + name: 'core-embed/collegehumor', + settings: { + title: 'CollegeHumor', + icon: embedVideoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed CollegeHumor content.') + }, + patterns: [/^https?:\/\/(www\.)?collegehumor\.com\/.+/i] +}, { + name: 'core-embed/crowdsignal', + settings: { + title: 'Crowdsignal', + icon: embedContentIcon, + keywords: ['polldaddy'], + transform: [{ + type: 'block', + blocks: ['core-embed/polldaddy'], + transform: function transform(content) { + return Object(external_this_wp_blocks_["createBlock"])('core-embed/crowdsignal', { + content: content + }); + } + }], + description: Object(external_this_wp_i18n_["__"])('Embed Crowdsignal (formerly Polldaddy) content.') + }, + patterns: [/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i] +}, { + name: 'core-embed/dailymotion', + settings: { + title: 'Dailymotion', + icon: embedVideoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed a Dailymotion video.') + }, + patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i] +}, { + name: 'core-embed/hulu', + settings: { + title: 'Hulu', + icon: embedVideoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Hulu content.') + }, + patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i] +}, { + name: 'core-embed/imgur', + settings: { + title: 'Imgur', + icon: embedPhotoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Imgur content.') + }, + patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i] +}, { + name: 'core-embed/issuu', + settings: { + title: 'Issuu', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Issuu content.') + }, + patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i] +}, { + name: 'core-embed/kickstarter', + settings: { + title: 'Kickstarter', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Kickstarter content.') + }, + patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i] +}, { + name: 'core-embed/meetup-com', + settings: { + title: 'Meetup.com', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Meetup.com content.') + }, + patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i] +}, { + name: 'core-embed/mixcloud', + settings: { + title: 'Mixcloud', + icon: embedAudioIcon, + keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], + description: Object(external_this_wp_i18n_["__"])('Embed Mixcloud content.') + }, + patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i] +}, { + // Deprecated in favour of the core-embed/crowdsignal block + name: 'core-embed/polldaddy', + settings: { + title: 'Polldaddy', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Polldaddy content.'), + supports: { + inserter: false + } + }, + patterns: [] +}, { + name: 'core-embed/reddit', + settings: { + title: 'Reddit', + icon: embedRedditIcon, + description: Object(external_this_wp_i18n_["__"])('Embed a Reddit thread.') + }, + patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i] +}, { + name: 'core-embed/reverbnation', + settings: { + title: 'ReverbNation', + icon: embedAudioIcon, + description: Object(external_this_wp_i18n_["__"])('Embed ReverbNation content.') + }, + patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i] +}, { + name: 'core-embed/screencast', + settings: { + title: 'Screencast', + icon: embedVideoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Screencast content.') + }, + patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i] +}, { + name: 'core-embed/scribd', + settings: { + title: 'Scribd', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Scribd content.') + }, + patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i] +}, { + name: 'core-embed/slideshare', + settings: { + title: 'Slideshare', + icon: embedContentIcon, + description: Object(external_this_wp_i18n_["__"])('Embed Slideshare content.') + }, + patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i] +}, { + name: 'core-embed/smugmug', + settings: { + title: 'SmugMug', + icon: embedPhotoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed SmugMug content.') + }, + patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i] +}, { + // Deprecated in favour of the core-embed/speaker-deck block. + name: 'core-embed/speaker', + settings: { + title: 'Speaker', + icon: embedAudioIcon, + supports: { + inserter: false + } + }, + patterns: [] +}, { + name: 'core-embed/speaker-deck', + settings: { + title: 'Speaker Deck', + icon: embedContentIcon, + transform: [{ + type: 'block', + blocks: ['core-embed/speaker'], + transform: function transform(content) { + return Object(external_this_wp_blocks_["createBlock"])('core-embed/speaker-deck', { + content: content + }); + } + }], + description: Object(external_this_wp_i18n_["__"])('Embed Speaker Deck content.') + }, + patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i] +}, { + name: 'core-embed/ted', + settings: { + title: 'TED', + icon: embedVideoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed a TED video.') + }, + patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i] +}, { + name: 'core-embed/tumblr', + settings: { + title: 'Tumblr', + icon: embedTumbrIcon, + description: Object(external_this_wp_i18n_["__"])('Embed a Tumblr post.') + }, + patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i] +}, { + name: 'core-embed/videopress', + settings: { + title: 'VideoPress', + icon: embedVideoIcon, + keywords: [Object(external_this_wp_i18n_["__"])('video')], + description: Object(external_this_wp_i18n_["__"])('Embed a VideoPress video.') + }, + patterns: [/^https?:\/\/videopress\.com\/.+/i] +}, { + name: 'core-embed/wordpress-tv', + settings: { + title: 'WordPress.tv', + icon: embedVideoIcon, + description: Object(external_this_wp_i18n_["__"])('Embed a WordPress.tv video.') + }, + patterns: [/^https?:\/\/wordpress\.tv\/.+/i] +}, { + name: 'core-embed/amazon-kindle', + settings: { + title: 'Amazon Kindle', + icon: embedAmazonIcon, + keywords: [Object(external_this_wp_i18n_["__"])('ebook')], + responsive: false, + description: Object(external_this_wp_i18n_["__"])('Embed Amazon Kindle content.') + }, + patterns: [/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i, /^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i] +}]; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js +// These embeds do not work in sandboxes due to the iframe's security restrictions. +var HOSTS_NO_PREVIEWS = ['facebook.com', 'smugmug.com']; +var ASPECT_RATIOS = [// Common video resolutions. +{ + ratio: '2.33', + className: 'wp-embed-aspect-21-9' +}, { + ratio: '2.00', + className: 'wp-embed-aspect-18-9' +}, { + ratio: '1.78', + className: 'wp-embed-aspect-16-9' +}, { + ratio: '1.33', + className: 'wp-embed-aspect-4-3' +}, // Vertical video and instagram square video support. +{ + ratio: '1.00', + className: 'wp-embed-aspect-1-1' +}, { + ratio: '0.56', + className: 'wp-embed-aspect-9-16' +}, { + ratio: '0.50', + className: 'wp-embed-aspect-1-2' +}]; +var DEFAULT_EMBED_BLOCK = 'core/embed'; +var WORDPRESS_EMBED_BLOCK = 'core-embed/wordpress'; + +// EXTERNAL MODULE: ./node_modules/classnames/dedupe.js +var dedupe = __webpack_require__(67); +var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe); + +// EXTERNAL MODULE: ./node_modules/memize/index.js +var memize = __webpack_require__(44); +var memize_default = /*#__PURE__*/__webpack_require__.n(memize); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js + + + + + +/** + * Internal dependencies + */ + + +/** + * External dependencies + */ + + + + +/** + * WordPress dependencies + */ + + + +/** + * Returns true if any of the regular expressions match the URL. + * + * @param {string} url The URL to test. + * @param {Array} patterns The list of regular expressions to test agains. + * @return {boolean} True if any of the regular expressions match the URL. + */ + +var matchesPatterns = function matchesPatterns(url) { + var patterns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + return patterns.some(function (pattern) { + return url.match(pattern); + }); +}; +/** + * Finds the block name that should be used for the URL, based on the + * structure of the URL. + * + * @param {string} url The URL to test. + * @return {string} The name of the block that should be used for this URL, e.g. core-embed/twitter + */ + +var util_findBlock = function findBlock(url) { + for (var _i = 0, _arr = [].concat(Object(toConsumableArray["a" /* default */])(common), Object(toConsumableArray["a" /* default */])(others)); _i < _arr.length; _i++) { + var block = _arr[_i]; + + if (matchesPatterns(url, block.patterns)) { + return block.name; + } + } + + return DEFAULT_EMBED_BLOCK; +}; +var util_isFromWordPress = function isFromWordPress(html) { + return Object(external_lodash_["includes"])(html, 'class="wp-embedded-content"'); +}; +var util_getPhotoHtml = function getPhotoHtml(photo) { + // 100% width for the preview so it fits nicely into the document, some "thumbnails" are + // actually the full size photo. If thumbnails not found, use full image. + var imageUrl = photo.thumbnail_url ? photo.thumbnail_url : photo.url; + var photoPreview = Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_element_["createElement"])("img", { + src: imageUrl, + alt: photo.title, + width: "100%" + })); + return Object(external_this_wp_element_["renderToString"])(photoPreview); +}; +/** + * Creates a more suitable embed block based on the passed in props + * and attributes generated from an embed block's preview. + * + * We require `attributesFromPreview` to be generated from the latest attributes + * and preview, and because of the way the react lifecycle operates, we can't + * guarantee that the attributes contained in the block's props are the latest + * versions, so we require that these are generated separately. + * See `getAttributesFromPreview` in the generated embed edit component. + * + * @param {Object} props The block's props. + * @param {Object} attributesFromPreview Attributes generated from the block's most up to date preview. + * @return {Object|undefined} A more suitable embed block if one exists. + */ + +var util_createUpgradedEmbedBlock = function createUpgradedEmbedBlock(props, attributesFromPreview) { + var preview = props.preview, + name = props.name; + var url = props.attributes.url; + + if (!url) { + return; + } + + var matchingBlock = util_findBlock(url); + + if (!Object(external_this_wp_blocks_["getBlockType"])(matchingBlock)) { + return; + } // WordPress blocks can work on multiple sites, and so don't have patterns, + // so if we're in a WordPress block, assume the user has chosen it for a WordPress URL. + + + if (WORDPRESS_EMBED_BLOCK !== name && DEFAULT_EMBED_BLOCK !== matchingBlock) { + // At this point, we have discovered a more suitable block for this url, so transform it. + if (name !== matchingBlock) { + return Object(external_this_wp_blocks_["createBlock"])(matchingBlock, { + url: url + }); + } + } + + if (preview) { + var html = preview.html; // We can't match the URL for WordPress embeds, we have to check the HTML instead. + + if (util_isFromWordPress(html)) { + // If this is not the WordPress embed block, transform it into one. + if (WORDPRESS_EMBED_BLOCK !== name) { + return Object(external_this_wp_blocks_["createBlock"])(WORDPRESS_EMBED_BLOCK, Object(objectSpread["a" /* default */])({ + url: url + }, attributesFromPreview)); + } + } + } +}; +/** + * Returns class names with any relevant responsive aspect ratio names. + * + * @param {string} html The preview HTML that possibly contains an iframe with width and height set. + * @param {string} existingClassNames Any existing class names. + * @param {boolean} allowResponsive If the responsive class names should be added, or removed. + * @return {string} Deduped class names. + */ + +function getClassNames(html) { + var existingClassNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + var allowResponsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + + if (!allowResponsive) { + // Remove all of the aspect ratio related class names. + var aspectRatioClassNames = { + 'wp-has-aspect-ratio': false + }; + + for (var ratioIndex = 0; ratioIndex < ASPECT_RATIOS.length; ratioIndex++) { + var aspectRatioToRemove = ASPECT_RATIOS[ratioIndex]; + aspectRatioClassNames[aspectRatioToRemove.className] = false; + } + + return dedupe_default()(existingClassNames, aspectRatioClassNames); + } + + var previewDocument = document.implementation.createHTMLDocument(''); + previewDocument.body.innerHTML = html; + var iframe = previewDocument.body.querySelector('iframe'); // If we have a fixed aspect iframe, and it's a responsive embed block. + + if (iframe && iframe.height && iframe.width) { + var aspectRatio = (iframe.width / iframe.height).toFixed(2); // Given the actual aspect ratio, find the widest ratio to support it. + + for (var _ratioIndex = 0; _ratioIndex < ASPECT_RATIOS.length; _ratioIndex++) { + var potentialRatio = ASPECT_RATIOS[_ratioIndex]; + + if (aspectRatio >= potentialRatio.ratio) { + var _classnames; + + return dedupe_default()(existingClassNames, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, potentialRatio.className, allowResponsive), Object(defineProperty["a" /* default */])(_classnames, 'wp-has-aspect-ratio', allowResponsive), _classnames)); + } + } + } + + return existingClassNames; +} +/** + * Fallback behaviour for unembeddable URLs. + * Creates a paragraph block containing a link to the URL, and calls `onReplace`. + * + * @param {string} url The URL that could not be embedded. + * @param {Function} onReplace Function to call with the created fallback block. + */ + +function util_fallback(url, onReplace) { + var link = Object(external_this_wp_element_["createElement"])("a", { + href: url + }, url); + onReplace(Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: Object(external_this_wp_element_["renderToString"])(link) + })); +} +/*** + * Gets block attributes based on the preview and responsive state. + * + * @param {Object} preview The preview data. + * @param {string} title The block's title, e.g. Twitter. + * @param {Object} currentClassNames The block's current class names. + * @param {boolean} isResponsive Boolean indicating if the block supports responsive content. + * @param {boolean} allowResponsive Apply responsive classes to fixed size content. + * @return {Object} Attributes and values. + */ + +var getAttributesFromPreview = memize_default()(function (preview, title, currentClassNames, isResponsive) { + var allowResponsive = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; + + if (!preview) { + return {}; + } + + var attributes = {}; // Some plugins only return HTML with no type info, so default this to 'rich'. + + var _preview$type = preview.type, + type = _preview$type === void 0 ? 'rich' : _preview$type; // If we got a provider name from the API, use it for the slug, otherwise we use the title, + // because not all embed code gives us a provider name. + + var html = preview.html, + providerName = preview.provider_name; + var providerNameSlug = Object(external_lodash_["kebabCase"])(Object(external_lodash_["toLower"])('' !== providerName ? providerName : title)); + + if (util_isFromWordPress(html)) { + type = 'wp-embed'; + } + + if (html || 'photo' === type) { + attributes.type = type; + attributes.providerNameSlug = providerNameSlug; + } + + attributes.className = getClassNames(html, currentClassNames, isResponsive && allowResponsive); + return attributes; +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var image_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/utils.js +function calculatePreferedImageSize(image, container) { + var maxWidth = container.clientWidth; + var exceedMaxWidth = image.width > maxWidth; + var ratio = image.height / image.width; + var width = exceedMaxWidth ? maxWidth : image.width; + var height = exceedMaxWidth ? maxWidth * ratio : image.height; + return { + width: width, + height: height + }; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-size.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var image_size_ImageSize = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ImageSize, _Component); + + function ImageSize() { + var _this; + + Object(classCallCheck["a" /* default */])(this, ImageSize); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageSize).apply(this, arguments)); + _this.state = { + width: undefined, + height: undefined + }; + _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.calculateSize = _this.calculateSize.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(ImageSize, [{ + key: "bindContainer", + value: function bindContainer(ref) { + this.container = ref; + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (this.props.src !== prevProps.src) { + this.setState({ + width: undefined, + height: undefined + }); + this.fetchImageSize(); + } + + if (this.props.dirtynessTrigger !== prevProps.dirtynessTrigger) { + this.calculateSize(); + } + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + this.fetchImageSize(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this.image) { + this.image.onload = external_lodash_["noop"]; + } + } + }, { + key: "fetchImageSize", + value: function fetchImageSize() { + this.image = new window.Image(); + this.image.onload = this.calculateSize; + this.image.src = this.props.src; + } + }, { + key: "calculateSize", + value: function calculateSize() { + var _calculatePreferedIma = calculatePreferedImageSize(this.image, this.container), + width = _calculatePreferedIma.width, + height = _calculatePreferedIma.height; + + this.setState({ + width: width, + height: height + }); + } + }, { + key: "render", + value: function render() { + var sizes = { + imageWidth: this.image && this.image.width, + imageHeight: this.image && this.image.height, + containerWidth: this.container && this.container.clientWidth, + containerHeight: this.container && this.container.clientHeight, + imageWidthWithinContainer: this.state.width, + imageHeightWithinContainer: this.state.height + }; + return Object(external_this_wp_element_["createElement"])("div", { + ref: this.bindContainer + }, this.props.children(sizes)); + } + }]); + + return ImageSize; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var image_size = (Object(external_this_wp_compose_["withGlobalEvents"])({ + resize: 'calculateSize' +})(image_size_ImageSize)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/edit.js + + + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + + + + + + +/** + * Internal dependencies + */ + + + + +/** + * Module constants + */ + +var MIN_SIZE = 20; +var LINK_DESTINATION_NONE = 'none'; +var LINK_DESTINATION_MEDIA = 'media'; +var LINK_DESTINATION_ATTACHMENT = 'attachment'; +var LINK_DESTINATION_CUSTOM = 'custom'; +var NEW_TAB_REL = 'noreferrer noopener'; +var ALLOWED_MEDIA_TYPES = ['image']; +var DEFAULT_SIZE_SLUG = 'large'; +var edit_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) { + var imageProps = Object(external_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']); + imageProps.url = Object(external_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url; + return imageProps; +}; +/** + * Is the URL a temporary blob URL? A blob URL is one that is used temporarily + * while the image is being uploaded and will not have an id yet allocated. + * + * @param {number=} id The id of the image. + * @param {string=} url The url of the image. + * + * @return {boolean} Is the URL a Blob URL + */ + +var edit_isTemporaryImage = function isTemporaryImage(id, url) { + return !id && Object(external_this_wp_blob_["isBlobURL"])(url); +}; +/** + * Is the url for the image hosted externally. An externally hosted image has no id + * and is not a blob url. + * + * @param {number=} id The id of the image. + * @param {string=} url The url of the image. + * + * @return {boolean} Is the url an externally hosted url? + */ + + +var edit_isExternalImage = function isExternalImage(id, url) { + return url && !id && !Object(external_this_wp_blob_["isBlobURL"])(url); +}; + +var stopPropagation = function stopPropagation(event) { + event.stopPropagation(); +}; + +var edit_stopPropagationRelevantKeys = function stopPropagationRelevantKeys(event) { + if ([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]].indexOf(event.keyCode) > -1) { + // Stop the key event from propagating up to ObserveTyping.startTypingInTextField. + event.stopPropagation(); + } +}; + +var edit_ImageURLInputUI = function ImageURLInputUI(_ref) { + var advancedOptions = _ref.advancedOptions, + linkDestination = _ref.linkDestination, + mediaLinks = _ref.mediaLinks, + onChangeUrl = _ref.onChangeUrl, + url = _ref.url; + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isOpen = _useState2[0], + setIsOpen = _useState2[1]; + + var openLinkUI = Object(external_this_wp_element_["useCallback"])(function () { + setIsOpen(true); + }); + + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isEditingLink = _useState4[0], + setIsEditingLink = _useState4[1]; + + var _useState5 = Object(external_this_wp_element_["useState"])(null), + _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), + urlInput = _useState6[0], + setUrlInput = _useState6[1]; + + var startEditLink = Object(external_this_wp_element_["useCallback"])(function () { + if (linkDestination === LINK_DESTINATION_MEDIA || linkDestination === LINK_DESTINATION_ATTACHMENT) { + setUrlInput(''); + } + + setIsEditingLink(true); + }); + var stopEditLink = Object(external_this_wp_element_["useCallback"])(function () { + setIsEditingLink(false); + }); + var closeLinkUI = Object(external_this_wp_element_["useCallback"])(function () { + setUrlInput(null); + stopEditLink(); + setIsOpen(false); + }); + var autocompleteRef = Object(external_this_wp_element_["useRef"])(null); + var onClickOutside = Object(external_this_wp_element_["useCallback"])(function () { + return function (event) { + // The autocomplete suggestions list renders in a separate popover (in a portal), + // so onClickOutside fails to detect that a click on a suggestion occurred in the + // LinkContainer. Detect clicks on autocomplete suggestions using a ref here, and + // return to avoid the popover being closed. + var autocompleteElement = autocompleteRef.current; + + if (autocompleteElement && autocompleteElement.contains(event.target)) { + return; + } + + setIsOpen(false); + setUrlInput(null); + stopEditLink(); + }; + }); + var onSubmitLinkChange = Object(external_this_wp_element_["useCallback"])(function () { + return function (event) { + if (urlInput) { + onChangeUrl(urlInput); + } + + stopEditLink(); + setUrlInput(null); + event.preventDefault(); + }; + }); + var onLinkRemove = Object(external_this_wp_element_["useCallback"])(function () { + closeLinkUI(); + onChangeUrl(''); + }); + var linkEditorValue = urlInput !== null ? urlInput : url; + var urlLabel = (Object(external_lodash_["find"])(mediaLinks, ['linkDestination', linkDestination]) || {}).title; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: "admin-links", + className: "components-toolbar__control", + label: url ? Object(external_this_wp_i18n_["__"])('Edit link') : Object(external_this_wp_i18n_["__"])('Insert link'), + "aria-expanded": isOpen, + onClick: openLinkUI + }), isOpen && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"], { + onClickOutside: onClickOutside(), + onClose: closeLinkUI, + renderSettings: function renderSettings() { + return advancedOptions; + }, + additionalControls: !linkEditorValue && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], null, Object(external_lodash_["map"])(mediaLinks, function (link) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + key: link.linkDestination, + icon: link.icon, + onClick: function onClick() { + setUrlInput(null); + onChangeUrl(link.url); + stopEditLink(); + } + }, link.title); + })) + }, (!url || isEditingLink) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"].LinkEditor, { + className: "editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content", + value: linkEditorValue, + onChangeInputValue: setUrlInput, + onKeyDown: edit_stopPropagationRelevantKeys, + onKeyPress: stopPropagation, + onSubmit: onSubmitLinkChange(), + autocompleteRef: autocompleteRef + }), url && !isEditingLink && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"].LinkViewer, { + className: "editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content", + onKeyPress: stopPropagation, + url: url, + onEditLinkClick: startEditLink, + urlLabel: urlLabel + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: "no", + label: Object(external_this_wp_i18n_["__"])('Remove link'), + onClick: onLinkRemove + })))); +}; + +var edit_ImageEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ImageEdit, _Component); + + function ImageEdit(_ref2) { + var _this; + + var attributes = _ref2.attributes; + + Object(classCallCheck["a" /* default */])(this, ImageEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageEdit).apply(this, arguments)); + _this.updateAlt = _this.updateAlt.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.updateAlignment = _this.updateAlignment.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onFocusCaption = _this.onFocusCaption.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onImageClick = _this.onImageClick.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.updateImage = _this.updateImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.updateWidth = _this.updateWidth.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.updateHeight = _this.updateHeight.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.updateDimensions = _this.updateDimensions.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSetHref = _this.onSetHref.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSetLinkClass = _this.onSetLinkClass.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSetLinkRel = _this.onSetLinkRel.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSetNewTab = _this.onSetNewTab.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getFilename = _this.getFilename.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.toggleIsEditing = _this.toggleIsEditing.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onImageError = _this.onImageError.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getLinkDestinations = _this.getLinkDestinations.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + captionFocused: false, + isEditing: !attributes.url + }; + return _this; + } + + Object(createClass["a" /* default */])(ImageEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + mediaUpload = _this$props.mediaUpload, + noticeOperations = _this$props.noticeOperations; + var id = attributes.id, + _attributes$url = attributes.url, + url = _attributes$url === void 0 ? '' : _attributes$url; + + if (edit_isTemporaryImage(id, url)) { + var file = Object(external_this_wp_blob_["getBlobByURL"])(url); + + if (file) { + mediaUpload({ + filesList: [file], + onFileChange: function onFileChange(_ref3) { + var _ref4 = Object(slicedToArray["a" /* default */])(_ref3, 1), + image = _ref4[0]; + + _this2.onSelectImage(image); + }, + allowedTypes: ALLOWED_MEDIA_TYPES, + onError: function onError(message) { + noticeOperations.createErrorNotice(message); + + _this2.setState({ + isEditing: true + }); + } + }); + } + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _prevProps$attributes = prevProps.attributes, + prevID = _prevProps$attributes.id, + _prevProps$attributes2 = _prevProps$attributes.url, + prevURL = _prevProps$attributes2 === void 0 ? '' : _prevProps$attributes2; + var _this$props$attribute = this.props.attributes, + id = _this$props$attribute.id, + _this$props$attribute2 = _this$props$attribute.url, + url = _this$props$attribute2 === void 0 ? '' : _this$props$attribute2; + + if (edit_isTemporaryImage(prevID, prevURL) && !edit_isTemporaryImage(id, url)) { + Object(external_this_wp_blob_["revokeBlobURL"])(url); + } + + if (!this.props.isSelected && prevProps.isSelected && this.state.captionFocused) { + this.setState({ + captionFocused: false + }); + } + } + }, { + key: "onUploadError", + value: function onUploadError(message) { + var noticeOperations = this.props.noticeOperations; + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + this.setState({ + isEditing: true + }); + } + }, { + key: "onSelectImage", + value: function onSelectImage(media) { + if (!media || !media.url) { + this.props.setAttributes({ + url: undefined, + alt: undefined, + id: undefined, + caption: undefined + }); + return; + } + + this.setState({ + isEditing: false + }); + var _this$props$attribute3 = this.props.attributes, + id = _this$props$attribute3.id, + url = _this$props$attribute3.url, + alt = _this$props$attribute3.alt, + caption = _this$props$attribute3.caption; + var mediaAttributes = edit_pickRelevantMediaFiles(media); // If the current image is temporary but an alt or caption text was meanwhile written by the user, + // make sure the text is not overwritten. + + if (edit_isTemporaryImage(id, url)) { + if (alt) { + mediaAttributes = Object(external_lodash_["omit"])(mediaAttributes, ['alt']); + } + + if (caption) { + mediaAttributes = Object(external_lodash_["omit"])(mediaAttributes, ['caption']); + } + } + + var additionalAttributes; // Reset the dimension attributes if changing to a different image. + + if (!media.id || media.id !== id) { + additionalAttributes = { + width: undefined, + height: undefined, + sizeSlug: DEFAULT_SIZE_SLUG + }; + } else { + // Keep the same url when selecting the same file, so "Image Size" option is not changed. + additionalAttributes = { + url: url + }; + } + + this.props.setAttributes(Object(objectSpread["a" /* default */])({}, mediaAttributes, additionalAttributes)); + } + }, { + key: "onSelectURL", + value: function onSelectURL(newURL) { + var url = this.props.attributes.url; + + if (newURL !== url) { + this.props.setAttributes({ + url: newURL, + id: undefined, + sizeSlug: DEFAULT_SIZE_SLUG + }); + } + + this.setState({ + isEditing: false + }); + } + }, { + key: "onImageError", + value: function onImageError(url) { + // Check if there's an embed block that handles this URL. + var embedBlock = util_createUpgradedEmbedBlock({ + attributes: { + url: url + } + }); + + if (undefined !== embedBlock) { + this.props.onReplace(embedBlock); + } + } + }, { + key: "onSetHref", + value: function onSetHref(value) { + var linkDestinations = this.getLinkDestinations(); + var attributes = this.props.attributes; + var linkDestination = attributes.linkDestination; + var linkDestinationInput; + + if (!value) { + linkDestinationInput = LINK_DESTINATION_NONE; + } else { + linkDestinationInput = (Object(external_lodash_["find"])(linkDestinations, function (destination) { + return destination.url === value; + }) || { + linkDestination: LINK_DESTINATION_CUSTOM + }).linkDestination; + } + + if (linkDestination !== linkDestinationInput) { + this.props.setAttributes({ + linkDestination: linkDestinationInput, + href: value + }); + return; + } + + this.props.setAttributes({ + href: value + }); + } + }, { + key: "onSetLinkClass", + value: function onSetLinkClass(value) { + this.props.setAttributes({ + linkClass: value + }); + } + }, { + key: "onSetLinkRel", + value: function onSetLinkRel(value) { + this.props.setAttributes({ + rel: value + }); + } + }, { + key: "onSetNewTab", + value: function onSetNewTab(value) { + var rel = this.props.attributes.rel; + var linkTarget = value ? '_blank' : undefined; + var updatedRel = rel; + + if (linkTarget && !rel) { + updatedRel = NEW_TAB_REL; + } else if (!linkTarget && rel === NEW_TAB_REL) { + updatedRel = undefined; + } + + this.props.setAttributes({ + linkTarget: linkTarget, + rel: updatedRel + }); + } + }, { + key: "onFocusCaption", + value: function onFocusCaption() { + if (!this.state.captionFocused) { + this.setState({ + captionFocused: true + }); + } + } + }, { + key: "onImageClick", + value: function onImageClick() { + if (this.state.captionFocused) { + this.setState({ + captionFocused: false + }); + } + } + }, { + key: "updateAlt", + value: function updateAlt(newAlt) { + this.props.setAttributes({ + alt: newAlt + }); + } + }, { + key: "updateAlignment", + value: function updateAlignment(nextAlign) { + var extraUpdatedAttributes = ['wide', 'full'].indexOf(nextAlign) !== -1 ? { + width: undefined, + height: undefined + } : {}; + this.props.setAttributes(Object(objectSpread["a" /* default */])({}, extraUpdatedAttributes, { + align: nextAlign + })); + } + }, { + key: "updateImage", + value: function updateImage(sizeSlug) { + var image = this.props.image; + var url = Object(external_lodash_["get"])(image, ['media_details', 'sizes', sizeSlug, 'source_url']); + + if (!url) { + return null; + } + + this.props.setAttributes({ + url: url, + width: undefined, + height: undefined, + sizeSlug: sizeSlug + }); + } + }, { + key: "updateWidth", + value: function updateWidth(width) { + this.props.setAttributes({ + width: parseInt(width, 10) + }); + } + }, { + key: "updateHeight", + value: function updateHeight(height) { + this.props.setAttributes({ + height: parseInt(height, 10) + }); + } + }, { + key: "updateDimensions", + value: function updateDimensions() { + var _this3 = this; + + var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; + var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; + return function () { + _this3.props.setAttributes({ + width: width, + height: height + }); + }; + } + }, { + key: "getFilename", + value: function getFilename(url) { + var path = Object(external_this_wp_url_["getPath"])(url); + + if (path) { + return Object(external_lodash_["last"])(path.split('/')); + } + } + }, { + key: "getLinkDestinations", + value: function getLinkDestinations() { + return [{ + linkDestination: LINK_DESTINATION_MEDIA, + title: Object(external_this_wp_i18n_["__"])('Media File'), + url: this.props.image && this.props.image.source_url || this.props.attributes.url, + icon: image_icon + }, { + linkDestination: LINK_DESTINATION_ATTACHMENT, + title: Object(external_this_wp_i18n_["__"])('Attachment Page'), + url: this.props.image && this.props.image.link, + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0 0h24v24H0V0z", + fill: "none" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z" + })) + }]; + } + }, { + key: "toggleIsEditing", + value: function toggleIsEditing() { + this.setState({ + isEditing: !this.state.isEditing + }); + + if (this.state.isEditing) { + Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('You are now viewing the image in the image block.')); + } else { + Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('You are now editing the image in the image block.')); + } + } + }, { + key: "getImageSizeOptions", + value: function getImageSizeOptions() { + var imageSizes = this.props.imageSizes; + return Object(external_lodash_["map"])(imageSizes, function (_ref5) { + var name = _ref5.name, + slug = _ref5.slug; + return { + value: slug, + label: name + }; + }); + } + }, { + key: "render", + value: function render() { + var _this4 = this; + + var isEditing = this.state.isEditing; + var _this$props2 = this.props, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes, + isLargeViewport = _this$props2.isLargeViewport, + isSelected = _this$props2.isSelected, + className = _this$props2.className, + maxWidth = _this$props2.maxWidth, + noticeUI = _this$props2.noticeUI, + isRTL = _this$props2.isRTL, + onResizeStart = _this$props2.onResizeStart, + _onResizeStop = _this$props2.onResizeStop; + var url = attributes.url, + alt = attributes.alt, + caption = attributes.caption, + align = attributes.align, + id = attributes.id, + href = attributes.href, + rel = attributes.rel, + linkClass = attributes.linkClass, + linkDestination = attributes.linkDestination, + width = attributes.width, + height = attributes.height, + linkTarget = attributes.linkTarget, + sizeSlug = attributes.sizeSlug; + var isExternal = edit_isExternalImage(id, url); + var editImageIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: 20, + height: 20, + viewBox: "0 0 20 20" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: 11, + y: 3, + width: 7, + height: 5, + rx: 1 + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: 2, + y: 12, + width: 7, + height: 5, + rx: 1 + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M13,12h1a3,3,0,0,1-3,3v2a5,5,0,0,0,5-5h1L15,9Z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M4,8H3l2,3L7,8H6A3,3,0,0,1,9,5V3A5,5,0,0,0,4,8Z" + })); + var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { + value: align, + onChange: this.updateAlignment + }), url && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: classnames_default()('components-icon-button components-toolbar__control', { + 'is-active': this.state.isEditing + }), + label: Object(external_this_wp_i18n_["__"])('Edit image'), + "aria-pressed": this.state.isEditing, + onClick: this.toggleIsEditing, + icon: editImageIcon + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(edit_ImageURLInputUI, { + url: href || '', + onChangeUrl: this.onSetHref, + mediaLinks: this.getLinkDestinations(), + linkDestination: linkDestination, + advancedOptions: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Open in New Tab'), + onChange: this.onSetNewTab, + checked: linkTarget === '_blank' + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('Link CSS Class'), + value: linkClass || '', + onKeyPress: stopPropagation, + onKeyDown: edit_stopPropagationRelevantKeys, + onChange: this.onSetLinkClass + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('Link Rel'), + value: rel || '', + onChange: this.onSetLinkRel, + onKeyPress: stopPropagation, + onKeyDown: edit_stopPropagationRelevantKeys + })) + })))); + var src = isExternal ? url : undefined; + var labels = { + title: !url ? Object(external_this_wp_i18n_["__"])('Image') : Object(external_this_wp_i18n_["__"])('Edit image'), + instructions: Object(external_this_wp_i18n_["__"])('Upload an image file, pick one from your media library, or add one with a URL.') + }; + var mediaPreview = !!url && Object(external_this_wp_element_["createElement"])("img", { + alt: Object(external_this_wp_i18n_["__"])('Edit image'), + title: Object(external_this_wp_i18n_["__"])('Edit image'), + className: 'edit-image-preview', + src: url + }); + var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: image_icon + }), + className: className, + labels: labels, + onSelect: this.onSelectImage, + onSelectURL: this.onSelectURL, + onDoubleClick: this.toggleIsEditing, + onCancel: !!url && this.toggleIsEditing, + notices: noticeUI, + onError: this.onUploadError, + accept: "image/*", + allowedTypes: ALLOWED_MEDIA_TYPES, + value: { + id: id, + src: src + }, + mediaPreview: mediaPreview, + dropZoneUIOnly: !isEditing && url + }); + + if (isEditing || !url) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, mediaPlaceholder); + } + + var classes = classnames_default()(className, Object(defineProperty["a" /* default */])({ + 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url), + 'is-resized': !!width || !!height, + 'is-focused': isSelected + }, "size-".concat(sizeSlug), sizeSlug)); + var isResizable = ['wide', 'full'].indexOf(align) === -1 && isLargeViewport; + var imageSizeOptions = this.getImageSizeOptions(); + + var getInspectorControls = function getInspectorControls(imageWidth, imageHeight) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Image Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { + label: Object(external_this_wp_i18n_["__"])('Alt Text (Alternative Text)'), + value: alt, + onChange: _this4.updateAlt, + help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { + href: "https://www.w3.org/WAI/tutorials/images/decision-tree" + }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.')) + }), !Object(external_lodash_["isEmpty"])(imageSizeOptions) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Image Size'), + value: sizeSlug, + options: imageSizeOptions, + onChange: _this4.updateImage + }), isResizable && Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-image__dimensions" + }, Object(external_this_wp_element_["createElement"])("p", { + className: "block-library-image__dimensions__row" + }, Object(external_this_wp_i18n_["__"])('Image Dimensions')), Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-image__dimensions__row" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + className: "block-library-image__dimensions__width", + label: Object(external_this_wp_i18n_["__"])('Width'), + value: width || imageWidth || '', + min: 1, + onChange: _this4.updateWidth + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + className: "block-library-image__dimensions__height", + label: Object(external_this_wp_i18n_["__"])('Height'), + value: height || imageHeight || '', + min: 1, + onChange: _this4.updateHeight + })), Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-image__dimensions__row" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ButtonGroup"], { + "aria-label": Object(external_this_wp_i18n_["__"])('Image Size') + }, [25, 50, 75, 100].map(function (scale) { + var scaledWidth = Math.round(imageWidth * (scale / 100)); + var scaledHeight = Math.round(imageHeight * (scale / 100)); + var isCurrent = width === scaledWidth && height === scaledHeight; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: scale, + isSmall: true, + isPrimary: isCurrent, + "aria-pressed": isCurrent, + onClick: _this4.updateDimensions(scaledWidth, scaledHeight) + }, scale, "%"); + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSmall: true, + onClick: _this4.updateDimensions() + }, Object(external_this_wp_i18n_["__"])('Reset')))))); + }; // Disable reason: Each block can be selected by clicking on it + + /* eslint-disable jsx-a11y/click-events-have-key-events */ + + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("figure", { + className: classes + }, Object(external_this_wp_element_["createElement"])(image_size, { + src: url, + dirtynessTrigger: align + }, function (sizes) { + var imageWidthWithinContainer = sizes.imageWidthWithinContainer, + imageHeightWithinContainer = sizes.imageHeightWithinContainer, + imageWidth = sizes.imageWidth, + imageHeight = sizes.imageHeight; + + var filename = _this4.getFilename(url); + + var defaultedAlt; + + if (alt) { + defaultedAlt = alt; + } else if (filename) { + defaultedAlt = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute; its file name is %s'), filename); + } else { + defaultedAlt = Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute'); + } + + var img = // Disable reason: Image itself is not meant to be interactive, but + // should direct focus to block. + + /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ + Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", { + src: url, + alt: defaultedAlt, + onDoubleClick: _this4.toggleIsEditing, + onClick: _this4.onImageClick, + onError: function onError() { + return _this4.onImageError(url); + } + }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)) + /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */ + ; + + if (!isResizable || !imageWidthWithinContainer) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])("div", { + style: { + width: width, + height: height + } + }, img)); + } + + var currentWidth = width || imageWidthWithinContainer; + var currentHeight = height || imageHeightWithinContainer; + var ratio = imageWidth / imageHeight; + var minWidth = imageWidth < imageHeight ? MIN_SIZE : MIN_SIZE * ratio; + var minHeight = imageHeight < imageWidth ? MIN_SIZE : MIN_SIZE / ratio; // With the current implementation of ResizableBox, an image needs an explicit pixel value for the max-width. + // In absence of being able to set the content-width, this max-width is currently dictated by the vanilla editor style. + // The following variable adds a buffer to this vanilla style, so 3rd party themes have some wiggleroom. + // This does, in most cases, allow you to scale the image beyond the width of the main column, though not infinitely. + // @todo It would be good to revisit this once a content-width variable becomes available. + + var maxWidthBuffer = maxWidth * 2.5; + var showRightHandle = false; + var showLeftHandle = false; + /* eslint-disable no-lonely-if */ + // See https://github.com/WordPress/gutenberg/issues/7584. + + if (align === 'center') { + // When the image is centered, show both handles. + showRightHandle = true; + showLeftHandle = true; + } else if (isRTL) { + // In RTL mode the image is on the right by default. + // Show the right handle and hide the left handle only when it is aligned left. + // Otherwise always show the left handle. + if (align === 'left') { + showRightHandle = true; + } else { + showLeftHandle = true; + } + } else { + // Show the left handle and hide the right handle only when the image is aligned right. + // Otherwise always show the right handle. + if (align === 'right') { + showLeftHandle = true; + } else { + showRightHandle = true; + } + } + /* eslint-enable no-lonely-if */ + + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { + size: { + width: width, + height: height + }, + minWidth: minWidth, + maxWidth: maxWidthBuffer, + minHeight: minHeight, + maxHeight: maxWidthBuffer / ratio, + lockAspectRatio: true, + enable: { + top: false, + right: showRightHandle, + bottom: true, + left: showLeftHandle + }, + onResizeStart: onResizeStart, + onResizeStop: function onResizeStop(event, direction, elt, delta) { + _onResizeStop(); + + setAttributes({ + width: parseInt(currentWidth + delta.width, 10), + height: parseInt(currentHeight + delta.height, 10) + }); + } + }, img)); + }), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + unstableOnFocus: this.onFocusCaption, + onChange: function onChange(value) { + return setAttributes({ + caption: value + }); + }, + isSelected: this.state.captionFocused, + inlineToolbar: true + })), mediaPlaceholder); + /* eslint-enable jsx-a11y/click-events-have-key-events */ + } + }]); + + return ImageEdit; +}(external_this_wp_element_["Component"]); +/* harmony default export */ var image_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + toggleSelection = _dispatch.toggleSelection; + + return { + onResizeStart: function onResizeStart() { + return toggleSelection(false); + }, + onResizeStop: function onResizeStop() { + return toggleSelection(true); + } + }; +}), Object(external_this_wp_data_["withSelect"])(function (select, props) { + var _select = select('core'), + getMedia = _select.getMedia; + + var _select2 = select('core/block-editor'), + getSettings = _select2.getSettings; + + var id = props.attributes.id, + isSelected = props.isSelected; + + var _getSettings = getSettings(), + __experimentalMediaUpload = _getSettings.__experimentalMediaUpload, + imageSizes = _getSettings.imageSizes, + isRTL = _getSettings.isRTL, + maxWidth = _getSettings.maxWidth; + + return { + image: id && isSelected ? getMedia(id) : null, + maxWidth: maxWidth, + isRTL: isRTL, + imageSizes: imageSizes, + mediaUpload: __experimentalMediaUpload + }; +}), Object(external_this_wp_viewport_["withViewportMatch"])({ + isLargeViewport: 'medium' +}), external_this_wp_components_["withNotices"]])(edit_ImageEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/save.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function image_save_save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var url = attributes.url, + alt = attributes.alt, + caption = attributes.caption, + align = attributes.align, + href = attributes.href, + rel = attributes.rel, + linkClass = attributes.linkClass, + width = attributes.width, + height = attributes.height, + id = attributes.id, + linkTarget = attributes.linkTarget, + sizeSlug = attributes.sizeSlug; + var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "size-".concat(sizeSlug), sizeSlug), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames)); + var image = Object(external_this_wp_element_["createElement"])("img", { + src: url, + alt: alt, + className: id ? "wp-image-".concat(id) : null, + width: width, + height: height + }); + var figure = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, href ? Object(external_this_wp_element_["createElement"])("a", { + className: linkClass, + href: href, + target: linkTarget, + rel: rel + }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + + if ('left' === align || 'right' === align || 'center' === align) { + return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])("figure", { + className: classes + }, figure)); + } + + return Object(external_this_wp_element_["createElement"])("figure", { + className: classes + }, figure); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/transforms.js + + +/** + * WordPress dependencies + */ + + +function stripFirstImage(attributes, _ref) { + var shortcode = _ref.shortcode; + + var _document$implementat = document.implementation.createHTMLDocument(''), + body = _document$implementat.body; + + body.innerHTML = shortcode.content; + var nodeToRemove = body.querySelector('img'); // if an image has parents, find the topmost node to remove + + while (nodeToRemove && nodeToRemove.parentNode && nodeToRemove.parentNode !== body) { + nodeToRemove = nodeToRemove.parentNode; + } + + if (nodeToRemove) { + nodeToRemove.parentNode.removeChild(nodeToRemove); + } + + return body.innerHTML.trim(); +} + +function getFirstAnchorAttributeFormHTML(html, attributeName) { + var _document$implementat2 = document.implementation.createHTMLDocument(''), + body = _document$implementat2.body; + + body.innerHTML = html; + var firstElementChild = body.firstElementChild; + + if (firstElementChild && firstElementChild.nodeName === 'A') { + return firstElementChild.getAttribute(attributeName) || undefined; + } +} + +var imageSchema = { + img: { + attributes: ['src', 'alt'], + classes: ['alignleft', 'aligncenter', 'alignright', 'alignnone', /^wp-image-\d+$/] + } +}; +var schema = { + figure: { + require: ['img'], + children: Object(objectSpread["a" /* default */])({}, imageSchema, { + a: { + attributes: ['href', 'rel', 'target'], + children: imageSchema + }, + figcaption: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + }) + } +}; +var image_transforms_transforms = { + from: [{ + type: 'raw', + isMatch: function isMatch(node) { + return node.nodeName === 'FIGURE' && !!node.querySelector('img'); + }, + schema: schema, + transform: function transform(node) { + // Search both figure and image classes. Alignment could be + // set on either. ID is set on the image. + var className = node.className + ' ' + node.querySelector('img').className; + var alignMatches = /(?:^|\s)align(left|center|right)(?:$|\s)/.exec(className); + var align = alignMatches ? alignMatches[1] : undefined; + var idMatches = /(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(className); + var id = idMatches ? Number(idMatches[1]) : undefined; + var anchorElement = node.querySelector('a'); + var linkDestination = anchorElement && anchorElement.href ? 'custom' : undefined; + var href = anchorElement && anchorElement.href ? anchorElement.href : undefined; + var rel = anchorElement && anchorElement.rel ? anchorElement.rel : undefined; + var linkClass = anchorElement && anchorElement.className ? anchorElement.className : undefined; + var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])('core/image', node.outerHTML, { + align: align, + id: id, + linkDestination: linkDestination, + href: href, + rel: rel, + linkClass: linkClass + }); + return Object(external_this_wp_blocks_["createBlock"])('core/image', attributes); + } + }, { + type: 'files', + isMatch: function isMatch(files) { + return files.length === 1 && files[0].type.indexOf('image/') === 0; + }, + transform: function transform(files) { + var file = files[0]; // We don't need to upload the media directly here + // It's already done as part of the `componentDidMount` + // int the image block + + return Object(external_this_wp_blocks_["createBlock"])('core/image', { + url: Object(external_this_wp_blob_["createBlobURL"])(file) + }); + } + }, { + type: 'shortcode', + tag: 'caption', + attributes: { + url: { + type: 'string', + source: 'attribute', + attribute: 'src', + selector: 'img' + }, + alt: { + type: 'string', + source: 'attribute', + attribute: 'alt', + selector: 'img' + }, + caption: { + shortcode: stripFirstImage + }, + href: { + shortcode: function shortcode(attributes, _ref2) { + var _shortcode = _ref2.shortcode; + return getFirstAnchorAttributeFormHTML(_shortcode.content, 'href'); + } + }, + rel: { + shortcode: function shortcode(attributes, _ref3) { + var _shortcode2 = _ref3.shortcode; + return getFirstAnchorAttributeFormHTML(_shortcode2.content, 'rel'); + } + }, + linkClass: { + shortcode: function shortcode(attributes, _ref4) { + var _shortcode3 = _ref4.shortcode; + return getFirstAnchorAttributeFormHTML(_shortcode3.content, 'class'); + } + }, + id: { + type: 'number', + shortcode: function shortcode(_ref5) { + var id = _ref5.named.id; + + if (!id) { + return; + } + + return parseInt(id.replace('attachment_', ''), 10); + } + }, + align: { + type: 'string', + shortcode: function shortcode(_ref6) { + var _ref6$named$align = _ref6.named.align, + align = _ref6$named$align === void 0 ? 'alignnone' : _ref6$named$align; + return align.replace('align', ''); + } + } + } + }] +}; +/* harmony default export */ var image_transforms = (image_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var image_metadata = { + name: "core/image", + category: "common", + attributes: { + align: { + type: "string" + }, + url: { + type: "string", + source: "attribute", + selector: "img", + attribute: "src" + }, + alt: { + type: "string", + source: "attribute", + selector: "img", + attribute: "alt", + "default": "" + }, + caption: { + type: "string", + source: "html", + selector: "figcaption" + }, + href: { + type: "string", + source: "attribute", + selector: "figure > a", + attribute: "href" + }, + rel: { + type: "string", + source: "attribute", + selector: "figure > a", + attribute: "rel" + }, + linkClass: { + type: "string", + source: "attribute", + selector: "figure > a", + attribute: "class" + }, + id: { + type: "number" + }, + width: { + type: "number" + }, + height: { + type: "number" + }, + sizeSlug: { + type: "string" + }, + linkDestination: { + type: "string", + "default": "none" + }, + linkTarget: { + type: "string", + source: "attribute", + selector: "figure > a", + attribute: "target" + } + } +}; + + +var image_name = image_metadata.name; + +var image_settings = { + title: Object(external_this_wp_i18n_["__"])('Image'), + description: Object(external_this_wp_i18n_["__"])('Insert an image to make a visual statement.'), + icon: image_icon, + keywords: ['img', // "img" is not translated as it is intended to reflect the HTML tag. + Object(external_this_wp_i18n_["__"])('photo')], + example: { + attributes: { + sizeSlug: 'large', + url: 'https://upload.wikimedia.org/wikipedia/commons/1/15/MtBlanc1.JPG', + caption: Object(external_this_wp_i18n_["__"])('Mont Blanc appears—still, snowy, and serene.') + } + }, + styles: [{ + name: 'default', + label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), + isDefault: true + }, { + name: 'circle-mask', + label: Object(external_this_wp_i18n_["_x"])('Circle Mask', 'block style') + }], + transforms: image_transforms, + getEditWrapperProps: function getEditWrapperProps(attributes) { + var align = attributes.align, + width = attributes.width; + + if ('left' === align || 'center' === align || 'right' === align || 'wide' === align || 'full' === align) { + return { + 'data-align': align, + 'data-resized': !!width + }; + } + }, + edit: image_edit, + save: image_save_save, + deprecated: image_deprecated +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/deprecated.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +var blockSupports = { + className: false, + anchor: true +}; +var heading_deprecated_blockAttributes = { + align: { + type: 'string' + }, + content: { + type: 'string', + source: 'html', + selector: 'h1,h2,h3,h4,h5,h6', + default: '' + }, + level: { + type: 'number', + default: 2 + }, + placeholder: { + type: 'string' + }, + textColor: { + type: 'string' + }, + customTextColor: { + type: 'string' + } +}; +var heading_deprecated_deprecated = [{ + supports: blockSupports, + attributes: heading_deprecated_blockAttributes, + save: function save(_ref) { + var attributes = _ref.attributes; + var align = attributes.align, + level = attributes.level, + content = attributes.content, + textColor = attributes.textColor, + customTextColor = attributes.customTextColor; + var tagName = 'h' + level; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var className = classnames_default()(Object(defineProperty["a" /* default */])({}, textClass, textClass)); + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + className: className ? className : undefined, + tagName: tagName, + style: { + textAlign: align, + color: textClass ? undefined : customTextColor + }, + value: content + }); + } +}]; +/* harmony default export */ var heading_deprecated = (heading_deprecated_deprecated); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-icon.js + + +/** + * WordPress dependencies + */ + +function HeadingLevelIcon(_ref) { + var level = _ref.level; + var levelToPath = { + 1: 'M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z', + 2: 'M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z', + 3: 'M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z', + 4: 'M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z', + 5: 'M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z', + 6: 'M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z' + }; + + if (!levelToPath.hasOwnProperty(level)) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "20", + height: "20", + viewBox: "0 0 20 20", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: levelToPath[level] + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-toolbar.js + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var heading_toolbar_HeadingToolbar = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(HeadingToolbar, _Component); + + function HeadingToolbar() { + Object(classCallCheck["a" /* default */])(this, HeadingToolbar); + + return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HeadingToolbar).apply(this, arguments)); + } + + Object(createClass["a" /* default */])(HeadingToolbar, [{ + key: "createLevelControl", + value: function createLevelControl(targetLevel, selectedLevel, onChange) { + return { + icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, { + level: targetLevel + }), + // translators: %s: heading level e.g: "1", "2", "3" + title: Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Heading %d'), targetLevel), + isActive: targetLevel === selectedLevel, + onClick: function onClick() { + return onChange(targetLevel); + } + }; + } + }, { + key: "render", + value: function render() { + var _this = this; + + var _this$props = this.props, + _this$props$isCollaps = _this$props.isCollapsed, + isCollapsed = _this$props$isCollaps === void 0 ? true : _this$props$isCollaps, + minLevel = _this$props.minLevel, + maxLevel = _this$props.maxLevel, + selectedLevel = _this$props.selectedLevel, + onChange = _this$props.onChange; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + isCollapsed: isCollapsed, + icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, { + level: selectedLevel + }), + controls: Object(external_lodash_["range"])(minLevel, maxLevel).map(function (index) { + return _this.createLevelControl(index, selectedLevel, onChange); + }) + }); + } + }]); + + return HeadingToolbar; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var heading_toolbar = (heading_toolbar_HeadingToolbar); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/edit.js + + + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + +var HeadingColorUI = Object(external_this_wp_element_["memo"])(function (_ref) { + var textColorValue = _ref.textColorValue, + setTextColor = _ref.setTextColor; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + initialOpen: false, + colorSettings: [{ + value: textColorValue, + onChange: setTextColor, + label: Object(external_this_wp_i18n_["__"])('Text Color') + }] + }); +}); + +function HeadingEdit(_ref2) { + var _classnames; + + var attributes = _ref2.attributes, + setAttributes = _ref2.setAttributes, + mergeBlocks = _ref2.mergeBlocks, + onReplace = _ref2.onReplace, + className = _ref2.className, + textColor = _ref2.textColor, + setTextColor = _ref2.setTextColor; + var align = attributes.align, + content = attributes.content, + level = attributes.level, + placeholder = attributes.placeholder; + var tagName = 'h' + level; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(heading_toolbar, { + minLevel: 2, + maxLevel: 5, + selectedLevel: level, + onChange: function onChange(newLevel) { + return setAttributes({ + level: newLevel + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { + value: align, + onChange: function onChange(nextAlign) { + setAttributes({ + align: nextAlign + }); + } + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Heading Settings') + }, Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Level')), Object(external_this_wp_element_["createElement"])(heading_toolbar, { + isCollapsed: false, + minLevel: 1, + maxLevel: 7, + selectedLevel: level, + onChange: function onChange(newLevel) { + return setAttributes({ + level: newLevel + }); + } + })), Object(external_this_wp_element_["createElement"])(HeadingColorUI, { + setTextColor: setTextColor, + textColorValue: textColor.color + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + identifier: "content", + wrapperClassName: "wp-block-heading", + tagName: tagName, + value: content, + onChange: function onChange(value) { + return setAttributes({ + content: value + }); + }, + onMerge: mergeBlocks, + onSplit: function onSplit(value) { + if (!value) { + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph'); + } + + return Object(external_this_wp_blocks_["createBlock"])('core/heading', Object(objectSpread["a" /* default */])({}, attributes, { + content: value + })); + }, + onReplace: onReplace, + onRemove: function onRemove() { + return onReplace([]); + }, + className: classnames_default()(className, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor.color), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), _classnames)), + placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…'), + style: { + color: textColor.color + } + })); +} + +/* harmony default export */ var heading_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', { + textColor: 'color' +})])(HeadingEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/save.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function heading_save_save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var align = attributes.align, + content = attributes.content, + customTextColor = attributes.customTextColor, + level = attributes.level, + textColor = attributes.textColor; + var tagName = 'h' + level; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), _classnames)); + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + className: className ? className : undefined, + tagName: tagName, + style: { + color: textClass ? undefined : customTextColor + }, + value: content + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/shared.js +/** + * Given a node name string for a heading node, returns its numeric level. + * + * @param {string} nodeName Heading node name. + * + * @return {number} Heading level. + */ +function getLevelFromHeadingNodeName(nodeName) { + return Number(nodeName.substr(1)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/transforms.js + + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var heading_transforms_transforms = { + from: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(_ref) { + var content = _ref.content; + return Object(external_this_wp_blocks_["createBlock"])('core/heading', { + content: content + }); + } + }, { + type: 'raw', + selector: 'h1,h2,h3,h4,h5,h6', + schema: { + h1: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + h2: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + h3: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + h4: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + h5: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + h6: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + }, + transform: function transform(node) { + return Object(external_this_wp_blocks_["createBlock"])('core/heading', Object(objectSpread["a" /* default */])({}, Object(external_this_wp_blocks_["getBlockAttributes"])('core/heading', node.outerHTML), { + level: getLevelFromHeadingNodeName(node.nodeName) + })); + } + }].concat(Object(toConsumableArray["a" /* default */])([2, 3, 4, 5, 6].map(function (level) { + return { + type: 'prefix', + prefix: Array(level + 1).join('#'), + transform: function transform(content) { + return Object(external_this_wp_blocks_["createBlock"])('core/heading', { + level: level, + content: content + }); + } + }; + }))), + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(_ref2) { + var content = _ref2.content; + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: content + }); + } + }] +}; +/* harmony default export */ var heading_transforms = (heading_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var heading_metadata = { + name: "core/heading", + category: "common", + attributes: { + align: { + type: "string" + }, + content: { + type: "string", + source: "html", + selector: "h1,h2,h3,h4,h5,h6", + "default": "" + }, + level: { + type: "number", + "default": 2 + }, + placeholder: { + type: "string" + }, + textColor: { + type: "string" + }, + customTextColor: { + type: "string" + } + } +}; + + +var heading_name = heading_metadata.name; + +var heading_settings = { + title: Object(external_this_wp_i18n_["__"])('Heading'), + description: Object(external_this_wp_i18n_["__"])('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'), + icon: 'heading', + keywords: [Object(external_this_wp_i18n_["__"])('title'), Object(external_this_wp_i18n_["__"])('subtitle')], + supports: { + className: false, + anchor: true + }, + example: { + attributes: { + content: Object(external_this_wp_i18n_["__"])('Code is Poetry'), + level: 2 + } + }, + transforms: heading_transforms, + deprecated: heading_deprecated, + merge: function merge(attributes, attributesToMerge) { + return { + content: (attributes.content || '') + (attributesToMerge.content || '') + }; + }, + edit: heading_edit, + save: heading_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/deprecated.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +var quote_deprecated_blockAttributes = { + value: { + type: 'string', + source: 'html', + selector: 'blockquote', + multiline: 'p', + default: '' + }, + citation: { + type: 'string', + source: 'html', + selector: 'cite', + default: '' + }, + align: { + type: 'string' + } +}; +var quote_deprecated_deprecated = [{ + attributes: quote_deprecated_blockAttributes, + save: function save(_ref) { + var attributes = _ref.attributes; + var align = attributes.align, + value = attributes.value, + citation = attributes.citation; + return Object(external_this_wp_element_["createElement"])("blockquote", { + style: { + textAlign: align ? align : null + } + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + multiline: true, + value: value + }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "cite", + value: citation + })); + } +}, { + attributes: Object(objectSpread["a" /* default */])({}, quote_deprecated_blockAttributes, { + style: { + type: 'number', + default: 1 + } + }), + migrate: function migrate(attributes) { + if (attributes.style === 2) { + return Object(objectSpread["a" /* default */])({}, Object(external_lodash_["omit"])(attributes, ['style']), { + className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large' + }); + } + + return attributes; + }, + save: function save(_ref2) { + var attributes = _ref2.attributes; + var align = attributes.align, + value = attributes.value, + citation = attributes.citation, + style = attributes.style; + return Object(external_this_wp_element_["createElement"])("blockquote", { + className: style === 2 ? 'is-large' : '', + style: { + textAlign: align ? align : null + } + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + multiline: true, + value: value + }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "cite", + value: citation + })); + } +}, { + attributes: Object(objectSpread["a" /* default */])({}, quote_deprecated_blockAttributes, { + citation: { + type: 'string', + source: 'html', + selector: 'footer', + default: '' + }, + style: { + type: 'number', + default: 1 + } + }), + save: function save(_ref3) { + var attributes = _ref3.attributes; + var align = attributes.align, + value = attributes.value, + citation = attributes.citation, + style = attributes.style; + return Object(external_this_wp_element_["createElement"])("blockquote", { + className: "blocks-quote-style-".concat(style), + style: { + textAlign: align ? align : null + } + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + multiline: true, + value: value + }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "footer", + value: citation + })); + } +}]; +/* harmony default export */ var quote_deprecated = (quote_deprecated_deprecated); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/edit.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +function QuoteEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + isSelected = _ref.isSelected, + mergeBlocks = _ref.mergeBlocks, + onReplace = _ref.onReplace, + className = _ref.className; + var align = attributes.align, + value = attributes.value, + citation = attributes.citation; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { + value: align, + onChange: function onChange(nextAlign) { + setAttributes({ + align: nextAlign + }); + } + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BlockQuotation"], { + className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)) + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + identifier: "value", + multiline: true, + value: value, + onChange: function onChange(nextValue) { + return setAttributes({ + value: nextValue + }); + }, + onMerge: mergeBlocks, + onRemove: function onRemove(forward) { + var hasEmptyCitation = !citation || citation.length === 0; + + if (!forward && hasEmptyCitation) { + onReplace([]); + } + }, + placeholder: // translators: placeholder text used for the quote + Object(external_this_wp_i18n_["__"])('Write quote…'), + onReplace: onReplace, + onSplit: function onSplit(piece) { + return Object(external_this_wp_blocks_["createBlock"])('core/quote', Object(objectSpread["a" /* default */])({}, attributes, { + value: piece + })); + }, + __unstableOnSplitMiddle: function __unstableOnSplitMiddle() { + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph'); + } + }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + identifier: "citation", + value: citation, + onChange: function onChange(nextCitation) { + return setAttributes({ + citation: nextCitation + }); + }, + __unstableMobileNoFocusOnMount: true, + placeholder: // translators: placeholder text used for the citation + Object(external_this_wp_i18n_["__"])('Write citation…'), + className: "wp-block-quote__citation" + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var quote_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/save.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function quote_save_save(_ref) { + var attributes = _ref.attributes; + var align = attributes.align, + value = attributes.value, + citation = attributes.citation; + var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)); + return Object(external_this_wp_element_["createElement"])("blockquote", { + className: className + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + multiline: true, + value: value + }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "cite", + value: citation + })); +} + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules +var objectWithoutProperties = __webpack_require__(21); + +// EXTERNAL MODULE: external {"this":["wp","richText"]} +var external_this_wp_richText_ = __webpack_require__(22); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/transforms.js + + + + +/** + * WordPress dependencies + */ + + +var quote_transforms_transforms = { + from: [{ + type: 'block', + isMultiBlock: true, + blocks: ['core/paragraph'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/quote', { + value: Object(external_this_wp_richText_["toHTMLString"])({ + value: Object(external_this_wp_richText_["join"])(attributes.map(function (_ref) { + var content = _ref.content; + return Object(external_this_wp_richText_["create"])({ + html: content + }); + }), "\u2028"), + multilineTag: 'p' + }) + }); + } + }, { + type: 'block', + blocks: ['core/heading'], + transform: function transform(_ref2) { + var content = _ref2.content; + return Object(external_this_wp_blocks_["createBlock"])('core/quote', { + value: "

".concat(content, "

") + }); + } + }, { + type: 'block', + blocks: ['core/pullquote'], + transform: function transform(_ref3) { + var value = _ref3.value, + citation = _ref3.citation; + return Object(external_this_wp_blocks_["createBlock"])('core/quote', { + value: value, + citation: citation + }); + } + }, { + type: 'prefix', + prefix: '>', + transform: function transform(content) { + return Object(external_this_wp_blocks_["createBlock"])('core/quote', { + value: "

".concat(content, "

") + }); + } + }, { + type: 'raw', + isMatch: function isMatch(node) { + var isParagraphOrSingleCite = function () { + var hasCitation = false; + return function (child) { + // Child is a paragraph. + if (child.nodeName === 'P') { + return true; + } // Child is a cite and no other cite child exists before it. + + + if (!hasCitation && child.nodeName === 'CITE') { + hasCitation = true; + return true; + } + }; + }(); + + return node.nodeName === 'BLOCKQUOTE' && // The quote block can only handle multiline paragraph + // content with an optional cite child. + Array.from(node.childNodes).every(isParagraphOrSingleCite); + }, + schema: { + blockquote: { + children: { + p: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + cite: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + } + } + } + }], + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(_ref4) { + var value = _ref4.value, + citation = _ref4.citation; + var paragraphs = []; + + if (value && value !== '

') { + paragraphs.push.apply(paragraphs, Object(toConsumableArray["a" /* default */])(Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({ + html: value, + multilineTag: 'p' + }), "\u2028").map(function (piece) { + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: Object(external_this_wp_richText_["toHTMLString"])({ + value: piece + }) + }); + }))); + } + + if (citation && citation !== '

') { + paragraphs.push(Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: citation + })); + } + + if (paragraphs.length === 0) { + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: '' + }); + } + + return paragraphs; + } + }, { + type: 'block', + blocks: ['core/heading'], + transform: function transform(_ref5) { + var value = _ref5.value, + citation = _ref5.citation, + attrs = Object(objectWithoutProperties["a" /* default */])(_ref5, ["value", "citation"]); + + // If there is no quote content, use the citation as the + // content of the resulting heading. A nonexistent citation + // will result in an empty heading. + if (value === '

') { + return Object(external_this_wp_blocks_["createBlock"])('core/heading', { + content: citation + }); + } + + var pieces = Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({ + html: value, + multilineTag: 'p' + }), "\u2028"); + var headingBlock = Object(external_this_wp_blocks_["createBlock"])('core/heading', { + content: Object(external_this_wp_richText_["toHTMLString"])({ + value: pieces[0] + }) + }); + + if (!citation && pieces.length === 1) { + return headingBlock; + } + + var quotePieces = pieces.slice(1); + var quoteBlock = Object(external_this_wp_blocks_["createBlock"])('core/quote', Object(objectSpread["a" /* default */])({}, attrs, { + citation: citation, + value: Object(external_this_wp_richText_["toHTMLString"])({ + value: quotePieces.length ? Object(external_this_wp_richText_["join"])(pieces.slice(1), "\u2028") : Object(external_this_wp_richText_["create"])(), + multilineTag: 'p' + }) + })); + return [headingBlock, quoteBlock]; + } + }, { + type: 'block', + blocks: ['core/pullquote'], + transform: function transform(_ref6) { + var value = _ref6.value, + citation = _ref6.citation; + return Object(external_this_wp_blocks_["createBlock"])('core/pullquote', { + value: value, + citation: citation + }); + } + }] +}; +/* harmony default export */ var quote_transforms = (quote_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/index.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var quote_metadata = { + name: "core/quote", + category: "common", + attributes: { + value: { + type: "string", + source: "html", + selector: "blockquote", + multiline: "p", + "default": "" + }, + citation: { + type: "string", + source: "html", + selector: "cite", + "default": "" + }, + align: { + type: "string" + } + } +}; + + +var quote_name = quote_metadata.name; + +var quote_settings = { + title: Object(external_this_wp_i18n_["__"])('Quote'), + description: Object(external_this_wp_i18n_["__"])('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'), + icon: quote_icon, + keywords: [Object(external_this_wp_i18n_["__"])('blockquote'), Object(external_this_wp_i18n_["__"])('cite')], + example: { + attributes: { + value: '

' + Object(external_this_wp_i18n_["__"])('In quoting others, we cite ourselves.') + '

', + citation: 'Julio Cortázar', + className: 'is-style-large' + } + }, + styles: [{ + name: 'default', + label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), + isDefault: true + }, { + name: 'large', + label: Object(external_this_wp_i18n_["_x"])('Large', 'block style') + }], + transforms: quote_transforms, + edit: QuoteEdit, + save: quote_save_save, + merge: function merge(attributes, _ref) { + var value = _ref.value, + citation = _ref.citation; + + // Quote citations cannot be merged. Pick the second one unless it's + // empty. + if (!citation) { + citation = attributes.citation; + } + + if (!value || value === '

') { + return Object(objectSpread["a" /* default */])({}, attributes, { + citation: citation + }); + } + + return Object(objectSpread["a" /* default */])({}, attributes, { + value: attributes.value + value, + citation: citation + }); + }, + deprecated: quote_deprecated +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/shared.js +/** + * External dependencies + */ + +function defaultColumnsNumber(attributes) { + return Math.min(3, attributes.images.length); +} +var shared_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) { + var imageProps = Object(external_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']); + imageProps.url = Object(external_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url; + var fullUrl = Object(external_lodash_["get"])(image, ['sizes', 'full', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'full', 'source_url']); + + if (fullUrl) { + imageProps.fullUrl = fullUrl; + } + + return imageProps; +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/deprecated.js + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var gallery_deprecated_deprecated = [{ + attributes: { + images: { + type: 'array', + default: [], + source: 'query', + selector: 'ul.wp-block-gallery .blocks-gallery-item', + query: { + url: { + source: 'attribute', + selector: 'img', + attribute: 'src' + }, + fullUrl: { + source: 'attribute', + selector: 'img', + attribute: 'data-full-url' + }, + alt: { + source: 'attribute', + selector: 'img', + attribute: 'alt', + default: '' + }, + id: { + source: 'attribute', + selector: 'img', + attribute: 'data-id' + }, + link: { + source: 'attribute', + selector: 'img', + attribute: 'data-link' + }, + caption: { + type: 'array', + source: 'children', + selector: 'figcaption' + } + } + }, + ids: { + type: 'array', + default: [] + }, + columns: { + type: 'number' + }, + imageCrop: { + type: 'boolean', + default: true + }, + linkTo: { + type: 'string', + default: 'none' + } + }, + save: function save(_ref) { + var attributes = _ref.attributes; + var images = attributes.images, + _attributes$columns = attributes.columns, + columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, + imageCrop = attributes.imageCrop, + linkTo = attributes.linkTo; + return Object(external_this_wp_element_["createElement"])("ul", { + className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') + }, images.map(function (image) { + var href; + + switch (linkTo) { + case 'media': + href = image.fullUrl || image.url; + break; + + case 'attachment': + href = image.link; + break; + } + + var img = Object(external_this_wp_element_["createElement"])("img", { + src: image.url, + alt: image.alt, + "data-id": image.id, + "data-full-url": image.fullUrl, + "data-link": image.link, + className: image.id ? "wp-image-".concat(image.id) : null + }); + return Object(external_this_wp_element_["createElement"])("li", { + key: image.id || image.url, + className: "blocks-gallery-item" + }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: image.caption + }))); + })); + } +}, { + attributes: { + images: { + type: 'array', + default: [], + source: 'query', + selector: 'ul.wp-block-gallery .blocks-gallery-item', + query: { + url: { + source: 'attribute', + selector: 'img', + attribute: 'src' + }, + alt: { + source: 'attribute', + selector: 'img', + attribute: 'alt', + default: '' + }, + id: { + source: 'attribute', + selector: 'img', + attribute: 'data-id' + }, + link: { + source: 'attribute', + selector: 'img', + attribute: 'data-link' + }, + caption: { + type: 'array', + source: 'children', + selector: 'figcaption' + } + } + }, + columns: { + type: 'number' + }, + imageCrop: { + type: 'boolean', + default: true + }, + linkTo: { + type: 'string', + default: 'none' + } + }, + isEligible: function isEligible(_ref2) { + var images = _ref2.images, + ids = _ref2.ids; + return images && images.length > 0 && (!ids && images || ids && images && ids.length !== images.length || Object(external_lodash_["some"])(images, function (id, index) { + if (!id && ids[index] !== null) { + return true; + } + + return parseInt(id, 10) !== ids[index]; + })); + }, + migrate: function migrate(attributes) { + return Object(objectSpread["a" /* default */])({}, attributes, { + ids: Object(external_lodash_["map"])(attributes.images, function (_ref3) { + var id = _ref3.id; + + if (!id) { + return null; + } + + return parseInt(id, 10); + }) + }); + }, + save: function save(_ref4) { + var attributes = _ref4.attributes; + var images = attributes.images, + _attributes$columns2 = attributes.columns, + columns = _attributes$columns2 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns2, + imageCrop = attributes.imageCrop, + linkTo = attributes.linkTo; + return Object(external_this_wp_element_["createElement"])("ul", { + className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') + }, images.map(function (image) { + var href; + + switch (linkTo) { + case 'media': + href = image.url; + break; + + case 'attachment': + href = image.link; + break; + } + + var img = Object(external_this_wp_element_["createElement"])("img", { + src: image.url, + alt: image.alt, + "data-id": image.id, + "data-link": image.link, + className: image.id ? "wp-image-".concat(image.id) : null + }); + return Object(external_this_wp_element_["createElement"])("li", { + key: image.id || image.url, + className: "blocks-gallery-item" + }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: image.caption + }))); + })); + } +}, { + attributes: { + images: { + type: 'array', + default: [], + source: 'query', + selector: 'div.wp-block-gallery figure.blocks-gallery-image img', + query: { + url: { + source: 'attribute', + attribute: 'src' + }, + alt: { + source: 'attribute', + attribute: 'alt', + default: '' + }, + id: { + source: 'attribute', + attribute: 'data-id' + } + } + }, + columns: { + type: 'number' + }, + imageCrop: { + type: 'boolean', + default: true + }, + linkTo: { + type: 'string', + default: 'none' + }, + align: { + type: 'string', + default: 'none' + } + }, + save: function save(_ref5) { + var attributes = _ref5.attributes; + var images = attributes.images, + _attributes$columns3 = attributes.columns, + columns = _attributes$columns3 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns3, + align = attributes.align, + imageCrop = attributes.imageCrop, + linkTo = attributes.linkTo; + var className = classnames_default()("columns-".concat(columns), { + alignnone: align === 'none', + 'is-cropped': imageCrop + }); + return Object(external_this_wp_element_["createElement"])("div", { + className: className + }, images.map(function (image) { + var href; + + switch (linkTo) { + case 'media': + href = image.url; + break; + + case 'attachment': + href = image.link; + break; + } + + var img = Object(external_this_wp_element_["createElement"])("img", { + src: image.url, + alt: image.alt, + "data-id": image.id + }); + return Object(external_this_wp_element_["createElement"])("figure", { + key: image.id || image.url, + className: "blocks-gallery-image" + }, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img); + })); + } +}]; +/* harmony default export */ var gallery_deprecated = (gallery_deprecated_deprecated); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/icons.js + + +/** + * WordPress dependencies + */ + +var icons_icon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z" +}))); +var leftArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "18", + height: "18", + viewBox: "0 0 18 18", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z" +})); +var rightArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "18", + height: "18", + viewBox: "0 0 18 18", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z" +})); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +/** + * Internal dependencies + */ + + + +var gallery_image_GalleryImage = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(GalleryImage, _Component); + + function GalleryImage() { + var _this; + + Object(classCallCheck["a" /* default */])(this, GalleryImage); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryImage).apply(this, arguments)); + _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSelectCaption = _this.onSelectCaption.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + captionSelected: false + }; + return _this; + } + + Object(createClass["a" /* default */])(GalleryImage, [{ + key: "bindContainer", + value: function bindContainer(ref) { + this.container = ref; + } + }, { + key: "onSelectCaption", + value: function onSelectCaption() { + if (!this.state.captionSelected) { + this.setState({ + captionSelected: true + }); + } + + if (!this.props.isSelected) { + this.props.onSelect(); + } + } + }, { + key: "onSelectImage", + value: function onSelectImage() { + if (!this.props.isSelected) { + this.props.onSelect(); + } + + if (this.state.captionSelected) { + this.setState({ + captionSelected: false + }); + } + } + }, { + key: "onRemoveImage", + value: function onRemoveImage(event) { + if (this.container === document.activeElement && this.props.isSelected && [external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["DELETE"]].indexOf(event.keyCode) !== -1) { + event.stopPropagation(); + event.preventDefault(); + this.props.onRemove(); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props = this.props, + isSelected = _this$props.isSelected, + image = _this$props.image, + url = _this$props.url; + + if (image && !url) { + this.props.setAttributes({ + url: image.source_url, + alt: image.alt_text + }); + } // unselect the caption so when the user selects other image and comeback + // the caption is not immediately selected + + + if (this.state.captionSelected && !isSelected && prevProps.isSelected) { + this.setState({ + captionSelected: false + }); + } + } + }, { + key: "render", + value: function render() { + var _this$props2 = this.props, + url = _this$props2.url, + alt = _this$props2.alt, + id = _this$props2.id, + linkTo = _this$props2.linkTo, + link = _this$props2.link, + isFirstItem = _this$props2.isFirstItem, + isLastItem = _this$props2.isLastItem, + isSelected = _this$props2.isSelected, + caption = _this$props2.caption, + onRemove = _this$props2.onRemove, + onMoveForward = _this$props2.onMoveForward, + onMoveBackward = _this$props2.onMoveBackward, + setAttributes = _this$props2.setAttributes, + ariaLabel = _this$props2['aria-label']; + var href; + + switch (linkTo) { + case 'media': + href = url; + break; + + case 'attachment': + href = link; + break; + } + + var img = // Disable reason: Image itself is not meant to be interactive, but should + // direct image selection and unfocus caption fields. + + /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ + Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", { + src: url, + alt: alt, + "data-id": id, + onClick: this.onSelectImage, + onFocus: this.onSelectImage, + onKeyDown: this.onRemoveImage, + tabIndex: "0", + "aria-label": ariaLabel, + ref: this.bindContainer + }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)) + /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */ + ; + var className = classnames_default()({ + 'is-selected': isSelected, + 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url) + }); + return Object(external_this_wp_element_["createElement"])("figure", { + className: className + }, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img, Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-gallery-item__move-menu" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: leftArrow, + onClick: isFirstItem ? undefined : onMoveBackward, + className: "blocks-gallery-item__move-backward", + label: Object(external_this_wp_i18n_["__"])('Move image backward'), + "aria-disabled": isFirstItem, + disabled: !isSelected + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: rightArrow, + onClick: isLastItem ? undefined : onMoveForward, + className: "blocks-gallery-item__move-forward", + label: Object(external_this_wp_i18n_["__"])('Move image forward'), + "aria-disabled": isLastItem, + disabled: !isSelected + })), Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-gallery-item__inline-menu" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: "no-alt", + onClick: onRemove, + className: "blocks-gallery-item__remove", + label: Object(external_this_wp_i18n_["__"])('Remove image'), + disabled: !isSelected + })), (isSelected || caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: isSelected ? Object(external_this_wp_i18n_["__"])('Write caption…') : null, + value: caption, + isSelected: this.state.captionSelected, + onChange: function onChange(newCaption) { + return setAttributes({ + caption: newCaption + }); + }, + unstableOnFocus: this.onSelectCaption, + inlineToolbar: true + })); + } + }]); + + return GalleryImage; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var gallery_image = (Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var _select = select('core'), + getMedia = _select.getMedia; + + var id = ownProps.id; + return { + image: id ? getMedia(id) : null + }; +})(gallery_image_GalleryImage)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/edit.js + + + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + + +/** + * Internal dependencies + */ + + + + +var MAX_COLUMNS = 8; +var linkOptions = [{ + value: 'attachment', + label: Object(external_this_wp_i18n_["__"])('Attachment Page') +}, { + value: 'media', + label: Object(external_this_wp_i18n_["__"])('Media File') +}, { + value: 'none', + label: Object(external_this_wp_i18n_["__"])('None') +}]; +var edit_ALLOWED_MEDIA_TYPES = ['image']; + +var edit_GalleryEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(GalleryEdit, _Component); + + function GalleryEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, GalleryEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryEdit).apply(this, arguments)); + _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSelectImages = _this.onSelectImages.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.setLinkTo = _this.setLinkTo.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.setColumnsNumber = _this.setColumnsNumber.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.toggleImageCrop = _this.toggleImageCrop.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onMove = _this.onMove.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onMoveForward = _this.onMoveForward.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onMoveBackward = _this.onMoveBackward.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.setImageAttributes = _this.setImageAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.setAttributes = _this.setAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onFocusGalleryCaption = _this.onFocusGalleryCaption.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + selectedImage: null, + attachmentCaptions: null + }; + return _this; + } + + Object(createClass["a" /* default */])(GalleryEdit, [{ + key: "setAttributes", + value: function setAttributes(attributes) { + if (attributes.ids) { + throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes'); + } + + if (attributes.images) { + attributes = Object(objectSpread["a" /* default */])({}, attributes, { + ids: Object(external_lodash_["map"])(attributes.images, 'id') + }); + } + + this.props.setAttributes(attributes); + } + }, { + key: "onSelectImage", + value: function onSelectImage(index) { + var _this2 = this; + + return function () { + if (_this2.state.selectedImage !== index) { + _this2.setState({ + selectedImage: index + }); + } + }; + } + }, { + key: "onMove", + value: function onMove(oldIndex, newIndex) { + var images = Object(toConsumableArray["a" /* default */])(this.props.attributes.images); + + images.splice(newIndex, 1, this.props.attributes.images[oldIndex]); + images.splice(oldIndex, 1, this.props.attributes.images[newIndex]); + this.setState({ + selectedImage: newIndex + }); + this.setAttributes({ + images: images + }); + } + }, { + key: "onMoveForward", + value: function onMoveForward(oldIndex) { + var _this3 = this; + + return function () { + if (oldIndex === _this3.props.attributes.images.length - 1) { + return; + } + + _this3.onMove(oldIndex, oldIndex + 1); + }; + } + }, { + key: "onMoveBackward", + value: function onMoveBackward(oldIndex) { + var _this4 = this; + + return function () { + if (oldIndex === 0) { + return; + } + + _this4.onMove(oldIndex, oldIndex - 1); + }; + } + }, { + key: "onRemoveImage", + value: function onRemoveImage(index) { + var _this5 = this; + + return function () { + var images = Object(external_lodash_["filter"])(_this5.props.attributes.images, function (img, i) { + return index !== i; + }); + var columns = _this5.props.attributes.columns; + + _this5.setState({ + selectedImage: null + }); + + _this5.setAttributes({ + images: images, + columns: columns ? Math.min(images.length, columns) : columns + }); + }; + } + }, { + key: "selectCaption", + value: function selectCaption(newImage, images, attachmentCaptions) { + var currentImage = Object(external_lodash_["find"])(images, { + id: newImage.id + }); + var currentImageCaption = currentImage ? currentImage.caption : newImage.caption; + + if (!attachmentCaptions) { + return currentImageCaption; + } + + var attachment = Object(external_lodash_["find"])(attachmentCaptions, { + id: newImage.id + }); // if the attachment caption is updated + + if (attachment && attachment.caption !== newImage.caption) { + return newImage.caption; + } + + return currentImageCaption; + } + }, { + key: "onSelectImages", + value: function onSelectImages(newImages) { + var _this6 = this; + + var _this$props$attribute = this.props.attributes, + columns = _this$props$attribute.columns, + images = _this$props$attribute.images; + var attachmentCaptions = this.state.attachmentCaptions; + this.setState({ + attachmentCaptions: newImages.map(function (newImage) { + return { + id: newImage.id, + caption: newImage.caption + }; + }) + }); + this.setAttributes({ + images: newImages.map(function (newImage) { + return Object(objectSpread["a" /* default */])({}, shared_pickRelevantMediaFiles(newImage), { + caption: _this6.selectCaption(newImage, images, attachmentCaptions) + }); + }), + columns: columns ? Math.min(newImages.length, columns) : columns + }); + } + }, { + key: "onUploadError", + value: function onUploadError(message) { + var noticeOperations = this.props.noticeOperations; + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + } + }, { + key: "setLinkTo", + value: function setLinkTo(value) { + this.setAttributes({ + linkTo: value + }); + } + }, { + key: "setColumnsNumber", + value: function setColumnsNumber(value) { + this.setAttributes({ + columns: value + }); + } + }, { + key: "toggleImageCrop", + value: function toggleImageCrop() { + this.setAttributes({ + imageCrop: !this.props.attributes.imageCrop + }); + } + }, { + key: "getImageCropHelp", + value: function getImageCropHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('Thumbnails are cropped to align.') : Object(external_this_wp_i18n_["__"])('Thumbnails are not cropped.'); + } + }, { + key: "onFocusGalleryCaption", + value: function onFocusGalleryCaption() { + this.setState({ + selectedImage: null + }); + } + }, { + key: "setImageAttributes", + value: function setImageAttributes(index, attributes) { + var images = this.props.attributes.images; + var setAttributes = this.setAttributes; + + if (!images[index]) { + return; + } + + setAttributes({ + images: [].concat(Object(toConsumableArray["a" /* default */])(images.slice(0, index)), [Object(objectSpread["a" /* default */])({}, images[index], attributes)], Object(toConsumableArray["a" /* default */])(images.slice(index + 1))) + }); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + var _this$props = this.props, + attributes = _this$props.attributes, + mediaUpload = _this$props.mediaUpload; + var images = attributes.images; + + if (Object(external_lodash_["every"])(images, function (_ref) { + var url = _ref.url; + return Object(external_this_wp_blob_["isBlobURL"])(url); + })) { + var filesList = Object(external_lodash_["map"])(images, function (_ref2) { + var url = _ref2.url; + return Object(external_this_wp_blob_["getBlobByURL"])(url); + }); + Object(external_lodash_["forEach"])(images, function (_ref3) { + var url = _ref3.url; + return Object(external_this_wp_blob_["revokeBlobURL"])(url); + }); + mediaUpload({ + filesList: filesList, + onFileChange: this.onSelectImages, + allowedTypes: ['image'] + }); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + // Deselect images when deselecting the block + if (!this.props.isSelected && prevProps.isSelected) { + this.setState({ + selectedImage: null, + captionSelected: false + }); + } + } + }, { + key: "render", + value: function render() { + var _classnames, + _this7 = this; + + var _this$props2 = this.props, + attributes = _this$props2.attributes, + className = _this$props2.className, + isSelected = _this$props2.isSelected, + noticeUI = _this$props2.noticeUI, + setAttributes = _this$props2.setAttributes; + var align = attributes.align, + _attributes$columns = attributes.columns, + columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, + caption = attributes.caption, + imageCrop = attributes.imageCrop, + images = attributes.images, + linkTo = attributes.linkTo; + var hasImages = !!images.length; + var hasImagesWithId = hasImages && Object(external_lodash_["some"])(images, function (_ref4) { + var id = _ref4.id; + return id; + }); + var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + addToGallery: hasImagesWithId, + isAppender: hasImages, + className: className, + dropZoneUIOnly: hasImages && !isSelected, + icon: !hasImages && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: icons_icon + }), + labels: { + title: !hasImages && Object(external_this_wp_i18n_["__"])('Gallery'), + instructions: !hasImages && Object(external_this_wp_i18n_["__"])('Drag images, upload new ones or select files from your library.') + }, + onSelect: this.onSelectImages, + accept: "image/*", + allowedTypes: edit_ALLOWED_MEDIA_TYPES, + multiple: true, + value: hasImagesWithId ? images : undefined, + onError: this.onUploadError, + notices: hasImages ? undefined : noticeUI + }); + + if (!hasImages) { + return mediaPlaceholder; + } + + var captionClassNames = classnames_default()('blocks-gallery-caption', { + 'screen-reader-text': !isSelected && external_this_wp_blockEditor_["RichText"].isEmpty(caption) + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Gallery Settings') + }, images.length > 1 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Columns'), + value: columns, + onChange: this.setColumnsNumber, + min: 1, + max: Math.min(MAX_COLUMNS, images.length), + required: true + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Crop Images'), + checked: !!imageCrop, + onChange: this.toggleImageCrop, + help: this.getImageCropHelp + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Link To'), + value: linkTo, + onChange: this.setLinkTo, + options: linkOptions + }))), noticeUI, Object(external_this_wp_element_["createElement"])("figure", { + className: classnames_default()(className, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "columns-".concat(columns), columns), Object(defineProperty["a" /* default */])(_classnames, 'is-cropped', imageCrop), _classnames)) + }, Object(external_this_wp_element_["createElement"])("ul", { + className: "blocks-gallery-grid" + }, images.map(function (img, index) { + /* translators: %1$d is the order number of the image, %2$d is the total number of images. */ + var ariaLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('image %1$d of %2$d in gallery'), index + 1, images.length); + return Object(external_this_wp_element_["createElement"])("li", { + className: "blocks-gallery-item", + key: img.id || img.url + }, Object(external_this_wp_element_["createElement"])(gallery_image, { + url: img.url, + alt: img.alt, + id: img.id, + isFirstItem: index === 0, + isLastItem: index + 1 === images.length, + isSelected: isSelected && _this7.state.selectedImage === index, + onMoveBackward: _this7.onMoveBackward(index), + onMoveForward: _this7.onMoveForward(index), + onRemove: _this7.onRemoveImage(index), + onSelect: _this7.onSelectImage(index), + setAttributes: function setAttributes(attrs) { + return _this7.setImageAttributes(index, attrs); + }, + caption: img.caption, + "aria-label": ariaLabel + })); + })), mediaPlaceholder, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + className: captionClassNames, + placeholder: Object(external_this_wp_i18n_["__"])('Write gallery caption…'), + value: caption, + unstableOnFocus: this.onFocusGalleryCaption, + onChange: function onChange(value) { + return setAttributes({ + caption: value + }); + }, + inlineToolbar: true + }))); + } + }]); + + return GalleryEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var gallery_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + var _getSettings = getSettings(), + __experimentalMediaUpload = _getSettings.__experimentalMediaUpload; + + return { + mediaUpload: __experimentalMediaUpload + }; +}), external_this_wp_components_["withNotices"]])(edit_GalleryEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/save.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +function gallery_save_save(_ref) { + var attributes = _ref.attributes; + var images = attributes.images, + _attributes$columns = attributes.columns, + columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, + imageCrop = attributes.imageCrop, + caption = attributes.caption, + linkTo = attributes.linkTo; + return Object(external_this_wp_element_["createElement"])("figure", { + className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') + }, Object(external_this_wp_element_["createElement"])("ul", { + className: "blocks-gallery-grid" + }, images.map(function (image) { + var href; + + switch (linkTo) { + case 'media': + href = image.fullUrl || image.url; + break; + + case 'attachment': + href = image.link; + break; + } + + var img = Object(external_this_wp_element_["createElement"])("img", { + src: image.url, + alt: image.alt, + "data-id": image.id, + "data-full-url": image.fullUrl, + "data-link": image.link, + className: image.id ? "wp-image-".concat(image.id) : null + }); + return Object(external_this_wp_element_["createElement"])("li", { + key: image.id || image.url, + className: "blocks-gallery-item" + }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img, !external_this_wp_blockEditor_["RichText"].isEmpty(image.caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + className: "blocks-gallery-item__caption", + value: image.caption + }))); + })), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + className: "blocks-gallery-caption", + value: caption + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/transforms.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var parseShortcodeIds = function parseShortcodeIds(ids) { + if (!ids) { + return []; + } + + return ids.split(',').map(function (id) { + return parseInt(id, 10); + }); +}; + +var gallery_transforms_transforms = { + from: [{ + type: 'block', + isMultiBlock: true, + blocks: ['core/image'], + transform: function transform(attributes) { + // Init the align attribute from the first item which may be either the placeholder or an image. + var align = attributes[0].align; // Loop through all the images and check if they have the same align. + + align = Object(external_lodash_["every"])(attributes, ['align', align]) ? align : undefined; + var validImages = Object(external_lodash_["filter"])(attributes, function (_ref) { + var url = _ref.url; + return url; + }); + return Object(external_this_wp_blocks_["createBlock"])('core/gallery', { + images: validImages.map(function (_ref2) { + var id = _ref2.id, + url = _ref2.url, + alt = _ref2.alt, + caption = _ref2.caption; + return { + id: id, + url: url, + alt: alt, + caption: caption + }; + }), + ids: validImages.map(function (_ref3) { + var id = _ref3.id; + return id; + }), + align: align + }); + } + }, { + type: 'shortcode', + tag: 'gallery', + attributes: { + images: { + type: 'array', + shortcode: function shortcode(_ref4) { + var ids = _ref4.named.ids; + return parseShortcodeIds(ids).map(function (id) { + return { + id: id + }; + }); + } + }, + ids: { + type: 'array', + shortcode: function shortcode(_ref5) { + var ids = _ref5.named.ids; + return parseShortcodeIds(ids); + } + }, + columns: { + type: 'number', + shortcode: function shortcode(_ref6) { + var _ref6$named$columns = _ref6.named.columns, + columns = _ref6$named$columns === void 0 ? '3' : _ref6$named$columns; + return parseInt(columns, 10); + } + }, + linkTo: { + type: 'string', + shortcode: function shortcode(_ref7) { + var _ref7$named$link = _ref7.named.link, + link = _ref7$named$link === void 0 ? 'attachment' : _ref7$named$link; + return link === 'file' ? 'media' : link; + } + } + } + }, { + // When created by drag and dropping multiple files on an insertion point + type: 'files', + isMatch: function isMatch(files) { + return files.length !== 1 && Object(external_lodash_["every"])(files, function (file) { + return file.type.indexOf('image/') === 0; + }); + }, + transform: function transform(files) { + var block = Object(external_this_wp_blocks_["createBlock"])('core/gallery', { + images: files.map(function (file) { + return shared_pickRelevantMediaFiles({ + url: Object(external_this_wp_blob_["createBlobURL"])(file) + }); + }) + }); + return block; + } + }], + to: [{ + type: 'block', + blocks: ['core/image'], + transform: function transform(_ref8) { + var images = _ref8.images, + align = _ref8.align; + + if (images.length > 0) { + return images.map(function (_ref9) { + var id = _ref9.id, + url = _ref9.url, + alt = _ref9.alt, + caption = _ref9.caption; + return Object(external_this_wp_blocks_["createBlock"])('core/image', { + id: id, + url: url, + alt: alt, + caption: caption, + align: align + }); + }); + } + + return Object(external_this_wp_blocks_["createBlock"])('core/image', { + align: align + }); + } + }] +}; +/* harmony default export */ var gallery_transforms = (gallery_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var gallery_metadata = { + name: "core/gallery", + category: "common", + attributes: { + images: { + type: "array", + "default": [], + source: "query", + selector: ".blocks-gallery-item", + query: { + url: { + source: "attribute", + selector: "img", + attribute: "src" + }, + fullUrl: { + source: "attribute", + selector: "img", + attribute: "data-full-url" + }, + link: { + source: "attribute", + selector: "img", + attribute: "data-link" + }, + alt: { + source: "attribute", + selector: "img", + attribute: "alt", + "default": "" + }, + id: { + source: "attribute", + selector: "img", + attribute: "data-id" + }, + caption: { + type: "string", + source: "html", + selector: ".blocks-gallery-item__caption" + } + } + }, + ids: { + type: "array", + "default": [] + }, + columns: { + type: "number" + }, + caption: { + type: "string", + source: "html", + selector: ".blocks-gallery-caption" + }, + imageCrop: { + type: "boolean", + "default": true + }, + linkTo: { + type: "string", + "default": "none" + } + } +}; + + +var gallery_name = gallery_metadata.name; + +var gallery_settings = { + title: Object(external_this_wp_i18n_["__"])('Gallery'), + description: Object(external_this_wp_i18n_["__"])('Display multiple images in a rich gallery.'), + icon: icons_icon, + keywords: [Object(external_this_wp_i18n_["__"])('images'), Object(external_this_wp_i18n_["__"])('photos')], + example: { + attributes: { + columns: 2, + images: [{ + url: 'https://upload.wikimedia.org/wikipedia/commons/c/c3/Glacial_lakes%2C_Bhutan.jpg' + }, { + url: 'https://upload.wikimedia.org/wikipedia/commons/0/01/Sediment_off_the_Yucatan_Peninsula.jpg' + }] + } + }, + supports: { + align: true + }, + transforms: gallery_transforms, + edit: gallery_edit, + save: gallery_save_save, + deprecated: gallery_deprecated +}; + +// EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} +var external_this_wp_serverSideRender_ = __webpack_require__(53); +var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/edit.js + + +/** + * WordPress dependencies + */ + + + + +function ArchivesEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes; + var showPostCounts = attributes.showPostCounts, + displayAsDropdown = attributes.displayAsDropdown; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Archives Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display as Dropdown'), + checked: displayAsDropdown, + onChange: function onChange() { + return setAttributes({ + displayAsDropdown: !displayAsDropdown + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show Post Counts'), + checked: showPostCounts, + onChange: function onChange() { + return setAttributes({ + showPostCounts: !showPostCounts + }); + } + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + block: "core/archives", + attributes: attributes + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var archives_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var archives_name = 'core/archives'; +var archives_settings = { + title: Object(external_this_wp_i18n_["__"])('Archives'), + description: Object(external_this_wp_i18n_["__"])('Display a monthly archive of your posts.'), + icon: archives_icon, + category: 'widgets', + supports: { + align: true, + html: false + }, + edit: ArchivesEdit +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var audio_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/edit.js + + + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + +/** + * Internal dependencies + */ + + +var audio_edit_ALLOWED_MEDIA_TYPES = ['audio']; + +var edit_AudioEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(AudioEdit, _Component); + + function AudioEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, AudioEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(AudioEdit).apply(this, arguments)); // edit component has its own src in the state so it can be edited + // without setting the actual value outside of the edit UI + + _this.state = { + editing: !_this.props.attributes.src + }; + _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(AudioEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + mediaUpload = _this$props.mediaUpload, + noticeOperations = _this$props.noticeOperations, + setAttributes = _this$props.setAttributes; + var id = attributes.id, + _attributes$src = attributes.src, + src = _attributes$src === void 0 ? '' : _attributes$src; + + if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { + var file = Object(external_this_wp_blob_["getBlobByURL"])(src); + + if (file) { + mediaUpload({ + filesList: [file], + onFileChange: function onFileChange(_ref) { + var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), + _ref2$ = _ref2[0], + mediaId = _ref2$.id, + url = _ref2$.url; + + setAttributes({ + id: mediaId, + src: url + }); + }, + onError: function onError(e) { + setAttributes({ + src: undefined, + id: undefined + }); + + _this2.setState({ + editing: true + }); + + noticeOperations.createErrorNotice(e); + }, + allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES + }); + } + } + } + }, { + key: "toggleAttribute", + value: function toggleAttribute(attribute) { + var _this3 = this; + + return function (newValue) { + _this3.props.setAttributes(Object(defineProperty["a" /* default */])({}, attribute, newValue)); + }; + } + }, { + key: "onSelectURL", + value: function onSelectURL(newSrc) { + var _this$props2 = this.props, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes; + var src = attributes.src; // Set the block's src from the edit component's state, and switch off + // the editing UI. + + if (newSrc !== src) { + // Check if there's an embed block that handles this URL. + var embedBlock = util_createUpgradedEmbedBlock({ + attributes: { + url: newSrc + } + }); + + if (undefined !== embedBlock) { + this.props.onReplace(embedBlock); + return; + } + + setAttributes({ + src: newSrc, + id: undefined + }); + } + + this.setState({ + editing: false + }); + } + }, { + key: "onUploadError", + value: function onUploadError(message) { + var noticeOperations = this.props.noticeOperations; + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + } + }, { + key: "getAutoplayHelp", + value: function getAutoplayHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('Note: Autoplaying audio may cause usability issues for some visitors.') : null; + } + }, { + key: "render", + value: function render() { + var _this4 = this; + + var _this$props$attribute = this.props.attributes, + autoplay = _this$props$attribute.autoplay, + caption = _this$props$attribute.caption, + loop = _this$props$attribute.loop, + preload = _this$props$attribute.preload, + src = _this$props$attribute.src; + var _this$props3 = this.props, + setAttributes = _this$props3.setAttributes, + isSelected = _this$props3.isSelected, + className = _this$props3.className, + noticeUI = _this$props3.noticeUI; + var editing = this.state.editing; + + var switchToEditing = function switchToEditing() { + _this4.setState({ + editing: true + }); + }; + + var onSelectAudio = function onSelectAudio(media) { + if (!media || !media.url) { + // in this case there was an error and we should continue in the editing state + // previous attributes should be removed because they may be temporary blob urls + setAttributes({ + src: undefined, + id: undefined + }); + switchToEditing(); + return; + } // sets the block's attribute and updates the edit component from the + // selected media, then switches off the editing UI + + + setAttributes({ + src: media.url, + id: media.id + }); + + _this4.setState({ + src: media.url, + editing: false + }); + }; + + if (editing) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: audio_icon + }), + className: className, + onSelect: onSelectAudio, + onSelectURL: this.onSelectURL, + accept: "audio/*", + allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES, + value: this.props.attributes, + notices: noticeUI, + onError: this.onUploadError + }); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-icon-button components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit audio'), + onClick: switchToEditing, + icon: "edit" + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Audio Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Autoplay'), + onChange: this.toggleAttribute('autoplay'), + checked: autoplay, + help: this.getAutoplayHelp + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Loop'), + onChange: this.toggleAttribute('loop'), + checked: loop + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Preload'), + value: undefined !== preload ? preload : 'none' // `undefined` is required for the preload attribute to be unset. + , + onChange: function onChange(value) { + return setAttributes({ + preload: 'none' !== value ? value : undefined + }); + }, + options: [{ + value: 'auto', + label: Object(external_this_wp_i18n_["__"])('Auto') + }, { + value: 'metadata', + label: Object(external_this_wp_i18n_["__"])('Metadata') + }, { + value: 'none', + label: Object(external_this_wp_i18n_["__"])('None') + }] + }))), Object(external_this_wp_element_["createElement"])("figure", { + className: className + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("audio", { + controls: "controls", + src: src + })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + onChange: function onChange(value) { + return setAttributes({ + caption: value + }); + }, + inlineToolbar: true + }))); + } + }]); + + return AudioEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var audio_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + var _getSettings = getSettings(), + __experimentalMediaUpload = _getSettings.__experimentalMediaUpload; + + return { + mediaUpload: __experimentalMediaUpload + }; +}), external_this_wp_components_["withNotices"]])(edit_AudioEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/save.js + + +/** + * WordPress dependencies + */ + +function audio_save_save(_ref) { + var attributes = _ref.attributes; + var autoplay = attributes.autoplay, + caption = attributes.caption, + loop = attributes.loop, + preload = attributes.preload, + src = attributes.src; + return Object(external_this_wp_element_["createElement"])("figure", null, Object(external_this_wp_element_["createElement"])("audio", { + controls: "controls", + src: src, + autoPlay: autoplay, + loop: loop, + preload: preload + }), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/transforms.js +/** + * WordPress dependencies + */ + + +var audio_transforms_transforms = { + from: [{ + type: 'files', + isMatch: function isMatch(files) { + return files.length === 1 && files[0].type.indexOf('audio/') === 0; + }, + transform: function transform(files) { + var file = files[0]; // We don't need to upload the media directly here + // It's already done as part of the `componentDidMount` + // in the audio block + + var block = Object(external_this_wp_blocks_["createBlock"])('core/audio', { + src: Object(external_this_wp_blob_["createBlobURL"])(file) + }); + return block; + } + }, { + type: 'shortcode', + tag: 'audio', + attributes: { + src: { + type: 'string', + shortcode: function shortcode(_ref) { + var src = _ref.named.src; + return src; + } + }, + loop: { + type: 'string', + shortcode: function shortcode(_ref2) { + var loop = _ref2.named.loop; + return loop; + } + }, + autoplay: { + type: 'string', + shortcode: function shortcode(_ref3) { + var autoplay = _ref3.named.autoplay; + return autoplay; + } + }, + preload: { + type: 'string', + shortcode: function shortcode(_ref4) { + var preload = _ref4.named.preload; + return preload; + } + } + } + }] +}; +/* harmony default export */ var audio_transforms = (audio_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var audio_metadata = { + name: "core/audio", + category: "common", + attributes: { + src: { + type: "string", + source: "attribute", + selector: "audio", + attribute: "src" + }, + caption: { + type: "string", + source: "html", + selector: "figcaption" + }, + id: { + type: "number" + }, + autoplay: { + type: "boolean", + source: "attribute", + selector: "audio", + attribute: "autoplay" + }, + loop: { + type: "boolean", + source: "attribute", + selector: "audio", + attribute: "loop" + }, + preload: { + type: "string", + source: "attribute", + selector: "audio", + attribute: "preload" + } + } +}; + + +var audio_name = audio_metadata.name; + +var audio_settings = { + title: Object(external_this_wp_i18n_["__"])('Audio'), + description: Object(external_this_wp_i18n_["__"])('Embed a simple audio player.'), + icon: audio_icon, + transforms: audio_transforms, + supports: { + align: true + }, + edit: audio_edit, + save: audio_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/deprecated.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +var deprecated_colorsMigration = function colorsMigration(attributes) { + return Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, attributes, { + customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, + customBackgroundColor: attributes.color && '#' === attributes.color[0] ? attributes.color : undefined + }), ['color', 'textColor']); +}; + +var button_deprecated_blockAttributes = { + url: { + type: 'string', + source: 'attribute', + selector: 'a', + attribute: 'href' + }, + title: { + type: 'string', + source: 'attribute', + selector: 'a', + attribute: 'title' + }, + text: { + type: 'string', + source: 'html', + selector: 'a' + } +}; +var button_deprecated_deprecated = [{ + attributes: Object(objectSpread["a" /* default */])({}, button_deprecated_blockAttributes, { + align: { + type: 'string', + default: 'none' + }, + backgroundColor: { + type: 'string' + }, + textColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + customTextColor: { + type: 'string' + }, + linkTarget: { + type: 'string', + source: 'attribute', + selector: 'a', + attribute: 'target' + }, + rel: { + type: 'string', + source: 'attribute', + selector: 'a', + attribute: 'rel' + }, + placeholder: { + type: 'string' + } + }), + isEligible: function isEligible(attribute) { + return attribute.className && attribute.className.includes('is-style-squared'); + }, + migrate: function migrate(attributes) { + var newClassName = attributes.className; + + if (newClassName) { + newClassName = newClassName.replace(/is-style-squared[\s]?/, '').trim(); + } + + return Object(objectSpread["a" /* default */])({}, attributes, { + className: newClassName ? newClassName : undefined, + borderRadius: 0 + }); + }, + save: function save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var backgroundColor = attributes.backgroundColor, + customBackgroundColor = attributes.customBackgroundColor, + customTextColor = attributes.customTextColor, + linkTarget = attributes.linkTarget, + rel = attributes.rel, + text = attributes.text, + textColor = attributes.textColor, + title = attributes.title, + url = attributes.url; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var buttonClasses = classnames_default()('wp-block-button__link', (_classnames = { + 'has-text-color': textColor || customTextColor + }, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); + var buttonStyle = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor + }; + return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "a", + className: buttonClasses, + href: url, + title: title, + style: buttonStyle, + value: text, + target: linkTarget, + rel: rel + })); + } +}, { + attributes: Object(objectSpread["a" /* default */])({}, button_deprecated_blockAttributes, { + align: { + type: 'string', + default: 'none' + }, + backgroundColor: { + type: 'string' + }, + textColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + customTextColor: { + type: 'string' + } + }), + save: function save(_ref2) { + var _classnames2; + + var attributes = _ref2.attributes; + var url = attributes.url, + text = attributes.text, + title = attributes.title, + backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + customBackgroundColor = attributes.customBackgroundColor, + customTextColor = attributes.customTextColor; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var buttonClasses = classnames_default()('wp-block-button__link', (_classnames2 = { + 'has-text-color': textColor || customTextColor + }, Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2)); + var buttonStyle = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor + }; + return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "a", + className: buttonClasses, + href: url, + title: title, + style: buttonStyle, + value: text + })); + }, + migrate: deprecated_colorsMigration +}, { + attributes: Object(objectSpread["a" /* default */])({}, button_deprecated_blockAttributes, { + color: { + type: 'string' + }, + textColor: { + type: 'string' + }, + align: { + type: 'string', + default: 'none' + } + }), + save: function save(_ref3) { + var attributes = _ref3.attributes; + var url = attributes.url, + text = attributes.text, + title = attributes.title, + align = attributes.align, + color = attributes.color, + textColor = attributes.textColor; + var buttonStyle = { + backgroundColor: color, + color: textColor + }; + var linkClass = 'wp-block-button__link'; + return Object(external_this_wp_element_["createElement"])("div", { + className: "align".concat(align) + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "a", + className: linkClass, + href: url, + title: title, + style: buttonStyle, + value: text + })); + }, + migrate: deprecated_colorsMigration +}, { + attributes: Object(objectSpread["a" /* default */])({}, button_deprecated_blockAttributes, { + color: { + type: 'string' + }, + textColor: { + type: 'string' + }, + align: { + type: 'string', + default: 'none' + } + }), + save: function save(_ref4) { + var attributes = _ref4.attributes; + var url = attributes.url, + text = attributes.text, + title = attributes.title, + align = attributes.align, + color = attributes.color, + textColor = attributes.textColor; + return Object(external_this_wp_element_["createElement"])("div", { + className: "align".concat(align), + style: { + backgroundColor: color + } + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "a", + href: url, + title: title, + style: { + color: textColor + }, + value: text + })); + }, + migrate: deprecated_colorsMigration +}]; +/* harmony default export */ var button_deprecated = (button_deprecated_deprecated); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/edit.js + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +var edit_window = window, + edit_getComputedStyle = edit_window.getComputedStyle; +var edit_applyFallbackStyles = Object(external_this_wp_components_["withFallbackStyles"])(function (node, ownProps) { + var textColor = ownProps.textColor, + backgroundColor = ownProps.backgroundColor; + var backgroundColorValue = backgroundColor && backgroundColor.color; + var textColorValue = textColor && textColor.color; //avoid the use of querySelector if textColor color is known and verify if node is available. + + var textNode = !textColorValue && node ? node.querySelector('[contenteditable="true"]') : null; + return { + fallbackBackgroundColor: backgroundColorValue || !node ? undefined : edit_getComputedStyle(node).backgroundColor, + fallbackTextColor: textColorValue || !textNode ? undefined : edit_getComputedStyle(textNode).color + }; +}); +var edit_NEW_TAB_REL = 'noreferrer noopener'; +var MIN_BORDER_RADIUS_VALUE = 0; +var MAX_BORDER_RADIUS_VALUE = 50; +var INITIAL_BORDER_RADIUS_POSITION = 5; + +function BorderPanel(_ref) { + var _ref$borderRadius = _ref.borderRadius, + borderRadius = _ref$borderRadius === void 0 ? '' : _ref$borderRadius, + setAttributes = _ref.setAttributes; + var setBorderRadius = Object(external_this_wp_element_["useCallback"])(function (newBorderRadius) { + setAttributes({ + borderRadius: newBorderRadius + }); + }, [setAttributes]); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Border Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + value: borderRadius, + label: Object(external_this_wp_i18n_["__"])('Border Radius'), + min: MIN_BORDER_RADIUS_VALUE, + max: MAX_BORDER_RADIUS_VALUE, + initialPosition: INITIAL_BORDER_RADIUS_POSITION, + allowReset: true, + onChange: setBorderRadius + })); +} + +var edit_ButtonEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ButtonEdit, _Component); + + function ButtonEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, ButtonEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ButtonEdit).apply(this, arguments)); + _this.nodeRef = null; + _this.bindRef = _this.bindRef.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSetLinkRel = _this.onSetLinkRel.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onToggleOpenInNewTab = _this.onToggleOpenInNewTab.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(ButtonEdit, [{ + key: "bindRef", + value: function bindRef(node) { + if (!node) { + return; + } + + this.nodeRef = node; + } + }, { + key: "onSetLinkRel", + value: function onSetLinkRel(value) { + this.props.setAttributes({ + rel: value + }); + } + }, { + key: "onToggleOpenInNewTab", + value: function onToggleOpenInNewTab(value) { + var rel = this.props.attributes.rel; + var linkTarget = value ? '_blank' : undefined; + var updatedRel = rel; + + if (linkTarget && !rel) { + updatedRel = edit_NEW_TAB_REL; + } else if (!linkTarget && rel === edit_NEW_TAB_REL) { + updatedRel = undefined; + } + + this.props.setAttributes({ + linkTarget: linkTarget, + rel: updatedRel + }); + } + }, { + key: "render", + value: function render() { + var _classnames; + + var _this$props = this.props, + attributes = _this$props.attributes, + backgroundColor = _this$props.backgroundColor, + textColor = _this$props.textColor, + setBackgroundColor = _this$props.setBackgroundColor, + setTextColor = _this$props.setTextColor, + fallbackBackgroundColor = _this$props.fallbackBackgroundColor, + fallbackTextColor = _this$props.fallbackTextColor, + setAttributes = _this$props.setAttributes, + className = _this$props.className, + instanceId = _this$props.instanceId, + isSelected = _this$props.isSelected; + var borderRadius = attributes.borderRadius, + linkTarget = attributes.linkTarget, + placeholder = attributes.placeholder, + rel = attributes.rel, + text = attributes.text, + title = attributes.title, + url = attributes.url; + var linkId = "wp-block-button__inline-link-".concat(instanceId); + return Object(external_this_wp_element_["createElement"])("div", { + className: className, + title: title, + ref: this.bindRef + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Add text…'), + value: text, + onChange: function onChange(value) { + return setAttributes({ + text: value + }); + }, + withoutInteractiveFormatting: true, + className: classnames_default()('wp-block-button__link', (_classnames = { + 'has-background': backgroundColor.color + }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor.color), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), Object(defineProperty["a" /* default */])(_classnames, 'no-border-radius', borderRadius === 0), _classnames)), + style: { + backgroundColor: backgroundColor.color, + color: textColor.color, + borderRadius: borderRadius ? borderRadius + 'px' : undefined + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + label: Object(external_this_wp_i18n_["__"])('Link'), + className: "wp-block-button__inline-link", + id: linkId + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLInput"], { + className: "wp-block-button__inline-link-input", + value: url + /* eslint-disable jsx-a11y/no-autofocus */ + // Disable Reason: The rule is meant to prevent enabling auto-focus, not disabling it. + , + autoFocus: false + /* eslint-enable jsx-a11y/no-autofocus */ + , + onChange: function onChange(value) { + return setAttributes({ + url: value + }); + }, + disableSuggestions: !isSelected, + id: linkId, + isFullWidth: true, + hasBorder: true + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + colorSettings: [{ + value: backgroundColor.color, + onChange: setBackgroundColor, + label: Object(external_this_wp_i18n_["__"])('Background Color') + }, { + value: textColor.color, + onChange: setTextColor, + label: Object(external_this_wp_i18n_["__"])('Text Color') + }] + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], { + // Text is considered large if font size is greater or equal to 18pt or 24px, + // currently that's not the case for button. + isLargeText: false, + textColor: textColor.color, + backgroundColor: backgroundColor.color, + fallbackBackgroundColor: fallbackBackgroundColor, + fallbackTextColor: fallbackTextColor + })), Object(external_this_wp_element_["createElement"])(BorderPanel, { + borderRadius: borderRadius, + setAttributes: setAttributes + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Link settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Open in new tab'), + onChange: this.onToggleOpenInNewTab, + checked: linkTarget === '_blank' + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('Link rel'), + value: rel || '', + onChange: this.onSetLinkRel + })))); + } + }]); + + return ButtonEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var button_edit = (Object(external_this_wp_compose_["compose"])([external_this_wp_compose_["withInstanceId"], Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', { + textColor: 'color' +}), edit_applyFallbackStyles])(edit_ButtonEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var button_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z" +})))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/save.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function button_save_save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var backgroundColor = attributes.backgroundColor, + borderRadius = attributes.borderRadius, + customBackgroundColor = attributes.customBackgroundColor, + customTextColor = attributes.customTextColor, + linkTarget = attributes.linkTarget, + rel = attributes.rel, + text = attributes.text, + textColor = attributes.textColor, + title = attributes.title, + url = attributes.url; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var buttonClasses = classnames_default()('wp-block-button__link', (_classnames = { + 'has-text-color': textColor || customTextColor + }, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'no-border-radius', borderRadius === 0), _classnames)); + var buttonStyle = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor, + borderRadius: borderRadius ? borderRadius + 'px' : undefined + }; + return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "a", + className: buttonClasses, + href: url, + title: title, + style: buttonStyle, + value: text, + target: linkTarget, + rel: rel + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var button_metadata = { + name: "core/button", + category: "layout", + attributes: { + url: { + type: "string", + source: "attribute", + selector: "a", + attribute: "href" + }, + title: { + type: "string", + source: "attribute", + selector: "a", + attribute: "title" + }, + text: { + type: "string", + source: "html", + selector: "a" + }, + backgroundColor: { + type: "string" + }, + textColor: { + type: "string" + }, + customBackgroundColor: { + type: "string" + }, + customTextColor: { + type: "string" + }, + linkTarget: { + type: "string", + source: "attribute", + selector: "a", + attribute: "target" + }, + rel: { + type: "string", + source: "attribute", + selector: "a", + attribute: "rel" + }, + placeholder: { + type: "string" + }, + borderRadius: { + type: "number" + } + } +}; + +var button_name = button_metadata.name; + +var button_settings = { + title: Object(external_this_wp_i18n_["__"])('Button'), + description: Object(external_this_wp_i18n_["__"])('Prompt visitors to take action with a button-style link.'), + icon: button_icon, + keywords: [Object(external_this_wp_i18n_["__"])('link')], + example: { + attributes: { + className: 'is-style-fill', + backgroundColor: 'vivid-green-cyan', + text: Object(external_this_wp_i18n_["__"])('Call to Action') + } + }, + supports: { + align: true, + alignWide: false + }, + styles: [{ + name: 'fill', + label: Object(external_this_wp_i18n_["__"])('Fill'), + isDefault: true + }, { + name: 'outline', + label: Object(external_this_wp_i18n_["__"])('Outline') + }], + edit: button_edit, + save: button_save_save, + deprecated: button_deprecated +}; + +// EXTERNAL MODULE: external "moment" +var external_moment_ = __webpack_require__(29); +var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/edit.js + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +var edit_CalendarEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(CalendarEdit, _Component); + + function CalendarEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, CalendarEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CalendarEdit).apply(this, arguments)); + _this.getYearMonth = memize_default()(_this.getYearMonth.bind(Object(assertThisInitialized["a" /* default */])(_this)), { + maxSize: 1 + }); + _this.getServerSideAttributes = memize_default()(_this.getServerSideAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)), { + maxSize: 1 + }); + return _this; + } + + Object(createClass["a" /* default */])(CalendarEdit, [{ + key: "getYearMonth", + value: function getYearMonth(date) { + if (!date) { + return {}; + } + + var momentDate = external_moment_default()(date); + return { + year: momentDate.year(), + month: momentDate.month() + 1 + }; + } + }, { + key: "getServerSideAttributes", + value: function getServerSideAttributes(attributes, date) { + return Object(objectSpread["a" /* default */])({}, attributes, this.getYearMonth(date)); + } + }, { + key: "render", + value: function render() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + block: "core/calendar", + attributes: this.getServerSideAttributes(this.props.attributes, this.props.date) + })); + } + }]); + + return CalendarEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var calendar_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { + var coreEditorSelect = select('core/editor'); + + if (!coreEditorSelect) { + return; + } + + var getEditedPostAttribute = coreEditorSelect.getEditedPostAttribute; + var postType = getEditedPostAttribute('type'); // Dates are used to overwrite year and month used on the calendar. + // This overwrite should only happen for 'post' post types. + // For other post types the calendar always displays the current month. + + return { + date: postType === 'post' ? getEditedPostAttribute('date') : undefined + }; +})(edit_CalendarEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var calendar_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z" +})))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var calendar_name = 'core/calendar'; +var calendar_settings = { + title: Object(external_this_wp_i18n_["__"])('Calendar'), + description: Object(external_this_wp_i18n_["__"])('A calendar of your site’s posts.'), + icon: calendar_icon, + category: 'widgets', + keywords: [Object(external_this_wp_i18n_["__"])('posts'), Object(external_this_wp_i18n_["__"])('archive')], + supports: { + align: true + }, + example: {}, + edit: calendar_edit +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/edit.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +var edit_CategoriesEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(CategoriesEdit, _Component); + + function CategoriesEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, CategoriesEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CategoriesEdit).apply(this, arguments)); + _this.toggleDisplayAsDropdown = _this.toggleDisplayAsDropdown.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.toggleShowPostCounts = _this.toggleShowPostCounts.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.toggleShowHierarchy = _this.toggleShowHierarchy.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(CategoriesEdit, [{ + key: "toggleDisplayAsDropdown", + value: function toggleDisplayAsDropdown() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes; + var displayAsDropdown = attributes.displayAsDropdown; + setAttributes({ + displayAsDropdown: !displayAsDropdown + }); + } + }, { + key: "toggleShowPostCounts", + value: function toggleShowPostCounts() { + var _this$props2 = this.props, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes; + var showPostCounts = attributes.showPostCounts; + setAttributes({ + showPostCounts: !showPostCounts + }); + } + }, { + key: "toggleShowHierarchy", + value: function toggleShowHierarchy() { + var _this$props3 = this.props, + attributes = _this$props3.attributes, + setAttributes = _this$props3.setAttributes; + var showHierarchy = attributes.showHierarchy; + setAttributes({ + showHierarchy: !showHierarchy + }); + } + }, { + key: "getCategories", + value: function getCategories() { + var parentId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var categories = this.props.categories; + + if (!categories || !categories.length) { + return []; + } + + if (parentId === null) { + return categories; + } + + return categories.filter(function (category) { + return category.parent === parentId; + }); + } + }, { + key: "getCategoryListClassName", + value: function getCategoryListClassName(level) { + return "wp-block-categories__list wp-block-categories__list-level-".concat(level); + } + }, { + key: "renderCategoryName", + value: function renderCategoryName(category) { + if (!category.name) { + return Object(external_this_wp_i18n_["__"])('(Untitled)'); + } + + return Object(external_lodash_["unescape"])(category.name).trim(); + } + }, { + key: "renderCategoryList", + value: function renderCategoryList() { + var _this2 = this; + + var showHierarchy = this.props.attributes.showHierarchy; + var parentId = showHierarchy ? 0 : null; + var categories = this.getCategories(parentId); + return Object(external_this_wp_element_["createElement"])("ul", { + className: this.getCategoryListClassName(0) + }, categories.map(function (category) { + return _this2.renderCategoryListItem(category, 0); + })); + } + }, { + key: "renderCategoryListItem", + value: function renderCategoryListItem(category, level) { + var _this3 = this; + + var _this$props$attribute = this.props.attributes, + showHierarchy = _this$props$attribute.showHierarchy, + showPostCounts = _this$props$attribute.showPostCounts; + var childCategories = this.getCategories(category.id); + return Object(external_this_wp_element_["createElement"])("li", { + key: category.id + }, Object(external_this_wp_element_["createElement"])("a", { + href: category.link, + target: "_blank", + rel: "noreferrer noopener" + }, this.renderCategoryName(category)), showPostCounts && Object(external_this_wp_element_["createElement"])("span", { + className: "wp-block-categories__post-count" + }, ' ', "(", category.count, ")"), showHierarchy && !!childCategories.length && Object(external_this_wp_element_["createElement"])("ul", { + className: this.getCategoryListClassName(level + 1) + }, childCategories.map(function (childCategory) { + return _this3.renderCategoryListItem(childCategory, level + 1); + }))); + } + }, { + key: "renderCategoryDropdown", + value: function renderCategoryDropdown() { + var _this4 = this; + + var instanceId = this.props.instanceId; + var showHierarchy = this.props.attributes.showHierarchy; + var parentId = showHierarchy ? 0 : null; + var categories = this.getCategories(parentId); + var selectId = "blocks-category-select-".concat(instanceId); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("label", { + htmlFor: selectId, + className: "screen-reader-text" + }, Object(external_this_wp_i18n_["__"])('Categories')), Object(external_this_wp_element_["createElement"])("select", { + id: selectId, + className: "wp-block-categories__dropdown" + }, categories.map(function (category) { + return _this4.renderCategoryDropdownItem(category, 0); + }))); + } + }, { + key: "renderCategoryDropdownItem", + value: function renderCategoryDropdownItem(category, level) { + var _this5 = this; + + var _this$props$attribute2 = this.props.attributes, + showHierarchy = _this$props$attribute2.showHierarchy, + showPostCounts = _this$props$attribute2.showPostCounts; + var childCategories = this.getCategories(category.id); + return [Object(external_this_wp_element_["createElement"])("option", { + key: category.id + }, Object(external_lodash_["times"])(level * 3, function () { + return '\xa0'; + }), this.renderCategoryName(category), !!showPostCounts ? " (".concat(category.count, ")") : ''), showHierarchy && !!childCategories.length && childCategories.map(function (childCategory) { + return _this5.renderCategoryDropdownItem(childCategory, level + 1); + })]; + } + }, { + key: "render", + value: function render() { + var _this$props4 = this.props, + attributes = _this$props4.attributes, + isRequesting = _this$props4.isRequesting; + var displayAsDropdown = attributes.displayAsDropdown, + showHierarchy = attributes.showHierarchy, + showPostCounts = attributes.showPostCounts; + var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Categories Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display as Dropdown'), + checked: displayAsDropdown, + onChange: this.toggleDisplayAsDropdown + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show Hierarchy'), + checked: showHierarchy, + onChange: this.toggleShowHierarchy + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show Post Counts'), + checked: showPostCounts, + onChange: this.toggleShowPostCounts + }))); + + if (isRequesting) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: "admin-post", + label: Object(external_this_wp_i18n_["__"])('Categories') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])("div", { + className: this.props.className + }, displayAsDropdown ? this.renderCategoryDropdown() : this.renderCategoryList())); + } + }]); + + return CategoriesEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var categories_edit = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core'), + getEntityRecords = _select.getEntityRecords; + + var _select2 = select('core/data'), + isResolving = _select2.isResolving; + + var query = { + per_page: -1, + hide_empty: true + }; + return { + categories: getEntityRecords('taxonomy', 'category', query), + isRequesting: isResolving('core', 'getEntityRecords', ['taxonomy', 'category', query]) + }; +}), external_this_wp_compose_["withInstanceId"])(edit_CategoriesEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var categories_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var categories_name = 'core/categories'; +var categories_settings = { + title: Object(external_this_wp_i18n_["__"])('Categories'), + description: Object(external_this_wp_i18n_["__"])('Display a list of all categories.'), + icon: categories_icon, + category: 'widgets', + supports: { + align: true, + html: false + }, + edit: categories_edit +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/utils.js +/** + * External dependencies + */ + +/** + * Escapes ampersands, shortcodes, and links. + * + * @param {string} content The content of a code block. + * @return {string} The given content with some characters escaped. + */ + +function utils_escape(content) { + return Object(external_lodash_["flow"])(escapeAmpersands, escapeOpeningSquareBrackets, escapeProtocolInIsolatedUrls)(content || ''); +} +/** + * Unescapes escaped ampersands, shortcodes, and links. + * + * @param {string} content Content with (maybe) escaped ampersands, shortcodes, and links. + * @return {string} The given content with escaped characters unescaped. + */ + +function utils_unescape(content) { + return Object(external_lodash_["flow"])(unescapeProtocolInIsolatedUrls, unescapeOpeningSquareBrackets, unescapeAmpersands)(content || ''); +} +/** + * Returns the given content with all its ampersand characters converted + * into their HTML entity counterpart (i.e. & => &) + * + * @param {string} content The content of a code block. + * @return {string} The given content with its ampersands converted into + * their HTML entity counterpart (i.e. & => &) + */ + +function escapeAmpersands(content) { + return content.replace(/&/g, '&'); +} +/** + * Returns the given content with all & HTML entities converted into &. + * + * @param {string} content The content of a code block. + * @return {string} The given content with all & HTML entities + * converted into &. + */ + + +function unescapeAmpersands(content) { + return content.replace(/&/g, '&'); +} +/** + * Returns the given content with all opening shortcode characters converted + * into their HTML entity counterpart (i.e. [ => [). For instance, a + * shortcode like [embed] becomes [embed] + * + * This function replicates the escaping of HTML tags, where a tag like + * becomes <strong>. + * + * @param {string} content The content of a code block. + * @return {string} The given content with its opening shortcode characters + * converted into their HTML entity counterpart + * (i.e. [ => [) + */ + + +function escapeOpeningSquareBrackets(content) { + return content.replace(/\[/g, '['); +} +/** + * Returns the given content translating all [ into [. + * + * @param {string} content The content of a code block. + * @return {string} The given content with all [ into [. + */ + + +function unescapeOpeningSquareBrackets(content) { + return content.replace(/[/g, '['); +} +/** + * Converts the first two forward slashes of any isolated URL into their HTML + * counterparts (i.e. // => //). For instance, https://youtube.com/watch?x + * becomes https://youtube.com/watch?x. + * + * An isolated URL is a URL that sits in its own line, surrounded only by spacing + * characters. + * + * See https://github.com/WordPress/wordpress-develop/blob/5.1.1/src/wp-includes/class-wp-embed.php#L403 + * + * @param {string} content The content of a code block. + * @return {string} The given content with its ampersands converted into + * their HTML entity counterpart (i.e. & => &) + */ + + +function escapeProtocolInIsolatedUrls(content) { + return content.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m, '$1//$2'); +} +/** + * Converts the first two forward slashes of any isolated URL from the HTML entity + * I into /. + * + * An isolated URL is a URL that sits in its own line, surrounded only by spacing + * characters. + * + * See https://github.com/WordPress/wordpress-develop/blob/5.1.1/src/wp-includes/class-wp-embed.php#L403 + * + * @param {string} content The content of a code block. + * @return {string} The given content with the first two forward slashes of any + * isolated URL from the HTML entity I into /. + */ + + +function unescapeProtocolInIsolatedUrls(content) { + return content.replace(/^(\s*https?:)//([^\s<>"]+\s*)$/m, '$1//$2'); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/edit.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +function CodeEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + className = _ref.className; + return Object(external_this_wp_element_["createElement"])("div", { + className: className + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { + value: utils_unescape(attributes.content), + onChange: function onChange(content) { + return setAttributes({ + content: utils_escape(content) + }); + }, + placeholder: Object(external_this_wp_i18n_["__"])('Write code…'), + "aria-label": Object(external_this_wp_i18n_["__"])('Code') + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var code_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/save.js + +function code_save_save(_ref) { + var attributes = _ref.attributes; + return Object(external_this_wp_element_["createElement"])("pre", null, Object(external_this_wp_element_["createElement"])("code", null, attributes.content)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/transforms.js +/** + * WordPress dependencies + */ + +var code_transforms_transforms = { + from: [{ + type: 'enter', + regExp: /^```$/, + transform: function transform() { + return Object(external_this_wp_blocks_["createBlock"])('core/code'); + } + }, { + type: 'raw', + isMatch: function isMatch(node) { + return node.nodeName === 'PRE' && node.children.length === 1 && node.firstChild.nodeName === 'CODE'; + }, + schema: { + pre: { + children: { + code: { + children: { + '#text': {} + } + } + } + } + } + }] +}; +/* harmony default export */ var code_transforms = (code_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var code_metadata = { + name: "core/code", + category: "formatting", + attributes: { + content: { + type: "string", + source: "text", + selector: "code" + } + } +}; + + +var code_name = code_metadata.name; + +var code_settings = { + title: Object(external_this_wp_i18n_["__"])('Code'), + description: Object(external_this_wp_i18n_["__"])('Display code snippets that respect your spacing and tabs.'), + icon: code_icon, + example: { + attributes: { + content: Object(external_this_wp_i18n_["__"])('// A "block" is the abstract term used') + '\n' + Object(external_this_wp_i18n_["__"])('// to describe units of markup that,') + '\n' + Object(external_this_wp_i18n_["__"])('// when composed together, form the') + '\n' + Object(external_this_wp_i18n_["__"])('// content or layout of a page.') + '\n' + Object(external_this_wp_i18n_["__"])('registerBlockType( name, settings );') + } + }, + supports: { + html: false + }, + transforms: code_transforms, + edit: CodeEdit, + save: code_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/deprecated.js + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * Given an HTML string for a deprecated columns inner block, returns the + * column index to which the migrated inner block should be assigned. Returns + * undefined if the inner block was not assigned to a column. + * + * @param {string} originalContent Deprecated Columns inner block HTML. + * + * @return {?number} Column to which inner block is to be assigned. + */ + +function getDeprecatedLayoutColumn(originalContent) { + var doc = getDeprecatedLayoutColumn.doc; + + if (!doc) { + doc = document.implementation.createHTMLDocument(''); + getDeprecatedLayoutColumn.doc = doc; + } + + var columnMatch; + doc.body.innerHTML = originalContent; + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = doc.body.firstChild.classList[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var classListItem = _step.value; + + if (columnMatch = classListItem.match(/^layout-column-(\d+)$/)) { + return Number(columnMatch[1]) - 1; + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } +} + +/* harmony default export */ var columns_deprecated = ([{ + attributes: { + columns: { + type: 'number', + default: 2 + } + }, + isEligible: function isEligible(attributes, innerBlocks) { + // Since isEligible is called on every valid instance of the + // Columns block and a deprecation is the unlikely case due to + // its subsequent migration, optimize for the `false` condition + // by performing a naive, inaccurate pass at inner blocks. + var isFastPassEligible = innerBlocks.some(function (innerBlock) { + return /layout-column-\d+/.test(innerBlock.originalContent); + }); + + if (!isFastPassEligible) { + return false; + } // Only if the fast pass is considered eligible is the more + // accurate, durable, slower condition performed. + + + return innerBlocks.some(function (innerBlock) { + return getDeprecatedLayoutColumn(innerBlock.originalContent) !== undefined; + }); + }, + migrate: function migrate(attributes, innerBlocks) { + var columns = innerBlocks.reduce(function (result, innerBlock) { + var originalContent = innerBlock.originalContent; + var columnIndex = getDeprecatedLayoutColumn(originalContent); + + if (columnIndex === undefined) { + columnIndex = 0; + } + + if (!result[columnIndex]) { + result[columnIndex] = []; + } + + result[columnIndex].push(innerBlock); + return result; + }, []); + var migratedInnerBlocks = columns.map(function (columnBlocks) { + return Object(external_this_wp_blocks_["createBlock"])('core/column', {}, columnBlocks); + }); + return [Object(external_lodash_["omit"])(attributes, ['columns']), migratedInnerBlocks]; + }, + save: function save(_ref) { + var attributes = _ref.attributes; + var columns = attributes.columns; + return Object(external_this_wp_element_["createElement"])("div", { + className: "has-".concat(columns, "-columns") + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); + } +}, { + attributes: { + columns: { + type: 'number', + default: 2 + } + }, + migrate: function migrate(attributes, innerBlocks) { + attributes = Object(external_lodash_["omit"])(attributes, ['columns']); + return [attributes, innerBlocks]; + }, + save: function save(_ref2) { + var attributes = _ref2.attributes; + var verticalAlignment = attributes.verticalAlignment, + columns = attributes.columns; + var wrapperClasses = classnames_default()("has-".concat(columns, "-columns"), Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); + return Object(external_this_wp_element_["createElement"])("div", { + className: wrapperClasses + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); + } +}]); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/utils.js + + +/** + * External dependencies + */ + + +/** + * Returns the layouts configuration for a given number of columns. + * + * @param {number} columns Number of columns. + * + * @return {Object[]} Columns layout configuration. + */ + +var getColumnsTemplate = memize_default()(function (columns) { + if (columns === undefined) { + return null; + } + + return Object(external_lodash_["times"])(columns, function () { + return ['core/column']; + }); +}); +/** + * Returns a column width attribute value rounded to standard precision. + * Returns `undefined` if the value is not a valid finite number. + * + * @param {?number} value Raw value. + * + * @return {number} Value rounded to standard precision. + */ + +var toWidthPrecision = function toWidthPrecision(value) { + return Number.isFinite(value) ? parseFloat(value.toFixed(2)) : undefined; +}; +/** + * Returns the considered adjacent to that of the specified `clientId` for + * resizing consideration. Adjacent blocks are those occurring after, except + * when the given block is the last block in the set. For the last block, the + * behavior is reversed. + * + * @param {WPBlock[]} blocks Block objects. + * @param {string} clientId Client ID to consider for adjacent blocks. + * + * @return {WPBlock[]} Adjacent block objects. + */ + +function getAdjacentBlocks(blocks, clientId) { + var index = Object(external_lodash_["findIndex"])(blocks, { + clientId: clientId + }); + var isLastBlock = index === blocks.length - 1; + return isLastBlock ? blocks.slice(0, index) : blocks.slice(index + 1); +} +/** + * Returns an effective width for a given block. An effective width is equal to + * its attribute value if set, or a computed value assuming equal distribution. + * + * @param {WPBlock} block Block object. + * @param {number} totalBlockCount Total number of blocks in Columns. + * + * @return {number} Effective column width. + */ + +function getEffectiveColumnWidth(block, totalBlockCount) { + var _block$attributes$wid = block.attributes.width, + width = _block$attributes$wid === void 0 ? 100 / totalBlockCount : _block$attributes$wid; + return toWidthPrecision(width); +} +/** + * Returns the total width occupied by the given set of column blocks. + * + * @param {WPBlock[]} blocks Block objects. + * @param {?number} totalBlockCount Total number of blocks in Columns. + * Defaults to number of blocks passed. + * + * @return {number} Total width occupied by blocks. + */ + +function getTotalColumnsWidth(blocks) { + var totalBlockCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : blocks.length; + return Object(external_lodash_["sumBy"])(blocks, function (block) { + return getEffectiveColumnWidth(block, totalBlockCount); + }); +} +/** + * Returns an object of `clientId` → `width` of effective column widths. + * + * @param {WPBlock[]} blocks Block objects. + * @param {?number} totalBlockCount Total number of blocks in Columns. + * Defaults to number of blocks passed. + * + * @return {Object} Column widths. + */ + +function getColumnWidths(blocks) { + var totalBlockCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : blocks.length; + return blocks.reduce(function (result, block) { + var width = getEffectiveColumnWidth(block, totalBlockCount); + return Object.assign(result, Object(defineProperty["a" /* default */])({}, block.clientId, width)); + }, {}); +} +/** + * Returns an object of `clientId` → `width` of column widths as redistributed + * proportional to their current widths, constrained or expanded to fit within + * the given available width. + * + * @param {WPBlock[]} blocks Block objects. + * @param {number} availableWidth Maximum width to fit within. + * @param {?number} totalBlockCount Total number of blocks in Columns. + * Defaults to number of blocks passed. + * + * @return {Object} Redistributed column widths. + */ + +function getRedistributedColumnWidths(blocks, availableWidth) { + var totalBlockCount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : blocks.length; + var totalWidth = getTotalColumnsWidth(blocks, totalBlockCount); + var difference = availableWidth - totalWidth; + var adjustment = difference / blocks.length; + return Object(external_lodash_["mapValues"])(getColumnWidths(blocks, totalBlockCount), function (width) { + return toWidthPrecision(width + adjustment); + }); +} +/** + * Returns true if column blocks within the provided set are assigned with + * explicit widths, or false otherwise. + * + * @param {WPBlock[]} blocks Block objects. + * + * @return {boolean} Whether columns have explicit widths. + */ + +function hasExplicitColumnWidths(blocks) { + return blocks.some(function (block) { + return Number.isFinite(block.attributes.width); + }); +} +/** + * Returns a copy of the given set of blocks with new widths assigned from the + * provided object of redistributed column widths. + * + * @param {WPBlock[]} blocks Block objects. + * @param {Object} widths Redistributed column widths. + * + * @return {WPBlock[]} blocks Mapped block objects. + */ + +function getMappedColumnWidths(blocks, widths) { + return blocks.map(function (block) { + return Object(external_lodash_["merge"])({}, block, { + attributes: { + width: widths[block.clientId] + } + }); + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/edit.js + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + +/** + * Allowed blocks constant is passed to InnerBlocks precisely as specified here. + * The contents of the array should never change. + * The array should contain the name of each block that is allowed. + * In columns block, the only block we allow is 'core/column'. + * + * @constant + * @type {string[]} + */ + +var ALLOWED_BLOCKS = ['core/column']; +/** + * Template option choices for predefined columns layouts. + * + * @constant + * @type {Array} + */ + +var TEMPLATE_OPTIONS = [{ + title: Object(external_this_wp_i18n_["__"])('Two columns; equal split'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "48", + height: "48", + viewBox: "0 0 48 48", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z" + })), + template: [['core/column'], ['core/column']] +}, { + title: Object(external_this_wp_i18n_["__"])('Two columns; one-third, two-thirds split'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "48", + height: "48", + viewBox: "0 0 48 48", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z" + })), + template: [['core/column', { + width: 33.33 + }], ['core/column', { + width: 66.66 + }]] +}, { + title: Object(external_this_wp_i18n_["__"])('Two columns; two-thirds, one-third split'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "48", + height: "48", + viewBox: "0 0 48 48", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z" + })), + template: [['core/column', { + width: 66.66 + }], ['core/column', { + width: 33.33 + }]] +}, { + title: Object(external_this_wp_i18n_["__"])('Three columns; equal split'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "48", + height: "48", + viewBox: "0 0 48 48", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fillRule: "evenodd", + d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z" + })), + template: [['core/column'], ['core/column'], ['core/column']] +}, { + title: Object(external_this_wp_i18n_["__"])('Three columns; wide center column'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "48", + height: "48", + viewBox: "0 0 48 48", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fillRule: "evenodd", + d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z" + })), + template: [['core/column', { + width: 25 + }], ['core/column', { + width: 50 + }], ['core/column', { + width: 25 + }]] +}]; +/** + * Number of columns to assume for template in case the user opts to skip + * template option selection. + * + * @type {number} + */ + +var DEFAULT_COLUMNS = 2; +function ColumnsEdit(_ref) { + var attributes = _ref.attributes, + className = _ref.className, + updateAlignment = _ref.updateAlignment, + updateColumns = _ref.updateColumns, + clientId = _ref.clientId; + var verticalAlignment = attributes.verticalAlignment; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + return { + count: select('core/block-editor').getBlockCount(clientId) + }; + }), + count = _useSelect.count; + + var _useState = Object(external_this_wp_element_["useState"])(getColumnsTemplate(count)), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + template = _useState2[0], + setTemplate = _useState2[1]; + + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + forceUseTemplate = _useState4[0], + setForceUseTemplate = _useState4[1]; // This is used to force the usage of the template even if the count doesn't match the template + // The count doesn't match the template once you use undo/redo (this is used to reset to the placeholder state). + + + Object(external_this_wp_element_["useEffect"])(function () { + // Once the template is applied, reset it. + if (forceUseTemplate) { + setForceUseTemplate(false); + } + }, [forceUseTemplate]); + var classes = classnames_default()(className, Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); // The template selector is shown when we first insert the columns block (count === 0). + // or if there's no template available. + // The count === 0 trick is useful when you use undo/redo. + + var showTemplateSelector = count === 0 && !forceUseTemplate || !template; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !showTemplateSelector && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Columns'), + value: count, + onChange: function onChange(value) { + return updateColumns(count, value); + }, + min: 2, + max: 6 + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { + onChange: updateAlignment, + value: verticalAlignment + }))), Object(external_this_wp_element_["createElement"])("div", { + className: classes + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + __experimentalTemplateOptions: TEMPLATE_OPTIONS, + __experimentalOnSelectTemplateOption: function __experimentalOnSelectTemplateOption(nextTemplate) { + if (nextTemplate === undefined) { + nextTemplate = getColumnsTemplate(DEFAULT_COLUMNS); + } + + setTemplate(nextTemplate); + setForceUseTemplate(true); + }, + __experimentalAllowTemplateOptionSkip: true, + template: showTemplateSelector ? null : template, + templateLock: "all", + allowedBlocks: ALLOWED_BLOCKS + }))); +} +/* harmony default export */ var columns_edit = (Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, registry) { + return { + /** + * Update all child Column blocks with a new vertical alignment setting + * based on whatever alignment is passed in. This allows change to parent + * to overide anything set on a individual column basis. + * + * @param {string} verticalAlignment the vertical alignment setting + */ + updateAlignment: function updateAlignment(verticalAlignment) { + var clientId = ownProps.clientId, + setAttributes = ownProps.setAttributes; + + var _dispatch = dispatch('core/block-editor'), + updateBlockAttributes = _dispatch.updateBlockAttributes; + + var _registry$select = registry.select('core/block-editor'), + getBlockOrder = _registry$select.getBlockOrder; // Update own alignment. + + + setAttributes({ + verticalAlignment: verticalAlignment + }); // Update all child Column Blocks to match + + var innerBlockClientIds = getBlockOrder(clientId); + innerBlockClientIds.forEach(function (innerBlockClientId) { + updateBlockAttributes(innerBlockClientId, { + verticalAlignment: verticalAlignment + }); + }); + }, + + /** + * Updates the column count, including necessary revisions to child Column + * blocks to grant required or redistribute available space. + * + * @param {number} previousColumns Previous column count. + * @param {number} newColumns New column count. + */ + updateColumns: function updateColumns(previousColumns, newColumns) { + var clientId = ownProps.clientId; + + var _dispatch2 = dispatch('core/block-editor'), + replaceInnerBlocks = _dispatch2.replaceInnerBlocks; + + var _registry$select2 = registry.select('core/block-editor'), + getBlocks = _registry$select2.getBlocks; + + var innerBlocks = getBlocks(clientId); + var hasExplicitWidths = hasExplicitColumnWidths(innerBlocks); // Redistribute available width for existing inner blocks. + + var isAddingColumn = newColumns > previousColumns; + + if (isAddingColumn && hasExplicitWidths) { + // If adding a new column, assign width to the new column equal to + // as if it were `1 / columns` of the total available space. + var newColumnWidth = toWidthPrecision(100 / newColumns); // Redistribute in consideration of pending block insertion as + // constraining the available working width. + + var widths = getRedistributedColumnWidths(innerBlocks, 100 - newColumnWidth); + innerBlocks = [].concat(Object(toConsumableArray["a" /* default */])(getMappedColumnWidths(innerBlocks, widths)), Object(toConsumableArray["a" /* default */])(Object(external_lodash_["times"])(newColumns - previousColumns, function () { + return Object(external_this_wp_blocks_["createBlock"])('core/column', { + width: newColumnWidth + }); + }))); + } else if (isAddingColumn) { + innerBlocks = [].concat(Object(toConsumableArray["a" /* default */])(innerBlocks), Object(toConsumableArray["a" /* default */])(Object(external_lodash_["times"])(newColumns - previousColumns, function () { + return Object(external_this_wp_blocks_["createBlock"])('core/column'); + }))); + } else { + // The removed column will be the last of the inner blocks. + innerBlocks = Object(external_lodash_["dropRight"])(innerBlocks, previousColumns - newColumns); + + if (hasExplicitWidths) { + // Redistribute as if block is already removed. + var _widths = getRedistributedColumnWidths(innerBlocks, 100); + + innerBlocks = getMappedColumnWidths(innerBlocks, _widths); + } + } + + replaceInnerBlocks(clientId, innerBlocks, false); + } + }; +})(ColumnsEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var columns_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z" +})))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/save.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function columns_save_save(_ref) { + var attributes = _ref.attributes; + var verticalAlignment = attributes.verticalAlignment; + var wrapperClasses = classnames_default()(Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); + return Object(external_this_wp_element_["createElement"])("div", { + className: wrapperClasses + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var columns_metadata = { + name: "core/columns", + category: "layout", + attributes: { + verticalAlignment: { + type: "string" + } + } +}; + +var columns_name = columns_metadata.name; + +var columns_settings = { + title: Object(external_this_wp_i18n_["__"])('Columns'), + icon: columns_icon, + description: Object(external_this_wp_i18n_["__"])('Add a block that displays content in multiple columns, then add whatever content blocks you’d like.'), + supports: { + align: ['wide', 'full'], + html: false + }, + example: { + innerBlocks: [{ + name: 'core/column', + innerBlocks: [{ + name: 'core/paragraph', + attributes: { + content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis pellentesque efficitur. Nam dapibus felis malesuada tincidunt rhoncus. Integer non malesuada tortor.' + } + }, { + name: 'core/image', + attributes: { + url: 'https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg' + } + }, { + name: 'core/paragraph', + attributes: { + content: 'Suspendisse commodo neque lacus, a dictum orci interdum et. Ut vel mi ut leo fringilla rutrum.' + } + }] + }, { + name: 'core/column', + innerBlocks: [{ + name: 'core/paragraph', + attributes: { + content: Object(external_this_wp_i18n_["__"])('Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit, eget faucibus urna pulvinar.') + } + }, { + name: 'core/paragraph', + attributes: { + content: Object(external_this_wp_i18n_["__"])('Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim ultricies commodo.') + } + }] + }] + }, + deprecated: columns_deprecated, + edit: columns_edit, + save: columns_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/edit.js + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +function ColumnEdit(_ref) { + var attributes = _ref.attributes, + className = _ref.className, + updateAlignment = _ref.updateAlignment, + updateWidth = _ref.updateWidth, + hasChildBlocks = _ref.hasChildBlocks; + var verticalAlignment = attributes.verticalAlignment, + width = attributes.width; + var classes = classnames_default()(className, 'block-core-columns', Object(defineProperty["a" /* default */])({}, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); + return Object(external_this_wp_element_["createElement"])("div", { + className: classes + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { + onChange: updateAlignment, + value: verticalAlignment + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Column Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Percentage width'), + value: width || '', + onChange: updateWidth, + min: 0, + max: 100, + required: true, + allowReset: true + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + templateLock: false, + renderAppender: hasChildBlocks ? undefined : function () { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender, null); + } + })); +} + +/* harmony default export */ var column_edit = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var clientId = ownProps.clientId; + + var _select = select('core/block-editor'), + getBlockOrder = _select.getBlockOrder; + + return { + hasChildBlocks: getBlockOrder(clientId).length > 0 + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, registry) { + return { + updateAlignment: function updateAlignment(verticalAlignment) { + var clientId = ownProps.clientId, + setAttributes = ownProps.setAttributes; + + var _dispatch = dispatch('core/block-editor'), + updateBlockAttributes = _dispatch.updateBlockAttributes; + + var _registry$select = registry.select('core/block-editor'), + getBlockRootClientId = _registry$select.getBlockRootClientId; // Update own alignment. + + + setAttributes({ + verticalAlignment: verticalAlignment + }); // Reset Parent Columns Block + + var rootClientId = getBlockRootClientId(clientId); + updateBlockAttributes(rootClientId, { + verticalAlignment: null + }); + }, + updateWidth: function updateWidth(width) { + var clientId = ownProps.clientId; + + var _dispatch2 = dispatch('core/block-editor'), + updateBlockAttributes = _dispatch2.updateBlockAttributes; + + var _registry$select2 = registry.select('core/block-editor'), + getBlockRootClientId = _registry$select2.getBlockRootClientId, + getBlocks = _registry$select2.getBlocks; // Constrain or expand siblings to account for gain or loss of + // total columns area. + + + var columns = getBlocks(getBlockRootClientId(clientId)); + var adjacentColumns = getAdjacentBlocks(columns, clientId); // The occupied width is calculated as the sum of the new width + // and the total width of blocks _not_ in the adjacent set. + + var occupiedWidth = width + getTotalColumnsWidth(Object(external_lodash_["difference"])(columns, [Object(external_lodash_["find"])(columns, { + clientId: clientId + })].concat(Object(toConsumableArray["a" /* default */])(adjacentColumns)))); // Compute _all_ next column widths, in case the updated column + // is in the middle of a set of columns which don't yet have + // any explicit widths assigned (include updates to those not + // part of the adjacent blocks). + + var nextColumnWidths = Object(objectSpread["a" /* default */])({}, getColumnWidths(columns, columns.length), Object(defineProperty["a" /* default */])({}, clientId, toWidthPrecision(width)), getRedistributedColumnWidths(adjacentColumns, 100 - occupiedWidth, columns.length)); + + Object(external_lodash_["forEach"])(nextColumnWidths, function (nextColumnWidth, columnClientId) { + updateBlockAttributes(columnClientId, { + width: nextColumnWidth + }); + }); + } + }; +}))(ColumnEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var column_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/save.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function column_save_save(_ref) { + var attributes = _ref.attributes; + var verticalAlignment = attributes.verticalAlignment, + width = attributes.width; + var wrapperClasses = classnames_default()(Object(defineProperty["a" /* default */])({}, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); + var style; + + if (Number.isFinite(width)) { + style = { + flexBasis: width + '%' + }; + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: wrapperClasses, + style: style + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var column_metadata = { + name: "core/column", + category: "common", + attributes: { + verticalAlignment: { + type: "string" + }, + width: { + type: "number", + min: 0, + max: 100 + } + } +}; + +var column_name = column_metadata.name; + +var column_settings = { + title: Object(external_this_wp_i18n_["__"])('Column'), + parent: ['core/columns'], + icon: column_icon, + description: Object(external_this_wp_i18n_["__"])('A single column within a columns block.'), + supports: { + inserter: false, + reusable: false, + html: false + }, + getEditWrapperProps: function getEditWrapperProps(attributes) { + var width = attributes.width; + + if (Number.isFinite(width)) { + return { + style: { + flexBasis: width + '%' + } + }; + } + }, + edit: column_edit, + save: column_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/shared.js +var IMAGE_BACKGROUND_TYPE = 'image'; +var VIDEO_BACKGROUND_TYPE = 'video'; +var COVER_MIN_HEIGHT = 50; +function backgroundImageStyles(url) { + return url ? { + backgroundImage: "url(".concat(url, ")") + } : {}; +} +function dimRatioToClass(ratio) { + return ratio === 0 || ratio === 50 ? null : 'has-background-dim-' + 10 * Math.round(ratio / 10); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/deprecated.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +var cover_deprecated_blockAttributes = { + url: { + type: 'string' + }, + id: { + type: 'number' + }, + hasParallax: { + type: 'boolean', + default: false + }, + dimRatio: { + type: 'number', + default: 50 + }, + overlayColor: { + type: 'string' + }, + customOverlayColor: { + type: 'string' + }, + backgroundType: { + type: 'string', + default: 'image' + }, + focalPoint: { + type: 'object' + } +}; +var cover_deprecated_deprecated = [{ + attributes: Object(objectSpread["a" /* default */])({}, cover_deprecated_blockAttributes, { + title: { + type: 'string', + source: 'html', + selector: 'p' + }, + contentAlign: { + type: 'string', + default: 'center' + } + }), + supports: { + align: true + }, + save: function save(_ref) { + var attributes = _ref.attributes; + var backgroundType = attributes.backgroundType, + contentAlign = attributes.contentAlign, + customOverlayColor = attributes.customOverlayColor, + dimRatio = attributes.dimRatio, + focalPoint = attributes.focalPoint, + hasParallax = attributes.hasParallax, + overlayColor = attributes.overlayColor, + title = attributes.title, + url = attributes.url; + var overlayColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', overlayColor); + var style = backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}; + + if (!overlayColorClass) { + style.backgroundColor = customOverlayColor; + } + + if (focalPoint && !hasParallax) { + style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); + } + + var classes = classnames_default()(dimRatioToClass(dimRatio), overlayColorClass, Object(defineProperty["a" /* default */])({ + 'has-background-dim': dimRatio !== 0, + 'has-parallax': hasParallax + }, "has-".concat(contentAlign, "-content"), contentAlign !== 'center')); + return Object(external_this_wp_element_["createElement"])("div", { + className: classes, + style: style + }, VIDEO_BACKGROUND_TYPE === backgroundType && url && Object(external_this_wp_element_["createElement"])("video", { + className: "wp-block-cover__video-background", + autoPlay: true, + muted: true, + loop: true, + src: url + }), !external_this_wp_blockEditor_["RichText"].isEmpty(title) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + className: "wp-block-cover-text", + value: title + })); + }, + migrate: function migrate(attributes) { + return [Object(external_lodash_["omit"])(attributes, ['title', 'contentAlign']), [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: attributes.title, + align: attributes.contentAlign, + fontSize: 'large', + placeholder: Object(external_this_wp_i18n_["__"])('Write title…') + })]]; + } +}, { + attributes: Object(objectSpread["a" /* default */])({}, cover_deprecated_blockAttributes, { + title: { + type: 'string', + source: 'html', + selector: 'p' + }, + contentAlign: { + type: 'string', + default: 'center' + }, + align: { + type: 'string' + } + }), + supports: { + className: false + }, + save: function save(_ref2) { + var attributes = _ref2.attributes; + var url = attributes.url, + title = attributes.title, + hasParallax = attributes.hasParallax, + dimRatio = attributes.dimRatio, + align = attributes.align, + contentAlign = attributes.contentAlign, + overlayColor = attributes.overlayColor, + customOverlayColor = attributes.customOverlayColor; + var overlayColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', overlayColor); + var style = backgroundImageStyles(url); + + if (!overlayColorClass) { + style.backgroundColor = customOverlayColor; + } + + var classes = classnames_default()('wp-block-cover-image', dimRatioToClass(dimRatio), overlayColorClass, Object(defineProperty["a" /* default */])({ + 'has-background-dim': dimRatio !== 0, + 'has-parallax': hasParallax + }, "has-".concat(contentAlign, "-content"), contentAlign !== 'center'), align ? "align".concat(align) : null); + return Object(external_this_wp_element_["createElement"])("div", { + className: classes, + style: style + }, !external_this_wp_blockEditor_["RichText"].isEmpty(title) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + className: "wp-block-cover-image-text", + value: title + })); + }, + migrate: function migrate(attributes) { + return [Object(external_lodash_["omit"])(attributes, ['title', 'contentAlign', 'align']), [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: attributes.title, + align: attributes.contentAlign, + fontSize: 'large', + placeholder: Object(external_this_wp_i18n_["__"])('Write title…') + })]]; + } +}, { + attributes: Object(objectSpread["a" /* default */])({}, cover_deprecated_blockAttributes, { + title: { + type: 'string', + source: 'html', + selector: 'h2' + }, + align: { + type: 'string' + }, + contentAlign: { + type: 'string', + default: 'center' + } + }), + supports: { + className: false + }, + save: function save(_ref3) { + var attributes = _ref3.attributes; + var url = attributes.url, + title = attributes.title, + hasParallax = attributes.hasParallax, + dimRatio = attributes.dimRatio, + align = attributes.align; + var style = backgroundImageStyles(url); + var classes = classnames_default()('wp-block-cover-image', dimRatioToClass(dimRatio), { + 'has-background-dim': dimRatio !== 0, + 'has-parallax': hasParallax + }, align ? "align".concat(align) : null); + return Object(external_this_wp_element_["createElement"])("section", { + className: classes, + style: style + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "h2", + value: title + })); + }, + migrate: function migrate(attributes) { + return [Object(external_lodash_["omit"])(attributes, ['title', 'contentAlign', 'align']), [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: attributes.title, + align: attributes.contentAlign, + fontSize: 'large', + placeholder: Object(external_this_wp_i18n_["__"])('Write title…') + })]]; + } +}]; +/* harmony default export */ var cover_deprecated = (cover_deprecated_deprecated); + +// EXTERNAL MODULE: ./node_modules/fast-average-color/dist/index.js +var dist = __webpack_require__(198); +var dist_default = /*#__PURE__*/__webpack_require__.n(dist); + +// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js +var tinycolor = __webpack_require__(48); +var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var cover_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0 0h24v24H0z", + fill: "none" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/edit.js + + + + + + + + + + + +/** + * External dependencies + */ + + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + +/** + * Module Constants + */ + +var cover_edit_ALLOWED_MEDIA_TYPES = ['image', 'video']; +var INNER_BLOCKS_TEMPLATE = [['core/paragraph', { + align: 'center', + fontSize: 'large', + placeholder: Object(external_this_wp_i18n_["__"])('Write title…') +}]]; + +function retrieveFastAverageColor() { + if (!retrieveFastAverageColor.fastAverageColor) { + retrieveFastAverageColor.fastAverageColor = new dist_default.a(); + } + + return retrieveFastAverageColor.fastAverageColor; +} + +var CoverHeightInput = Object(external_this_wp_compose_["withInstanceId"])(function (_ref) { + var _ref$value = _ref.value, + value = _ref$value === void 0 ? '' : _ref$value, + instanceId = _ref.instanceId, + onChange = _ref.onChange; + + var _useState = Object(external_this_wp_element_["useState"])(null), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + temporaryInput = _useState2[0], + setTemporaryInput = _useState2[1]; + + var onChangeEvent = Object(external_this_wp_element_["useCallback"])(function (event) { + var unprocessedValue = event.target.value; + var inputValue = unprocessedValue !== '' ? parseInt(event.target.value, 10) : undefined; + + if ((isNaN(inputValue) || inputValue < COVER_MIN_HEIGHT) && inputValue !== undefined) { + setTemporaryInput(event.target.value); + return; + } + + setTemporaryInput(null); + onChange(inputValue); + }, [onChange, setTemporaryInput]); + var onBlurEvent = Object(external_this_wp_element_["useCallback"])(function () { + if (temporaryInput !== null) { + setTemporaryInput(null); + } + }, [temporaryInput, setTemporaryInput]); + var inputId = "block-cover-height-input-".concat(instanceId); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + label: Object(external_this_wp_i18n_["__"])('Minimum height in pixels'), + id: inputId + }, Object(external_this_wp_element_["createElement"])("input", { + type: "number", + id: inputId, + onChange: onChangeEvent, + onBlur: onBlurEvent, + value: temporaryInput !== null ? temporaryInput : value, + min: COVER_MIN_HEIGHT, + step: "10" + })); +}); +var RESIZABLE_BOX_ENABLE_OPTION = { + top: false, + right: false, + bottom: true, + left: false, + topRight: false, + bottomRight: false, + bottomLeft: false, + topLeft: false +}; + +function ResizableCover(_ref2) { + var className = _ref2.className, + children = _ref2.children, + onResizeStart = _ref2.onResizeStart, + onResize = _ref2.onResize, + onResizeStop = _ref2.onResizeStop; + + var _useState3 = Object(external_this_wp_element_["useState"])(false), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isResizing = _useState4[0], + setIsResizing = _useState4[1]; + + var onResizeEvent = Object(external_this_wp_element_["useCallback"])(function (event, direction, elt) { + onResize(elt.clientHeight); + + if (!isResizing) { + setIsResizing(true); + } + }, [onResize, setIsResizing]); + var onResizeStartEvent = Object(external_this_wp_element_["useCallback"])(function (event, direction, elt) { + onResizeStart(elt.clientHeight); + onResize(elt.clientHeight); + }, [onResizeStart, onResize]); + var onResizeStopEvent = Object(external_this_wp_element_["useCallback"])(function (event, direction, elt) { + onResizeStop(elt.clientHeight); + setIsResizing(false); + }, [onResizeStop, setIsResizing]); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { + className: classnames_default()(className, { + 'is-resizing': isResizing + }), + enable: RESIZABLE_BOX_ENABLE_OPTION, + onResizeStart: onResizeStartEvent, + onResize: onResizeEvent, + onResizeStop: onResizeStopEvent, + minHeight: COVER_MIN_HEIGHT + }, children); +} + +var edit_CoverEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(CoverEdit, _Component); + + function CoverEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, CoverEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CoverEdit).apply(this, arguments)); + _this.state = { + isDark: false, + temporaryMinHeight: null + }; + _this.imageRef = Object(external_this_wp_element_["createRef"])(); + _this.videoRef = Object(external_this_wp_element_["createRef"])(); + _this.changeIsDarkIfRequired = _this.changeIsDarkIfRequired.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(CoverEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.handleBackgroundMode(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + this.handleBackgroundMode(prevProps); + } + }, { + key: "onUploadError", + value: function onUploadError(message) { + var noticeOperations = this.props.noticeOperations; + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes, + isSelected = _this$props.isSelected, + className = _this$props.className, + noticeUI = _this$props.noticeUI, + overlayColor = _this$props.overlayColor, + setOverlayColor = _this$props.setOverlayColor, + toggleSelection = _this$props.toggleSelection; + var backgroundType = attributes.backgroundType, + dimRatio = attributes.dimRatio, + focalPoint = attributes.focalPoint, + hasParallax = attributes.hasParallax, + id = attributes.id, + url = attributes.url, + minHeight = attributes.minHeight; + + var onSelectMedia = function onSelectMedia(media) { + if (!media || !media.url) { + setAttributes({ + url: undefined, + id: undefined + }); + return; + } + + var mediaType; // for media selections originated from a file upload. + + if (media.media_type) { + if (media.media_type === IMAGE_BACKGROUND_TYPE) { + mediaType = IMAGE_BACKGROUND_TYPE; + } else { + // only images and videos are accepted so if the media_type is not an image we can assume it is a video. + // Videos contain the media type of 'file' in the object returned from the rest api. + mediaType = VIDEO_BACKGROUND_TYPE; + } + } else { + // for media selections originated from existing files in the media library. + if (media.type !== IMAGE_BACKGROUND_TYPE && media.type !== VIDEO_BACKGROUND_TYPE) { + return; + } + + mediaType = media.type; + } + + setAttributes(Object(objectSpread["a" /* default */])({ + url: media.url, + id: media.id, + backgroundType: mediaType + }, mediaType === VIDEO_BACKGROUND_TYPE ? { + focalPoint: undefined, + hasParallax: undefined + } : {})); + }; + + var toggleParallax = function toggleParallax() { + setAttributes(Object(objectSpread["a" /* default */])({ + hasParallax: !hasParallax + }, !hasParallax ? { + focalPoint: undefined + } : {})); + }; + + var setDimRatio = function setDimRatio(ratio) { + return setAttributes({ + dimRatio: ratio + }); + }; + + var temporaryMinHeight = this.state.temporaryMinHeight; + + var style = Object(objectSpread["a" /* default */])({}, backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}, { + backgroundColor: overlayColor.color, + minHeight: temporaryMinHeight || minHeight + }); + + if (focalPoint) { + style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); + } + + var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, !!(url || overlayColor.color) && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { + onSelect: onSelectMedia, + allowedTypes: cover_edit_ALLOWED_MEDIA_TYPES, + value: id, + render: function render(_ref3) { + var open = _ref3.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit media'), + icon: "edit", + onClick: open + }); + } + }))))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Media Settings') + }, IMAGE_BACKGROUND_TYPE === backgroundType && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Fixed Background'), + checked: hasParallax, + onChange: toggleParallax + }), IMAGE_BACKGROUND_TYPE === backgroundType && !hasParallax && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { + label: Object(external_this_wp_i18n_["__"])('Focal Point Picker'), + url: url, + value: focalPoint, + onChange: function onChange(value) { + return setAttributes({ + focalPoint: value + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isDefault: true, + isSmall: true, + className: "block-library-cover__reset-button", + onClick: function onClick() { + return setAttributes({ + url: undefined, + id: undefined, + backgroundType: undefined, + dimRatio: undefined, + focalPoint: undefined, + hasParallax: undefined + }); + } + }, Object(external_this_wp_i18n_["__"])('Clear Media')))), (url || overlayColor.color) && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Dimensions') + }, Object(external_this_wp_element_["createElement"])(CoverHeightInput, { + value: temporaryMinHeight || minHeight, + onChange: function onChange(value) { + setAttributes({ + minHeight: value + }); + } + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Overlay'), + initialOpen: true, + colorSettings: [{ + value: overlayColor.color, + onChange: setOverlayColor, + label: Object(external_this_wp_i18n_["__"])('Overlay Color') + }] + }, !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Background Opacity'), + value: dimRatio, + onChange: setDimRatio, + min: 0, + max: 100, + step: 10, + required: true + }))))); + + if (!(url || overlayColor.color)) { + var placeholderIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: cover_icon + }); + + var label = Object(external_this_wp_i18n_["__"])('Cover'); + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: placeholderIcon, + className: className, + labels: { + title: label, + instructions: Object(external_this_wp_i18n_["__"])('Upload an image or video file, or pick one from your media library.') + }, + onSelect: onSelectMedia, + accept: "image/*,video/*", + allowedTypes: cover_edit_ALLOWED_MEDIA_TYPES, + notices: noticeUI, + onError: this.onUploadError + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ColorPalette"], { + disableCustomColors: true, + value: overlayColor.color, + onChange: setOverlayColor, + clearable: false, + className: "wp-block-cover__placeholder-color-palette" + }))); + } + + var classes = classnames_default()(className, dimRatioToClass(dimRatio), Object(defineProperty["a" /* default */])({ + 'is-dark-theme': this.state.isDark, + 'has-background-dim': dimRatio !== 0, + 'has-parallax': hasParallax + }, overlayColor.class, overlayColor.class)); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(ResizableCover, { + className: classnames_default()('block-library-cover__resize-container', { + 'is-selected': isSelected + }), + onResizeStart: function onResizeStart() { + return toggleSelection(false); + }, + onResize: function onResize(newMinHeight) { + _this2.setState({ + temporaryMinHeight: newMinHeight + }); + }, + onResizeStop: function onResizeStop(newMinHeight) { + toggleSelection(true); + setAttributes({ + minHeight: newMinHeight + }); + + _this2.setState({ + temporaryMinHeight: null + }); + } + }, Object(external_this_wp_element_["createElement"])("div", { + "data-url": url, + style: style, + className: classes + }, IMAGE_BACKGROUND_TYPE === backgroundType && // Used only to programmatically check if the image is dark or not + Object(external_this_wp_element_["createElement"])("img", { + ref: this.imageRef, + "aria-hidden": true, + alt: "", + style: { + display: 'none' + }, + src: url + }), VIDEO_BACKGROUND_TYPE === backgroundType && Object(external_this_wp_element_["createElement"])("video", { + ref: this.videoRef, + className: "wp-block-cover__video-background", + autoPlay: true, + muted: true, + loop: true, + src: url + }), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-cover__inner-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + template: INNER_BLOCKS_TEMPLATE + }))))); + } + }, { + key: "handleBackgroundMode", + value: function handleBackgroundMode(prevProps) { + var _this3 = this; + + var _this$props2 = this.props, + attributes = _this$props2.attributes, + overlayColor = _this$props2.overlayColor; + var dimRatio = attributes.dimRatio, + url = attributes.url; // If opacity is greater than 50 the dominant color is the overlay color, + // so use that color for the dark mode computation. + + if (dimRatio > 50) { + if (prevProps && prevProps.attributes.dimRatio > 50 && prevProps.overlayColor.color === overlayColor.color) { + // No relevant prop changes happened there is no need to apply any change. + return; + } + + if (!overlayColor.color) { + // If no overlay color exists the overlay color is black (isDark ) + this.changeIsDarkIfRequired(true); + return; + } + + this.changeIsDarkIfRequired(tinycolor_default()(overlayColor.color).isDark()); + return; + } // If opacity is lower than 50 the dominant color is the image or video color, + // so use that color for the dark mode computation. + + + if (prevProps && prevProps.attributes.dimRatio <= 50 && prevProps.attributes.url === url) { + // No relevant prop changes happened there is no need to apply any change. + return; + } + + var backgroundType = attributes.backgroundType; + var element; + + switch (backgroundType) { + case IMAGE_BACKGROUND_TYPE: + element = this.imageRef.current; + break; + + case VIDEO_BACKGROUND_TYPE: + element = this.videoRef.current; + break; + } + + if (!element) { + return; + } + + retrieveFastAverageColor().getColorAsync(element, function (color) { + _this3.changeIsDarkIfRequired(color.isDark); + }); + } + }, { + key: "changeIsDarkIfRequired", + value: function changeIsDarkIfRequired(newIsDark) { + if (this.state.isDark !== newIsDark) { + this.setState({ + isDark: newIsDark + }); + } + } + }]); + + return CoverEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var cover_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + toggleSelection = _dispatch.toggleSelection; + + return { + toggleSelection: toggleSelection + }; +}), Object(external_this_wp_blockEditor_["withColors"])({ + overlayColor: 'background-color' +}), external_this_wp_components_["withNotices"], external_this_wp_compose_["withInstanceId"]])(edit_CoverEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/save.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +function cover_save_save(_ref) { + var attributes = _ref.attributes; + var backgroundType = attributes.backgroundType, + customOverlayColor = attributes.customOverlayColor, + dimRatio = attributes.dimRatio, + focalPoint = attributes.focalPoint, + hasParallax = attributes.hasParallax, + overlayColor = attributes.overlayColor, + url = attributes.url, + minHeight = attributes.minHeight; + var overlayColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', overlayColor); + var style = backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}; + + if (!overlayColorClass) { + style.backgroundColor = customOverlayColor; + } + + if (focalPoint && !hasParallax) { + style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); + } + + style.minHeight = minHeight || undefined; + var classes = classnames_default()(dimRatioToClass(dimRatio), overlayColorClass, { + 'has-background-dim': dimRatio !== 0, + 'has-parallax': hasParallax + }); + return Object(external_this_wp_element_["createElement"])("div", { + className: classes, + style: style + }, VIDEO_BACKGROUND_TYPE === backgroundType && url && Object(external_this_wp_element_["createElement"])("video", { + className: "wp-block-cover__video-background", + autoPlay: true, + muted: true, + loop: true, + src: url + }), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-cover__inner-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/transforms.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var cover_transforms_transforms = { + from: [{ + type: 'block', + blocks: ['core/image'], + transform: function transform(_ref) { + var caption = _ref.caption, + url = _ref.url, + align = _ref.align, + id = _ref.id; + return Object(external_this_wp_blocks_["createBlock"])('core/cover', { + title: caption, + url: url, + align: align, + id: id + }); + } + }, { + type: 'block', + blocks: ['core/video'], + transform: function transform(_ref2) { + var caption = _ref2.caption, + src = _ref2.src, + align = _ref2.align, + id = _ref2.id; + return Object(external_this_wp_blocks_["createBlock"])('core/cover', { + title: caption, + url: src, + align: align, + id: id, + backgroundType: VIDEO_BACKGROUND_TYPE + }); + } + }], + to: [{ + type: 'block', + blocks: ['core/image'], + isMatch: function isMatch(_ref3) { + var backgroundType = _ref3.backgroundType, + url = _ref3.url; + return !url || backgroundType === IMAGE_BACKGROUND_TYPE; + }, + transform: function transform(_ref4) { + var title = _ref4.title, + url = _ref4.url, + align = _ref4.align, + id = _ref4.id; + return Object(external_this_wp_blocks_["createBlock"])('core/image', { + caption: title, + url: url, + align: align, + id: id + }); + } + }, { + type: 'block', + blocks: ['core/video'], + isMatch: function isMatch(_ref5) { + var backgroundType = _ref5.backgroundType, + url = _ref5.url; + return !url || backgroundType === VIDEO_BACKGROUND_TYPE; + }, + transform: function transform(_ref6) { + var title = _ref6.title, + url = _ref6.url, + align = _ref6.align, + id = _ref6.id; + return Object(external_this_wp_blocks_["createBlock"])('core/video', { + caption: title, + src: url, + id: id, + align: align + }); + } + }] +}; +/* harmony default export */ var cover_transforms = (cover_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var cover_metadata = { + name: "core/cover", + category: "common", + attributes: { + url: { + type: "string" + }, + id: { + type: "number" + }, + hasParallax: { + type: "boolean", + "default": false + }, + dimRatio: { + type: "number", + "default": 50 + }, + overlayColor: { + type: "string" + }, + customOverlayColor: { + type: "string" + }, + backgroundType: { + type: "string", + "default": "image" + }, + focalPoint: { + type: "object" + }, + minHeight: { + type: "number" + } + } +}; + + +var cover_name = cover_metadata.name; + +var cover_settings = { + title: Object(external_this_wp_i18n_["__"])('Cover'), + description: Object(external_this_wp_i18n_["__"])('Add an image or video with a text overlay — great for headers.'), + icon: cover_icon, + supports: { + align: true + }, + example: { + attributes: { + customOverlayColor: '#065174', + dimRatio: 40, + url: 'https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg' + }, + innerBlocks: [{ + name: 'core/paragraph', + attributes: { + customFontSize: 48, + content: Object(external_this_wp_i18n_["__"])('Snow Patrol'), + align: 'center' + } + }] + }, + transforms: cover_transforms, + save: cover_save_save, + edit: cover_edit, + deprecated: cover_deprecated +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-controls.js + + +/** + * WordPress dependencies + */ + + + + +var embed_controls_EmbedControls = function EmbedControls(props) { + var blockSupportsResponsive = props.blockSupportsResponsive, + showEditButton = props.showEditButton, + themeSupportsResponsive = props.themeSupportsResponsive, + allowResponsive = props.allowResponsive, + getResponsiveHelp = props.getResponsiveHelp, + toggleResponsive = props.toggleResponsive, + switchBackToURLInput = props.switchBackToURLInput; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, showEditButton && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit URL'), + icon: "edit", + onClick: switchBackToURLInput + }))), themeSupportsResponsive && blockSupportsResponsive && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Media Settings'), + className: "blocks-responsive" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Resize for smaller devices'), + checked: allowResponsive, + help: getResponsiveHelp, + onChange: toggleResponsive + })))); +}; + +/* harmony default export */ var embed_controls = (embed_controls_EmbedControls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-loading.js + + +/** + * WordPress dependencies + */ + + + +var embed_loading_EmbedLoading = function EmbedLoading() { + return Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-embed is-loading" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Embedding…'))); +}; + +/* harmony default export */ var embed_loading = (embed_loading_EmbedLoading); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-placeholder.js + + +/** + * WordPress dependencies + */ + + + + +var embed_placeholder_EmbedPlaceholder = function EmbedPlaceholder(props) { + var icon = props.icon, + label = props.label, + value = props.value, + onSubmit = props.onSubmit, + onChange = props.onChange, + cannotEmbed = props.cannotEmbed, + fallback = props.fallback, + tryAgain = props.tryAgain; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: icon, + showColors: true + }), + label: label, + className: "wp-block-embed", + instructions: Object(external_this_wp_i18n_["__"])('Paste a link to the content you want to display on your site.') + }, Object(external_this_wp_element_["createElement"])("form", { + onSubmit: onSubmit + }, Object(external_this_wp_element_["createElement"])("input", { + type: "url", + value: value || '', + className: "components-placeholder__input", + "aria-label": label, + placeholder: Object(external_this_wp_i18n_["__"])('Enter URL to embed here…'), + onChange: onChange + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isLarge: true, + type: "submit" + }, Object(external_this_wp_i18n_["_x"])('Embed', 'button label')), cannotEmbed && Object(external_this_wp_element_["createElement"])("p", { + className: "components-placeholder__error" + }, Object(external_this_wp_i18n_["__"])('Sorry, this content could not be embedded.'), Object(external_this_wp_element_["createElement"])("br", null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isLarge: true, + onClick: tryAgain + }, Object(external_this_wp_i18n_["_x"])('Try again', 'button label')), " ", Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isLarge: true, + onClick: fallback + }, Object(external_this_wp_i18n_["_x"])('Convert to link', 'button label')))), Object(external_this_wp_element_["createElement"])("div", { + className: "components-placeholder__learn-more" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { + href: Object(external_this_wp_i18n_["__"])('https://wordpress.org/support/article/embeds/') + }, Object(external_this_wp_i18n_["__"])('Learn more about embeds')))); +}; + +/* harmony default export */ var embed_placeholder = (embed_placeholder_EmbedPlaceholder); + +// EXTERNAL MODULE: ./node_modules/url/url.js +var url_url = __webpack_require__(79); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/wp-embed-preview.js + + + + + + + + +/** + * WordPress dependencies + */ + + +/** + * Browser dependencies + */ + +var wp_embed_preview_window = window, + FocusEvent = wp_embed_preview_window.FocusEvent; + +var wp_embed_preview_WpEmbedPreview = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(WpEmbedPreview, _Component); + + function WpEmbedPreview() { + var _this; + + Object(classCallCheck["a" /* default */])(this, WpEmbedPreview); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(WpEmbedPreview).apply(this, arguments)); + _this.checkFocus = _this.checkFocus.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.node = Object(external_this_wp_element_["createRef"])(); + return _this; + } + /** + * Checks whether the wp embed iframe is the activeElement, + * if it is dispatch a focus event. + */ + + + Object(createClass["a" /* default */])(WpEmbedPreview, [{ + key: "checkFocus", + value: function checkFocus() { + var _document = document, + activeElement = _document.activeElement; + + if (activeElement.tagName !== 'IFRAME' || activeElement.parentNode !== this.node.current) { + return; + } + + var focusEvent = new FocusEvent('focus', { + bubbles: true + }); + activeElement.dispatchEvent(focusEvent); + } + }, { + key: "render", + value: function render() { + var html = this.props.html; + return Object(external_this_wp_element_["createElement"])("div", { + ref: this.node, + className: "wp-block-embed__wrapper", + dangerouslySetInnerHTML: { + __html: html + } + }); + } + }]); + + return WpEmbedPreview; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var wp_embed_preview = (Object(external_this_wp_compose_["withGlobalEvents"])({ + blur: 'checkFocus' +})(wp_embed_preview_WpEmbedPreview)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-preview.js + + + + + + + + +/** + * Internal dependencies + */ + + +/** + * External dependencies + */ + + + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +var embed_preview_EmbedPreview = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(EmbedPreview, _Component); + + function EmbedPreview() { + var _this; + + Object(classCallCheck["a" /* default */])(this, EmbedPreview); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(EmbedPreview).apply(this, arguments)); + _this.hideOverlay = _this.hideOverlay.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + interactive: false + }; + return _this; + } + + Object(createClass["a" /* default */])(EmbedPreview, [{ + key: "hideOverlay", + value: function hideOverlay() { + // This is called onMouseUp on the overlay. We can't respond to the `isSelected` prop + // changing, because that happens on mouse down, and the overlay immediately disappears, + // and the mouse event can end up in the preview content. We can't use onClick on + // the overlay to hide it either, because then the editor misses the mouseup event, and + // thinks we're multi-selecting blocks. + this.setState({ + interactive: true + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + preview = _this$props.preview, + url = _this$props.url, + type = _this$props.type, + caption = _this$props.caption, + onCaptionChange = _this$props.onCaptionChange, + isSelected = _this$props.isSelected, + className = _this$props.className, + icon = _this$props.icon, + label = _this$props.label; + var scripts = preview.scripts; + var interactive = this.state.interactive; + var html = 'photo' === type ? util_getPhotoHtml(preview) : preview.html; + var parsedHost = Object(url_url["parse"])(url).host.split('.'); + var parsedHostBaseUrl = parsedHost.splice(parsedHost.length - 2, parsedHost.length - 1).join('.'); + var cannotPreview = Object(external_lodash_["includes"])(HOSTS_NO_PREVIEWS, parsedHostBaseUrl); // translators: %s: host providing embed content e.g: www.youtube.com + + var iframeTitle = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Embedded content from %s'), parsedHostBaseUrl); + var sandboxClassnames = dedupe_default()(type, className, 'wp-block-embed__wrapper'); // Disabled because the overlay div doesn't actually have a role or functionality + // as far as the user is concerned. We're just catching the first click so that + // the block can be selected without interacting with the embed preview that the overlay covers. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + + var embedWrapper = 'wp-embed' === type ? Object(external_this_wp_element_["createElement"])(wp_embed_preview, { + html: html + }) : Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-embed__wrapper" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { + html: html, + scripts: scripts, + title: iframeTitle, + type: sandboxClassnames, + onFocus: this.hideOverlay + }), !interactive && Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-embed__interactive-overlay", + onMouseUp: this.hideOverlay + })); + /* eslint-enable jsx-a11y/no-static-element-interactions */ + + return Object(external_this_wp_element_["createElement"])("figure", { + className: dedupe_default()(className, 'wp-block-embed', { + 'is-type-video': 'video' === type + }) + }, cannotPreview ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: icon, + showColors: true + }), + label: label + }, Object(external_this_wp_element_["createElement"])("p", { + className: "components-placeholder__error" + }, Object(external_this_wp_element_["createElement"])("a", { + href: url + }, url)), Object(external_this_wp_element_["createElement"])("p", { + className: "components-placeholder__error" + }, + /* translators: %s: host providing embed content e.g: www.youtube.com */ + Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])("Embedded content from %s can't be previewed in the editor."), parsedHostBaseUrl))) : embedWrapper, (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + onChange: onCaptionChange, + inlineToolbar: true + })); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(nextProps, state) { + if (!nextProps.isSelected && state.interactive) { + // We only want to change this when the block is not selected, because changing it when + // the block becomes selected makes the overlap disappear too early. Hiding the overlay + // happens on mouseup when the overlay is clicked. + return { + interactive: false + }; + } + + return null; + } + }]); + + return EmbedPreview; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var embed_preview = (embed_preview_EmbedPreview); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/edit.js + + + + + + + + + +/** + * Internal dependencies + */ + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +function getEmbedEditComponent(title, icon) { + var responsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + return ( + /*#__PURE__*/ + function (_Component) { + Object(inherits["a" /* default */])(_class, _Component); + + function _class() { + var _this; + + Object(classCallCheck["a" /* default */])(this, _class); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).apply(this, arguments)); + _this.switchBackToURLInput = _this.switchBackToURLInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.setUrl = _this.setUrl.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getMergedAttributes = _this.getMergedAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.setMergedAttributes = _this.setMergedAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getResponsiveHelp = _this.getResponsiveHelp.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.toggleResponsive = _this.toggleResponsive.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.handleIncomingPreview = _this.handleIncomingPreview.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + editingURL: false, + url: _this.props.attributes.url + }; + + if (_this.props.preview) { + _this.handleIncomingPreview(); + } + + return _this; + } + + Object(createClass["a" /* default */])(_class, [{ + key: "handleIncomingPreview", + value: function handleIncomingPreview() { + this.setMergedAttributes(); + + if (this.props.onReplace) { + var upgradedBlock = util_createUpgradedEmbedBlock(this.props, this.getMergedAttributes()); + + if (upgradedBlock) { + this.props.onReplace(upgradedBlock); + } + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var hasPreview = undefined !== this.props.preview; + var hadPreview = undefined !== prevProps.preview; + var previewChanged = prevProps.preview && this.props.preview && this.props.preview.html !== prevProps.preview.html; + var switchedPreview = previewChanged || hasPreview && !hadPreview; + var switchedURL = this.props.attributes.url !== prevProps.attributes.url; + + if (switchedPreview || switchedURL) { + if (this.props.cannotEmbed) { + // We either have a new preview or a new URL, but we can't embed it. + if (!this.props.fetching) { + // If we're not fetching the preview, then we know it can't be embedded, so try + // removing any trailing slash, and resubmit. + this.resubmitWithoutTrailingSlash(); + } + + return; + } + + this.handleIncomingPreview(); + } + } + }, { + key: "resubmitWithoutTrailingSlash", + value: function resubmitWithoutTrailingSlash() { + this.setState(function (prevState) { + return { + url: prevState.url.replace(/\/$/, '') + }; + }, this.setUrl); + } + }, { + key: "setUrl", + value: function setUrl(event) { + if (event) { + event.preventDefault(); + } + + var url = this.state.url; + var setAttributes = this.props.setAttributes; + this.setState({ + editingURL: false + }); + setAttributes({ + url: url + }); + } + /*** + * @return {Object} Attributes derived from the preview, merged with the current attributes. + */ + + }, { + key: "getMergedAttributes", + value: function getMergedAttributes() { + var preview = this.props.preview; + var _this$props$attribute = this.props.attributes, + className = _this$props$attribute.className, + allowResponsive = _this$props$attribute.allowResponsive; + return Object(objectSpread["a" /* default */])({}, this.props.attributes, getAttributesFromPreview(preview, title, className, responsive, allowResponsive)); + } + /*** + * Sets block attributes based on the current attributes and preview data. + */ + + }, { + key: "setMergedAttributes", + value: function setMergedAttributes() { + var setAttributes = this.props.setAttributes; + setAttributes(this.getMergedAttributes()); + } + }, { + key: "switchBackToURLInput", + value: function switchBackToURLInput() { + this.setState({ + editingURL: true + }); + } + }, { + key: "getResponsiveHelp", + value: function getResponsiveHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('This embed will preserve its aspect ratio when the browser is resized.') : Object(external_this_wp_i18n_["__"])('This embed may not preserve its aspect ratio when the browser is resized.'); + } + }, { + key: "toggleResponsive", + value: function toggleResponsive() { + var _this$props$attribute2 = this.props.attributes, + allowResponsive = _this$props$attribute2.allowResponsive, + className = _this$props$attribute2.className; + var html = this.props.preview.html; + var newAllowResponsive = !allowResponsive; + this.props.setAttributes({ + allowResponsive: newAllowResponsive, + className: getClassNames(html, className, responsive && newAllowResponsive) + }); + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$state = this.state, + url = _this$state.url, + editingURL = _this$state.editingURL; + var _this$props = this.props, + fetching = _this$props.fetching, + setAttributes = _this$props.setAttributes, + isSelected = _this$props.isSelected, + preview = _this$props.preview, + cannotEmbed = _this$props.cannotEmbed, + themeSupportsResponsive = _this$props.themeSupportsResponsive, + tryAgain = _this$props.tryAgain; + + if (fetching) { + return Object(external_this_wp_element_["createElement"])(embed_loading, null); + } // translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists + + + var label = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s URL'), title); // No preview, or we can't embed the current URL, or we've clicked the edit button. + + if (!preview || cannotEmbed || editingURL) { + return Object(external_this_wp_element_["createElement"])(embed_placeholder, { + icon: icon, + label: label, + onSubmit: this.setUrl, + value: url, + cannotEmbed: cannotEmbed, + onChange: function onChange(event) { + return _this2.setState({ + url: event.target.value + }); + }, + fallback: function fallback() { + return util_fallback(url, _this2.props.onReplace); + }, + tryAgain: tryAgain + }); + } // Even though we set attributes that get derived from the preview, + // we don't access them directly because for the initial render, + // the `setAttributes` call will not have taken effect. If we're + // rendering responsive content, setting the responsive classes + // after the preview has been rendered can result in unwanted + // clipping or scrollbars. The `getAttributesFromPreview` function + // that `getMergedAttributes` uses is memoized so that we're not + // calculating them on every render. + + + var previewAttributes = this.getMergedAttributes(); + var caption = previewAttributes.caption, + type = previewAttributes.type, + allowResponsive = previewAttributes.allowResponsive; + var className = classnames_default()(previewAttributes.className, this.props.className); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(embed_controls, { + showEditButton: preview && !cannotEmbed, + themeSupportsResponsive: themeSupportsResponsive, + blockSupportsResponsive: responsive, + allowResponsive: allowResponsive, + getResponsiveHelp: this.getResponsiveHelp, + toggleResponsive: this.toggleResponsive, + switchBackToURLInput: this.switchBackToURLInput + }), Object(external_this_wp_element_["createElement"])(embed_preview, { + preview: preview, + className: className, + url: url, + type: type, + caption: caption, + onCaptionChange: function onCaptionChange(value) { + return setAttributes({ + caption: value + }); + }, + isSelected: isSelected, + icon: icon, + label: label + })); + } + }]); + + return _class; + }(external_this_wp_element_["Component"]) + ); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/settings.js + + + + +/** + * Internal dependencies + */ + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +var embedAttributes = { + url: { + type: 'string' + }, + caption: { + type: 'string', + source: 'html', + selector: 'figcaption' + }, + type: { + type: 'string' + }, + providerNameSlug: { + type: 'string' + }, + allowResponsive: { + type: 'boolean', + default: true + } +}; +function getEmbedBlockSettings(_ref) { + var title = _ref.title, + description = _ref.description, + icon = _ref.icon, + _ref$category = _ref.category, + category = _ref$category === void 0 ? 'embed' : _ref$category, + transforms = _ref.transforms, + _ref$keywords = _ref.keywords, + keywords = _ref$keywords === void 0 ? [] : _ref$keywords, + _ref$supports = _ref.supports, + supports = _ref$supports === void 0 ? {} : _ref$supports, + _ref$responsive = _ref.responsive, + responsive = _ref$responsive === void 0 ? true : _ref$responsive; + + var blockDescription = description || Object(external_this_wp_i18n_["__"])('Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.'); + + var edit = getEmbedEditComponent(title, icon, responsive); + return { + title: title, + description: blockDescription, + icon: icon, + category: category, + keywords: keywords, + attributes: embedAttributes, + supports: Object(objectSpread["a" /* default */])({ + align: true + }, supports), + transforms: transforms, + edit: Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var url = ownProps.attributes.url; + var core = select('core'); + var getEmbedPreview = core.getEmbedPreview, + isPreviewEmbedFallback = core.isPreviewEmbedFallback, + isRequestingEmbedPreview = core.isRequestingEmbedPreview, + getThemeSupports = core.getThemeSupports; + var preview = undefined !== url && getEmbedPreview(url); + var previewIsFallback = undefined !== url && isPreviewEmbedFallback(url); + var fetching = undefined !== url && isRequestingEmbedPreview(url); + var themeSupports = getThemeSupports(); // The external oEmbed provider does not exist. We got no type info and no html. + + var badEmbedProvider = !!preview && undefined === preview.type && false === preview.html; // Some WordPress URLs that can't be embedded will cause the API to return + // a valid JSON response with no HTML and `data.status` set to 404, rather + // than generating a fallback response as other embeds do. + + var wordpressCantEmbed = !!preview && preview.data && preview.data.status === 404; + var validPreview = !!preview && !badEmbedProvider && !wordpressCantEmbed; + var cannotEmbed = undefined !== url && (!validPreview || previewIsFallback); + return { + preview: validPreview ? preview : undefined, + fetching: fetching, + themeSupportsResponsive: themeSupports['responsive-embeds'], + cannotEmbed: cannotEmbed + }; + }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + var url = ownProps.attributes.url; + var coreData = dispatch('core/data'); + + var tryAgain = function tryAgain() { + coreData.invalidateResolution('core', 'getEmbedPreview', [url]); + }; + + return { + tryAgain: tryAgain + }; + }))(edit), + save: function save(_ref2) { + var _classnames; + + var attributes = _ref2.attributes; + var url = attributes.url, + caption = attributes.caption, + type = attributes.type, + providerNameSlug = attributes.providerNameSlug; + + if (!url) { + return null; + } + + var embedClassName = dedupe_default()('wp-block-embed', (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames)); + return Object(external_this_wp_element_["createElement"])("figure", { + className: embedClassName + }, Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-embed__wrapper" + }, "\n".concat(url, "\n") + /* URL needs to be on its own line. */ + ), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + }, + deprecated: [{ + attributes: embedAttributes, + save: function save(_ref3) { + var _classnames2; + + var attributes = _ref3.attributes; + var url = attributes.url, + caption = attributes.caption, + type = attributes.type, + providerNameSlug = attributes.providerNameSlug; + + if (!url) { + return null; + } + + var embedClassName = dedupe_default()('wp-block-embed', (_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames2, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames2)); + return Object(external_this_wp_element_["createElement"])("figure", { + className: embedClassName + }, "\n".concat(url, "\n") + /* URL needs to be on its own line. */ + , !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + } + }] + }; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/index.js + + +/** + * Internal dependencies + */ + + + +/** + * WordPress dependencies + */ + + + +var embed_name = 'core/embed'; +var embed_settings = getEmbedBlockSettings({ + title: Object(external_this_wp_i18n_["_x"])('Embed', 'block title'), + description: Object(external_this_wp_i18n_["__"])('Embed videos, images, tweets, audio, and other content from external sources.'), + icon: embedContentIcon, + // Unknown embeds should not be responsive by default. + responsive: false, + transforms: { + from: [{ + type: 'raw', + isMatch: function isMatch(node) { + return node.nodeName === 'P' && /^\s*(https?:\/\/\S+)\s*$/i.test(node.textContent); + }, + transform: function transform(node) { + return Object(external_this_wp_blocks_["createBlock"])('core/embed', { + url: node.textContent.trim() + }); + } + }] + } +}); +var embed_common = common.map(function (embedDefinition) { + return Object(objectSpread["a" /* default */])({}, embedDefinition, { + settings: getEmbedBlockSettings(embedDefinition.settings) + }); +}); +var embed_others = others.map(function (embedDefinition) { + return Object(objectSpread["a" /* default */])({}, embedDefinition, { + settings: getEmbedBlockSettings(embedDefinition.settings) + }); +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var file_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/inspector.js + + +/** + * WordPress dependencies + */ + + + +function FileBlockInspector(_ref) { + var hrefs = _ref.hrefs, + openInNewWindow = _ref.openInNewWindow, + showDownloadButton = _ref.showDownloadButton, + changeLinkDestinationOption = _ref.changeLinkDestinationOption, + changeOpenInNewWindow = _ref.changeOpenInNewWindow, + changeShowDownloadButton = _ref.changeShowDownloadButton; + var href = hrefs.href, + textLinkHref = hrefs.textLinkHref, + attachmentPage = hrefs.attachmentPage; + var linkDestinationOptions = [{ + value: href, + label: Object(external_this_wp_i18n_["__"])('URL') + }]; + + if (attachmentPage) { + linkDestinationOptions = [{ + value: href, + label: Object(external_this_wp_i18n_["__"])('Media File') + }, { + value: attachmentPage, + label: Object(external_this_wp_i18n_["__"])('Attachment page') + }]; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Text link settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Link To'), + value: textLinkHref, + options: linkDestinationOptions, + onChange: changeLinkDestinationOption + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Open in new tab'), + checked: openInNewWindow, + onChange: changeOpenInNewWindow + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Download button settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show download button'), + checked: showDownloadButton, + onChange: changeShowDownloadButton + })))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/edit.js + + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +/** + * Internal dependencies + */ + + + + +var edit_FileEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(FileEdit, _Component); + + function FileEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, FileEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(FileEdit).apply(this, arguments)); + _this.onSelectFile = _this.onSelectFile.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.confirmCopyURL = _this.confirmCopyURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.resetCopyConfirmation = _this.resetCopyConfirmation.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.changeLinkDestinationOption = _this.changeLinkDestinationOption.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.changeOpenInNewWindow = _this.changeOpenInNewWindow.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.changeShowDownloadButton = _this.changeShowDownloadButton.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + hasError: false, + showCopyConfirmation: false + }; + return _this; + } + + Object(createClass["a" /* default */])(FileEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + mediaUpload = _this$props.mediaUpload, + noticeOperations = _this$props.noticeOperations, + setAttributes = _this$props.setAttributes; + var downloadButtonText = attributes.downloadButtonText, + href = attributes.href; // Upload a file drag-and-dropped into the editor + + if (Object(external_this_wp_blob_["isBlobURL"])(href)) { + var file = Object(external_this_wp_blob_["getBlobByURL"])(href); + mediaUpload({ + filesList: [file], + onFileChange: function onFileChange(_ref) { + var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), + media = _ref2[0]; + + return _this2.onSelectFile(media); + }, + onError: function onError(message) { + _this2.setState({ + hasError: true + }); + + noticeOperations.createErrorNotice(message); + } + }); + Object(external_this_wp_blob_["revokeBlobURL"])(href); + } + + if (downloadButtonText === undefined) { + setAttributes({ + downloadButtonText: Object(external_this_wp_i18n_["_x"])('Download', 'button label') + }); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + // Reset copy confirmation state when block is deselected + if (prevProps.isSelected && !this.props.isSelected) { + this.setState({ + showCopyConfirmation: false + }); + } + } + }, { + key: "onSelectFile", + value: function onSelectFile(media) { + if (media && media.url) { + this.setState({ + hasError: false + }); + this.props.setAttributes({ + href: media.url, + fileName: media.title, + textLinkHref: media.url, + id: media.id + }); + } + } + }, { + key: "onUploadError", + value: function onUploadError(message) { + var noticeOperations = this.props.noticeOperations; + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + } + }, { + key: "confirmCopyURL", + value: function confirmCopyURL() { + this.setState({ + showCopyConfirmation: true + }); + } + }, { + key: "resetCopyConfirmation", + value: function resetCopyConfirmation() { + this.setState({ + showCopyConfirmation: false + }); + } + }, { + key: "changeLinkDestinationOption", + value: function changeLinkDestinationOption(newHref) { + // Choose Media File or Attachment Page (when file is in Media Library) + this.props.setAttributes({ + textLinkHref: newHref + }); + } + }, { + key: "changeOpenInNewWindow", + value: function changeOpenInNewWindow(newValue) { + this.props.setAttributes({ + textLinkTarget: newValue ? '_blank' : false + }); + } + }, { + key: "changeShowDownloadButton", + value: function changeShowDownloadButton(newValue) { + this.props.setAttributes({ + showDownloadButton: newValue + }); + } + }, { + key: "render", + value: function render() { + var _this3 = this; + + var _this$props2 = this.props, + className = _this$props2.className, + isSelected = _this$props2.isSelected, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes, + noticeUI = _this$props2.noticeUI, + media = _this$props2.media; + var fileName = attributes.fileName, + href = attributes.href, + textLinkHref = attributes.textLinkHref, + textLinkTarget = attributes.textLinkTarget, + showDownloadButton = attributes.showDownloadButton, + downloadButtonText = attributes.downloadButtonText, + id = attributes.id; + var _this$state = this.state, + hasError = _this$state.hasError, + showCopyConfirmation = _this$state.showCopyConfirmation; + var attachmentPage = media && media.link; + + if (!href || hasError) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: file_icon + }), + labels: { + title: Object(external_this_wp_i18n_["__"])('File'), + instructions: Object(external_this_wp_i18n_["__"])('Upload a file or pick one from your media library.') + }, + onSelect: this.onSelectFile, + notices: noticeUI, + onError: this.onUploadError, + accept: "*" + }); + } + + var classes = classnames_default()(className, { + 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(href) + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(FileBlockInspector, Object(esm_extends["a" /* default */])({ + hrefs: { + href: href, + textLinkHref: textLinkHref, + attachmentPage: attachmentPage + } + }, { + openInNewWindow: !!textLinkTarget, + showDownloadButton: showDownloadButton, + changeLinkDestinationOption: this.changeLinkDestinationOption, + changeOpenInNewWindow: this.changeOpenInNewWindow, + changeShowDownloadButton: this.changeShowDownloadButton + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { + onSelect: this.onSelectFile, + value: id, + render: function render(_ref3) { + var open = _ref3.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit file'), + onClick: open, + icon: "edit" + }); + } + })))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Animate"], { + type: Object(external_this_wp_blob_["isBlobURL"])(href) ? 'loading' : null + }, function (_ref4) { + var animateClassName = _ref4.className; + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()(classes, animateClassName) + }, Object(external_this_wp_element_["createElement"])("div", { + className: 'wp-block-file__content-wrapper' + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + wrapperClassName: 'wp-block-file__textlink', + tagName: "div" // must be block-level or else cursor disappears + , + value: fileName, + placeholder: Object(external_this_wp_i18n_["__"])('Write file name…'), + withoutInteractiveFormatting: true, + onChange: function onChange(text) { + return setAttributes({ + fileName: text + }); + } + }), showDownloadButton && Object(external_this_wp_element_["createElement"])("div", { + className: 'wp-block-file__button-richtext-wrapper' + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "div" // must be block-level or else cursor disappears + , + className: 'wp-block-file__button', + value: downloadButtonText, + withoutInteractiveFormatting: true, + placeholder: Object(external_this_wp_i18n_["__"])('Add text…'), + onChange: function onChange(text) { + return setAttributes({ + downloadButtonText: text + }); + } + }))), isSelected && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { + isDefault: true, + text: href, + className: 'wp-block-file__copy-url-button', + onCopy: _this3.confirmCopyURL, + onFinishCopy: _this3.resetCopyConfirmation, + disabled: Object(external_this_wp_blob_["isBlobURL"])(href) + }, showCopyConfirmation ? Object(external_this_wp_i18n_["__"])('Copied!') : Object(external_this_wp_i18n_["__"])('Copy URL'))); + })); + } + }]); + + return FileEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var file_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, props) { + var _select = select('core'), + getMedia = _select.getMedia; + + var _select2 = select('core/block-editor'), + getSettings = _select2.getSettings; + + var _getSettings = getSettings(), + __experimentalMediaUpload = _getSettings.__experimentalMediaUpload; + + var id = props.attributes.id; + return { + media: id === undefined ? undefined : getMedia(id), + mediaUpload: __experimentalMediaUpload + }; +}), external_this_wp_components_["withNotices"]])(edit_FileEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/save.js + + +/** + * WordPress dependencies + */ + +function file_save_save(_ref) { + var attributes = _ref.attributes; + var href = attributes.href, + fileName = attributes.fileName, + textLinkHref = attributes.textLinkHref, + textLinkTarget = attributes.textLinkTarget, + showDownloadButton = attributes.showDownloadButton, + downloadButtonText = attributes.downloadButtonText; + return href && Object(external_this_wp_element_["createElement"])("div", null, !external_this_wp_blockEditor_["RichText"].isEmpty(fileName) && Object(external_this_wp_element_["createElement"])("a", { + href: textLinkHref, + target: textLinkTarget, + rel: textLinkTarget ? 'noreferrer noopener' : false + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: fileName + })), showDownloadButton && Object(external_this_wp_element_["createElement"])("a", { + href: href, + className: "wp-block-file__button", + download: true + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: downloadButtonText + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/transforms.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var file_transforms_transforms = { + from: [{ + type: 'files', + isMatch: function isMatch(files) { + return files.length > 0; + }, + // We define a lower priorty (higher number) than the default of 10. This + // ensures that the File block is only created as a fallback. + priority: 15, + transform: function transform(files) { + var blocks = []; + files.forEach(function (file) { + var blobURL = Object(external_this_wp_blob_["createBlobURL"])(file); // File will be uploaded in componentDidMount() + + blocks.push(Object(external_this_wp_blocks_["createBlock"])('core/file', { + href: blobURL, + fileName: file.name, + textLinkHref: blobURL + })); + }); + return blocks; + } + }, { + type: 'block', + blocks: ['core/audio'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/file', { + href: attributes.src, + fileName: attributes.caption, + textLinkHref: attributes.src, + id: attributes.id + }); + } + }, { + type: 'block', + blocks: ['core/video'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/file', { + href: attributes.src, + fileName: attributes.caption, + textLinkHref: attributes.src, + id: attributes.id + }); + } + }, { + type: 'block', + blocks: ['core/image'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/file', { + href: attributes.url, + fileName: attributes.caption, + textLinkHref: attributes.url, + id: attributes.id + }); + } + }], + to: [{ + type: 'block', + blocks: ['core/audio'], + isMatch: function isMatch(_ref) { + var id = _ref.id; + + if (!id) { + return false; + } + + var _select = Object(external_this_wp_data_["select"])('core'), + getMedia = _select.getMedia; + + var media = getMedia(id); + return !!media && Object(external_lodash_["includes"])(media.mime_type, 'audio'); + }, + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/audio', { + src: attributes.href, + caption: attributes.fileName, + id: attributes.id + }); + } + }, { + type: 'block', + blocks: ['core/video'], + isMatch: function isMatch(_ref2) { + var id = _ref2.id; + + if (!id) { + return false; + } + + var _select2 = Object(external_this_wp_data_["select"])('core'), + getMedia = _select2.getMedia; + + var media = getMedia(id); + return !!media && Object(external_lodash_["includes"])(media.mime_type, 'video'); + }, + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/video', { + src: attributes.href, + caption: attributes.fileName, + id: attributes.id + }); + } + }, { + type: 'block', + blocks: ['core/image'], + isMatch: function isMatch(_ref3) { + var id = _ref3.id; + + if (!id) { + return false; + } + + var _select3 = Object(external_this_wp_data_["select"])('core'), + getMedia = _select3.getMedia; + + var media = getMedia(id); + return !!media && Object(external_lodash_["includes"])(media.mime_type, 'image'); + }, + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/image', { + url: attributes.href, + caption: attributes.fileName, + id: attributes.id + }); + } + }] +}; +/* harmony default export */ var file_transforms = (file_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var file_metadata = { + name: "core/file", + category: "common", + attributes: { + id: { + type: "number" + }, + href: { + type: "string" + }, + fileName: { + type: "string", + source: "html", + selector: "a:not([download])" + }, + textLinkHref: { + type: "string", + source: "attribute", + selector: "a:not([download])", + attribute: "href" + }, + textLinkTarget: { + type: "string", + source: "attribute", + selector: "a:not([download])", + attribute: "target" + }, + showDownloadButton: { + type: "boolean", + "default": true + }, + downloadButtonText: { + type: "string", + source: "html", + selector: "a[download]" + } + } +}; + + +var file_name = file_metadata.name; + +var file_settings = { + title: Object(external_this_wp_i18n_["__"])('File'), + description: Object(external_this_wp_i18n_["__"])('Add a link to a downloadable file.'), + icon: file_icon, + keywords: [Object(external_this_wp_i18n_["__"])('document'), Object(external_this_wp_i18n_["__"])('pdf')], + supports: { + align: true + }, + transforms: file_transforms, + edit: file_edit, + save: file_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/edit.js + + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + +var edit_HTMLEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(HTMLEdit, _Component); + + function HTMLEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, HTMLEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HTMLEdit).apply(this, arguments)); + _this.state = { + isPreview: false, + styles: [] + }; + _this.switchToHTML = _this.switchToHTML.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.switchToPreview = _this.switchToPreview.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(HTMLEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var styles = this.props.styles; // Default styles used to unset some of the styles + // that might be inherited from the editor style. + + var defaultStyles = "\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"; + this.setState({ + styles: [defaultStyles].concat(Object(toConsumableArray["a" /* default */])(Object(external_this_wp_blockEditor_["transformStyles"])(styles))) + }); + } + }, { + key: "switchToPreview", + value: function switchToPreview() { + this.setState({ + isPreview: true + }); + } + }, { + key: "switchToHTML", + value: function switchToHTML() { + this.setState({ + isPreview: false + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes; + var _this$state = this.state, + isPreview = _this$state.isPreview, + styles = _this$state.styles; + return Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-html" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "components-toolbar" + }, Object(external_this_wp_element_["createElement"])("button", { + className: "components-tab-button ".concat(!isPreview ? 'is-active' : ''), + onClick: this.switchToHTML + }, Object(external_this_wp_element_["createElement"])("span", null, "HTML")), Object(external_this_wp_element_["createElement"])("button", { + className: "components-tab-button ".concat(isPreview ? 'is-active' : ''), + onClick: this.switchToPreview + }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Preview'))))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"].Consumer, null, function (isDisabled) { + return isPreview || isDisabled ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { + html: attributes.content, + styles: styles + }) : Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { + value: attributes.content, + onChange: function onChange(content) { + return setAttributes({ + content: content + }); + }, + placeholder: Object(external_this_wp_i18n_["__"])('Write HTML…'), + "aria-label": Object(external_this_wp_i18n_["__"])('HTML') + }); + })); + } + }]); + + return HTMLEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var html_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return { + styles: getSettings().styles + }; +})(edit_HTMLEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var html_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/save.js + + +/** + * WordPress dependencies + */ + +function html_save_save(_ref) { + var attributes = _ref.attributes; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/transforms.js +/** + * WordPress dependencies + */ + +var html_transforms_transforms = { + from: [{ + type: 'raw', + isMatch: function isMatch(node) { + return node.nodeName === 'FIGURE' && !!node.querySelector('iframe'); + }, + schema: { + figure: { + require: ['iframe'], + children: { + iframe: { + attributes: ['src', 'allowfullscreen', 'height', 'width'] + }, + figcaption: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + } + } + } + }] +}; +/* harmony default export */ var html_transforms = (html_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var html_metadata = { + name: "core/html", + category: "formatting", + attributes: { + content: { + type: "string", + source: "html" + } + } +}; + + +var html_name = html_metadata.name; + +var html_settings = { + title: Object(external_this_wp_i18n_["__"])('Custom HTML'), + description: Object(external_this_wp_i18n_["__"])('Add custom HTML code and preview it as you edit.'), + icon: html_icon, + keywords: [Object(external_this_wp_i18n_["__"])('embed')], + example: { + attributes: { + content: '' + Object(external_this_wp_i18n_["__"])('Welcome to the wonderful world of blocks…') + '' + } + }, + supports: { + customClassName: false, + className: false, + html: false + }, + transforms: html_transforms, + edit: html_edit, + save: html_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/deprecated.js + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +var DEFAULT_MEDIA_WIDTH = 50; +/* harmony default export */ var media_text_deprecated = ([{ + attributes: { + align: { + type: 'string', + default: 'wide' + }, + backgroundColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + mediaAlt: { + type: 'string', + source: 'attribute', + selector: 'figure img', + attribute: 'alt', + default: '' + }, + mediaPosition: { + type: 'string', + default: 'left' + }, + mediaId: { + type: 'number' + }, + mediaUrl: { + type: 'string', + source: 'attribute', + selector: 'figure video,figure img', + attribute: 'src' + }, + mediaType: { + type: 'string' + }, + mediaWidth: { + type: 'number', + default: 50 + }, + isStackedOnMobile: { + type: 'boolean', + default: false + } + }, + save: function save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var backgroundColor = attributes.backgroundColor, + customBackgroundColor = attributes.customBackgroundColor, + isStackedOnMobile = attributes.isStackedOnMobile, + mediaAlt = attributes.mediaAlt, + mediaPosition = attributes.mediaPosition, + mediaType = attributes.mediaType, + mediaUrl = attributes.mediaUrl, + mediaWidth = attributes.mediaWidth; + var mediaTypeRenders = { + image: function image() { + return Object(external_this_wp_element_["createElement"])("img", { + src: mediaUrl, + alt: mediaAlt + }); + }, + video: function video() { + return Object(external_this_wp_element_["createElement"])("video", { + controls: true, + src: mediaUrl + }); + } + }; + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var className = classnames_default()((_classnames = { + 'has-media-on-the-right': 'right' === mediaPosition + }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), _classnames)); + var gridTemplateColumns; + + if (mediaWidth !== DEFAULT_MEDIA_WIDTH) { + gridTemplateColumns = 'right' === mediaPosition ? "auto ".concat(mediaWidth, "%") : "".concat(mediaWidth, "% auto"); + } + + var style = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + gridTemplateColumns: gridTemplateColumns + }; + return Object(external_this_wp_element_["createElement"])("div", { + className: className, + style: style + }, Object(external_this_wp_element_["createElement"])("figure", { + className: "wp-block-media-text__media" + }, (mediaTypeRenders[mediaType] || external_lodash_["noop"])()), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-media-text__content" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); + } +}]); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/media-container-icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var media_container_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/media-container.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +/** + * Constants + */ + +var media_container_ALLOWED_MEDIA_TYPES = ['image', 'video']; +function imageFillStyles(url, focalPoint) { + return url ? { + backgroundImage: "url(".concat(url, ")"), + backgroundPosition: focalPoint ? "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%") : "50% 50%" + } : {}; +} + +var media_container_MediaContainer = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(MediaContainer, _Component); + + function MediaContainer() { + var _this; + + Object(classCallCheck["a" /* default */])(this, MediaContainer); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaContainer).apply(this, arguments)); + _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(MediaContainer, [{ + key: "onUploadError", + value: function onUploadError(message) { + var noticeOperations = this.props.noticeOperations; + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + } + }, { + key: "renderToolbarEditButton", + value: function renderToolbarEditButton() { + var _this$props = this.props, + mediaId = _this$props.mediaId, + onSelectMedia = _this$props.onSelectMedia; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { + onSelect: onSelectMedia, + allowedTypes: media_container_ALLOWED_MEDIA_TYPES, + value: mediaId, + render: function render(_ref) { + var open = _ref.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit media'), + icon: "edit", + onClick: open + }); + } + }))); + } + }, { + key: "renderImage", + value: function renderImage() { + var _this$props2 = this.props, + mediaAlt = _this$props2.mediaAlt, + mediaUrl = _this$props2.mediaUrl, + className = _this$props2.className, + imageFill = _this$props2.imageFill, + focalPoint = _this$props2.focalPoint; + var backgroundStyles = imageFill ? imageFillStyles(mediaUrl, focalPoint) : {}; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderToolbarEditButton(), Object(external_this_wp_element_["createElement"])("figure", { + className: className, + style: backgroundStyles + }, Object(external_this_wp_element_["createElement"])("img", { + src: mediaUrl, + alt: mediaAlt + }))); + } + }, { + key: "renderVideo", + value: function renderVideo() { + var _this$props3 = this.props, + mediaUrl = _this$props3.mediaUrl, + className = _this$props3.className; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderToolbarEditButton(), Object(external_this_wp_element_["createElement"])("figure", { + className: className + }, Object(external_this_wp_element_["createElement"])("video", { + controls: true, + src: mediaUrl + }))); + } + }, { + key: "renderPlaceholder", + value: function renderPlaceholder() { + var _this$props4 = this.props, + onSelectMedia = _this$props4.onSelectMedia, + className = _this$props4.className, + noticeUI = _this$props4.noticeUI; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: media_container_icon + }), + labels: { + title: Object(external_this_wp_i18n_["__"])('Media area') + }, + className: className, + onSelect: onSelectMedia, + accept: "image/*,video/*", + allowedTypes: media_container_ALLOWED_MEDIA_TYPES, + notices: noticeUI, + onError: this.onUploadError + }); + } + }, { + key: "render", + value: function render() { + var _this$props5 = this.props, + mediaPosition = _this$props5.mediaPosition, + mediaUrl = _this$props5.mediaUrl, + mediaType = _this$props5.mediaType, + mediaWidth = _this$props5.mediaWidth, + commitWidthChange = _this$props5.commitWidthChange, + onWidthChange = _this$props5.onWidthChange, + toggleSelection = _this$props5.toggleSelection; + + if (mediaType && mediaUrl) { + var onResizeStart = function onResizeStart() { + toggleSelection(false); + }; + + var onResize = function onResize(event, direction, elt) { + onWidthChange(parseInt(elt.style.width)); + }; + + var onResizeStop = function onResizeStop(event, direction, elt) { + toggleSelection(true); + commitWidthChange(parseInt(elt.style.width)); + }; + + var enablePositions = { + right: mediaPosition === 'left', + left: mediaPosition === 'right' + }; + var mediaElement = null; + + switch (mediaType) { + case 'image': + mediaElement = this.renderImage(); + break; + + case 'video': + mediaElement = this.renderVideo(); + break; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { + className: "editor-media-container__resizer", + size: { + width: mediaWidth + '%' + }, + minWidth: "10%", + maxWidth: "100%", + enable: enablePositions, + onResizeStart: onResizeStart, + onResize: onResize, + onResizeStop: onResizeStop, + axis: "x" + }, mediaElement); + } + + return this.renderPlaceholder(); + } + }]); + + return MediaContainer; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var media_container = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + toggleSelection = _dispatch.toggleSelection; + + return { + toggleSelection: toggleSelection + }; +}), external_this_wp_components_["withNotices"]])(media_container_MediaContainer)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/edit.js + + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +/** + * Constants + */ + +var TEMPLATE = [['core/paragraph', { + fontSize: 'large', + placeholder: Object(external_this_wp_i18n_["_x"])('Content…', 'content placeholder') +}]]; // this limits the resize to a safe zone to avoid making broken layouts + +var WIDTH_CONSTRAINT_PERCENTAGE = 15; + +var applyWidthConstraints = function applyWidthConstraints(width) { + return Math.max(WIDTH_CONSTRAINT_PERCENTAGE, Math.min(width, 100 - WIDTH_CONSTRAINT_PERCENTAGE)); +}; + +var edit_MediaTextEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(MediaTextEdit, _Component); + + function MediaTextEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, MediaTextEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaTextEdit).apply(this, arguments)); + _this.onSelectMedia = _this.onSelectMedia.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onWidthChange = _this.onWidthChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.commitWidthChange = _this.commitWidthChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + mediaWidth: null + }; + return _this; + } + + Object(createClass["a" /* default */])(MediaTextEdit, [{ + key: "onSelectMedia", + value: function onSelectMedia(media) { + var setAttributes = this.props.setAttributes; + var mediaType; + var src; // for media selections originated from a file upload. + + if (media.media_type) { + if (media.media_type === 'image') { + mediaType = 'image'; + } else { + // only images and videos are accepted so if the media_type is not an image we can assume it is a video. + // video contain the media type of 'file' in the object returned from the rest api. + mediaType = 'video'; + } + } else { + // for media selections originated from existing files in the media library. + mediaType = media.type; + } + + if (mediaType === 'image') { + // Try the "large" size URL, falling back to the "full" size URL below. + src = Object(external_lodash_["get"])(media, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(media, ['media_details', 'sizes', 'large', 'source_url']); + } + + setAttributes({ + mediaAlt: media.alt, + mediaId: media.id, + mediaType: mediaType, + mediaUrl: src || media.url, + imageFill: undefined, + focalPoint: undefined + }); + } + }, { + key: "onWidthChange", + value: function onWidthChange(width) { + this.setState({ + mediaWidth: applyWidthConstraints(width) + }); + } + }, { + key: "commitWidthChange", + value: function commitWidthChange(width) { + var setAttributes = this.props.setAttributes; + setAttributes({ + mediaWidth: applyWidthConstraints(width) + }); + this.setState({ + mediaWidth: null + }); + } + }, { + key: "renderMediaArea", + value: function renderMediaArea() { + var attributes = this.props.attributes; + var mediaAlt = attributes.mediaAlt, + mediaId = attributes.mediaId, + mediaPosition = attributes.mediaPosition, + mediaType = attributes.mediaType, + mediaUrl = attributes.mediaUrl, + mediaWidth = attributes.mediaWidth, + imageFill = attributes.imageFill, + focalPoint = attributes.focalPoint; + return Object(external_this_wp_element_["createElement"])(media_container, Object(esm_extends["a" /* default */])({ + className: "block-library-media-text__media-container", + onSelectMedia: this.onSelectMedia, + onWidthChange: this.onWidthChange, + commitWidthChange: this.commitWidthChange + }, { + mediaAlt: mediaAlt, + mediaId: mediaId, + mediaType: mediaType, + mediaUrl: mediaUrl, + mediaPosition: mediaPosition, + mediaWidth: mediaWidth, + imageFill: imageFill, + focalPoint: focalPoint + })); + } + }, { + key: "render", + value: function render() { + var _classnames; + + var _this$props = this.props, + attributes = _this$props.attributes, + className = _this$props.className, + backgroundColor = _this$props.backgroundColor, + isSelected = _this$props.isSelected, + setAttributes = _this$props.setAttributes, + setBackgroundColor = _this$props.setBackgroundColor; + var isStackedOnMobile = attributes.isStackedOnMobile, + mediaAlt = attributes.mediaAlt, + mediaPosition = attributes.mediaPosition, + mediaType = attributes.mediaType, + mediaWidth = attributes.mediaWidth, + verticalAlignment = attributes.verticalAlignment, + mediaUrl = attributes.mediaUrl, + imageFill = attributes.imageFill, + focalPoint = attributes.focalPoint; + var temporaryMediaWidth = this.state.mediaWidth; + var classNames = classnames_default()(className, (_classnames = { + 'has-media-on-the-right': 'right' === mediaPosition, + 'is-selected': isSelected, + 'has-background': backgroundColor.class || backgroundColor.color + }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); + var widthString = "".concat(temporaryMediaWidth || mediaWidth, "%"); + var style = { + gridTemplateColumns: 'right' === mediaPosition ? "auto ".concat(widthString) : "".concat(widthString, " auto"), + backgroundColor: backgroundColor.color + }; + var colorSettings = [{ + value: backgroundColor.color, + onChange: setBackgroundColor, + label: Object(external_this_wp_i18n_["__"])('Background Color') + }]; + var toolbarControls = [{ + icon: 'align-pull-left', + title: Object(external_this_wp_i18n_["__"])('Show media on left'), + isActive: mediaPosition === 'left', + onClick: function onClick() { + return setAttributes({ + mediaPosition: 'left' + }); + } + }, { + icon: 'align-pull-right', + title: Object(external_this_wp_i18n_["__"])('Show media on right'), + isActive: mediaPosition === 'right', + onClick: function onClick() { + return setAttributes({ + mediaPosition: 'right' + }); + } + }]; + + var onMediaAltChange = function onMediaAltChange(newMediaAlt) { + setAttributes({ + mediaAlt: newMediaAlt + }); + }; + + var onVerticalAlignmentChange = function onVerticalAlignmentChange(alignment) { + setAttributes({ + verticalAlignment: alignment + }); + }; + + var mediaTextGeneralSettings = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Media & Text Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Stack on mobile'), + checked: isStackedOnMobile, + onChange: function onChange() { + return setAttributes({ + isStackedOnMobile: !isStackedOnMobile + }); + } + }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Crop image to fill entire column'), + checked: imageFill, + onChange: function onChange() { + return setAttributes({ + imageFill: !imageFill + }); + } + }), imageFill && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { + label: Object(external_this_wp_i18n_["__"])('Focal Point Picker'), + url: mediaUrl, + value: focalPoint, + onChange: function onChange(value) { + return setAttributes({ + focalPoint: value + }); + } + }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { + label: Object(external_this_wp_i18n_["__"])('Alt Text (Alternative Text)'), + value: mediaAlt, + onChange: onMediaAltChange, + help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { + href: "https://www.w3.org/WAI/tutorials/images/decision-tree" + }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.')) + })); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, mediaTextGeneralSettings, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + initialOpen: false, + colorSettings: colorSettings + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: toolbarControls + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { + onChange: onVerticalAlignmentChange, + value: verticalAlignment + })), Object(external_this_wp_element_["createElement"])("div", { + className: classNames, + style: style + }, this.renderMediaArea(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + template: TEMPLATE, + templateInsertUpdatesSelection: false + }))); + } + }]); + + return MediaTextEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var media_text_edit = (Object(external_this_wp_blockEditor_["withColors"])('backgroundColor')(edit_MediaTextEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var media_text_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/save.js + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var save_DEFAULT_MEDIA_WIDTH = 50; +function media_text_save_save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var backgroundColor = attributes.backgroundColor, + customBackgroundColor = attributes.customBackgroundColor, + isStackedOnMobile = attributes.isStackedOnMobile, + mediaAlt = attributes.mediaAlt, + mediaPosition = attributes.mediaPosition, + mediaType = attributes.mediaType, + mediaUrl = attributes.mediaUrl, + mediaWidth = attributes.mediaWidth, + mediaId = attributes.mediaId, + verticalAlignment = attributes.verticalAlignment, + imageFill = attributes.imageFill, + focalPoint = attributes.focalPoint; + var mediaTypeRenders = { + image: function image() { + return Object(external_this_wp_element_["createElement"])("img", { + src: mediaUrl, + alt: mediaAlt, + className: mediaId && mediaType === 'image' ? "wp-image-".concat(mediaId) : null + }); + }, + video: function video() { + return Object(external_this_wp_element_["createElement"])("video", { + controls: true, + src: mediaUrl + }); + } + }; + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var className = classnames_default()((_classnames = { + 'has-media-on-the-right': 'right' === mediaPosition, + 'has-background': backgroundClass || customBackgroundColor + }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); + var backgroundStyles = imageFill ? imageFillStyles(mediaUrl, focalPoint) : {}; + var gridTemplateColumns; + + if (mediaWidth !== save_DEFAULT_MEDIA_WIDTH) { + gridTemplateColumns = 'right' === mediaPosition ? "auto ".concat(mediaWidth, "%") : "".concat(mediaWidth, "% auto"); + } + + var style = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + gridTemplateColumns: gridTemplateColumns + }; + return Object(external_this_wp_element_["createElement"])("div", { + className: className, + style: style + }, Object(external_this_wp_element_["createElement"])("figure", { + className: "wp-block-media-text__media", + style: backgroundStyles + }, (mediaTypeRenders[mediaType] || external_lodash_["noop"])()), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-media-text__content" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/transforms.js +/** + * WordPress dependencies + */ + +var media_text_transforms_transforms = { + from: [{ + type: 'block', + blocks: ['core/image'], + transform: function transform(_ref) { + var alt = _ref.alt, + url = _ref.url, + id = _ref.id; + return Object(external_this_wp_blocks_["createBlock"])('core/media-text', { + mediaAlt: alt, + mediaId: id, + mediaUrl: url, + mediaType: 'image' + }); + } + }, { + type: 'block', + blocks: ['core/video'], + transform: function transform(_ref2) { + var src = _ref2.src, + id = _ref2.id; + return Object(external_this_wp_blocks_["createBlock"])('core/media-text', { + mediaId: id, + mediaUrl: src, + mediaType: 'video' + }); + } + }], + to: [{ + type: 'block', + blocks: ['core/image'], + isMatch: function isMatch(_ref3) { + var mediaType = _ref3.mediaType, + mediaUrl = _ref3.mediaUrl; + return !mediaUrl || mediaType === 'image'; + }, + transform: function transform(_ref4) { + var mediaAlt = _ref4.mediaAlt, + mediaId = _ref4.mediaId, + mediaUrl = _ref4.mediaUrl; + return Object(external_this_wp_blocks_["createBlock"])('core/image', { + alt: mediaAlt, + id: mediaId, + url: mediaUrl + }); + } + }, { + type: 'block', + blocks: ['core/video'], + isMatch: function isMatch(_ref5) { + var mediaType = _ref5.mediaType, + mediaUrl = _ref5.mediaUrl; + return !mediaUrl || mediaType === 'video'; + }, + transform: function transform(_ref6) { + var mediaId = _ref6.mediaId, + mediaUrl = _ref6.mediaUrl; + return Object(external_this_wp_blocks_["createBlock"])('core/video', { + id: mediaId, + src: mediaUrl + }); + } + }] +}; +/* harmony default export */ var media_text_transforms = (media_text_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var media_text_metadata = { + name: "core/media-text", + category: "layout", + attributes: { + align: { + type: "string", + "default": "wide" + }, + backgroundColor: { + type: "string" + }, + customBackgroundColor: { + type: "string" + }, + mediaAlt: { + type: "string", + source: "attribute", + selector: "figure img", + attribute: "alt", + "default": "" + }, + mediaPosition: { + type: "string", + "default": "left" + }, + mediaId: { + type: "number" + }, + mediaUrl: { + type: "string", + source: "attribute", + selector: "figure video,figure img", + attribute: "src" + }, + mediaType: { + type: "string" + }, + mediaWidth: { + type: "number", + "default": 50 + }, + isStackedOnMobile: { + type: "boolean", + "default": false + }, + verticalAlignment: { + type: "string" + }, + imageFill: { + type: "boolean" + }, + focalPoint: { + type: "object" + } + } +}; + + +var media_text_name = media_text_metadata.name; + +var media_text_settings = { + title: Object(external_this_wp_i18n_["__"])('Media & Text'), + description: Object(external_this_wp_i18n_["__"])('Set media and words side-by-side for a richer layout.'), + icon: media_text_icon, + keywords: [Object(external_this_wp_i18n_["__"])('image'), Object(external_this_wp_i18n_["__"])('video')], + supports: { + align: ['wide', 'full'], + html: false + }, + example: { + attributes: { + mediaType: 'image', + mediaUrl: 'https://upload.wikimedia.org/wikipedia/commons/d/d4/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg' + }, + innerBlocks: [{ + name: 'core/paragraph', + attributes: { + content: Object(external_this_wp_i18n_["__"])('The wren
Earns his living
Noiselessly.') + } + }, { + name: 'core/paragraph', + attributes: { + content: Object(external_this_wp_i18n_["__"])('— Kobayashi Issa (一茶)') + } + }] + }, + transforms: media_text_transforms, + edit: media_text_edit, + save: media_text_save_save, + deprecated: media_text_deprecated +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu/use-block-navigator.js + + + +/** + * WordPress dependencies + */ + + + + + +var NavigatorIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24", + width: "20", + height: "20" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z" +})); +function useBlockNavigator(clientId) { + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isNavigationListOpen = _useState2[0], + setIsNavigationListOpen = _useState2[1]; + + var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getBlock = _select.getBlock; + + return { + block: getBlock(clientId), + selectedBlockClientId: getSelectedBlockClientId() + }; + }, [clientId]), + block = _useSelect.block, + selectedBlockClientId = _useSelect.selectedBlockClientId; + + var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), + selectBlock = _useDispatch.selectBlock; + + var navigatorToolbarButton = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Open block navigator'), + onClick: function onClick() { + return setIsNavigationListOpen(true); + }, + icon: NavigatorIcon + }); + var navigatorModal = isNavigationListOpen && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], { + title: Object(external_this_wp_i18n_["__"])('Block Navigator'), + closeLabel: Object(external_this_wp_i18n_["__"])('Close'), + onRequestClose: function onRequestClose() { + setIsNavigationListOpen(false); + } + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockNavigationList"], { + blocks: [block], + selectedBlockClientId: selectedBlockClientId, + selectBlock: selectBlock, + showNestedBlocks: true + })); + return { + navigatorToolbarButton: navigatorToolbarButton, + navigatorModal: navigatorModal + }; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu/edit.js + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +function NavigationMenu(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + clientId = _ref.clientId; + + var _useBlockNavigator = useBlockNavigator(clientId), + navigatorToolbarButton = _useBlockNavigator.navigatorToolbarButton, + navigatorModal = _useBlockNavigator.navigatorModal; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, navigatorToolbarButton)), navigatorModal, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Menu Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CheckboxControl"], { + value: attributes.automaticallyAdd, + onChange: function onChange(automaticallyAdd) { + setAttributes({ + automaticallyAdd: automaticallyAdd + }); + }, + label: Object(external_this_wp_i18n_["__"])('Automatically add new pages'), + help: Object(external_this_wp_i18n_["__"])('Automatically add new top level pages to this menu.') + }))), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-navigation-menu" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + allowedBlocks: ['core/navigation-menu-item'], + renderAppender: external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender + }))); +} + +/* harmony default export */ var navigation_menu_edit = (NavigationMenu); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu/save.js + + +/** + * WordPress dependencies + */ + +function navigation_menu_save_save() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var navigation_menu_name = 'core/navigation-menu'; +var navigation_menu_settings = { + title: Object(external_this_wp_i18n_["__"])('Navigation Menu (Experimental)'), + icon: 'menu', + description: Object(external_this_wp_i18n_["__"])('Add a navigation menu to your site.'), + keywords: [Object(external_this_wp_i18n_["__"])('menu'), Object(external_this_wp_i18n_["__"])('navigation'), Object(external_this_wp_i18n_["__"])('links')], + supports: { + align: ['wide', 'full'], + anchor: true, + html: false, + inserter: true + }, + edit: navigation_menu_edit, + save: navigation_menu_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu-item/menu-item-actions.js + + +/** + * WordPress dependencies + */ + + + + + +function MenuItemActions(_ref) { + var destination = _ref.destination, + moveLeft = _ref.moveLeft, + moveRight = _ref.moveRight, + moveToEnd = _ref.moveToEnd, + moveToStart = _ref.moveToStart, + onEditLableClicked = _ref.onEditLableClicked, + remove = _ref.remove; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + icon: "admin-links" + }, destination), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: onEditLableClicked, + icon: "edit" + }, Object(external_this_wp_i18n_["__"])('Edit label text')), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-navigation-menu-item__separator" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: moveToStart, + icon: "arrow-up-alt2" + }, Object(external_this_wp_i18n_["__"])('Move to start')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: moveLeft, + icon: "arrow-left-alt2" + }, Object(external_this_wp_i18n_["__"])('Move left')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: moveRight, + icon: "arrow-right-alt2" + }, Object(external_this_wp_i18n_["__"])('Move right')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: moveToEnd, + icon: "arrow-down-alt2" + }, Object(external_this_wp_i18n_["__"])('Move to end')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + icon: "arrow-left-alt2" + }, Object(external_this_wp_i18n_["__"])('Nest underneath…')), Object(external_this_wp_element_["createElement"])("div", { + className: "navigation-menu-item__separator" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: remove, + icon: "trash" + }, Object(external_this_wp_i18n_["__"])('Remove from menu'))); +} + +/* harmony default export */ var menu_item_actions = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2, _ref3) { + var clientId = _ref2.clientId; + var select = _ref3.select; + + var _select = select('core/block-editor'), + getBlockOrder = _select.getBlockOrder, + getBlockRootClientId = _select.getBlockRootClientId; + + var parentID = getBlockRootClientId(clientId); + + var _dispatch = dispatch('core/block-editor'), + moveBlocksDown = _dispatch.moveBlocksDown, + moveBlocksUp = _dispatch.moveBlocksUp, + moveBlockToPosition = _dispatch.moveBlockToPosition, + removeBlocks = _dispatch.removeBlocks; + + return { + moveToStart: function moveToStart() { + moveBlockToPosition(clientId, parentID, parentID, 0); + }, + moveRight: function moveRight() { + moveBlocksDown(clientId, parentID); + }, + moveLeft: function moveLeft() { + moveBlocksUp(clientId, parentID); + }, + moveToEnd: function moveToEnd() { + moveBlockToPosition(clientId, parentID, parentID, getBlockOrder(parentID).length - 1); + }, + remove: function remove() { + removeBlocks(clientId); + } + }; +})])(MenuItemActions)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu-item/edit.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +var POPOVER_PROPS = { + noArrow: true +}; + +function NavigationMenuItemEdit(_ref) { + var attributes = _ref.attributes, + clientId = _ref.clientId, + isSelected = _ref.isSelected, + setAttributes = _ref.setAttributes; + var plainTextRef = Object(external_this_wp_element_["useRef"])(null); + var onEditLableClicked = Object(external_this_wp_element_["useCallback"])(function (onClose) { + return function () { + onClose(); + Object(external_lodash_["invoke"])(plainTextRef, ['current', 'textarea', 'focus']); + }; + }, [plainTextRef]); + var content; + + if (isSelected) { + content = Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-navigation-menu-item__edit-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { + ref: plainTextRef, + className: "wp-block-navigation-menu-item__field", + value: attributes.label, + onChange: function onChange(label) { + return setAttributes({ + label: label + }); + }, + "aria-label": Object(external_this_wp_i18n_["__"])('Navigation Label'), + maxRows: 1 + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + contentClassName: "wp-block-navigation-menu-item__dropdown-content", + position: "bottom left", + popoverProps: POPOVER_PROPS, + renderToggle: function renderToggle(_ref2) { + var isOpen = _ref2.isOpen, + onToggle = _ref2.onToggle; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: isOpen ? 'arrow-up-alt2' : 'arrow-down-alt2', + label: Object(external_this_wp_i18n_["__"])('More options'), + onClick: onToggle, + "aria-expanded": isOpen + }); + }, + renderContent: function renderContent(_ref3) { + var onClose = _ref3.onClose; + return Object(external_this_wp_element_["createElement"])(menu_item_actions, { + clientId: clientId, + destination: attributes.destination, + onEditLableClicked: onEditLableClicked(onClose) + }); + } + })); + } else { + content = attributes.label; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Menu Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + checked: attributes.opensInNewTab, + onChange: function onChange(opensInNewTab) { + setAttributes({ + opensInNewTab: opensInNewTab + }); + }, + label: Object(external_this_wp_i18n_["__"])('Open in new tab') + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { + value: attributes.description || '', + onChange: function onChange(description) { + setAttributes({ + description: description + }); + }, + label: Object(external_this_wp_i18n_["__"])('Description') + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('SEO Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + value: attributes.title || '', + onChange: function onChange(title) { + setAttributes({ + title: title + }); + }, + label: Object(external_this_wp_i18n_["__"])('Title Attribute'), + help: Object(external_this_wp_i18n_["__"])('Provide more context about where the link goes.') + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + checked: attributes.nofollow, + onChange: function onChange(nofollow) { + setAttributes({ + nofollow: nofollow + }); + }, + label: Object(external_this_wp_i18n_["__"])('Add nofollow to menu item'), + help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_i18n_["__"])('Don\'t let search engines follow this link.'), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { + className: "wp-block-navigation-menu-item__nofollow-external-link", + href: Object(external_this_wp_i18n_["__"])('https://codex.wordpress.org/Nofollow') + }, Object(external_this_wp_i18n_["__"])('What\'s this?'))) + }))), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-navigation-menu-item" + }, content, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + allowedBlocks: ['core/navigation-menu-item'], + renderAppender: external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender + }))); +} + +/* harmony default export */ var navigation_menu_item_edit = (NavigationMenuItemEdit); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu-item/save.js + + +/** + * WordPress dependencies + */ + +function navigation_menu_item_save_save() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu-item/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + +var navigation_menu_item_metadata = { + name: "core/navigation-menu-item", + category: "layout", + attributes: { + label: { + type: "string" + }, + destination: { + type: "string" + }, + nofollow: { + type: "boolean", + "default": false + }, + title: { + type: "string" + }, + description: { + type: "string" + }, + opensInNewTab: { + type: "boolean", + "default": false + } + } +}; + + +var navigation_menu_item_name = navigation_menu_item_metadata.name; + +var navigation_menu_item_settings = { + title: Object(external_this_wp_i18n_["__"])('Menu Item (Experimental)'), + parent: ['core/navigation-menu'], + icon: 'admin-links', + description: Object(external_this_wp_i18n_["__"])('Add a page, link, or other item to your Navigation Menu.'), + edit: navigation_menu_item_edit, + save: navigation_menu_item_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/edit.js + + + + + + + + + +/** + * WordPress dependencies + */ + + + + + +/** + * Minimum number of comments a user can show using this block. + * + * @type {number} + */ + +var MIN_COMMENTS = 1; +/** + * Maximum number of comments a user can show using this block. + * + * @type {number} + */ + +var MAX_COMMENTS = 100; + +var edit_LatestComments = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(LatestComments, _Component); + + function LatestComments() { + var _this; + + Object(classCallCheck["a" /* default */])(this, LatestComments); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LatestComments).apply(this, arguments)); + _this.setCommentsToShow = _this.setCommentsToShow.bind(Object(assertThisInitialized["a" /* default */])(_this)); // Create toggles for each attribute; we create them here rather than + // passing `this.createToggleAttribute( 'displayAvatar' )` directly to + // `onChange` to avoid re-renders. + + _this.toggleDisplayAvatar = _this.createToggleAttribute('displayAvatar'); + _this.toggleDisplayDate = _this.createToggleAttribute('displayDate'); + _this.toggleDisplayExcerpt = _this.createToggleAttribute('displayExcerpt'); + return _this; + } + + Object(createClass["a" /* default */])(LatestComments, [{ + key: "createToggleAttribute", + value: function createToggleAttribute(propName) { + var _this2 = this; + + return function () { + var value = _this2.props.attributes[propName]; + var setAttributes = _this2.props.setAttributes; + setAttributes(Object(defineProperty["a" /* default */])({}, propName, !value)); + }; + } + }, { + key: "setCommentsToShow", + value: function setCommentsToShow(commentsToShow) { + this.props.setAttributes({ + commentsToShow: commentsToShow + }); + } + }, { + key: "render", + value: function render() { + var _this$props$attribute = this.props.attributes, + commentsToShow = _this$props$attribute.commentsToShow, + displayAvatar = _this$props$attribute.displayAvatar, + displayDate = _this$props$attribute.displayDate, + displayExcerpt = _this$props$attribute.displayExcerpt; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Latest Comments Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display Avatar'), + checked: displayAvatar, + onChange: this.toggleDisplayAvatar + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display Date'), + checked: displayDate, + onChange: this.toggleDisplayDate + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display Excerpt'), + checked: displayExcerpt, + onChange: this.toggleDisplayExcerpt + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Number of Comments'), + value: commentsToShow, + onChange: this.setCommentsToShow, + min: MIN_COMMENTS, + max: MAX_COMMENTS, + required: true + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + block: "core/latest-comments", + attributes: this.props.attributes + }))); + } + }]); + + return LatestComments; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var latest_comments_edit = (edit_LatestComments); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var latest_comments_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z" +})))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var latest_comments_name = 'core/latest-comments'; +var latest_comments_settings = { + title: Object(external_this_wp_i18n_["__"])('Latest Comments'), + description: Object(external_this_wp_i18n_["__"])('Display a list of your most recent comments.'), + icon: latest_comments_icon, + category: 'widgets', + keywords: [Object(external_this_wp_i18n_["__"])('recent comments')], + supports: { + align: true, + html: false + }, + edit: latest_comments_edit +}; + +// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} +var external_this_wp_apiFetch_ = __webpack_require__(32); +var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); + +// EXTERNAL MODULE: external {"this":["wp","date"]} +var external_this_wp_date_ = __webpack_require__(54); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/edit.js + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + + + +/** + * Module Constants + */ + +var CATEGORIES_LIST_QUERY = { + per_page: -1 +}; +var MAX_POSTS_COLUMNS = 6; + +var edit_LatestPostsEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(LatestPostsEdit, _Component); + + function LatestPostsEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, LatestPostsEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LatestPostsEdit).apply(this, arguments)); + _this.state = { + categoriesList: [] + }; + return _this; + } + + Object(createClass["a" /* default */])(LatestPostsEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + this.isStillMounted = true; + this.fetchRequest = external_this_wp_apiFetch_default()({ + path: Object(external_this_wp_url_["addQueryArgs"])("/wp/v2/categories", CATEGORIES_LIST_QUERY) + }).then(function (categoriesList) { + if (_this2.isStillMounted) { + _this2.setState({ + categoriesList: categoriesList + }); + } + }).catch(function () { + if (_this2.isStillMounted) { + _this2.setState({ + categoriesList: [] + }); + } + }); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.isStillMounted = false; + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes, + latestPosts = _this$props.latestPosts; + var categoriesList = this.state.categoriesList; + var displayPostContentRadio = attributes.displayPostContentRadio, + displayPostContent = attributes.displayPostContent, + displayPostDate = attributes.displayPostDate, + postLayout = attributes.postLayout, + columns = attributes.columns, + order = attributes.order, + orderBy = attributes.orderBy, + categories = attributes.categories, + postsToShow = attributes.postsToShow, + excerptLength = attributes.excerptLength; + var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Post Content Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Post Content'), + checked: displayPostContent, + onChange: function onChange(value) { + return setAttributes({ + displayPostContent: value + }); + } + }), displayPostContent && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RadioControl"], { + label: "Show:", + selected: displayPostContentRadio, + options: [{ + label: 'Excerpt', + value: 'excerpt' + }, { + label: 'Full Post', + value: 'full_post' + }], + onChange: function onChange(value) { + return setAttributes({ + displayPostContentRadio: value + }); + } + }), displayPostContent && displayPostContentRadio === 'excerpt' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Max number of words in excerpt'), + value: excerptLength, + onChange: function onChange(value) { + return setAttributes({ + excerptLength: value + }); + }, + min: 10, + max: 100 + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Post Meta Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display post date'), + checked: displayPostDate, + onChange: function onChange(value) { + return setAttributes({ + displayPostDate: value + }); + } + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Sorting and Filtering') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["QueryControls"], Object(esm_extends["a" /* default */])({ + order: order, + orderBy: orderBy + }, { + numberOfItems: postsToShow, + categoriesList: categoriesList, + selectedCategoryId: categories, + onOrderChange: function onOrderChange(value) { + return setAttributes({ + order: value + }); + }, + onOrderByChange: function onOrderByChange(value) { + return setAttributes({ + orderBy: value + }); + }, + onCategoryChange: function onCategoryChange(value) { + return setAttributes({ + categories: '' !== value ? value : undefined + }); + }, + onNumberOfItemsChange: function onNumberOfItemsChange(value) { + return setAttributes({ + postsToShow: value + }); + } + })), postLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Columns'), + value: columns, + onChange: function onChange(value) { + return setAttributes({ + columns: value + }); + }, + min: 2, + max: !hasPosts ? MAX_POSTS_COLUMNS : Math.min(MAX_POSTS_COLUMNS, latestPosts.length), + required: true + }))); + var hasPosts = Array.isArray(latestPosts) && latestPosts.length; + + if (!hasPosts) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: "admin-post", + label: Object(external_this_wp_i18n_["__"])('Latest Posts') + }, !Array.isArray(latestPosts) ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null) : Object(external_this_wp_i18n_["__"])('No posts found.'))); + } // Removing posts from display should be instant. + + + var displayPosts = latestPosts.length > postsToShow ? latestPosts.slice(0, postsToShow) : latestPosts; + var layoutControls = [{ + icon: 'list-view', + title: Object(external_this_wp_i18n_["__"])('List view'), + onClick: function onClick() { + return setAttributes({ + postLayout: 'list' + }); + }, + isActive: postLayout === 'list' + }, { + icon: 'grid-view', + title: Object(external_this_wp_i18n_["__"])('Grid view'), + onClick: function onClick() { + return setAttributes({ + postLayout: 'grid' + }); + }, + isActive: postLayout === 'grid' + }]; + + var dateFormat = Object(external_this_wp_date_["__experimentalGetSettings"])().formats.date; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: layoutControls + })), Object(external_this_wp_element_["createElement"])("ul", { + className: classnames_default()(this.props.className, Object(defineProperty["a" /* default */])({ + 'wp-block-latest-posts__list': true, + 'is-grid': postLayout === 'grid', + 'has-dates': displayPostDate + }, "columns-".concat(columns), postLayout === 'grid')) + }, displayPosts.map(function (post, i) { + var titleTrimmed = post.title.rendered.trim(); + var excerpt = post.excerpt.rendered; + + if (post.excerpt.raw === '') { + excerpt = post.content.raw; + } + + var excerptElement = document.createElement('div'); + excerptElement.innerHTML = excerpt; + excerpt = excerptElement.textContent || excerptElement.innerText || ''; + return Object(external_this_wp_element_["createElement"])("li", { + key: i + }, Object(external_this_wp_element_["createElement"])("a", { + href: post.link, + target: "_blank", + rel: "noreferrer noopener" + }, titleTrimmed ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, titleTrimmed) : Object(external_this_wp_i18n_["__"])('(no title)')), displayPostDate && post.date_gmt && Object(external_this_wp_element_["createElement"])("time", { + dateTime: Object(external_this_wp_date_["format"])('c', post.date_gmt), + className: "wp-block-latest-posts__post-date" + }, Object(external_this_wp_date_["dateI18n"])(dateFormat, post.date_gmt)), displayPostContent && displayPostContentRadio === 'excerpt' && Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-latest-posts__post-excerpt" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], { + key: "html" + }, excerptLength < excerpt.trim().split(' ').length ? excerpt.trim().split(' ', excerptLength).join(' ') + ' ... ' + Object(external_this_wp_i18n_["__"])('Read more') + '' : excerpt.trim().split(' ', excerptLength).join(' '))), displayPostContent && displayPostContentRadio === 'full_post' && Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-latest-posts__post-full-content" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], { + key: "html" + }, post.content.raw.trim()))); + }))); + } + }]); + + return LatestPostsEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var latest_posts_edit = (Object(external_this_wp_data_["withSelect"])(function (select, props) { + var _props$attributes = props.attributes, + postsToShow = _props$attributes.postsToShow, + order = _props$attributes.order, + orderBy = _props$attributes.orderBy, + categories = _props$attributes.categories; + + var _select = select('core'), + getEntityRecords = _select.getEntityRecords; + + var latestPostsQuery = Object(external_lodash_["pickBy"])({ + categories: categories, + order: order, + orderby: orderBy, + per_page: postsToShow + }, function (value) { + return !Object(external_lodash_["isUndefined"])(value); + }); + return { + latestPosts: getEntityRecords('postType', 'post', latestPostsQuery) + }; +})(edit_LatestPostsEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var latest_posts_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "11", + y: "7", + width: "6", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "11", + y: "11", + width: "6", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "11", + y: "15", + width: "6", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "7", + y: "7", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "7", + y: "11", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "7", + y: "15", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var latest_posts_name = 'core/latest-posts'; +var latest_posts_settings = { + title: Object(external_this_wp_i18n_["__"])('Latest Posts'), + description: Object(external_this_wp_i18n_["__"])('Display a list of your most recent posts.'), + icon: latest_posts_icon, + category: 'widgets', + keywords: [Object(external_this_wp_i18n_["__"])('recent posts')], + supports: { + align: true, + html: false + }, + edit: latest_posts_edit +}; + +// EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} +var external_this_wp_isShallowEqual_ = __webpack_require__(40); +var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/edit/dom-manager.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var dom_manager_LegacyWidgetEditDomManager = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(LegacyWidgetEditDomManager, _Component); + + function LegacyWidgetEditDomManager() { + var _this; + + Object(classCallCheck["a" /* default */])(this, LegacyWidgetEditDomManager); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LegacyWidgetEditDomManager).apply(this, arguments)); + _this.containerRef = Object(external_this_wp_element_["createRef"])(); + _this.formRef = Object(external_this_wp_element_["createRef"])(); + _this.widgetContentRef = Object(external_this_wp_element_["createRef"])(); + _this.triggerWidgetEvent = _this.triggerWidgetEvent.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(LegacyWidgetEditDomManager, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.triggerWidgetEvent('widget-added'); + this.previousFormData = new window.FormData(this.formRef.current); + } + }, { + key: "shouldComponentUpdate", + value: function shouldComponentUpdate(nextProps) { + // We can not leverage react render otherwise we would destroy dom changes applied by the plugins. + // We manually update the required dom node replicating what the widget screen and the customizer do. + if (nextProps.form !== this.props.form && this.widgetContentRef.current) { + var widgetContent = this.widgetContentRef.current; + widgetContent.innerHTML = nextProps.form; + this.triggerWidgetEvent('widget-updated'); + this.previousFormData = new window.FormData(this.formRef.current); + } + + return false; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + id = _this$props.id, + idBase = _this$props.idBase, + widgetNumber = _this$props.widgetNumber, + form = _this$props.form; + return Object(external_this_wp_element_["createElement"])("div", { + className: "widget open", + ref: this.containerRef + }, Object(external_this_wp_element_["createElement"])("div", { + className: "widget-inside" + }, Object(external_this_wp_element_["createElement"])("form", { + ref: this.formRef, + method: "post", + onBlur: function onBlur() { + if (_this2.shouldTriggerInstanceUpdate()) { + _this2.props.onInstanceChange(_this2.retrieveUpdatedInstance()); + } + } + }, Object(external_this_wp_element_["createElement"])("div", { + ref: this.widgetContentRef, + className: "widget-content", + dangerouslySetInnerHTML: { + __html: form + } + }), Object(external_this_wp_element_["createElement"])("input", { + type: "hidden", + name: "widget-id", + className: "widget-id", + value: id + }), Object(external_this_wp_element_["createElement"])("input", { + type: "hidden", + name: "id_base", + className: "id_base", + value: idBase + }), Object(external_this_wp_element_["createElement"])("input", { + type: "hidden", + name: "widget_number", + className: "widget_number", + value: widgetNumber + }), Object(external_this_wp_element_["createElement"])("input", { + type: "hidden", + name: "multi_number", + className: "multi_number", + value: "" + }), Object(external_this_wp_element_["createElement"])("input", { + type: "hidden", + name: "add_new", + className: "add_new", + value: "" + })))); + } + }, { + key: "shouldTriggerInstanceUpdate", + value: function shouldTriggerInstanceUpdate() { + if (!this.formRef.current) { + return false; + } + + if (!this.previousFormData) { + return true; + } + + var currentFormData = new window.FormData(this.formRef.current); + var currentFormDataKeys = Array.from(currentFormData.keys()); + var previousFormDataKeys = Array.from(this.previousFormData.keys()); + + if (currentFormDataKeys.length !== previousFormDataKeys.length) { + return true; + } + + for (var _i = 0, _currentFormDataKeys = currentFormDataKeys; _i < _currentFormDataKeys.length; _i++) { + var rawKey = _currentFormDataKeys[_i]; + + if (!external_this_wp_isShallowEqual_default()(currentFormData.getAll(rawKey), this.previousFormData.getAll(rawKey))) { + this.previousFormData = currentFormData; + return true; + } + } + + return false; + } + }, { + key: "triggerWidgetEvent", + value: function triggerWidgetEvent(event) { + window.$(window.document).trigger(event, [window.$(this.containerRef.current)]); + } + }, { + key: "retrieveUpdatedInstance", + value: function retrieveUpdatedInstance() { + if (this.formRef.current) { + var _this$props2 = this.props, + idBase = _this$props2.idBase, + widgetNumber = _this$props2.widgetNumber; + var form = this.formRef.current; + var formData = new window.FormData(form); + var updatedInstance = {}; + var keyPrefixLength = "widget-".concat(idBase, "[").concat(widgetNumber, "][").length; + var keySuffixLength = "]".length; + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = formData.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var rawKey = _step.value; + + // This fields are added to the form because the widget JavaScript code may use this values. + // They are not relevant for the update mechanism. + if (Object(external_lodash_["includes"])(['widget-id', 'id_base', 'widget_number', 'multi_number', 'add_new'], rawKey)) { + continue; + } + + var keyParsed = rawKey.substring(keyPrefixLength, rawKey.length - keySuffixLength); + var value = formData.getAll(rawKey); + + if (value.length > 1) { + updatedInstance[keyParsed] = value; + } else { + updatedInstance[keyParsed] = value[0]; + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + + return updatedInstance; + } + } + }]); + + return LegacyWidgetEditDomManager; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var dom_manager = (dom_manager_LegacyWidgetEditDomManager); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/edit/handler.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var handler_LegacyWidgetEditHandler = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(LegacyWidgetEditHandler, _Component); + + function LegacyWidgetEditHandler() { + var _this; + + Object(classCallCheck["a" /* default */])(this, LegacyWidgetEditHandler); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LegacyWidgetEditHandler).apply(this, arguments)); + _this.state = { + form: null, + idBase: null + }; + _this.instanceUpdating = null; + _this.onInstanceChange = _this.onInstanceChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.requestWidgetUpdater = _this.requestWidgetUpdater.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(LegacyWidgetEditHandler, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.isStillMounted = true; + this.requestWidgetUpdater(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (prevProps.instance !== this.props.instance && this.instanceUpdating !== this.props.instance) { + this.requestWidgetUpdater(); + } + + if (this.instanceUpdating === this.props.instance) { + this.instanceUpdating = null; + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.isStillMounted = false; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + instanceId = _this$props.instanceId, + identifier = _this$props.identifier; + var _this$state = this.state, + id = _this$state.id, + idBase = _this$state.idBase, + form = _this$state.form; + + if (!identifier) { + return Object(external_this_wp_i18n_["__"])('Not a valid widget.'); + } + + if (!form) { + return null; + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-legacy-widget__edit-container" // Display none is used because when we switch from edit to preview, + // we don't want to unmount the component. + // Otherwise when we went back to edit we wound need to trigger + // all widgets events again and some scripts may not deal well with this. + , + style: { + display: this.props.isVisible ? 'block' : 'none' + } + }, Object(external_this_wp_element_["createElement"])(dom_manager, { + ref: function ref(_ref) { + _this2.widgetEditDomManagerRef = _ref; + }, + onInstanceChange: this.onInstanceChange, + widgetNumber: instanceId * -1, + id: id, + idBase: idBase, + form: form + })); + } + }, { + key: "onInstanceChange", + value: function onInstanceChange(instanceChanges) { + var _this3 = this; + + this.requestWidgetUpdater(instanceChanges, function (response) { + _this3.instanceUpdating = response.instance; + + _this3.props.onInstanceChange(response.instance); + }); + } + }, { + key: "requestWidgetUpdater", + value: function requestWidgetUpdater(instanceChanges, callback) { + var _this4 = this; + + var _this$props2 = this.props, + identifier = _this$props2.identifier, + instanceId = _this$props2.instanceId, + instance = _this$props2.instance; + + if (!identifier) { + return; + } + + external_this_wp_apiFetch_default()({ + path: "/wp/v2/widgets/".concat(identifier, "/"), + data: { + identifier: identifier, + instance: instance, + // use negative ids to make sure the id does not exist on the database. + id_to_use: instanceId * -1, + instance_changes: instanceChanges + }, + method: 'POST' + }).then(function (response) { + if (_this4.isStillMounted) { + _this4.setState({ + form: response.form, + idBase: response.id_base, + id: response.id + }); + + if (callback) { + callback(response); + } + } + }); + } + }]); + + return LegacyWidgetEditHandler; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var handler = (Object(external_this_wp_compose_["withInstanceId"])(handler_LegacyWidgetEditHandler)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/edit/placeholder.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +function LegacyWidgetPlaceholder(_ref) { + var availableLegacyWidgets = _ref.availableLegacyWidgets, + currentWidget = _ref.currentWidget, + hasPermissionsToManageWidgets = _ref.hasPermissionsToManageWidgets, + onChangeWidget = _ref.onChangeWidget; + var visibleLegacyWidgets = Object(external_this_wp_element_["useMemo"])(function () { + return Object(external_lodash_["pickBy"])(availableLegacyWidgets, function (_ref2) { + var isHidden = _ref2.isHidden; + return !isHidden; + }); + }, [availableLegacyWidgets]); + var placeholderContent; + + if (!hasPermissionsToManageWidgets) { + placeholderContent = Object(external_this_wp_i18n_["__"])('You don\'t have permissions to use widgets on this site.'); + } + + if (Object(external_lodash_["isEmpty"])(visibleLegacyWidgets)) { + placeholderContent = Object(external_this_wp_i18n_["__"])('There are no widgets available.'); + } + + placeholderContent = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Select a legacy widget to display:'), + value: currentWidget || 'none', + onChange: onChangeWidget, + options: [{ + value: 'none', + label: 'Select widget' + }].concat(Object(external_lodash_["map"])(visibleLegacyWidgets, function (widget, key) { + return { + value: key, + label: widget.name + }; + })) + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: "admin-customizer" + }), + label: Object(external_this_wp_i18n_["__"])('Legacy Widget') + }, placeholderContent); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/edit/index.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + +var edit_LegacyWidgetEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(LegacyWidgetEdit, _Component); + + function LegacyWidgetEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, LegacyWidgetEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LegacyWidgetEdit).apply(this, arguments)); + _this.state = { + isPreview: false + }; + _this.switchToEdit = _this.switchToEdit.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.switchToPreview = _this.switchToPreview.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.changeWidget = _this.changeWidget.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(LegacyWidgetEdit, [{ + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + availableLegacyWidgets = _this$props.availableLegacyWidgets, + hasPermissionsToManageWidgets = _this$props.hasPermissionsToManageWidgets, + setAttributes = _this$props.setAttributes; + var isPreview = this.state.isPreview; + var identifier = attributes.identifier, + isCallbackWidget = attributes.isCallbackWidget; + var widgetObject = identifier && availableLegacyWidgets[identifier]; + + if (!widgetObject) { + return Object(external_this_wp_element_["createElement"])(LegacyWidgetPlaceholder, { + availableLegacyWidgets: availableLegacyWidgets, + currentWidget: identifier, + hasPermissionsToManageWidgets: hasPermissionsToManageWidgets, + onChangeWidget: function onChangeWidget(newWidget) { + return setAttributes({ + instance: {}, + identifier: newWidget, + isCallbackWidget: availableLegacyWidgets[newWidget].isCallbackWidget + }); + } + }); + } + + var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: widgetObject.name + }, widgetObject.description)); + + if (!hasPermissionsToManageWidgets) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, this.renderWidgetPreview()); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, !widgetObject.isHidden && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + onClick: this.changeWidget, + label: Object(external_this_wp_i18n_["__"])('Change widget'), + icon: "update" + }), !isCallbackWidget && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "components-tab-button ".concat(!isPreview ? 'is-active' : ''), + onClick: this.switchToEdit + }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Edit'))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "components-tab-button ".concat(isPreview ? 'is-active' : ''), + onClick: this.switchToPreview + }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Preview')))))), inspectorControls, !isCallbackWidget && Object(external_this_wp_element_["createElement"])(handler, { + isVisible: !isPreview, + identifier: attributes.identifier, + instance: attributes.instance, + onInstanceChange: function onInstanceChange(newInstance) { + _this2.props.setAttributes({ + instance: newInstance + }); + } + }), (isPreview || isCallbackWidget) && this.renderWidgetPreview()); + } + }, { + key: "changeWidget", + value: function changeWidget() { + this.switchToEdit(); + this.props.setAttributes({ + instance: {}, + identifier: undefined + }); + } + }, { + key: "switchToEdit", + value: function switchToEdit() { + this.setState({ + isPreview: false + }); + } + }, { + key: "switchToPreview", + value: function switchToPreview() { + this.setState({ + isPreview: true + }); + } + }, { + key: "renderWidgetPreview", + value: function renderWidgetPreview() { + var attributes = this.props.attributes; + return Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + className: "wp-block-legacy-widget__preview", + block: "core/legacy-widget", + attributes: attributes + }); + } + }]); + + return LegacyWidgetEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var legacy_widget_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { + var editorSettings = select('core/block-editor').getSettings(); + var availableLegacyWidgets = editorSettings.availableLegacyWidgets, + hasPermissionsToManageWidgets = editorSettings.hasPermissionsToManageWidgets; + return { + hasPermissionsToManageWidgets: hasPermissionsToManageWidgets, + availableLegacyWidgets: availableLegacyWidgets + }; +})(edit_LegacyWidgetEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var legacy_widget_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z" +})))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var legacy_widget_name = 'core/legacy-widget'; +var legacy_widget_settings = { + title: Object(external_this_wp_i18n_["__"])('Legacy Widget (Experimental)'), + description: Object(external_this_wp_i18n_["__"])('Display a legacy widget.'), + icon: legacy_widget_icon, + category: 'widgets', + supports: { + html: false, + customClassName: false + }, + edit: legacy_widget_edit +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/ordered-list-settings.js + + +/** + * WordPress dependencies + */ + + + + +var ordered_list_settings_OrderedListSettings = function OrderedListSettings(_ref) { + var setAttributes = _ref.setAttributes, + reversed = _ref.reversed, + start = _ref.start; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Ordered List Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('Start Value'), + type: "number", + onChange: function onChange(value) { + var int = parseInt(value, 10); + setAttributes({ + // It should be possible to unset the value, + // e.g. with an empty string. + start: isNaN(int) ? undefined : int + }); + }, + value: Number.isInteger(start) ? start.toString(10) : '', + step: "1" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Reverse List Numbering'), + checked: reversed || false, + onChange: function onChange(value) { + setAttributes({ + // Unset the attribute if not reversed. + reversed: value || undefined + }); + } + }))); +}; + +/* harmony default export */ var ordered_list_settings = (ordered_list_settings_OrderedListSettings); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/edit.js + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +function ListEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + mergeBlocks = _ref.mergeBlocks, + onReplace = _ref.onReplace, + className = _ref.className; + var ordered = attributes.ordered, + values = attributes.values, + reversed = attributes.reversed, + start = attributes.start; + var tagName = ordered ? 'ol' : 'ul'; + + var controls = function controls(_ref2) { + var value = _ref2.value, + onChange = _ref2.onChange; + + if (value.start === undefined) { + return; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { + type: "primary", + character: "[", + onUse: function onUse() { + onChange(Object(external_this_wp_richText_["__unstableOutdentListItems"])(value)); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { + type: "primary", + character: "]", + onUse: function onUse() { + onChange(Object(external_this_wp_richText_["__unstableIndentListItems"])(value, { + type: tagName + })); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { + type: "primary", + character: "m", + onUse: function onUse() { + onChange(Object(external_this_wp_richText_["__unstableIndentListItems"])(value, { + type: tagName + })); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { + type: "primaryShift", + character: "m", + onUse: function onUse() { + onChange(Object(external_this_wp_richText_["__unstableOutdentListItems"])(value)); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: [{ + icon: 'editor-ul', + title: Object(external_this_wp_i18n_["__"])('Convert to unordered list'), + isActive: Object(external_this_wp_richText_["__unstableIsActiveListType"])(value, 'ul', tagName), + onClick: function onClick() { + onChange(Object(external_this_wp_richText_["__unstableChangeListType"])(value, { + type: 'ul' + })); + + if (Object(external_this_wp_richText_["__unstableIsListRootSelected"])(value)) { + setAttributes({ + ordered: false + }); + } + } + }, { + icon: 'editor-ol', + title: Object(external_this_wp_i18n_["__"])('Convert to ordered list'), + isActive: Object(external_this_wp_richText_["__unstableIsActiveListType"])(value, 'ol', tagName), + onClick: function onClick() { + onChange(Object(external_this_wp_richText_["__unstableChangeListType"])(value, { + type: 'ol' + })); + + if (Object(external_this_wp_richText_["__unstableIsListRootSelected"])(value)) { + setAttributes({ + ordered: true + }); + } + } + }, { + icon: 'editor-outdent', + title: Object(external_this_wp_i18n_["__"])('Outdent list item'), + shortcut: Object(external_this_wp_i18n_["_x"])('Backspace', 'keyboard key'), + onClick: function onClick() { + onChange(Object(external_this_wp_richText_["__unstableOutdentListItems"])(value)); + } + }, { + icon: 'editor-indent', + title: Object(external_this_wp_i18n_["__"])('Indent list item'), + shortcut: Object(external_this_wp_i18n_["_x"])('Space', 'keyboard key'), + onClick: function onClick() { + onChange(Object(external_this_wp_richText_["__unstableIndentListItems"])(value, { + type: tagName + })); + } + }] + }))); + }; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + identifier: "values", + multiline: "li", + tagName: tagName, + onChange: function onChange(nextValues) { + return setAttributes({ + values: nextValues + }); + }, + value: values, + wrapperClassName: "block-library-list", + className: className, + placeholder: Object(external_this_wp_i18n_["__"])('Write list…'), + onMerge: mergeBlocks, + onSplit: function onSplit(value) { + return Object(external_this_wp_blocks_["createBlock"])(list_name, { + ordered: ordered, + values: value + }); + }, + __unstableOnSplitMiddle: function __unstableOnSplitMiddle() { + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph'); + }, + onReplace: onReplace, + onRemove: function onRemove() { + return onReplace([]); + }, + start: start, + reversed: reversed + }, controls), ordered && Object(external_this_wp_element_["createElement"])(ordered_list_settings, { + setAttributes: setAttributes, + ordered: ordered, + reversed: reversed, + start: start + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var list_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z" +})))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/save.js + + +/** + * WordPress dependencies + */ + +function list_save_save(_ref) { + var attributes = _ref.attributes; + var ordered = attributes.ordered, + values = attributes.values, + reversed = attributes.reversed, + start = attributes.start; + var tagName = ordered ? 'ol' : 'ul'; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: tagName, + value: values, + reversed: reversed, + start: start, + multiline: "li" + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/transforms.js + + + +/** + * WordPress dependencies + */ + + + +var listContentSchema = Object(objectSpread["a" /* default */])({}, Object(external_this_wp_blocks_["getPhrasingContentSchema"])(), { + ul: {}, + ol: { + attributes: ['type'] + } +}); // Recursion is needed. +// Possible: ul > li > ul. +// Impossible: ul > ul. + + +['ul', 'ol'].forEach(function (tag) { + listContentSchema[tag].children = { + li: { + children: listContentSchema + } + }; +}); +var list_transforms_transforms = { + from: [{ + type: 'block', + isMultiBlock: true, + blocks: ['core/paragraph'], + transform: function transform(blockAttributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/list', { + values: Object(external_this_wp_richText_["toHTMLString"])({ + value: Object(external_this_wp_richText_["join"])(blockAttributes.map(function (_ref) { + var content = _ref.content; + var value = Object(external_this_wp_richText_["create"])({ + html: content + }); + + if (blockAttributes.length > 1) { + return value; + } // When converting only one block, transform + // every line to a list item. + + + return Object(external_this_wp_richText_["replace"])(value, /\n/g, external_this_wp_richText_["__UNSTABLE_LINE_SEPARATOR"]); + }), external_this_wp_richText_["__UNSTABLE_LINE_SEPARATOR"]), + multilineTag: 'li' + }) + }); + } + }, { + type: 'block', + blocks: ['core/quote'], + transform: function transform(_ref2) { + var value = _ref2.value; + return Object(external_this_wp_blocks_["createBlock"])('core/list', { + values: Object(external_this_wp_richText_["toHTMLString"])({ + value: Object(external_this_wp_richText_["create"])({ + html: value, + multilineTag: 'p' + }), + multilineTag: 'li' + }) + }); + } + }, { + type: 'raw', + selector: 'ol,ul', + schema: { + ol: listContentSchema.ol, + ul: listContentSchema.ul + }, + transform: function transform(node) { + return Object(external_this_wp_blocks_["createBlock"])('core/list', Object(objectSpread["a" /* default */])({}, Object(external_this_wp_blocks_["getBlockAttributes"])('core/list', node.outerHTML), { + ordered: node.nodeName === 'OL' + })); + } + }].concat(Object(toConsumableArray["a" /* default */])(['*', '-'].map(function (prefix) { + return { + type: 'prefix', + prefix: prefix, + transform: function transform(content) { + return Object(external_this_wp_blocks_["createBlock"])('core/list', { + values: "
  • ".concat(content, "
  • ") + }); + } + }; + })), Object(toConsumableArray["a" /* default */])(['1.', '1)'].map(function (prefix) { + return { + type: 'prefix', + prefix: prefix, + transform: function transform(content) { + return Object(external_this_wp_blocks_["createBlock"])('core/list', { + ordered: true, + values: "
  • ".concat(content, "
  • ") + }); + } + }; + }))), + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(_ref3) { + var values = _ref3.values; + return Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({ + html: values, + multilineTag: 'li', + multilineWrapperTags: ['ul', 'ol'] + }), external_this_wp_richText_["__UNSTABLE_LINE_SEPARATOR"]).map(function (piece) { + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: Object(external_this_wp_richText_["toHTMLString"])({ + value: piece + }) + }); + }); + } + }, { + type: 'block', + blocks: ['core/quote'], + transform: function transform(_ref4) { + var values = _ref4.values; + return Object(external_this_wp_blocks_["createBlock"])('core/quote', { + value: Object(external_this_wp_richText_["toHTMLString"])({ + value: Object(external_this_wp_richText_["create"])({ + html: values, + multilineTag: 'li', + multilineWrapperTags: ['ul', 'ol'] + }), + multilineTag: 'p' + }) + }); + } + }] +}; +/* harmony default export */ var list_transforms = (list_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/index.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var list_metadata = { + name: "core/list", + category: "common", + attributes: { + ordered: { + type: "boolean", + "default": false + }, + values: { + type: "string", + source: "html", + selector: "ol,ul", + multiline: "li", + "default": "" + }, + start: { + type: "number" + }, + reversed: { + type: "boolean" + } + } +}; + + +var list_name = list_metadata.name; + +var list_settings = { + title: Object(external_this_wp_i18n_["__"])('List'), + description: Object(external_this_wp_i18n_["__"])('Create a bulleted or numbered list.'), + icon: list_icon, + keywords: [Object(external_this_wp_i18n_["__"])('bullet list'), Object(external_this_wp_i18n_["__"])('ordered list'), Object(external_this_wp_i18n_["__"])('numbered list')], + supports: { + className: false + }, + example: { + attributes: { + values: '
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • ' + } + }, + transforms: list_transforms, + merge: function merge(attributes, attributesToMerge) { + var values = attributesToMerge.values; + + if (!values || values === '
  • ') { + return attributes; + } + + return Object(objectSpread["a" /* default */])({}, attributes, { + values: attributes.values + values + }); + }, + edit: ListEdit, + save: list_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/edit.js + + +/** + * WordPress dependencies + */ + + + + + + + +function MissingBlockWarning(_ref) { + var attributes = _ref.attributes, + convertToHTML = _ref.convertToHTML; + var originalName = attributes.originalName, + originalUndelimitedContent = attributes.originalUndelimitedContent; + var hasContent = !!originalUndelimitedContent; + var hasHTMLBlock = Object(external_this_wp_blocks_["getBlockType"])('core/html'); + var actions = []; + var messageHTML; + + if (hasContent && hasHTMLBlock) { + messageHTML = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'), originalName); + actions.push(Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: "convert", + onClick: convertToHTML, + isLarge: true, + isPrimary: true + }, Object(external_this_wp_i18n_["__"])('Keep as HTML'))); + } else { + messageHTML = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'), originalName); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Warning"], { + actions: actions + }, messageHTML), Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, originalUndelimitedContent)); +} + +var MissingEdit = Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { + var clientId = _ref2.clientId, + attributes = _ref2.attributes; + + var _dispatch = dispatch('core/block-editor'), + replaceBlock = _dispatch.replaceBlock; + + return { + convertToHTML: function convertToHTML() { + replaceBlock(clientId, Object(external_this_wp_blocks_["createBlock"])('core/html', { + content: attributes.originalUndelimitedContent + })); + } + }; +})(MissingBlockWarning); +/* harmony default export */ var missing_edit = (MissingEdit); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/save.js + + +/** + * WordPress dependencies + */ + +function missing_save_save(_ref) { + var attributes = _ref.attributes; + // Preserve the missing block's content. + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.originalContent); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var missing_metadata = { + name: "core/missing", + category: "common", + attributes: { + originalName: { + type: "string" + }, + originalUndelimitedContent: { + type: "string" + }, + originalContent: { + type: "string", + source: "html" + } + } +}; + +var missing_name = missing_metadata.name; + +var missing_settings = { + name: missing_name, + title: Object(external_this_wp_i18n_["__"])('Unrecognized Block'), + description: Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for this block.'), + supports: { + className: false, + customClassName: false, + inserter: false, + html: false, + reusable: false + }, + edit: missing_edit, + save: missing_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/edit.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + + +var edit_MoreEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(MoreEdit, _Component); + + function MoreEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, MoreEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MoreEdit).apply(this, arguments)); + _this.onChangeInput = _this.onChangeInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + defaultText: Object(external_this_wp_i18n_["__"])('Read more') + }; + return _this; + } + + Object(createClass["a" /* default */])(MoreEdit, [{ + key: "onChangeInput", + value: function onChangeInput(event) { + // Set defaultText to an empty string, allowing the user to clear/replace the input field's text + this.setState({ + defaultText: '' + }); + var value = event.target.value.length === 0 ? undefined : event.target.value; + this.props.setAttributes({ + customText: value + }); + } + }, { + key: "onKeyDown", + value: function onKeyDown(event) { + var keyCode = event.keyCode; + var insertBlocksAfter = this.props.insertBlocksAfter; + + if (keyCode === external_this_wp_keycodes_["ENTER"]) { + insertBlocksAfter([Object(external_this_wp_blocks_["createBlock"])(Object(external_this_wp_blocks_["getDefaultBlockName"])())]); + } + } + }, { + key: "getHideExcerptHelp", + value: function getHideExcerptHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('The excerpt is hidden.') : Object(external_this_wp_i18n_["__"])('The excerpt is visible.'); + } + }, { + key: "render", + value: function render() { + var _this$props$attribute = this.props.attributes, + customText = _this$props$attribute.customText, + noTeaser = _this$props$attribute.noTeaser; + var setAttributes = this.props.setAttributes; + + var toggleHideExcerpt = function toggleHideExcerpt() { + return setAttributes({ + noTeaser: !noTeaser + }); + }; + + var defaultText = this.state.defaultText; + var value = customText !== undefined ? customText : defaultText; + var inputLength = value.length + 1; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Hide the excerpt on the full content page'), + checked: !!noTeaser, + onChange: toggleHideExcerpt, + help: this.getHideExcerptHelp + }))), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-more" + }, Object(external_this_wp_element_["createElement"])("input", { + type: "text", + value: value, + size: inputLength, + onChange: this.onChangeInput, + onKeyDown: this.onKeyDown + }))); + } + }]); + + return MoreEdit; +}(external_this_wp_element_["Component"]); + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var more_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z" +})))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/save.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function more_save_save(_ref) { + var attributes = _ref.attributes; + var customText = attributes.customText, + noTeaser = attributes.noTeaser; + var moreTag = customText ? "") : ''; + var noTeaserTag = noTeaser ? '' : ''; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, Object(external_lodash_["compact"])([moreTag, noTeaserTag]).join('\n')); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/transforms.js +/** + * WordPress dependencies + */ + +var more_transforms_transforms = { + from: [{ + type: 'raw', + schema: { + 'wp-block': { + attributes: ['data-block'] + } + }, + isMatch: function isMatch(node) { + return node.dataset && node.dataset.block === 'core/more'; + }, + transform: function transform(node) { + var _node$dataset = node.dataset, + customText = _node$dataset.customText, + noTeaser = _node$dataset.noTeaser; + var attrs = {}; // Don't copy unless defined and not an empty string + + if (customText) { + attrs.customText = customText; + } // Special handling for boolean + + + if (noTeaser === '') { + attrs.noTeaser = true; + } + + return Object(external_this_wp_blocks_["createBlock"])('core/more', attrs); + } + }] +}; +/* harmony default export */ var more_transforms = (more_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var more_metadata = { + name: "core/more", + category: "layout", + attributes: { + customText: { + type: "string" + }, + noTeaser: { + type: "boolean", + "default": false + } + } +}; + + +var more_name = more_metadata.name; + +var more_settings = { + title: Object(external_this_wp_i18n_["_x"])('More', 'block name'), + description: Object(external_this_wp_i18n_["__"])('Content before this block will be shown in the excerpt on your archives page.'), + icon: more_icon, + supports: { + customClassName: false, + className: false, + html: false, + multiple: false + }, + example: {}, + transforms: more_transforms, + edit: edit_MoreEdit, + save: more_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/edit.js + + +/** + * WordPress dependencies + */ + +function NextPageEdit() { + return Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-nextpage" + }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Page break'))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var nextpage_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + width: "24px", + height: "24px", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0 0h24v24H0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M9 11h6v2H9zM2 11h5v2H2zM17 11h5v2h-5zM6 4h7v5h7V8l-6-6H6a2 2 0 0 0-2 2v5h2zM18 20H6v-5H4v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5h-2z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/save.js + + +/** + * WordPress dependencies + */ + +function nextpage_save_save() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, ''); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/transforms.js +/** + * WordPress dependencies + */ + +var nextpage_transforms_transforms = { + from: [{ + type: 'raw', + schema: { + 'wp-block': { + attributes: ['data-block'] + } + }, + isMatch: function isMatch(node) { + return node.dataset && node.dataset.block === 'core/nextpage'; + }, + transform: function transform() { + return Object(external_this_wp_blocks_["createBlock"])('core/nextpage', {}); + } + }] +}; +/* harmony default export */ var nextpage_transforms = (nextpage_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var nextpage_metadata = { + name: "core/nextpage", + category: "layout" +}; + + +var nextpage_name = nextpage_metadata.name; + +var nextpage_settings = { + title: Object(external_this_wp_i18n_["__"])('Page Break'), + description: Object(external_this_wp_i18n_["__"])('Separate your content into a multi-page experience.'), + icon: nextpage_icon, + keywords: [Object(external_this_wp_i18n_["__"])('next page'), Object(external_this_wp_i18n_["__"])('pagination')], + supports: { + customClassName: false, + className: false, + html: false + }, + example: {}, + transforms: nextpage_transforms, + edit: NextPageEdit, + save: nextpage_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/edit.js + + +/** + * WordPress dependencies + */ + + +function PreformattedEdit(_ref) { + var attributes = _ref.attributes, + mergeBlocks = _ref.mergeBlocks, + setAttributes = _ref.setAttributes, + className = _ref.className; + var content = attributes.content; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "pre" // Ensure line breaks are normalised to HTML. + , + value: content.replace(/\n/g, '
    '), + onChange: function onChange(nextContent) { + setAttributes({ + // Ensure line breaks are normalised to characters. This + // saves space, is easier to read, and ensures display + // filters work correctly. + content: nextContent.replace(/
    /g, '\n') + }); + }, + placeholder: Object(external_this_wp_i18n_["__"])('Write preformatted text…'), + wrapperClassName: className, + onMerge: mergeBlocks + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var preformatted_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "6", + y: "10", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "6", + y: "14", + width: "8", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "16", + y: "14", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "10", + y: "10", + width: "8", + height: "2" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/save.js + + +/** + * WordPress dependencies + */ + +function preformatted_save_save(_ref) { + var attributes = _ref.attributes; + var content = attributes.content; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "pre", + value: content + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/transforms.js +/** + * WordPress dependencies + */ + +var preformatted_transforms_transforms = { + from: [{ + type: 'block', + blocks: ['core/code', 'core/paragraph'], + transform: function transform(_ref) { + var content = _ref.content; + return Object(external_this_wp_blocks_["createBlock"])('core/preformatted', { + content: content + }); + } + }, { + type: 'raw', + isMatch: function isMatch(node) { + return node.nodeName === 'PRE' && !(node.children.length === 1 && node.firstChild.nodeName === 'CODE'); + }, + schema: { + pre: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + } + }], + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', attributes); + } + }] +}; +/* harmony default export */ var preformatted_transforms = (preformatted_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var preformatted_metadata = { + name: "core/preformatted", + category: "formatting", + attributes: { + content: { + type: "string", + source: "html", + selector: "pre", + "default": "" + } + } +}; + + +var preformatted_name = preformatted_metadata.name; + +var preformatted_settings = { + title: Object(external_this_wp_i18n_["__"])('Preformatted'), + description: Object(external_this_wp_i18n_["__"])('Add text that respects your spacing and tabs, and also allows styling.'), + icon: preformatted_icon, + example: { + attributes: { + content: Object(external_this_wp_i18n_["__"])('EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)') + '\n' + Object(external_this_wp_i18n_["__"])('Window, very small in the distance, illuminated.') + '\n' + Object(external_this_wp_i18n_["__"])('All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;') + } + }, + transforms: preformatted_transforms, + edit: PreformattedEdit, + save: preformatted_save_save, + merge: function merge(attributes, attributesToMerge) { + return { + content: attributes.content + attributesToMerge.content + }; + } +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/shared.js +var SOLID_COLOR_STYLE_NAME = 'solid-color'; +var SOLID_COLOR_CLASS = "is-style-".concat(SOLID_COLOR_STYLE_NAME); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/deprecated.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +var pullquote_deprecated_blockAttributes = { + value: { + type: 'string', + source: 'html', + selector: 'blockquote', + multiline: 'p' + }, + citation: { + type: 'string', + source: 'html', + selector: 'cite', + default: '' + }, + mainColor: { + type: 'string' + }, + customMainColor: { + type: 'string' + }, + textColor: { + type: 'string' + }, + customTextColor: { + type: 'string' + } +}; +var pullquote_deprecated_deprecated = [{ + attributes: pullquote_deprecated_blockAttributes, + save: function save(_ref) { + var attributes = _ref.attributes; + var mainColor = attributes.mainColor, + customMainColor = attributes.customMainColor, + textColor = attributes.textColor, + customTextColor = attributes.customTextColor, + value = attributes.value, + citation = attributes.citation, + className = attributes.className; + var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); + var figureClass, figureStyles; // Is solid color style + + if (isSolidColorStyle) { + figureClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', mainColor); + + if (!figureClass) { + figureStyles = { + backgroundColor: customMainColor + }; + } // Is normal style and a custom color is being used ( we can set a style directly with its value) + + } else if (customMainColor) { + figureStyles = { + borderColor: customMainColor + }; // Is normal style and a named color is being used, we need to retrieve the color value to set the style, + // as there is no expectation that themes create classes that set border colors. + } else if (mainColor) { + var colors = Object(external_lodash_["get"])(Object(external_this_wp_data_["select"])('core/block-editor').getSettings(), ['colors'], []); + var colorObject = Object(external_this_wp_blockEditor_["getColorObjectByAttributeValues"])(colors, mainColor); + figureStyles = { + borderColor: colorObject.color + }; + } + + var blockquoteTextColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var blockquoteClasses = textColor || customTextColor ? classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, blockquoteTextColorClass, blockquoteTextColorClass)) : undefined; + var blockquoteStyle = blockquoteTextColorClass ? undefined : { + color: customTextColor + }; + return Object(external_this_wp_element_["createElement"])("figure", { + className: figureClass, + style: figureStyles + }, Object(external_this_wp_element_["createElement"])("blockquote", { + className: blockquoteClasses, + style: blockquoteStyle + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: value, + multiline: true + }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "cite", + value: citation + }))); + } +}, { + attributes: Object(objectSpread["a" /* default */])({}, pullquote_deprecated_blockAttributes), + save: function save(_ref2) { + var attributes = _ref2.attributes; + var value = attributes.value, + citation = attributes.citation; + return Object(external_this_wp_element_["createElement"])("blockquote", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: value, + multiline: true + }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "cite", + value: citation + })); + } +}, { + attributes: Object(objectSpread["a" /* default */])({}, pullquote_deprecated_blockAttributes, { + citation: { + type: 'string', + source: 'html', + selector: 'footer' + }, + align: { + type: 'string', + default: 'none' + } + }), + save: function save(_ref3) { + var attributes = _ref3.attributes; + var value = attributes.value, + citation = attributes.citation, + align = attributes.align; + return Object(external_this_wp_element_["createElement"])("blockquote", { + className: "align".concat(align) + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: value, + multiline: true + }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "footer", + value: citation + })); + } +}]; +/* harmony default export */ var pullquote_deprecated = (pullquote_deprecated_deprecated); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/edit.js + + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var edit_PullQuoteEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(PullQuoteEdit, _Component); + + function PullQuoteEdit(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, PullQuoteEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(PullQuoteEdit).call(this, props)); + _this.wasTextColorAutomaticallyComputed = false; + _this.pullQuoteMainColorSetter = _this.pullQuoteMainColorSetter.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.pullQuoteTextColorSetter = _this.pullQuoteTextColorSetter.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(PullQuoteEdit, [{ + key: "pullQuoteMainColorSetter", + value: function pullQuoteMainColorSetter(colorValue) { + var _this$props = this.props, + colorUtils = _this$props.colorUtils, + textColor = _this$props.textColor, + setTextColor = _this$props.setTextColor, + setMainColor = _this$props.setMainColor, + className = _this$props.className; + var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); + var needTextColor = !textColor.color || this.wasTextColorAutomaticallyComputed; + var shouldSetTextColor = isSolidColorStyle && needTextColor && colorValue; + setMainColor(colorValue); + + if (shouldSetTextColor) { + this.wasTextColorAutomaticallyComputed = true; + setTextColor(colorUtils.getMostReadableColor(colorValue)); + } + } + }, { + key: "pullQuoteTextColorSetter", + value: function pullQuoteTextColorSetter(colorValue) { + var setTextColor = this.props.setTextColor; + setTextColor(colorValue); + this.wasTextColorAutomaticallyComputed = false; + } + }, { + key: "render", + value: function render() { + var _this$props2 = this.props, + attributes = _this$props2.attributes, + mainColor = _this$props2.mainColor, + textColor = _this$props2.textColor, + setAttributes = _this$props2.setAttributes, + isSelected = _this$props2.isSelected, + className = _this$props2.className; + var value = attributes.value, + citation = attributes.citation; + var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); + var figureStyles = isSolidColorStyle ? { + backgroundColor: mainColor.color + } : { + borderColor: mainColor.color + }; + var figureClasses = classnames_default()(className, Object(defineProperty["a" /* default */])({ + 'has-background': isSolidColorStyle && mainColor.color + }, mainColor.class, isSolidColorStyle && mainColor.class)); + var blockquoteStyles = { + color: textColor.color + }; + var blockquoteClasses = textColor.color && classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, textColor.class, textColor.class)); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("figure", { + style: figureStyles, + className: figureClasses + }, Object(external_this_wp_element_["createElement"])("blockquote", { + style: blockquoteStyles, + className: blockquoteClasses + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + multiline: true, + value: value, + onChange: function onChange(nextValue) { + return setAttributes({ + value: nextValue + }); + }, + placeholder: // translators: placeholder text used for the quote + Object(external_this_wp_i18n_["__"])('Write quote…'), + wrapperClassName: "block-library-pullquote__content" + }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + value: citation, + placeholder: // translators: placeholder text used for the citation + Object(external_this_wp_i18n_["__"])('Write citation…'), + onChange: function onChange(nextCitation) { + return setAttributes({ + citation: nextCitation + }); + }, + className: "wp-block-pullquote__citation" + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + colorSettings: [{ + value: mainColor.color, + onChange: this.pullQuoteMainColorSetter, + label: Object(external_this_wp_i18n_["__"])('Main Color') + }, { + value: textColor.color, + onChange: this.pullQuoteTextColorSetter, + label: Object(external_this_wp_i18n_["__"])('Text Color') + }] + }, isSolidColorStyle && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], Object(esm_extends["a" /* default */])({ + textColor: textColor.color, + backgroundColor: mainColor.color + }, { + isLargeText: false + }))))); + } + }]); + + return PullQuoteEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var pullquote_edit = (Object(external_this_wp_blockEditor_["withColors"])({ + mainColor: 'background-color', + textColor: 'color' +})(edit_PullQuoteEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var pullquote_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { + points: "21 18 2 18 2 20 21 20" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { + points: "21 4 2 4 2 6 21 6" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/save.js + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +function pullquote_save_save(_ref) { + var attributes = _ref.attributes; + var mainColor = attributes.mainColor, + customMainColor = attributes.customMainColor, + textColor = attributes.textColor, + customTextColor = attributes.customTextColor, + value = attributes.value, + citation = attributes.citation, + className = attributes.className; + var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); + var figureClasses, figureStyles; // Is solid color style + + if (isSolidColorStyle) { + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', mainColor); + figureClasses = classnames_default()(Object(defineProperty["a" /* default */])({ + 'has-background': backgroundClass || customMainColor + }, backgroundClass, backgroundClass)); + figureStyles = { + backgroundColor: backgroundClass ? undefined : customMainColor + }; // Is normal style and a custom color is being used ( we can set a style directly with its value) + } else if (customMainColor) { + figureStyles = { + borderColor: customMainColor + }; // If normal style and a named color are being used, we need to retrieve the color value to set the style, + // as there is no expectation that themes create classes that set border colors. + } else if (mainColor) { + var colors = Object(external_lodash_["get"])(Object(external_this_wp_data_["select"])('core/block-editor').getSettings(), ['colors'], []); + var colorObject = Object(external_this_wp_blockEditor_["getColorObjectByAttributeValues"])(colors, mainColor); + figureStyles = { + borderColor: colorObject.color + }; + } + + var blockquoteTextColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var blockquoteClasses = (textColor || customTextColor) && classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, blockquoteTextColorClass, blockquoteTextColorClass)); + var blockquoteStyles = blockquoteTextColorClass ? undefined : { + color: customTextColor + }; + return Object(external_this_wp_element_["createElement"])("figure", { + className: figureClasses, + style: figureStyles + }, Object(external_this_wp_element_["createElement"])("blockquote", { + className: blockquoteClasses, + style: blockquoteStyles + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: value, + multiline: true + }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "cite", + value: citation + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + + +var pullquote_metadata = { + name: "core/pullquote", + category: "formatting", + attributes: { + value: { + type: "string", + source: "html", + selector: "blockquote", + multiline: "p" + }, + citation: { + type: "string", + source: "html", + selector: "cite", + "default": "" + }, + mainColor: { + type: "string" + }, + customMainColor: { + type: "string" + }, + textColor: { + type: "string" + }, + customTextColor: { + type: "string" + } + } +}; + +var pullquote_name = pullquote_metadata.name; + +var pullquote_settings = { + title: Object(external_this_wp_i18n_["__"])('Pullquote'), + description: Object(external_this_wp_i18n_["__"])('Give special visual emphasis to a quote from your text.'), + icon: pullquote_icon, + example: { + attributes: { + value: '

    ' + Object(external_this_wp_i18n_["__"])('One of the hardest things to do in technology is disrupt yourself.') + '

    ', + citation: 'Matt Mullenweg' + } + }, + styles: [{ + name: 'default', + label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), + isDefault: true + }, { + name: SOLID_COLOR_STYLE_NAME, + label: Object(external_this_wp_i18n_["__"])('Solid Color') + }], + supports: { + align: ['left', 'right', 'wide', 'full'] + }, + edit: pullquote_edit, + save: pullquote_save_save, + deprecated: pullquote_deprecated +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit-panel/index.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + +var edit_panel_ReusableBlockEditPanel = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ReusableBlockEditPanel, _Component); + + function ReusableBlockEditPanel() { + var _this; + + Object(classCallCheck["a" /* default */])(this, ReusableBlockEditPanel); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ReusableBlockEditPanel).apply(this, arguments)); + _this.titleField = Object(external_this_wp_element_["createRef"])(); + _this.editButton = Object(external_this_wp_element_["createRef"])(); + _this.handleFormSubmit = _this.handleFormSubmit.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.handleTitleChange = _this.handleTitleChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.handleTitleKeyDown = _this.handleTitleKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(ReusableBlockEditPanel, [{ + key: "componentDidMount", + value: function componentDidMount() { + // Select the input text when the form opens. + if (this.props.isEditing && this.titleField.current) { + this.titleField.current.select(); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + // Select the input text only once when the form opens. + if (!prevProps.isEditing && this.props.isEditing) { + this.titleField.current.select(); + } // Move focus back to the Edit button after pressing the Escape key or Save. + + + if ((prevProps.isEditing || prevProps.isSaving) && !this.props.isEditing && !this.props.isSaving) { + this.editButton.current.focus(); + } + } + }, { + key: "handleFormSubmit", + value: function handleFormSubmit(event) { + event.preventDefault(); + this.props.onSave(); + } + }, { + key: "handleTitleChange", + value: function handleTitleChange(event) { + this.props.onChangeTitle(event.target.value); + } + }, { + key: "handleTitleKeyDown", + value: function handleTitleKeyDown(event) { + if (event.keyCode === external_this_wp_keycodes_["ESCAPE"]) { + event.stopPropagation(); + this.props.onCancel(); + } + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + isEditing = _this$props.isEditing, + title = _this$props.title, + isSaving = _this$props.isSaving, + isEditDisabled = _this$props.isEditDisabled, + onEdit = _this$props.onEdit, + instanceId = _this$props.instanceId; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isEditing && !isSaving && Object(external_this_wp_element_["createElement"])("div", { + className: "reusable-block-edit-panel" + }, Object(external_this_wp_element_["createElement"])("b", { + className: "reusable-block-edit-panel__info" + }, title), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + ref: this.editButton, + isLarge: true, + className: "reusable-block-edit-panel__button", + disabled: isEditDisabled, + onClick: onEdit + }, Object(external_this_wp_i18n_["__"])('Edit'))), (isEditing || isSaving) && Object(external_this_wp_element_["createElement"])("form", { + className: "reusable-block-edit-panel", + onSubmit: this.handleFormSubmit + }, Object(external_this_wp_element_["createElement"])("label", { + htmlFor: "reusable-block-edit-panel__title-".concat(instanceId), + className: "reusable-block-edit-panel__label" + }, Object(external_this_wp_i18n_["__"])('Name:')), Object(external_this_wp_element_["createElement"])("input", { + ref: this.titleField, + type: "text", + disabled: isSaving, + className: "reusable-block-edit-panel__title", + value: title, + onChange: this.handleTitleChange, + onKeyDown: this.handleTitleKeyDown, + id: "reusable-block-edit-panel__title-".concat(instanceId) + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + type: "submit", + isLarge: true, + isBusy: isSaving, + disabled: !title || isSaving, + className: "reusable-block-edit-panel__button" + }, Object(external_this_wp_i18n_["__"])('Save')))); + } + }]); + + return ReusableBlockEditPanel; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit_panel = (Object(external_this_wp_compose_["withInstanceId"])(edit_panel_ReusableBlockEditPanel)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/indicator/index.js + + +/** + * WordPress dependencies + */ + + + +function ReusableBlockIndicator(_ref) { + var title = _ref.title; + // translators: %s: title/name of the reusable block + var tooltipText = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Reusable Block: %s'), title); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Tooltip"], { + text: tooltipText + }, Object(external_this_wp_element_["createElement"])("span", { + className: "reusable-block-indicator" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dashicon"], { + icon: "controls-repeat" + }))); +} + +/* harmony default export */ var indicator = (ReusableBlockIndicator); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +/** + * Internal dependencies + */ + + + + +var edit_ReusableBlockEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ReusableBlockEdit, _Component); + + function ReusableBlockEdit(_ref) { + var _this; + + var reusableBlock = _ref.reusableBlock; + + Object(classCallCheck["a" /* default */])(this, ReusableBlockEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ReusableBlockEdit).apply(this, arguments)); + _this.startEditing = _this.startEditing.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.stopEditing = _this.stopEditing.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.setBlocks = _this.setBlocks.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.setTitle = _this.setTitle.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.save = _this.save.bind(Object(assertThisInitialized["a" /* default */])(_this)); + + if (reusableBlock) { + // Start in edit mode when we're working with a newly created reusable block + _this.state = { + isEditing: reusableBlock.isTemporary, + title: reusableBlock.title, + blocks: Object(external_this_wp_blocks_["parse"])(reusableBlock.content) + }; + } else { + // Start in preview mode when we're working with an existing reusable block + _this.state = { + isEditing: false, + title: null, + blocks: [] + }; + } + + return _this; + } + + Object(createClass["a" /* default */])(ReusableBlockEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + if (!this.props.reusableBlock) { + this.props.fetchReusableBlock(); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (prevProps.reusableBlock !== this.props.reusableBlock && this.state.title === null) { + this.setState({ + title: this.props.reusableBlock.title, + blocks: Object(external_this_wp_blocks_["parse"])(this.props.reusableBlock.content) + }); + } + } + }, { + key: "startEditing", + value: function startEditing() { + var reusableBlock = this.props.reusableBlock; + this.setState({ + isEditing: true, + title: reusableBlock.title, + blocks: Object(external_this_wp_blocks_["parse"])(reusableBlock.content) + }); + } + }, { + key: "stopEditing", + value: function stopEditing() { + this.setState({ + isEditing: false, + title: null, + blocks: [] + }); + } + }, { + key: "setBlocks", + value: function setBlocks(blocks) { + this.setState({ + blocks: blocks + }); + } + }, { + key: "setTitle", + value: function setTitle(title) { + this.setState({ + title: title + }); + } + }, { + key: "save", + value: function save() { + var _this$props = this.props, + onChange = _this$props.onChange, + onSave = _this$props.onSave; + var _this$state = this.state, + blocks = _this$state.blocks, + title = _this$state.title; + var content = Object(external_this_wp_blocks_["serialize"])(blocks); + onChange({ + title: title, + content: content + }); + onSave(); + this.stopEditing(); + } + }, { + key: "render", + value: function render() { + var _this$props2 = this.props, + isSelected = _this$props2.isSelected, + reusableBlock = _this$props2.reusableBlock, + isFetching = _this$props2.isFetching, + isSaving = _this$props2.isSaving, + canUpdateBlock = _this$props2.canUpdateBlock, + settings = _this$props2.settings; + var _this$state2 = this.state, + isEditing = _this$state2.isEditing, + title = _this$state2.title, + blocks = _this$state2.blocks; + + if (!reusableBlock && isFetching) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)); + } + + if (!reusableBlock) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_i18n_["__"])('Block has been deleted or is unavailable.')); + } + + var element = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockEditorProvider"], { + settings: settings, + value: blocks, + onChange: this.setBlocks, + onInput: this.setBlocks + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["WritingFlow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockList"], null))); + + if (!isEditing) { + element = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, element); + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-block__reusable-block-container" + }, (isSelected || isEditing) && Object(external_this_wp_element_["createElement"])(edit_panel, { + isEditing: isEditing, + title: title !== null ? title : reusableBlock.title, + isSaving: isSaving && !reusableBlock.isTemporary, + isEditDisabled: !canUpdateBlock, + onEdit: this.startEditing, + onChangeTitle: this.setTitle, + onSave: this.save, + onCancel: this.stopEditing + }), !isSelected && !isEditing && Object(external_this_wp_element_["createElement"])(indicator, { + title: reusableBlock.title + }), element); + } + }]); + + return ReusableBlockEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var block_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var _select = select('core/editor'), + getReusableBlock = _select.__experimentalGetReusableBlock, + isFetchingReusableBlock = _select.__experimentalIsFetchingReusableBlock, + isSavingReusableBlock = _select.__experimentalIsSavingReusableBlock; + + var _select2 = select('core'), + canUser = _select2.canUser; + + var _select3 = select('core/block-editor'), + __experimentalGetParsedReusableBlock = _select3.__experimentalGetParsedReusableBlock, + getSettings = _select3.getSettings; + + var ref = ownProps.attributes.ref; + var reusableBlock = getReusableBlock(ref); + return { + reusableBlock: reusableBlock, + isFetching: isFetchingReusableBlock(ref), + isSaving: isSavingReusableBlock(ref), + blocks: reusableBlock ? __experimentalGetParsedReusableBlock(reusableBlock.id) : null, + canUpdateBlock: !!reusableBlock && !reusableBlock.isTemporary && !!canUser('update', 'blocks', ref), + settings: getSettings() + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + var _dispatch = dispatch('core/editor'), + fetchReusableBlocks = _dispatch.__experimentalFetchReusableBlocks, + updateReusableBlock = _dispatch.__experimentalUpdateReusableBlock, + saveReusableBlock = _dispatch.__experimentalSaveReusableBlock; + + var ref = ownProps.attributes.ref; + return { + fetchReusableBlock: Object(external_lodash_["partial"])(fetchReusableBlocks, ref), + onChange: Object(external_lodash_["partial"])(updateReusableBlock, ref), + onSave: Object(external_lodash_["partial"])(saveReusableBlock, ref) + }; +})])(edit_ReusableBlockEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var block_name = 'core/block'; +var block_settings = { + title: Object(external_this_wp_i18n_["__"])('Reusable Block'), + category: 'reusable', + description: Object(external_this_wp_i18n_["__"])('Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used.'), + supports: { + customClassName: false, + html: false, + inserter: false + }, + edit: block_edit +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/edit.js + + + + + + + + + +/** + * WordPress dependencies + */ + + + + + +var DEFAULT_MIN_ITEMS = 1; +var DEFAULT_MAX_ITEMS = 10; + +var edit_RSSEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(RSSEdit, _Component); + + function RSSEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, RSSEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(RSSEdit).apply(this, arguments)); + _this.state = { + editing: !_this.props.attributes.feedURL + }; + _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSubmitURL = _this.onSubmitURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(RSSEdit, [{ + key: "toggleAttribute", + value: function toggleAttribute(propName) { + var _this2 = this; + + return function () { + var value = _this2.props.attributes[propName]; + var setAttributes = _this2.props.setAttributes; + setAttributes(Object(defineProperty["a" /* default */])({}, propName, !value)); + }; + } + }, { + key: "onSubmitURL", + value: function onSubmitURL(event) { + event.preventDefault(); + var feedURL = this.props.attributes.feedURL; + + if (feedURL) { + this.setState({ + editing: false + }); + } + } + }, { + key: "render", + value: function render() { + var _this3 = this; + + var _this$props$attribute = this.props.attributes, + blockLayout = _this$props$attribute.blockLayout, + columns = _this$props$attribute.columns, + displayAuthor = _this$props$attribute.displayAuthor, + displayExcerpt = _this$props$attribute.displayExcerpt, + displayDate = _this$props$attribute.displayDate, + excerptLength = _this$props$attribute.excerptLength, + feedURL = _this$props$attribute.feedURL, + itemsToShow = _this$props$attribute.itemsToShow; + var setAttributes = this.props.setAttributes; + + if (this.state.editing) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: "rss", + label: "RSS" + }, Object(external_this_wp_element_["createElement"])("form", { + onSubmit: this.onSubmitURL + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + placeholder: Object(external_this_wp_i18n_["__"])('Enter URL here…'), + value: feedURL, + onChange: function onChange(value) { + return setAttributes({ + feedURL: value + }); + }, + className: 'components-placeholder__input' + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isLarge: true, + type: "submit" + }, Object(external_this_wp_i18n_["__"])('Use URL')))); + } + + var toolbarControls = [{ + icon: 'edit', + title: Object(external_this_wp_i18n_["__"])('Edit RSS URL'), + onClick: function onClick() { + return _this3.setState({ + editing: true + }); + } + }, { + icon: 'list-view', + title: Object(external_this_wp_i18n_["__"])('List view'), + onClick: function onClick() { + return setAttributes({ + blockLayout: 'list' + }); + }, + isActive: blockLayout === 'list' + }, { + icon: 'grid-view', + title: Object(external_this_wp_i18n_["__"])('Grid view'), + onClick: function onClick() { + return setAttributes({ + blockLayout: 'grid' + }); + }, + isActive: blockLayout === 'grid' + }]; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: toolbarControls + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('RSS Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Number of items'), + value: itemsToShow, + onChange: function onChange(value) { + return setAttributes({ + itemsToShow: value + }); + }, + min: DEFAULT_MIN_ITEMS, + max: DEFAULT_MAX_ITEMS, + required: true + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display author'), + checked: displayAuthor, + onChange: this.toggleAttribute('displayAuthor') + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display date'), + checked: displayDate, + onChange: this.toggleAttribute('displayDate') + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display excerpt'), + checked: displayExcerpt, + onChange: this.toggleAttribute('displayExcerpt') + }), displayExcerpt && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Max number of words in excerpt'), + value: excerptLength, + onChange: function onChange(value) { + return setAttributes({ + excerptLength: value + }); + }, + min: 10, + max: 100, + required: true + }), blockLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Columns'), + value: columns, + onChange: function onChange(value) { + return setAttributes({ + columns: value + }); + }, + min: 2, + max: 6, + required: true + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + block: "core/rss", + attributes: this.props.attributes + }))); + } + }]); + + return RSSEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var rss_edit = (edit_RSSEdit); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var rss_name = 'core/rss'; +var rss_settings = { + title: Object(external_this_wp_i18n_["__"])('RSS'), + description: Object(external_this_wp_i18n_["__"])('Display entries from any RSS or Atom feed.'), + icon: 'rss', + category: 'widgets', + keywords: [Object(external_this_wp_i18n_["__"])('atom'), Object(external_this_wp_i18n_["__"])('feed')], + supports: { + align: true, + html: false + }, + example: { + attributes: { + feedURL: 'https://wordpress.org' + } + }, + edit: rss_edit +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/edit.js + + +/** + * WordPress dependencies + */ + + +function SearchEdit(_ref) { + var className = _ref.className, + attributes = _ref.attributes, + setAttributes = _ref.setAttributes; + var label = attributes.label, + placeholder = attributes.placeholder, + buttonText = attributes.buttonText; + return Object(external_this_wp_element_["createElement"])("div", { + className: className + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + wrapperClassName: "wp-block-search__label", + "aria-label": Object(external_this_wp_i18n_["__"])('Label text'), + placeholder: Object(external_this_wp_i18n_["__"])('Add label…'), + withoutInteractiveFormatting: true, + value: label, + onChange: function onChange(html) { + return setAttributes({ + label: html + }); + } + }), Object(external_this_wp_element_["createElement"])("input", { + className: "wp-block-search__input", + "aria-label": Object(external_this_wp_i18n_["__"])('Optional placeholder text') // We hide the placeholder field's placeholder when there is a value. This + // stops screen readers from reading the placeholder field's placeholder + // which is confusing. + , + placeholder: placeholder ? undefined : Object(external_this_wp_i18n_["__"])('Optional placeholder…'), + value: placeholder, + onChange: function onChange(event) { + return setAttributes({ + placeholder: event.target.value + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + wrapperClassName: "wp-block-search__button", + className: "wp-block-search__button-rich-text", + "aria-label": Object(external_this_wp_i18n_["__"])('Button text'), + placeholder: Object(external_this_wp_i18n_["__"])('Add button text…'), + withoutInteractiveFormatting: true, + value: buttonText, + onChange: function onChange(html) { + return setAttributes({ + buttonText: html + }); + } + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var search_name = 'core/search'; +var search_settings = { + title: Object(external_this_wp_i18n_["__"])('Search'), + description: Object(external_this_wp_i18n_["__"])('Help visitors find your content.'), + icon: 'search', + category: 'widgets', + keywords: [Object(external_this_wp_i18n_["__"])('find')], + supports: { + align: true + }, + example: {}, + edit: SearchEdit +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/deprecated.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +var group_deprecated_deprecated = [// v1 of group block. Deprecated to add an inner-container div around `InnerBlocks.Content`. +{ + attributes: { + backgroundColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + } + }, + supports: { + align: ['wide', 'full'], + anchor: true, + html: false + }, + save: function save(_ref) { + var attributes = _ref.attributes; + var backgroundColor = attributes.backgroundColor, + customBackgroundColor = attributes.customBackgroundColor; + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var className = classnames_default()(backgroundClass, { + 'has-background': backgroundColor || customBackgroundColor + }); + var styles = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor + }; + return Object(external_this_wp_element_["createElement"])("div", { + className: className, + style: styles + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); + } +}]; +/* harmony default export */ var group_deprecated = (group_deprecated_deprecated); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/edit.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +function GroupEdit(_ref) { + var className = _ref.className, + setBackgroundColor = _ref.setBackgroundColor, + backgroundColor = _ref.backgroundColor, + hasInnerBlocks = _ref.hasInnerBlocks; + var styles = { + backgroundColor: backgroundColor.color + }; + var classes = classnames_default()(className, backgroundColor.class, { + 'has-background': !!backgroundColor.color + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + colorSettings: [{ + value: backgroundColor.color, + onChange: setBackgroundColor, + label: Object(external_this_wp_i18n_["__"])('Background Color') + }] + })), Object(external_this_wp_element_["createElement"])("div", { + className: classes, + style: styles + }, Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-group__inner-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + renderAppender: !hasInnerBlocks && external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender + })))); +} + +/* harmony default export */ var group_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor'), Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId; + + var _select = select('core/block-editor'), + getBlock = _select.getBlock; + + var block = getBlock(clientId); + return { + hasInnerBlocks: !!(block && block.innerBlocks.length) + }; +})])(GroupEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var group_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/save.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function group_save_save(_ref) { + var attributes = _ref.attributes; + var backgroundColor = attributes.backgroundColor, + customBackgroundColor = attributes.customBackgroundColor; + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var className = classnames_default()(backgroundClass, { + 'has-background': backgroundColor || customBackgroundColor + }); + var styles = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor + }; + return Object(external_this_wp_element_["createElement"])("div", { + className: className, + style: styles + }, Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-group__inner-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/index.js +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + +var group_metadata = { + name: "core/group", + category: "layout", + attributes: { + backgroundColor: { + type: "string" + }, + customBackgroundColor: { + type: "string" + } + } +}; + +var group_name = group_metadata.name; + +var group_settings = { + title: Object(external_this_wp_i18n_["__"])('Group'), + icon: group_icon, + description: Object(external_this_wp_i18n_["__"])('A block that groups other blocks.'), + keywords: [Object(external_this_wp_i18n_["__"])('container'), Object(external_this_wp_i18n_["__"])('wrapper'), Object(external_this_wp_i18n_["__"])('row'), Object(external_this_wp_i18n_["__"])('section')], + example: { + attributes: { + customBackgroundColor: '#ffffff' + }, + innerBlocks: [{ + name: 'core/paragraph', + attributes: { + customTextColor: '#cf2e2e', + fontSize: 'large', + content: Object(external_this_wp_i18n_["__"])('One.') + } + }, { + name: 'core/paragraph', + attributes: { + customTextColor: '#ff6900', + fontSize: 'large', + content: Object(external_this_wp_i18n_["__"])('Two.') + } + }, { + name: 'core/paragraph', + attributes: { + customTextColor: '#fcb900', + fontSize: 'large', + content: Object(external_this_wp_i18n_["__"])('Three.') + } + }, { + name: 'core/paragraph', + attributes: { + customTextColor: '#00d084', + fontSize: 'large', + content: Object(external_this_wp_i18n_["__"])('Four.') + } + }, { + name: 'core/paragraph', + attributes: { + customTextColor: '#0693e3', + fontSize: 'large', + content: Object(external_this_wp_i18n_["__"])('Five.') + } + }, { + name: 'core/paragraph', + attributes: { + customTextColor: '#9b51e0', + fontSize: 'large', + content: Object(external_this_wp_i18n_["__"])('Six.') + } + }] + }, + supports: { + align: ['wide', 'full'], + anchor: true, + html: false + }, + transforms: { + from: [{ + type: 'block', + isMultiBlock: true, + blocks: ['*'], + __experimentalConvert: function __experimentalConvert(blocks) { + // Avoid transforming a single `core/group` Block + if (blocks.length === 1 && blocks[0].name === 'core/group') { + return; + } + + var alignments = ['wide', 'full']; // Determine the widest setting of all the blocks to be grouped + + var widestAlignment = blocks.reduce(function (result, block) { + var align = block.attributes.align; + return alignments.indexOf(align) > alignments.indexOf(result) ? align : result; + }, undefined); // Clone the Blocks to be Grouped + // Failing to create new block references causes the original blocks + // to be replaced in the switchToBlockType call thereby meaning they + // are removed both from their original location and within the + // new group block. + + var groupInnerBlocks = blocks.map(function (block) { + return Object(external_this_wp_blocks_["createBlock"])(block.name, block.attributes, block.innerBlocks); + }); + return Object(external_this_wp_blocks_["createBlock"])('core/group', { + align: widestAlignment + }, groupInnerBlocks); + } + }] + }, + edit: group_edit, + save: group_save_save, + deprecated: group_deprecated +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/edit.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +function SeparatorEdit(_ref) { + var color = _ref.color, + setColor = _ref.setColor, + className = _ref.className; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["HorizontalRule"], { + className: classnames_default()(className, Object(defineProperty["a" /* default */])({ + 'has-background': color.color + }, color.class, color.class)), + style: { + backgroundColor: color.color, + color: color.color + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + colorSettings: [{ + value: color.color, + onChange: setColor, + label: Object(external_this_wp_i18n_["__"])('Color') + }] + }))); +} + +/* harmony default export */ var separator_edit = (Object(external_this_wp_blockEditor_["withColors"])('color', { + textColor: 'color' +})(SeparatorEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var separator_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M19 13H5v-2h14v2z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/save.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function separatorSave(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var color = attributes.color, + customColor = attributes.customColor; // the hr support changing color using border-color, since border-color + // is not yet supported in the color palette, we use background-color + + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', color); // the dots styles uses text for the dots, to change those dots color is + // using color, not backgroundColor + + var colorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', color); + var separatorClasses = classnames_default()((_classnames = { + 'has-text-color has-background': color || customColor + }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, colorClass, colorClass), _classnames)); + var separatorStyle = { + backgroundColor: backgroundClass ? undefined : customColor, + color: colorClass ? undefined : customColor + }; + return Object(external_this_wp_element_["createElement"])("hr", { + className: separatorClasses, + style: separatorStyle + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/transforms.js +/** + * WordPress dependencies + */ + +var separator_transforms_transforms = { + from: [{ + type: 'enter', + regExp: /^-{3,}$/, + transform: function transform() { + return Object(external_this_wp_blocks_["createBlock"])('core/separator'); + } + }, { + type: 'raw', + selector: 'hr', + schema: { + hr: {} + } + }] +}; +/* harmony default export */ var separator_transforms = (separator_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var separator_metadata = { + name: "core/separator", + category: "layout", + attributes: { + color: { + type: "string" + }, + customColor: { + type: "string" + } + } +}; + + +var separator_name = separator_metadata.name; + +var separator_settings = { + title: Object(external_this_wp_i18n_["__"])('Separator'), + description: Object(external_this_wp_i18n_["__"])('Create a break between ideas or sections with a horizontal separator.'), + icon: separator_icon, + keywords: [Object(external_this_wp_i18n_["__"])('horizontal-line'), 'hr', Object(external_this_wp_i18n_["__"])('divider')], + example: { + attributes: { + customColor: '#065174', + className: 'is-style-wide' + } + }, + styles: [{ + name: 'default', + label: Object(external_this_wp_i18n_["__"])('Default'), + isDefault: true + }, { + name: 'wide', + label: Object(external_this_wp_i18n_["__"])('Wide Line') + }, { + name: 'dots', + label: Object(external_this_wp_i18n_["__"])('Dots') + }], + transforms: separator_transforms, + edit: separator_edit, + save: separatorSave +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/edit.js + + +/** + * WordPress dependencies + */ + + + + + +var edit_ShortcodeEdit = function ShortcodeEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + instanceId = _ref.instanceId; + var inputId = "blocks-shortcode-input-".concat(instanceId); + return Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-shortcode components-placeholder" + }, Object(external_this_wp_element_["createElement"])("label", { + htmlFor: inputId, + className: "components-placeholder__label" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dashicon"], { + icon: "shortcode" + }), Object(external_this_wp_i18n_["__"])('Shortcode')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { + className: "input-control", + id: inputId, + value: attributes.text, + placeholder: Object(external_this_wp_i18n_["__"])('Write shortcode here…'), + onChange: function onChange(text) { + return setAttributes({ + text: text + }); + } + })); +}; + +/* harmony default export */ var shortcode_edit = (Object(external_this_wp_compose_["withInstanceId"])(edit_ShortcodeEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var shortcode_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/save.js + + +/** + * WordPress dependencies + */ + +function shortcode_save_save(_ref) { + var attributes = _ref.attributes; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.text); +} + +// EXTERNAL MODULE: external {"this":["wp","autop"]} +var external_this_wp_autop_ = __webpack_require__(66); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/transforms.js +/** + * WordPress dependencies + */ + +var shortcode_transforms_transforms = { + from: [{ + type: 'shortcode', + // Per "Shortcode names should be all lowercase and use all + // letters, but numbers and underscores should work fine too. + // Be wary of using hyphens (dashes), you'll be better off not + // using them." in https://codex.wordpress.org/Shortcode_API + // Require that the first character be a letter. This notably + // prevents footnote markings ([1]) from being caught as + // shortcodes. + tag: '[a-z][a-z0-9_-]*', + attributes: { + text: { + type: 'string', + shortcode: function shortcode(attrs, _ref) { + var content = _ref.content; + return Object(external_this_wp_autop_["removep"])(Object(external_this_wp_autop_["autop"])(content)); + } + } + }, + priority: 20 + }] +}; +/* harmony default export */ var shortcode_transforms = (shortcode_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + + +var shortcode_name = 'core/shortcode'; +var shortcode_settings = { + title: Object(external_this_wp_i18n_["__"])('Shortcode'), + description: Object(external_this_wp_i18n_["__"])('Insert additional custom elements with a WordPress shortcode.'), + icon: shortcode_icon, + category: 'widgets', + transforms: shortcode_transforms, + supports: { + customClassName: false, + className: false, + html: false + }, + edit: shortcode_edit, + save: shortcode_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/edit.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +var edit_SpacerEdit = function SpacerEdit(_ref) { + var attributes = _ref.attributes, + isSelected = _ref.isSelected, + setAttributes = _ref.setAttributes, + instanceId = _ref.instanceId, + onResizeStart = _ref.onResizeStart, + _onResizeStop = _ref.onResizeStop; + var height = attributes.height; + var id = "block-spacer-height-input-".concat(instanceId); + + var _useState = Object(external_this_wp_element_["useState"])(height), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + inputHeightValue = _useState2[0], + setInputHeightValue = _useState2[1]; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { + className: classnames_default()('block-library-spacer__resize-container', { + 'is-selected': isSelected + }), + size: { + height: height + }, + minHeight: "20", + enable: { + top: false, + right: false, + bottom: true, + left: false, + topRight: false, + bottomRight: false, + bottomLeft: false, + topLeft: false + }, + onResizeStart: onResizeStart, + onResizeStop: function onResizeStop(event, direction, elt, delta) { + _onResizeStop(); + + var spacerHeight = parseInt(height + delta.height, 10); + setAttributes({ + height: spacerHeight + }); + setInputHeightValue(spacerHeight); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Spacer Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + label: Object(external_this_wp_i18n_["__"])('Height in pixels'), + id: id + }, Object(external_this_wp_element_["createElement"])("input", { + type: "number", + id: id, + onChange: function onChange(event) { + var spacerHeight = parseInt(event.target.value, 10); + setInputHeightValue(spacerHeight); + + if (isNaN(spacerHeight)) { + // Set spacer height to default size and input box to empty string + setInputHeightValue(''); + spacerHeight = 100; + } else if (spacerHeight < 20) { + // Set spacer height to minimum size + spacerHeight = 20; + } + + setAttributes({ + height: spacerHeight + }); + }, + value: inputHeightValue, + min: "20", + step: "10" + }))))); +}; + +/* harmony default export */ var spacer_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + toggleSelection = _dispatch.toggleSelection; + + return { + onResizeStart: function onResizeStart() { + return toggleSelection(false); + }, + onResizeStop: function onResizeStop() { + return toggleSelection(true); + } + }; +}), external_this_wp_compose_["withInstanceId"]])(edit_SpacerEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var spacer_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7" +})))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/save.js + +function spacer_save_save(_ref) { + var attributes = _ref.attributes; + return Object(external_this_wp_element_["createElement"])("div", { + style: { + height: attributes.height + }, + "aria-hidden": true + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var spacer_metadata = { + name: "core/spacer", + category: "layout", + attributes: { + height: { + type: "number", + "default": 100 + } + } +}; + +var spacer_name = spacer_metadata.name; + +var spacer_settings = { + title: Object(external_this_wp_i18n_["__"])('Spacer'), + description: Object(external_this_wp_i18n_["__"])('Add white space between blocks and customize its height.'), + icon: spacer_icon, + edit: spacer_edit, + save: spacer_save_save +}; + +// EXTERNAL MODULE: external {"this":["wp","deprecated"]} +var external_this_wp_deprecated_ = __webpack_require__(37); +var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/edit.js + + +/** + * WordPress dependencies + */ + + + +function SubheadEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + className = _ref.className; + var align = attributes.align, + content = attributes.content, + placeholder = attributes.placeholder; + external_this_wp_deprecated_default()('The Subheading block', { + alternative: 'the Paragraph block', + plugin: 'Gutenberg' + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { + value: align, + onChange: function onChange(nextAlign) { + setAttributes({ + align: nextAlign + }); + } + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "p", + value: content, + onChange: function onChange(nextContent) { + setAttributes({ + content: nextContent + }); + }, + style: { + textAlign: align + }, + className: className, + placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write subheading…') + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var subhead_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/save.js + + +/** + * WordPress dependencies + */ + +function subhead_save_save(_ref) { + var attributes = _ref.attributes; + var align = attributes.align, + content = attributes.content; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + style: { + textAlign: align + }, + value: content + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/tranforms.js +/** + * WordPress dependencies + */ + +var tranforms_transforms = { + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', attributes); + } + }] +}; +/* harmony default export */ var tranforms = (tranforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var subhead_metadata = { + name: "core/subhead", + category: "common", + attributes: { + align: { + type: "string" + }, + content: { + type: "string", + source: "html", + selector: "p" + } + } +}; + + +var subhead_name = subhead_metadata.name; + +var subhead_settings = { + title: Object(external_this_wp_i18n_["__"])('Subheading (deprecated)'), + description: Object(external_this_wp_i18n_["__"])('This block is deprecated. Please use the Paragraph block instead.'), + icon: subhead_icon, + supports: { + // Hide from inserter as this block is deprecated. + inserter: false, + multiple: false + }, + transforms: tranforms, + edit: SubheadEdit, + save: subhead_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/deprecated.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + +var deprecated_metadata = { + name: "core/table", + category: "formatting", + attributes: { + hasFixedLayout: { + type: "boolean", + "default": false + }, + backgroundColor: { + type: "string" + }, + head: { + type: "array", + "default": [], + source: "query", + selector: "thead tr", + query: { + cells: { + type: "array", + "default": [], + source: "query", + selector: "td,th", + query: { + content: { + type: "string", + source: "html" + }, + tag: { + type: "string", + "default": "td", + source: "tag" + }, + scope: { + type: "string", + source: "attribute", + attribute: "scope" + }, + align: { + type: "string", + source: "attribute", + attribute: "data-align" + } + } + } + } + }, + body: { + type: "array", + "default": [], + source: "query", + selector: "tbody tr", + query: { + cells: { + type: "array", + "default": [], + source: "query", + selector: "td,th", + query: { + content: { + type: "string", + source: "html" + }, + tag: { + type: "string", + "default": "td", + source: "tag" + }, + scope: { + type: "string", + source: "attribute", + attribute: "scope" + }, + align: { + type: "string", + source: "attribute", + attribute: "data-align" + } + } + } + } + }, + foot: { + type: "array", + "default": [], + source: "query", + selector: "tfoot tr", + query: { + cells: { + type: "array", + "default": [], + source: "query", + selector: "td,th", + query: { + content: { + type: "string", + source: "html" + }, + tag: { + type: "string", + "default": "td", + source: "tag" + }, + scope: { + type: "string", + source: "attribute", + attribute: "scope" + }, + align: { + type: "string", + source: "attribute", + attribute: "data-align" + } + } + } + } + } + } +}; +var table_deprecated_supports = { + align: true +}; +var table_deprecated_deprecated = [{ + attributes: deprecated_metadata.attributes, + supports: table_deprecated_supports, + save: function save(_ref) { + var attributes = _ref.attributes; + var hasFixedLayout = attributes.hasFixedLayout, + head = attributes.head, + body = attributes.body, + foot = attributes.foot, + backgroundColor = attributes.backgroundColor; + var isEmpty = !head.length && !body.length && !foot.length; + + if (isEmpty) { + return null; + } + + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var classes = classnames_default()(backgroundClass, { + 'has-fixed-layout': hasFixedLayout, + 'has-background': !!backgroundClass + }); + + var Section = function Section(_ref2) { + var type = _ref2.type, + rows = _ref2.rows; + + if (!rows.length) { + return null; + } + + var Tag = "t".concat(type); + return Object(external_this_wp_element_["createElement"])(Tag, null, rows.map(function (_ref3, rowIndex) { + var cells = _ref3.cells; + return Object(external_this_wp_element_["createElement"])("tr", { + key: rowIndex + }, cells.map(function (_ref4, cellIndex) { + var content = _ref4.content, + tag = _ref4.tag, + scope = _ref4.scope; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: tag, + value: content, + key: cellIndex, + scope: tag === 'th' ? scope : undefined + }); + })); + })); + }; + + return Object(external_this_wp_element_["createElement"])("table", { + className: classes + }, Object(external_this_wp_element_["createElement"])(Section, { + type: "head", + rows: head + }), Object(external_this_wp_element_["createElement"])(Section, { + type: "body", + rows: body + }), Object(external_this_wp_element_["createElement"])(Section, { + type: "foot", + rows: foot + })); + } +}]; +/* harmony default export */ var table_deprecated = (table_deprecated_deprecated); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/state.js + + + + +/** + * External dependencies + */ + +var INHERITED_COLUMN_ATTRIBUTES = ['align']; +/** + * Creates a table state. + * + * @param {Object} options + * @param {number} options.rowCount Row count for the table to create. + * @param {number} options.columnCount Column count for the table to create. + * + * @return {Object} New table state. + */ + +function createTable(_ref) { + var rowCount = _ref.rowCount, + columnCount = _ref.columnCount; + return { + body: Object(external_lodash_["times"])(rowCount, function () { + return { + cells: Object(external_lodash_["times"])(columnCount, function () { + return { + content: '', + tag: 'td' + }; + }) + }; + }) + }; +} +/** + * Returns the first row in the table. + * + * @param {Object} state Current table state. + * + * @return {Object} The first table row. + */ + +function getFirstRow(state) { + if (!isEmptyTableSection(state.head)) { + return state.head[0]; + } + + if (!isEmptyTableSection(state.body)) { + return state.body[0]; + } + + if (!isEmptyTableSection(state.foot)) { + return state.foot[0]; + } +} +/** + * Gets an attribute for a cell. + * + * @param {Object} state Current table state. + * @param {Object} cellLocation The location of the cell + * @param {string} attributeName The name of the attribute to get the value of. + * + * @return {*} The attribute value. + */ + +function getCellAttribute(state, cellLocation, attributeName) { + var sectionName = cellLocation.sectionName, + rowIndex = cellLocation.rowIndex, + columnIndex = cellLocation.columnIndex; + return Object(external_lodash_["get"])(state, [sectionName, rowIndex, 'cells', columnIndex, attributeName]); +} +/** + * Returns updated cell attributes after applying the `updateCell` function to the selection. + * + * @param {Object} state The block attributes. + * @param {Object} selection The selection of cells to update. + * @param {Function} updateCell A function to update the selected cell attributes. + * + * @return {Object} New table state including the updated cells. + */ + +function updateSelectedCell(state, selection, updateCell) { + if (!selection) { + return state; + } + + var tableSections = Object(external_lodash_["pick"])(state, ['head', 'body', 'foot']); + var selectionSectionName = selection.sectionName, + selectionRowIndex = selection.rowIndex; + return Object(external_lodash_["mapValues"])(tableSections, function (section, sectionName) { + if (selectionSectionName && selectionSectionName !== sectionName) { + return section; + } + + return section.map(function (row, rowIndex) { + if (selectionRowIndex && selectionRowIndex !== rowIndex) { + return row; + } + + return { + cells: row.cells.map(function (cellAttributes, columnIndex) { + var cellLocation = { + sectionName: sectionName, + columnIndex: columnIndex, + rowIndex: rowIndex + }; + + if (!isCellSelected(cellLocation, selection)) { + return cellAttributes; + } + + return updateCell(cellAttributes); + }) + }; + }); + }); +} +/** + * Returns whether the cell at `cellLocation` is included in the selection `selection`. + * + * @param {Object} cellLocation An object containing cell location properties. + * @param {Object} selection An object containing selection properties. + * + * @return {boolean} True if the cell is selected, false otherwise. + */ + +function isCellSelected(cellLocation, selection) { + if (!cellLocation || !selection) { + return false; + } + + switch (selection.type) { + case 'column': + return selection.type === 'column' && cellLocation.columnIndex === selection.columnIndex; + + case 'cell': + return selection.type === 'cell' && cellLocation.sectionName === selection.sectionName && cellLocation.columnIndex === selection.columnIndex && cellLocation.rowIndex === selection.rowIndex; + } +} +/** + * Inserts a row in the table state. + * + * @param {Object} state Current table state. + * @param {Object} options + * @param {string} options.sectionName Section in which to insert the row. + * @param {number} options.rowIndex Row index at which to insert the row. + * + * @return {Object} New table state. + */ + +function insertRow(state, _ref2) { + var sectionName = _ref2.sectionName, + rowIndex = _ref2.rowIndex, + columnCount = _ref2.columnCount; + var firstRow = getFirstRow(state); + var cellCount = columnCount === undefined ? Object(external_lodash_["get"])(firstRow, ['cells', 'length']) : columnCount; // Bail early if the function cannot determine how many cells to add. + + if (!cellCount) { + return state; + } + + return Object(defineProperty["a" /* default */])({}, sectionName, [].concat(Object(toConsumableArray["a" /* default */])(state[sectionName].slice(0, rowIndex)), [{ + cells: Object(external_lodash_["times"])(cellCount, function (index) { + var firstCellInColumn = Object(external_lodash_["get"])(firstRow, ['cells', index], {}); + var inheritedAttributes = Object(external_lodash_["pick"])(firstCellInColumn, INHERITED_COLUMN_ATTRIBUTES); + return Object(objectSpread["a" /* default */])({}, inheritedAttributes, { + content: '', + tag: sectionName === 'head' ? 'th' : 'td' + }); + }) + }], Object(toConsumableArray["a" /* default */])(state[sectionName].slice(rowIndex)))); +} +/** + * Deletes a row from the table state. + * + * @param {Object} state Current table state. + * @param {Object} options + * @param {string} options.sectionName Section in which to delete the row. + * @param {number} options.rowIndex Row index to delete. + * + * @return {Object} New table state. + */ + +function deleteRow(state, _ref4) { + var sectionName = _ref4.sectionName, + rowIndex = _ref4.rowIndex; + return Object(defineProperty["a" /* default */])({}, sectionName, state[sectionName].filter(function (row, index) { + return index !== rowIndex; + })); +} +/** + * Inserts a column in the table state. + * + * @param {Object} state Current table state. + * @param {Object} options + * @param {number} options.columnIndex Column index at which to insert the column. + * + * @return {Object} New table state. + */ + +function insertColumn(state, _ref6) { + var columnIndex = _ref6.columnIndex; + var tableSections = Object(external_lodash_["pick"])(state, ['head', 'body', 'foot']); + return Object(external_lodash_["mapValues"])(tableSections, function (section, sectionName) { + // Bail early if the table section is empty. + if (isEmptyTableSection(section)) { + return section; + } + + return section.map(function (row) { + // Bail early if the row is empty or it's an attempt to insert past + // the last possible index of the array. + if (isEmptyRow(row) || row.cells.length < columnIndex) { + return row; + } + + return { + cells: [].concat(Object(toConsumableArray["a" /* default */])(row.cells.slice(0, columnIndex)), [{ + content: '', + tag: sectionName === 'head' ? 'th' : 'td' + }], Object(toConsumableArray["a" /* default */])(row.cells.slice(columnIndex))) + }; + }); + }); +} +/** + * Deletes a column from the table state. + * + * @param {Object} state Current table state. + * @param {Object} options + * @param {number} options.columnIndex Column index to delete. + * + * @return {Object} New table state. + */ + +function deleteColumn(state, _ref7) { + var columnIndex = _ref7.columnIndex; + var tableSections = Object(external_lodash_["pick"])(state, ['head', 'body', 'foot']); + return Object(external_lodash_["mapValues"])(tableSections, function (section) { + // Bail early if the table section is empty. + if (isEmptyTableSection(section)) { + return section; + } + + return section.map(function (row) { + return { + cells: row.cells.length >= columnIndex ? row.cells.filter(function (cell, index) { + return index !== columnIndex; + }) : row.cells + }; + }).filter(function (row) { + return row.cells.length; + }); + }); +} +/** + * Toggles the existance of a section. + * + * @param {Object} state Current table state. + * @param {string} sectionName Name of the section to toggle. + * + * @return {Object} New table state. + */ + +function toggleSection(state, sectionName) { + // Section exists, replace it with an empty row to remove it. + if (!isEmptyTableSection(state[sectionName])) { + return Object(defineProperty["a" /* default */])({}, sectionName, []); + } // Get the length of the first row of the body to use when creating the header. + + + var columnCount = Object(external_lodash_["get"])(state, ['body', 0, 'cells', 'length'], 1); // Section doesn't exist, insert an empty row to create the section. + + return insertRow(state, { + sectionName: sectionName, + rowIndex: 0, + columnCount: columnCount + }); +} +/** + * Determines whether a table section is empty. + * + * @param {Object} section Table section state. + * + * @return {boolean} True if the table section is empty, false otherwise. + */ + +function isEmptyTableSection(section) { + return !section || !section.length || Object(external_lodash_["every"])(section, isEmptyRow); +} +/** + * Determines whether a table row is empty. + * + * @param {Object} row Table row state. + * + * @return {boolean} True if the table section is empty, false otherwise. + */ + +function isEmptyRow(row) { + return !(row.cells && row.cells.length); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var table_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z" +})))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/edit.js + + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +var BACKGROUND_COLORS = [{ + color: '#f3f4f5', + name: 'Subtle light gray', + slug: 'subtle-light-gray' +}, { + color: '#e9fbe5', + name: 'Subtle pale green', + slug: 'subtle-pale-green' +}, { + color: '#e7f5fe', + name: 'Subtle pale blue', + slug: 'subtle-pale-blue' +}, { + color: '#fcf0ef', + name: 'Subtle pale pink', + slug: 'subtle-pale-pink' +}]; +var ALIGNMENT_CONTROLS = [{ + icon: 'editor-alignleft', + title: Object(external_this_wp_i18n_["__"])('Align Column Left'), + align: 'left' +}, { + icon: 'editor-aligncenter', + title: Object(external_this_wp_i18n_["__"])('Align Column Center'), + align: 'center' +}, { + icon: 'editor-alignright', + title: Object(external_this_wp_i18n_["__"])('Align Column Right'), + align: 'right' +}]; +var withCustomBackgroundColors = Object(external_this_wp_blockEditor_["createCustomColorsHOC"])(BACKGROUND_COLORS); +var edit_TableEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(TableEdit, _Component); + + function TableEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, TableEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(TableEdit).apply(this, arguments)); + _this.onCreateTable = _this.onCreateTable.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onChangeFixedLayout = _this.onChangeFixedLayout.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onChangeInitialColumnCount = _this.onChangeInitialColumnCount.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onChangeInitialRowCount = _this.onChangeInitialRowCount.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.renderSection = _this.renderSection.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getTableControls = _this.getTableControls.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onInsertRow = _this.onInsertRow.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onInsertRowBefore = _this.onInsertRowBefore.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onInsertRowAfter = _this.onInsertRowAfter.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onDeleteRow = _this.onDeleteRow.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onInsertColumn = _this.onInsertColumn.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onInsertColumnBefore = _this.onInsertColumnBefore.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onInsertColumnAfter = _this.onInsertColumnAfter.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onDeleteColumn = _this.onDeleteColumn.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onToggleHeaderSection = _this.onToggleHeaderSection.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onToggleFooterSection = _this.onToggleFooterSection.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onChangeColumnAlignment = _this.onChangeColumnAlignment.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.getCellAlignment = _this.getCellAlignment.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.state = { + initialRowCount: 2, + initialColumnCount: 2, + selectedCell: null + }; + return _this; + } + /** + * Updates the initial column count used for table creation. + * + * @param {number} initialColumnCount New initial column count. + */ + + + Object(createClass["a" /* default */])(TableEdit, [{ + key: "onChangeInitialColumnCount", + value: function onChangeInitialColumnCount(initialColumnCount) { + this.setState({ + initialColumnCount: initialColumnCount + }); + } + /** + * Updates the initial row count used for table creation. + * + * @param {number} initialRowCount New initial row count. + */ + + }, { + key: "onChangeInitialRowCount", + value: function onChangeInitialRowCount(initialRowCount) { + this.setState({ + initialRowCount: initialRowCount + }); + } + /** + * Creates a table based on dimensions in local state. + * + * @param {Object} event Form submit event. + */ + + }, { + key: "onCreateTable", + value: function onCreateTable(event) { + event.preventDefault(); + var setAttributes = this.props.setAttributes; + var _this$state = this.state, + initialRowCount = _this$state.initialRowCount, + initialColumnCount = _this$state.initialColumnCount; + initialRowCount = parseInt(initialRowCount, 10) || 2; + initialColumnCount = parseInt(initialColumnCount, 10) || 2; + setAttributes(createTable({ + rowCount: initialRowCount, + columnCount: initialColumnCount + })); + } + /** + * Toggles whether the table has a fixed layout or not. + */ + + }, { + key: "onChangeFixedLayout", + value: function onChangeFixedLayout() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes; + var hasFixedLayout = attributes.hasFixedLayout; + setAttributes({ + hasFixedLayout: !hasFixedLayout + }); + } + /** + * Changes the content of the currently selected cell. + * + * @param {Array} content A RichText content value. + */ + + }, { + key: "onChange", + value: function onChange(content) { + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } + + var _this$props2 = this.props, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes; + setAttributes(updateSelectedCell(attributes, selectedCell, function (cellAttributes) { + return Object(objectSpread["a" /* default */])({}, cellAttributes, { + content: content + }); + })); + } + /** + * Align text within the a column. + * + * @param {string} align The new alignment to apply to the column. + */ + + }, { + key: "onChangeColumnAlignment", + value: function onChangeColumnAlignment(align) { + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } // Convert the cell selection to a column selection so that alignment + // is applied to the entire column. + + + var columnSelection = { + type: 'column', + columnIndex: selectedCell.columnIndex + }; + var _this$props3 = this.props, + attributes = _this$props3.attributes, + setAttributes = _this$props3.setAttributes; + var newAttributes = updateSelectedCell(attributes, columnSelection, function (cellAttributes) { + return Object(objectSpread["a" /* default */])({}, cellAttributes, { + align: align + }); + }); + setAttributes(newAttributes); + } + /** + * Get the alignment of the currently selected cell. + * + * @return {string} The new alignment to apply to the column. + */ + + }, { + key: "getCellAlignment", + value: function getCellAlignment() { + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } + + var attributes = this.props.attributes; + return getCellAttribute(attributes, selectedCell, 'align'); + } + /** + * Add or remove a `head` table section. + */ + + }, { + key: "onToggleHeaderSection", + value: function onToggleHeaderSection() { + var _this$props4 = this.props, + attributes = _this$props4.attributes, + setAttributes = _this$props4.setAttributes; + setAttributes(toggleSection(attributes, 'head')); + } + /** + * Add or remove a `foot` table section. + */ + + }, { + key: "onToggleFooterSection", + value: function onToggleFooterSection() { + var _this$props5 = this.props, + attributes = _this$props5.attributes, + setAttributes = _this$props5.setAttributes; + setAttributes(toggleSection(attributes, 'foot')); + } + /** + * Inserts a row at the currently selected row index, plus `delta`. + * + * @param {number} delta Offset for selected row index at which to insert. + */ + + }, { + key: "onInsertRow", + value: function onInsertRow(delta) { + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } + + var _this$props6 = this.props, + attributes = _this$props6.attributes, + setAttributes = _this$props6.setAttributes; + var sectionName = selectedCell.sectionName, + rowIndex = selectedCell.rowIndex; + this.setState({ + selectedCell: null + }); + setAttributes(insertRow(attributes, { + sectionName: sectionName, + rowIndex: rowIndex + delta + })); + } + /** + * Inserts a row before the currently selected row. + */ + + }, { + key: "onInsertRowBefore", + value: function onInsertRowBefore() { + this.onInsertRow(0); + } + /** + * Inserts a row after the currently selected row. + */ + + }, { + key: "onInsertRowAfter", + value: function onInsertRowAfter() { + this.onInsertRow(1); + } + /** + * Deletes the currently selected row. + */ + + }, { + key: "onDeleteRow", + value: function onDeleteRow() { + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } + + var _this$props7 = this.props, + attributes = _this$props7.attributes, + setAttributes = _this$props7.setAttributes; + var sectionName = selectedCell.sectionName, + rowIndex = selectedCell.rowIndex; + this.setState({ + selectedCell: null + }); + setAttributes(deleteRow(attributes, { + sectionName: sectionName, + rowIndex: rowIndex + })); + } + /** + * Inserts a column at the currently selected column index, plus `delta`. + * + * @param {number} delta Offset for selected column index at which to insert. + */ + + }, { + key: "onInsertColumn", + value: function onInsertColumn() { + var delta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } + + var _this$props8 = this.props, + attributes = _this$props8.attributes, + setAttributes = _this$props8.setAttributes; + var columnIndex = selectedCell.columnIndex; + this.setState({ + selectedCell: null + }); + setAttributes(insertColumn(attributes, { + columnIndex: columnIndex + delta + })); + } + /** + * Inserts a column before the currently selected column. + */ + + }, { + key: "onInsertColumnBefore", + value: function onInsertColumnBefore() { + this.onInsertColumn(0); + } + /** + * Inserts a column after the currently selected column. + */ + + }, { + key: "onInsertColumnAfter", + value: function onInsertColumnAfter() { + this.onInsertColumn(1); + } + /** + * Deletes the currently selected column. + */ + + }, { + key: "onDeleteColumn", + value: function onDeleteColumn() { + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } + + var _this$props9 = this.props, + attributes = _this$props9.attributes, + setAttributes = _this$props9.setAttributes; + var sectionName = selectedCell.sectionName, + columnIndex = selectedCell.columnIndex; + this.setState({ + selectedCell: null + }); + setAttributes(deleteColumn(attributes, { + sectionName: sectionName, + columnIndex: columnIndex + })); + } + /** + * Creates an onFocus handler for a specified cell. + * + * @param {Object} cellLocation Object with `section`, `rowIndex`, and + * `columnIndex` properties. + * + * @return {Function} Function to call on focus. + */ + + }, { + key: "createOnFocus", + value: function createOnFocus(cellLocation) { + var _this2 = this; + + return function () { + _this2.setState({ + selectedCell: Object(objectSpread["a" /* default */])({}, cellLocation, { + type: 'cell' + }) + }); + }; + } + /** + * Gets the table controls to display in the block toolbar. + * + * @return {Array} Table controls. + */ + + }, { + key: "getTableControls", + value: function getTableControls() { + var selectedCell = this.state.selectedCell; + return [{ + icon: 'table-row-before', + title: Object(external_this_wp_i18n_["__"])('Add Row Before'), + isDisabled: !selectedCell, + onClick: this.onInsertRowBefore + }, { + icon: 'table-row-after', + title: Object(external_this_wp_i18n_["__"])('Add Row After'), + isDisabled: !selectedCell, + onClick: this.onInsertRowAfter + }, { + icon: 'table-row-delete', + title: Object(external_this_wp_i18n_["__"])('Delete Row'), + isDisabled: !selectedCell, + onClick: this.onDeleteRow + }, { + icon: 'table-col-before', + title: Object(external_this_wp_i18n_["__"])('Add Column Before'), + isDisabled: !selectedCell, + onClick: this.onInsertColumnBefore + }, { + icon: 'table-col-after', + title: Object(external_this_wp_i18n_["__"])('Add Column After'), + isDisabled: !selectedCell, + onClick: this.onInsertColumnAfter + }, { + icon: 'table-col-delete', + title: Object(external_this_wp_i18n_["__"])('Delete Column'), + isDisabled: !selectedCell, + onClick: this.onDeleteColumn + }]; + } + /** + * Renders a table section. + * + * @param {Object} options + * @param {string} options.type Section type: head, body, or foot. + * @param {Array} options.rows The rows to render. + * + * @return {Object} React element for the section. + */ + + }, { + key: "renderSection", + value: function renderSection(_ref) { + var _this3 = this; + + var name = _ref.name, + rows = _ref.rows; + + if (isEmptyTableSection(rows)) { + return null; + } + + var Tag = "t".concat(name); + var selectedCell = this.state.selectedCell; + return Object(external_this_wp_element_["createElement"])(Tag, null, rows.map(function (_ref2, rowIndex) { + var cells = _ref2.cells; + return Object(external_this_wp_element_["createElement"])("tr", { + key: rowIndex + }, cells.map(function (_ref3, columnIndex) { + var content = _ref3.content, + CellTag = _ref3.tag, + scope = _ref3.scope, + align = _ref3.align; + var cellLocation = { + sectionName: name, + rowIndex: rowIndex, + columnIndex: columnIndex + }; + var isSelected = isCellSelected(cellLocation, selectedCell); + var cellClasses = classnames_default()(Object(defineProperty["a" /* default */])({ + 'is-selected': isSelected + }, "has-text-align-".concat(align), align)); + var richTextClassName = 'wp-block-table__cell-content'; + return Object(external_this_wp_element_["createElement"])(CellTag, { + key: columnIndex, + className: cellClasses, + scope: CellTag === 'th' ? scope : undefined, + onClick: function onClick(event) { + // When a cell is selected, forward focus to the child RichText. This solves an issue where the + // user may click inside a cell, but outside of the RichText, resulting in nothing happening. + var richTextElement = event && event.target && event.target.querySelector(".".concat(richTextClassName)); + + if (richTextElement) { + richTextElement.focus(); + } + } + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + className: richTextClassName, + value: content, + onChange: _this3.onChange, + unstableOnFocus: _this3.createOnFocus(cellLocation) + })); + })); + })); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + var isSelected = this.props.isSelected; + var selectedCell = this.state.selectedCell; + + if (!isSelected && selectedCell) { + this.setState({ + selectedCell: null + }); + } + } + }, { + key: "render", + value: function render() { + var _this4 = this; + + var _this$props10 = this.props, + attributes = _this$props10.attributes, + className = _this$props10.className, + backgroundColor = _this$props10.backgroundColor, + setBackgroundColor = _this$props10.setBackgroundColor; + var _this$state2 = this.state, + initialRowCount = _this$state2.initialRowCount, + initialColumnCount = _this$state2.initialColumnCount; + var hasFixedLayout = attributes.hasFixedLayout, + head = attributes.head, + body = attributes.body, + foot = attributes.foot; + var isEmpty = isEmptyTableSection(head) && isEmptyTableSection(body) && isEmptyTableSection(foot); + var Section = this.renderSection; + + if (isEmpty) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + label: Object(external_this_wp_i18n_["__"])('Table'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: table_icon, + showColors: true + }), + instructions: Object(external_this_wp_i18n_["__"])('Insert a table for sharing data.'), + isColumnLayout: true + }, Object(external_this_wp_element_["createElement"])("form", { + className: "wp-block-table__placeholder-form", + onSubmit: this.onCreateTable + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + label: Object(external_this_wp_i18n_["__"])('Column Count'), + value: initialColumnCount, + onChange: this.onChangeInitialColumnCount, + min: "1", + className: "wp-block-table__placeholder-input" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + label: Object(external_this_wp_i18n_["__"])('Row Count'), + value: initialRowCount, + onChange: this.onChangeInitialRowCount, + min: "1", + className: "wp-block-table__placeholder-input" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "wp-block-table__placeholder-button", + isDefault: true, + type: "submit" + }, Object(external_this_wp_i18n_["__"])('Create Table')))); + } + + var tableClasses = classnames_default()(backgroundColor.class, { + 'has-fixed-layout': hasFixedLayout, + 'has-background': !!backgroundColor.color + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { + hasArrowIndicator: true, + icon: "editor-table", + label: Object(external_this_wp_i18n_["__"])('Edit table'), + controls: this.getTableControls() + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { + label: Object(external_this_wp_i18n_["__"])('Change column alignment'), + alignmentControls: ALIGNMENT_CONTROLS, + value: this.getCellAlignment(), + onChange: function onChange(nextAlign) { + return _this4.onChangeColumnAlignment(nextAlign); + }, + onHover: this.onHoverAlignment + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Table Settings'), + className: "blocks-table-settings" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Fixed width table cells'), + checked: !!hasFixedLayout, + onChange: this.onChangeFixedLayout + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Header section'), + checked: !!(head && head.length), + onChange: this.onToggleHeaderSection + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Footer section'), + checked: !!(foot && foot.length), + onChange: this.onToggleFooterSection + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + initialOpen: false, + colorSettings: [{ + value: backgroundColor.color, + onChange: setBackgroundColor, + label: Object(external_this_wp_i18n_["__"])('Background Color'), + disableCustomColors: true, + colors: BACKGROUND_COLORS + }] + })), Object(external_this_wp_element_["createElement"])("figure", { + className: className + }, Object(external_this_wp_element_["createElement"])("table", { + className: tableClasses + }, Object(external_this_wp_element_["createElement"])(Section, { + name: "head", + rows: head + }), Object(external_this_wp_element_["createElement"])(Section, { + name: "body", + rows: body + }), Object(external_this_wp_element_["createElement"])(Section, { + name: "foot", + rows: foot + })))); + } + }]); + + return TableEdit; +}(external_this_wp_element_["Component"]); +/* harmony default export */ var table_edit = (withCustomBackgroundColors('backgroundColor')(edit_TableEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/save.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function table_save_save(_ref) { + var attributes = _ref.attributes; + var hasFixedLayout = attributes.hasFixedLayout, + head = attributes.head, + body = attributes.body, + foot = attributes.foot, + backgroundColor = attributes.backgroundColor; + var isEmpty = !head.length && !body.length && !foot.length; + + if (isEmpty) { + return null; + } + + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var classes = classnames_default()(backgroundClass, { + 'has-fixed-layout': hasFixedLayout, + 'has-background': !!backgroundClass + }); + + var Section = function Section(_ref2) { + var type = _ref2.type, + rows = _ref2.rows; + + if (!rows.length) { + return null; + } + + var Tag = "t".concat(type); + return Object(external_this_wp_element_["createElement"])(Tag, null, rows.map(function (_ref3, rowIndex) { + var cells = _ref3.cells; + return Object(external_this_wp_element_["createElement"])("tr", { + key: rowIndex + }, cells.map(function (_ref4, cellIndex) { + var content = _ref4.content, + tag = _ref4.tag, + scope = _ref4.scope, + align = _ref4.align; + var cellClasses = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)); + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + className: cellClasses ? cellClasses : undefined, + "data-align": align, + tagName: tag, + value: content, + key: cellIndex, + scope: tag === 'th' ? scope : undefined + }); + })); + })); + }; + + return Object(external_this_wp_element_["createElement"])("figure", null, Object(external_this_wp_element_["createElement"])("table", { + className: classes + }, Object(external_this_wp_element_["createElement"])(Section, { + type: "head", + rows: head + }), Object(external_this_wp_element_["createElement"])(Section, { + type: "body", + rows: body + }), Object(external_this_wp_element_["createElement"])(Section, { + type: "foot", + rows: foot + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/transforms.js +/** + * WordPress dependencies + */ + +var tableContentPasteSchema = { + tr: { + allowEmpty: true, + children: { + th: { + allowEmpty: true, + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])(), + attributes: ['scope'] + }, + td: { + allowEmpty: true, + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + } + } +}; +var tablePasteSchema = { + table: { + children: { + thead: { + allowEmpty: true, + children: tableContentPasteSchema + }, + tfoot: { + allowEmpty: true, + children: tableContentPasteSchema + }, + tbody: { + allowEmpty: true, + children: tableContentPasteSchema + } + } + } +}; +var table_transforms_transforms = { + from: [{ + type: 'raw', + selector: 'table', + schema: tablePasteSchema + }] +}; +/* harmony default export */ var table_transforms = (table_transforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var table_metadata = { + name: "core/table", + category: "formatting", + attributes: { + hasFixedLayout: { + type: "boolean", + "default": false + }, + backgroundColor: { + type: "string" + }, + head: { + type: "array", + "default": [], + source: "query", + selector: "thead tr", + query: { + cells: { + type: "array", + "default": [], + source: "query", + selector: "td,th", + query: { + content: { + type: "string", + source: "html" + }, + tag: { + type: "string", + "default": "td", + source: "tag" + }, + scope: { + type: "string", + source: "attribute", + attribute: "scope" + }, + align: { + type: "string", + source: "attribute", + attribute: "data-align" + } + } + } + } + }, + body: { + type: "array", + "default": [], + source: "query", + selector: "tbody tr", + query: { + cells: { + type: "array", + "default": [], + source: "query", + selector: "td,th", + query: { + content: { + type: "string", + source: "html" + }, + tag: { + type: "string", + "default": "td", + source: "tag" + }, + scope: { + type: "string", + source: "attribute", + attribute: "scope" + }, + align: { + type: "string", + source: "attribute", + attribute: "data-align" + } + } + } + } + }, + foot: { + type: "array", + "default": [], + source: "query", + selector: "tfoot tr", + query: { + cells: { + type: "array", + "default": [], + source: "query", + selector: "td,th", + query: { + content: { + type: "string", + source: "html" + }, + tag: { + type: "string", + "default": "td", + source: "tag" + }, + scope: { + type: "string", + source: "attribute", + attribute: "scope" + }, + align: { + type: "string", + source: "attribute", + attribute: "data-align" + } + } + } + } + } + } +}; + + +var table_name = table_metadata.name; + +var table_settings = { + title: Object(external_this_wp_i18n_["__"])('Table'), + description: Object(external_this_wp_i18n_["__"])('Insert a table — perfect for sharing charts and data.'), + icon: table_icon, + example: { + attributes: { + head: [{ + cells: [{ + content: Object(external_this_wp_i18n_["__"])('Version'), + tag: 'th' + }, { + content: Object(external_this_wp_i18n_["__"])('Jazz Musician'), + tag: 'th' + }, { + content: Object(external_this_wp_i18n_["__"])('Release Date'), + tag: 'th' + }] + }], + body: [{ + cells: [{ + content: '5.2', + tag: 'td' + }, { + content: 'Jaco Pastorius', + tag: 'td' + }, { + content: Object(external_this_wp_i18n_["__"])('May 7, 2019'), + tag: 'td' + }] + }, { + cells: [{ + content: '5.1', + tag: 'td' + }, { + content: 'Betty Carter', + tag: 'td' + }, { + content: Object(external_this_wp_i18n_["__"])('February 21, 2019'), + tag: 'td' + }] + }, { + cells: [{ + content: '5.0', + tag: 'td' + }, { + content: 'Bebo Valdés', + tag: 'td' + }, { + content: Object(external_this_wp_i18n_["__"])('December 6, 2018'), + tag: 'td' + }] + }] + } + }, + styles: [{ + name: 'regular', + label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), + isDefault: true + }, { + name: 'stripes', + label: Object(external_this_wp_i18n_["__"])('Stripes') + }], + supports: { + align: true + }, + transforms: table_transforms, + edit: table_edit, + save: table_save_save, + deprecated: table_deprecated +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/edit.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +function TextColumnsEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + className = _ref.className; + var width = attributes.width, + content = attributes.content, + columns = attributes.columns; + external_this_wp_deprecated_default()('The Text Columns block', { + alternative: 'the Columns block', + plugin: 'Gutenberg' + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { + value: width, + onChange: function onChange(nextWidth) { + return setAttributes({ + width: nextWidth + }); + }, + controls: ['center', 'wide', 'full'] + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Columns'), + value: columns, + onChange: function onChange(value) { + return setAttributes({ + columns: value + }); + }, + min: 2, + max: 4, + required: true + }))), Object(external_this_wp_element_["createElement"])("div", { + className: "".concat(className, " align").concat(width, " columns-").concat(columns) + }, Object(external_lodash_["times"])(columns, function (index) { + return Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-column", + key: "column-".concat(index) + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "p", + value: Object(external_lodash_["get"])(content, [index, 'children']), + onChange: function onChange(nextContent) { + setAttributes({ + content: [].concat(Object(toConsumableArray["a" /* default */])(content.slice(0, index)), [{ + children: nextContent + }], Object(toConsumableArray["a" /* default */])(content.slice(index + 1))) + }); + }, + placeholder: Object(external_this_wp_i18n_["__"])('New Column') + })); + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/save.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function text_columns_save_save(_ref) { + var attributes = _ref.attributes; + var width = attributes.width, + content = attributes.content, + columns = attributes.columns; + return Object(external_this_wp_element_["createElement"])("div", { + className: "align".concat(width, " columns-").concat(columns) + }, Object(external_lodash_["times"])(columns, function (index) { + return Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-column", + key: "column-".concat(index) + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + value: Object(external_lodash_["get"])(content, [index, 'children']) + })); + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/tranforms.js +/** + * WordPress dependencies + */ + +var text_columns_tranforms_transforms = { + to: [{ + type: 'block', + blocks: ['core/columns'], + transform: function transform(_ref) { + var className = _ref.className, + columns = _ref.columns, + content = _ref.content, + width = _ref.width; + return Object(external_this_wp_blocks_["createBlock"])('core/columns', { + align: 'wide' === width || 'full' === width ? width : undefined, + className: className, + columns: columns + }, content.map(function (_ref2) { + var children = _ref2.children; + return Object(external_this_wp_blocks_["createBlock"])('core/column', {}, [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: children + })]); + })); + } + }] +}; +/* harmony default export */ var text_columns_tranforms = (text_columns_tranforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var text_columns_metadata = { + name: "core/text-columns", + icon: "columns", + category: "layout", + attributes: { + content: { + type: "array", + source: "query", + selector: "p", + query: { + children: { + type: "string", + source: "html" + } + }, + "default": [{}, {}] + }, + columns: { + type: "number", + "default": 2 + }, + width: { + type: "string" + } + } +}; + + +var text_columns_name = text_columns_metadata.name; + +var text_columns_settings = { + // Disable insertion as this block is deprecated and ultimately replaced by the Columns block. + supports: { + inserter: false + }, + title: Object(external_this_wp_i18n_["__"])('Text Columns (deprecated)'), + description: Object(external_this_wp_i18n_["__"])('This block is deprecated. Please use the Columns block instead.'), + transforms: text_columns_tranforms, + getEditWrapperProps: function getEditWrapperProps(attributes) { + var width = attributes.width; + + if ('wide' === width || 'full' === width) { + return { + 'data-align': width + }; + } + }, + edit: TextColumnsEdit, + save: text_columns_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/deprecated.js + + +/** + * WordPress dependencies + */ + +var verse_deprecated_blockAttributes = { + content: { + type: 'string', + source: 'html', + selector: 'pre', + default: '' + }, + textAlign: { + type: 'string' + } +}; +var verse_deprecated_deprecated = [{ + attributes: verse_deprecated_blockAttributes, + save: function save(_ref) { + var attributes = _ref.attributes; + var textAlign = attributes.textAlign, + content = attributes.content; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "pre", + style: { + textAlign: textAlign + }, + value: content + }); + } +}]; +/* harmony default export */ var verse_deprecated = (verse_deprecated_deprecated); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/edit.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +function VerseEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + className = _ref.className, + mergeBlocks = _ref.mergeBlocks; + var textAlign = attributes.textAlign, + content = attributes.content; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { + value: textAlign, + onChange: function onChange(nextAlign) { + setAttributes({ + textAlign: nextAlign + }); + } + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "pre", + value: content, + onChange: function onChange(nextContent) { + setAttributes({ + content: nextContent + }); + }, + placeholder: Object(external_this_wp_i18n_["__"])('Write…'), + wrapperClassName: className, + className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign)), + onMerge: mergeBlocks + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var verse_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/save.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function verse_save_save(_ref) { + var attributes = _ref.attributes; + var textAlign = attributes.textAlign, + content = attributes.content; + var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign)); + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "pre", + className: className, + value: content + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/tranforms.js +/** + * WordPress dependencies + */ + +var verse_tranforms_transforms = { + from: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/verse', attributes); + } + }], + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', attributes); + } + }] +}; +/* harmony default export */ var verse_tranforms = (verse_tranforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var verse_metadata = { + name: "core/verse", + category: "formatting", + attributes: { + content: { + type: "string", + source: "html", + selector: "pre", + "default": "" + }, + textAlign: { + type: "string" + } + } +}; + + +var verse_name = verse_metadata.name; + +var verse_settings = { + title: Object(external_this_wp_i18n_["__"])('Verse'), + description: Object(external_this_wp_i18n_["__"])('Insert poetry. Use special spacing formats. Or quote song lyrics.'), + icon: verse_icon, + example: { + attributes: { + content: Object(external_this_wp_i18n_["__"])('WHAT was he doing, the great god Pan,') + '
    ' + Object(external_this_wp_i18n_["__"])(' Down in the reeds by the river?') + '
    ' + Object(external_this_wp_i18n_["__"])('Spreading ruin and scattering ban,') + '
    ' + Object(external_this_wp_i18n_["__"])('Splashing and paddling with hoofs of a goat,') + '
    ' + Object(external_this_wp_i18n_["__"])('And breaking the golden lilies afloat') + '
    ' + Object(external_this_wp_i18n_["__"])(' With the dragon-fly on the river.') + } + }, + keywords: [Object(external_this_wp_i18n_["__"])('poetry')], + transforms: verse_tranforms, + deprecated: verse_deprecated, + merge: function merge(attributes, attributesToMerge) { + return { + content: attributes.content + attributesToMerge.content + }; + }, + edit: VerseEdit, + save: verse_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var video_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/edit.js + + + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + +var video_edit_ALLOWED_MEDIA_TYPES = ['video']; +var VIDEO_POSTER_ALLOWED_MEDIA_TYPES = ['image']; + +var edit_VideoEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(VideoEdit, _Component); + + function VideoEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, VideoEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(VideoEdit).apply(this, arguments)); // edit component has its own src in the state so it can be edited + // without setting the actual value outside of the edit UI + + _this.state = { + editing: !_this.props.attributes.src + }; + _this.videoPlayer = Object(external_this_wp_element_["createRef"])(); + _this.posterImageButton = Object(external_this_wp_element_["createRef"])(); + _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSelectPoster = _this.onSelectPoster.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onRemovePoster = _this.onRemovePoster.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(VideoEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + mediaUpload = _this$props.mediaUpload, + noticeOperations = _this$props.noticeOperations, + setAttributes = _this$props.setAttributes; + var id = attributes.id, + _attributes$src = attributes.src, + src = _attributes$src === void 0 ? '' : _attributes$src; + + if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { + var file = Object(external_this_wp_blob_["getBlobByURL"])(src); + + if (file) { + mediaUpload({ + filesList: [file], + onFileChange: function onFileChange(_ref) { + var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), + url = _ref2[0].url; + + setAttributes({ + src: url + }); + }, + onError: function onError(message) { + _this2.setState({ + editing: true + }); + + noticeOperations.createErrorNotice(message); + }, + allowedTypes: video_edit_ALLOWED_MEDIA_TYPES + }); + } + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (this.props.attributes.poster !== prevProps.attributes.poster) { + this.videoPlayer.current.load(); + } + } + }, { + key: "toggleAttribute", + value: function toggleAttribute(attribute) { + var _this3 = this; + + return function (newValue) { + _this3.props.setAttributes(Object(defineProperty["a" /* default */])({}, attribute, newValue)); + }; + } + }, { + key: "onSelectURL", + value: function onSelectURL(newSrc) { + var _this$props2 = this.props, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes; + var src = attributes.src; // Set the block's src from the edit component's state, and switch off + // the editing UI. + + if (newSrc !== src) { + // Check if there's an embed block that handles this URL. + var embedBlock = util_createUpgradedEmbedBlock({ + attributes: { + url: newSrc + } + }); + + if (undefined !== embedBlock) { + this.props.onReplace(embedBlock); + return; + } + + setAttributes({ + src: newSrc, + id: undefined + }); + } + + this.setState({ + editing: false + }); + } + }, { + key: "onSelectPoster", + value: function onSelectPoster(image) { + var setAttributes = this.props.setAttributes; + setAttributes({ + poster: image.url + }); + } + }, { + key: "onRemovePoster", + value: function onRemovePoster() { + var setAttributes = this.props.setAttributes; + setAttributes({ + poster: '' + }); // Move focus back to the Media Upload button. + + this.posterImageButton.current.focus(); + } + }, { + key: "onUploadError", + value: function onUploadError(message) { + var noticeOperations = this.props.noticeOperations; + noticeOperations.removeAllNotices(); + noticeOperations.createErrorNotice(message); + } + }, { + key: "getAutoplayHelp", + value: function getAutoplayHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('Note: Autoplaying videos may cause usability issues for some visitors.') : null; + } + }, { + key: "render", + value: function render() { + var _this4 = this; + + var _this$props$attribute = this.props.attributes, + autoplay = _this$props$attribute.autoplay, + caption = _this$props$attribute.caption, + controls = _this$props$attribute.controls, + loop = _this$props$attribute.loop, + muted = _this$props$attribute.muted, + playsInline = _this$props$attribute.playsInline, + poster = _this$props$attribute.poster, + preload = _this$props$attribute.preload, + src = _this$props$attribute.src; + var _this$props3 = this.props, + className = _this$props3.className, + instanceId = _this$props3.instanceId, + isSelected = _this$props3.isSelected, + noticeUI = _this$props3.noticeUI, + setAttributes = _this$props3.setAttributes; + var editing = this.state.editing; + + var switchToEditing = function switchToEditing() { + _this4.setState({ + editing: true + }); + }; + + var onSelectVideo = function onSelectVideo(media) { + if (!media || !media.url) { + // in this case there was an error and we should continue in the editing state + // previous attributes should be removed because they may be temporary blob urls + setAttributes({ + src: undefined, + id: undefined + }); + switchToEditing(); + return; + } // sets the block's attribute and updates the edit component from the + // selected media, then switches off the editing UI + + + setAttributes({ + src: media.url, + id: media.id + }); + + _this4.setState({ + src: media.url, + editing: false + }); + }; + + if (editing) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: video_icon + }), + className: className, + onSelect: onSelectVideo, + onSelectURL: this.onSelectURL, + accept: "video/*", + allowedTypes: video_edit_ALLOWED_MEDIA_TYPES, + value: this.props.attributes, + notices: noticeUI, + onError: this.onUploadError + }); + } + + var videoPosterDescription = "video-block__poster-image-description-".concat(instanceId); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-icon-button components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit video'), + onClick: switchToEditing, + icon: "edit" + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Video Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Autoplay'), + onChange: this.toggleAttribute('autoplay'), + checked: autoplay, + help: this.getAutoplayHelp + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Loop'), + onChange: this.toggleAttribute('loop'), + checked: loop + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Muted'), + onChange: this.toggleAttribute('muted'), + checked: muted + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Playback Controls'), + onChange: this.toggleAttribute('controls'), + checked: controls + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Play inline'), + onChange: this.toggleAttribute('playsInline'), + checked: playsInline + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Preload'), + value: preload, + onChange: function onChange(value) { + return setAttributes({ + preload: value + }); + }, + options: [{ + value: 'auto', + label: Object(external_this_wp_i18n_["__"])('Auto') + }, { + value: 'metadata', + label: Object(external_this_wp_i18n_["__"])('Metadata') + }, { + value: 'none', + label: Object(external_this_wp_i18n_["__"])('None') + }] + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + className: "editor-video-poster-control" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, Object(external_this_wp_i18n_["__"])('Poster Image')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { + title: Object(external_this_wp_i18n_["__"])('Select Poster Image'), + onSelect: this.onSelectPoster, + allowedTypes: VIDEO_POSTER_ALLOWED_MEDIA_TYPES, + render: function render(_ref3) { + var open = _ref3.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isDefault: true, + onClick: open, + ref: _this4.posterImageButton, + "aria-describedby": videoPosterDescription + }, !_this4.props.attributes.poster ? Object(external_this_wp_i18n_["__"])('Select Poster Image') : Object(external_this_wp_i18n_["__"])('Replace image')); + } + }), Object(external_this_wp_element_["createElement"])("p", { + id: videoPosterDescription, + hidden: true + }, this.props.attributes.poster ? Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('The current poster image url is %s'), this.props.attributes.poster) : Object(external_this_wp_i18n_["__"])('There is no poster image currently selected')), !!this.props.attributes.poster && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + onClick: this.onRemovePoster, + isLink: true, + isDestructive: true + }, Object(external_this_wp_i18n_["__"])('Remove Poster Image')))))), Object(external_this_wp_element_["createElement"])("figure", { + className: className + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("video", { + controls: controls, + poster: poster, + src: src, + ref: this.videoPlayer + })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + onChange: function onChange(value) { + return setAttributes({ + caption: value + }); + }, + inlineToolbar: true + }))); + } + }]); + + return VideoEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var video_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + var _getSettings = getSettings(), + __experimentalMediaUpload = _getSettings.__experimentalMediaUpload; + + return { + mediaUpload: __experimentalMediaUpload + }; +}), external_this_wp_components_["withNotices"], external_this_wp_compose_["withInstanceId"]])(edit_VideoEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/save.js + + +/** + * WordPress dependencies + */ + +function video_save_save(_ref) { + var attributes = _ref.attributes; + var autoplay = attributes.autoplay, + caption = attributes.caption, + controls = attributes.controls, + loop = attributes.loop, + muted = attributes.muted, + poster = attributes.poster, + preload = attributes.preload, + src = attributes.src, + playsInline = attributes.playsInline; + return Object(external_this_wp_element_["createElement"])("figure", null, src && Object(external_this_wp_element_["createElement"])("video", { + autoPlay: autoplay, + controls: controls, + loop: loop, + muted: muted, + poster: poster, + preload: preload !== 'metadata' ? preload : undefined, + src: src, + playsInline: playsInline + }), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/tranforms.js +/** + * WordPress dependencies + */ + + +var video_tranforms_transforms = { + from: [{ + type: 'files', + isMatch: function isMatch(files) { + return files.length === 1 && files[0].type.indexOf('video/') === 0; + }, + transform: function transform(files) { + var file = files[0]; // We don't need to upload the media directly here + // It's already done as part of the `componentDidMount` + // in the video block + + var block = Object(external_this_wp_blocks_["createBlock"])('core/video', { + src: Object(external_this_wp_blob_["createBlobURL"])(file) + }); + return block; + } + }, { + type: 'shortcode', + tag: 'video', + attributes: { + src: { + type: 'string', + shortcode: function shortcode(_ref) { + var _ref$named = _ref.named, + src = _ref$named.src, + mp4 = _ref$named.mp4, + m4v = _ref$named.m4v, + webm = _ref$named.webm, + ogv = _ref$named.ogv, + flv = _ref$named.flv; + return src || mp4 || m4v || webm || ogv || flv; + } + }, + poster: { + type: 'string', + shortcode: function shortcode(_ref2) { + var poster = _ref2.named.poster; + return poster; + } + }, + loop: { + type: 'string', + shortcode: function shortcode(_ref3) { + var loop = _ref3.named.loop; + return loop; + } + }, + autoplay: { + type: 'string', + shortcode: function shortcode(_ref4) { + var autoplay = _ref4.named.autoplay; + return autoplay; + } + }, + preload: { + type: 'string', + shortcode: function shortcode(_ref5) { + var preload = _ref5.named.preload; + return preload; + } + } + } + }] +}; +/* harmony default export */ var video_tranforms = (video_tranforms_transforms); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var video_metadata = { + name: "core/video", + category: "common", + attributes: { + autoplay: { + type: "boolean", + source: "attribute", + selector: "video", + attribute: "autoplay" + }, + caption: { + type: "string", + source: "html", + selector: "figcaption" + }, + controls: { + type: "boolean", + source: "attribute", + selector: "video", + attribute: "controls", + "default": true + }, + id: { + type: "number" + }, + loop: { + type: "boolean", + source: "attribute", + selector: "video", + attribute: "loop" + }, + muted: { + type: "boolean", + source: "attribute", + selector: "video", + attribute: "muted" + }, + poster: { + type: "string", + source: "attribute", + selector: "video", + attribute: "poster" + }, + preload: { + type: "string", + source: "attribute", + selector: "video", + attribute: "preload", + "default": "metadata" + }, + src: { + type: "string", + source: "attribute", + selector: "video", + attribute: "src" + }, + playsInline: { + type: "boolean", + source: "attribute", + selector: "video", + attribute: "playsinline" + } + } +}; + + +var video_name = video_metadata.name; + +var video_settings = { + title: Object(external_this_wp_i18n_["__"])('Video'), + description: Object(external_this_wp_i18n_["__"])('Embed a video from your media library or upload a new one.'), + icon: video_icon, + keywords: [Object(external_this_wp_i18n_["__"])('movie')], + transforms: video_tranforms, + supports: { + align: true + }, + edit: video_edit, + save: video_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/tag-cloud/edit.js + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +var edit_TagCloudEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(TagCloudEdit, _Component); + + function TagCloudEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, TagCloudEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(TagCloudEdit).apply(this, arguments)); + _this.state = { + editing: !_this.props.attributes.taxonomy + }; + _this.setTaxonomy = _this.setTaxonomy.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.toggleShowTagCounts = _this.toggleShowTagCounts.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(TagCloudEdit, [{ + key: "getTaxonomyOptions", + value: function getTaxonomyOptions() { + var taxonomies = Object(external_lodash_["filter"])(this.props.taxonomies, 'show_cloud'); + var selectOption = { + label: Object(external_this_wp_i18n_["__"])('- Select -'), + value: '', + disabled: true + }; + var taxonomyOptions = Object(external_lodash_["map"])(taxonomies, function (taxonomy) { + return { + value: taxonomy.slug, + label: taxonomy.name + }; + }); + return [selectOption].concat(Object(toConsumableArray["a" /* default */])(taxonomyOptions)); + } + }, { + key: "setTaxonomy", + value: function setTaxonomy(taxonomy) { + var setAttributes = this.props.setAttributes; + setAttributes({ + taxonomy: taxonomy + }); + } + }, { + key: "toggleShowTagCounts", + value: function toggleShowTagCounts() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes; + var showTagCounts = attributes.showTagCounts; + setAttributes({ + showTagCounts: !showTagCounts + }); + } + }, { + key: "render", + value: function render() { + var attributes = this.props.attributes; + var taxonomy = attributes.taxonomy, + showTagCounts = attributes.showTagCounts; + var taxonomyOptions = this.getTaxonomyOptions(); + var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Tag Cloud Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Taxonomy'), + options: taxonomyOptions, + value: taxonomy, + onChange: this.setTaxonomy + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show post counts'), + checked: showTagCounts, + onChange: this.toggleShowTagCounts + }))); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { + key: "tag-cloud", + block: "core/tag-cloud", + attributes: attributes + })); + } + }]); + + return TagCloudEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var tag_cloud_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { + return { + taxonomies: select('core').getTaxonomies() + }; +})(edit_TagCloudEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/tag-cloud/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var tag_cloud_name = 'core/tag-cloud'; +var tag_cloud_settings = { + title: Object(external_this_wp_i18n_["__"])('Tag Cloud'), + description: Object(external_this_wp_i18n_["__"])('A cloud of your most used tags.'), + icon: 'tag', + category: 'widgets', + supports: { + html: false, + align: true + }, + edit: tag_cloud_edit +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/edit.js + + + + + + + + + +/** + * WordPress dependencies + */ + + + +var classic_edit_window = window, + wp = classic_edit_window.wp; + +function isTmceEmpty(editor) { + // When tinyMce is empty the content seems to be: + //


    + // avoid expensive checks for large documents + var body = editor.getBody(); + + if (body.childNodes.length > 1) { + return false; + } else if (body.childNodes.length === 0) { + return true; + } + + if (body.childNodes[0].childNodes.length > 1) { + return false; + } + + return /^\n?$/.test(body.innerText || body.textContent); +} + +var edit_ClassicEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ClassicEdit, _Component); + + function ClassicEdit(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, ClassicEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ClassicEdit).call(this, props)); + _this.initialize = _this.initialize.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.onSetup = _this.onSetup.bind(Object(assertThisInitialized["a" /* default */])(_this)); + _this.focus = _this.focus.bind(Object(assertThisInitialized["a" /* default */])(_this)); + return _this; + } + + Object(createClass["a" /* default */])(ClassicEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _window$wpEditorL10n$ = window.wpEditorL10n.tinymce, + baseURL = _window$wpEditorL10n$.baseURL, + suffix = _window$wpEditorL10n$.suffix; + window.tinymce.EditorManager.overrideDefaults({ + base_url: baseURL, + suffix: suffix + }); + + if (document.readyState === 'complete') { + this.initialize(); + } else { + window.addEventListener('DOMContentLoaded', this.initialize); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + window.addEventListener('DOMContentLoaded', this.initialize); + wp.oldEditor.remove("editor-".concat(this.props.clientId)); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props = this.props, + clientId = _this$props.clientId, + content = _this$props.attributes.content; + var editor = window.tinymce.get("editor-".concat(clientId)); + + if (prevProps.attributes.content !== content) { + editor.setContent(content || ''); + } + } + }, { + key: "initialize", + value: function initialize() { + var clientId = this.props.clientId; + var settings = window.wpEditorL10n.tinymce.settings; + wp.oldEditor.initialize("editor-".concat(clientId), { + tinymce: Object(objectSpread["a" /* default */])({}, settings, { + inline: true, + content_css: false, + fixed_toolbar_container: "#toolbar-".concat(clientId), + setup: this.onSetup + }) + }); + } + }, { + key: "onSetup", + value: function onSetup(editor) { + var _this2 = this; + + var _this$props2 = this.props, + content = _this$props2.attributes.content, + setAttributes = _this$props2.setAttributes; + var ref = this.ref; + var bookmark; + this.editor = editor; + + if (content) { + editor.on('loadContent', function () { + return editor.setContent(content); + }); + } + + editor.on('blur', function () { + bookmark = editor.selection.getBookmark(2, true); + setAttributes({ + content: editor.getContent() + }); + editor.once('focus', function () { + if (bookmark) { + editor.selection.moveToBookmark(bookmark); + } + }); + return false; + }); + editor.on('mousedown touchstart', function () { + bookmark = null; + }); + editor.on('keydown', function (event) { + if ((event.keyCode === external_this_wp_keycodes_["BACKSPACE"] || event.keyCode === external_this_wp_keycodes_["DELETE"]) && isTmceEmpty(editor)) { + // delete the block + _this2.props.onReplace([]); + + event.preventDefault(); + event.stopImmediatePropagation(); + } + + var altKey = event.altKey; + /* + * Prevent Mousetrap from kicking in: TinyMCE already uses its own + * `alt+f10` shortcut to focus its toolbar. + */ + + if (altKey && event.keyCode === external_this_wp_keycodes_["F10"]) { + event.stopPropagation(); + } + }); // TODO: the following is for back-compat with WP 4.9, not needed in WP 5.0. Remove it after the release. + + editor.addButton('kitchensink', { + tooltip: Object(external_this_wp_i18n_["_x"])('More', 'button to expand options'), + icon: 'dashicon dashicons-editor-kitchensink', + onClick: function onClick() { + var button = this; + var active = !button.active(); + button.active(active); + editor.dom.toggleClass(ref, 'has-advanced-toolbar', active); + } + }); // Show the second, third, etc. toolbars when the `kitchensink` button is removed by a plugin. + + editor.on('init', function () { + if (editor.settings.toolbar1 && editor.settings.toolbar1.indexOf('kitchensink') === -1) { + editor.dom.addClass(ref, 'has-advanced-toolbar'); + } + }); + editor.addButton('wp_add_media', { + tooltip: Object(external_this_wp_i18n_["__"])('Insert Media'), + icon: 'dashicon dashicons-admin-media', + cmd: 'WP_Medialib' + }); // End TODO. + + editor.on('init', function () { + var rootNode = _this2.editor.getBody(); // Create the toolbar by refocussing the editor. + + + if (document.activeElement === rootNode) { + rootNode.blur(); + + _this2.editor.focus(); + } + }); + } + }, { + key: "focus", + value: function focus() { + if (this.editor) { + this.editor.focus(); + } + } + }, { + key: "onToolbarKeyDown", + value: function onToolbarKeyDown(event) { + // Prevent WritingFlow from kicking in and allow arrows navigation on the toolbar. + event.stopPropagation(); // Prevent Mousetrap from moving focus to the top toolbar when pressing `alt+f10` on this block toolbar. + + event.nativeEvent.stopImmediatePropagation(); + } + }, { + key: "render", + value: function render() { + var _this3 = this; + + var clientId = this.props.clientId; // Disable reasons: + // + // jsx-a11y/no-static-element-interactions + // - the toolbar itself is non-interactive, but must capture events + // from the KeyboardShortcuts component to stop their propagation. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + + return [Object(external_this_wp_element_["createElement"])("div", { + key: "toolbar", + id: "toolbar-".concat(clientId), + ref: function ref(_ref) { + return _this3.ref = _ref; + }, + className: "block-library-classic__toolbar", + onClick: this.focus, + "data-placeholder": Object(external_this_wp_i18n_["__"])('Classic'), + onKeyDown: this.onToolbarKeyDown + }), Object(external_this_wp_element_["createElement"])("div", { + key: "editor", + id: "editor-".concat(clientId), + className: "wp-block-freeform block-library-rich-text__tinymce" + })]; + /* eslint-enable jsx-a11y/no-static-element-interactions */ + } + }]); + + return ClassicEdit; +}(external_this_wp_element_["Component"]); + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var classic_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "11", + y: "8", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "11", + y: "11", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "8", + y: "8", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "8", + y: "11", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "5", + y: "11", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "5", + y: "8", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "8", + y: "14", + width: "8", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "14", + y: "11", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "14", + y: "8", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "17", + y: "11", + width: "2", + height: "2" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "17", + y: "8", + width: "2", + height: "2" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/save.js + + +/** + * WordPress dependencies + */ + +function classic_save_save(_ref) { + var attributes = _ref.attributes; + var content = attributes.content; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, content); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var classic_metadata = { + name: "core/freeform", + category: "formatting", + attributes: { + content: { + type: "string", + source: "html" + } + } +}; + +var classic_name = classic_metadata.name; + +var classic_settings = { + title: Object(external_this_wp_i18n_["_x"])('Classic', 'block title'), + description: Object(external_this_wp_i18n_["__"])('Use the classic WordPress editor.'), + icon: classic_icon, + supports: { + className: false, + customClassName: false, + // Hide 'Add to Reusable Blocks' on Classic blocks. Showing it causes a + // confusing UX, because of its similarity to the 'Convert to Blocks' button. + reusable: false + }, + edit: edit_ClassicEdit, + save: classic_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/amazon.js + + +/** + * WordPress dependencies + */ + +var amazon_AmazonIcon = function AmazonIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/bandcamp.js + + +/** + * WordPress dependencies + */ + +var bandcamp_BandcampIcon = function BandcampIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/behance.js + + +/** + * WordPress dependencies + */ + +var behance_BehanceIcon = function BehanceIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/chain.js + + +/** + * WordPress dependencies + */ + +var chain_ChainIcon = function ChainIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/codepen.js + + +/** + * WordPress dependencies + */ + +var codepen_CodepenIcon = function CodepenIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/deviantart.js + + +/** + * WordPress dependencies + */ + +var deviantart_DeviantartIcon = function DeviantartIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/dribbble.js + + +/** + * WordPress dependencies + */ + +var dribbble_DribbbleIcon = function DribbbleIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/dropbox.js + + +/** + * WordPress dependencies + */ + +var dropbox_DropboxIcon = function DropboxIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/etsy.js + + +/** + * WordPress dependencies + */ + +var etsy_EtsyIcon = function EtsyIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/facebook.js + + +/** + * WordPress dependencies + */ + +var facebook_FacebookIcon = function FacebookIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/feed.js + + +/** + * WordPress dependencies + */ + +var feed_FeedIcon = function FeedIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/fivehundredpx.js + + +/** + * WordPress dependencies + */ + +var fivehundredpx_FivehundredpxIcon = function FivehundredpxIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/flickr.js + + +/** + * WordPress dependencies + */ + +var flickr_FlickrIcon = function FlickrIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/foursquare.js + + +/** + * WordPress dependencies + */ + +var foursquare_FoursquareIcon = function FoursquareIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/goodreads.js + + +/** + * WordPress dependencies + */ + +var goodreads_GoodreadsIcon = function GoodreadsIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/google.js + + +/** + * WordPress dependencies + */ + +var google_GoogleIcon = function GoogleIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/github.js + + +/** + * WordPress dependencies + */ + +var github_GithubIcon = function GithubIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/instagram.js + + +/** + * WordPress dependencies + */ + +var instagram_InstagramIcon = function InstagramIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/lastfm.js + + +/** + * WordPress dependencies + */ + +var lastfm_LastfmIcon = function LastfmIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M10.5002,0 C4.7006,0 0,4.70109753 0,10.4998496 C0,16.2989526 4.7006,21 10.5002,21 C16.299,21 21,16.2989526 21,10.4998496 C21,4.70109753 16.299,0 10.5002,0 Z M14.69735,14.7204413 C13.3164,14.7151781 12.4346,14.0870017 11.83445,12.6859357 L11.6816001,12.3451305 L10.35405,9.31011397 C9.92709997,8.26875064 8.85260001,7.57120012 7.68010001,7.57120012 C6.06945001,7.57120012 4.75925001,8.88509738 4.75925001,10.5009524 C4.75925001,12.1164565 6.06945001,13.4303036 7.68010001,13.4303036 C8.77200001,13.4303036 9.76514999,12.827541 10.2719501,11.8567047 C10.2893,11.8235214 10.3239,11.8019673 10.36305,11.8038219 C10.4007,11.8053759 10.43535,11.8287847 10.4504,11.8631709 L10.98655,13.1045863 C11.0016,13.1389726 10.9956,13.17782 10.97225,13.2068931 C10.1605001,14.1995341 8.96020001,14.7683115 7.68010001,14.7683115 C5.33305,14.7683115 3.42340001,12.8535563 3.42340001,10.5009524 C3.42340001,8.14679459 5.33300001,6.23203946 7.68010001,6.23203946 C9.45720002,6.23203946 10.8909,7.19074535 11.6138,8.86359341 C11.6205501,8.88018505 12.3412,10.5707777 12.97445,12.0190621 C13.34865,12.8739575 13.64615,13.3959676 14.6288,13.4291508 C15.5663001,13.4612814 16.25375,12.9121534 16.25375,12.1484869 C16.25375,11.4691321 15.8320501,11.3003585 14.8803,10.98216 C13.2365,10.4397989 12.34495,9.88605929 12.34495,8.51817658 C12.34495,7.1809207 13.26665,6.31615054 14.692,6.31615054 C15.62875,6.31615054 16.3155,6.7286858 16.79215,7.5768142 C16.80495,7.60062396 16.8079001,7.62814302 16.8004001,7.65420843 C16.7929,7.68027384 16.7748,7.70212868 16.7507001,7.713808 L15.86145,8.16900031 C15.8178001,8.19200805 15.7643,8.17807308 15.73565,8.13847371 C15.43295,7.71345711 15.0956,7.52513451 14.6423,7.52513451 C14.05125,7.52513451 13.6220001,7.92899802 13.6220001,8.48649708 C13.6220001,9.17382194 14.1529001,9.34144259 15.0339,9.61923972 C15.14915,9.65578139 15.26955,9.69397731 15.39385,9.73432853 C16.7763,10.1865133 17.57675,10.7311301 17.57675,12.1836251 C17.57685,13.629654 16.3389,14.7204413 14.69735,14.7204413 Z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/linkedin.js + + +/** + * WordPress dependencies + */ + +var linkedin_LinkedinIcon = function LinkedinIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/mail.js + + +/** + * WordPress dependencies + */ + +var mail_MailIcon = function MailIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/mastodon.js + + +/** + * WordPress dependencies + */ + +var mastodon_MastodonIcon = function MastodonIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/meetup.js + + +/** + * WordPress dependencies + */ + +var meetup_MeetupIcon = function MeetupIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/medium.js + + +/** + * WordPress dependencies + */ + +var medium_MediumIcon = function MediumIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/pinterest.js + + +/** + * WordPress dependencies + */ + +var pinterest_PinterestIcon = function PinterestIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/pocket.js + + +/** + * WordPress dependencies + */ + +var pocket_PocketIcon = function PocketIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/reddit.js + + +/** + * WordPress dependencies + */ + +var reddit_RedditIcon = function RedditIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/skype.js + + +/** + * WordPress dependencies + */ + +var skype_SkypeIcon = function SkypeIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/snapchat.js + + +/** + * WordPress dependencies + */ + +var snapchat_SnapchatIcon = function SnapchatIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/soundcloud.js + + +/** + * WordPress dependencies + */ + +var soundcloud_SoundcloudIcon = function SoundcloudIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/spotify.js + + +/** + * WordPress dependencies + */ + +var spotify_SpotifyIcon = function SpotifyIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/tumblr.js + + +/** + * WordPress dependencies + */ + +var tumblr_TumblrIcon = function TumblrIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M16.749,17.396c-0.357,0.17-1.041,0.319-1.551,0.332c-1.539,0.041-1.837-1.081-1.85-1.896V9.847h3.861V6.937h-3.847V2.039 c0,0-2.77,0-2.817,0c-0.046,0-0.127,0.041-0.138,0.144c-0.165,1.499-0.867,4.13-3.783,5.181v2.484h1.945v6.282 c0,2.151,1.587,5.206,5.775,5.135c1.413-0.024,2.982-0.616,3.329-1.126L16.749,17.396z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/twitch.js + + +/** + * WordPress dependencies + */ + +var twitch_TwitchIcon = function TwitchIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/twitter.js + + +/** + * WordPress dependencies + */ + +var twitter_TwitterIcon = function TwitterIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/vimeo.js + + +/** + * WordPress dependencies + */ + +var vimeo_VimeoIcon = function VimeoIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/vk.js + + +/** + * WordPress dependencies + */ + +var vk_VkIcon = function VkIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/wordpress.js + + +/** + * WordPress dependencies + */ + +var wordpress_WordPressIcon = function WordPressIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/yelp.js + + +/** + * WordPress dependencies + */ + +var yelp_YelpIcon = function YelpIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/youtube.js + + +/** + * WordPress dependencies + */ + +var youtube_YoutubeIcon = function YoutubeIcon() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "24", + height: "24", + viewBox: "0 0 24 24", + version: "1.1" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z" + })); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/index.js + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/social-list.js +/** + * Internal dependencies + */ + +var socialList = { + fivehundredpx: { + name: '500px', + icon: fivehundredpx_FivehundredpxIcon + }, + amazon: { + name: 'Amazon', + icon: amazon_AmazonIcon + }, + bandcamp: { + name: 'Bandcamp', + icon: bandcamp_BandcampIcon + }, + behance: { + name: 'Behance', + icon: behance_BehanceIcon + }, + chain: { + name: 'Link', + icon: chain_ChainIcon + }, + codepen: { + name: 'CodePen', + icon: codepen_CodepenIcon + }, + deviantart: { + name: 'DeviantArt', + icon: deviantart_DeviantartIcon + }, + dribbble: { + name: 'Dribbble', + icon: dribbble_DribbbleIcon + }, + dropbox: { + name: 'Dropbox', + icon: dropbox_DropboxIcon + }, + etsy: { + name: 'Etsy', + icon: etsy_EtsyIcon + }, + facebook: { + name: 'Facebook', + icon: facebook_FacebookIcon + }, + feed: { + name: 'RSS Feed', + icon: feed_FeedIcon + }, + flickr: { + name: 'Flickr', + icon: flickr_FlickrIcon + }, + foursquare: { + name: 'Foursquare', + icon: foursquare_FoursquareIcon + }, + goodreads: { + name: 'Goodreads', + icon: goodreads_GoodreadsIcon + }, + google: { + name: 'Google', + icon: google_GoogleIcon + }, + github: { + name: 'Github', + icon: github_GithubIcon + }, + instagram: { + name: 'Instagram', + icon: instagram_InstagramIcon + }, + lastfm: { + name: 'Last.fm', + icon: lastfm_LastfmIcon + }, + linkedin: { + name: 'Linkedin', + icon: linkedin_LinkedinIcon + }, + mail: { + name: 'Mail', + icon: mail_MailIcon + }, + mastodon: { + name: 'Mastodon', + icon: mastodon_MastodonIcon + }, + meetup: { + name: 'Meetup', + icon: meetup_MeetupIcon + }, + medium: { + name: 'Medium', + icon: medium_MediumIcon + }, + pinterest: { + name: 'Pinterest', + icon: pinterest_PinterestIcon + }, + pocket: { + name: 'Pocket', + icon: pocket_PocketIcon + }, + reddit: { + name: 'Reddit', + icon: reddit_RedditIcon + }, + skype: { + name: 'Skype', + icon: skype_SkypeIcon + }, + snapchat: { + name: 'Snapchat', + icon: snapchat_SnapchatIcon + }, + soundcloud: { + name: 'Soundcloud', + icon: soundcloud_SoundcloudIcon + }, + spotify: { + name: 'Spotify', + icon: spotify_SpotifyIcon + }, + tumblr: { + name: 'Tumblr', + icon: tumblr_TumblrIcon + }, + twitch: { + name: 'Twitch', + icon: twitch_TwitchIcon + }, + twitter: { + name: 'Twitter', + icon: twitter_TwitterIcon + }, + vimeo: { + name: 'Vimeo', + icon: vimeo_VimeoIcon + }, + vk: { + name: 'VK', + icon: vk_VkIcon + }, + wordpress: { + name: 'WordPress', + icon: wordpress_WordPressIcon + }, + yelp: { + name: 'Yelp', + icon: yelp_YelpIcon + }, + youtube: { + name: 'YouTube', + icon: youtube_YoutubeIcon + } +}; +/* harmony default export */ var social_list = (socialList); +var getIconBySite = function getIconBySite(site) { + return socialList[site].icon; +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/edit.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var edit_ALLOWED_BLOCKS = Object.keys(social_list).map(function (site) { + return 'core/social-link-' + site; +}); // Template contains the links that show when start. + +var edit_TEMPLATE = [['core/social-link-wordpress', { + url: 'https://wordpress.org' +}], ['core/social-link-facebook'], ['core/social-link-twitter'], ['core/social-link-instagram'], ['core/social-link-linkedin'], ['core/social-link-youtube']]; +var edit_SocialLinksEdit = function SocialLinksEdit(_ref) { + var className = _ref.className; + return Object(external_this_wp_element_["createElement"])("div", { + className: className + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + allowedBlocks: edit_ALLOWED_BLOCKS, + templateLock: false, + template: edit_TEMPLATE + })); +}; +/* harmony default export */ var social_links_edit = (edit_SocialLinksEdit); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/save.js + + +/** + * WordPress dependencies + */ + +function social_links_save_save(_ref) { + var className = _ref.className; + return Object(external_this_wp_element_["createElement"])("ul", { + className: className + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var social_links_metadata = { + name: "core/social-links", + category: "widgets", + icon: "share", + attributes: {} +}; + +var social_links_name = social_links_metadata.name; + +var social_links_settings = { + title: Object(external_this_wp_i18n_["__"])('Social links'), + description: Object(external_this_wp_i18n_["__"])('Create a block of links to your social media or external sites'), + supports: { + align: ['left', 'center', 'right'] + }, + example: { + innerBlocks: [{ + name: 'core/social-link-wordpress', + attributes: { + url: 'https://wordpress.org' + } + }, { + name: 'core/social-link-facebook', + attributes: { + url: 'https://www.facebook.com/WordPress/' + } + }, { + name: 'core/social-link-twitter', + attributes: { + url: 'https://twitter.com/WordPress' + } + }] + }, + styles: [{ + name: 'default', + label: Object(external_this_wp_i18n_["__"])('Default'), + isDefault: true + }, { + name: 'logos-only', + label: Object(external_this_wp_i18n_["__"])('Logos Only') + }, { + name: 'pill-shape', + label: Object(external_this_wp_i18n_["__"])('Pill Shape') + }], + edit: social_links_edit, + save: social_links_save_save +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/edit.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + isSelected = _ref.isSelected; + var url = attributes.url, + site = attributes.site; + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + showURLPopover = _useState2[0], + setPopover = _useState2[1]; + + var classes = classnames_default()('wp-social-link', 'wp-social-link-' + site, { + 'wp-social-link__is-incomplete': !url + }); // Import icon. + + var IconComponent = getIconBySite(site); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: classes, + onClick: function onClick() { + return setPopover(true); + } + }, Object(external_this_wp_element_["createElement"])(IconComponent, null), isSelected && showURLPopover && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"], { + onClose: function onClose() { + return setPopover(false); + } + }, Object(external_this_wp_element_["createElement"])("form", { + className: "block-editor-url-popover__link-editor", + onSubmit: function onSubmit(event) { + event.preventDefault(); + setPopover(false); + } + }, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-url-input block-editor-url-input" + }, Object(external_this_wp_element_["createElement"])("input", { + type: "text", + value: url, + onChange: function onChange(event) { + return setAttributes({ + url: event.target.value + }); + }, + placeholder: Object(external_this_wp_i18n_["__"])('Enter Address') + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: "editor-break", + label: Object(external_this_wp_i18n_["__"])('Apply'), + type: "submit" + })))); +}; + +/* harmony default export */ var social_link_edit = (edit_SocialLinkEdit); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/index.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var commonAttributes = { + category: 'widgets', + parent: ['core/social-links'], + supports: { + reusable: false, + html: false + }, + edit: social_link_edit +}; // Create individual blocks out of each site in social-list.js + +var sites = Object.keys(social_list).map(function (site) { + var siteParams = social_list[site]; + return { + name: 'core/social-link-' + site, + settings: Object(objectSpread["a" /* default */])({ + title: siteParams.name, + icon: siteParams.icon, + description: Object(external_this_wp_i18n_["__"])('Link to ' + siteParams.name) + }, commonAttributes, { + attributes: { + url: { + type: 'string' + }, + site: { + type: 'string', + default: site + } + } + }) + }; +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerCoreBlocks", function() { return build_module_registerCoreBlocks; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalRegisterExperimentalCoreBlocks", function() { return __experimentalRegisterExperimentalCoreBlocks; }); + + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/** + * Function to register an individual block. + * + * @param {Object} block The block to be registered. + * + */ + +var build_module_registerBlock = function registerBlock(block) { + if (!block) { + return; + } + + var metadata = block.metadata, + settings = block.settings, + name = block.name; + + if (metadata) { + Object(external_this_wp_blocks_["unstable__bootstrapServerSideBlockDefinitions"])(Object(defineProperty["a" /* default */])({}, name, metadata)); + } + + Object(external_this_wp_blocks_["registerBlockType"])(name, settings); +}; +/** + * Function to register core blocks provided by the block editor. + * + * @example + * ```js + * import { registerCoreBlocks } from '@wordpress/block-library'; + * + * registerCoreBlocks(); + * ``` + */ + + +var build_module_registerCoreBlocks = function registerCoreBlocks() { + [// Common blocks are grouped at the top to prioritize their display + // in various contexts — like the inserter and auto-complete components. + paragraph_namespaceObject, image_namespaceObject, heading_namespaceObject, gallery_namespaceObject, list_namespaceObject, quote_namespaceObject, // Register all remaining core blocks. + shortcode_namespaceObject, archives_namespaceObject, audio_namespaceObject, button_namespaceObject, calendar_namespaceObject, categories_namespaceObject, code_namespaceObject, columns_namespaceObject, column_namespaceObject, cover_namespaceObject, embed_namespaceObject].concat(Object(toConsumableArray["a" /* default */])(embed_common), Object(toConsumableArray["a" /* default */])(embed_others), [file_namespaceObject, group_namespaceObject, window.wp && window.wp.oldEditor ? classic_namespaceObject : null, // Only add the classic block in WP Context + html_namespaceObject, media_text_namespaceObject, latest_comments_namespaceObject, latest_posts_namespaceObject, missing_namespaceObject, more_namespaceObject, nextpage_namespaceObject, preformatted_namespaceObject, pullquote_namespaceObject, rss_namespaceObject, search_namespaceObject, separator_namespaceObject, block_namespaceObject, spacer_namespaceObject, subhead_namespaceObject, table_namespaceObject, tag_cloud_namespaceObject, text_columns_namespaceObject, verse_namespaceObject, video_namespaceObject]).forEach(build_module_registerBlock); + Object(external_this_wp_blocks_["setDefaultBlockName"])(paragraph_name); + + if (window.wp && window.wp.oldEditor) { + Object(external_this_wp_blocks_["setFreeformContentHandlerName"])(classic_name); + } + + Object(external_this_wp_blocks_["setUnregisteredTypeHandlerName"])(missing_name); + + if (group_namespaceObject) { + Object(external_this_wp_blocks_["setGroupingBlockName"])(group_name); + } +}; +/** + * Function to register experimental core blocks depending on editor settings. + * + * @param {Object} settings Editor settings. + * + * @example + * ```js + * import { __experimentalRegisterExperimentalCoreBlocks } from '@wordpress/block-library'; + * + * __experimentalRegisterExperimentalCoreBlocks( settings ); + * ``` + */ + +var __experimentalRegisterExperimentalCoreBlocks = false ? undefined : undefined; + + +/***/ }), + +/***/ 32: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["apiFetch"]; }()); /***/ }), -/* 33 */, -/* 34 */, -/* 35 */ + +/***/ 35: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["blob"]; }()); /***/ }), -/* 36 */, -/* 37 */ + +/***/ 37: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["deprecated"]; }()); /***/ }), -/* 38 */ + +/***/ 38: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -594,7 +22482,8 @@ function _arrayWithHoles(arr) { } /***/ }), -/* 39 */ + +/***/ 39: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -604,173 +22493,29 @@ function _nonIterableRest() { } /***/ }), -/* 40 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return embedContentIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return embedAudioIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return embedPhotoIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return embedVideoIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return embedTwitterIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return embedYouTubeIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return embedFacebookIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return embedInstagramIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return embedWordPressIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return embedSpotifyIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return embedFlickrIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return embedVimeoIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return embedRedditIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return embedTumbrIcon; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return embedAmazonIcon; }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -var embedContentIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z" -})); -var embedAudioIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z" -})); -var embedPhotoIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z" -}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Polygon"], { - points: "14.5 11 11 15.51 8.5 12.5 5 17 19 17" -})); -var embedVideoIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z" -})); -var embedTwitterIcon = { - foreground: '#1da1f2', - src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z" - }))) -}; -var embedYouTubeIcon = { - foreground: '#ff0000', - src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24" - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z" - })) -}; -var embedFacebookIcon = { - foreground: '#3b5998', - src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24" - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z" - })) -}; -var embedInstagramIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z" -}))); -var embedWordPressIcon = { - foreground: '#0073AA', - src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24" - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z" - }))) -}; -var embedSpotifyIcon = { - foreground: '#1db954', - src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24" - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325" - })) -}; -var embedFlickrIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z" -})); -var embedVimeoIcon = { - foreground: '#1ab7ea', - src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z" - }))) -}; -var embedRedditIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z" -})); -var embedTumbrIcon = { - foreground: '#35465c', - src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24" - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z" - })) -}; -var embedAmazonIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { - viewBox: "0 0 24 24" -}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z" -}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z" -}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { - d: "M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z" -})); +/***/ 4: +/***/ (function(module, exports) { +(function() { module.exports = this["wp"]["data"]; }()); /***/ }), -/* 41 */ + +/***/ 40: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["isShallowEqual"]; }()); /***/ }), -/* 42 */, -/* 43 */ + +/***/ 42: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["viewport"]; }()); /***/ }), -/* 44 */, -/* 45 */ + +/***/ 44: /***/ (function(module, exports, __webpack_require__) { module.exports = function memize( fn, options ) { @@ -887,15 +22632,15 @@ module.exports = function memize( fn, options ) { /***/ }), -/* 46 */ + +/***/ 45: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["a11y"]; }()); /***/ }), -/* 47 */, -/* 48 */, -/* 49 */ + +/***/ 48: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 @@ -2095,506 +23840,44 @@ else {} /***/ }), -/* 50 */, -/* 51 */, -/* 52 */, -/* 53 */, -/* 54 */, -/* 55 */ + +/***/ 5: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +/***/ }), + +/***/ 53: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["serverSideRender"]; }()); /***/ }), -/* 56 */ + +/***/ 54: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["date"]; }()); /***/ }), -/* 57 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getColumnsTemplate; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return toWidthPrecision; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getAdjacentBlocks; }); -/* unused harmony export getEffectiveColumnWidth */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getTotalColumnsWidth; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getColumnWidths; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getRedistributedColumnWidths; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return hasExplicitColumnWidths; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getMappedColumnWidths; }); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); -/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45); -/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(memize__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); - - -/** - * External dependencies - */ - - -/** - * Returns the layouts configuration for a given number of columns. - * - * @param {number} columns Number of columns. - * - * @return {Object[]} Columns layout configuration. - */ - -var getColumnsTemplate = memize__WEBPACK_IMPORTED_MODULE_1___default()(function (columns) { - if (columns === undefined) { - return null; - } - - return Object(lodash__WEBPACK_IMPORTED_MODULE_2__["times"])(columns, function () { - return ['core/column']; - }); -}); -/** - * Returns a column width attribute value rounded to standard precision. - * Returns `undefined` if the value is not a valid finite number. - * - * @param {?number} value Raw value. - * - * @return {number} Value rounded to standard precision. - */ - -var toWidthPrecision = function toWidthPrecision(value) { - return Number.isFinite(value) ? parseFloat(value.toFixed(2)) : undefined; -}; -/** - * Returns the considered adjacent to that of the specified `clientId` for - * resizing consideration. Adjacent blocks are those occurring after, except - * when the given block is the last block in the set. For the last block, the - * behavior is reversed. - * - * @param {WPBlock[]} blocks Block objects. - * @param {string} clientId Client ID to consider for adjacent blocks. - * - * @return {WPBlock[]} Adjacent block objects. - */ - -function getAdjacentBlocks(blocks, clientId) { - var index = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["findIndex"])(blocks, { - clientId: clientId - }); - var isLastBlock = index === blocks.length - 1; - return isLastBlock ? blocks.slice(0, index) : blocks.slice(index + 1); -} -/** - * Returns an effective width for a given block. An effective width is equal to - * its attribute value if set, or a computed value assuming equal distribution. - * - * @param {WPBlock} block Block object. - * @param {number} totalBlockCount Total number of blocks in Columns. - * - * @return {number} Effective column width. - */ - -function getEffectiveColumnWidth(block, totalBlockCount) { - var _block$attributes$wid = block.attributes.width, - width = _block$attributes$wid === void 0 ? 100 / totalBlockCount : _block$attributes$wid; - return toWidthPrecision(width); -} -/** - * Returns the total width occupied by the given set of column blocks. - * - * @param {WPBlock[]} blocks Block objects. - * @param {?number} totalBlockCount Total number of blocks in Columns. - * Defaults to number of blocks passed. - * - * @return {number} Total width occupied by blocks. - */ - -function getTotalColumnsWidth(blocks) { - var totalBlockCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : blocks.length; - return Object(lodash__WEBPACK_IMPORTED_MODULE_2__["sumBy"])(blocks, function (block) { - return getEffectiveColumnWidth(block, totalBlockCount); - }); -} -/** - * Returns an object of `clientId` → `width` of effective column widths. - * - * @param {WPBlock[]} blocks Block objects. - * @param {?number} totalBlockCount Total number of blocks in Columns. - * Defaults to number of blocks passed. - * - * @return {Object} Column widths. - */ - -function getColumnWidths(blocks) { - var totalBlockCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : blocks.length; - return blocks.reduce(function (result, block) { - var width = getEffectiveColumnWidth(block, totalBlockCount); - return Object.assign(result, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, block.clientId, width)); - }, {}); -} -/** - * Returns an object of `clientId` → `width` of column widths as redistributed - * proportional to their current widths, constrained or expanded to fit within - * the given available width. - * - * @param {WPBlock[]} blocks Block objects. - * @param {number} availableWidth Maximum width to fit within. - * @param {?number} totalBlockCount Total number of blocks in Columns. - * Defaults to number of blocks passed. - * - * @return {Object} Redistributed column widths. - */ - -function getRedistributedColumnWidths(blocks, availableWidth) { - var totalBlockCount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : blocks.length; - var totalWidth = getTotalColumnsWidth(blocks, totalBlockCount); - var difference = availableWidth - totalWidth; - var adjustment = difference / blocks.length; - return Object(lodash__WEBPACK_IMPORTED_MODULE_2__["mapValues"])(getColumnWidths(blocks, totalBlockCount), function (width) { - return toWidthPrecision(width + adjustment); - }); -} -/** - * Returns true if column blocks within the provided set are assigned with - * explicit widths, or false otherwise. - * - * @param {WPBlock[]} blocks Block objects. - * - * @return {boolean} Whether columns have explicit widths. - */ - -function hasExplicitColumnWidths(blocks) { - return blocks.some(function (block) { - return Number.isFinite(block.attributes.width); - }); -} -/** - * Returns a copy of the given set of blocks with new widths assigned from the - * provided object of redistributed column widths. - * - * @param {WPBlock[]} blocks Block objects. - * @param {Object} widths Redistributed column widths. - * - * @return {WPBlock[]} blocks Mapped block objects. - */ - -function getMappedColumnWidths(blocks, widths) { - return blocks.map(function (block) { - return Object(lodash__WEBPACK_IMPORTED_MODULE_2__["merge"])({}, block, { - attributes: { - width: widths[block.clientId] - } - }); - }); -} +/***/ 6: +/***/ (function(module, exports) { +(function() { module.exports = this["wp"]["blockEditor"]; }()); /***/ }), -/* 58 */, -/* 59 */, -/* 60 */, -/* 61 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* unused harmony export matchesPatterns */ -/* unused harmony export findBlock */ -/* unused harmony export isFromWordPress */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getPhotoHtml; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createUpgradedEmbedBlock; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getClassNames; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return fallback; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getAttributesFromPreview; }); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); -/* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _core_embeds__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89); -/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var classnames_dedupe__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(73); -/* harmony import */ var classnames_dedupe__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames_dedupe__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(45); -/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(memize__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_9__); - - - - - -/** - * Internal dependencies - */ - - -/** - * External dependencies - */ - - - - -/** - * WordPress dependencies - */ - - - -/** - * Returns true if any of the regular expressions match the URL. - * - * @param {string} url The URL to test. - * @param {Array} patterns The list of regular expressions to test agains. - * @return {boolean} True if any of the regular expressions match the URL. - */ - -var matchesPatterns = function matchesPatterns(url) { - var patterns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - return patterns.some(function (pattern) { - return url.match(pattern); - }); -}; -/** - * Finds the block name that should be used for the URL, based on the - * structure of the URL. - * - * @param {string} url The URL to test. - * @return {string} The name of the block that should be used for this URL, e.g. core-embed/twitter - */ - -var findBlock = function findBlock(url) { - for (var _i = 0, _arr = [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_core_embeds__WEBPACK_IMPORTED_MODULE_4__[/* common */ "a"]), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_core_embeds__WEBPACK_IMPORTED_MODULE_4__[/* others */ "b"])); _i < _arr.length; _i++) { - var block = _arr[_i]; - - if (matchesPatterns(url, block.patterns)) { - return block.name; - } - } - - return _constants__WEBPACK_IMPORTED_MODULE_5__[/* DEFAULT_EMBED_BLOCK */ "b"]; -}; -var isFromWordPress = function isFromWordPress(html) { - return Object(lodash__WEBPACK_IMPORTED_MODULE_6__["includes"])(html, 'class="wp-embedded-content"'); -}; -var getPhotoHtml = function getPhotoHtml(photo) { - // 100% width for the preview so it fits nicely into the document, some "thumbnails" are - // actually the full size photo. If thumbnails not found, use full image. - var imageUrl = photo.thumbnail_url ? photo.thumbnail_url : photo.url; - var photoPreview = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("p", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("img", { - src: imageUrl, - alt: photo.title, - width: "100%" - })); - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["renderToString"])(photoPreview); -}; -/** - * Creates a more suitable embed block based on the passed in props - * and attributes generated from an embed block's preview. - * - * We require `attributesFromPreview` to be generated from the latest attributes - * and preview, and because of the way the react lifecycle operates, we can't - * guarantee that the attributes contained in the block's props are the latest - * versions, so we require that these are generated separately. - * See `getAttributesFromPreview` in the generated embed edit component. - * - * @param {Object} props The block's props. - * @param {Object} attributesFromPreview Attributes generated from the block's most up to date preview. - * @return {Object|undefined} A more suitable embed block if one exists. - */ - -var createUpgradedEmbedBlock = function createUpgradedEmbedBlock(props, attributesFromPreview) { - var preview = props.preview, - name = props.name; - var url = props.attributes.url; - - if (!url) { - return; - } - - var matchingBlock = findBlock(url); - - if (!Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_9__["getBlockType"])(matchingBlock)) { - return; - } // WordPress blocks can work on multiple sites, and so don't have patterns, - // so if we're in a WordPress block, assume the user has chosen it for a WordPress URL. - - - if (_constants__WEBPACK_IMPORTED_MODULE_5__[/* WORDPRESS_EMBED_BLOCK */ "d"] !== name && _constants__WEBPACK_IMPORTED_MODULE_5__[/* DEFAULT_EMBED_BLOCK */ "b"] !== matchingBlock) { - // At this point, we have discovered a more suitable block for this url, so transform it. - if (name !== matchingBlock) { - return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_9__["createBlock"])(matchingBlock, { - url: url - }); - } - } - - if (preview) { - var html = preview.html; // We can't match the URL for WordPress embeds, we have to check the HTML instead. - - if (isFromWordPress(html)) { - // If this is not the WordPress embed block, transform it into one. - if (_constants__WEBPACK_IMPORTED_MODULE_5__[/* WORDPRESS_EMBED_BLOCK */ "d"] !== name) { - return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_9__["createBlock"])(_constants__WEBPACK_IMPORTED_MODULE_5__[/* WORDPRESS_EMBED_BLOCK */ "d"], Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({ - url: url - }, attributesFromPreview)); - } - } - } -}; -/** - * Returns class names with any relevant responsive aspect ratio names. - * - * @param {string} html The preview HTML that possibly contains an iframe with width and height set. - * @param {string} existingClassNames Any existing class names. - * @param {boolean} allowResponsive If the responsive class names should be added, or removed. - * @return {string} Deduped class names. - */ - -function getClassNames(html) { - var existingClassNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - var allowResponsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - - if (!allowResponsive) { - // Remove all of the aspect ratio related class names. - var aspectRatioClassNames = { - 'wp-has-aspect-ratio': false - }; - - for (var ratioIndex = 0; ratioIndex < _constants__WEBPACK_IMPORTED_MODULE_5__[/* ASPECT_RATIOS */ "a"].length; ratioIndex++) { - var aspectRatioToRemove = _constants__WEBPACK_IMPORTED_MODULE_5__[/* ASPECT_RATIOS */ "a"][ratioIndex]; - aspectRatioClassNames[aspectRatioToRemove.className] = false; - } - - return classnames_dedupe__WEBPACK_IMPORTED_MODULE_7___default()(existingClassNames, aspectRatioClassNames); - } - - var previewDocument = document.implementation.createHTMLDocument(''); - previewDocument.body.innerHTML = html; - var iframe = previewDocument.body.querySelector('iframe'); // If we have a fixed aspect iframe, and it's a responsive embed block. - - if (iframe && iframe.height && iframe.width) { - var aspectRatio = (iframe.width / iframe.height).toFixed(2); // Given the actual aspect ratio, find the widest ratio to support it. - - for (var _ratioIndex = 0; _ratioIndex < _constants__WEBPACK_IMPORTED_MODULE_5__[/* ASPECT_RATIOS */ "a"].length; _ratioIndex++) { - var potentialRatio = _constants__WEBPACK_IMPORTED_MODULE_5__[/* ASPECT_RATIOS */ "a"][_ratioIndex]; - - if (aspectRatio >= potentialRatio.ratio) { - var _classnames; - - return classnames_dedupe__WEBPACK_IMPORTED_MODULE_7___default()(existingClassNames, (_classnames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classnames, potentialRatio.className, allowResponsive), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classnames, 'wp-has-aspect-ratio', allowResponsive), _classnames)); - } - } - } - - return existingClassNames; -} -/** - * Fallback behaviour for unembeddable URLs. - * Creates a paragraph block containing a link to the URL, and calls `onReplace`. - * - * @param {string} url The URL that could not be embedded. - * @param {Function} onReplace Function to call with the created fallback block. - */ - -function fallback(url, onReplace) { - var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("a", { - href: url - }, url); - onReplace(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_9__["createBlock"])('core/paragraph', { - content: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["renderToString"])(link) - })); -} -/*** - * Gets block attributes based on the preview and responsive state. - * - * @param {Object} preview The preview data. - * @param {string} title The block's title, e.g. Twitter. - * @param {Object} currentClassNames The block's current class names. - * @param {boolean} isResponsive Boolean indicating if the block supports responsive content. - * @param {boolean} allowResponsive Apply responsive classes to fixed size content. - * @return {Object} Attributes and values. - */ - -var getAttributesFromPreview = memize__WEBPACK_IMPORTED_MODULE_8___default()(function (preview, title, currentClassNames, isResponsive) { - var allowResponsive = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; - - if (!preview) { - return {}; - } - - var attributes = {}; // Some plugins only return HTML with no type info, so default this to 'rich'. - - var _preview$type = preview.type, - type = _preview$type === void 0 ? 'rich' : _preview$type; // If we got a provider name from the API, use it for the slug, otherwise we use the title, - // because not all embed code gives us a provider name. - - var html = preview.html, - providerName = preview.provider_name; - var providerNameSlug = Object(lodash__WEBPACK_IMPORTED_MODULE_6__["kebabCase"])(Object(lodash__WEBPACK_IMPORTED_MODULE_6__["toLower"])('' !== providerName ? providerName : title)); - - if (isFromWordPress(html)) { - type = 'wp-embed'; - } - - if (html || 'photo' === type) { - attributes.type = type; - attributes.providerNameSlug = providerNameSlug; - } - - attributes.className = getClassNames(html, currentClassNames, isResponsive && allowResponsive); - return attributes; -}); - - -/***/ }), -/* 62 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return HOSTS_NO_PREVIEWS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ASPECT_RATIOS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return DEFAULT_EMBED_BLOCK; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return WORDPRESS_EMBED_BLOCK; }); -// These embeds do not work in sandboxes due to the iframe's security restrictions. -var HOSTS_NO_PREVIEWS = ['facebook.com', 'smugmug.com']; -var ASPECT_RATIOS = [// Common video resolutions. -{ - ratio: '2.33', - className: 'wp-embed-aspect-21-9' -}, { - ratio: '2.00', - className: 'wp-embed-aspect-18-9' -}, { - ratio: '1.78', - className: 'wp-embed-aspect-16-9' -}, { - ratio: '1.33', - className: 'wp-embed-aspect-4-3' -}, // Vertical video and instagram square video support. -{ - ratio: '1.00', - className: 'wp-embed-aspect-1-1' -}, { - ratio: '0.56', - className: 'wp-embed-aspect-9-16' -}, { - ratio: '0.50', - className: 'wp-embed-aspect-1-2' -}]; -var DEFAULT_EMBED_BLOCK = 'core/embed'; -var WORDPRESS_EMBED_BLOCK = 'core-embed/wordpress'; - - -/***/ }), -/* 63 */, -/* 64 */, -/* 65 */, -/* 66 */, -/* 67 */ +/***/ 61: /***/ (function(module, exports) { var g; @@ -2620,17 +23903,15 @@ module.exports = g; /***/ }), -/* 68 */, -/* 69 */, -/* 70 */, -/* 71 */, -/* 72 */ + +/***/ 66: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["autop"]; }()); /***/ }), -/* 73 */ + +/***/ 67: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -2745,945 +24026,36 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), -/* 74 */, -/* 75 */, -/* 76 */, -/* 77 */, -/* 78 */, -/* 79 */, -/* 80 */ + +/***/ 7: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/amazon.js - - -/** - * WordPress dependencies - */ - -var amazon_AmazonIcon = function AmazonIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/bandcamp.js - - -/** - * WordPress dependencies - */ - -var bandcamp_BandcampIcon = function BandcampIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/behance.js - - -/** - * WordPress dependencies - */ - -var behance_BehanceIcon = function BehanceIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/chain.js - - -/** - * WordPress dependencies - */ - -var chain_ChainIcon = function ChainIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/codepen.js - - -/** - * WordPress dependencies - */ - -var codepen_CodepenIcon = function CodepenIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/deviantart.js - - -/** - * WordPress dependencies - */ - -var deviantart_DeviantartIcon = function DeviantartIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/dribbble.js - - -/** - * WordPress dependencies - */ - -var dribbble_DribbbleIcon = function DribbbleIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/dropbox.js - - -/** - * WordPress dependencies - */ - -var dropbox_DropboxIcon = function DropboxIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/etsy.js - - -/** - * WordPress dependencies - */ - -var etsy_EtsyIcon = function EtsyIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/facebook.js - - -/** - * WordPress dependencies - */ - -var facebook_FacebookIcon = function FacebookIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/feed.js - - -/** - * WordPress dependencies - */ - -var feed_FeedIcon = function FeedIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/fivehundredpx.js - - -/** - * WordPress dependencies - */ - -var fivehundredpx_FivehundredpxIcon = function FivehundredpxIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/flickr.js - - -/** - * WordPress dependencies - */ - -var flickr_FlickrIcon = function FlickrIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/foursquare.js - - -/** - * WordPress dependencies - */ - -var foursquare_FoursquareIcon = function FoursquareIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/goodreads.js - - -/** - * WordPress dependencies - */ - -var goodreads_GoodreadsIcon = function GoodreadsIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/google.js - - -/** - * WordPress dependencies - */ - -var google_GoogleIcon = function GoogleIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/github.js - - -/** - * WordPress dependencies - */ - -var github_GithubIcon = function GithubIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/instagram.js - - -/** - * WordPress dependencies - */ - -var instagram_InstagramIcon = function InstagramIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/lastfm.js - - -/** - * WordPress dependencies - */ - -var lastfm_LastfmIcon = function LastfmIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M10.5002,0 C4.7006,0 0,4.70109753 0,10.4998496 C0,16.2989526 4.7006,21 10.5002,21 C16.299,21 21,16.2989526 21,10.4998496 C21,4.70109753 16.299,0 10.5002,0 Z M14.69735,14.7204413 C13.3164,14.7151781 12.4346,14.0870017 11.83445,12.6859357 L11.6816001,12.3451305 L10.35405,9.31011397 C9.92709997,8.26875064 8.85260001,7.57120012 7.68010001,7.57120012 C6.06945001,7.57120012 4.75925001,8.88509738 4.75925001,10.5009524 C4.75925001,12.1164565 6.06945001,13.4303036 7.68010001,13.4303036 C8.77200001,13.4303036 9.76514999,12.827541 10.2719501,11.8567047 C10.2893,11.8235214 10.3239,11.8019673 10.36305,11.8038219 C10.4007,11.8053759 10.43535,11.8287847 10.4504,11.8631709 L10.98655,13.1045863 C11.0016,13.1389726 10.9956,13.17782 10.97225,13.2068931 C10.1605001,14.1995341 8.96020001,14.7683115 7.68010001,14.7683115 C5.33305,14.7683115 3.42340001,12.8535563 3.42340001,10.5009524 C3.42340001,8.14679459 5.33300001,6.23203946 7.68010001,6.23203946 C9.45720002,6.23203946 10.8909,7.19074535 11.6138,8.86359341 C11.6205501,8.88018505 12.3412,10.5707777 12.97445,12.0190621 C13.34865,12.8739575 13.64615,13.3959676 14.6288,13.4291508 C15.5663001,13.4612814 16.25375,12.9121534 16.25375,12.1484869 C16.25375,11.4691321 15.8320501,11.3003585 14.8803,10.98216 C13.2365,10.4397989 12.34495,9.88605929 12.34495,8.51817658 C12.34495,7.1809207 13.26665,6.31615054 14.692,6.31615054 C15.62875,6.31615054 16.3155,6.7286858 16.79215,7.5768142 C16.80495,7.60062396 16.8079001,7.62814302 16.8004001,7.65420843 C16.7929,7.68027384 16.7748,7.70212868 16.7507001,7.713808 L15.86145,8.16900031 C15.8178001,8.19200805 15.7643,8.17807308 15.73565,8.13847371 C15.43295,7.71345711 15.0956,7.52513451 14.6423,7.52513451 C14.05125,7.52513451 13.6220001,7.92899802 13.6220001,8.48649708 C13.6220001,9.17382194 14.1529001,9.34144259 15.0339,9.61923972 C15.14915,9.65578139 15.26955,9.69397731 15.39385,9.73432853 C16.7763,10.1865133 17.57675,10.7311301 17.57675,12.1836251 C17.57685,13.629654 16.3389,14.7204413 14.69735,14.7204413 Z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/linkedin.js - - -/** - * WordPress dependencies - */ - -var linkedin_LinkedinIcon = function LinkedinIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/mail.js - - -/** - * WordPress dependencies - */ - -var mail_MailIcon = function MailIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/mastodon.js - - -/** - * WordPress dependencies - */ - -var mastodon_MastodonIcon = function MastodonIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/meetup.js - - -/** - * WordPress dependencies - */ - -var meetup_MeetupIcon = function MeetupIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/medium.js - - -/** - * WordPress dependencies - */ - -var medium_MediumIcon = function MediumIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/pinterest.js - - -/** - * WordPress dependencies - */ - -var pinterest_PinterestIcon = function PinterestIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/pocket.js - - -/** - * WordPress dependencies - */ - -var pocket_PocketIcon = function PocketIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/reddit.js - - -/** - * WordPress dependencies - */ - -var reddit_RedditIcon = function RedditIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/skype.js - - -/** - * WordPress dependencies - */ - -var skype_SkypeIcon = function SkypeIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/snapchat.js - - -/** - * WordPress dependencies - */ - -var snapchat_SnapchatIcon = function SnapchatIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/soundcloud.js - - -/** - * WordPress dependencies - */ - -var soundcloud_SoundcloudIcon = function SoundcloudIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/spotify.js - - -/** - * WordPress dependencies - */ - -var spotify_SpotifyIcon = function SpotifyIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/tumblr.js - - -/** - * WordPress dependencies - */ - -var tumblr_TumblrIcon = function TumblrIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M16.749,17.396c-0.357,0.17-1.041,0.319-1.551,0.332c-1.539,0.041-1.837-1.081-1.85-1.896V9.847h3.861V6.937h-3.847V2.039 c0,0-2.77,0-2.817,0c-0.046,0-0.127,0.041-0.138,0.144c-0.165,1.499-0.867,4.13-3.783,5.181v2.484h1.945v6.282 c0,2.151,1.587,5.206,5.775,5.135c1.413-0.024,2.982-0.616,3.329-1.126L16.749,17.396z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/twitch.js - - -/** - * WordPress dependencies - */ - -var twitch_TwitchIcon = function TwitchIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/twitter.js - - -/** - * WordPress dependencies - */ - -var twitter_TwitterIcon = function TwitterIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/vimeo.js - - -/** - * WordPress dependencies - */ - -var vimeo_VimeoIcon = function VimeoIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/vk.js - - -/** - * WordPress dependencies - */ - -var vk_VkIcon = function VkIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/wordpress.js - - -/** - * WordPress dependencies - */ - -var wordpress_WordPressIcon = function WordPressIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/yelp.js - - -/** - * WordPress dependencies - */ - -var yelp_YelpIcon = function YelpIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/youtube.js - - -/** - * WordPress dependencies - */ - -var youtube_YoutubeIcon = function YoutubeIcon() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - version: "1.1" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z" - })); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/index.js - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/social-list.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getIconBySite; }); -/** - * Internal dependencies - */ - -var socialList = { - fivehundredpx: { - name: '500px', - icon: fivehundredpx_FivehundredpxIcon - }, - amazon: { - name: 'Amazon', - icon: amazon_AmazonIcon - }, - bandcamp: { - name: 'Bandcamp', - icon: bandcamp_BandcampIcon - }, - behance: { - name: 'Behance', - icon: behance_BehanceIcon - }, - chain: { - name: 'Link', - icon: chain_ChainIcon - }, - codepen: { - name: 'CodePen', - icon: codepen_CodepenIcon - }, - deviantart: { - name: 'DeviantArt', - icon: deviantart_DeviantartIcon - }, - dribbble: { - name: 'Dribbble', - icon: dribbble_DribbbleIcon - }, - dropbox: { - name: 'Dropbox', - icon: dropbox_DropboxIcon - }, - etsy: { - name: 'Etsy', - icon: etsy_EtsyIcon - }, - facebook: { - name: 'Facebook', - icon: facebook_FacebookIcon - }, - feed: { - name: 'RSS Feed', - icon: feed_FeedIcon - }, - flickr: { - name: 'Flickr', - icon: flickr_FlickrIcon - }, - foursquare: { - name: 'Foursquare', - icon: foursquare_FoursquareIcon - }, - goodreads: { - name: 'Goodreads', - icon: goodreads_GoodreadsIcon - }, - google: { - name: 'Google', - icon: google_GoogleIcon - }, - github: { - name: 'Github', - icon: github_GithubIcon - }, - instagram: { - name: 'Instagram', - icon: instagram_InstagramIcon - }, - lastfm: { - name: 'Last.fm', - icon: lastfm_LastfmIcon - }, - linkedin: { - name: 'Linkedin', - icon: linkedin_LinkedinIcon - }, - mail: { - name: 'Mail', - icon: mail_MailIcon - }, - mastodon: { - name: 'Mastodon', - icon: mastodon_MastodonIcon - }, - meetup: { - name: 'Meetup', - icon: meetup_MeetupIcon - }, - medium: { - name: 'Medium', - icon: medium_MediumIcon - }, - pinterest: { - name: 'Pinterest', - icon: pinterest_PinterestIcon - }, - pocket: { - name: 'Pocket', - icon: pocket_PocketIcon - }, - reddit: { - name: 'Reddit', - icon: reddit_RedditIcon - }, - skype: { - name: 'Skype', - icon: skype_SkypeIcon - }, - snapchat: { - name: 'Snapchat', - icon: snapchat_SnapchatIcon - }, - soundcloud: { - name: 'Soundcloud', - icon: soundcloud_SoundcloudIcon - }, - spotify: { - name: 'Spotify', - icon: spotify_SpotifyIcon - }, - tumblr: { - name: 'Tumblr', - icon: tumblr_TumblrIcon - }, - twitch: { - name: 'Twitch', - icon: twitch_TwitchIcon - }, - twitter: { - name: 'Twitter', - icon: twitter_TwitterIcon - }, - vimeo: { - name: 'Vimeo', - icon: vimeo_VimeoIcon - }, - vk: { - name: 'VK', - icon: vk_VkIcon - }, - wordpress: { - name: 'WordPress', - icon: wordpress_WordPressIcon - }, - yelp: { - name: 'Yelp', - icon: yelp_YelpIcon - }, - youtube: { - name: 'YouTube', - icon: youtube_YoutubeIcon +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); } -}; -/* harmony default export */ var social_list = __webpack_exports__["a"] = (socialList); -var getIconBySite = function getIconBySite(site) { - return socialList[site].icon; -}; + return target; +} /***/ }), -/* 81 */, -/* 82 */, -/* 83 */, -/* 84 */, -/* 85 */, -/* 86 */, -/* 87 */ + +/***/ 79: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3710,8 +24082,8 @@ var getIconBySite = function getIconBySite(site) { -var punycode = __webpack_require__(140); -var util = __webpack_require__(142); +var punycode = __webpack_require__(117); +var util = __webpack_require__(119); exports.parse = urlParse; exports.resolve = urlResolve; @@ -3786,7 +24158,7 @@ var protocolPattern = /^([a-z0-9.+-]+:)/i, 'gopher:': true, 'file:': true }, - querystring = __webpack_require__(143); + querystring = __webpack_require__(120); function urlParse(url, parseQueryString, slashesDenoteHost) { if (url && util.isObject(url) && url instanceof Url) return url; @@ -4422,22677 +24794,26 @@ Url.prototype.parseHost = function() { /***/ }), -/* 88 */, -/* 89 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return common; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return others; }); -/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__); -/** - * Internal dependencies - */ - -/** - * WordPress dependencies - */ - - - -var common = [{ - name: 'core-embed/twitter', - settings: { - title: 'Twitter', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedTwitterIcon */ "k"], - keywords: ['tweet'], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a tweet.') - }, - patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i] -}, { - name: 'core-embed/youtube', - settings: { - title: 'YouTube', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedYouTubeIcon */ "o"], - keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a YouTube video.') - }, - patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i] -}, { - name: 'core-embed/facebook', - settings: { - title: 'Facebook', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedFacebookIcon */ "d"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Facebook post.') - }, - patterns: [/^https?:\/\/www\.facebook.com\/.+/i] -}, { - name: 'core-embed/instagram', - settings: { - title: 'Instagram', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedInstagramIcon */ "f"], - keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('image')], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed an Instagram post.') - }, - patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i] -}, { - name: 'core-embed/wordpress', - settings: { - title: 'WordPress', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedWordPressIcon */ "n"], - keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('post'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('blog')], - responsive: false, - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a WordPress post.') - } -}, { - name: 'core-embed/soundcloud', - settings: { - title: 'SoundCloud', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedAudioIcon */ "b"], - keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed SoundCloud content.') - }, - patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i] -}, { - name: 'core-embed/spotify', - settings: { - title: 'Spotify', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedSpotifyIcon */ "i"], - keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Spotify content.') - }, - patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i] -}, { - name: 'core-embed/flickr', - settings: { - title: 'Flickr', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedFlickrIcon */ "e"], - keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('image')], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Flickr content.') - }, - patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i] -}, { - name: 'core-embed/vimeo', - settings: { - title: 'Vimeo', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVimeoIcon */ "m"], - keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Vimeo video.') - }, - patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i] -}]; -var others = [{ - name: 'core-embed/animoto', - settings: { - title: 'Animoto', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed an Animoto video.') - }, - patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i] -}, { - name: 'core-embed/cloudup', - settings: { - title: 'Cloudup', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Cloudup content.') - }, - patterns: [/^https?:\/\/cloudup\.com\/.+/i] -}, { - name: 'core-embed/collegehumor', - settings: { - title: 'CollegeHumor', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed CollegeHumor content.') - }, - patterns: [/^https?:\/\/(www\.)?collegehumor\.com\/.+/i] -}, { - name: 'core-embed/crowdsignal', - settings: { - title: 'Crowdsignal', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], - keywords: ['polldaddy'], - transform: [{ - type: 'block', - blocks: ['core-embed/polldaddy'], - transform: function transform(content) { - return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core-embed/crowdsignal', { - content: content - }); - } - }], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Crowdsignal (formerly Polldaddy) content.') - }, - patterns: [/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i] -}, { - name: 'core-embed/dailymotion', - settings: { - title: 'Dailymotion', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Dailymotion video.') - }, - patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i] -}, { - name: 'core-embed/hulu', - settings: { - title: 'Hulu', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Hulu content.') - }, - patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i] -}, { - name: 'core-embed/imgur', - settings: { - title: 'Imgur', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedPhotoIcon */ "g"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Imgur content.') - }, - patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i] -}, { - name: 'core-embed/issuu', - settings: { - title: 'Issuu', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Issuu content.') - }, - patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i] -}, { - name: 'core-embed/kickstarter', - settings: { - title: 'Kickstarter', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Kickstarter content.') - }, - patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i] -}, { - name: 'core-embed/meetup-com', - settings: { - title: 'Meetup.com', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Meetup.com content.') - }, - patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i] -}, { - name: 'core-embed/mixcloud', - settings: { - title: 'Mixcloud', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedAudioIcon */ "b"], - keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Mixcloud content.') - }, - patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i] -}, { - // Deprecated in favour of the core-embed/crowdsignal block - name: 'core-embed/polldaddy', - settings: { - title: 'Polldaddy', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Polldaddy content.'), - supports: { - inserter: false - } - }, - patterns: [] -}, { - name: 'core-embed/reddit', - settings: { - title: 'Reddit', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedRedditIcon */ "h"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Reddit thread.') - }, - patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i] -}, { - name: 'core-embed/reverbnation', - settings: { - title: 'ReverbNation', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedAudioIcon */ "b"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed ReverbNation content.') - }, - patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i] -}, { - name: 'core-embed/screencast', - settings: { - title: 'Screencast', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Screencast content.') - }, - patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i] -}, { - name: 'core-embed/scribd', - settings: { - title: 'Scribd', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Scribd content.') - }, - patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i] -}, { - name: 'core-embed/slideshare', - settings: { - title: 'Slideshare', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Slideshare content.') - }, - patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i] -}, { - name: 'core-embed/smugmug', - settings: { - title: 'SmugMug', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedPhotoIcon */ "g"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed SmugMug content.') - }, - patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i] -}, { - // Deprecated in favour of the core-embed/speaker-deck block. - name: 'core-embed/speaker', - settings: { - title: 'Speaker', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedAudioIcon */ "b"], - supports: { - inserter: false - } - }, - patterns: [] -}, { - name: 'core-embed/speaker-deck', - settings: { - title: 'Speaker Deck', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], - transform: [{ - type: 'block', - blocks: ['core-embed/speaker'], - transform: function transform(content) { - return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core-embed/speaker-deck', { - content: content - }); - } - }], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Speaker Deck content.') - }, - patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i] -}, { - name: 'core-embed/ted', - settings: { - title: 'TED', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a TED video.') - }, - patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i] -}, { - name: 'core-embed/tumblr', - settings: { - title: 'Tumblr', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedTumbrIcon */ "j"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Tumblr post.') - }, - patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i] -}, { - name: 'core-embed/videopress', - settings: { - title: 'VideoPress', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], - keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a VideoPress video.') - }, - patterns: [/^https?:\/\/videopress\.com\/.+/i] -}, { - name: 'core-embed/wordpress-tv', - settings: { - title: 'WordPress.tv', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a WordPress.tv video.') - }, - patterns: [/^https?:\/\/wordpress\.tv\/.+/i] -}, { - name: 'core-embed/amazon-kindle', - settings: { - title: 'Amazon Kindle', - icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedAmazonIcon */ "a"], - keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('ebook')], - responsive: false, - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Amazon Kindle content.') - }, - patterns: [/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i, /^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i] -}]; - - -/***/ }), -/* 90 */, -/* 91 */, -/* 92 */, -/* 93 */, -/* 94 */, -/* 95 */, -/* 96 */ +/***/ 8: /***/ (function(module, exports) { -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - +(function() { module.exports = this["wp"]["compose"]; }()); /***/ }), -/* 97 */ + +/***/ 86: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["coreData"]; }()); /***/ }), -/* 98 */, -/* 99 */, -/* 100 */, -/* 101 */, -/* 102 */, -/* 103 */, -/* 104 */, -/* 105 */, -/* 106 */, -/* 107 */, -/* 108 */, -/* 109 */, -/* 110 */, -/* 111 */, -/* 112 */, -/* 113 */, -/* 114 */, -/* 115 */, -/* 116 */, -/* 117 */, -/* 118 */, -/* 119 */, -/* 120 */, -/* 121 */, -/* 122 */, -/* 123 */, -/* 124 */, -/* 125 */, -/* 126 */, -/* 127 */, -/* 128 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/core-embeds.js -var core_embeds = __webpack_require__(89); - -// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/icons.js -var icons = __webpack_require__(40); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js -var util = __webpack_require__(61); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-controls.js - - -/** - * WordPress dependencies - */ - - - - -var embed_controls_EmbedControls = function EmbedControls(props) { - var blockSupportsResponsive = props.blockSupportsResponsive, - showEditButton = props.showEditButton, - themeSupportsResponsive = props.themeSupportsResponsive, - allowResponsive = props.allowResponsive, - getResponsiveHelp = props.getResponsiveHelp, - toggleResponsive = props.toggleResponsive, - switchBackToURLInput = props.switchBackToURLInput; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, showEditButton && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit URL'), - icon: "edit", - onClick: switchBackToURLInput - }))), themeSupportsResponsive && blockSupportsResponsive && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Media Settings'), - className: "blocks-responsive" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Resize for smaller devices'), - checked: allowResponsive, - help: getResponsiveHelp, - onChange: toggleResponsive - })))); -}; - -/* harmony default export */ var embed_controls = (embed_controls_EmbedControls); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-loading.js - - -/** - * WordPress dependencies - */ - - - -var embed_loading_EmbedLoading = function EmbedLoading() { - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-embed is-loading" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Embedding…'))); -}; - -/* harmony default export */ var embed_loading = (embed_loading_EmbedLoading); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-placeholder.js - - -/** - * WordPress dependencies - */ - - - - -var embed_placeholder_EmbedPlaceholder = function EmbedPlaceholder(props) { - var icon = props.icon, - label = props.label, - value = props.value, - onSubmit = props.onSubmit, - onChange = props.onChange, - cannotEmbed = props.cannotEmbed, - fallback = props.fallback, - tryAgain = props.tryAgain; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: icon, - showColors: true - }), - label: label, - className: "wp-block-embed", - instructions: Object(external_this_wp_i18n_["__"])('Paste a link to the content you want to display on your site.') - }, Object(external_this_wp_element_["createElement"])("form", { - onSubmit: onSubmit - }, Object(external_this_wp_element_["createElement"])("input", { - type: "url", - value: value || '', - className: "components-placeholder__input", - "aria-label": label, - placeholder: Object(external_this_wp_i18n_["__"])('Enter URL to embed here…'), - onChange: onChange - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isLarge: true, - type: "submit" - }, Object(external_this_wp_i18n_["_x"])('Embed', 'button label')), cannotEmbed && Object(external_this_wp_element_["createElement"])("p", { - className: "components-placeholder__error" - }, Object(external_this_wp_i18n_["__"])('Sorry, this content could not be embedded.'), Object(external_this_wp_element_["createElement"])("br", null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isLarge: true, - onClick: tryAgain - }, Object(external_this_wp_i18n_["_x"])('Try again', 'button label')), " ", Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isLarge: true, - onClick: fallback - }, Object(external_this_wp_i18n_["_x"])('Convert to link', 'button label')))), Object(external_this_wp_element_["createElement"])("div", { - className: "components-placeholder__learn-more" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { - href: Object(external_this_wp_i18n_["__"])('https://wordpress.org/support/article/embeds/') - }, Object(external_this_wp_i18n_["__"])('Learn more about embeds')))); -}; - -/* harmony default export */ var embed_placeholder = (embed_placeholder_EmbedPlaceholder); - -// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js -var constants = __webpack_require__(62); - -// EXTERNAL MODULE: ./node_modules/url/url.js -var url_url = __webpack_require__(87); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: ./node_modules/classnames/dedupe.js -var dedupe = __webpack_require__(73); -var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/wp-embed-preview.js - - - - - - - - -/** - * WordPress dependencies - */ - - -/** - * Browser dependencies - */ - -var _window = window, - FocusEvent = _window.FocusEvent; - -var wp_embed_preview_WpEmbedPreview = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(WpEmbedPreview, _Component); - - function WpEmbedPreview() { - var _this; - - Object(classCallCheck["a" /* default */])(this, WpEmbedPreview); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(WpEmbedPreview).apply(this, arguments)); - _this.checkFocus = _this.checkFocus.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.node = Object(external_this_wp_element_["createRef"])(); - return _this; - } - /** - * Checks whether the wp embed iframe is the activeElement, - * if it is dispatch a focus event. - */ - - - Object(createClass["a" /* default */])(WpEmbedPreview, [{ - key: "checkFocus", - value: function checkFocus() { - var _document = document, - activeElement = _document.activeElement; - - if (activeElement.tagName !== 'IFRAME' || activeElement.parentNode !== this.node.current) { - return; - } - - var focusEvent = new FocusEvent('focus', { - bubbles: true - }); - activeElement.dispatchEvent(focusEvent); - } - }, { - key: "render", - value: function render() { - var html = this.props.html; - return Object(external_this_wp_element_["createElement"])("div", { - ref: this.node, - className: "wp-block-embed__wrapper", - dangerouslySetInnerHTML: { - __html: html - } - }); - } - }]); - - return WpEmbedPreview; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var wp_embed_preview = (Object(external_this_wp_compose_["withGlobalEvents"])({ - blur: 'checkFocus' -})(wp_embed_preview_WpEmbedPreview)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-preview.js - - - - - - - - -/** - * Internal dependencies - */ - - -/** - * External dependencies - */ - - - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -var embed_preview_EmbedPreview = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(EmbedPreview, _Component); - - function EmbedPreview() { - var _this; - - Object(classCallCheck["a" /* default */])(this, EmbedPreview); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(EmbedPreview).apply(this, arguments)); - _this.hideOverlay = _this.hideOverlay.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - interactive: false - }; - return _this; - } - - Object(createClass["a" /* default */])(EmbedPreview, [{ - key: "hideOverlay", - value: function hideOverlay() { - // This is called onMouseUp on the overlay. We can't respond to the `isSelected` prop - // changing, because that happens on mouse down, and the overlay immediately disappears, - // and the mouse event can end up in the preview content. We can't use onClick on - // the overlay to hide it either, because then the editor misses the mouseup event, and - // thinks we're multi-selecting blocks. - this.setState({ - interactive: true - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - preview = _this$props.preview, - url = _this$props.url, - type = _this$props.type, - caption = _this$props.caption, - onCaptionChange = _this$props.onCaptionChange, - isSelected = _this$props.isSelected, - className = _this$props.className, - icon = _this$props.icon, - label = _this$props.label; - var scripts = preview.scripts; - var interactive = this.state.interactive; - var html = 'photo' === type ? Object(util["e" /* getPhotoHtml */])(preview) : preview.html; - var parsedHost = Object(url_url["parse"])(url).host.split('.'); - var parsedHostBaseUrl = parsedHost.splice(parsedHost.length - 2, parsedHost.length - 1).join('.'); - var cannotPreview = Object(external_lodash_["includes"])(constants["c" /* HOSTS_NO_PREVIEWS */], parsedHostBaseUrl); // translators: %s: host providing embed content e.g: www.youtube.com - - var iframeTitle = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Embedded content from %s'), parsedHostBaseUrl); - var sandboxClassnames = dedupe_default()(type, className, 'wp-block-embed__wrapper'); // Disabled because the overlay div doesn't actually have a role or functionality - // as far as the user is concerned. We're just catching the first click so that - // the block can be selected without interacting with the embed preview that the overlay covers. - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - - var embedWrapper = 'wp-embed' === type ? Object(external_this_wp_element_["createElement"])(wp_embed_preview, { - html: html - }) : Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-embed__wrapper" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { - html: html, - scripts: scripts, - title: iframeTitle, - type: sandboxClassnames, - onFocus: this.hideOverlay - }), !interactive && Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-embed__interactive-overlay", - onMouseUp: this.hideOverlay - })); - /* eslint-enable jsx-a11y/no-static-element-interactions */ - - return Object(external_this_wp_element_["createElement"])("figure", { - className: dedupe_default()(className, 'wp-block-embed', { - 'is-type-video': 'video' === type - }) - }, cannotPreview ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: icon, - showColors: true - }), - label: label - }, Object(external_this_wp_element_["createElement"])("p", { - className: "components-placeholder__error" - }, Object(external_this_wp_element_["createElement"])("a", { - href: url - }, url)), Object(external_this_wp_element_["createElement"])("p", { - className: "components-placeholder__error" - }, - /* translators: %s: host providing embed content e.g: www.youtube.com */ - Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])("Embedded content from %s can't be previewed in the editor."), parsedHostBaseUrl))) : embedWrapper, (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - onChange: onCaptionChange, - inlineToolbar: true - })); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, state) { - if (!nextProps.isSelected && state.interactive) { - // We only want to change this when the block is not selected, because changing it when - // the block becomes selected makes the overlap disappear too early. Hiding the overlay - // happens on mouseup when the overlay is clicked. - return { - interactive: false - }; - } - - return null; - } - }]); - - return EmbedPreview; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var embed_preview = (embed_preview_EmbedPreview); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/edit.js - - - - - - - - - -/** - * Internal dependencies - */ - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -function getEmbedEditComponent(title, icon) { - var responsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - return ( - /*#__PURE__*/ - function (_Component) { - Object(inherits["a" /* default */])(_class, _Component); - - function _class() { - var _this; - - Object(classCallCheck["a" /* default */])(this, _class); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).apply(this, arguments)); - _this.switchBackToURLInput = _this.switchBackToURLInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setUrl = _this.setUrl.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getMergedAttributes = _this.getMergedAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setMergedAttributes = _this.setMergedAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getResponsiveHelp = _this.getResponsiveHelp.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.toggleResponsive = _this.toggleResponsive.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.handleIncomingPreview = _this.handleIncomingPreview.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - editingURL: false, - url: _this.props.attributes.url - }; - - if (_this.props.preview) { - _this.handleIncomingPreview(); - } - - return _this; - } - - Object(createClass["a" /* default */])(_class, [{ - key: "handleIncomingPreview", - value: function handleIncomingPreview() { - this.setMergedAttributes(); - - if (this.props.onReplace) { - var upgradedBlock = Object(util["a" /* createUpgradedEmbedBlock */])(this.props, this.getMergedAttributes()); - - if (upgradedBlock) { - this.props.onReplace(upgradedBlock); - } - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var hasPreview = undefined !== this.props.preview; - var hadPreview = undefined !== prevProps.preview; - var previewChanged = prevProps.preview && this.props.preview && this.props.preview.html !== prevProps.preview.html; - var switchedPreview = previewChanged || hasPreview && !hadPreview; - var switchedURL = this.props.attributes.url !== prevProps.attributes.url; - - if (switchedPreview || switchedURL) { - if (this.props.cannotEmbed) { - // We either have a new preview or a new URL, but we can't embed it. - if (!this.props.fetching) { - // If we're not fetching the preview, then we know it can't be embedded, so try - // removing any trailing slash, and resubmit. - this.resubmitWithoutTrailingSlash(); - } - - return; - } - - this.handleIncomingPreview(); - } - } - }, { - key: "resubmitWithoutTrailingSlash", - value: function resubmitWithoutTrailingSlash() { - this.setState(function (prevState) { - return { - url: prevState.url.replace(/\/$/, '') - }; - }, this.setUrl); - } - }, { - key: "setUrl", - value: function setUrl(event) { - if (event) { - event.preventDefault(); - } - - var url = this.state.url; - var setAttributes = this.props.setAttributes; - this.setState({ - editingURL: false - }); - setAttributes({ - url: url - }); - } - /*** - * @return {Object} Attributes derived from the preview, merged with the current attributes. - */ - - }, { - key: "getMergedAttributes", - value: function getMergedAttributes() { - var preview = this.props.preview; - var _this$props$attribute = this.props.attributes, - className = _this$props$attribute.className, - allowResponsive = _this$props$attribute.allowResponsive; - return Object(objectSpread["a" /* default */])({}, this.props.attributes, Object(util["c" /* getAttributesFromPreview */])(preview, title, className, responsive, allowResponsive)); - } - /*** - * Sets block attributes based on the current attributes and preview data. - */ - - }, { - key: "setMergedAttributes", - value: function setMergedAttributes() { - var setAttributes = this.props.setAttributes; - setAttributes(this.getMergedAttributes()); - } - }, { - key: "switchBackToURLInput", - value: function switchBackToURLInput() { - this.setState({ - editingURL: true - }); - } - }, { - key: "getResponsiveHelp", - value: function getResponsiveHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('This embed will preserve its aspect ratio when the browser is resized.') : Object(external_this_wp_i18n_["__"])('This embed may not preserve its aspect ratio when the browser is resized.'); - } - }, { - key: "toggleResponsive", - value: function toggleResponsive() { - var _this$props$attribute2 = this.props.attributes, - allowResponsive = _this$props$attribute2.allowResponsive, - className = _this$props$attribute2.className; - var html = this.props.preview.html; - var newAllowResponsive = !allowResponsive; - this.props.setAttributes({ - allowResponsive: newAllowResponsive, - className: Object(util["d" /* getClassNames */])(html, className, responsive && newAllowResponsive) - }); - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$state = this.state, - url = _this$state.url, - editingURL = _this$state.editingURL; - var _this$props = this.props, - fetching = _this$props.fetching, - setAttributes = _this$props.setAttributes, - isSelected = _this$props.isSelected, - preview = _this$props.preview, - cannotEmbed = _this$props.cannotEmbed, - themeSupportsResponsive = _this$props.themeSupportsResponsive, - tryAgain = _this$props.tryAgain; - - if (fetching) { - return Object(external_this_wp_element_["createElement"])(embed_loading, null); - } // translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists - - - var label = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s URL'), title); // No preview, or we can't embed the current URL, or we've clicked the edit button. - - if (!preview || cannotEmbed || editingURL) { - return Object(external_this_wp_element_["createElement"])(embed_placeholder, { - icon: icon, - label: label, - onSubmit: this.setUrl, - value: url, - cannotEmbed: cannotEmbed, - onChange: function onChange(event) { - return _this2.setState({ - url: event.target.value - }); - }, - fallback: function fallback() { - return Object(util["b" /* fallback */])(url, _this2.props.onReplace); - }, - tryAgain: tryAgain - }); - } // Even though we set attributes that get derived from the preview, - // we don't access them directly because for the initial render, - // the `setAttributes` call will not have taken effect. If we're - // rendering responsive content, setting the responsive classes - // after the preview has been rendered can result in unwanted - // clipping or scrollbars. The `getAttributesFromPreview` function - // that `getMergedAttributes` uses is memoized so that we're not - // calculating them on every render. - - - var previewAttributes = this.getMergedAttributes(); - var caption = previewAttributes.caption, - type = previewAttributes.type, - allowResponsive = previewAttributes.allowResponsive; - var className = classnames_default()(previewAttributes.className, this.props.className); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(embed_controls, { - showEditButton: preview && !cannotEmbed, - themeSupportsResponsive: themeSupportsResponsive, - blockSupportsResponsive: responsive, - allowResponsive: allowResponsive, - getResponsiveHelp: this.getResponsiveHelp, - toggleResponsive: this.toggleResponsive, - switchBackToURLInput: this.switchBackToURLInput - }), Object(external_this_wp_element_["createElement"])(embed_preview, { - preview: preview, - className: className, - url: url, - type: type, - caption: caption, - onCaptionChange: function onCaptionChange(value) { - return setAttributes({ - caption: value - }); - }, - isSelected: isSelected, - icon: icon, - label: label - })); - } - }]); - - return _class; - }(external_this_wp_element_["Component"]) - ); -} - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/settings.js - - - - -/** - * Internal dependencies - */ - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - -var embedAttributes = { - url: { - type: 'string' - }, - caption: { - type: 'string', - source: 'html', - selector: 'figcaption' - }, - type: { - type: 'string' - }, - providerNameSlug: { - type: 'string' - }, - allowResponsive: { - type: 'boolean', - default: true - } -}; -function getEmbedBlockSettings(_ref) { - var title = _ref.title, - description = _ref.description, - icon = _ref.icon, - _ref$category = _ref.category, - category = _ref$category === void 0 ? 'embed' : _ref$category, - transforms = _ref.transforms, - _ref$keywords = _ref.keywords, - keywords = _ref$keywords === void 0 ? [] : _ref$keywords, - _ref$supports = _ref.supports, - supports = _ref$supports === void 0 ? {} : _ref$supports, - _ref$responsive = _ref.responsive, - responsive = _ref$responsive === void 0 ? true : _ref$responsive; - - var blockDescription = description || Object(external_this_wp_i18n_["__"])('Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.'); - - var edit = getEmbedEditComponent(title, icon, responsive); - return { - title: title, - description: blockDescription, - icon: icon, - category: category, - keywords: keywords, - attributes: embedAttributes, - supports: Object(objectSpread["a" /* default */])({ - align: true - }, supports), - transforms: transforms, - edit: Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var url = ownProps.attributes.url; - var core = select('core'); - var getEmbedPreview = core.getEmbedPreview, - isPreviewEmbedFallback = core.isPreviewEmbedFallback, - isRequestingEmbedPreview = core.isRequestingEmbedPreview, - getThemeSupports = core.getThemeSupports; - var preview = undefined !== url && getEmbedPreview(url); - var previewIsFallback = undefined !== url && isPreviewEmbedFallback(url); - var fetching = undefined !== url && isRequestingEmbedPreview(url); - var themeSupports = getThemeSupports(); // The external oEmbed provider does not exist. We got no type info and no html. - - var badEmbedProvider = !!preview && undefined === preview.type && false === preview.html; // Some WordPress URLs that can't be embedded will cause the API to return - // a valid JSON response with no HTML and `data.status` set to 404, rather - // than generating a fallback response as other embeds do. - - var wordpressCantEmbed = !!preview && preview.data && preview.data.status === 404; - var validPreview = !!preview && !badEmbedProvider && !wordpressCantEmbed; - var cannotEmbed = undefined !== url && (!validPreview || previewIsFallback); - return { - preview: validPreview ? preview : undefined, - fetching: fetching, - themeSupportsResponsive: themeSupports['responsive-embeds'], - cannotEmbed: cannotEmbed - }; - }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var url = ownProps.attributes.url; - var coreData = dispatch('core/data'); - - var tryAgain = function tryAgain() { - coreData.invalidateResolution('core', 'getEmbedPreview', [url]); - }; - - return { - tryAgain: tryAgain - }; - }))(edit), - save: function save(_ref2) { - var _classnames; - - var attributes = _ref2.attributes; - var url = attributes.url, - caption = attributes.caption, - type = attributes.type, - providerNameSlug = attributes.providerNameSlug; - - if (!url) { - return null; - } - - var embedClassName = dedupe_default()('wp-block-embed', (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames)); - return Object(external_this_wp_element_["createElement"])("figure", { - className: embedClassName - }, Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-embed__wrapper" - }, "\n".concat(url, "\n") - /* URL needs to be on its own line. */ - ), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - }, - deprecated: [{ - attributes: embedAttributes, - save: function save(_ref3) { - var _classnames2; - - var attributes = _ref3.attributes; - var url = attributes.url, - caption = attributes.caption, - type = attributes.type, - providerNameSlug = attributes.providerNameSlug; - - if (!url) { - return null; - } - - var embedClassName = dedupe_default()('wp-block-embed', (_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames2, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames2)); - return Object(external_this_wp_element_["createElement"])("figure", { - className: embedClassName - }, "\n".concat(url, "\n") - /* URL needs to be on its own line. */ - , !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - } - }] - }; -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return embed_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "common", function() { return common; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "others", function() { return others; }); - - -/** - * Internal dependencies - */ - - - -/** - * WordPress dependencies - */ - - - -var embed_name = 'core/embed'; -var settings = getEmbedBlockSettings({ - title: Object(external_this_wp_i18n_["_x"])('Embed', 'block title'), - description: Object(external_this_wp_i18n_["__"])('Embed videos, images, tweets, audio, and other content from external sources.'), - icon: icons["c" /* embedContentIcon */], - // Unknown embeds should not be responsive by default. - responsive: false, - transforms: { - from: [{ - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'P' && /^\s*(https?:\/\/\S+)\s*$/i.test(node.textContent); - }, - transform: function transform(node) { - return Object(external_this_wp_blocks_["createBlock"])('core/embed', { - url: node.textContent.trim() - }); - } - }] - } -}); -var common = core_embeds["a" /* common */].map(function (embedDefinition) { - return Object(objectSpread["a" /* default */])({}, embedDefinition, { - settings: getEmbedBlockSettings(embedDefinition.settings) - }); -}); -var others = core_embeds["b" /* others */].map(function (embedDefinition) { - return Object(objectSpread["a" /* default */])({}, embedDefinition, { - settings: getEmbedBlockSettings(embedDefinition.settings) - }); -}); - - -/***/ }), -/* 129 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/deprecated.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -var deprecated = [// v1 of group block. Deprecated to add an inner-container div around `InnerBlocks.Content`. -{ - attributes: { - backgroundColor: { - type: 'string' - }, - customBackgroundColor: { - type: 'string' - } - }, - supports: { - align: ['wide', 'full'], - anchor: true, - html: false - }, - save: function save(_ref) { - var attributes = _ref.attributes; - var backgroundColor = attributes.backgroundColor, - customBackgroundColor = attributes.customBackgroundColor; - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var className = classnames_default()(backgroundClass, { - 'has-background': backgroundColor || customBackgroundColor - }); - var styles = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor - }; - return Object(external_this_wp_element_["createElement"])("div", { - className: className, - style: styles - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); - } -}]; -/* harmony default export */ var group_deprecated = (deprecated); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/edit.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -function GroupEdit(_ref) { - var className = _ref.className, - setBackgroundColor = _ref.setBackgroundColor, - backgroundColor = _ref.backgroundColor, - hasInnerBlocks = _ref.hasInnerBlocks; - var styles = { - backgroundColor: backgroundColor.color - }; - var classes = classnames_default()(className, backgroundColor.class, { - 'has-background': !!backgroundColor.color - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - colorSettings: [{ - value: backgroundColor.color, - onChange: setBackgroundColor, - label: Object(external_this_wp_i18n_["__"])('Background Color') - }] - })), Object(external_this_wp_element_["createElement"])("div", { - className: classes, - style: styles - }, Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-group__inner-container" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - renderAppender: !hasInnerBlocks && external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender - })))); -} - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor'), Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; - - var _select = select('core/block-editor'), - getBlock = _select.getBlock; - - var block = getBlock(clientId); - return { - hasInnerBlocks: !!(block && block.innerBlocks.length) - }; -})])(GroupEdit)); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "24", - height: "24", - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/save.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save_save(_ref) { - var attributes = _ref.attributes; - var backgroundColor = attributes.backgroundColor, - customBackgroundColor = attributes.customBackgroundColor; - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var className = classnames_default()(backgroundClass, { - 'has-background': backgroundColor || customBackgroundColor - }); - var styles = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor - }; - return Object(external_this_wp_element_["createElement"])("div", { - className: className, - style: styles - }, Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-group__inner-container" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/group/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return group_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - -var metadata = { - name: "core/group", - category: "layout", - attributes: { - backgroundColor: { - type: "string" - }, - customBackgroundColor: { - type: "string" - } - } -}; - -var group_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Group'), - icon: icon, - description: Object(external_this_wp_i18n_["__"])('A block that groups other blocks.'), - keywords: [Object(external_this_wp_i18n_["__"])('container'), Object(external_this_wp_i18n_["__"])('wrapper'), Object(external_this_wp_i18n_["__"])('row'), Object(external_this_wp_i18n_["__"])('section')], - example: { - attributes: { - customBackgroundColor: '#ffffff' - }, - innerBlocks: [{ - name: 'core/paragraph', - attributes: { - customTextColor: '#cf2e2e', - fontSize: 'large', - content: Object(external_this_wp_i18n_["__"])('One.') - } - }, { - name: 'core/paragraph', - attributes: { - customTextColor: '#ff6900', - fontSize: 'large', - content: Object(external_this_wp_i18n_["__"])('Two.') - } - }, { - name: 'core/paragraph', - attributes: { - customTextColor: '#fcb900', - fontSize: 'large', - content: Object(external_this_wp_i18n_["__"])('Three.') - } - }, { - name: 'core/paragraph', - attributes: { - customTextColor: '#00d084', - fontSize: 'large', - content: Object(external_this_wp_i18n_["__"])('Four.') - } - }, { - name: 'core/paragraph', - attributes: { - customTextColor: '#0693e3', - fontSize: 'large', - content: Object(external_this_wp_i18n_["__"])('Five.') - } - }, { - name: 'core/paragraph', - attributes: { - customTextColor: '#9b51e0', - fontSize: 'large', - content: Object(external_this_wp_i18n_["__"])('Six.') - } - }] - }, - supports: { - align: ['wide', 'full'], - anchor: true, - html: false - }, - transforms: { - from: [{ - type: 'block', - isMultiBlock: true, - blocks: ['*'], - __experimentalConvert: function __experimentalConvert(blocks) { - // Avoid transforming a single `core/group` Block - if (blocks.length === 1 && blocks[0].name === 'core/group') { - return; - } - - var alignments = ['wide', 'full']; // Determine the widest setting of all the blocks to be grouped - - var widestAlignment = blocks.reduce(function (result, block) { - var align = block.attributes.align; - return alignments.indexOf(align) > alignments.indexOf(result) ? align : result; - }, undefined); // Clone the Blocks to be Grouped - // Failing to create new block references causes the original blocks - // to be replaced in the switchToBlockType call thereby meaning they - // are removed both from their original location and within the - // new group block. - - var groupInnerBlocks = blocks.map(function (block) { - return Object(external_this_wp_blocks_["createBlock"])(block.name, block.attributes, block.innerBlocks); - }); - return Object(external_this_wp_blocks_["createBlock"])('core/group', { - align: widestAlignment - }, groupInnerBlocks); - } - }] - }, - edit: edit, - save: save_save, - deprecated: group_deprecated -}; - - -/***/ }), -/* 130 */, -/* 131 */, -/* 132 */, -/* 133 */, -/* 134 */, -/* 135 */, -/* 136 */, -/* 137 */, -/* 138 */, -/* 139 */, -/* 140 */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathias */ -;(function(root) { - - /** Detect free variables */ - var freeExports = true && exports && - !exports.nodeType && exports; - var freeModule = true && module && - !module.nodeType && module; - var freeGlobal = typeof global == 'object' && global; - if ( - freeGlobal.global === freeGlobal || - freeGlobal.window === freeGlobal || - freeGlobal.self === freeGlobal - ) { - root = freeGlobal; - } - - /** - * The `punycode` object. - * @name punycode - * @type Object - */ - var punycode, - - /** Highest positive signed 32-bit float value */ - maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1 - - /** Bootstring parameters */ - base = 36, - tMin = 1, - tMax = 26, - skew = 38, - damp = 700, - initialBias = 72, - initialN = 128, // 0x80 - delimiter = '-', // '\x2D' - - /** Regular expressions */ - regexPunycode = /^xn--/, - regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars - regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators - - /** Error messages */ - errors = { - 'overflow': 'Overflow: input needs wider integers to process', - 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', - 'invalid-input': 'Invalid input' - }, - - /** Convenience shortcuts */ - baseMinusTMin = base - tMin, - floor = Math.floor, - stringFromCharCode = String.fromCharCode, - - /** Temporary variable */ - key; - - /*--------------------------------------------------------------------------*/ - - /** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ - function error(type) { - throw RangeError(errors[type]); - } - - /** - * A generic `Array#map` utility function. - * @private - * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array - * item. - * @returns {Array} A new array of values returned by the callback function. - */ - function map(array, fn) { - var length = array.length; - var result = []; - while (length--) { - result[length] = fn(array[length]); - } - return result; - } - - /** - * A simple `Array#map`-like wrapper to work with domain name strings or email - * addresses. - * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every - * character. - * @returns {Array} A new string of characters returned by the callback - * function. - */ - function mapDomain(string, fn) { - var parts = string.split('@'); - var result = ''; - if (parts.length > 1) { - // In email addresses, only the domain name should be punycoded. Leave - // the local part (i.e. everything up to `@`) intact. - result = parts[0] + '@'; - string = parts[1]; - } - // Avoid `split(regex)` for IE8 compatibility. See #17. - string = string.replace(regexSeparators, '\x2E'); - var labels = string.split('.'); - var encoded = map(labels, fn).join('.'); - return result + encoded; - } - - /** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - * @see `punycode.ucs2.encode` - * @see - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ - function ucs2decode(string) { - var output = [], - counter = 0, - length = string.length, - value, - extra; - while (counter < length) { - value = string.charCodeAt(counter++); - if (value >= 0xD800 && value <= 0xDBFF && counter < length) { - // high surrogate, and there is a next character - extra = string.charCodeAt(counter++); - if ((extra & 0xFC00) == 0xDC00) { // low surrogate - output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); - } else { - // unmatched surrogate; only append this code unit, in case the next - // code unit is the high surrogate of a surrogate pair - output.push(value); - counter--; - } - } else { - output.push(value); - } - } - return output; - } - - /** - * Creates a string based on an array of numeric code points. - * @see `punycode.ucs2.decode` - * @memberOf punycode.ucs2 - * @name encode - * @param {Array} codePoints The array of numeric code points. - * @returns {String} The new Unicode string (UCS-2). - */ - function ucs2encode(array) { - return map(array, function(value) { - var output = ''; - if (value > 0xFFFF) { - value -= 0x10000; - output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); - value = 0xDC00 | value & 0x3FF; - } - output += stringFromCharCode(value); - return output; - }).join(''); - } - - /** - * Converts a basic code point into a digit/integer. - * @see `digitToBasic()` - * @private - * @param {Number} codePoint The basic numeric code point value. - * @returns {Number} The numeric value of a basic code point (for use in - * representing integers) in the range `0` to `base - 1`, or `base` if - * the code point does not represent a value. - */ - function basicToDigit(codePoint) { - if (codePoint - 48 < 10) { - return codePoint - 22; - } - if (codePoint - 65 < 26) { - return codePoint - 65; - } - if (codePoint - 97 < 26) { - return codePoint - 97; - } - return base; - } - - /** - * Converts a digit/integer into a basic code point. - * @see `basicToDigit()` - * @private - * @param {Number} digit The numeric value of a basic code point. - * @returns {Number} The basic code point whose value (when used for - * representing integers) is `digit`, which needs to be in the range - * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is - * used; else, the lowercase form is used. The behavior is undefined - * if `flag` is non-zero and `digit` has no uppercase form. - */ - function digitToBasic(digit, flag) { - // 0..25 map to ASCII a..z or A..Z - // 26..35 map to ASCII 0..9 - return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); - } - - /** - * Bias adaptation function as per section 3.4 of RFC 3492. - * http://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ - function adapt(delta, numPoints, firstTime) { - var k = 0; - delta = firstTime ? floor(delta / damp) : delta >> 1; - delta += floor(delta / numPoints); - for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { - delta = floor(delta / baseMinusTMin); - } - return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); - } - - /** - * Converts a Punycode string of ASCII-only symbols to a string of Unicode - * symbols. - * @memberOf punycode - * @param {String} input The Punycode string of ASCII-only symbols. - * @returns {String} The resulting string of Unicode symbols. - */ - function decode(input) { - // Don't use UCS-2 - var output = [], - inputLength = input.length, - out, - i = 0, - n = initialN, - bias = initialBias, - basic, - j, - index, - oldi, - w, - k, - digit, - t, - /** Cached calculation results */ - baseMinusT; - - // Handle the basic code points: let `basic` be the number of input code - // points before the last delimiter, or `0` if there is none, then copy - // the first basic code points to the output. - - basic = input.lastIndexOf(delimiter); - if (basic < 0) { - basic = 0; - } - - for (j = 0; j < basic; ++j) { - // if it's not a basic code point - if (input.charCodeAt(j) >= 0x80) { - error('not-basic'); - } - output.push(input.charCodeAt(j)); - } - - // Main decoding loop: start just after the last delimiter if any basic code - // points were copied; start at the beginning otherwise. - - for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { - - // `index` is the index of the next character to be consumed. - // Decode a generalized variable-length integer into `delta`, - // which gets added to `i`. The overflow checking is easier - // if we increase `i` as we go, then subtract off its starting - // value at the end to obtain `delta`. - for (oldi = i, w = 1, k = base; /* no condition */; k += base) { - - if (index >= inputLength) { - error('invalid-input'); - } - - digit = basicToDigit(input.charCodeAt(index++)); - - if (digit >= base || digit > floor((maxInt - i) / w)) { - error('overflow'); - } - - i += digit * w; - t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - - if (digit < t) { - break; - } - - baseMinusT = base - t; - if (w > floor(maxInt / baseMinusT)) { - error('overflow'); - } - - w *= baseMinusT; - - } - - out = output.length + 1; - bias = adapt(i - oldi, out, oldi == 0); - - // `i` was supposed to wrap around from `out` to `0`, - // incrementing `n` each time, so we'll fix that now: - if (floor(i / out) > maxInt - n) { - error('overflow'); - } - - n += floor(i / out); - i %= out; - - // Insert `n` at position `i` of the output - output.splice(i++, 0, n); - - } - - return ucs2encode(output); - } - - /** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - * @memberOf punycode - * @param {String} input The string of Unicode symbols. - * @returns {String} The resulting Punycode string of ASCII-only symbols. - */ - function encode(input) { - var n, - delta, - handledCPCount, - basicLength, - bias, - j, - m, - q, - k, - t, - currentValue, - output = [], - /** `inputLength` will hold the number of code points in `input`. */ - inputLength, - /** Cached calculation results */ - handledCPCountPlusOne, - baseMinusT, - qMinusT; - - // Convert the input in UCS-2 to Unicode - input = ucs2decode(input); - - // Cache the length - inputLength = input.length; - - // Initialize the state - n = initialN; - delta = 0; - bias = initialBias; - - // Handle the basic code points - for (j = 0; j < inputLength; ++j) { - currentValue = input[j]; - if (currentValue < 0x80) { - output.push(stringFromCharCode(currentValue)); - } - } - - handledCPCount = basicLength = output.length; - - // `handledCPCount` is the number of code points that have been handled; - // `basicLength` is the number of basic code points. - - // Finish the basic string - if it is not empty - with a delimiter - if (basicLength) { - output.push(delimiter); - } - - // Main encoding loop: - while (handledCPCount < inputLength) { - - // All non-basic code points < n have been handled already. Find the next - // larger one: - for (m = maxInt, j = 0; j < inputLength; ++j) { - currentValue = input[j]; - if (currentValue >= n && currentValue < m) { - m = currentValue; - } - } - - // Increase `delta` enough to advance the decoder's state to , - // but guard against overflow - handledCPCountPlusOne = handledCPCount + 1; - if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { - error('overflow'); - } - - delta += (m - n) * handledCPCountPlusOne; - n = m; - - for (j = 0; j < inputLength; ++j) { - currentValue = input[j]; - - if (currentValue < n && ++delta > maxInt) { - error('overflow'); - } - - if (currentValue == n) { - // Represent delta as a generalized variable-length integer - for (q = delta, k = base; /* no condition */; k += base) { - t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - if (q < t) { - break; - } - qMinusT = q - t; - baseMinusT = base - t; - output.push( - stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) - ); - q = floor(qMinusT / baseMinusT); - } - - output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); - delta = 0; - ++handledCPCount; - } - } - - ++delta; - ++n; - - } - return output.join(''); - } - - /** - * Converts a Punycode string representing a domain name or an email address - * to Unicode. Only the Punycoded parts of the input will be converted, i.e. - * it doesn't matter if you call it on a string that has already been - * converted to Unicode. - * @memberOf punycode - * @param {String} input The Punycoded domain name or email address to - * convert to Unicode. - * @returns {String} The Unicode representation of the given Punycode - * string. - */ - function toUnicode(input) { - return mapDomain(input, function(string) { - return regexPunycode.test(string) - ? decode(string.slice(4).toLowerCase()) - : string; - }); - } - - /** - * Converts a Unicode string representing a domain name or an email address to - * Punycode. Only the non-ASCII parts of the domain name will be converted, - * i.e. it doesn't matter if you call it with a domain that's already in - * ASCII. - * @memberOf punycode - * @param {String} input The domain name or email address to convert, as a - * Unicode string. - * @returns {String} The Punycode representation of the given domain name or - * email address. - */ - function toASCII(input) { - return mapDomain(input, function(string) { - return regexNonASCII.test(string) - ? 'xn--' + encode(string) - : string; - }); - } - - /*--------------------------------------------------------------------------*/ - - /** Define the public API */ - punycode = { - /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ - 'version': '1.3.2', - /** - * An object of methods to convert from JavaScript's internal character - * representation (UCS-2) to Unicode code points, and back. - * @see - * @memberOf punycode - * @type Object - */ - 'ucs2': { - 'decode': ucs2decode, - 'encode': ucs2encode - }, - 'decode': decode, - 'encode': encode, - 'toASCII': toASCII, - 'toUnicode': toUnicode - }; - - /** Expose `punycode` */ - // Some AMD build optimizers, like r.js, check for specific condition patterns - // like the following: - if ( - true - ) { - !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { - return punycode; - }).call(exports, __webpack_require__, exports, module), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else {} - -}(this)); - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(141)(module), __webpack_require__(67))) - -/***/ }), -/* 141 */ +/***/ 9: /***/ (function(module, exports) { -module.exports = function(module) { - if (!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - if (!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - module.webpackPolyfill = 1; - } - return module; -}; - - -/***/ }), -/* 142 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = { - isString: function(arg) { - return typeof(arg) === 'string'; - }, - isObject: function(arg) { - return typeof(arg) === 'object' && arg !== null; - }, - isNull: function(arg) { - return arg === null; - }, - isNullOrUndefined: function(arg) { - return arg == null; - } -}; - - -/***/ }), -/* 143 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.decode = exports.parse = __webpack_require__(144); -exports.encode = exports.stringify = __webpack_require__(145); - - -/***/ }), -/* 144 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -// If obj.hasOwnProperty has been overridden, then calling -// obj.hasOwnProperty(prop) will break. -// See: https://github.com/joyent/node/issues/1707 -function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -} - -module.exports = function(qs, sep, eq, options) { - sep = sep || '&'; - eq = eq || '='; - var obj = {}; - - if (typeof qs !== 'string' || qs.length === 0) { - return obj; - } - - var regexp = /\+/g; - qs = qs.split(sep); - - var maxKeys = 1000; - if (options && typeof options.maxKeys === 'number') { - maxKeys = options.maxKeys; - } - - var len = qs.length; - // maxKeys <= 0 means that we should not limit keys count - if (maxKeys > 0 && len > maxKeys) { - len = maxKeys; - } - - for (var i = 0; i < len; ++i) { - var x = qs[i].replace(regexp, '%20'), - idx = x.indexOf(eq), - kstr, vstr, k, v; - - if (idx >= 0) { - kstr = x.substr(0, idx); - vstr = x.substr(idx + 1); - } else { - kstr = x; - vstr = ''; - } - - k = decodeURIComponent(kstr); - v = decodeURIComponent(vstr); - - if (!hasOwnProperty(obj, k)) { - obj[k] = v; - } else if (isArray(obj[k])) { - obj[k].push(v); - } else { - obj[k] = [obj[k], v]; - } - } - - return obj; -}; - -var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; -}; - - -/***/ }), -/* 145 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -var stringifyPrimitive = function(v) { - switch (typeof v) { - case 'string': - return v; - - case 'boolean': - return v ? 'true' : 'false'; - - case 'number': - return isFinite(v) ? v : ''; - - default: - return ''; - } -}; - -module.exports = function(obj, sep, eq, name) { - sep = sep || '&'; - eq = eq || '='; - if (obj === null) { - obj = undefined; - } - - if (typeof obj === 'object') { - return map(objectKeys(obj), function(k) { - var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; - if (isArray(obj[k])) { - return map(obj[k], function(v) { - return ks + encodeURIComponent(stringifyPrimitive(v)); - }).join(sep); - } else { - return ks + encodeURIComponent(stringifyPrimitive(obj[k])); - } - }).join(sep); - - } - - if (!name) return ''; - return encodeURIComponent(stringifyPrimitive(name)) + eq + - encodeURIComponent(stringifyPrimitive(obj)); -}; - -var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; -}; - -function map (xs, f) { - if (xs.map) return xs.map(f); - var res = []; - for (var i = 0; i < xs.length; i++) { - res.push(f(xs[i], i)); - } - return res; -} - -var objectKeys = Object.keys || function (obj) { - var res = []; - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key); - } - return res; -}; - - -/***/ }), -/* 146 */, -/* 147 */, -/* 148 */, -/* 149 */, -/* 150 */, -/* 151 */, -/* 152 */, -/* 153 */, -/* 154 */, -/* 155 */, -/* 156 */, -/* 157 */, -/* 158 */, -/* 159 */, -/* 160 */, -/* 161 */, -/* 162 */, -/* 163 */, -/* 164 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/deprecated.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -var supports = { - className: false -}; -var blockAttributes = { - align: { - type: 'string' - }, - content: { - type: 'string', - source: 'html', - selector: 'p', - default: '' - }, - dropCap: { - type: 'boolean', - default: false - }, - placeholder: { - type: 'string' - }, - textColor: { - type: 'string' - }, - customTextColor: { - type: 'string' - }, - backgroundColor: { - type: 'string' - }, - customBackgroundColor: { - type: 'string' - }, - fontSize: { - type: 'string' - }, - customFontSize: { - type: 'number' - }, - direction: { - type: 'string', - enum: ['ltr', 'rtl'] - } -}; -var deprecated = [{ - supports: supports, - attributes: blockAttributes, - save: function save(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var align = attributes.align, - content = attributes.content, - dropCap = attributes.dropCap, - backgroundColor = attributes.backgroundColor, - textColor = attributes.textColor, - customBackgroundColor = attributes.customBackgroundColor, - customTextColor = attributes.customTextColor, - fontSize = attributes.fontSize, - customFontSize = attributes.customFontSize, - direction = attributes.direction; - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize); - var className = classnames_default()((_classnames = { - 'has-text-color': textColor || customTextColor, - 'has-background': backgroundColor || customBackgroundColor, - 'has-drop-cap': dropCap - }, Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); - var styles = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor, - fontSize: fontSizeClass ? undefined : customFontSize, - textAlign: align - }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "p", - style: styles, - className: className ? className : undefined, - value: content, - dir: direction - }); - } -}, { - supports: supports, - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - width: { - type: 'string' - } - }), - save: function save(_ref2) { - var _classnames2; - - var attributes = _ref2.attributes; - var width = attributes.width, - align = attributes.align, - content = attributes.content, - dropCap = attributes.dropCap, - backgroundColor = attributes.backgroundColor, - textColor = attributes.textColor, - customBackgroundColor = attributes.customBackgroundColor, - customTextColor = attributes.customTextColor, - fontSize = attributes.fontSize, - customFontSize = attributes.customFontSize; - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var fontSizeClass = fontSize && "is-".concat(fontSize, "-text"); - var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames2, 'has-drop-cap', dropCap), Object(defineProperty["a" /* default */])(_classnames2, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2)); - var styles = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor, - fontSize: fontSizeClass ? undefined : customFontSize, - textAlign: align - }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "p", - style: styles, - className: className ? className : undefined, - value: content - }); - } -}, { - supports: supports, - attributes: Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, blockAttributes, { - fontSize: { - type: 'number' - } - }), 'customFontSize', 'customTextColor', 'customBackgroundColor'), - save: function save(_ref3) { - var _classnames3; - - var attributes = _ref3.attributes; - var width = attributes.width, - align = attributes.align, - content = attributes.content, - dropCap = attributes.dropCap, - backgroundColor = attributes.backgroundColor, - textColor = attributes.textColor, - fontSize = attributes.fontSize; - var className = classnames_default()((_classnames3 = {}, Object(defineProperty["a" /* default */])(_classnames3, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames3, 'has-background', backgroundColor), Object(defineProperty["a" /* default */])(_classnames3, 'has-drop-cap', dropCap), _classnames3)); - var styles = { - backgroundColor: backgroundColor, - color: textColor, - fontSize: fontSize, - textAlign: align - }; - return Object(external_this_wp_element_["createElement"])("p", { - style: styles, - className: className ? className : undefined - }, content); - }, - migrate: function migrate(attributes) { - return Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, attributes, { - customFontSize: Object(external_lodash_["isFinite"])(attributes.fontSize) ? attributes.fontSize : undefined, - customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, - customBackgroundColor: attributes.backgroundColor && '#' === attributes.backgroundColor[0] ? attributes.backgroundColor : undefined - }), ['fontSize', 'textColor', 'backgroundColor']); - } -}, { - supports: supports, - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - content: { - type: 'string', - source: 'html', - default: '' - } - }), - save: function save(_ref4) { - var attributes = _ref4.attributes; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content); - }, - migrate: function migrate(attributes) { - return attributes; - } -}]; -/* harmony default export */ var paragraph_deprecated = (deprecated); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(18); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js - - - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -var _window = window, - getComputedStyle = _window.getComputedStyle; -var edit_name = 'core/paragraph'; -var applyFallbackStyles = Object(external_this_wp_components_["withFallbackStyles"])(function (node, ownProps) { - var _ownProps$attributes = ownProps.attributes, - textColor = _ownProps$attributes.textColor, - backgroundColor = _ownProps$attributes.backgroundColor, - fontSize = _ownProps$attributes.fontSize, - customFontSize = _ownProps$attributes.customFontSize; - var editableNode = node.querySelector('[contenteditable="true"]'); //verify if editableNode is available, before using getComputedStyle. - - var computedStyles = editableNode ? getComputedStyle(editableNode) : null; - return { - fallbackBackgroundColor: backgroundColor || !computedStyles ? undefined : computedStyles.backgroundColor, - fallbackTextColor: textColor || !computedStyles ? undefined : computedStyles.color, - fallbackFontSize: fontSize || customFontSize || !computedStyles ? undefined : parseInt(computedStyles.fontSize) || undefined - }; -}); - -var edit_ParagraphBlock = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ParagraphBlock, _Component); - - function ParagraphBlock() { - var _this; - - Object(classCallCheck["a" /* default */])(this, ParagraphBlock); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ParagraphBlock).apply(this, arguments)); - _this.toggleDropCap = _this.toggleDropCap.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(ParagraphBlock, [{ - key: "toggleDropCap", - value: function toggleDropCap() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - setAttributes({ - dropCap: !attributes.dropCap - }); - } - }, { - key: "getDropCapHelp", - value: function getDropCapHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('Showing large initial letter.') : Object(external_this_wp_i18n_["__"])('Toggle to show a large initial letter.'); - } - }, { - key: "render", - value: function render() { - var _classnames; - - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes, - mergeBlocks = _this$props2.mergeBlocks, - onReplace = _this$props2.onReplace, - className = _this$props2.className, - backgroundColor = _this$props2.backgroundColor, - textColor = _this$props2.textColor, - setBackgroundColor = _this$props2.setBackgroundColor, - setTextColor = _this$props2.setTextColor, - fallbackBackgroundColor = _this$props2.fallbackBackgroundColor, - fallbackTextColor = _this$props2.fallbackTextColor, - fallbackFontSize = _this$props2.fallbackFontSize, - fontSize = _this$props2.fontSize, - setFontSize = _this$props2.setFontSize, - isRTL = _this$props2.isRTL; - var align = attributes.align, - content = attributes.content, - dropCap = attributes.dropCap, - placeholder = attributes.placeholder, - direction = attributes.direction; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { - value: align, - onChange: function onChange(nextAlign) { - setAttributes({ - align: nextAlign - }); - } - }), isRTL && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: [{ - icon: 'editor-ltr', - title: Object(external_this_wp_i18n_["_x"])('Left to right', 'editor button'), - isActive: direction === 'ltr', - onClick: function onClick() { - var nextDirection = direction === 'ltr' ? undefined : 'ltr'; - setAttributes({ - direction: nextDirection - }); - } - }] - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Text Settings'), - className: "blocks-font-size" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["FontSizePicker"], { - fallbackFontSize: fallbackFontSize, - value: fontSize.size, - onChange: setFontSize - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Drop Cap'), - checked: !!dropCap, - onChange: this.toggleDropCap, - help: this.getDropCapHelp - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - initialOpen: false, - colorSettings: [{ - value: backgroundColor.color, - onChange: setBackgroundColor, - label: Object(external_this_wp_i18n_["__"])('Background Color') - }, { - value: textColor.color, - onChange: setTextColor, - label: Object(external_this_wp_i18n_["__"])('Text Color') - }] - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], Object(esm_extends["a" /* default */])({ - textColor: textColor.color, - backgroundColor: backgroundColor.color, - fallbackTextColor: fallbackTextColor, - fallbackBackgroundColor: fallbackBackgroundColor - }, { - fontSize: fontSize.size - })))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - identifier: "content", - tagName: "p", - className: classnames_default()('wp-block-paragraph', className, (_classnames = { - 'has-text-color': textColor.color, - 'has-background': backgroundColor.color, - 'has-drop-cap': dropCap - }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), Object(defineProperty["a" /* default */])(_classnames, fontSize.class, fontSize.class), _classnames)), - style: { - backgroundColor: backgroundColor.color, - color: textColor.color, - fontSize: fontSize.size ? fontSize.size + 'px' : undefined, - direction: direction - }, - value: content, - onChange: function onChange(nextContent) { - setAttributes({ - content: nextContent - }); - }, - onSplit: function onSplit(value) { - if (!value) { - return Object(external_this_wp_blocks_["createBlock"])(edit_name); - } - - return Object(external_this_wp_blocks_["createBlock"])(edit_name, Object(objectSpread["a" /* default */])({}, attributes, { - content: value - })); - }, - onMerge: mergeBlocks, - onReplace: onReplace, - onRemove: onReplace ? function () { - return onReplace([]); - } : undefined, - "aria-label": content ? Object(external_this_wp_i18n_["__"])('Paragraph block') : Object(external_this_wp_i18n_["__"])('Empty block; start writing or type forward slash to choose a block'), - placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block'), - __unstableEmbedURLOnPaste: true - })); - } - }]); - - return ParagraphBlock; -}(external_this_wp_element_["Component"]); - -var ParagraphEdit = Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', { - textColor: 'color' -}), Object(external_this_wp_blockEditor_["withFontSizes"])('fontSize'), applyFallbackStyles, Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - isRTL: getSettings().isRTL - }; -})])(edit_ParagraphBlock); -/* harmony default export */ var edit = (ParagraphEdit); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/save.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save_save(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var align = attributes.align, - content = attributes.content, - dropCap = attributes.dropCap, - backgroundColor = attributes.backgroundColor, - textColor = attributes.textColor, - customBackgroundColor = attributes.customBackgroundColor, - customTextColor = attributes.customTextColor, - fontSize = attributes.fontSize, - customFontSize = attributes.customFontSize, - direction = attributes.direction; - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize); - var className = classnames_default()((_classnames = { - 'has-text-color': textColor || customTextColor, - 'has-background': backgroundColor || customBackgroundColor, - 'has-drop-cap': dropCap - }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); - var styles = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor, - fontSize: fontSizeClass ? undefined : customFontSize - }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "p", - style: styles, - className: className ? className : undefined, - value: content, - dir: direction - }); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/transforms.js -/** - * WordPress dependencies - */ - -var transforms = { - from: [{ - type: 'raw', - // Paragraph is a fallback and should be matched last. - priority: 20, - selector: 'p', - schema: { - p: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - } - }] -}; -/* harmony default export */ var paragraph_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return paragraph_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var metadata = { - name: "core/paragraph", - category: "common", - attributes: { - align: { - type: "string" - }, - content: { - type: "string", - source: "html", - selector: "p", - "default": "" - }, - dropCap: { - type: "boolean", - "default": false - }, - placeholder: { - type: "string" - }, - textColor: { - type: "string" - }, - customTextColor: { - type: "string" - }, - backgroundColor: { - type: "string" - }, - customBackgroundColor: { - type: "string" - }, - fontSize: { - type: "string" - }, - customFontSize: { - type: "number" - }, - direction: { - type: "string", - "enum": ["ltr", "rtl"] - } - } -}; - - -var paragraph_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Paragraph'), - description: Object(external_this_wp_i18n_["__"])('Start with the building block of all narrative.'), - icon: icon, - keywords: [Object(external_this_wp_i18n_["__"])('text')], - example: { - attributes: { - content: Object(external_this_wp_i18n_["__"])('In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.'), - customFontSize: 28, - dropCap: true - } - }, - supports: { - className: false - }, - transforms: paragraph_transforms, - deprecated: paragraph_deprecated, - merge: function merge(attributes, attributesToMerge) { - return { - content: (attributes.content || '') + (attributesToMerge.content || '') - }; - }, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var width = attributes.width; - - if (['wide', 'full', 'left', 'right'].indexOf(width) !== -1) { - return { - 'data-align': width - }; - } - }, - edit: edit, - save: save_save -}; - - -/***/ }), -/* 165 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/edit.js - - - - - - - - - -/** - * WordPress dependencies - */ - - - -var _window = window, - wp = _window.wp; - -function isTmceEmpty(editor) { - // When tinyMce is empty the content seems to be: - //


    - // avoid expensive checks for large documents - var body = editor.getBody(); - - if (body.childNodes.length > 1) { - return false; - } else if (body.childNodes.length === 0) { - return true; - } - - if (body.childNodes[0].childNodes.length > 1) { - return false; - } - - return /^\n?$/.test(body.innerText || body.textContent); -} - -var edit_ClassicEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ClassicEdit, _Component); - - function ClassicEdit(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, ClassicEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ClassicEdit).call(this, props)); - _this.initialize = _this.initialize.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSetup = _this.onSetup.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.focus = _this.focus.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(ClassicEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _window$wpEditorL10n$ = window.wpEditorL10n.tinymce, - baseURL = _window$wpEditorL10n$.baseURL, - suffix = _window$wpEditorL10n$.suffix; - window.tinymce.EditorManager.overrideDefaults({ - base_url: baseURL, - suffix: suffix - }); - - if (document.readyState === 'complete') { - this.initialize(); - } else { - window.addEventListener('DOMContentLoaded', this.initialize); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - window.addEventListener('DOMContentLoaded', this.initialize); - wp.oldEditor.remove("editor-".concat(this.props.clientId)); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props = this.props, - clientId = _this$props.clientId, - content = _this$props.attributes.content; - var editor = window.tinymce.get("editor-".concat(clientId)); - - if (prevProps.attributes.content !== content) { - editor.setContent(content || ''); - } - } - }, { - key: "initialize", - value: function initialize() { - var clientId = this.props.clientId; - var settings = window.wpEditorL10n.tinymce.settings; - wp.oldEditor.initialize("editor-".concat(clientId), { - tinymce: Object(objectSpread["a" /* default */])({}, settings, { - inline: true, - content_css: false, - fixed_toolbar_container: "#toolbar-".concat(clientId), - setup: this.onSetup - }) - }); - } - }, { - key: "onSetup", - value: function onSetup(editor) { - var _this2 = this; - - var _this$props2 = this.props, - content = _this$props2.attributes.content, - setAttributes = _this$props2.setAttributes; - var ref = this.ref; - var bookmark; - this.editor = editor; - - if (content) { - editor.on('loadContent', function () { - return editor.setContent(content); - }); - } - - editor.on('blur', function () { - bookmark = editor.selection.getBookmark(2, true); - setAttributes({ - content: editor.getContent() - }); - editor.once('focus', function () { - if (bookmark) { - editor.selection.moveToBookmark(bookmark); - } - }); - return false; - }); - editor.on('mousedown touchstart', function () { - bookmark = null; - }); - editor.on('keydown', function (event) { - if ((event.keyCode === external_this_wp_keycodes_["BACKSPACE"] || event.keyCode === external_this_wp_keycodes_["DELETE"]) && isTmceEmpty(editor)) { - // delete the block - _this2.props.onReplace([]); - - event.preventDefault(); - event.stopImmediatePropagation(); - } - - var altKey = event.altKey; - /* - * Prevent Mousetrap from kicking in: TinyMCE already uses its own - * `alt+f10` shortcut to focus its toolbar. - */ - - if (altKey && event.keyCode === external_this_wp_keycodes_["F10"]) { - event.stopPropagation(); - } - }); // TODO: the following is for back-compat with WP 4.9, not needed in WP 5.0. Remove it after the release. - - editor.addButton('kitchensink', { - tooltip: Object(external_this_wp_i18n_["_x"])('More', 'button to expand options'), - icon: 'dashicon dashicons-editor-kitchensink', - onClick: function onClick() { - var button = this; - var active = !button.active(); - button.active(active); - editor.dom.toggleClass(ref, 'has-advanced-toolbar', active); - } - }); // Show the second, third, etc. toolbars when the `kitchensink` button is removed by a plugin. - - editor.on('init', function () { - if (editor.settings.toolbar1 && editor.settings.toolbar1.indexOf('kitchensink') === -1) { - editor.dom.addClass(ref, 'has-advanced-toolbar'); - } - }); - editor.addButton('wp_add_media', { - tooltip: Object(external_this_wp_i18n_["__"])('Insert Media'), - icon: 'dashicon dashicons-admin-media', - cmd: 'WP_Medialib' - }); // End TODO. - - editor.on('init', function () { - var rootNode = _this2.editor.getBody(); // Create the toolbar by refocussing the editor. - - - if (document.activeElement === rootNode) { - rootNode.blur(); - - _this2.editor.focus(); - } - }); - } - }, { - key: "focus", - value: function focus() { - if (this.editor) { - this.editor.focus(); - } - } - }, { - key: "onToolbarKeyDown", - value: function onToolbarKeyDown(event) { - // Prevent WritingFlow from kicking in and allow arrows navigation on the toolbar. - event.stopPropagation(); // Prevent Mousetrap from moving focus to the top toolbar when pressing `alt+f10` on this block toolbar. - - event.nativeEvent.stopImmediatePropagation(); - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var clientId = this.props.clientId; // Disable reasons: - // - // jsx-a11y/no-static-element-interactions - // - the toolbar itself is non-interactive, but must capture events - // from the KeyboardShortcuts component to stop their propagation. - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - - return [Object(external_this_wp_element_["createElement"])("div", { - key: "toolbar", - id: "toolbar-".concat(clientId), - ref: function ref(_ref) { - return _this3.ref = _ref; - }, - className: "block-library-classic__toolbar", - onClick: this.focus, - "data-placeholder": Object(external_this_wp_i18n_["__"])('Classic'), - onKeyDown: this.onToolbarKeyDown - }), Object(external_this_wp_element_["createElement"])("div", { - key: "editor", - id: "editor-".concat(clientId), - className: "wp-block-freeform block-library-rich-text__tinymce" - })]; - /* eslint-enable jsx-a11y/no-static-element-interactions */ - } - }]); - - return ClassicEdit; -}(external_this_wp_element_["Component"]); - - - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "11", - y: "8", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "11", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "8", - y: "8", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "8", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "5", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "5", - y: "8", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "8", - y: "14", - width: "8", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "14", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "14", - y: "8", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "17", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "17", - y: "8", - width: "2", - height: "2" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/save.js - - -/** - * WordPress dependencies - */ - -function save(_ref) { - var attributes = _ref.attributes; - var content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, content); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return classic_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return classic_settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/freeform", - category: "formatting", - attributes: { - content: { - type: "string", - source: "html" - } - } -}; - -var classic_name = metadata.name; - -var classic_settings = { - title: Object(external_this_wp_i18n_["_x"])('Classic', 'block title'), - description: Object(external_this_wp_i18n_["__"])('Use the classic WordPress editor.'), - icon: icon, - supports: { - className: false, - customClassName: false, - // Hide 'Add to Reusable Blocks' on Classic blocks. Showing it causes a - // confusing UX, because of its similarity to the 'Convert to Blocks' button. - reusable: false - }, - edit: edit_ClassicEdit, - save: save -}; - - -/***/ }), -/* 166 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/edit.js - - -/** - * WordPress dependencies - */ - - - - - - - -function MissingBlockWarning(_ref) { - var attributes = _ref.attributes, - convertToHTML = _ref.convertToHTML; - var originalName = attributes.originalName, - originalUndelimitedContent = attributes.originalUndelimitedContent; - var hasContent = !!originalUndelimitedContent; - var hasHTMLBlock = Object(external_this_wp_blocks_["getBlockType"])('core/html'); - var actions = []; - var messageHTML; - - if (hasContent && hasHTMLBlock) { - messageHTML = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'), originalName); - actions.push(Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "convert", - onClick: convertToHTML, - isLarge: true, - isPrimary: true - }, Object(external_this_wp_i18n_["__"])('Keep as HTML'))); - } else { - messageHTML = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'), originalName); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Warning"], { - actions: actions - }, messageHTML), Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, originalUndelimitedContent)); -} - -var MissingEdit = Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { - var clientId = _ref2.clientId, - attributes = _ref2.attributes; - - var _dispatch = dispatch('core/block-editor'), - replaceBlock = _dispatch.replaceBlock; - - return { - convertToHTML: function convertToHTML() { - replaceBlock(clientId, Object(external_this_wp_blocks_["createBlock"])('core/html', { - content: attributes.originalUndelimitedContent - })); - } - }; -})(MissingBlockWarning); -/* harmony default export */ var edit = (MissingEdit); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/save.js - - -/** - * WordPress dependencies - */ - -function save(_ref) { - var attributes = _ref.attributes; - // Preserve the missing block's content. - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.originalContent); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return missing_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var metadata = { - name: "core/missing", - category: "common", - attributes: { - originalName: { - type: "string" - }, - originalUndelimitedContent: { - type: "string" - }, - originalContent: { - type: "string", - source: "html" - } - } -}; - -var missing_name = metadata.name; - -var settings = { - name: missing_name, - title: Object(external_this_wp_i18n_["__"])('Unrecognized Block'), - description: Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for this block.'), - supports: { - className: false, - customClassName: false, - inserter: false, - html: false, - reusable: false - }, - edit: edit, - save: save -}; - - -/***/ }), -/* 167 */, -/* 168 */, -/* 169 */, -/* 170 */, -/* 171 */, -/* 172 */, -/* 173 */, -/* 174 */, -/* 175 */, -/* 176 */, -/* 177 */, -/* 178 */, -/* 179 */, -/* 180 */, -/* 181 */, -/* 182 */, -/* 183 */, -/* 184 */, -/* 185 */, -/* 186 */, -/* 187 */, -/* 188 */, -/* 189 */, -/* 190 */, -/* 191 */, -/* 192 */, -/* 193 */, -/* 194 */, -/* 195 */, -/* 196 */, -/* 197 */, -/* 198 */, -/* 199 */, -/* 200 */, -/* 201 */, -/* 202 */, -/* 203 */, -/* 204 */, -/* 205 */, -/* 206 */, -/* 207 */, -/* 208 */, -/* 209 */, -/* 210 */, -/* 211 */, -/* 212 */, -/* 213 */, -/* 214 */, -/* 215 */, -/* 216 */, -/* 217 */, -/* 218 */, -/* 219 */, -/* 220 */, -/* 221 */, -/* 222 */, -/* 223 */, -/* 224 */, -/* 225 */, -/* 226 */, -/* 227 */, -/* 228 */, -/* 229 */ -/***/ (function(module, exports, __webpack_require__) { - -/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */ -(function (global, factory) { - true ? module.exports = factory() : - undefined; -}(this, (function () { 'use strict'; - -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} - -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); -} - -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -function _iterableToArrayLimit(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; -} - -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); -} - -var FastAverageColor = -/*#__PURE__*/ -function () { - function FastAverageColor() { - _classCallCheck(this, FastAverageColor); - } - - _createClass(FastAverageColor, [{ - key: "getColorAsync", - - /** - * Get asynchronously the average color from not loaded image. - * - * @param {HTMLImageElement} resource - * @param {Function} callback - * @param {Object|null} [options] - * @param {Array} [options.defaultColor=[255, 255, 255, 255]] - * @param {*} [options.data] - * @param {string} [options.mode="speed"] "precision" or "speed" - * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant" - * @param {number} [options.step=1] - * @param {number} [options.left=0] - * @param {number} [options.top=0] - * @param {number} [options.width=width of resource] - * @param {number} [options.height=height of resource] - */ - value: function getColorAsync(resource, callback, options) { - if (resource.complete) { - callback.call(resource, this.getColor(resource, options), options && options.data); - } else { - this._bindImageEvents(resource, callback, options); - } - } - /** - * Get the average color from images, videos and canvas. - * - * @param {HTMLImageElement|HTMLVideoElement|HTMLCanvasElement} resource - * @param {Object|null} [options] - * @param {Array} [options.defaultColor=[255, 255, 255, 255]] - * @param {*} [options.data] - * @param {string} [options.mode="speed"] "precision" or "speed" - * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant" - * @param {number} [options.step=1] - * @param {number} [options.left=0] - * @param {number} [options.top=0] - * @param {number} [options.width=width of resource] - * @param {number} [options.height=height of resource] - * - * @returns {Object} - */ - - }, { - key: "getColor", - value: function getColor(resource, options) { - options = options || {}; - - var defaultColor = this._getDefaultColor(options), - originalSize = this._getOriginalSize(resource), - size = this._prepareSizeAndPosition(originalSize, options); - - var error = null, - value = defaultColor; - - if (!size.srcWidth || !size.srcHeight || !size.destWidth || !size.destHeight) { - return this._prepareResult(defaultColor, new Error('FastAverageColor: Incorrect sizes.')); - } - - if (!this._ctx) { - this._canvas = this._makeCanvas(); - this._ctx = this._canvas.getContext && this._canvas.getContext('2d'); - - if (!this._ctx) { - return this._prepareResult(defaultColor, new Error('FastAverageColor: Canvas Context 2D is not supported in this browser.')); - } - } - - this._canvas.width = size.destWidth; - this._canvas.height = size.destHeight; - - try { - this._ctx.clearRect(0, 0, size.destWidth, size.destHeight); - - this._ctx.drawImage(resource, size.srcLeft, size.srcTop, size.srcWidth, size.srcHeight, 0, 0, size.destWidth, size.destHeight); - - var bitmapData = this._ctx.getImageData(0, 0, size.destWidth, size.destHeight).data; - - value = this.getColorFromArray4(bitmapData, options); - } catch (e) { - // Security error, CORS - // https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image - error = e; - } - - return this._prepareResult(value, error); - } - /** - * Get the average color from a array when 1 pixel is 4 bytes. - * - * @param {Array|Uint8Array} arr - * @param {Object} [options] - * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant" - * @param {Array} [options.defaultColor=[255, 255, 255, 255]] - * @param {number} [options.step=1] - * - * @returns {Array} [red (0-255), green (0-255), blue (0-255), alpha (0-255)] - */ - - }, { - key: "getColorFromArray4", - value: function getColorFromArray4(arr, options) { - options = options || {}; - var bytesPerPixel = 4, - arrLength = arr.length; - - if (arrLength < bytesPerPixel) { - return this._getDefaultColor(options); - } - - var len = arrLength - arrLength % bytesPerPixel, - preparedStep = (options.step || 1) * bytesPerPixel, - algorithm = '_' + (options.algorithm || 'sqrt') + 'Algorithm'; - - if (typeof this[algorithm] !== 'function') { - throw new Error("FastAverageColor: ".concat(options.algorithm, " is unknown algorithm.")); - } - - return this[algorithm](arr, len, preparedStep); - } - /** - * Destroy the instance. - */ - - }, { - key: "destroy", - value: function destroy() { - delete this._canvas; - delete this._ctx; - } - }, { - key: "_getDefaultColor", - value: function _getDefaultColor(options) { - return this._getOption(options, 'defaultColor', [255, 255, 255, 255]); - } - }, { - key: "_getOption", - value: function _getOption(options, name, defaultValue) { - return typeof options[name] === 'undefined' ? defaultValue : options[name]; - } - }, { - key: "_prepareSizeAndPosition", - value: function _prepareSizeAndPosition(originalSize, options) { - var srcLeft = this._getOption(options, 'left', 0), - srcTop = this._getOption(options, 'top', 0), - srcWidth = this._getOption(options, 'width', originalSize.width), - srcHeight = this._getOption(options, 'height', originalSize.height), - destWidth = srcWidth, - destHeight = srcHeight; - - if (options.mode === 'precision') { - return { - srcLeft: srcLeft, - srcTop: srcTop, - srcWidth: srcWidth, - srcHeight: srcHeight, - destWidth: destWidth, - destHeight: destHeight - }; - } - - var maxSize = 100, - minSize = 10; - var factor; - - if (srcWidth > srcHeight) { - factor = srcWidth / srcHeight; - destWidth = maxSize; - destHeight = Math.round(destWidth / factor); - } else { - factor = srcHeight / srcWidth; - destHeight = maxSize; - destWidth = Math.round(destHeight / factor); - } - - if (destWidth > srcWidth || destHeight > srcHeight || destWidth < minSize || destHeight < minSize) { - destWidth = srcWidth; - destHeight = srcHeight; - } - - return { - srcLeft: srcLeft, - srcTop: srcTop, - srcWidth: srcWidth, - srcHeight: srcHeight, - destWidth: destWidth, - destHeight: destHeight - }; - } - }, { - key: "_simpleAlgorithm", - value: function _simpleAlgorithm(arr, len, preparedStep) { - var redTotal = 0, - greenTotal = 0, - blueTotal = 0, - alphaTotal = 0, - count = 0; - - for (var i = 0; i < len; i += preparedStep) { - var alpha = arr[i + 3], - red = arr[i] * alpha, - green = arr[i + 1] * alpha, - blue = arr[i + 2] * alpha; - redTotal += red; - greenTotal += green; - blueTotal += blue; - alphaTotal += alpha; - count++; - } - - return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0]; - } - }, { - key: "_sqrtAlgorithm", - value: function _sqrtAlgorithm(arr, len, preparedStep) { - var redTotal = 0, - greenTotal = 0, - blueTotal = 0, - alphaTotal = 0, - count = 0; - - for (var i = 0; i < len; i += preparedStep) { - var red = arr[i], - green = arr[i + 1], - blue = arr[i + 2], - alpha = arr[i + 3]; - redTotal += red * red * alpha; - greenTotal += green * green * alpha; - blueTotal += blue * blue * alpha; - alphaTotal += alpha; - count++; - } - - return alphaTotal ? [Math.round(Math.sqrt(redTotal / alphaTotal)), Math.round(Math.sqrt(greenTotal / alphaTotal)), Math.round(Math.sqrt(blueTotal / alphaTotal)), Math.round(alphaTotal / count)] : [0, 0, 0, 0]; - } - }, { - key: "_dominantAlgorithm", - value: function _dominantAlgorithm(arr, len, preparedStep) { - var colorHash = {}, - divider = 24; - - for (var i = 0; i < len; i += preparedStep) { - var red = arr[i], - green = arr[i + 1], - blue = arr[i + 2], - alpha = arr[i + 3], - key = Math.round(red / divider) + ',' + Math.round(green / divider) + ',' + Math.round(blue / divider); - - if (colorHash[key]) { - colorHash[key] = [colorHash[key][0] + red * alpha, colorHash[key][1] + green * alpha, colorHash[key][2] + blue * alpha, colorHash[key][3] + alpha, colorHash[key][4] + 1]; - } else { - colorHash[key] = [red * alpha, green * alpha, blue * alpha, alpha, 1]; - } - } - - var buffer = Object.keys(colorHash).map(function (key) { - return colorHash[key]; - }).sort(function (a, b) { - var countA = a[4], - countB = b[4]; - return countA > countB ? -1 : countA === countB ? 0 : 1; - }); - - var _buffer$ = _slicedToArray(buffer[0], 5), - redTotal = _buffer$[0], - greenTotal = _buffer$[1], - blueTotal = _buffer$[2], - alphaTotal = _buffer$[3], - count = _buffer$[4]; - - return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0]; - } - }, { - key: "_bindImageEvents", - value: function _bindImageEvents(resource, callback, options) { - var _this = this; - - options = options || {}; - - var data = options && options.data, - defaultColor = this._getDefaultColor(options), - onload = function onload() { - unbindEvents(); - callback.call(resource, _this.getColor(resource, options), data); - }, - onerror = function onerror() { - unbindEvents(); - callback.call(resource, _this._prepareResult(defaultColor, new Error('Image error')), data); - }, - onabort = function onabort() { - unbindEvents(); - callback.call(resource, _this._prepareResult(defaultColor, new Error('Image abort')), data); - }, - unbindEvents = function unbindEvents() { - resource.removeEventListener('load', onload); - resource.removeEventListener('error', onerror); - resource.removeEventListener('abort', onabort); - }; - - resource.addEventListener('load', onload); - resource.addEventListener('error', onerror); - resource.addEventListener('abort', onabort); - } - }, { - key: "_prepareResult", - value: function _prepareResult(value, error) { - var rgb = value.slice(0, 3), - rgba = [].concat(rgb, value[3] / 255), - isDark = this._isDark(value); - - return { - error: error, - value: value, - rgb: 'rgb(' + rgb.join(',') + ')', - rgba: 'rgba(' + rgba.join(',') + ')', - hex: this._arrayToHex(rgb), - hexa: this._arrayToHex(value), - isDark: isDark, - isLight: !isDark - }; - } - }, { - key: "_getOriginalSize", - value: function _getOriginalSize(resource) { - if (resource instanceof HTMLImageElement) { - return { - width: resource.naturalWidth, - height: resource.naturalHeight - }; - } - - if (resource instanceof HTMLVideoElement) { - return { - width: resource.videoWidth, - height: resource.videoHeight - }; - } - - return { - width: resource.width, - height: resource.height - }; - } - }, { - key: "_toHex", - value: function _toHex(num) { - var str = num.toString(16); - return str.length === 1 ? '0' + str : str; - } - }, { - key: "_arrayToHex", - value: function _arrayToHex(arr) { - return '#' + arr.map(this._toHex).join(''); - } - }, { - key: "_isDark", - value: function _isDark(color) { - // http://www.w3.org/TR/AERT#color-contrast - var result = (color[0] * 299 + color[1] * 587 + color[2] * 114) / 1000; - return result < 128; - } - }, { - key: "_makeCanvas", - value: function _makeCanvas() { - return typeof window === 'undefined' ? new OffscreenCanvas(1, 1) : document.createElement('canvas'); - } - }]); - - return FastAverageColor; -}(); - -return FastAverageColor; - -}))); - - -/***/ }), -/* 230 */, -/* 231 */, -/* 232 */, -/* 233 */, -/* 234 */, -/* 235 */, -/* 236 */, -/* 237 */, -/* 238 */, -/* 239 */, -/* 240 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/deprecated.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -var blockSupports = { - className: false, - anchor: true -}; -var blockAttributes = { - align: { - type: 'string' - }, - content: { - type: 'string', - source: 'html', - selector: 'h1,h2,h3,h4,h5,h6', - default: '' - }, - level: { - type: 'number', - default: 2 - }, - placeholder: { - type: 'string' - }, - textColor: { - type: 'string' - }, - customTextColor: { - type: 'string' - } -}; -var deprecated = [{ - supports: blockSupports, - attributes: blockAttributes, - save: function save(_ref) { - var attributes = _ref.attributes; - var align = attributes.align, - level = attributes.level, - content = attributes.content, - textColor = attributes.textColor, - customTextColor = attributes.customTextColor; - var tagName = 'h' + level; - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var className = classnames_default()(Object(defineProperty["a" /* default */])({}, textClass, textClass)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - className: className ? className : undefined, - tagName: tagName, - style: { - textAlign: align, - color: textClass ? undefined : customTextColor - }, - value: content - }); - } -}]; -/* harmony default export */ var heading_deprecated = (deprecated); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-icon.js - - -/** - * WordPress dependencies - */ - -function HeadingLevelIcon(_ref) { - var level = _ref.level; - var levelToPath = { - 1: 'M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z', - 2: 'M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z', - 3: 'M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z', - 4: 'M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z', - 5: 'M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z', - 6: 'M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z' - }; - - if (!levelToPath.hasOwnProperty(level)) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "20", - height: "20", - viewBox: "0 0 20 20", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: levelToPath[level] - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-toolbar.js - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var heading_toolbar_HeadingToolbar = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(HeadingToolbar, _Component); - - function HeadingToolbar() { - Object(classCallCheck["a" /* default */])(this, HeadingToolbar); - - return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HeadingToolbar).apply(this, arguments)); - } - - Object(createClass["a" /* default */])(HeadingToolbar, [{ - key: "createLevelControl", - value: function createLevelControl(targetLevel, selectedLevel, onChange) { - return { - icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, { - level: targetLevel - }), - // translators: %s: heading level e.g: "1", "2", "3" - title: Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Heading %d'), targetLevel), - isActive: targetLevel === selectedLevel, - onClick: function onClick() { - return onChange(targetLevel); - } - }; - } - }, { - key: "render", - value: function render() { - var _this = this; - - var _this$props = this.props, - _this$props$isCollaps = _this$props.isCollapsed, - isCollapsed = _this$props$isCollaps === void 0 ? true : _this$props$isCollaps, - minLevel = _this$props.minLevel, - maxLevel = _this$props.maxLevel, - selectedLevel = _this$props.selectedLevel, - onChange = _this$props.onChange; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - isCollapsed: isCollapsed, - icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, { - level: selectedLevel - }), - controls: Object(external_lodash_["range"])(minLevel, maxLevel).map(function (index) { - return _this.createLevelControl(index, selectedLevel, onChange); - }) - }); - } - }]); - - return HeadingToolbar; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var heading_toolbar = (heading_toolbar_HeadingToolbar); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/edit.js - - - - -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - -var HeadingColorUI = Object(external_this_wp_element_["memo"])(function (_ref) { - var textColorValue = _ref.textColorValue, - setTextColor = _ref.setTextColor; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - initialOpen: false, - colorSettings: [{ - value: textColorValue, - onChange: setTextColor, - label: Object(external_this_wp_i18n_["__"])('Text Color') - }] - }); -}); - -function HeadingEdit(_ref2) { - var _classnames; - - var attributes = _ref2.attributes, - setAttributes = _ref2.setAttributes, - mergeBlocks = _ref2.mergeBlocks, - onReplace = _ref2.onReplace, - className = _ref2.className, - textColor = _ref2.textColor, - setTextColor = _ref2.setTextColor; - var align = attributes.align, - content = attributes.content, - level = attributes.level, - placeholder = attributes.placeholder; - var tagName = 'h' + level; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(heading_toolbar, { - minLevel: 2, - maxLevel: 5, - selectedLevel: level, - onChange: function onChange(newLevel) { - return setAttributes({ - level: newLevel - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { - value: align, - onChange: function onChange(nextAlign) { - setAttributes({ - align: nextAlign - }); - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Heading Settings') - }, Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Level')), Object(external_this_wp_element_["createElement"])(heading_toolbar, { - isCollapsed: false, - minLevel: 1, - maxLevel: 7, - selectedLevel: level, - onChange: function onChange(newLevel) { - return setAttributes({ - level: newLevel - }); - } - })), Object(external_this_wp_element_["createElement"])(HeadingColorUI, { - setTextColor: setTextColor, - textColorValue: textColor.color - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - identifier: "content", - wrapperClassName: "wp-block-heading", - tagName: tagName, - value: content, - onChange: function onChange(value) { - return setAttributes({ - content: value - }); - }, - onMerge: mergeBlocks, - onSplit: function onSplit(value) { - if (!value) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph'); - } - - return Object(external_this_wp_blocks_["createBlock"])('core/heading', Object(objectSpread["a" /* default */])({}, attributes, { - content: value - })); - }, - onReplace: onReplace, - onRemove: function onRemove() { - return onReplace([]); - }, - className: classnames_default()(className, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor.color), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), _classnames)), - placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…'), - style: { - color: textColor.color - } - })); -} - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', { - textColor: 'color' -})])(HeadingEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/save.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save_save(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var align = attributes.align, - content = attributes.content, - customTextColor = attributes.customTextColor, - level = attributes.level, - textColor = attributes.textColor; - var tagName = 'h' + level; - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), _classnames)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - className: className ? className : undefined, - tagName: tagName, - style: { - color: textClass ? undefined : customTextColor - }, - value: content - }); -} - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(17); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/shared.js -/** - * Given a node name string for a heading node, returns its numeric level. - * - * @param {string} nodeName Heading node name. - * - * @return {number} Heading level. - */ -function getLevelFromHeadingNodeName(nodeName) { - return Number(nodeName.substr(1)); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/transforms.js - - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var transforms = { - from: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(_ref) { - var content = _ref.content; - return Object(external_this_wp_blocks_["createBlock"])('core/heading', { - content: content - }); - } - }, { - type: 'raw', - selector: 'h1,h2,h3,h4,h5,h6', - schema: { - h1: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - h2: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - h3: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - h4: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - h5: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - h6: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - }, - transform: function transform(node) { - return Object(external_this_wp_blocks_["createBlock"])('core/heading', Object(objectSpread["a" /* default */])({}, Object(external_this_wp_blocks_["getBlockAttributes"])('core/heading', node.outerHTML), { - level: getLevelFromHeadingNodeName(node.nodeName) - })); - } - }].concat(Object(toConsumableArray["a" /* default */])([2, 3, 4, 5, 6].map(function (level) { - return { - type: 'prefix', - prefix: Array(level + 1).join('#'), - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core/heading', { - level: level, - content: content - }); - } - }; - }))), - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(_ref2) { - var content = _ref2.content; - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: content - }); - } - }] -}; -/* harmony default export */ var heading_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return heading_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/heading", - category: "common", - attributes: { - align: { - type: "string" - }, - content: { - type: "string", - source: "html", - selector: "h1,h2,h3,h4,h5,h6", - "default": "" - }, - level: { - type: "number", - "default": 2 - }, - placeholder: { - type: "string" - }, - textColor: { - type: "string" - }, - customTextColor: { - type: "string" - } - } -}; - - -var heading_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Heading'), - description: Object(external_this_wp_i18n_["__"])('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'), - icon: 'heading', - keywords: [Object(external_this_wp_i18n_["__"])('title'), Object(external_this_wp_i18n_["__"])('subtitle')], - supports: { - className: false, - anchor: true - }, - example: { - attributes: { - content: Object(external_this_wp_i18n_["__"])('Code is Poetry'), - level: 2 - } - }, - transforms: heading_transforms, - deprecated: heading_deprecated, - merge: function merge(attributes, attributesToMerge) { - return { - content: (attributes.content || '') + (attributesToMerge.content || '') - }; - }, - edit: edit, - save: save_save -}; - - -/***/ }), -/* 241 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/shared.js -/** - * External dependencies - */ - -function defaultColumnsNumber(attributes) { - return Math.min(3, attributes.images.length); -} -var shared_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) { - var imageProps = Object(external_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']); - imageProps.url = Object(external_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url; - var fullUrl = Object(external_lodash_["get"])(image, ['sizes', 'full', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'full', 'source_url']); - - if (fullUrl) { - imageProps.fullUrl = fullUrl; - } - - return imageProps; -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/deprecated.js - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -var deprecated = [{ - attributes: { - images: { - type: 'array', - default: [], - source: 'query', - selector: 'ul.wp-block-gallery .blocks-gallery-item', - query: { - url: { - source: 'attribute', - selector: 'img', - attribute: 'src' - }, - fullUrl: { - source: 'attribute', - selector: 'img', - attribute: 'data-full-url' - }, - alt: { - source: 'attribute', - selector: 'img', - attribute: 'alt', - default: '' - }, - id: { - source: 'attribute', - selector: 'img', - attribute: 'data-id' - }, - link: { - source: 'attribute', - selector: 'img', - attribute: 'data-link' - }, - caption: { - type: 'array', - source: 'children', - selector: 'figcaption' - } - } - }, - ids: { - type: 'array', - default: [] - }, - columns: { - type: 'number' - }, - imageCrop: { - type: 'boolean', - default: true - }, - linkTo: { - type: 'string', - default: 'none' - } - }, - save: function save(_ref) { - var attributes = _ref.attributes; - var images = attributes.images, - _attributes$columns = attributes.columns, - columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, - imageCrop = attributes.imageCrop, - linkTo = attributes.linkTo; - return Object(external_this_wp_element_["createElement"])("ul", { - className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') - }, images.map(function (image) { - var href; - - switch (linkTo) { - case 'media': - href = image.fullUrl || image.url; - break; - - case 'attachment': - href = image.link; - break; - } - - var img = Object(external_this_wp_element_["createElement"])("img", { - src: image.url, - alt: image.alt, - "data-id": image.id, - "data-full-url": image.fullUrl, - "data-link": image.link, - className: image.id ? "wp-image-".concat(image.id) : null - }); - return Object(external_this_wp_element_["createElement"])("li", { - key: image.id || image.url, - className: "blocks-gallery-item" - }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: image.caption - }))); - })); - } -}, { - attributes: { - images: { - type: 'array', - default: [], - source: 'query', - selector: 'ul.wp-block-gallery .blocks-gallery-item', - query: { - url: { - source: 'attribute', - selector: 'img', - attribute: 'src' - }, - alt: { - source: 'attribute', - selector: 'img', - attribute: 'alt', - default: '' - }, - id: { - source: 'attribute', - selector: 'img', - attribute: 'data-id' - }, - link: { - source: 'attribute', - selector: 'img', - attribute: 'data-link' - }, - caption: { - type: 'array', - source: 'children', - selector: 'figcaption' - } - } - }, - columns: { - type: 'number' - }, - imageCrop: { - type: 'boolean', - default: true - }, - linkTo: { - type: 'string', - default: 'none' - } - }, - isEligible: function isEligible(_ref2) { - var images = _ref2.images, - ids = _ref2.ids; - return images && images.length > 0 && (!ids && images || ids && images && ids.length !== images.length || Object(external_lodash_["some"])(images, function (id, index) { - if (!id && ids[index] !== null) { - return true; - } - - return parseInt(id, 10) !== ids[index]; - })); - }, - migrate: function migrate(attributes) { - return Object(objectSpread["a" /* default */])({}, attributes, { - ids: Object(external_lodash_["map"])(attributes.images, function (_ref3) { - var id = _ref3.id; - - if (!id) { - return null; - } - - return parseInt(id, 10); - }) - }); - }, - save: function save(_ref4) { - var attributes = _ref4.attributes; - var images = attributes.images, - _attributes$columns2 = attributes.columns, - columns = _attributes$columns2 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns2, - imageCrop = attributes.imageCrop, - linkTo = attributes.linkTo; - return Object(external_this_wp_element_["createElement"])("ul", { - className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') - }, images.map(function (image) { - var href; - - switch (linkTo) { - case 'media': - href = image.url; - break; - - case 'attachment': - href = image.link; - break; - } - - var img = Object(external_this_wp_element_["createElement"])("img", { - src: image.url, - alt: image.alt, - "data-id": image.id, - "data-link": image.link, - className: image.id ? "wp-image-".concat(image.id) : null - }); - return Object(external_this_wp_element_["createElement"])("li", { - key: image.id || image.url, - className: "blocks-gallery-item" - }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: image.caption - }))); - })); - } -}, { - attributes: { - images: { - type: 'array', - default: [], - source: 'query', - selector: 'div.wp-block-gallery figure.blocks-gallery-image img', - query: { - url: { - source: 'attribute', - attribute: 'src' - }, - alt: { - source: 'attribute', - attribute: 'alt', - default: '' - }, - id: { - source: 'attribute', - attribute: 'data-id' - } - } - }, - columns: { - type: 'number' - }, - imageCrop: { - type: 'boolean', - default: true - }, - linkTo: { - type: 'string', - default: 'none' - }, - align: { - type: 'string', - default: 'none' - } - }, - save: function save(_ref5) { - var attributes = _ref5.attributes; - var images = attributes.images, - _attributes$columns3 = attributes.columns, - columns = _attributes$columns3 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns3, - align = attributes.align, - imageCrop = attributes.imageCrop, - linkTo = attributes.linkTo; - var className = classnames_default()("columns-".concat(columns), { - alignnone: align === 'none', - 'is-cropped': imageCrop - }); - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, images.map(function (image) { - var href; - - switch (linkTo) { - case 'media': - href = image.url; - break; - - case 'attachment': - href = image.link; - break; - } - - var img = Object(external_this_wp_element_["createElement"])("img", { - src: image.url, - alt: image.alt, - "data-id": image.id - }); - return Object(external_this_wp_element_["createElement"])("figure", { - key: image.id || image.url, - className: "blocks-gallery-image" - }, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, img) : img); - })); - } -}]; -/* harmony default export */ var gallery_deprecated = (deprecated); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(17); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(35); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/icons.js - - -/** - * WordPress dependencies - */ - -var icon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z" -}))); -var leftArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "18", - height: "18", - viewBox: "0 0 18 18", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z" -})); -var rightArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "18", - height: "18", - viewBox: "0 0 18 18", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z" -})); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - -var gallery_image_GalleryImage = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(GalleryImage, _Component); - - function GalleryImage() { - var _this; - - Object(classCallCheck["a" /* default */])(this, GalleryImage); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryImage).apply(this, arguments)); - _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectCaption = _this.onSelectCaption.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - captionSelected: false - }; - return _this; - } - - Object(createClass["a" /* default */])(GalleryImage, [{ - key: "bindContainer", - value: function bindContainer(ref) { - this.container = ref; - } - }, { - key: "onSelectCaption", - value: function onSelectCaption() { - if (!this.state.captionSelected) { - this.setState({ - captionSelected: true - }); - } - - if (!this.props.isSelected) { - this.props.onSelect(); - } - } - }, { - key: "onSelectImage", - value: function onSelectImage() { - if (!this.props.isSelected) { - this.props.onSelect(); - } - - if (this.state.captionSelected) { - this.setState({ - captionSelected: false - }); - } - } - }, { - key: "onRemoveImage", - value: function onRemoveImage(event) { - if (this.container === document.activeElement && this.props.isSelected && [external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["DELETE"]].indexOf(event.keyCode) !== -1) { - event.stopPropagation(); - event.preventDefault(); - this.props.onRemove(); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props = this.props, - isSelected = _this$props.isSelected, - image = _this$props.image, - url = _this$props.url; - - if (image && !url) { - this.props.setAttributes({ - url: image.source_url, - alt: image.alt_text - }); - } // unselect the caption so when the user selects other image and comeback - // the caption is not immediately selected - - - if (this.state.captionSelected && !isSelected && prevProps.isSelected) { - this.setState({ - captionSelected: false - }); - } - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - url = _this$props2.url, - alt = _this$props2.alt, - id = _this$props2.id, - linkTo = _this$props2.linkTo, - link = _this$props2.link, - isFirstItem = _this$props2.isFirstItem, - isLastItem = _this$props2.isLastItem, - isSelected = _this$props2.isSelected, - caption = _this$props2.caption, - onRemove = _this$props2.onRemove, - onMoveForward = _this$props2.onMoveForward, - onMoveBackward = _this$props2.onMoveBackward, - setAttributes = _this$props2.setAttributes, - ariaLabel = _this$props2['aria-label']; - var href; - - switch (linkTo) { - case 'media': - href = url; - break; - - case 'attachment': - href = link; - break; - } - - var img = // Disable reason: Image itself is not meant to be interactive, but should - // direct image selection and unfocus caption fields. - - /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ - Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", { - src: url, - alt: alt, - "data-id": id, - onClick: this.onSelectImage, - onFocus: this.onSelectImage, - onKeyDown: this.onRemoveImage, - tabIndex: "0", - "aria-label": ariaLabel, - ref: this.bindContainer - }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)) - /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */ - ; - var className = classnames_default()({ - 'is-selected': isSelected, - 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url) - }); - return Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, img) : img, Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-gallery-item__move-menu" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: leftArrow, - onClick: isFirstItem ? undefined : onMoveBackward, - className: "blocks-gallery-item__move-backward", - label: Object(external_this_wp_i18n_["__"])('Move image backward'), - "aria-disabled": isFirstItem, - disabled: !isSelected - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: rightArrow, - onClick: isLastItem ? undefined : onMoveForward, - className: "blocks-gallery-item__move-forward", - label: Object(external_this_wp_i18n_["__"])('Move image forward'), - "aria-disabled": isLastItem, - disabled: !isSelected - })), Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-gallery-item__inline-menu" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: "no-alt", - onClick: onRemove, - className: "blocks-gallery-item__remove", - label: Object(external_this_wp_i18n_["__"])('Remove image'), - disabled: !isSelected - })), (isSelected || caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "figcaption", - placeholder: isSelected ? Object(external_this_wp_i18n_["__"])('Write caption…') : null, - value: caption, - isSelected: this.state.captionSelected, - onChange: function onChange(newCaption) { - return setAttributes({ - caption: newCaption - }); - }, - unstableOnFocus: this.onSelectCaption, - inlineToolbar: true - })); - } - }]); - - return GalleryImage; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var gallery_image = (Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core'), - getMedia = _select.getMedia; - - var id = ownProps.id; - return { - image: id ? getMedia(id) : null - }; -})(gallery_image_GalleryImage)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/edit.js - - - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - - -var MAX_COLUMNS = 8; -var linkOptions = [{ - value: 'attachment', - label: Object(external_this_wp_i18n_["__"])('Attachment Page') -}, { - value: 'media', - label: Object(external_this_wp_i18n_["__"])('Media File') -}, { - value: 'none', - label: Object(external_this_wp_i18n_["__"])('None') -}]; -var ALLOWED_MEDIA_TYPES = ['image']; - -var edit_GalleryEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(GalleryEdit, _Component); - - function GalleryEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, GalleryEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryEdit).apply(this, arguments)); - _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectImages = _this.onSelectImages.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setLinkTo = _this.setLinkTo.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setColumnsNumber = _this.setColumnsNumber.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.toggleImageCrop = _this.toggleImageCrop.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onMove = _this.onMove.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onMoveForward = _this.onMoveForward.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onMoveBackward = _this.onMoveBackward.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setImageAttributes = _this.setImageAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setAttributes = _this.setAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onFocusGalleryCaption = _this.onFocusGalleryCaption.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - selectedImage: null, - attachmentCaptions: null - }; - return _this; - } - - Object(createClass["a" /* default */])(GalleryEdit, [{ - key: "setAttributes", - value: function setAttributes(attributes) { - if (attributes.ids) { - throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes'); - } - - if (attributes.images) { - attributes = Object(objectSpread["a" /* default */])({}, attributes, { - ids: Object(external_lodash_["map"])(attributes.images, 'id') - }); - } - - this.props.setAttributes(attributes); - } - }, { - key: "onSelectImage", - value: function onSelectImage(index) { - var _this2 = this; - - return function () { - if (_this2.state.selectedImage !== index) { - _this2.setState({ - selectedImage: index - }); - } - }; - } - }, { - key: "onMove", - value: function onMove(oldIndex, newIndex) { - var images = Object(toConsumableArray["a" /* default */])(this.props.attributes.images); - - images.splice(newIndex, 1, this.props.attributes.images[oldIndex]); - images.splice(oldIndex, 1, this.props.attributes.images[newIndex]); - this.setState({ - selectedImage: newIndex - }); - this.setAttributes({ - images: images - }); - } - }, { - key: "onMoveForward", - value: function onMoveForward(oldIndex) { - var _this3 = this; - - return function () { - if (oldIndex === _this3.props.attributes.images.length - 1) { - return; - } - - _this3.onMove(oldIndex, oldIndex + 1); - }; - } - }, { - key: "onMoveBackward", - value: function onMoveBackward(oldIndex) { - var _this4 = this; - - return function () { - if (oldIndex === 0) { - return; - } - - _this4.onMove(oldIndex, oldIndex - 1); - }; - } - }, { - key: "onRemoveImage", - value: function onRemoveImage(index) { - var _this5 = this; - - return function () { - var images = Object(external_lodash_["filter"])(_this5.props.attributes.images, function (img, i) { - return index !== i; - }); - var columns = _this5.props.attributes.columns; - - _this5.setState({ - selectedImage: null - }); - - _this5.setAttributes({ - images: images, - columns: columns ? Math.min(images.length, columns) : columns - }); - }; - } - }, { - key: "selectCaption", - value: function selectCaption(newImage, images, attachmentCaptions) { - var currentImage = Object(external_lodash_["find"])(images, { - id: newImage.id - }); - var currentImageCaption = currentImage ? currentImage.caption : newImage.caption; - - if (!attachmentCaptions) { - return currentImageCaption; - } - - var attachment = Object(external_lodash_["find"])(attachmentCaptions, { - id: newImage.id - }); // if the attachment caption is updated - - if (attachment && attachment.caption !== newImage.caption) { - return newImage.caption; - } - - return currentImageCaption; - } - }, { - key: "onSelectImages", - value: function onSelectImages(newImages) { - var _this6 = this; - - var _this$props$attribute = this.props.attributes, - columns = _this$props$attribute.columns, - images = _this$props$attribute.images; - var attachmentCaptions = this.state.attachmentCaptions; - this.setState({ - attachmentCaptions: newImages.map(function (newImage) { - return { - id: newImage.id, - caption: newImage.caption - }; - }) - }); - this.setAttributes({ - images: newImages.map(function (newImage) { - return Object(objectSpread["a" /* default */])({}, shared_pickRelevantMediaFiles(newImage), { - caption: _this6.selectCaption(newImage, images, attachmentCaptions) - }); - }), - columns: columns ? Math.min(newImages.length, columns) : columns - }); - } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - } - }, { - key: "setLinkTo", - value: function setLinkTo(value) { - this.setAttributes({ - linkTo: value - }); - } - }, { - key: "setColumnsNumber", - value: function setColumnsNumber(value) { - this.setAttributes({ - columns: value - }); - } - }, { - key: "toggleImageCrop", - value: function toggleImageCrop() { - this.setAttributes({ - imageCrop: !this.props.attributes.imageCrop - }); - } - }, { - key: "getImageCropHelp", - value: function getImageCropHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('Thumbnails are cropped to align.') : Object(external_this_wp_i18n_["__"])('Thumbnails are not cropped.'); - } - }, { - key: "onFocusGalleryCaption", - value: function onFocusGalleryCaption() { - this.setState({ - selectedImage: null - }); - } - }, { - key: "setImageAttributes", - value: function setImageAttributes(index, attributes) { - var images = this.props.attributes.images; - var setAttributes = this.setAttributes; - - if (!images[index]) { - return; - } - - setAttributes({ - images: [].concat(Object(toConsumableArray["a" /* default */])(images.slice(0, index)), [Object(objectSpread["a" /* default */])({}, images[index], attributes)], Object(toConsumableArray["a" /* default */])(images.slice(index + 1))) - }); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - var _this$props = this.props, - attributes = _this$props.attributes, - mediaUpload = _this$props.mediaUpload; - var images = attributes.images; - - if (Object(external_lodash_["every"])(images, function (_ref) { - var url = _ref.url; - return Object(external_this_wp_blob_["isBlobURL"])(url); - })) { - var filesList = Object(external_lodash_["map"])(images, function (_ref2) { - var url = _ref2.url; - return Object(external_this_wp_blob_["getBlobByURL"])(url); - }); - Object(external_lodash_["forEach"])(images, function (_ref3) { - var url = _ref3.url; - return Object(external_this_wp_blob_["revokeBlobURL"])(url); - }); - mediaUpload({ - filesList: filesList, - onFileChange: this.onSelectImages, - allowedTypes: ['image'] - }); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - // Deselect images when deselecting the block - if (!this.props.isSelected && prevProps.isSelected) { - this.setState({ - selectedImage: null, - captionSelected: false - }); - } - } - }, { - key: "render", - value: function render() { - var _classnames, - _this7 = this; - - var _this$props2 = this.props, - attributes = _this$props2.attributes, - className = _this$props2.className, - isSelected = _this$props2.isSelected, - noticeUI = _this$props2.noticeUI, - setAttributes = _this$props2.setAttributes; - var align = attributes.align, - _attributes$columns = attributes.columns, - columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, - caption = attributes.caption, - imageCrop = attributes.imageCrop, - images = attributes.images, - linkTo = attributes.linkTo; - var hasImages = !!images.length; - var hasImagesWithId = hasImages && Object(external_lodash_["some"])(images, function (_ref4) { - var id = _ref4.id; - return id; - }); - var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - addToGallery: hasImagesWithId, - isAppender: hasImages, - className: className, - dropZoneUIOnly: hasImages && !isSelected, - icon: !hasImages && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: icon - }), - labels: { - title: !hasImages && Object(external_this_wp_i18n_["__"])('Gallery'), - instructions: !hasImages && Object(external_this_wp_i18n_["__"])('Drag images, upload new ones or select files from your library.') - }, - onSelect: this.onSelectImages, - accept: "image/*", - allowedTypes: ALLOWED_MEDIA_TYPES, - multiple: true, - value: hasImagesWithId ? images : undefined, - onError: this.onUploadError, - notices: hasImages ? undefined : noticeUI - }); - - if (!hasImages) { - return mediaPlaceholder; - } - - var captionClassNames = classnames_default()('blocks-gallery-caption', { - 'screen-reader-text': !isSelected && external_this_wp_blockEditor_["RichText"].isEmpty(caption) - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Gallery Settings') - }, images.length > 1 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: this.setColumnsNumber, - min: 1, - max: Math.min(MAX_COLUMNS, images.length), - required: true - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Crop Images'), - checked: !!imageCrop, - onChange: this.toggleImageCrop, - help: this.getImageCropHelp - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Link To'), - value: linkTo, - onChange: this.setLinkTo, - options: linkOptions - }))), noticeUI, Object(external_this_wp_element_["createElement"])("figure", { - className: classnames_default()(className, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "columns-".concat(columns), columns), Object(defineProperty["a" /* default */])(_classnames, 'is-cropped', imageCrop), _classnames)) - }, Object(external_this_wp_element_["createElement"])("ul", { - className: "blocks-gallery-grid" - }, images.map(function (img, index) { - /* translators: %1$d is the order number of the image, %2$d is the total number of images. */ - var ariaLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('image %1$d of %2$d in gallery'), index + 1, images.length); - return Object(external_this_wp_element_["createElement"])("li", { - className: "blocks-gallery-item", - key: img.id || img.url - }, Object(external_this_wp_element_["createElement"])(gallery_image, { - url: img.url, - alt: img.alt, - id: img.id, - isFirstItem: index === 0, - isLastItem: index + 1 === images.length, - isSelected: isSelected && _this7.state.selectedImage === index, - onMoveBackward: _this7.onMoveBackward(index), - onMoveForward: _this7.onMoveForward(index), - onRemove: _this7.onRemoveImage(index), - onSelect: _this7.onSelectImage(index), - setAttributes: function setAttributes(attrs) { - return _this7.setImageAttributes(index, attrs); - }, - caption: img.caption, - "aria-label": ariaLabel - })); - })), mediaPlaceholder, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "figcaption", - className: captionClassNames, - placeholder: Object(external_this_wp_i18n_["__"])('Write gallery caption…'), - value: caption, - unstableOnFocus: this.onFocusGalleryCaption, - onChange: function onChange(value) { - return setAttributes({ - caption: value - }); - }, - inlineToolbar: true - }))); - } - }]); - - return GalleryEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - var _getSettings = getSettings(), - __experimentalMediaUpload = _getSettings.__experimentalMediaUpload; - - return { - mediaUpload: __experimentalMediaUpload - }; -}), external_this_wp_components_["withNotices"]])(edit_GalleryEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/save.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -function save_save(_ref) { - var attributes = _ref.attributes; - var images = attributes.images, - _attributes$columns = attributes.columns, - columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, - imageCrop = attributes.imageCrop, - caption = attributes.caption, - linkTo = attributes.linkTo; - return Object(external_this_wp_element_["createElement"])("figure", { - className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') - }, Object(external_this_wp_element_["createElement"])("ul", { - className: "blocks-gallery-grid" - }, images.map(function (image) { - var href; - - switch (linkTo) { - case 'media': - href = image.fullUrl || image.url; - break; - - case 'attachment': - href = image.link; - break; - } - - var img = Object(external_this_wp_element_["createElement"])("img", { - src: image.url, - alt: image.alt, - "data-id": image.id, - "data-full-url": image.fullUrl, - "data-link": image.link, - className: image.id ? "wp-image-".concat(image.id) : null - }); - return Object(external_this_wp_element_["createElement"])("li", { - key: image.id || image.url, - className: "blocks-gallery-item" - }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, img) : img, !external_this_wp_blockEditor_["RichText"].isEmpty(image.caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - className: "blocks-gallery-item__caption", - value: image.caption - }))); - })), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - className: "blocks-gallery-caption", - value: caption - })); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/transforms.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -var parseShortcodeIds = function parseShortcodeIds(ids) { - if (!ids) { - return []; - } - - return ids.split(',').map(function (id) { - return parseInt(id, 10); - }); -}; - -var transforms = { - from: [{ - type: 'block', - isMultiBlock: true, - blocks: ['core/image'], - transform: function transform(attributes) { - // Init the align attribute from the first item which may be either the placeholder or an image. - var align = attributes[0].align; // Loop through all the images and check if they have the same align. - - align = Object(external_lodash_["every"])(attributes, ['align', align]) ? align : undefined; - var validImages = Object(external_lodash_["filter"])(attributes, function (_ref) { - var url = _ref.url; - return url; - }); - return Object(external_this_wp_blocks_["createBlock"])('core/gallery', { - images: validImages.map(function (_ref2) { - var id = _ref2.id, - url = _ref2.url, - alt = _ref2.alt, - caption = _ref2.caption; - return { - id: id, - url: url, - alt: alt, - caption: caption - }; - }), - ids: validImages.map(function (_ref3) { - var id = _ref3.id; - return id; - }), - align: align - }); - } - }, { - type: 'shortcode', - tag: 'gallery', - attributes: { - images: { - type: 'array', - shortcode: function shortcode(_ref4) { - var ids = _ref4.named.ids; - return parseShortcodeIds(ids).map(function (id) { - return { - id: id - }; - }); - } - }, - ids: { - type: 'array', - shortcode: function shortcode(_ref5) { - var ids = _ref5.named.ids; - return parseShortcodeIds(ids); - } - }, - columns: { - type: 'number', - shortcode: function shortcode(_ref6) { - var _ref6$named$columns = _ref6.named.columns, - columns = _ref6$named$columns === void 0 ? '3' : _ref6$named$columns; - return parseInt(columns, 10); - } - }, - linkTo: { - type: 'string', - shortcode: function shortcode(_ref7) { - var _ref7$named$link = _ref7.named.link, - link = _ref7$named$link === void 0 ? 'attachment' : _ref7$named$link; - return link === 'file' ? 'media' : link; - } - } - } - }, { - // When created by drag and dropping multiple files on an insertion point - type: 'files', - isMatch: function isMatch(files) { - return files.length !== 1 && Object(external_lodash_["every"])(files, function (file) { - return file.type.indexOf('image/') === 0; - }); - }, - transform: function transform(files) { - var block = Object(external_this_wp_blocks_["createBlock"])('core/gallery', { - images: files.map(function (file) { - return shared_pickRelevantMediaFiles({ - url: Object(external_this_wp_blob_["createBlobURL"])(file) - }); - }) - }); - return block; - } - }], - to: [{ - type: 'block', - blocks: ['core/image'], - transform: function transform(_ref8) { - var images = _ref8.images, - align = _ref8.align; - - if (images.length > 0) { - return images.map(function (_ref9) { - var id = _ref9.id, - url = _ref9.url, - alt = _ref9.alt, - caption = _ref9.caption; - return Object(external_this_wp_blocks_["createBlock"])('core/image', { - id: id, - url: url, - alt: alt, - caption: caption, - align: align - }); - }); - } - - return Object(external_this_wp_blocks_["createBlock"])('core/image', { - align: align - }); - } - }] -}; -/* harmony default export */ var gallery_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return gallery_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var metadata = { - name: "core/gallery", - category: "common", - attributes: { - images: { - type: "array", - "default": [], - source: "query", - selector: ".blocks-gallery-item", - query: { - url: { - source: "attribute", - selector: "img", - attribute: "src" - }, - fullUrl: { - source: "attribute", - selector: "img", - attribute: "data-full-url" - }, - link: { - source: "attribute", - selector: "img", - attribute: "data-link" - }, - alt: { - source: "attribute", - selector: "img", - attribute: "alt", - "default": "" - }, - id: { - source: "attribute", - selector: "img", - attribute: "data-id" - }, - caption: { - type: "string", - source: "html", - selector: ".blocks-gallery-item__caption" - } - } - }, - ids: { - type: "array", - "default": [] - }, - columns: { - type: "number" - }, - caption: { - type: "string", - source: "html", - selector: ".blocks-gallery-caption" - }, - imageCrop: { - type: "boolean", - "default": true - }, - linkTo: { - type: "string", - "default": "none" - } - } -}; - - -var gallery_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Gallery'), - description: Object(external_this_wp_i18n_["__"])('Display multiple images in a rich gallery.'), - icon: icon, - keywords: [Object(external_this_wp_i18n_["__"])('images'), Object(external_this_wp_i18n_["__"])('photos')], - example: { - attributes: { - columns: 2, - images: [{ - url: 'https://upload.wikimedia.org/wikipedia/commons/c/c3/Glacial_lakes%2C_Bhutan.jpg' - }, { - url: 'https://upload.wikimedia.org/wikipedia/commons/0/01/Sediment_off_the_Yucatan_Peninsula.jpg' - }] - } - }, - supports: { - align: true - }, - transforms: gallery_transforms, - edit: edit, - save: save_save, - deprecated: gallery_deprecated -}; - - -/***/ }), -/* 242 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/deprecated.js - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - -var DEFAULT_MEDIA_WIDTH = 50; -/* harmony default export */ var deprecated = ([{ - attributes: { - align: { - type: 'string', - default: 'wide' - }, - backgroundColor: { - type: 'string' - }, - customBackgroundColor: { - type: 'string' - }, - mediaAlt: { - type: 'string', - source: 'attribute', - selector: 'figure img', - attribute: 'alt', - default: '' - }, - mediaPosition: { - type: 'string', - default: 'left' - }, - mediaId: { - type: 'number' - }, - mediaUrl: { - type: 'string', - source: 'attribute', - selector: 'figure video,figure img', - attribute: 'src' - }, - mediaType: { - type: 'string' - }, - mediaWidth: { - type: 'number', - default: 50 - }, - isStackedOnMobile: { - type: 'boolean', - default: false - } - }, - save: function save(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var backgroundColor = attributes.backgroundColor, - customBackgroundColor = attributes.customBackgroundColor, - isStackedOnMobile = attributes.isStackedOnMobile, - mediaAlt = attributes.mediaAlt, - mediaPosition = attributes.mediaPosition, - mediaType = attributes.mediaType, - mediaUrl = attributes.mediaUrl, - mediaWidth = attributes.mediaWidth; - var mediaTypeRenders = { - image: function image() { - return Object(external_this_wp_element_["createElement"])("img", { - src: mediaUrl, - alt: mediaAlt - }); - }, - video: function video() { - return Object(external_this_wp_element_["createElement"])("video", { - controls: true, - src: mediaUrl - }); - } - }; - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var className = classnames_default()((_classnames = { - 'has-media-on-the-right': 'right' === mediaPosition - }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), _classnames)); - var gridTemplateColumns; - - if (mediaWidth !== DEFAULT_MEDIA_WIDTH) { - gridTemplateColumns = 'right' === mediaPosition ? "auto ".concat(mediaWidth, "%") : "".concat(mediaWidth, "% auto"); - } - - var style = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - gridTemplateColumns: gridTemplateColumns - }; - return Object(external_this_wp_element_["createElement"])("div", { - className: className, - style: style - }, Object(external_this_wp_element_["createElement"])("figure", { - className: "wp-block-media-text__media" - }, (mediaTypeRenders[mediaType] || external_lodash_["noop"])()), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-media-text__content" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); - } -}]); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(18); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/media-container-icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var media_container_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/media-container.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - -/** - * Constants - */ - -var ALLOWED_MEDIA_TYPES = ['image', 'video']; -function imageFillStyles(url, focalPoint) { - return url ? { - backgroundImage: "url(".concat(url, ")"), - backgroundPosition: focalPoint ? "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%") : "50% 50%" - } : {}; -} - -var media_container_MediaContainer = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(MediaContainer, _Component); - - function MediaContainer() { - var _this; - - Object(classCallCheck["a" /* default */])(this, MediaContainer); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaContainer).apply(this, arguments)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(MediaContainer, [{ - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - } - }, { - key: "renderToolbarEditButton", - value: function renderToolbarEditButton() { - var _this$props = this.props, - mediaId = _this$props.mediaId, - onSelectMedia = _this$props.onSelectMedia; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { - onSelect: onSelectMedia, - allowedTypes: ALLOWED_MEDIA_TYPES, - value: mediaId, - render: function render(_ref) { - var open = _ref.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit media'), - icon: "edit", - onClick: open - }); - } - }))); - } - }, { - key: "renderImage", - value: function renderImage() { - var _this$props2 = this.props, - mediaAlt = _this$props2.mediaAlt, - mediaUrl = _this$props2.mediaUrl, - className = _this$props2.className, - imageFill = _this$props2.imageFill, - focalPoint = _this$props2.focalPoint; - var backgroundStyles = imageFill ? imageFillStyles(mediaUrl, focalPoint) : {}; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderToolbarEditButton(), Object(external_this_wp_element_["createElement"])("figure", { - className: className, - style: backgroundStyles - }, Object(external_this_wp_element_["createElement"])("img", { - src: mediaUrl, - alt: mediaAlt - }))); - } - }, { - key: "renderVideo", - value: function renderVideo() { - var _this$props3 = this.props, - mediaUrl = _this$props3.mediaUrl, - className = _this$props3.className; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderToolbarEditButton(), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])("video", { - controls: true, - src: mediaUrl - }))); - } - }, { - key: "renderPlaceholder", - value: function renderPlaceholder() { - var _this$props4 = this.props, - onSelectMedia = _this$props4.onSelectMedia, - className = _this$props4.className, - noticeUI = _this$props4.noticeUI; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: media_container_icon - }), - labels: { - title: Object(external_this_wp_i18n_["__"])('Media area') - }, - className: className, - onSelect: onSelectMedia, - accept: "image/*,video/*", - allowedTypes: ALLOWED_MEDIA_TYPES, - notices: noticeUI, - onError: this.onUploadError - }); - } - }, { - key: "render", - value: function render() { - var _this$props5 = this.props, - mediaPosition = _this$props5.mediaPosition, - mediaUrl = _this$props5.mediaUrl, - mediaType = _this$props5.mediaType, - mediaWidth = _this$props5.mediaWidth, - commitWidthChange = _this$props5.commitWidthChange, - onWidthChange = _this$props5.onWidthChange, - toggleSelection = _this$props5.toggleSelection; - - if (mediaType && mediaUrl) { - var onResizeStart = function onResizeStart() { - toggleSelection(false); - }; - - var onResize = function onResize(event, direction, elt) { - onWidthChange(parseInt(elt.style.width)); - }; - - var onResizeStop = function onResizeStop(event, direction, elt) { - toggleSelection(true); - commitWidthChange(parseInt(elt.style.width)); - }; - - var enablePositions = { - right: mediaPosition === 'left', - left: mediaPosition === 'right' - }; - var mediaElement = null; - - switch (mediaType) { - case 'image': - mediaElement = this.renderImage(); - break; - - case 'video': - mediaElement = this.renderVideo(); - break; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { - className: "editor-media-container__resizer", - size: { - width: mediaWidth + '%' - }, - minWidth: "10%", - maxWidth: "100%", - enable: enablePositions, - onResizeStart: onResizeStart, - onResize: onResize, - onResizeStop: onResizeStop, - axis: "x" - }, mediaElement); - } - - return this.renderPlaceholder(); - } - }]); - - return MediaContainer; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var media_container = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - toggleSelection = _dispatch.toggleSelection; - - return { - toggleSelection: toggleSelection - }; -}), external_this_wp_components_["withNotices"]])(media_container_MediaContainer)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/edit.js - - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -/** - * Constants - */ - -var TEMPLATE = [['core/paragraph', { - fontSize: 'large', - placeholder: Object(external_this_wp_i18n_["_x"])('Content…', 'content placeholder') -}]]; // this limits the resize to a safe zone to avoid making broken layouts - -var WIDTH_CONSTRAINT_PERCENTAGE = 15; - -var applyWidthConstraints = function applyWidthConstraints(width) { - return Math.max(WIDTH_CONSTRAINT_PERCENTAGE, Math.min(width, 100 - WIDTH_CONSTRAINT_PERCENTAGE)); -}; - -var edit_MediaTextEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(MediaTextEdit, _Component); - - function MediaTextEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, MediaTextEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaTextEdit).apply(this, arguments)); - _this.onSelectMedia = _this.onSelectMedia.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onWidthChange = _this.onWidthChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.commitWidthChange = _this.commitWidthChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - mediaWidth: null - }; - return _this; - } - - Object(createClass["a" /* default */])(MediaTextEdit, [{ - key: "onSelectMedia", - value: function onSelectMedia(media) { - var setAttributes = this.props.setAttributes; - var mediaType; - var src; // for media selections originated from a file upload. - - if (media.media_type) { - if (media.media_type === 'image') { - mediaType = 'image'; - } else { - // only images and videos are accepted so if the media_type is not an image we can assume it is a video. - // video contain the media type of 'file' in the object returned from the rest api. - mediaType = 'video'; - } - } else { - // for media selections originated from existing files in the media library. - mediaType = media.type; - } - - if (mediaType === 'image') { - // Try the "large" size URL, falling back to the "full" size URL below. - src = Object(external_lodash_["get"])(media, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(media, ['media_details', 'sizes', 'large', 'source_url']); - } - - setAttributes({ - mediaAlt: media.alt, - mediaId: media.id, - mediaType: mediaType, - mediaUrl: src || media.url, - imageFill: undefined, - focalPoint: undefined - }); - } - }, { - key: "onWidthChange", - value: function onWidthChange(width) { - this.setState({ - mediaWidth: applyWidthConstraints(width) - }); - } - }, { - key: "commitWidthChange", - value: function commitWidthChange(width) { - var setAttributes = this.props.setAttributes; - setAttributes({ - mediaWidth: applyWidthConstraints(width) - }); - this.setState({ - mediaWidth: null - }); - } - }, { - key: "renderMediaArea", - value: function renderMediaArea() { - var attributes = this.props.attributes; - var mediaAlt = attributes.mediaAlt, - mediaId = attributes.mediaId, - mediaPosition = attributes.mediaPosition, - mediaType = attributes.mediaType, - mediaUrl = attributes.mediaUrl, - mediaWidth = attributes.mediaWidth, - imageFill = attributes.imageFill, - focalPoint = attributes.focalPoint; - return Object(external_this_wp_element_["createElement"])(media_container, Object(esm_extends["a" /* default */])({ - className: "block-library-media-text__media-container", - onSelectMedia: this.onSelectMedia, - onWidthChange: this.onWidthChange, - commitWidthChange: this.commitWidthChange - }, { - mediaAlt: mediaAlt, - mediaId: mediaId, - mediaType: mediaType, - mediaUrl: mediaUrl, - mediaPosition: mediaPosition, - mediaWidth: mediaWidth, - imageFill: imageFill, - focalPoint: focalPoint - })); - } - }, { - key: "render", - value: function render() { - var _classnames; - - var _this$props = this.props, - attributes = _this$props.attributes, - className = _this$props.className, - backgroundColor = _this$props.backgroundColor, - isSelected = _this$props.isSelected, - setAttributes = _this$props.setAttributes, - setBackgroundColor = _this$props.setBackgroundColor; - var isStackedOnMobile = attributes.isStackedOnMobile, - mediaAlt = attributes.mediaAlt, - mediaPosition = attributes.mediaPosition, - mediaType = attributes.mediaType, - mediaWidth = attributes.mediaWidth, - verticalAlignment = attributes.verticalAlignment, - mediaUrl = attributes.mediaUrl, - imageFill = attributes.imageFill, - focalPoint = attributes.focalPoint; - var temporaryMediaWidth = this.state.mediaWidth; - var classNames = classnames_default()(className, (_classnames = { - 'has-media-on-the-right': 'right' === mediaPosition, - 'is-selected': isSelected, - 'has-background': backgroundColor.class || backgroundColor.color - }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); - var widthString = "".concat(temporaryMediaWidth || mediaWidth, "%"); - var style = { - gridTemplateColumns: 'right' === mediaPosition ? "auto ".concat(widthString) : "".concat(widthString, " auto"), - backgroundColor: backgroundColor.color - }; - var colorSettings = [{ - value: backgroundColor.color, - onChange: setBackgroundColor, - label: Object(external_this_wp_i18n_["__"])('Background Color') - }]; - var toolbarControls = [{ - icon: 'align-pull-left', - title: Object(external_this_wp_i18n_["__"])('Show media on left'), - isActive: mediaPosition === 'left', - onClick: function onClick() { - return setAttributes({ - mediaPosition: 'left' - }); - } - }, { - icon: 'align-pull-right', - title: Object(external_this_wp_i18n_["__"])('Show media on right'), - isActive: mediaPosition === 'right', - onClick: function onClick() { - return setAttributes({ - mediaPosition: 'right' - }); - } - }]; - - var onMediaAltChange = function onMediaAltChange(newMediaAlt) { - setAttributes({ - mediaAlt: newMediaAlt - }); - }; - - var onVerticalAlignmentChange = function onVerticalAlignmentChange(alignment) { - setAttributes({ - verticalAlignment: alignment - }); - }; - - var mediaTextGeneralSettings = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Media & Text Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Stack on mobile'), - checked: isStackedOnMobile, - onChange: function onChange() { - return setAttributes({ - isStackedOnMobile: !isStackedOnMobile - }); - } - }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Crop image to fill entire column'), - checked: imageFill, - onChange: function onChange() { - return setAttributes({ - imageFill: !imageFill - }); - } - }), imageFill && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { - label: Object(external_this_wp_i18n_["__"])('Focal Point Picker'), - url: mediaUrl, - value: focalPoint, - onChange: function onChange(value) { - return setAttributes({ - focalPoint: value - }); - } - }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { - label: Object(external_this_wp_i18n_["__"])('Alt Text (Alternative Text)'), - value: mediaAlt, - onChange: onMediaAltChange, - help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { - href: "https://www.w3.org/WAI/tutorials/images/decision-tree" - }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.')) - })); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, mediaTextGeneralSettings, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - initialOpen: false, - colorSettings: colorSettings - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: toolbarControls - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { - onChange: onVerticalAlignmentChange, - value: verticalAlignment - })), Object(external_this_wp_element_["createElement"])("div", { - className: classNames, - style: style - }, this.renderMediaArea(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - template: TEMPLATE, - templateInsertUpdatesSelection: false - }))); - } - }]); - - return MediaTextEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_blockEditor_["withColors"])('backgroundColor')(edit_MediaTextEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/save.js - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -var save_DEFAULT_MEDIA_WIDTH = 50; -function save_save(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var backgroundColor = attributes.backgroundColor, - customBackgroundColor = attributes.customBackgroundColor, - isStackedOnMobile = attributes.isStackedOnMobile, - mediaAlt = attributes.mediaAlt, - mediaPosition = attributes.mediaPosition, - mediaType = attributes.mediaType, - mediaUrl = attributes.mediaUrl, - mediaWidth = attributes.mediaWidth, - mediaId = attributes.mediaId, - verticalAlignment = attributes.verticalAlignment, - imageFill = attributes.imageFill, - focalPoint = attributes.focalPoint; - var mediaTypeRenders = { - image: function image() { - return Object(external_this_wp_element_["createElement"])("img", { - src: mediaUrl, - alt: mediaAlt, - className: mediaId && mediaType === 'image' ? "wp-image-".concat(mediaId) : null - }); - }, - video: function video() { - return Object(external_this_wp_element_["createElement"])("video", { - controls: true, - src: mediaUrl - }); - } - }; - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var className = classnames_default()((_classnames = { - 'has-media-on-the-right': 'right' === mediaPosition, - 'has-background': backgroundClass || customBackgroundColor - }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), Object(defineProperty["a" /* default */])(_classnames, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment), Object(defineProperty["a" /* default */])(_classnames, 'is-image-fill', imageFill), _classnames)); - var backgroundStyles = imageFill ? imageFillStyles(mediaUrl, focalPoint) : {}; - var gridTemplateColumns; - - if (mediaWidth !== save_DEFAULT_MEDIA_WIDTH) { - gridTemplateColumns = 'right' === mediaPosition ? "auto ".concat(mediaWidth, "%") : "".concat(mediaWidth, "% auto"); - } - - var style = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - gridTemplateColumns: gridTemplateColumns - }; - return Object(external_this_wp_element_["createElement"])("div", { - className: className, - style: style - }, Object(external_this_wp_element_["createElement"])("figure", { - className: "wp-block-media-text__media", - style: backgroundStyles - }, (mediaTypeRenders[mediaType] || external_lodash_["noop"])()), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-media-text__content" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/transforms.js -/** - * WordPress dependencies - */ - -var transforms = { - from: [{ - type: 'block', - blocks: ['core/image'], - transform: function transform(_ref) { - var alt = _ref.alt, - url = _ref.url, - id = _ref.id; - return Object(external_this_wp_blocks_["createBlock"])('core/media-text', { - mediaAlt: alt, - mediaId: id, - mediaUrl: url, - mediaType: 'image' - }); - } - }, { - type: 'block', - blocks: ['core/video'], - transform: function transform(_ref2) { - var src = _ref2.src, - id = _ref2.id; - return Object(external_this_wp_blocks_["createBlock"])('core/media-text', { - mediaId: id, - mediaUrl: src, - mediaType: 'video' - }); - } - }], - to: [{ - type: 'block', - blocks: ['core/image'], - isMatch: function isMatch(_ref3) { - var mediaType = _ref3.mediaType, - mediaUrl = _ref3.mediaUrl; - return !mediaUrl || mediaType === 'image'; - }, - transform: function transform(_ref4) { - var mediaAlt = _ref4.mediaAlt, - mediaId = _ref4.mediaId, - mediaUrl = _ref4.mediaUrl; - return Object(external_this_wp_blocks_["createBlock"])('core/image', { - alt: mediaAlt, - id: mediaId, - url: mediaUrl - }); - } - }, { - type: 'block', - blocks: ['core/video'], - isMatch: function isMatch(_ref5) { - var mediaType = _ref5.mediaType, - mediaUrl = _ref5.mediaUrl; - return !mediaUrl || mediaType === 'video'; - }, - transform: function transform(_ref6) { - var mediaId = _ref6.mediaId, - mediaUrl = _ref6.mediaUrl; - return Object(external_this_wp_blocks_["createBlock"])('core/video', { - id: mediaId, - src: mediaUrl - }); - } - }] -}; -/* harmony default export */ var media_text_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return media_text_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var metadata = { - name: "core/media-text", - category: "layout", - attributes: { - align: { - type: "string", - "default": "wide" - }, - backgroundColor: { - type: "string" - }, - customBackgroundColor: { - type: "string" - }, - mediaAlt: { - type: "string", - source: "attribute", - selector: "figure img", - attribute: "alt", - "default": "" - }, - mediaPosition: { - type: "string", - "default": "left" - }, - mediaId: { - type: "number" - }, - mediaUrl: { - type: "string", - source: "attribute", - selector: "figure video,figure img", - attribute: "src" - }, - mediaType: { - type: "string" - }, - mediaWidth: { - type: "number", - "default": 50 - }, - isStackedOnMobile: { - type: "boolean", - "default": false - }, - verticalAlignment: { - type: "string" - }, - imageFill: { - type: "boolean" - }, - focalPoint: { - type: "object" - } - } -}; - - -var media_text_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Media & Text'), - description: Object(external_this_wp_i18n_["__"])('Set media and words side-by-side for a richer layout.'), - icon: icon, - keywords: [Object(external_this_wp_i18n_["__"])('image'), Object(external_this_wp_i18n_["__"])('video')], - supports: { - align: ['wide', 'full'], - html: false - }, - example: { - attributes: { - mediaType: 'image', - mediaUrl: 'https://upload.wikimedia.org/wikipedia/commons/d/d4/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg' - }, - innerBlocks: [{ - name: 'core/paragraph', - attributes: { - content: Object(external_this_wp_i18n_["__"])('The wren
    Earns his living
    Noiselessly.') - } - }, { - name: 'core/paragraph', - attributes: { - content: Object(external_this_wp_i18n_["__"])('— Kobayashi Issa (一茶)') - } - }] - }, - transforms: media_text_transforms, - edit: edit, - save: save_save, - deprecated: deprecated -}; - - -/***/ }), -/* 243 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(18); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/deprecated.js - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -var blockAttributes = { - align: { - type: 'string' - }, - url: { - type: 'string', - source: 'attribute', - selector: 'img', - attribute: 'src' - }, - alt: { - type: 'string', - source: 'attribute', - selector: 'img', - attribute: 'alt', - default: '' - }, - caption: { - type: 'string', - source: 'html', - selector: 'figcaption' - }, - href: { - type: 'string', - source: 'attribute', - selector: 'figure > a', - attribute: 'href' - }, - rel: { - type: 'string', - source: 'attribute', - selector: 'figure > a', - attribute: 'rel' - }, - linkClass: { - type: 'string', - source: 'attribute', - selector: 'figure > a', - attribute: 'class' - }, - id: { - type: 'number' - }, - width: { - type: 'number' - }, - height: { - type: 'number' - }, - linkDestination: { - type: 'string', - default: 'none' - }, - linkTarget: { - type: 'string', - source: 'attribute', - selector: 'figure > a', - attribute: 'target' - } -}; -var deprecated = [{ - attributes: blockAttributes, - save: function save(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var url = attributes.url, - alt = attributes.alt, - caption = attributes.caption, - align = attributes.align, - href = attributes.href, - width = attributes.width, - height = attributes.height, - id = attributes.id; - var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames)); - var image = Object(external_this_wp_element_["createElement"])("img", { - src: url, - alt: alt, - className: id ? "wp-image-".concat(id) : null, - width: width, - height: height - }); - return Object(external_this_wp_element_["createElement"])("figure", { - className: classes - }, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - } -}, { - attributes: blockAttributes, - save: function save(_ref2) { - var attributes = _ref2.attributes; - var url = attributes.url, - alt = attributes.alt, - caption = attributes.caption, - align = attributes.align, - href = attributes.href, - width = attributes.width, - height = attributes.height, - id = attributes.id; - var image = Object(external_this_wp_element_["createElement"])("img", { - src: url, - alt: alt, - className: id ? "wp-image-".concat(id) : null, - width: width, - height: height - }); - return Object(external_this_wp_element_["createElement"])("figure", { - className: align ? "align".concat(align) : null - }, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - } -}, { - attributes: blockAttributes, - save: function save(_ref3) { - var attributes = _ref3.attributes; - var url = attributes.url, - alt = attributes.alt, - caption = attributes.caption, - align = attributes.align, - href = attributes.href, - width = attributes.width, - height = attributes.height; - var extraImageProps = width || height ? { - width: width, - height: height - } : {}; - var image = Object(external_this_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({ - src: url, - alt: alt - }, extraImageProps)); - var figureStyle = {}; - - if (width) { - figureStyle = { - width: width - }; - } else if (align === 'left' || align === 'right') { - figureStyle = { - maxWidth: '50%' - }; - } - - return Object(external_this_wp_element_["createElement"])("figure", { - className: align ? "align".concat(align) : null, - style: figureStyle - }, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - } -}]; -/* harmony default export */ var image_deprecated = (deprecated); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(35); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(26); - -// EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(43); - -// EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(46); - -// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js -var util = __webpack_require__(61); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/utils.js -function calculatePreferedImageSize(image, container) { - var maxWidth = container.clientWidth; - var exceedMaxWidth = image.width > maxWidth; - var ratio = image.height / image.width; - var width = exceedMaxWidth ? maxWidth : image.width; - var height = exceedMaxWidth ? maxWidth * ratio : image.height; - return { - width: width, - height: height - }; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-size.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -var image_size_ImageSize = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ImageSize, _Component); - - function ImageSize() { - var _this; - - Object(classCallCheck["a" /* default */])(this, ImageSize); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageSize).apply(this, arguments)); - _this.state = { - width: undefined, - height: undefined - }; - _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.calculateSize = _this.calculateSize.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(ImageSize, [{ - key: "bindContainer", - value: function bindContainer(ref) { - this.container = ref; - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this.props.src !== prevProps.src) { - this.setState({ - width: undefined, - height: undefined - }); - this.fetchImageSize(); - } - - if (this.props.dirtynessTrigger !== prevProps.dirtynessTrigger) { - this.calculateSize(); - } - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this.fetchImageSize(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.image) { - this.image.onload = external_lodash_["noop"]; - } - } - }, { - key: "fetchImageSize", - value: function fetchImageSize() { - this.image = new window.Image(); - this.image.onload = this.calculateSize; - this.image.src = this.props.src; - } - }, { - key: "calculateSize", - value: function calculateSize() { - var _calculatePreferedIma = calculatePreferedImageSize(this.image, this.container), - width = _calculatePreferedIma.width, - height = _calculatePreferedIma.height; - - this.setState({ - width: width, - height: height - }); - } - }, { - key: "render", - value: function render() { - var sizes = { - imageWidth: this.image && this.image.width, - imageHeight: this.image && this.image.height, - containerWidth: this.container && this.container.clientWidth, - containerHeight: this.container && this.container.clientHeight, - imageWidthWithinContainer: this.state.width, - imageHeightWithinContainer: this.state.height - }; - return Object(external_this_wp_element_["createElement"])("div", { - ref: this.bindContainer - }, this.props.children(sizes)); - } - }]); - - return ImageSize; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var image_size = (Object(external_this_wp_compose_["withGlobalEvents"])({ - resize: 'calculateSize' -})(image_size_ImageSize)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/edit.js - - - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - - - - - - -/** - * Internal dependencies - */ - - - - -/** - * Module constants - */ - -var MIN_SIZE = 20; -var LINK_DESTINATION_NONE = 'none'; -var LINK_DESTINATION_MEDIA = 'media'; -var LINK_DESTINATION_ATTACHMENT = 'attachment'; -var LINK_DESTINATION_CUSTOM = 'custom'; -var NEW_TAB_REL = 'noreferrer noopener'; -var ALLOWED_MEDIA_TYPES = ['image']; -var DEFAULT_SIZE_SLUG = 'large'; -var edit_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) { - var imageProps = Object(external_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']); - imageProps.url = Object(external_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url; - return imageProps; -}; -/** - * Is the URL a temporary blob URL? A blob URL is one that is used temporarily - * while the image is being uploaded and will not have an id yet allocated. - * - * @param {number=} id The id of the image. - * @param {string=} url The url of the image. - * - * @return {boolean} Is the URL a Blob URL - */ - -var edit_isTemporaryImage = function isTemporaryImage(id, url) { - return !id && Object(external_this_wp_blob_["isBlobURL"])(url); -}; -/** - * Is the url for the image hosted externally. An externally hosted image has no id - * and is not a blob url. - * - * @param {number=} id The id of the image. - * @param {string=} url The url of the image. - * - * @return {boolean} Is the url an externally hosted url? - */ - - -var edit_isExternalImage = function isExternalImage(id, url) { - return url && !id && !Object(external_this_wp_blob_["isBlobURL"])(url); -}; - -var stopPropagation = function stopPropagation(event) { - event.stopPropagation(); -}; - -var edit_stopPropagationRelevantKeys = function stopPropagationRelevantKeys(event) { - if ([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]].indexOf(event.keyCode) > -1) { - // Stop the key event from propagating up to ObserveTyping.startTypingInTextField. - event.stopPropagation(); - } -}; - -var edit_ImageURLInputUI = function ImageURLInputUI(_ref) { - var advancedOptions = _ref.advancedOptions, - linkDestination = _ref.linkDestination, - mediaLinks = _ref.mediaLinks, - onChangeUrl = _ref.onChangeUrl, - url = _ref.url; - - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - isOpen = _useState2[0], - setIsOpen = _useState2[1]; - - var openLinkUI = Object(external_this_wp_element_["useCallback"])(function () { - setIsOpen(true); - }); - - var _useState3 = Object(external_this_wp_element_["useState"])(false), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - isEditingLink = _useState4[0], - setIsEditingLink = _useState4[1]; - - var _useState5 = Object(external_this_wp_element_["useState"])(null), - _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2), - urlInput = _useState6[0], - setUrlInput = _useState6[1]; - - var startEditLink = Object(external_this_wp_element_["useCallback"])(function () { - if (linkDestination === LINK_DESTINATION_MEDIA || linkDestination === LINK_DESTINATION_ATTACHMENT) { - setUrlInput(''); - } - - setIsEditingLink(true); - }); - var stopEditLink = Object(external_this_wp_element_["useCallback"])(function () { - setIsEditingLink(false); - }); - var closeLinkUI = Object(external_this_wp_element_["useCallback"])(function () { - setUrlInput(null); - stopEditLink(); - setIsOpen(false); - }); - var autocompleteRef = Object(external_this_wp_element_["useRef"])(null); - var onClickOutside = Object(external_this_wp_element_["useCallback"])(function () { - return function (event) { - // The autocomplete suggestions list renders in a separate popover (in a portal), - // so onClickOutside fails to detect that a click on a suggestion occurred in the - // LinkContainer. Detect clicks on autocomplete suggestions using a ref here, and - // return to avoid the popover being closed. - var autocompleteElement = autocompleteRef.current; - - if (autocompleteElement && autocompleteElement.contains(event.target)) { - return; - } - - setIsOpen(false); - setUrlInput(null); - stopEditLink(); - }; - }); - var onSubmitLinkChange = Object(external_this_wp_element_["useCallback"])(function () { - return function (event) { - if (urlInput) { - onChangeUrl(urlInput); - } - - stopEditLink(); - setUrlInput(null); - event.preventDefault(); - }; - }); - var onLinkRemove = Object(external_this_wp_element_["useCallback"])(function () { - closeLinkUI(); - onChangeUrl(''); - }); - var linkEditorValue = urlInput !== null ? urlInput : url; - var urlLabel = (Object(external_lodash_["find"])(mediaLinks, ['linkDestination', linkDestination]) || {}).title; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: "admin-links", - className: "components-toolbar__control", - label: url ? Object(external_this_wp_i18n_["__"])('Edit link') : Object(external_this_wp_i18n_["__"])('Insert link'), - "aria-expanded": isOpen, - onClick: openLinkUI - }), isOpen && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"], { - onClickOutside: onClickOutside(), - onClose: closeLinkUI, - renderSettings: function renderSettings() { - return advancedOptions; - }, - additionalControls: !linkEditorValue && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], null, Object(external_lodash_["map"])(mediaLinks, function (link) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - key: link.linkDestination, - icon: link.icon, - onClick: function onClick() { - setUrlInput(null); - onChangeUrl(link.url); - stopEditLink(); - } - }, link.title); - })) - }, (!url || isEditingLink) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"].LinkEditor, { - className: "editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content", - value: linkEditorValue, - onChangeInputValue: setUrlInput, - onKeyDown: edit_stopPropagationRelevantKeys, - onKeyPress: stopPropagation, - onSubmit: onSubmitLinkChange(), - autocompleteRef: autocompleteRef - }), url && !isEditingLink && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"].LinkViewer, { - className: "editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content", - onKeyPress: stopPropagation, - url: url, - onEditLinkClick: startEditLink, - urlLabel: urlLabel - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: "no", - label: Object(external_this_wp_i18n_["__"])('Remove link'), - onClick: onLinkRemove - })))); -}; - -var edit_ImageEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ImageEdit, _Component); - - function ImageEdit(_ref2) { - var _this; - - var attributes = _ref2.attributes; - - Object(classCallCheck["a" /* default */])(this, ImageEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageEdit).apply(this, arguments)); - _this.updateAlt = _this.updateAlt.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.updateAlignment = _this.updateAlignment.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onFocusCaption = _this.onFocusCaption.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onImageClick = _this.onImageClick.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.updateImage = _this.updateImage.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.updateWidth = _this.updateWidth.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.updateHeight = _this.updateHeight.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.updateDimensions = _this.updateDimensions.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSetHref = _this.onSetHref.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSetLinkClass = _this.onSetLinkClass.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSetLinkRel = _this.onSetLinkRel.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSetNewTab = _this.onSetNewTab.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getFilename = _this.getFilename.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.toggleIsEditing = _this.toggleIsEditing.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onImageError = _this.onImageError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getLinkDestinations = _this.getLinkDestinations.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - captionFocused: false, - isEditing: !attributes.url - }; - return _this; - } - - Object(createClass["a" /* default */])(ImageEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - mediaUpload = _this$props.mediaUpload, - noticeOperations = _this$props.noticeOperations; - var id = attributes.id, - _attributes$url = attributes.url, - url = _attributes$url === void 0 ? '' : _attributes$url; - - if (edit_isTemporaryImage(id, url)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(url); - - if (file) { - mediaUpload({ - filesList: [file], - onFileChange: function onFileChange(_ref3) { - var _ref4 = Object(slicedToArray["a" /* default */])(_ref3, 1), - image = _ref4[0]; - - _this2.onSelectImage(image); - }, - allowedTypes: ALLOWED_MEDIA_TYPES, - onError: function onError(message) { - noticeOperations.createErrorNotice(message); - - _this2.setState({ - isEditing: true - }); - } - }); - } - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _prevProps$attributes = prevProps.attributes, - prevID = _prevProps$attributes.id, - _prevProps$attributes2 = _prevProps$attributes.url, - prevURL = _prevProps$attributes2 === void 0 ? '' : _prevProps$attributes2; - var _this$props$attribute = this.props.attributes, - id = _this$props$attribute.id, - _this$props$attribute2 = _this$props$attribute.url, - url = _this$props$attribute2 === void 0 ? '' : _this$props$attribute2; - - if (edit_isTemporaryImage(prevID, prevURL) && !edit_isTemporaryImage(id, url)) { - Object(external_this_wp_blob_["revokeBlobURL"])(url); - } - - if (!this.props.isSelected && prevProps.isSelected && this.state.captionFocused) { - this.setState({ - captionFocused: false - }); - } - } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - this.setState({ - isEditing: true - }); - } - }, { - key: "onSelectImage", - value: function onSelectImage(media) { - if (!media || !media.url) { - this.props.setAttributes({ - url: undefined, - alt: undefined, - id: undefined, - caption: undefined - }); - return; - } - - this.setState({ - isEditing: false - }); - var _this$props$attribute3 = this.props.attributes, - id = _this$props$attribute3.id, - url = _this$props$attribute3.url, - alt = _this$props$attribute3.alt, - caption = _this$props$attribute3.caption; - var mediaAttributes = edit_pickRelevantMediaFiles(media); // If the current image is temporary but an alt or caption text was meanwhile written by the user, - // make sure the text is not overwritten. - - if (edit_isTemporaryImage(id, url)) { - if (alt) { - mediaAttributes = Object(external_lodash_["omit"])(mediaAttributes, ['alt']); - } - - if (caption) { - mediaAttributes = Object(external_lodash_["omit"])(mediaAttributes, ['caption']); - } - } - - var additionalAttributes; // Reset the dimension attributes if changing to a different image. - - if (!media.id || media.id !== id) { - additionalAttributes = { - width: undefined, - height: undefined, - sizeSlug: DEFAULT_SIZE_SLUG - }; - } else { - // Keep the same url when selecting the same file, so "Image Size" option is not changed. - additionalAttributes = { - url: url - }; - } - - this.props.setAttributes(Object(objectSpread["a" /* default */])({}, mediaAttributes, additionalAttributes)); - } - }, { - key: "onSelectURL", - value: function onSelectURL(newURL) { - var url = this.props.attributes.url; - - if (newURL !== url) { - this.props.setAttributes({ - url: newURL, - id: undefined, - sizeSlug: DEFAULT_SIZE_SLUG - }); - } - - this.setState({ - isEditing: false - }); - } - }, { - key: "onImageError", - value: function onImageError(url) { - // Check if there's an embed block that handles this URL. - var embedBlock = Object(util["a" /* createUpgradedEmbedBlock */])({ - attributes: { - url: url - } - }); - - if (undefined !== embedBlock) { - this.props.onReplace(embedBlock); - } - } - }, { - key: "onSetHref", - value: function onSetHref(value) { - var linkDestinations = this.getLinkDestinations(); - var attributes = this.props.attributes; - var linkDestination = attributes.linkDestination; - var linkDestinationInput; - - if (!value) { - linkDestinationInput = LINK_DESTINATION_NONE; - } else { - linkDestinationInput = (Object(external_lodash_["find"])(linkDestinations, function (destination) { - return destination.url === value; - }) || { - linkDestination: LINK_DESTINATION_CUSTOM - }).linkDestination; - } - - if (linkDestination !== linkDestinationInput) { - this.props.setAttributes({ - linkDestination: linkDestinationInput, - href: value - }); - return; - } - - this.props.setAttributes({ - href: value - }); - } - }, { - key: "onSetLinkClass", - value: function onSetLinkClass(value) { - this.props.setAttributes({ - linkClass: value - }); - } - }, { - key: "onSetLinkRel", - value: function onSetLinkRel(value) { - this.props.setAttributes({ - rel: value - }); - } - }, { - key: "onSetNewTab", - value: function onSetNewTab(value) { - var rel = this.props.attributes.rel; - var linkTarget = value ? '_blank' : undefined; - var updatedRel = rel; - - if (linkTarget && !rel) { - updatedRel = NEW_TAB_REL; - } else if (!linkTarget && rel === NEW_TAB_REL) { - updatedRel = undefined; - } - - this.props.setAttributes({ - linkTarget: linkTarget, - rel: updatedRel - }); - } - }, { - key: "onFocusCaption", - value: function onFocusCaption() { - if (!this.state.captionFocused) { - this.setState({ - captionFocused: true - }); - } - } - }, { - key: "onImageClick", - value: function onImageClick() { - if (this.state.captionFocused) { - this.setState({ - captionFocused: false - }); - } - } - }, { - key: "updateAlt", - value: function updateAlt(newAlt) { - this.props.setAttributes({ - alt: newAlt - }); - } - }, { - key: "updateAlignment", - value: function updateAlignment(nextAlign) { - var extraUpdatedAttributes = ['wide', 'full'].indexOf(nextAlign) !== -1 ? { - width: undefined, - height: undefined - } : {}; - this.props.setAttributes(Object(objectSpread["a" /* default */])({}, extraUpdatedAttributes, { - align: nextAlign - })); - } - }, { - key: "updateImage", - value: function updateImage(sizeSlug) { - var image = this.props.image; - var url = Object(external_lodash_["get"])(image, ['media_details', 'sizes', sizeSlug, 'source_url']); - - if (!url) { - return null; - } - - this.props.setAttributes({ - url: url, - width: undefined, - height: undefined, - sizeSlug: sizeSlug - }); - } - }, { - key: "updateWidth", - value: function updateWidth(width) { - this.props.setAttributes({ - width: parseInt(width, 10) - }); - } - }, { - key: "updateHeight", - value: function updateHeight(height) { - this.props.setAttributes({ - height: parseInt(height, 10) - }); - } - }, { - key: "updateDimensions", - value: function updateDimensions() { - var _this3 = this; - - var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; - var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - return function () { - _this3.props.setAttributes({ - width: width, - height: height - }); - }; - } - }, { - key: "getFilename", - value: function getFilename(url) { - var path = Object(external_this_wp_url_["getPath"])(url); - - if (path) { - return Object(external_lodash_["last"])(path.split('/')); - } - } - }, { - key: "getLinkDestinations", - value: function getLinkDestinations() { - return [{ - linkDestination: LINK_DESTINATION_MEDIA, - title: Object(external_this_wp_i18n_["__"])('Media File'), - url: this.props.image && this.props.image.source_url || this.props.attributes.url, - icon: icon - }, { - linkDestination: LINK_DESTINATION_ATTACHMENT, - title: Object(external_this_wp_i18n_["__"])('Attachment Page'), - url: this.props.image && this.props.image.link, - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0 0h24v24H0V0z", - fill: "none" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z" - })) - }]; - } - }, { - key: "toggleIsEditing", - value: function toggleIsEditing() { - this.setState({ - isEditing: !this.state.isEditing - }); - - if (this.state.isEditing) { - Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('You are now viewing the image in the image block.')); - } else { - Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('You are now editing the image in the image block.')); - } - } - }, { - key: "getImageSizeOptions", - value: function getImageSizeOptions() { - var imageSizes = this.props.imageSizes; - return Object(external_lodash_["map"])(imageSizes, function (_ref5) { - var name = _ref5.name, - slug = _ref5.slug; - return { - value: slug, - label: name - }; - }); - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var isEditing = this.state.isEditing; - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes, - isLargeViewport = _this$props2.isLargeViewport, - isSelected = _this$props2.isSelected, - className = _this$props2.className, - maxWidth = _this$props2.maxWidth, - noticeUI = _this$props2.noticeUI, - isRTL = _this$props2.isRTL, - onResizeStart = _this$props2.onResizeStart, - _onResizeStop = _this$props2.onResizeStop; - var url = attributes.url, - alt = attributes.alt, - caption = attributes.caption, - align = attributes.align, - id = attributes.id, - href = attributes.href, - rel = attributes.rel, - linkClass = attributes.linkClass, - linkDestination = attributes.linkDestination, - width = attributes.width, - height = attributes.height, - linkTarget = attributes.linkTarget, - sizeSlug = attributes.sizeSlug; - var isExternal = edit_isExternalImage(id, url); - var editImageIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: 20, - height: 20, - viewBox: "0 0 20 20" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: 11, - y: 3, - width: 7, - height: 5, - rx: 1 - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: 2, - y: 12, - width: 7, - height: 5, - rx: 1 - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M13,12h1a3,3,0,0,1-3,3v2a5,5,0,0,0,5-5h1L15,9Z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M4,8H3l2,3L7,8H6A3,3,0,0,1,9,5V3A5,5,0,0,0,4,8Z" - })); - var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { - value: align, - onChange: this.updateAlignment - }), url && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: classnames_default()('components-icon-button components-toolbar__control', { - 'is-active': this.state.isEditing - }), - label: Object(external_this_wp_i18n_["__"])('Edit image'), - "aria-pressed": this.state.isEditing, - onClick: this.toggleIsEditing, - icon: editImageIcon - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(edit_ImageURLInputUI, { - url: href || '', - onChangeUrl: this.onSetHref, - mediaLinks: this.getLinkDestinations(), - linkDestination: linkDestination, - advancedOptions: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Open in New Tab'), - onChange: this.onSetNewTab, - checked: linkTarget === '_blank' - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Link CSS Class'), - value: linkClass || '', - onKeyPress: stopPropagation, - onKeyDown: edit_stopPropagationRelevantKeys, - onChange: this.onSetLinkClass - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Link Rel'), - value: rel || '', - onChange: this.onSetLinkRel, - onKeyPress: stopPropagation, - onKeyDown: edit_stopPropagationRelevantKeys - })) - })))); - var src = isExternal ? url : undefined; - var labels = { - title: !url ? Object(external_this_wp_i18n_["__"])('Image') : Object(external_this_wp_i18n_["__"])('Edit image'), - instructions: Object(external_this_wp_i18n_["__"])('Upload an image file, pick one from your media library, or add one with a URL.') - }; - var mediaPreview = !!url && Object(external_this_wp_element_["createElement"])("img", { - alt: Object(external_this_wp_i18n_["__"])('Edit image'), - title: Object(external_this_wp_i18n_["__"])('Edit image'), - className: 'edit-image-preview', - src: url - }); - var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: icon - }), - className: className, - labels: labels, - onSelect: this.onSelectImage, - onSelectURL: this.onSelectURL, - onDoubleClick: this.toggleIsEditing, - onCancel: !!url && this.toggleIsEditing, - notices: noticeUI, - onError: this.onUploadError, - accept: "image/*", - allowedTypes: ALLOWED_MEDIA_TYPES, - value: { - id: id, - src: src - }, - mediaPreview: mediaPreview, - dropZoneUIOnly: !isEditing && url - }); - - if (isEditing || !url) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, mediaPlaceholder); - } - - var classes = classnames_default()(className, Object(defineProperty["a" /* default */])({ - 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url), - 'is-resized': !!width || !!height, - 'is-focused': isSelected - }, "size-".concat(sizeSlug), sizeSlug)); - var isResizable = ['wide', 'full'].indexOf(align) === -1 && isLargeViewport; - var imageSizeOptions = this.getImageSizeOptions(); - - var getInspectorControls = function getInspectorControls(imageWidth, imageHeight) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Image Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { - label: Object(external_this_wp_i18n_["__"])('Alt Text (Alternative Text)'), - value: alt, - onChange: _this4.updateAlt, - help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { - href: "https://www.w3.org/WAI/tutorials/images/decision-tree" - }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.')) - }), !Object(external_lodash_["isEmpty"])(imageSizeOptions) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Image Size'), - value: sizeSlug, - options: imageSizeOptions, - onChange: _this4.updateImage - }), isResizable && Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-image__dimensions" - }, Object(external_this_wp_element_["createElement"])("p", { - className: "block-library-image__dimensions__row" - }, Object(external_this_wp_i18n_["__"])('Image Dimensions')), Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-image__dimensions__row" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - className: "block-library-image__dimensions__width", - label: Object(external_this_wp_i18n_["__"])('Width'), - value: width || imageWidth || '', - min: 1, - onChange: _this4.updateWidth - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - className: "block-library-image__dimensions__height", - label: Object(external_this_wp_i18n_["__"])('Height'), - value: height || imageHeight || '', - min: 1, - onChange: _this4.updateHeight - })), Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-image__dimensions__row" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ButtonGroup"], { - "aria-label": Object(external_this_wp_i18n_["__"])('Image Size') - }, [25, 50, 75, 100].map(function (scale) { - var scaledWidth = Math.round(imageWidth * (scale / 100)); - var scaledHeight = Math.round(imageHeight * (scale / 100)); - var isCurrent = width === scaledWidth && height === scaledHeight; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: scale, - isSmall: true, - isPrimary: isCurrent, - "aria-pressed": isCurrent, - onClick: _this4.updateDimensions(scaledWidth, scaledHeight) - }, scale, "%"); - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSmall: true, - onClick: _this4.updateDimensions() - }, Object(external_this_wp_i18n_["__"])('Reset')))))); - }; // Disable reason: Each block can be selected by clicking on it - - /* eslint-disable jsx-a11y/click-events-have-key-events */ - - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("figure", { - className: classes - }, Object(external_this_wp_element_["createElement"])(image_size, { - src: url, - dirtynessTrigger: align - }, function (sizes) { - var imageWidthWithinContainer = sizes.imageWidthWithinContainer, - imageHeightWithinContainer = sizes.imageHeightWithinContainer, - imageWidth = sizes.imageWidth, - imageHeight = sizes.imageHeight; - - var filename = _this4.getFilename(url); - - var defaultedAlt; - - if (alt) { - defaultedAlt = alt; - } else if (filename) { - defaultedAlt = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute; its file name is %s'), filename); - } else { - defaultedAlt = Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute'); - } - - var img = // Disable reason: Image itself is not meant to be interactive, but - // should direct focus to block. - - /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ - Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", { - src: url, - alt: defaultedAlt, - onDoubleClick: _this4.toggleIsEditing, - onClick: _this4.onImageClick, - onError: function onError() { - return _this4.onImageError(url); - } - }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)) - /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */ - ; - - if (!isResizable || !imageWidthWithinContainer) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])("div", { - style: { - width: width, - height: height - } - }, img)); - } - - var currentWidth = width || imageWidthWithinContainer; - var currentHeight = height || imageHeightWithinContainer; - var ratio = imageWidth / imageHeight; - var minWidth = imageWidth < imageHeight ? MIN_SIZE : MIN_SIZE * ratio; - var minHeight = imageHeight < imageWidth ? MIN_SIZE : MIN_SIZE / ratio; // With the current implementation of ResizableBox, an image needs an explicit pixel value for the max-width. - // In absence of being able to set the content-width, this max-width is currently dictated by the vanilla editor style. - // The following variable adds a buffer to this vanilla style, so 3rd party themes have some wiggleroom. - // This does, in most cases, allow you to scale the image beyond the width of the main column, though not infinitely. - // @todo It would be good to revisit this once a content-width variable becomes available. - - var maxWidthBuffer = maxWidth * 2.5; - var showRightHandle = false; - var showLeftHandle = false; - /* eslint-disable no-lonely-if */ - // See https://github.com/WordPress/gutenberg/issues/7584. - - if (align === 'center') { - // When the image is centered, show both handles. - showRightHandle = true; - showLeftHandle = true; - } else if (isRTL) { - // In RTL mode the image is on the right by default. - // Show the right handle and hide the left handle only when it is aligned left. - // Otherwise always show the left handle. - if (align === 'left') { - showRightHandle = true; - } else { - showLeftHandle = true; - } - } else { - // Show the left handle and hide the right handle only when the image is aligned right. - // Otherwise always show the right handle. - if (align === 'right') { - showLeftHandle = true; - } else { - showRightHandle = true; - } - } - /* eslint-enable no-lonely-if */ - - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { - size: { - width: width, - height: height - }, - minWidth: minWidth, - maxWidth: maxWidthBuffer, - minHeight: minHeight, - maxHeight: maxWidthBuffer / ratio, - lockAspectRatio: true, - enable: { - top: false, - right: showRightHandle, - bottom: true, - left: showLeftHandle - }, - onResizeStart: onResizeStart, - onResizeStop: function onResizeStop(event, direction, elt, delta) { - _onResizeStop(); - - setAttributes({ - width: parseInt(currentWidth + delta.width, 10), - height: parseInt(currentHeight + delta.height, 10) - }); - } - }, img)); - }), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - unstableOnFocus: this.onFocusCaption, - onChange: function onChange(value) { - return setAttributes({ - caption: value - }); - }, - isSelected: this.state.captionFocused, - inlineToolbar: true - })), mediaPlaceholder); - /* eslint-enable jsx-a11y/click-events-have-key-events */ - } - }]); - - return ImageEdit; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - toggleSelection = _dispatch.toggleSelection; - - return { - onResizeStart: function onResizeStart() { - return toggleSelection(false); - }, - onResizeStop: function onResizeStop() { - return toggleSelection(true); - } - }; -}), Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _select = select('core'), - getMedia = _select.getMedia; - - var _select2 = select('core/block-editor'), - getSettings = _select2.getSettings; - - var id = props.attributes.id, - isSelected = props.isSelected; - - var _getSettings = getSettings(), - __experimentalMediaUpload = _getSettings.__experimentalMediaUpload, - imageSizes = _getSettings.imageSizes, - isRTL = _getSettings.isRTL, - maxWidth = _getSettings.maxWidth; - - return { - image: id && isSelected ? getMedia(id) : null, - maxWidth: maxWidth, - isRTL: isRTL, - imageSizes: imageSizes, - mediaUpload: __experimentalMediaUpload - }; -}), Object(external_this_wp_viewport_["withViewportMatch"])({ - isLargeViewport: 'medium' -}), external_this_wp_components_["withNotices"]])(edit_ImageEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/save.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save_save(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var url = attributes.url, - alt = attributes.alt, - caption = attributes.caption, - align = attributes.align, - href = attributes.href, - rel = attributes.rel, - linkClass = attributes.linkClass, - width = attributes.width, - height = attributes.height, - id = attributes.id, - linkTarget = attributes.linkTarget, - sizeSlug = attributes.sizeSlug; - var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "size-".concat(sizeSlug), sizeSlug), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames)); - var image = Object(external_this_wp_element_["createElement"])("img", { - src: url, - alt: alt, - className: id ? "wp-image-".concat(id) : null, - width: width, - height: height - }); - var figure = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, href ? Object(external_this_wp_element_["createElement"])("a", { - className: linkClass, - href: href, - target: linkTarget, - rel: rel - }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - - if ('left' === align || 'right' === align || 'center' === align) { - return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])("figure", { - className: classes - }, figure)); - } - - return Object(external_this_wp_element_["createElement"])("figure", { - className: classes - }, figure); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/transforms.js - - -/** - * WordPress dependencies - */ - - -function stripFirstImage(attributes, _ref) { - var shortcode = _ref.shortcode; - - var _document$implementat = document.implementation.createHTMLDocument(''), - body = _document$implementat.body; - - body.innerHTML = shortcode.content; - var nodeToRemove = body.querySelector('img'); // if an image has parents, find the topmost node to remove - - while (nodeToRemove && nodeToRemove.parentNode && nodeToRemove.parentNode !== body) { - nodeToRemove = nodeToRemove.parentNode; - } - - if (nodeToRemove) { - nodeToRemove.parentNode.removeChild(nodeToRemove); - } - - return body.innerHTML.trim(); -} - -function getFirstAnchorAttributeFormHTML(html, attributeName) { - var _document$implementat2 = document.implementation.createHTMLDocument(''), - body = _document$implementat2.body; - - body.innerHTML = html; - var firstElementChild = body.firstElementChild; - - if (firstElementChild && firstElementChild.nodeName === 'A') { - return firstElementChild.getAttribute(attributeName) || undefined; - } -} - -var imageSchema = { - img: { - attributes: ['src', 'alt'], - classes: ['alignleft', 'aligncenter', 'alignright', 'alignnone', /^wp-image-\d+$/] - } -}; -var schema = { - figure: { - require: ['img'], - children: Object(objectSpread["a" /* default */])({}, imageSchema, { - a: { - attributes: ['href', 'rel', 'target'], - children: imageSchema - }, - figcaption: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - }) - } -}; -var transforms = { - from: [{ - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'FIGURE' && !!node.querySelector('img'); - }, - schema: schema, - transform: function transform(node) { - // Search both figure and image classes. Alignment could be - // set on either. ID is set on the image. - var className = node.className + ' ' + node.querySelector('img').className; - var alignMatches = /(?:^|\s)align(left|center|right)(?:$|\s)/.exec(className); - var align = alignMatches ? alignMatches[1] : undefined; - var idMatches = /(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(className); - var id = idMatches ? Number(idMatches[1]) : undefined; - var anchorElement = node.querySelector('a'); - var linkDestination = anchorElement && anchorElement.href ? 'custom' : undefined; - var href = anchorElement && anchorElement.href ? anchorElement.href : undefined; - var rel = anchorElement && anchorElement.rel ? anchorElement.rel : undefined; - var linkClass = anchorElement && anchorElement.className ? anchorElement.className : undefined; - var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])('core/image', node.outerHTML, { - align: align, - id: id, - linkDestination: linkDestination, - href: href, - rel: rel, - linkClass: linkClass - }); - return Object(external_this_wp_blocks_["createBlock"])('core/image', attributes); - } - }, { - type: 'files', - isMatch: function isMatch(files) { - return files.length === 1 && files[0].type.indexOf('image/') === 0; - }, - transform: function transform(files) { - var file = files[0]; // We don't need to upload the media directly here - // It's already done as part of the `componentDidMount` - // int the image block - - return Object(external_this_wp_blocks_["createBlock"])('core/image', { - url: Object(external_this_wp_blob_["createBlobURL"])(file) - }); - } - }, { - type: 'shortcode', - tag: 'caption', - attributes: { - url: { - type: 'string', - source: 'attribute', - attribute: 'src', - selector: 'img' - }, - alt: { - type: 'string', - source: 'attribute', - attribute: 'alt', - selector: 'img' - }, - caption: { - shortcode: stripFirstImage - }, - href: { - shortcode: function shortcode(attributes, _ref2) { - var _shortcode = _ref2.shortcode; - return getFirstAnchorAttributeFormHTML(_shortcode.content, 'href'); - } - }, - rel: { - shortcode: function shortcode(attributes, _ref3) { - var _shortcode2 = _ref3.shortcode; - return getFirstAnchorAttributeFormHTML(_shortcode2.content, 'rel'); - } - }, - linkClass: { - shortcode: function shortcode(attributes, _ref4) { - var _shortcode3 = _ref4.shortcode; - return getFirstAnchorAttributeFormHTML(_shortcode3.content, 'class'); - } - }, - id: { - type: 'number', - shortcode: function shortcode(_ref5) { - var id = _ref5.named.id; - - if (!id) { - return; - } - - return parseInt(id.replace('attachment_', ''), 10); - } - }, - align: { - type: 'string', - shortcode: function shortcode(_ref6) { - var _ref6$named$align = _ref6.named.align, - align = _ref6$named$align === void 0 ? 'alignnone' : _ref6$named$align; - return align.replace('align', ''); - } - } - } - }] -}; -/* harmony default export */ var image_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return image_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var metadata = { - name: "core/image", - category: "common", - attributes: { - align: { - type: "string" - }, - url: { - type: "string", - source: "attribute", - selector: "img", - attribute: "src" - }, - alt: { - type: "string", - source: "attribute", - selector: "img", - attribute: "alt", - "default": "" - }, - caption: { - type: "string", - source: "html", - selector: "figcaption" - }, - href: { - type: "string", - source: "attribute", - selector: "figure > a", - attribute: "href" - }, - rel: { - type: "string", - source: "attribute", - selector: "figure > a", - attribute: "rel" - }, - linkClass: { - type: "string", - source: "attribute", - selector: "figure > a", - attribute: "class" - }, - id: { - type: "number" - }, - width: { - type: "number" - }, - height: { - type: "number" - }, - sizeSlug: { - type: "string" - }, - linkDestination: { - type: "string", - "default": "none" - }, - linkTarget: { - type: "string", - source: "attribute", - selector: "figure > a", - attribute: "target" - } - } -}; - - -var image_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Image'), - description: Object(external_this_wp_i18n_["__"])('Insert an image to make a visual statement.'), - icon: icon, - keywords: ['img', // "img" is not translated as it is intended to reflect the HTML tag. - Object(external_this_wp_i18n_["__"])('photo')], - example: { - attributes: { - sizeSlug: 'large', - url: 'https://upload.wikimedia.org/wikipedia/commons/1/15/MtBlanc1.JPG', - caption: Object(external_this_wp_i18n_["__"])('Mont Blanc appears—still, snowy, and serene.') - } - }, - styles: [{ - name: 'default', - label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), - isDefault: true - }, { - name: 'circle-mask', - label: Object(external_this_wp_i18n_["_x"])('Circle Mask', 'block style') - }], - transforms: image_transforms, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var align = attributes.align, - width = attributes.width; - - if ('left' === align || 'center' === align || 'right' === align || 'wide' === align || 'full' === align) { - return { - 'data-align': align, - 'data-resized': !!width - }; - } - }, - edit: edit, - save: save_save, - deprecated: image_deprecated -}; - - -/***/ }), -/* 244 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/shared.js -var IMAGE_BACKGROUND_TYPE = 'image'; -var VIDEO_BACKGROUND_TYPE = 'video'; -var COVER_MIN_HEIGHT = 50; -function backgroundImageStyles(url) { - return url ? { - backgroundImage: "url(".concat(url, ")") - } : {}; -} -function dimRatioToClass(ratio) { - return ratio === 0 || ratio === 50 ? null : 'has-background-dim-' + 10 * Math.round(ratio / 10); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/deprecated.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -var blockAttributes = { - url: { - type: 'string' - }, - id: { - type: 'number' - }, - hasParallax: { - type: 'boolean', - default: false - }, - dimRatio: { - type: 'number', - default: 50 - }, - overlayColor: { - type: 'string' - }, - customOverlayColor: { - type: 'string' - }, - backgroundType: { - type: 'string', - default: 'image' - }, - focalPoint: { - type: 'object' - } -}; -var deprecated = [{ - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - title: { - type: 'string', - source: 'html', - selector: 'p' - }, - contentAlign: { - type: 'string', - default: 'center' - } - }), - supports: { - align: true - }, - save: function save(_ref) { - var attributes = _ref.attributes; - var backgroundType = attributes.backgroundType, - contentAlign = attributes.contentAlign, - customOverlayColor = attributes.customOverlayColor, - dimRatio = attributes.dimRatio, - focalPoint = attributes.focalPoint, - hasParallax = attributes.hasParallax, - overlayColor = attributes.overlayColor, - title = attributes.title, - url = attributes.url; - var overlayColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', overlayColor); - var style = backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}; - - if (!overlayColorClass) { - style.backgroundColor = customOverlayColor; - } - - if (focalPoint && !hasParallax) { - style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); - } - - var classes = classnames_default()(dimRatioToClass(dimRatio), overlayColorClass, Object(defineProperty["a" /* default */])({ - 'has-background-dim': dimRatio !== 0, - 'has-parallax': hasParallax - }, "has-".concat(contentAlign, "-content"), contentAlign !== 'center')); - return Object(external_this_wp_element_["createElement"])("div", { - className: classes, - style: style - }, VIDEO_BACKGROUND_TYPE === backgroundType && url && Object(external_this_wp_element_["createElement"])("video", { - className: "wp-block-cover__video-background", - autoPlay: true, - muted: true, - loop: true, - src: url - }), !external_this_wp_blockEditor_["RichText"].isEmpty(title) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "p", - className: "wp-block-cover-text", - value: title - })); - }, - migrate: function migrate(attributes) { - return [Object(external_lodash_["omit"])(attributes, ['title', 'contentAlign']), [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: attributes.title, - align: attributes.contentAlign, - fontSize: 'large', - placeholder: Object(external_this_wp_i18n_["__"])('Write title…') - })]]; - } -}, { - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - title: { - type: 'string', - source: 'html', - selector: 'p' - }, - contentAlign: { - type: 'string', - default: 'center' - }, - align: { - type: 'string' - } - }), - supports: { - className: false - }, - save: function save(_ref2) { - var attributes = _ref2.attributes; - var url = attributes.url, - title = attributes.title, - hasParallax = attributes.hasParallax, - dimRatio = attributes.dimRatio, - align = attributes.align, - contentAlign = attributes.contentAlign, - overlayColor = attributes.overlayColor, - customOverlayColor = attributes.customOverlayColor; - var overlayColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', overlayColor); - var style = backgroundImageStyles(url); - - if (!overlayColorClass) { - style.backgroundColor = customOverlayColor; - } - - var classes = classnames_default()('wp-block-cover-image', dimRatioToClass(dimRatio), overlayColorClass, Object(defineProperty["a" /* default */])({ - 'has-background-dim': dimRatio !== 0, - 'has-parallax': hasParallax - }, "has-".concat(contentAlign, "-content"), contentAlign !== 'center'), align ? "align".concat(align) : null); - return Object(external_this_wp_element_["createElement"])("div", { - className: classes, - style: style - }, !external_this_wp_blockEditor_["RichText"].isEmpty(title) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "p", - className: "wp-block-cover-image-text", - value: title - })); - }, - migrate: function migrate(attributes) { - return [Object(external_lodash_["omit"])(attributes, ['title', 'contentAlign', 'align']), [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: attributes.title, - align: attributes.contentAlign, - fontSize: 'large', - placeholder: Object(external_this_wp_i18n_["__"])('Write title…') - })]]; - } -}, { - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - title: { - type: 'string', - source: 'html', - selector: 'h2' - }, - align: { - type: 'string' - }, - contentAlign: { - type: 'string', - default: 'center' - } - }), - supports: { - className: false - }, - save: function save(_ref3) { - var attributes = _ref3.attributes; - var url = attributes.url, - title = attributes.title, - hasParallax = attributes.hasParallax, - dimRatio = attributes.dimRatio, - align = attributes.align; - var style = backgroundImageStyles(url); - var classes = classnames_default()('wp-block-cover-image', dimRatioToClass(dimRatio), { - 'has-background-dim': dimRatio !== 0, - 'has-parallax': hasParallax - }, align ? "align".concat(align) : null); - return Object(external_this_wp_element_["createElement"])("section", { - className: classes, - style: style - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "h2", - value: title - })); - }, - migrate: function migrate(attributes) { - return [Object(external_lodash_["omit"])(attributes, ['title', 'contentAlign', 'align']), [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: attributes.title, - align: attributes.contentAlign, - fontSize: 'large', - placeholder: Object(external_this_wp_i18n_["__"])('Write title…') - })]]; - } -}]; -/* harmony default export */ var cover_deprecated = (deprecated); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); - -// EXTERNAL MODULE: ./node_modules/fast-average-color/dist/index.js -var dist = __webpack_require__(229); -var dist_default = /*#__PURE__*/__webpack_require__.n(dist); - -// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js -var tinycolor = __webpack_require__(49); -var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0 0h24v24H0z", - fill: "none" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/edit.js - - - - - - - - - - - -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - - -/** - * Module Constants - */ - -var ALLOWED_MEDIA_TYPES = ['image', 'video']; -var INNER_BLOCKS_TEMPLATE = [['core/paragraph', { - align: 'center', - fontSize: 'large', - placeholder: Object(external_this_wp_i18n_["__"])('Write title…') -}]]; - -function retrieveFastAverageColor() { - if (!retrieveFastAverageColor.fastAverageColor) { - retrieveFastAverageColor.fastAverageColor = new dist_default.a(); - } - - return retrieveFastAverageColor.fastAverageColor; -} - -var CoverHeightInput = Object(external_this_wp_compose_["withInstanceId"])(function (_ref) { - var _ref$value = _ref.value, - value = _ref$value === void 0 ? '' : _ref$value, - instanceId = _ref.instanceId, - onChange = _ref.onChange; - - var _useState = Object(external_this_wp_element_["useState"])(null), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - temporaryInput = _useState2[0], - setTemporaryInput = _useState2[1]; - - var onChangeEvent = Object(external_this_wp_element_["useCallback"])(function (event) { - var unprocessedValue = event.target.value; - var inputValue = unprocessedValue !== '' ? parseInt(event.target.value, 10) : undefined; - - if ((isNaN(inputValue) || inputValue < COVER_MIN_HEIGHT) && inputValue !== undefined) { - setTemporaryInput(event.target.value); - return; - } - - setTemporaryInput(null); - onChange(inputValue); - }, [onChange, setTemporaryInput]); - var onBlurEvent = Object(external_this_wp_element_["useCallback"])(function () { - if (temporaryInput !== null) { - setTemporaryInput(null); - } - }, [temporaryInput, setTemporaryInput]); - var inputId = "block-cover-height-input-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - label: Object(external_this_wp_i18n_["__"])('Minimum height in pixels'), - id: inputId - }, Object(external_this_wp_element_["createElement"])("input", { - type: "number", - id: inputId, - onChange: onChangeEvent, - onBlur: onBlurEvent, - value: temporaryInput !== null ? temporaryInput : value, - min: COVER_MIN_HEIGHT, - step: "10" - })); -}); -var RESIZABLE_BOX_ENABLE_OPTION = { - top: false, - right: false, - bottom: true, - left: false, - topRight: false, - bottomRight: false, - bottomLeft: false, - topLeft: false -}; - -function ResizableCover(_ref2) { - var className = _ref2.className, - children = _ref2.children, - onResizeStart = _ref2.onResizeStart, - onResize = _ref2.onResize, - onResizeStop = _ref2.onResizeStop; - - var _useState3 = Object(external_this_wp_element_["useState"])(false), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - isResizing = _useState4[0], - setIsResizing = _useState4[1]; - - var onResizeEvent = Object(external_this_wp_element_["useCallback"])(function (event, direction, elt) { - onResize(elt.clientHeight); - - if (!isResizing) { - setIsResizing(true); - } - }, [onResize, setIsResizing]); - var onResizeStartEvent = Object(external_this_wp_element_["useCallback"])(function (event, direction, elt) { - onResizeStart(elt.clientHeight); - onResize(elt.clientHeight); - }, [onResizeStart, onResize]); - var onResizeStopEvent = Object(external_this_wp_element_["useCallback"])(function (event, direction, elt) { - onResizeStop(elt.clientHeight); - setIsResizing(false); - }, [onResizeStop, setIsResizing]); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { - className: classnames_default()(className, { - 'is-resizing': isResizing - }), - enable: RESIZABLE_BOX_ENABLE_OPTION, - onResizeStart: onResizeStartEvent, - onResize: onResizeEvent, - onResizeStop: onResizeStopEvent, - minHeight: COVER_MIN_HEIGHT - }, children); -} - -var edit_CoverEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(CoverEdit, _Component); - - function CoverEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, CoverEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CoverEdit).apply(this, arguments)); - _this.state = { - isDark: false, - temporaryMinHeight: null - }; - _this.imageRef = Object(external_this_wp_element_["createRef"])(); - _this.videoRef = Object(external_this_wp_element_["createRef"])(); - _this.changeIsDarkIfRequired = _this.changeIsDarkIfRequired.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(CoverEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.handleBackgroundMode(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - this.handleBackgroundMode(prevProps); - } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes, - isSelected = _this$props.isSelected, - className = _this$props.className, - noticeUI = _this$props.noticeUI, - overlayColor = _this$props.overlayColor, - setOverlayColor = _this$props.setOverlayColor, - toggleSelection = _this$props.toggleSelection; - var backgroundType = attributes.backgroundType, - dimRatio = attributes.dimRatio, - focalPoint = attributes.focalPoint, - hasParallax = attributes.hasParallax, - id = attributes.id, - url = attributes.url, - minHeight = attributes.minHeight; - - var onSelectMedia = function onSelectMedia(media) { - if (!media || !media.url) { - setAttributes({ - url: undefined, - id: undefined - }); - return; - } - - var mediaType; // for media selections originated from a file upload. - - if (media.media_type) { - if (media.media_type === IMAGE_BACKGROUND_TYPE) { - mediaType = IMAGE_BACKGROUND_TYPE; - } else { - // only images and videos are accepted so if the media_type is not an image we can assume it is a video. - // Videos contain the media type of 'file' in the object returned from the rest api. - mediaType = VIDEO_BACKGROUND_TYPE; - } - } else { - // for media selections originated from existing files in the media library. - if (media.type !== IMAGE_BACKGROUND_TYPE && media.type !== VIDEO_BACKGROUND_TYPE) { - return; - } - - mediaType = media.type; - } - - setAttributes(Object(objectSpread["a" /* default */])({ - url: media.url, - id: media.id, - backgroundType: mediaType - }, mediaType === VIDEO_BACKGROUND_TYPE ? { - focalPoint: undefined, - hasParallax: undefined - } : {})); - }; - - var toggleParallax = function toggleParallax() { - setAttributes(Object(objectSpread["a" /* default */])({ - hasParallax: !hasParallax - }, !hasParallax ? { - focalPoint: undefined - } : {})); - }; - - var setDimRatio = function setDimRatio(ratio) { - return setAttributes({ - dimRatio: ratio - }); - }; - - var temporaryMinHeight = this.state.temporaryMinHeight; - - var style = Object(objectSpread["a" /* default */])({}, backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}, { - backgroundColor: overlayColor.color, - minHeight: temporaryMinHeight || minHeight - }); - - if (focalPoint) { - style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); - } - - var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, !!(url || overlayColor.color) && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { - onSelect: onSelectMedia, - allowedTypes: ALLOWED_MEDIA_TYPES, - value: id, - render: function render(_ref3) { - var open = _ref3.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit media'), - icon: "edit", - onClick: open - }); - } - }))))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Media Settings') - }, IMAGE_BACKGROUND_TYPE === backgroundType && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Fixed Background'), - checked: hasParallax, - onChange: toggleParallax - }), IMAGE_BACKGROUND_TYPE === backgroundType && !hasParallax && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { - label: Object(external_this_wp_i18n_["__"])('Focal Point Picker'), - url: url, - value: focalPoint, - onChange: function onChange(value) { - return setAttributes({ - focalPoint: value - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isDefault: true, - isSmall: true, - className: "block-library-cover__reset-button", - onClick: function onClick() { - return setAttributes({ - url: undefined, - id: undefined, - backgroundType: undefined, - dimRatio: undefined, - focalPoint: undefined, - hasParallax: undefined - }); - } - }, Object(external_this_wp_i18n_["__"])('Clear Media')))), (url || overlayColor.color) && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Dimensions') - }, Object(external_this_wp_element_["createElement"])(CoverHeightInput, { - value: temporaryMinHeight || minHeight, - onChange: function onChange(value) { - setAttributes({ - minHeight: value - }); - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Overlay'), - initialOpen: true, - colorSettings: [{ - value: overlayColor.color, - onChange: setOverlayColor, - label: Object(external_this_wp_i18n_["__"])('Overlay Color') - }] - }, !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Background Opacity'), - value: dimRatio, - onChange: setDimRatio, - min: 0, - max: 100, - step: 10, - required: true - }))))); - - if (!(url || overlayColor.color)) { - var placeholderIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: icon - }); - - var label = Object(external_this_wp_i18n_["__"])('Cover'); - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - icon: placeholderIcon, - className: className, - labels: { - title: label, - instructions: Object(external_this_wp_i18n_["__"])('Upload an image or video file, or pick one from your media library.') - }, - onSelect: onSelectMedia, - accept: "image/*,video/*", - allowedTypes: ALLOWED_MEDIA_TYPES, - notices: noticeUI, - onError: this.onUploadError - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ColorPalette"], { - disableCustomColors: true, - value: overlayColor.color, - onChange: setOverlayColor, - clearable: false, - className: "wp-block-cover__placeholder-color-palette" - }))); - } - - var classes = classnames_default()(className, dimRatioToClass(dimRatio), Object(defineProperty["a" /* default */])({ - 'is-dark-theme': this.state.isDark, - 'has-background-dim': dimRatio !== 0, - 'has-parallax': hasParallax - }, overlayColor.class, overlayColor.class)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(ResizableCover, { - className: classnames_default()('block-library-cover__resize-container', { - 'is-selected': isSelected - }), - onResizeStart: function onResizeStart() { - return toggleSelection(false); - }, - onResize: function onResize(newMinHeight) { - _this2.setState({ - temporaryMinHeight: newMinHeight - }); - }, - onResizeStop: function onResizeStop(newMinHeight) { - toggleSelection(true); - setAttributes({ - minHeight: newMinHeight - }); - - _this2.setState({ - temporaryMinHeight: null - }); - } - }, Object(external_this_wp_element_["createElement"])("div", { - "data-url": url, - style: style, - className: classes - }, IMAGE_BACKGROUND_TYPE === backgroundType && // Used only to programmatically check if the image is dark or not - Object(external_this_wp_element_["createElement"])("img", { - ref: this.imageRef, - "aria-hidden": true, - alt: "", - style: { - display: 'none' - }, - src: url - }), VIDEO_BACKGROUND_TYPE === backgroundType && Object(external_this_wp_element_["createElement"])("video", { - ref: this.videoRef, - className: "wp-block-cover__video-background", - autoPlay: true, - muted: true, - loop: true, - src: url - }), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-cover__inner-container" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - template: INNER_BLOCKS_TEMPLATE - }))))); - } - }, { - key: "handleBackgroundMode", - value: function handleBackgroundMode(prevProps) { - var _this3 = this; - - var _this$props2 = this.props, - attributes = _this$props2.attributes, - overlayColor = _this$props2.overlayColor; - var dimRatio = attributes.dimRatio, - url = attributes.url; // If opacity is greater than 50 the dominant color is the overlay color, - // so use that color for the dark mode computation. - - if (dimRatio > 50) { - if (prevProps && prevProps.attributes.dimRatio > 50 && prevProps.overlayColor.color === overlayColor.color) { - // No relevant prop changes happened there is no need to apply any change. - return; - } - - if (!overlayColor.color) { - // If no overlay color exists the overlay color is black (isDark ) - this.changeIsDarkIfRequired(true); - return; - } - - this.changeIsDarkIfRequired(tinycolor_default()(overlayColor.color).isDark()); - return; - } // If opacity is lower than 50 the dominant color is the image or video color, - // so use that color for the dark mode computation. - - - if (prevProps && prevProps.attributes.dimRatio <= 50 && prevProps.attributes.url === url) { - // No relevant prop changes happened there is no need to apply any change. - return; - } - - var backgroundType = attributes.backgroundType; - var element; - - switch (backgroundType) { - case IMAGE_BACKGROUND_TYPE: - element = this.imageRef.current; - break; - - case VIDEO_BACKGROUND_TYPE: - element = this.videoRef.current; - break; - } - - if (!element) { - return; - } - - retrieveFastAverageColor().getColorAsync(element, function (color) { - _this3.changeIsDarkIfRequired(color.isDark); - }); - } - }, { - key: "changeIsDarkIfRequired", - value: function changeIsDarkIfRequired(newIsDark) { - if (this.state.isDark !== newIsDark) { - this.setState({ - isDark: newIsDark - }); - } - } - }]); - - return CoverEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - toggleSelection = _dispatch.toggleSelection; - - return { - toggleSelection: toggleSelection - }; -}), Object(external_this_wp_blockEditor_["withColors"])({ - overlayColor: 'background-color' -}), external_this_wp_components_["withNotices"], external_this_wp_compose_["withInstanceId"]])(edit_CoverEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/save.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -function save_save(_ref) { - var attributes = _ref.attributes; - var backgroundType = attributes.backgroundType, - customOverlayColor = attributes.customOverlayColor, - dimRatio = attributes.dimRatio, - focalPoint = attributes.focalPoint, - hasParallax = attributes.hasParallax, - overlayColor = attributes.overlayColor, - url = attributes.url, - minHeight = attributes.minHeight; - var overlayColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', overlayColor); - var style = backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}; - - if (!overlayColorClass) { - style.backgroundColor = customOverlayColor; - } - - if (focalPoint && !hasParallax) { - style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); - } - - style.minHeight = minHeight || undefined; - var classes = classnames_default()(dimRatioToClass(dimRatio), overlayColorClass, { - 'has-background-dim': dimRatio !== 0, - 'has-parallax': hasParallax - }); - return Object(external_this_wp_element_["createElement"])("div", { - className: classes, - style: style - }, VIDEO_BACKGROUND_TYPE === backgroundType && url && Object(external_this_wp_element_["createElement"])("video", { - className: "wp-block-cover__video-background", - autoPlay: true, - muted: true, - loop: true, - src: url - }), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-cover__inner-container" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/transforms.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var transforms = { - from: [{ - type: 'block', - blocks: ['core/image'], - transform: function transform(_ref) { - var caption = _ref.caption, - url = _ref.url, - align = _ref.align, - id = _ref.id; - return Object(external_this_wp_blocks_["createBlock"])('core/cover', { - title: caption, - url: url, - align: align, - id: id - }); - } - }, { - type: 'block', - blocks: ['core/video'], - transform: function transform(_ref2) { - var caption = _ref2.caption, - src = _ref2.src, - align = _ref2.align, - id = _ref2.id; - return Object(external_this_wp_blocks_["createBlock"])('core/cover', { - title: caption, - url: src, - align: align, - id: id, - backgroundType: VIDEO_BACKGROUND_TYPE - }); - } - }], - to: [{ - type: 'block', - blocks: ['core/image'], - isMatch: function isMatch(_ref3) { - var backgroundType = _ref3.backgroundType, - url = _ref3.url; - return !url || backgroundType === IMAGE_BACKGROUND_TYPE; - }, - transform: function transform(_ref4) { - var title = _ref4.title, - url = _ref4.url, - align = _ref4.align, - id = _ref4.id; - return Object(external_this_wp_blocks_["createBlock"])('core/image', { - caption: title, - url: url, - align: align, - id: id - }); - } - }, { - type: 'block', - blocks: ['core/video'], - isMatch: function isMatch(_ref5) { - var backgroundType = _ref5.backgroundType, - url = _ref5.url; - return !url || backgroundType === VIDEO_BACKGROUND_TYPE; - }, - transform: function transform(_ref6) { - var title = _ref6.title, - url = _ref6.url, - align = _ref6.align, - id = _ref6.id; - return Object(external_this_wp_blocks_["createBlock"])('core/video', { - caption: title, - src: url, - id: id, - align: align - }); - } - }] -}; -/* harmony default export */ var cover_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return cover_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var metadata = { - name: "core/cover", - category: "common", - attributes: { - url: { - type: "string" - }, - id: { - type: "number" - }, - hasParallax: { - type: "boolean", - "default": false - }, - dimRatio: { - type: "number", - "default": 50 - }, - overlayColor: { - type: "string" - }, - customOverlayColor: { - type: "string" - }, - backgroundType: { - type: "string", - "default": "image" - }, - focalPoint: { - type: "object" - }, - minHeight: { - type: "number" - } - } -}; - - -var cover_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Cover'), - description: Object(external_this_wp_i18n_["__"])('Add an image or video with a text overlay — great for headers.'), - icon: icon, - supports: { - align: true - }, - example: { - attributes: { - customOverlayColor: '#065174', - dimRatio: 40, - url: 'https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg' - }, - innerBlocks: [{ - name: 'core/paragraph', - attributes: { - customFontSize: 48, - content: Object(external_this_wp_i18n_["__"])('Snow Patrol'), - align: 'center' - } - }] - }, - transforms: cover_transforms, - save: save_save, - edit: edit, - deprecated: cover_deprecated -}; - - -/***/ }), -/* 245 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/deprecated.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - -var metadata = { - name: "core/table", - category: "formatting", - attributes: { - hasFixedLayout: { - type: "boolean", - "default": false - }, - backgroundColor: { - type: "string" - }, - head: { - type: "array", - "default": [], - source: "query", - selector: "thead tr", - query: { - cells: { - type: "array", - "default": [], - source: "query", - selector: "td,th", - query: { - content: { - type: "string", - source: "html" - }, - tag: { - type: "string", - "default": "td", - source: "tag" - }, - scope: { - type: "string", - source: "attribute", - attribute: "scope" - }, - align: { - type: "string", - source: "attribute", - attribute: "data-align" - } - } - } - } - }, - body: { - type: "array", - "default": [], - source: "query", - selector: "tbody tr", - query: { - cells: { - type: "array", - "default": [], - source: "query", - selector: "td,th", - query: { - content: { - type: "string", - source: "html" - }, - tag: { - type: "string", - "default": "td", - source: "tag" - }, - scope: { - type: "string", - source: "attribute", - attribute: "scope" - }, - align: { - type: "string", - source: "attribute", - attribute: "data-align" - } - } - } - } - }, - foot: { - type: "array", - "default": [], - source: "query", - selector: "tfoot tr", - query: { - cells: { - type: "array", - "default": [], - source: "query", - selector: "td,th", - query: { - content: { - type: "string", - source: "html" - }, - tag: { - type: "string", - "default": "td", - source: "tag" - }, - scope: { - type: "string", - source: "attribute", - attribute: "scope" - }, - align: { - type: "string", - source: "attribute", - attribute: "data-align" - } - } - } - } - } - } -}; -var supports = { - align: true -}; -var deprecated = [{ - attributes: metadata.attributes, - supports: supports, - save: function save(_ref) { - var attributes = _ref.attributes; - var hasFixedLayout = attributes.hasFixedLayout, - head = attributes.head, - body = attributes.body, - foot = attributes.foot, - backgroundColor = attributes.backgroundColor; - var isEmpty = !head.length && !body.length && !foot.length; - - if (isEmpty) { - return null; - } - - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var classes = classnames_default()(backgroundClass, { - 'has-fixed-layout': hasFixedLayout, - 'has-background': !!backgroundClass - }); - - var Section = function Section(_ref2) { - var type = _ref2.type, - rows = _ref2.rows; - - if (!rows.length) { - return null; - } - - var Tag = "t".concat(type); - return Object(external_this_wp_element_["createElement"])(Tag, null, rows.map(function (_ref3, rowIndex) { - var cells = _ref3.cells; - return Object(external_this_wp_element_["createElement"])("tr", { - key: rowIndex - }, cells.map(function (_ref4, cellIndex) { - var content = _ref4.content, - tag = _ref4.tag, - scope = _ref4.scope; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: tag, - value: content, - key: cellIndex, - scope: tag === 'th' ? scope : undefined - }); - })); - })); - }; - - return Object(external_this_wp_element_["createElement"])("table", { - className: classes - }, Object(external_this_wp_element_["createElement"])(Section, { - type: "head", - rows: head - }), Object(external_this_wp_element_["createElement"])(Section, { - type: "body", - rows: body - }), Object(external_this_wp_element_["createElement"])(Section, { - type: "foot", - rows: foot - })); - } -}]; -/* harmony default export */ var table_deprecated = (deprecated); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(17); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/state.js - - - - -/** - * External dependencies - */ - -var INHERITED_COLUMN_ATTRIBUTES = ['align']; -/** - * Creates a table state. - * - * @param {Object} options - * @param {number} options.rowCount Row count for the table to create. - * @param {number} options.columnCount Column count for the table to create. - * - * @return {Object} New table state. - */ - -function createTable(_ref) { - var rowCount = _ref.rowCount, - columnCount = _ref.columnCount; - return { - body: Object(external_lodash_["times"])(rowCount, function () { - return { - cells: Object(external_lodash_["times"])(columnCount, function () { - return { - content: '', - tag: 'td' - }; - }) - }; - }) - }; -} -/** - * Returns the first row in the table. - * - * @param {Object} state Current table state. - * - * @return {Object} The first table row. - */ - -function getFirstRow(state) { - if (!isEmptyTableSection(state.head)) { - return state.head[0]; - } - - if (!isEmptyTableSection(state.body)) { - return state.body[0]; - } - - if (!isEmptyTableSection(state.foot)) { - return state.foot[0]; - } -} -/** - * Gets an attribute for a cell. - * - * @param {Object} state Current table state. - * @param {Object} cellLocation The location of the cell - * @param {string} attributeName The name of the attribute to get the value of. - * - * @return {*} The attribute value. - */ - -function getCellAttribute(state, cellLocation, attributeName) { - var sectionName = cellLocation.sectionName, - rowIndex = cellLocation.rowIndex, - columnIndex = cellLocation.columnIndex; - return Object(external_lodash_["get"])(state, [sectionName, rowIndex, 'cells', columnIndex, attributeName]); -} -/** - * Returns updated cell attributes after applying the `updateCell` function to the selection. - * - * @param {Object} state The block attributes. - * @param {Object} selection The selection of cells to update. - * @param {Function} updateCell A function to update the selected cell attributes. - * - * @return {Object} New table state including the updated cells. - */ - -function updateSelectedCell(state, selection, updateCell) { - if (!selection) { - return state; - } - - var tableSections = Object(external_lodash_["pick"])(state, ['head', 'body', 'foot']); - var selectionSectionName = selection.sectionName, - selectionRowIndex = selection.rowIndex; - return Object(external_lodash_["mapValues"])(tableSections, function (section, sectionName) { - if (selectionSectionName && selectionSectionName !== sectionName) { - return section; - } - - return section.map(function (row, rowIndex) { - if (selectionRowIndex && selectionRowIndex !== rowIndex) { - return row; - } - - return { - cells: row.cells.map(function (cellAttributes, columnIndex) { - var cellLocation = { - sectionName: sectionName, - columnIndex: columnIndex, - rowIndex: rowIndex - }; - - if (!isCellSelected(cellLocation, selection)) { - return cellAttributes; - } - - return updateCell(cellAttributes); - }) - }; - }); - }); -} -/** - * Returns whether the cell at `cellLocation` is included in the selection `selection`. - * - * @param {Object} cellLocation An object containing cell location properties. - * @param {Object} selection An object containing selection properties. - * - * @return {boolean} True if the cell is selected, false otherwise. - */ - -function isCellSelected(cellLocation, selection) { - if (!cellLocation || !selection) { - return false; - } - - switch (selection.type) { - case 'column': - return selection.type === 'column' && cellLocation.columnIndex === selection.columnIndex; - - case 'cell': - return selection.type === 'cell' && cellLocation.sectionName === selection.sectionName && cellLocation.columnIndex === selection.columnIndex && cellLocation.rowIndex === selection.rowIndex; - } -} -/** - * Inserts a row in the table state. - * - * @param {Object} state Current table state. - * @param {Object} options - * @param {string} options.sectionName Section in which to insert the row. - * @param {number} options.rowIndex Row index at which to insert the row. - * - * @return {Object} New table state. - */ - -function insertRow(state, _ref2) { - var sectionName = _ref2.sectionName, - rowIndex = _ref2.rowIndex, - columnCount = _ref2.columnCount; - var firstRow = getFirstRow(state); - var cellCount = columnCount === undefined ? Object(external_lodash_["get"])(firstRow, ['cells', 'length']) : columnCount; // Bail early if the function cannot determine how many cells to add. - - if (!cellCount) { - return state; - } - - return Object(defineProperty["a" /* default */])({}, sectionName, [].concat(Object(toConsumableArray["a" /* default */])(state[sectionName].slice(0, rowIndex)), [{ - cells: Object(external_lodash_["times"])(cellCount, function (index) { - var firstCellInColumn = Object(external_lodash_["get"])(firstRow, ['cells', index], {}); - var inheritedAttributes = Object(external_lodash_["pick"])(firstCellInColumn, INHERITED_COLUMN_ATTRIBUTES); - return Object(objectSpread["a" /* default */])({}, inheritedAttributes, { - content: '', - tag: sectionName === 'head' ? 'th' : 'td' - }); - }) - }], Object(toConsumableArray["a" /* default */])(state[sectionName].slice(rowIndex)))); -} -/** - * Deletes a row from the table state. - * - * @param {Object} state Current table state. - * @param {Object} options - * @param {string} options.sectionName Section in which to delete the row. - * @param {number} options.rowIndex Row index to delete. - * - * @return {Object} New table state. - */ - -function deleteRow(state, _ref4) { - var sectionName = _ref4.sectionName, - rowIndex = _ref4.rowIndex; - return Object(defineProperty["a" /* default */])({}, sectionName, state[sectionName].filter(function (row, index) { - return index !== rowIndex; - })); -} -/** - * Inserts a column in the table state. - * - * @param {Object} state Current table state. - * @param {Object} options - * @param {number} options.columnIndex Column index at which to insert the column. - * - * @return {Object} New table state. - */ - -function insertColumn(state, _ref6) { - var columnIndex = _ref6.columnIndex; - var tableSections = Object(external_lodash_["pick"])(state, ['head', 'body', 'foot']); - return Object(external_lodash_["mapValues"])(tableSections, function (section, sectionName) { - // Bail early if the table section is empty. - if (isEmptyTableSection(section)) { - return section; - } - - return section.map(function (row) { - // Bail early if the row is empty or it's an attempt to insert past - // the last possible index of the array. - if (isEmptyRow(row) || row.cells.length < columnIndex) { - return row; - } - - return { - cells: [].concat(Object(toConsumableArray["a" /* default */])(row.cells.slice(0, columnIndex)), [{ - content: '', - tag: sectionName === 'head' ? 'th' : 'td' - }], Object(toConsumableArray["a" /* default */])(row.cells.slice(columnIndex))) - }; - }); - }); -} -/** - * Deletes a column from the table state. - * - * @param {Object} state Current table state. - * @param {Object} options - * @param {number} options.columnIndex Column index to delete. - * - * @return {Object} New table state. - */ - -function deleteColumn(state, _ref7) { - var columnIndex = _ref7.columnIndex; - var tableSections = Object(external_lodash_["pick"])(state, ['head', 'body', 'foot']); - return Object(external_lodash_["mapValues"])(tableSections, function (section) { - // Bail early if the table section is empty. - if (isEmptyTableSection(section)) { - return section; - } - - return section.map(function (row) { - return { - cells: row.cells.length >= columnIndex ? row.cells.filter(function (cell, index) { - return index !== columnIndex; - }) : row.cells - }; - }).filter(function (row) { - return row.cells.length; - }); - }); -} -/** - * Toggles the existance of a section. - * - * @param {Object} state Current table state. - * @param {string} sectionName Name of the section to toggle. - * - * @return {Object} New table state. - */ - -function toggleSection(state, sectionName) { - // Section exists, replace it with an empty row to remove it. - if (!isEmptyTableSection(state[sectionName])) { - return Object(defineProperty["a" /* default */])({}, sectionName, []); - } // Get the length of the first row of the body to use when creating the header. - - - var columnCount = Object(external_lodash_["get"])(state, ['body', 0, 'cells', 'length'], 1); // Section doesn't exist, insert an empty row to create the section. - - return insertRow(state, { - sectionName: sectionName, - rowIndex: 0, - columnCount: columnCount - }); -} -/** - * Determines whether a table section is empty. - * - * @param {Object} section Table section state. - * - * @return {boolean} True if the table section is empty, false otherwise. - */ - -function isEmptyTableSection(section) { - return !section || !section.length || Object(external_lodash_["every"])(section, isEmptyRow); -} -/** - * Determines whether a table row is empty. - * - * @param {Object} row Table row state. - * - * @return {boolean} True if the table section is empty, false otherwise. - */ - -function isEmptyRow(row) { - return !(row.cells && row.cells.length); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z" -})))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/edit.js - - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -var BACKGROUND_COLORS = [{ - color: '#f3f4f5', - name: 'Subtle light gray', - slug: 'subtle-light-gray' -}, { - color: '#e9fbe5', - name: 'Subtle pale green', - slug: 'subtle-pale-green' -}, { - color: '#e7f5fe', - name: 'Subtle pale blue', - slug: 'subtle-pale-blue' -}, { - color: '#fcf0ef', - name: 'Subtle pale pink', - slug: 'subtle-pale-pink' -}]; -var ALIGNMENT_CONTROLS = [{ - icon: 'editor-alignleft', - title: Object(external_this_wp_i18n_["__"])('Align Column Left'), - align: 'left' -}, { - icon: 'editor-aligncenter', - title: Object(external_this_wp_i18n_["__"])('Align Column Center'), - align: 'center' -}, { - icon: 'editor-alignright', - title: Object(external_this_wp_i18n_["__"])('Align Column Right'), - align: 'right' -}]; -var withCustomBackgroundColors = Object(external_this_wp_blockEditor_["createCustomColorsHOC"])(BACKGROUND_COLORS); -var edit_TableEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(TableEdit, _Component); - - function TableEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, TableEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(TableEdit).apply(this, arguments)); - _this.onCreateTable = _this.onCreateTable.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onChangeFixedLayout = _this.onChangeFixedLayout.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onChangeInitialColumnCount = _this.onChangeInitialColumnCount.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onChangeInitialRowCount = _this.onChangeInitialRowCount.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.renderSection = _this.renderSection.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getTableControls = _this.getTableControls.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertRow = _this.onInsertRow.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertRowBefore = _this.onInsertRowBefore.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertRowAfter = _this.onInsertRowAfter.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onDeleteRow = _this.onDeleteRow.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertColumn = _this.onInsertColumn.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertColumnBefore = _this.onInsertColumnBefore.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onInsertColumnAfter = _this.onInsertColumnAfter.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onDeleteColumn = _this.onDeleteColumn.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onToggleHeaderSection = _this.onToggleHeaderSection.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onToggleFooterSection = _this.onToggleFooterSection.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onChangeColumnAlignment = _this.onChangeColumnAlignment.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.getCellAlignment = _this.getCellAlignment.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - initialRowCount: 2, - initialColumnCount: 2, - selectedCell: null - }; - return _this; - } - /** - * Updates the initial column count used for table creation. - * - * @param {number} initialColumnCount New initial column count. - */ - - - Object(createClass["a" /* default */])(TableEdit, [{ - key: "onChangeInitialColumnCount", - value: function onChangeInitialColumnCount(initialColumnCount) { - this.setState({ - initialColumnCount: initialColumnCount - }); - } - /** - * Updates the initial row count used for table creation. - * - * @param {number} initialRowCount New initial row count. - */ - - }, { - key: "onChangeInitialRowCount", - value: function onChangeInitialRowCount(initialRowCount) { - this.setState({ - initialRowCount: initialRowCount - }); - } - /** - * Creates a table based on dimensions in local state. - * - * @param {Object} event Form submit event. - */ - - }, { - key: "onCreateTable", - value: function onCreateTable(event) { - event.preventDefault(); - var setAttributes = this.props.setAttributes; - var _this$state = this.state, - initialRowCount = _this$state.initialRowCount, - initialColumnCount = _this$state.initialColumnCount; - initialRowCount = parseInt(initialRowCount, 10) || 2; - initialColumnCount = parseInt(initialColumnCount, 10) || 2; - setAttributes(createTable({ - rowCount: initialRowCount, - columnCount: initialColumnCount - })); - } - /** - * Toggles whether the table has a fixed layout or not. - */ - - }, { - key: "onChangeFixedLayout", - value: function onChangeFixedLayout() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var hasFixedLayout = attributes.hasFixedLayout; - setAttributes({ - hasFixedLayout: !hasFixedLayout - }); - } - /** - * Changes the content of the currently selected cell. - * - * @param {Array} content A RichText content value. - */ - - }, { - key: "onChange", - value: function onChange(content) { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - setAttributes(updateSelectedCell(attributes, selectedCell, function (cellAttributes) { - return Object(objectSpread["a" /* default */])({}, cellAttributes, { - content: content - }); - })); - } - /** - * Align text within the a column. - * - * @param {string} align The new alignment to apply to the column. - */ - - }, { - key: "onChangeColumnAlignment", - value: function onChangeColumnAlignment(align) { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } // Convert the cell selection to a column selection so that alignment - // is applied to the entire column. - - - var columnSelection = { - type: 'column', - columnIndex: selectedCell.columnIndex - }; - var _this$props3 = this.props, - attributes = _this$props3.attributes, - setAttributes = _this$props3.setAttributes; - var newAttributes = updateSelectedCell(attributes, columnSelection, function (cellAttributes) { - return Object(objectSpread["a" /* default */])({}, cellAttributes, { - align: align - }); - }); - setAttributes(newAttributes); - } - /** - * Get the alignment of the currently selected cell. - * - * @return {string} The new alignment to apply to the column. - */ - - }, { - key: "getCellAlignment", - value: function getCellAlignment() { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var attributes = this.props.attributes; - return getCellAttribute(attributes, selectedCell, 'align'); - } - /** - * Add or remove a `head` table section. - */ - - }, { - key: "onToggleHeaderSection", - value: function onToggleHeaderSection() { - var _this$props4 = this.props, - attributes = _this$props4.attributes, - setAttributes = _this$props4.setAttributes; - setAttributes(toggleSection(attributes, 'head')); - } - /** - * Add or remove a `foot` table section. - */ - - }, { - key: "onToggleFooterSection", - value: function onToggleFooterSection() { - var _this$props5 = this.props, - attributes = _this$props5.attributes, - setAttributes = _this$props5.setAttributes; - setAttributes(toggleSection(attributes, 'foot')); - } - /** - * Inserts a row at the currently selected row index, plus `delta`. - * - * @param {number} delta Offset for selected row index at which to insert. - */ - - }, { - key: "onInsertRow", - value: function onInsertRow(delta) { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props6 = this.props, - attributes = _this$props6.attributes, - setAttributes = _this$props6.setAttributes; - var sectionName = selectedCell.sectionName, - rowIndex = selectedCell.rowIndex; - this.setState({ - selectedCell: null - }); - setAttributes(insertRow(attributes, { - sectionName: sectionName, - rowIndex: rowIndex + delta - })); - } - /** - * Inserts a row before the currently selected row. - */ - - }, { - key: "onInsertRowBefore", - value: function onInsertRowBefore() { - this.onInsertRow(0); - } - /** - * Inserts a row after the currently selected row. - */ - - }, { - key: "onInsertRowAfter", - value: function onInsertRowAfter() { - this.onInsertRow(1); - } - /** - * Deletes the currently selected row. - */ - - }, { - key: "onDeleteRow", - value: function onDeleteRow() { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props7 = this.props, - attributes = _this$props7.attributes, - setAttributes = _this$props7.setAttributes; - var sectionName = selectedCell.sectionName, - rowIndex = selectedCell.rowIndex; - this.setState({ - selectedCell: null - }); - setAttributes(deleteRow(attributes, { - sectionName: sectionName, - rowIndex: rowIndex - })); - } - /** - * Inserts a column at the currently selected column index, plus `delta`. - * - * @param {number} delta Offset for selected column index at which to insert. - */ - - }, { - key: "onInsertColumn", - value: function onInsertColumn() { - var delta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props8 = this.props, - attributes = _this$props8.attributes, - setAttributes = _this$props8.setAttributes; - var columnIndex = selectedCell.columnIndex; - this.setState({ - selectedCell: null - }); - setAttributes(insertColumn(attributes, { - columnIndex: columnIndex + delta - })); - } - /** - * Inserts a column before the currently selected column. - */ - - }, { - key: "onInsertColumnBefore", - value: function onInsertColumnBefore() { - this.onInsertColumn(0); - } - /** - * Inserts a column after the currently selected column. - */ - - }, { - key: "onInsertColumnAfter", - value: function onInsertColumnAfter() { - this.onInsertColumn(1); - } - /** - * Deletes the currently selected column. - */ - - }, { - key: "onDeleteColumn", - value: function onDeleteColumn() { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props9 = this.props, - attributes = _this$props9.attributes, - setAttributes = _this$props9.setAttributes; - var sectionName = selectedCell.sectionName, - columnIndex = selectedCell.columnIndex; - this.setState({ - selectedCell: null - }); - setAttributes(deleteColumn(attributes, { - sectionName: sectionName, - columnIndex: columnIndex - })); - } - /** - * Creates an onFocus handler for a specified cell. - * - * @param {Object} cellLocation Object with `section`, `rowIndex`, and - * `columnIndex` properties. - * - * @return {Function} Function to call on focus. - */ - - }, { - key: "createOnFocus", - value: function createOnFocus(cellLocation) { - var _this2 = this; - - return function () { - _this2.setState({ - selectedCell: Object(objectSpread["a" /* default */])({}, cellLocation, { - type: 'cell' - }) - }); - }; - } - /** - * Gets the table controls to display in the block toolbar. - * - * @return {Array} Table controls. - */ - - }, { - key: "getTableControls", - value: function getTableControls() { - var selectedCell = this.state.selectedCell; - return [{ - icon: 'table-row-before', - title: Object(external_this_wp_i18n_["__"])('Add Row Before'), - isDisabled: !selectedCell, - onClick: this.onInsertRowBefore - }, { - icon: 'table-row-after', - title: Object(external_this_wp_i18n_["__"])('Add Row After'), - isDisabled: !selectedCell, - onClick: this.onInsertRowAfter - }, { - icon: 'table-row-delete', - title: Object(external_this_wp_i18n_["__"])('Delete Row'), - isDisabled: !selectedCell, - onClick: this.onDeleteRow - }, { - icon: 'table-col-before', - title: Object(external_this_wp_i18n_["__"])('Add Column Before'), - isDisabled: !selectedCell, - onClick: this.onInsertColumnBefore - }, { - icon: 'table-col-after', - title: Object(external_this_wp_i18n_["__"])('Add Column After'), - isDisabled: !selectedCell, - onClick: this.onInsertColumnAfter - }, { - icon: 'table-col-delete', - title: Object(external_this_wp_i18n_["__"])('Delete Column'), - isDisabled: !selectedCell, - onClick: this.onDeleteColumn - }]; - } - /** - * Renders a table section. - * - * @param {Object} options - * @param {string} options.type Section type: head, body, or foot. - * @param {Array} options.rows The rows to render. - * - * @return {Object} React element for the section. - */ - - }, { - key: "renderSection", - value: function renderSection(_ref) { - var _this3 = this; - - var name = _ref.name, - rows = _ref.rows; - - if (isEmptyTableSection(rows)) { - return null; - } - - var Tag = "t".concat(name); - var selectedCell = this.state.selectedCell; - return Object(external_this_wp_element_["createElement"])(Tag, null, rows.map(function (_ref2, rowIndex) { - var cells = _ref2.cells; - return Object(external_this_wp_element_["createElement"])("tr", { - key: rowIndex - }, cells.map(function (_ref3, columnIndex) { - var content = _ref3.content, - CellTag = _ref3.tag, - scope = _ref3.scope, - align = _ref3.align; - var cellLocation = { - sectionName: name, - rowIndex: rowIndex, - columnIndex: columnIndex - }; - var isSelected = isCellSelected(cellLocation, selectedCell); - var cellClasses = classnames_default()(Object(defineProperty["a" /* default */])({ - 'is-selected': isSelected - }, "has-text-align-".concat(align), align)); - var richTextClassName = 'wp-block-table__cell-content'; - return Object(external_this_wp_element_["createElement"])(CellTag, { - key: columnIndex, - className: cellClasses, - scope: CellTag === 'th' ? scope : undefined, - onClick: function onClick(event) { - // When a cell is selected, forward focus to the child RichText. This solves an issue where the - // user may click inside a cell, but outside of the RichText, resulting in nothing happening. - var richTextElement = event && event.target && event.target.querySelector(".".concat(richTextClassName)); - - if (richTextElement) { - richTextElement.focus(); - } - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - className: richTextClassName, - value: content, - onChange: _this3.onChange, - unstableOnFocus: _this3.createOnFocus(cellLocation) - })); - })); - })); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - var isSelected = this.props.isSelected; - var selectedCell = this.state.selectedCell; - - if (!isSelected && selectedCell) { - this.setState({ - selectedCell: null - }); - } - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var _this$props10 = this.props, - attributes = _this$props10.attributes, - className = _this$props10.className, - backgroundColor = _this$props10.backgroundColor, - setBackgroundColor = _this$props10.setBackgroundColor; - var _this$state2 = this.state, - initialRowCount = _this$state2.initialRowCount, - initialColumnCount = _this$state2.initialColumnCount; - var hasFixedLayout = attributes.hasFixedLayout, - head = attributes.head, - body = attributes.body, - foot = attributes.foot; - var isEmpty = isEmptyTableSection(head) && isEmptyTableSection(body) && isEmptyTableSection(foot); - var Section = this.renderSection; - - if (isEmpty) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - label: Object(external_this_wp_i18n_["__"])('Table'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: icon, - showColors: true - }), - instructions: Object(external_this_wp_i18n_["__"])('Insert a table for sharing data.'), - isColumnLayout: true - }, Object(external_this_wp_element_["createElement"])("form", { - className: "wp-block-table__placeholder-form", - onSubmit: this.onCreateTable - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - label: Object(external_this_wp_i18n_["__"])('Column Count'), - value: initialColumnCount, - onChange: this.onChangeInitialColumnCount, - min: "1", - className: "wp-block-table__placeholder-input" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - label: Object(external_this_wp_i18n_["__"])('Row Count'), - value: initialRowCount, - onChange: this.onChangeInitialRowCount, - min: "1", - className: "wp-block-table__placeholder-input" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "wp-block-table__placeholder-button", - isDefault: true, - type: "submit" - }, Object(external_this_wp_i18n_["__"])('Create Table')))); - } - - var tableClasses = classnames_default()(backgroundColor.class, { - 'has-fixed-layout': hasFixedLayout, - 'has-background': !!backgroundColor.color - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { - hasArrowIndicator: true, - icon: "editor-table", - label: Object(external_this_wp_i18n_["__"])('Edit table'), - controls: this.getTableControls() - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { - label: Object(external_this_wp_i18n_["__"])('Change column alignment'), - alignmentControls: ALIGNMENT_CONTROLS, - value: this.getCellAlignment(), - onChange: function onChange(nextAlign) { - return _this4.onChangeColumnAlignment(nextAlign); - }, - onHover: this.onHoverAlignment - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Table Settings'), - className: "blocks-table-settings" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Fixed width table cells'), - checked: !!hasFixedLayout, - onChange: this.onChangeFixedLayout - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Header section'), - checked: !!(head && head.length), - onChange: this.onToggleHeaderSection - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Footer section'), - checked: !!(foot && foot.length), - onChange: this.onToggleFooterSection - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - initialOpen: false, - colorSettings: [{ - value: backgroundColor.color, - onChange: setBackgroundColor, - label: Object(external_this_wp_i18n_["__"])('Background Color'), - disableCustomColors: true, - colors: BACKGROUND_COLORS - }] - })), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])("table", { - className: tableClasses - }, Object(external_this_wp_element_["createElement"])(Section, { - name: "head", - rows: head - }), Object(external_this_wp_element_["createElement"])(Section, { - name: "body", - rows: body - }), Object(external_this_wp_element_["createElement"])(Section, { - name: "foot", - rows: foot - })))); - } - }]); - - return TableEdit; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var edit = (withCustomBackgroundColors('backgroundColor')(edit_TableEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/save.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save_save(_ref) { - var attributes = _ref.attributes; - var hasFixedLayout = attributes.hasFixedLayout, - head = attributes.head, - body = attributes.body, - foot = attributes.foot, - backgroundColor = attributes.backgroundColor; - var isEmpty = !head.length && !body.length && !foot.length; - - if (isEmpty) { - return null; - } - - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var classes = classnames_default()(backgroundClass, { - 'has-fixed-layout': hasFixedLayout, - 'has-background': !!backgroundClass - }); - - var Section = function Section(_ref2) { - var type = _ref2.type, - rows = _ref2.rows; - - if (!rows.length) { - return null; - } - - var Tag = "t".concat(type); - return Object(external_this_wp_element_["createElement"])(Tag, null, rows.map(function (_ref3, rowIndex) { - var cells = _ref3.cells; - return Object(external_this_wp_element_["createElement"])("tr", { - key: rowIndex - }, cells.map(function (_ref4, cellIndex) { - var content = _ref4.content, - tag = _ref4.tag, - scope = _ref4.scope, - align = _ref4.align; - var cellClasses = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - className: cellClasses ? cellClasses : undefined, - "data-align": align, - tagName: tag, - value: content, - key: cellIndex, - scope: tag === 'th' ? scope : undefined - }); - })); - })); - }; - - return Object(external_this_wp_element_["createElement"])("figure", null, Object(external_this_wp_element_["createElement"])("table", { - className: classes - }, Object(external_this_wp_element_["createElement"])(Section, { - type: "head", - rows: head - }), Object(external_this_wp_element_["createElement"])(Section, { - type: "body", - rows: body - }), Object(external_this_wp_element_["createElement"])(Section, { - type: "foot", - rows: foot - }))); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/transforms.js -/** - * WordPress dependencies - */ - -var tableContentPasteSchema = { - tr: { - allowEmpty: true, - children: { - th: { - allowEmpty: true, - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])(), - attributes: ['scope'] - }, - td: { - allowEmpty: true, - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - } - } -}; -var tablePasteSchema = { - table: { - children: { - thead: { - allowEmpty: true, - children: tableContentPasteSchema - }, - tfoot: { - allowEmpty: true, - children: tableContentPasteSchema - }, - tbody: { - allowEmpty: true, - children: tableContentPasteSchema - } - } - } -}; -var transforms = { - from: [{ - type: 'raw', - selector: 'table', - schema: tablePasteSchema - }] -}; -/* harmony default export */ var table_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return table_metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return table_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var table_metadata = { - name: "core/table", - category: "formatting", - attributes: { - hasFixedLayout: { - type: "boolean", - "default": false - }, - backgroundColor: { - type: "string" - }, - head: { - type: "array", - "default": [], - source: "query", - selector: "thead tr", - query: { - cells: { - type: "array", - "default": [], - source: "query", - selector: "td,th", - query: { - content: { - type: "string", - source: "html" - }, - tag: { - type: "string", - "default": "td", - source: "tag" - }, - scope: { - type: "string", - source: "attribute", - attribute: "scope" - }, - align: { - type: "string", - source: "attribute", - attribute: "data-align" - } - } - } - } - }, - body: { - type: "array", - "default": [], - source: "query", - selector: "tbody tr", - query: { - cells: { - type: "array", - "default": [], - source: "query", - selector: "td,th", - query: { - content: { - type: "string", - source: "html" - }, - tag: { - type: "string", - "default": "td", - source: "tag" - }, - scope: { - type: "string", - source: "attribute", - attribute: "scope" - }, - align: { - type: "string", - source: "attribute", - attribute: "data-align" - } - } - } - } - }, - foot: { - type: "array", - "default": [], - source: "query", - selector: "tfoot tr", - query: { - cells: { - type: "array", - "default": [], - source: "query", - selector: "td,th", - query: { - content: { - type: "string", - source: "html" - }, - tag: { - type: "string", - "default": "td", - source: "tag" - }, - scope: { - type: "string", - source: "attribute", - attribute: "scope" - }, - align: { - type: "string", - source: "attribute", - attribute: "data-align" - } - } - } - } - } - } -}; - - -var table_name = table_metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Table'), - description: Object(external_this_wp_i18n_["__"])('Insert a table — perfect for sharing charts and data.'), - icon: icon, - example: { - attributes: { - head: [{ - cells: [{ - content: Object(external_this_wp_i18n_["__"])('Version'), - tag: 'th' - }, { - content: Object(external_this_wp_i18n_["__"])('Jazz Musician'), - tag: 'th' - }, { - content: Object(external_this_wp_i18n_["__"])('Release Date'), - tag: 'th' - }] - }], - body: [{ - cells: [{ - content: '5.2', - tag: 'td' - }, { - content: 'Jaco Pastorius', - tag: 'td' - }, { - content: Object(external_this_wp_i18n_["__"])('May 7, 2019'), - tag: 'td' - }] - }, { - cells: [{ - content: '5.1', - tag: 'td' - }, { - content: 'Betty Carter', - tag: 'td' - }, { - content: Object(external_this_wp_i18n_["__"])('February 21, 2019'), - tag: 'td' - }] - }, { - cells: [{ - content: '5.0', - tag: 'td' - }, { - content: 'Bebo Valdés', - tag: 'td' - }, { - content: Object(external_this_wp_i18n_["__"])('December 6, 2018'), - tag: 'td' - }] - }] - } - }, - styles: [{ - name: 'regular', - label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), - isDefault: true - }, { - name: 'stripes', - label: Object(external_this_wp_i18n_["__"])('Stripes') - }], - supports: { - align: true - }, - transforms: table_transforms, - edit: edit, - save: save_save, - deprecated: table_deprecated -}; - - -/***/ }), -/* 246 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(18); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(35); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/inspector.js - - -/** - * WordPress dependencies - */ - - - -function FileBlockInspector(_ref) { - var hrefs = _ref.hrefs, - openInNewWindow = _ref.openInNewWindow, - showDownloadButton = _ref.showDownloadButton, - changeLinkDestinationOption = _ref.changeLinkDestinationOption, - changeOpenInNewWindow = _ref.changeOpenInNewWindow, - changeShowDownloadButton = _ref.changeShowDownloadButton; - var href = hrefs.href, - textLinkHref = hrefs.textLinkHref, - attachmentPage = hrefs.attachmentPage; - var linkDestinationOptions = [{ - value: href, - label: Object(external_this_wp_i18n_["__"])('URL') - }]; - - if (attachmentPage) { - linkDestinationOptions = [{ - value: href, - label: Object(external_this_wp_i18n_["__"])('Media File') - }, { - value: attachmentPage, - label: Object(external_this_wp_i18n_["__"])('Attachment page') - }]; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Text link settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Link To'), - value: textLinkHref, - options: linkDestinationOptions, - onChange: changeLinkDestinationOption - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Open in new tab'), - checked: openInNewWindow, - onChange: changeOpenInNewWindow - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Download button settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show download button'), - checked: showDownloadButton, - onChange: changeShowDownloadButton - })))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/edit.js - - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - - -var edit_FileEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(FileEdit, _Component); - - function FileEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, FileEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(FileEdit).apply(this, arguments)); - _this.onSelectFile = _this.onSelectFile.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.confirmCopyURL = _this.confirmCopyURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.resetCopyConfirmation = _this.resetCopyConfirmation.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.changeLinkDestinationOption = _this.changeLinkDestinationOption.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.changeOpenInNewWindow = _this.changeOpenInNewWindow.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.changeShowDownloadButton = _this.changeShowDownloadButton.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - hasError: false, - showCopyConfirmation: false - }; - return _this; - } - - Object(createClass["a" /* default */])(FileEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - mediaUpload = _this$props.mediaUpload, - noticeOperations = _this$props.noticeOperations, - setAttributes = _this$props.setAttributes; - var downloadButtonText = attributes.downloadButtonText, - href = attributes.href; // Upload a file drag-and-dropped into the editor - - if (Object(external_this_wp_blob_["isBlobURL"])(href)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(href); - mediaUpload({ - filesList: [file], - onFileChange: function onFileChange(_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), - media = _ref2[0]; - - return _this2.onSelectFile(media); - }, - onError: function onError(message) { - _this2.setState({ - hasError: true - }); - - noticeOperations.createErrorNotice(message); - } - }); - Object(external_this_wp_blob_["revokeBlobURL"])(href); - } - - if (downloadButtonText === undefined) { - setAttributes({ - downloadButtonText: Object(external_this_wp_i18n_["_x"])('Download', 'button label') - }); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - // Reset copy confirmation state when block is deselected - if (prevProps.isSelected && !this.props.isSelected) { - this.setState({ - showCopyConfirmation: false - }); - } - } - }, { - key: "onSelectFile", - value: function onSelectFile(media) { - if (media && media.url) { - this.setState({ - hasError: false - }); - this.props.setAttributes({ - href: media.url, - fileName: media.title, - textLinkHref: media.url, - id: media.id - }); - } - } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - } - }, { - key: "confirmCopyURL", - value: function confirmCopyURL() { - this.setState({ - showCopyConfirmation: true - }); - } - }, { - key: "resetCopyConfirmation", - value: function resetCopyConfirmation() { - this.setState({ - showCopyConfirmation: false - }); - } - }, { - key: "changeLinkDestinationOption", - value: function changeLinkDestinationOption(newHref) { - // Choose Media File or Attachment Page (when file is in Media Library) - this.props.setAttributes({ - textLinkHref: newHref - }); - } - }, { - key: "changeOpenInNewWindow", - value: function changeOpenInNewWindow(newValue) { - this.props.setAttributes({ - textLinkTarget: newValue ? '_blank' : false - }); - } - }, { - key: "changeShowDownloadButton", - value: function changeShowDownloadButton(newValue) { - this.props.setAttributes({ - showDownloadButton: newValue - }); - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var _this$props2 = this.props, - className = _this$props2.className, - isSelected = _this$props2.isSelected, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes, - noticeUI = _this$props2.noticeUI, - media = _this$props2.media; - var fileName = attributes.fileName, - href = attributes.href, - textLinkHref = attributes.textLinkHref, - textLinkTarget = attributes.textLinkTarget, - showDownloadButton = attributes.showDownloadButton, - downloadButtonText = attributes.downloadButtonText, - id = attributes.id; - var _this$state = this.state, - hasError = _this$state.hasError, - showCopyConfirmation = _this$state.showCopyConfirmation; - var attachmentPage = media && media.link; - - if (!href || hasError) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: icon - }), - labels: { - title: Object(external_this_wp_i18n_["__"])('File'), - instructions: Object(external_this_wp_i18n_["__"])('Upload a file or pick one from your media library.') - }, - onSelect: this.onSelectFile, - notices: noticeUI, - onError: this.onUploadError, - accept: "*" - }); - } - - var classes = classnames_default()(className, { - 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(href) - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(FileBlockInspector, Object(esm_extends["a" /* default */])({ - hrefs: { - href: href, - textLinkHref: textLinkHref, - attachmentPage: attachmentPage - } - }, { - openInNewWindow: !!textLinkTarget, - showDownloadButton: showDownloadButton, - changeLinkDestinationOption: this.changeLinkDestinationOption, - changeOpenInNewWindow: this.changeOpenInNewWindow, - changeShowDownloadButton: this.changeShowDownloadButton - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { - onSelect: this.onSelectFile, - value: id, - render: function render(_ref3) { - var open = _ref3.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit file'), - onClick: open, - icon: "edit" - }); - } - })))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Animate"], { - type: Object(external_this_wp_blob_["isBlobURL"])(href) ? 'loading' : null - }, function (_ref4) { - var animateClassName = _ref4.className; - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()(classes, animateClassName) - }, Object(external_this_wp_element_["createElement"])("div", { - className: 'wp-block-file__content-wrapper' - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - wrapperClassName: 'wp-block-file__textlink', - tagName: "div" // must be block-level or else cursor disappears - , - value: fileName, - placeholder: Object(external_this_wp_i18n_["__"])('Write file name…'), - withoutInteractiveFormatting: true, - onChange: function onChange(text) { - return setAttributes({ - fileName: text - }); - } - }), showDownloadButton && Object(external_this_wp_element_["createElement"])("div", { - className: 'wp-block-file__button-richtext-wrapper' - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "div" // must be block-level or else cursor disappears - , - className: 'wp-block-file__button', - value: downloadButtonText, - withoutInteractiveFormatting: true, - placeholder: Object(external_this_wp_i18n_["__"])('Add text…'), - onChange: function onChange(text) { - return setAttributes({ - downloadButtonText: text - }); - } - }))), isSelected && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { - isDefault: true, - text: href, - className: 'wp-block-file__copy-url-button', - onCopy: _this3.confirmCopyURL, - onFinishCopy: _this3.resetCopyConfirmation, - disabled: Object(external_this_wp_blob_["isBlobURL"])(href) - }, showCopyConfirmation ? Object(external_this_wp_i18n_["__"])('Copied!') : Object(external_this_wp_i18n_["__"])('Copy URL'))); - })); - } - }]); - - return FileEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _select = select('core'), - getMedia = _select.getMedia; - - var _select2 = select('core/block-editor'), - getSettings = _select2.getSettings; - - var _getSettings = getSettings(), - __experimentalMediaUpload = _getSettings.__experimentalMediaUpload; - - var id = props.attributes.id; - return { - media: id === undefined ? undefined : getMedia(id), - mediaUpload: __experimentalMediaUpload - }; -}), external_this_wp_components_["withNotices"]])(edit_FileEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/save.js - - -/** - * WordPress dependencies - */ - -function save(_ref) { - var attributes = _ref.attributes; - var href = attributes.href, - fileName = attributes.fileName, - textLinkHref = attributes.textLinkHref, - textLinkTarget = attributes.textLinkTarget, - showDownloadButton = attributes.showDownloadButton, - downloadButtonText = attributes.downloadButtonText; - return href && Object(external_this_wp_element_["createElement"])("div", null, !external_this_wp_blockEditor_["RichText"].isEmpty(fileName) && Object(external_this_wp_element_["createElement"])("a", { - href: textLinkHref, - target: textLinkTarget, - rel: textLinkTarget ? 'noreferrer noopener' : false - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - value: fileName - })), showDownloadButton && Object(external_this_wp_element_["createElement"])("a", { - href: href, - className: "wp-block-file__button", - download: true - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - value: downloadButtonText - }))); -} - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/transforms.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -var transforms = { - from: [{ - type: 'files', - isMatch: function isMatch(files) { - return files.length > 0; - }, - // We define a lower priorty (higher number) than the default of 10. This - // ensures that the File block is only created as a fallback. - priority: 15, - transform: function transform(files) { - var blocks = []; - files.forEach(function (file) { - var blobURL = Object(external_this_wp_blob_["createBlobURL"])(file); // File will be uploaded in componentDidMount() - - blocks.push(Object(external_this_wp_blocks_["createBlock"])('core/file', { - href: blobURL, - fileName: file.name, - textLinkHref: blobURL - })); - }); - return blocks; - } - }, { - type: 'block', - blocks: ['core/audio'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/file', { - href: attributes.src, - fileName: attributes.caption, - textLinkHref: attributes.src, - id: attributes.id - }); - } - }, { - type: 'block', - blocks: ['core/video'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/file', { - href: attributes.src, - fileName: attributes.caption, - textLinkHref: attributes.src, - id: attributes.id - }); - } - }, { - type: 'block', - blocks: ['core/image'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/file', { - href: attributes.url, - fileName: attributes.caption, - textLinkHref: attributes.url, - id: attributes.id - }); - } - }], - to: [{ - type: 'block', - blocks: ['core/audio'], - isMatch: function isMatch(_ref) { - var id = _ref.id; - - if (!id) { - return false; - } - - var _select = Object(external_this_wp_data_["select"])('core'), - getMedia = _select.getMedia; - - var media = getMedia(id); - return !!media && Object(external_lodash_["includes"])(media.mime_type, 'audio'); - }, - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/audio', { - src: attributes.href, - caption: attributes.fileName, - id: attributes.id - }); - } - }, { - type: 'block', - blocks: ['core/video'], - isMatch: function isMatch(_ref2) { - var id = _ref2.id; - - if (!id) { - return false; - } - - var _select2 = Object(external_this_wp_data_["select"])('core'), - getMedia = _select2.getMedia; - - var media = getMedia(id); - return !!media && Object(external_lodash_["includes"])(media.mime_type, 'video'); - }, - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/video', { - src: attributes.href, - caption: attributes.fileName, - id: attributes.id - }); - } - }, { - type: 'block', - blocks: ['core/image'], - isMatch: function isMatch(_ref3) { - var id = _ref3.id; - - if (!id) { - return false; - } - - var _select3 = Object(external_this_wp_data_["select"])('core'), - getMedia = _select3.getMedia; - - var media = getMedia(id); - return !!media && Object(external_lodash_["includes"])(media.mime_type, 'image'); - }, - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/image', { - url: attributes.href, - caption: attributes.fileName, - id: attributes.id - }); - } - }] -}; -/* harmony default export */ var file_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return file_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/file", - category: "common", - attributes: { - id: { - type: "number" - }, - href: { - type: "string" - }, - fileName: { - type: "string", - source: "html", - selector: "a:not([download])" - }, - textLinkHref: { - type: "string", - source: "attribute", - selector: "a:not([download])", - attribute: "href" - }, - textLinkTarget: { - type: "string", - source: "attribute", - selector: "a:not([download])", - attribute: "target" - }, - showDownloadButton: { - type: "boolean", - "default": true - }, - downloadButtonText: { - type: "string", - source: "html", - selector: "a[download]" - } - } -}; - - -var file_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('File'), - description: Object(external_this_wp_i18n_["__"])('Add a link to a downloadable file.'), - icon: icon, - keywords: [Object(external_this_wp_i18n_["__"])('document'), Object(external_this_wp_i18n_["__"])('pdf')], - supports: { - align: true - }, - transforms: file_transforms, - edit: edit, - save: save -}; - - -/***/ }), -/* 247 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/deprecated.js - - -/** - * WordPress dependencies - */ - -var blockAttributes = { - content: { - type: 'string', - source: 'html', - selector: 'pre', - default: '' - }, - textAlign: { - type: 'string' - } -}; -var deprecated = [{ - attributes: blockAttributes, - save: function save(_ref) { - var attributes = _ref.attributes; - var textAlign = attributes.textAlign, - content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "pre", - style: { - textAlign: textAlign - }, - value: content - }); - } -}]; -/* harmony default export */ var verse_deprecated = (deprecated); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/edit.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -function VerseEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - className = _ref.className, - mergeBlocks = _ref.mergeBlocks; - var textAlign = attributes.textAlign, - content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { - value: textAlign, - onChange: function onChange(nextAlign) { - setAttributes({ - textAlign: nextAlign - }); - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "pre", - value: content, - onChange: function onChange(nextContent) { - setAttributes({ - content: nextContent - }); - }, - placeholder: Object(external_this_wp_i18n_["__"])('Write…'), - wrapperClassName: className, - className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign)), - onMerge: mergeBlocks - })); -} - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/save.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save_save(_ref) { - var attributes = _ref.attributes; - var textAlign = attributes.textAlign, - content = attributes.content; - var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(textAlign), textAlign)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "pre", - className: className, - value: content - }); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/tranforms.js -/** - * WordPress dependencies - */ - -var transforms = { - from: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/verse', attributes); - } - }], - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', attributes); - } - }] -}; -/* harmony default export */ var tranforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return verse_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var metadata = { - name: "core/verse", - category: "formatting", - attributes: { - content: { - type: "string", - source: "html", - selector: "pre", - "default": "" - }, - textAlign: { - type: "string" - } - } -}; - - -var verse_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Verse'), - description: Object(external_this_wp_i18n_["__"])('Insert poetry. Use special spacing formats. Or quote song lyrics.'), - icon: icon, - example: { - attributes: { - content: Object(external_this_wp_i18n_["__"])('WHAT was he doing, the great god Pan,') + '
    ' + Object(external_this_wp_i18n_["__"])(' Down in the reeds by the river?') + '
    ' + Object(external_this_wp_i18n_["__"])('Spreading ruin and scattering ban,') + '
    ' + Object(external_this_wp_i18n_["__"])('Splashing and paddling with hoofs of a goat,') + '
    ' + Object(external_this_wp_i18n_["__"])('And breaking the golden lilies afloat') + '
    ' + Object(external_this_wp_i18n_["__"])(' With the dragon-fly on the river.') - } - }, - keywords: [Object(external_this_wp_i18n_["__"])('poetry')], - transforms: tranforms, - deprecated: verse_deprecated, - merge: function merge(attributes, attributesToMerge) { - return { - content: attributes.content + attributesToMerge.content - }; - }, - edit: VerseEdit, - save: save_save -}; - - -/***/ }), -/* 248 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} -var external_this_wp_serverSideRender_ = __webpack_require__(55); -var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); - -// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(32); -var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(41); -var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/edit/dom-manager.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -var dom_manager_LegacyWidgetEditDomManager = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(LegacyWidgetEditDomManager, _Component); - - function LegacyWidgetEditDomManager() { - var _this; - - Object(classCallCheck["a" /* default */])(this, LegacyWidgetEditDomManager); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LegacyWidgetEditDomManager).apply(this, arguments)); - _this.containerRef = Object(external_this_wp_element_["createRef"])(); - _this.formRef = Object(external_this_wp_element_["createRef"])(); - _this.widgetContentRef = Object(external_this_wp_element_["createRef"])(); - _this.triggerWidgetEvent = _this.triggerWidgetEvent.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(LegacyWidgetEditDomManager, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.triggerWidgetEvent('widget-added'); - this.previousFormData = new window.FormData(this.formRef.current); - } - }, { - key: "shouldComponentUpdate", - value: function shouldComponentUpdate(nextProps) { - // We can not leverage react render otherwise we would destroy dom changes applied by the plugins. - // We manually update the required dom node replicating what the widget screen and the customizer do. - if (nextProps.form !== this.props.form && this.widgetContentRef.current) { - var widgetContent = this.widgetContentRef.current; - widgetContent.innerHTML = nextProps.form; - this.triggerWidgetEvent('widget-updated'); - this.previousFormData = new window.FormData(this.formRef.current); - } - - return false; - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - id = _this$props.id, - idBase = _this$props.idBase, - widgetNumber = _this$props.widgetNumber, - form = _this$props.form; - return Object(external_this_wp_element_["createElement"])("div", { - className: "widget open", - ref: this.containerRef - }, Object(external_this_wp_element_["createElement"])("div", { - className: "widget-inside" - }, Object(external_this_wp_element_["createElement"])("form", { - ref: this.formRef, - method: "post", - onBlur: function onBlur() { - if (_this2.shouldTriggerInstanceUpdate()) { - _this2.props.onInstanceChange(_this2.retrieveUpdatedInstance()); - } - } - }, Object(external_this_wp_element_["createElement"])("div", { - ref: this.widgetContentRef, - className: "widget-content", - dangerouslySetInnerHTML: { - __html: form - } - }), Object(external_this_wp_element_["createElement"])("input", { - type: "hidden", - name: "widget-id", - className: "widget-id", - value: id - }), Object(external_this_wp_element_["createElement"])("input", { - type: "hidden", - name: "id_base", - className: "id_base", - value: idBase - }), Object(external_this_wp_element_["createElement"])("input", { - type: "hidden", - name: "widget_number", - className: "widget_number", - value: widgetNumber - }), Object(external_this_wp_element_["createElement"])("input", { - type: "hidden", - name: "multi_number", - className: "multi_number", - value: "" - }), Object(external_this_wp_element_["createElement"])("input", { - type: "hidden", - name: "add_new", - className: "add_new", - value: "" - })))); - } - }, { - key: "shouldTriggerInstanceUpdate", - value: function shouldTriggerInstanceUpdate() { - if (!this.formRef.current) { - return false; - } - - if (!this.previousFormData) { - return true; - } - - var currentFormData = new window.FormData(this.formRef.current); - var currentFormDataKeys = Array.from(currentFormData.keys()); - var previousFormDataKeys = Array.from(this.previousFormData.keys()); - - if (currentFormDataKeys.length !== previousFormDataKeys.length) { - return true; - } - - for (var _i = 0, _currentFormDataKeys = currentFormDataKeys; _i < _currentFormDataKeys.length; _i++) { - var rawKey = _currentFormDataKeys[_i]; - - if (!external_this_wp_isShallowEqual_default()(currentFormData.getAll(rawKey), this.previousFormData.getAll(rawKey))) { - this.previousFormData = currentFormData; - return true; - } - } - - return false; - } - }, { - key: "triggerWidgetEvent", - value: function triggerWidgetEvent(event) { - window.$(window.document).trigger(event, [window.$(this.containerRef.current)]); - } - }, { - key: "retrieveUpdatedInstance", - value: function retrieveUpdatedInstance() { - if (this.formRef.current) { - var _this$props2 = this.props, - idBase = _this$props2.idBase, - widgetNumber = _this$props2.widgetNumber; - var form = this.formRef.current; - var formData = new window.FormData(form); - var updatedInstance = {}; - var keyPrefixLength = "widget-".concat(idBase, "[").concat(widgetNumber, "][").length; - var keySuffixLength = "]".length; - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = formData.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var rawKey = _step.value; - - // This fields are added to the form because the widget JavaScript code may use this values. - // They are not relevant for the update mechanism. - if (Object(external_lodash_["includes"])(['widget-id', 'id_base', 'widget_number', 'multi_number', 'add_new'], rawKey)) { - continue; - } - - var keyParsed = rawKey.substring(keyPrefixLength, rawKey.length - keySuffixLength); - var value = formData.getAll(rawKey); - - if (value.length > 1) { - updatedInstance[keyParsed] = value; - } else { - updatedInstance[keyParsed] = value[0]; - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - - return updatedInstance; - } - } - }]); - - return LegacyWidgetEditDomManager; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var dom_manager = (dom_manager_LegacyWidgetEditDomManager); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/edit/handler.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var handler_LegacyWidgetEditHandler = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(LegacyWidgetEditHandler, _Component); - - function LegacyWidgetEditHandler() { - var _this; - - Object(classCallCheck["a" /* default */])(this, LegacyWidgetEditHandler); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LegacyWidgetEditHandler).apply(this, arguments)); - _this.state = { - form: null, - idBase: null - }; - _this.instanceUpdating = null; - _this.onInstanceChange = _this.onInstanceChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.requestWidgetUpdater = _this.requestWidgetUpdater.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(LegacyWidgetEditHandler, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.isStillMounted = true; - this.requestWidgetUpdater(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (prevProps.instance !== this.props.instance && this.instanceUpdating !== this.props.instance) { - this.requestWidgetUpdater(); - } - - if (this.instanceUpdating === this.props.instance) { - this.instanceUpdating = null; - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.isStillMounted = false; - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - instanceId = _this$props.instanceId, - identifier = _this$props.identifier; - var _this$state = this.state, - id = _this$state.id, - idBase = _this$state.idBase, - form = _this$state.form; - - if (!identifier) { - return Object(external_this_wp_i18n_["__"])('Not a valid widget.'); - } - - if (!form) { - return null; - } - - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-legacy-widget__edit-container" // Display none is used because when we switch from edit to preview, - // we don't want to unmount the component. - // Otherwise when we went back to edit we wound need to trigger - // all widgets events again and some scripts may not deal well with this. - , - style: { - display: this.props.isVisible ? 'block' : 'none' - } - }, Object(external_this_wp_element_["createElement"])(dom_manager, { - ref: function ref(_ref) { - _this2.widgetEditDomManagerRef = _ref; - }, - onInstanceChange: this.onInstanceChange, - widgetNumber: instanceId * -1, - id: id, - idBase: idBase, - form: form - })); - } - }, { - key: "onInstanceChange", - value: function onInstanceChange(instanceChanges) { - var _this3 = this; - - this.requestWidgetUpdater(instanceChanges, function (response) { - _this3.instanceUpdating = response.instance; - - _this3.props.onInstanceChange(response.instance); - }); - } - }, { - key: "requestWidgetUpdater", - value: function requestWidgetUpdater(instanceChanges, callback) { - var _this4 = this; - - var _this$props2 = this.props, - identifier = _this$props2.identifier, - instanceId = _this$props2.instanceId, - instance = _this$props2.instance; - - if (!identifier) { - return; - } - - external_this_wp_apiFetch_default()({ - path: "/wp/v2/widgets/".concat(identifier, "/"), - data: { - identifier: identifier, - instance: instance, - // use negative ids to make sure the id does not exist on the database. - id_to_use: instanceId * -1, - instance_changes: instanceChanges - }, - method: 'POST' - }).then(function (response) { - if (_this4.isStillMounted) { - _this4.setState({ - form: response.form, - idBase: response.id_base, - id: response.id - }); - - if (callback) { - callback(response); - } - } - }); - } - }]); - - return LegacyWidgetEditHandler; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var handler = (Object(external_this_wp_compose_["withInstanceId"])(handler_LegacyWidgetEditHandler)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/edit/placeholder.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -function LegacyWidgetPlaceholder(_ref) { - var availableLegacyWidgets = _ref.availableLegacyWidgets, - currentWidget = _ref.currentWidget, - hasPermissionsToManageWidgets = _ref.hasPermissionsToManageWidgets, - onChangeWidget = _ref.onChangeWidget; - var visibleLegacyWidgets = Object(external_this_wp_element_["useMemo"])(function () { - return Object(external_lodash_["pickBy"])(availableLegacyWidgets, function (_ref2) { - var isHidden = _ref2.isHidden; - return !isHidden; - }); - }, [availableLegacyWidgets]); - var placeholderContent; - - if (!hasPermissionsToManageWidgets) { - placeholderContent = Object(external_this_wp_i18n_["__"])('You don\'t have permissions to use widgets on this site.'); - } - - if (Object(external_lodash_["isEmpty"])(visibleLegacyWidgets)) { - placeholderContent = Object(external_this_wp_i18n_["__"])('There are no widgets available.'); - } - - placeholderContent = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Select a legacy widget to display:'), - value: currentWidget || 'none', - onChange: onChangeWidget, - options: [{ - value: 'none', - label: 'Select widget' - }].concat(Object(external_lodash_["map"])(visibleLegacyWidgets, function (widget, key) { - return { - value: key, - label: widget.name - }; - })) - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: "admin-customizer" - }), - label: Object(external_this_wp_i18n_["__"])('Legacy Widget') - }, placeholderContent); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/edit/index.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - - -var edit_LegacyWidgetEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(LegacyWidgetEdit, _Component); - - function LegacyWidgetEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, LegacyWidgetEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LegacyWidgetEdit).apply(this, arguments)); - _this.state = { - isPreview: false - }; - _this.switchToEdit = _this.switchToEdit.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.switchToPreview = _this.switchToPreview.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.changeWidget = _this.changeWidget.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(LegacyWidgetEdit, [{ - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - availableLegacyWidgets = _this$props.availableLegacyWidgets, - hasPermissionsToManageWidgets = _this$props.hasPermissionsToManageWidgets, - setAttributes = _this$props.setAttributes; - var isPreview = this.state.isPreview; - var identifier = attributes.identifier, - isCallbackWidget = attributes.isCallbackWidget; - var widgetObject = identifier && availableLegacyWidgets[identifier]; - - if (!widgetObject) { - return Object(external_this_wp_element_["createElement"])(LegacyWidgetPlaceholder, { - availableLegacyWidgets: availableLegacyWidgets, - currentWidget: identifier, - hasPermissionsToManageWidgets: hasPermissionsToManageWidgets, - onChangeWidget: function onChangeWidget(newWidget) { - return setAttributes({ - instance: {}, - identifier: newWidget, - isCallbackWidget: availableLegacyWidgets[newWidget].isCallbackWidget - }); - } - }); - } - - var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: widgetObject.name - }, widgetObject.description)); - - if (!hasPermissionsToManageWidgets) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, this.renderWidgetPreview()); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, !widgetObject.isHidden && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - onClick: this.changeWidget, - label: Object(external_this_wp_i18n_["__"])('Change widget'), - icon: "update" - }), !isCallbackWidget && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "components-tab-button ".concat(!isPreview ? 'is-active' : ''), - onClick: this.switchToEdit - }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Edit'))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "components-tab-button ".concat(isPreview ? 'is-active' : ''), - onClick: this.switchToPreview - }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Preview')))))), inspectorControls, !isCallbackWidget && Object(external_this_wp_element_["createElement"])(handler, { - isVisible: !isPreview, - identifier: attributes.identifier, - instance: attributes.instance, - onInstanceChange: function onInstanceChange(newInstance) { - _this2.props.setAttributes({ - instance: newInstance - }); - } - }), (isPreview || isCallbackWidget) && this.renderWidgetPreview()); - } - }, { - key: "changeWidget", - value: function changeWidget() { - this.switchToEdit(); - this.props.setAttributes({ - instance: {}, - identifier: undefined - }); - } - }, { - key: "switchToEdit", - value: function switchToEdit() { - this.setState({ - isPreview: false - }); - } - }, { - key: "switchToPreview", - value: function switchToPreview() { - this.setState({ - isPreview: true - }); - } - }, { - key: "renderWidgetPreview", - value: function renderWidgetPreview() { - var attributes = this.props.attributes; - return Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { - className: "wp-block-legacy-widget__preview", - block: "core/legacy-widget", - attributes: attributes - }); - } - }]); - - return LegacyWidgetEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_data_["withSelect"])(function (select) { - var editorSettings = select('core/block-editor').getSettings(); - var availableLegacyWidgets = editorSettings.availableLegacyWidgets, - hasPermissionsToManageWidgets = editorSettings.hasPermissionsToManageWidgets; - return { - hasPermissionsToManageWidgets: hasPermissionsToManageWidgets, - availableLegacyWidgets: availableLegacyWidgets - }; -})(edit_LegacyWidgetEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z" -})))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return legacy_widget_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var legacy_widget_name = 'core/legacy-widget'; -var settings = { - title: Object(external_this_wp_i18n_["__"])('Legacy Widget (Experimental)'), - description: Object(external_this_wp_i18n_["__"])('Display a legacy widget.'), - icon: icon, - category: 'widgets', - supports: { - html: false, - customClassName: false - }, - edit: edit -}; - - -/***/ }), -/* 249 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/shared.js -var SOLID_COLOR_STYLE_NAME = 'solid-color'; -var SOLID_COLOR_CLASS = "is-style-".concat(SOLID_COLOR_STYLE_NAME); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/deprecated.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -var blockAttributes = { - value: { - type: 'string', - source: 'html', - selector: 'blockquote', - multiline: 'p' - }, - citation: { - type: 'string', - source: 'html', - selector: 'cite', - default: '' - }, - mainColor: { - type: 'string' - }, - customMainColor: { - type: 'string' - }, - textColor: { - type: 'string' - }, - customTextColor: { - type: 'string' - } -}; -var deprecated = [{ - attributes: blockAttributes, - save: function save(_ref) { - var attributes = _ref.attributes; - var mainColor = attributes.mainColor, - customMainColor = attributes.customMainColor, - textColor = attributes.textColor, - customTextColor = attributes.customTextColor, - value = attributes.value, - citation = attributes.citation, - className = attributes.className; - var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); - var figureClass, figureStyles; // Is solid color style - - if (isSolidColorStyle) { - figureClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', mainColor); - - if (!figureClass) { - figureStyles = { - backgroundColor: customMainColor - }; - } // Is normal style and a custom color is being used ( we can set a style directly with its value) - - } else if (customMainColor) { - figureStyles = { - borderColor: customMainColor - }; // Is normal style and a named color is being used, we need to retrieve the color value to set the style, - // as there is no expectation that themes create classes that set border colors. - } else if (mainColor) { - var colors = Object(external_lodash_["get"])(Object(external_this_wp_data_["select"])('core/block-editor').getSettings(), ['colors'], []); - var colorObject = Object(external_this_wp_blockEditor_["getColorObjectByAttributeValues"])(colors, mainColor); - figureStyles = { - borderColor: colorObject.color - }; - } - - var blockquoteTextColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var blockquoteClasses = textColor || customTextColor ? classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, blockquoteTextColorClass, blockquoteTextColorClass)) : undefined; - var blockquoteStyle = blockquoteTextColorClass ? undefined : { - color: customTextColor - }; - return Object(external_this_wp_element_["createElement"])("figure", { - className: figureClass, - style: figureStyles - }, Object(external_this_wp_element_["createElement"])("blockquote", { - className: blockquoteClasses, - style: blockquoteStyle - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - value: value, - multiline: true - }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "cite", - value: citation - }))); - } -}, { - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes), - save: function save(_ref2) { - var attributes = _ref2.attributes; - var value = attributes.value, - citation = attributes.citation; - return Object(external_this_wp_element_["createElement"])("blockquote", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - value: value, - multiline: true - }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "cite", - value: citation - })); - } -}, { - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - citation: { - type: 'string', - source: 'html', - selector: 'footer' - }, - align: { - type: 'string', - default: 'none' - } - }), - save: function save(_ref3) { - var attributes = _ref3.attributes; - var value = attributes.value, - citation = attributes.citation, - align = attributes.align; - return Object(external_this_wp_element_["createElement"])("blockquote", { - className: "align".concat(align) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - value: value, - multiline: true - }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "footer", - value: citation - })); - } -}]; -/* harmony default export */ var pullquote_deprecated = (deprecated); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(18); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/edit.js - - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var edit_PullQuoteEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(PullQuoteEdit, _Component); - - function PullQuoteEdit(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, PullQuoteEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(PullQuoteEdit).call(this, props)); - _this.wasTextColorAutomaticallyComputed = false; - _this.pullQuoteMainColorSetter = _this.pullQuoteMainColorSetter.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.pullQuoteTextColorSetter = _this.pullQuoteTextColorSetter.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(PullQuoteEdit, [{ - key: "pullQuoteMainColorSetter", - value: function pullQuoteMainColorSetter(colorValue) { - var _this$props = this.props, - colorUtils = _this$props.colorUtils, - textColor = _this$props.textColor, - setTextColor = _this$props.setTextColor, - setMainColor = _this$props.setMainColor, - className = _this$props.className; - var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); - var needTextColor = !textColor.color || this.wasTextColorAutomaticallyComputed; - var shouldSetTextColor = isSolidColorStyle && needTextColor && colorValue; - setMainColor(colorValue); - - if (shouldSetTextColor) { - this.wasTextColorAutomaticallyComputed = true; - setTextColor(colorUtils.getMostReadableColor(colorValue)); - } - } - }, { - key: "pullQuoteTextColorSetter", - value: function pullQuoteTextColorSetter(colorValue) { - var setTextColor = this.props.setTextColor; - setTextColor(colorValue); - this.wasTextColorAutomaticallyComputed = false; - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - mainColor = _this$props2.mainColor, - textColor = _this$props2.textColor, - setAttributes = _this$props2.setAttributes, - isSelected = _this$props2.isSelected, - className = _this$props2.className; - var value = attributes.value, - citation = attributes.citation; - var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); - var figureStyles = isSolidColorStyle ? { - backgroundColor: mainColor.color - } : { - borderColor: mainColor.color - }; - var figureClasses = classnames_default()(className, Object(defineProperty["a" /* default */])({ - 'has-background': isSolidColorStyle && mainColor.color - }, mainColor.class, isSolidColorStyle && mainColor.class)); - var blockquoteStyles = { - color: textColor.color - }; - var blockquoteClasses = textColor.color && classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, textColor.class, textColor.class)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("figure", { - style: figureStyles, - className: figureClasses - }, Object(external_this_wp_element_["createElement"])("blockquote", { - style: blockquoteStyles, - className: blockquoteClasses - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - multiline: true, - value: value, - onChange: function onChange(nextValue) { - return setAttributes({ - value: nextValue - }); - }, - placeholder: // translators: placeholder text used for the quote - Object(external_this_wp_i18n_["__"])('Write quote…'), - wrapperClassName: "block-library-pullquote__content" - }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - value: citation, - placeholder: // translators: placeholder text used for the citation - Object(external_this_wp_i18n_["__"])('Write citation…'), - onChange: function onChange(nextCitation) { - return setAttributes({ - citation: nextCitation - }); - }, - className: "wp-block-pullquote__citation" - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - colorSettings: [{ - value: mainColor.color, - onChange: this.pullQuoteMainColorSetter, - label: Object(external_this_wp_i18n_["__"])('Main Color') - }, { - value: textColor.color, - onChange: this.pullQuoteTextColorSetter, - label: Object(external_this_wp_i18n_["__"])('Text Color') - }] - }, isSolidColorStyle && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], Object(esm_extends["a" /* default */])({ - textColor: textColor.color, - backgroundColor: mainColor.color - }, { - isLargeText: false - }))))); - } - }]); - - return PullQuoteEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_blockEditor_["withColors"])({ - mainColor: 'background-color', - textColor: 'color' -})(edit_PullQuoteEdit)); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { - points: "21 18 2 18 2 20 21 20" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { - points: "21 4 2 4 2 6 21 6" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/save.js - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -function save_save(_ref) { - var attributes = _ref.attributes; - var mainColor = attributes.mainColor, - customMainColor = attributes.customMainColor, - textColor = attributes.textColor, - customTextColor = attributes.customTextColor, - value = attributes.value, - citation = attributes.citation, - className = attributes.className; - var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); - var figureClasses, figureStyles; // Is solid color style - - if (isSolidColorStyle) { - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', mainColor); - figureClasses = classnames_default()(Object(defineProperty["a" /* default */])({ - 'has-background': backgroundClass || customMainColor - }, backgroundClass, backgroundClass)); - figureStyles = { - backgroundColor: backgroundClass ? undefined : customMainColor - }; // Is normal style and a custom color is being used ( we can set a style directly with its value) - } else if (customMainColor) { - figureStyles = { - borderColor: customMainColor - }; // If normal style and a named color are being used, we need to retrieve the color value to set the style, - // as there is no expectation that themes create classes that set border colors. - } else if (mainColor) { - var colors = Object(external_lodash_["get"])(Object(external_this_wp_data_["select"])('core/block-editor').getSettings(), ['colors'], []); - var colorObject = Object(external_this_wp_blockEditor_["getColorObjectByAttributeValues"])(colors, mainColor); - figureStyles = { - borderColor: colorObject.color - }; - } - - var blockquoteTextColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var blockquoteClasses = (textColor || customTextColor) && classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, blockquoteTextColorClass, blockquoteTextColorClass)); - var blockquoteStyles = blockquoteTextColorClass ? undefined : { - color: customTextColor - }; - return Object(external_this_wp_element_["createElement"])("figure", { - className: figureClasses, - style: figureStyles - }, Object(external_this_wp_element_["createElement"])("blockquote", { - className: blockquoteClasses, - style: blockquoteStyles - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - value: value, - multiline: true - }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "cite", - value: citation - }))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return pullquote_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - - -var metadata = { - name: "core/pullquote", - category: "formatting", - attributes: { - value: { - type: "string", - source: "html", - selector: "blockquote", - multiline: "p" - }, - citation: { - type: "string", - source: "html", - selector: "cite", - "default": "" - }, - mainColor: { - type: "string" - }, - customMainColor: { - type: "string" - }, - textColor: { - type: "string" - }, - customTextColor: { - type: "string" - } - } -}; - -var pullquote_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Pullquote'), - description: Object(external_this_wp_i18n_["__"])('Give special visual emphasis to a quote from your text.'), - icon: icon, - example: { - attributes: { - value: '

    ' + Object(external_this_wp_i18n_["__"])('One of the hardest things to do in technology is disrupt yourself.') + '

    ', - citation: 'Matt Mullenweg' - } - }, - styles: [{ - name: 'default', - label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), - isDefault: true - }, { - name: SOLID_COLOR_STYLE_NAME, - label: Object(external_this_wp_i18n_["__"])('Solid Color') - }], - supports: { - align: ['left', 'right', 'wide', 'full'] - }, - edit: edit, - save: save_save, - deprecated: pullquote_deprecated -}; - - -/***/ }), -/* 250 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/utils.js -/** - * External dependencies - */ - -/** - * Escapes ampersands, shortcodes, and links. - * - * @param {string} content The content of a code block. - * @return {string} The given content with some characters escaped. - */ - -function utils_escape(content) { - return Object(external_lodash_["flow"])(escapeAmpersands, escapeOpeningSquareBrackets, escapeProtocolInIsolatedUrls)(content || ''); -} -/** - * Unescapes escaped ampersands, shortcodes, and links. - * - * @param {string} content Content with (maybe) escaped ampersands, shortcodes, and links. - * @return {string} The given content with escaped characters unescaped. - */ - -function utils_unescape(content) { - return Object(external_lodash_["flow"])(unescapeProtocolInIsolatedUrls, unescapeOpeningSquareBrackets, unescapeAmpersands)(content || ''); -} -/** - * Returns the given content with all its ampersand characters converted - * into their HTML entity counterpart (i.e. & => &) - * - * @param {string} content The content of a code block. - * @return {string} The given content with its ampersands converted into - * their HTML entity counterpart (i.e. & => &) - */ - -function escapeAmpersands(content) { - return content.replace(/&/g, '&'); -} -/** - * Returns the given content with all & HTML entities converted into &. - * - * @param {string} content The content of a code block. - * @return {string} The given content with all & HTML entities - * converted into &. - */ - - -function unescapeAmpersands(content) { - return content.replace(/&/g, '&'); -} -/** - * Returns the given content with all opening shortcode characters converted - * into their HTML entity counterpart (i.e. [ => [). For instance, a - * shortcode like [embed] becomes [embed] - * - * This function replicates the escaping of HTML tags, where a tag like - * becomes <strong>. - * - * @param {string} content The content of a code block. - * @return {string} The given content with its opening shortcode characters - * converted into their HTML entity counterpart - * (i.e. [ => [) - */ - - -function escapeOpeningSquareBrackets(content) { - return content.replace(/\[/g, '['); -} -/** - * Returns the given content translating all [ into [. - * - * @param {string} content The content of a code block. - * @return {string} The given content with all [ into [. - */ - - -function unescapeOpeningSquareBrackets(content) { - return content.replace(/[/g, '['); -} -/** - * Converts the first two forward slashes of any isolated URL into their HTML - * counterparts (i.e. // => //). For instance, https://youtube.com/watch?x - * becomes https://youtube.com/watch?x. - * - * An isolated URL is a URL that sits in its own line, surrounded only by spacing - * characters. - * - * See https://github.com/WordPress/wordpress-develop/blob/5.1.1/src/wp-includes/class-wp-embed.php#L403 - * - * @param {string} content The content of a code block. - * @return {string} The given content with its ampersands converted into - * their HTML entity counterpart (i.e. & => &) - */ - - -function escapeProtocolInIsolatedUrls(content) { - return content.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m, '$1//$2'); -} -/** - * Converts the first two forward slashes of any isolated URL from the HTML entity - * I into /. - * - * An isolated URL is a URL that sits in its own line, surrounded only by spacing - * characters. - * - * See https://github.com/WordPress/wordpress-develop/blob/5.1.1/src/wp-includes/class-wp-embed.php#L403 - * - * @param {string} content The content of a code block. - * @return {string} The given content with the first two forward slashes of any - * isolated URL from the HTML entity I into /. - */ - - -function unescapeProtocolInIsolatedUrls(content) { - return content.replace(/^(\s*https?:)//([^\s<>"]+\s*)$/m, '$1//$2'); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/edit.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -function CodeEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - className = _ref.className; - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { - value: utils_unescape(attributes.content), - onChange: function onChange(content) { - return setAttributes({ - content: utils_escape(content) - }); - }, - placeholder: Object(external_this_wp_i18n_["__"])('Write code…'), - "aria-label": Object(external_this_wp_i18n_["__"])('Code') - })); -} - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/save.js - -function save(_ref) { - var attributes = _ref.attributes; - return Object(external_this_wp_element_["createElement"])("pre", null, Object(external_this_wp_element_["createElement"])("code", null, attributes.content)); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/transforms.js -/** - * WordPress dependencies - */ - -var transforms = { - from: [{ - type: 'enter', - regExp: /^```$/, - transform: function transform() { - return Object(external_this_wp_blocks_["createBlock"])('core/code'); - } - }, { - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'PRE' && node.children.length === 1 && node.firstChild.nodeName === 'CODE'; - }, - schema: { - pre: { - children: { - code: { - children: { - '#text': {} - } - } - } - } - } - }] -}; -/* harmony default export */ var code_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return code_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/code", - category: "formatting", - attributes: { - content: { - type: "string", - source: "text", - selector: "code" - } - } -}; - - -var code_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Code'), - description: Object(external_this_wp_i18n_["__"])('Display code snippets that respect your spacing and tabs.'), - icon: icon, - example: { - attributes: { - content: Object(external_this_wp_i18n_["__"])('// A "block" is the abstract term used') + '\n' + Object(external_this_wp_i18n_["__"])('// to describe units of markup that,') + '\n' + Object(external_this_wp_i18n_["__"])('// when composed together, form the') + '\n' + Object(external_this_wp_i18n_["__"])('// content or layout of a page.') + '\n' + Object(external_this_wp_i18n_["__"])('registerBlockType( name, settings );') - } - }, - supports: { - html: false - }, - transforms: code_transforms, - edit: CodeEdit, - save: save -}; - - -/***/ }), -/* 251 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","richText"]} -var external_this_wp_richText_ = __webpack_require__(22); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/ordered-list-settings.js - - -/** - * WordPress dependencies - */ - - - - -var ordered_list_settings_OrderedListSettings = function OrderedListSettings(_ref) { - var setAttributes = _ref.setAttributes, - reversed = _ref.reversed, - start = _ref.start; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Ordered List Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Start Value'), - type: "number", - onChange: function onChange(value) { - var int = parseInt(value, 10); - setAttributes({ - // It should be possible to unset the value, - // e.g. with an empty string. - start: isNaN(int) ? undefined : int - }); - }, - value: Number.isInteger(start) ? start.toString(10) : '', - step: "1" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Reverse List Numbering'), - checked: reversed || false, - onChange: function onChange(value) { - setAttributes({ - // Unset the attribute if not reversed. - reversed: value || undefined - }); - } - }))); -}; - -/* harmony default export */ var ordered_list_settings = (ordered_list_settings_OrderedListSettings); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/edit.js - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -function ListEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - mergeBlocks = _ref.mergeBlocks, - onReplace = _ref.onReplace, - className = _ref.className; - var ordered = attributes.ordered, - values = attributes.values, - reversed = attributes.reversed, - start = attributes.start; - var tagName = ordered ? 'ol' : 'ul'; - - var controls = function controls(_ref2) { - var value = _ref2.value, - onChange = _ref2.onChange; - - if (value.start === undefined) { - return; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { - type: "primary", - character: "[", - onUse: function onUse() { - onChange(Object(external_this_wp_richText_["__unstableOutdentListItems"])(value)); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { - type: "primary", - character: "]", - onUse: function onUse() { - onChange(Object(external_this_wp_richText_["__unstableIndentListItems"])(value, { - type: tagName - })); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { - type: "primary", - character: "m", - onUse: function onUse() { - onChange(Object(external_this_wp_richText_["__unstableIndentListItems"])(value, { - type: tagName - })); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { - type: "primaryShift", - character: "m", - onUse: function onUse() { - onChange(Object(external_this_wp_richText_["__unstableOutdentListItems"])(value)); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: [{ - icon: 'editor-ul', - title: Object(external_this_wp_i18n_["__"])('Convert to unordered list'), - isActive: Object(external_this_wp_richText_["__unstableIsActiveListType"])(value, 'ul', tagName), - onClick: function onClick() { - onChange(Object(external_this_wp_richText_["__unstableChangeListType"])(value, { - type: 'ul' - })); - - if (Object(external_this_wp_richText_["__unstableIsListRootSelected"])(value)) { - setAttributes({ - ordered: false - }); - } - } - }, { - icon: 'editor-ol', - title: Object(external_this_wp_i18n_["__"])('Convert to ordered list'), - isActive: Object(external_this_wp_richText_["__unstableIsActiveListType"])(value, 'ol', tagName), - onClick: function onClick() { - onChange(Object(external_this_wp_richText_["__unstableChangeListType"])(value, { - type: 'ol' - })); - - if (Object(external_this_wp_richText_["__unstableIsListRootSelected"])(value)) { - setAttributes({ - ordered: true - }); - } - } - }, { - icon: 'editor-outdent', - title: Object(external_this_wp_i18n_["__"])('Outdent list item'), - shortcut: Object(external_this_wp_i18n_["_x"])('Backspace', 'keyboard key'), - onClick: function onClick() { - onChange(Object(external_this_wp_richText_["__unstableOutdentListItems"])(value)); - } - }, { - icon: 'editor-indent', - title: Object(external_this_wp_i18n_["__"])('Indent list item'), - shortcut: Object(external_this_wp_i18n_["_x"])('Space', 'keyboard key'), - onClick: function onClick() { - onChange(Object(external_this_wp_richText_["__unstableIndentListItems"])(value, { - type: tagName - })); - } - }] - }))); - }; - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - identifier: "values", - multiline: "li", - tagName: tagName, - onChange: function onChange(nextValues) { - return setAttributes({ - values: nextValues - }); - }, - value: values, - wrapperClassName: "block-library-list", - className: className, - placeholder: Object(external_this_wp_i18n_["__"])('Write list…'), - onMerge: mergeBlocks, - onSplit: function onSplit(value) { - return Object(external_this_wp_blocks_["createBlock"])(list_name, { - ordered: ordered, - values: value - }); - }, - __unstableOnSplitMiddle: function __unstableOnSplitMiddle() { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph'); - }, - onReplace: onReplace, - onRemove: function onRemove() { - return onReplace([]); - }, - start: start, - reversed: reversed - }, controls), ordered && Object(external_this_wp_element_["createElement"])(ordered_list_settings, { - setAttributes: setAttributes, - ordered: ordered, - reversed: reversed, - start: start - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z" -})))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/save.js - - -/** - * WordPress dependencies - */ - -function save(_ref) { - var attributes = _ref.attributes; - var ordered = attributes.ordered, - values = attributes.values, - reversed = attributes.reversed, - start = attributes.start; - var tagName = ordered ? 'ol' : 'ul'; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: tagName, - value: values, - reversed: reversed, - start: start, - multiline: "li" - }); -} - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(17); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/transforms.js - - - -/** - * WordPress dependencies - */ - - - -var listContentSchema = Object(objectSpread["a" /* default */])({}, Object(external_this_wp_blocks_["getPhrasingContentSchema"])(), { - ul: {}, - ol: { - attributes: ['type'] - } -}); // Recursion is needed. -// Possible: ul > li > ul. -// Impossible: ul > ul. - - -['ul', 'ol'].forEach(function (tag) { - listContentSchema[tag].children = { - li: { - children: listContentSchema - } - }; -}); -var transforms = { - from: [{ - type: 'block', - isMultiBlock: true, - blocks: ['core/paragraph'], - transform: function transform(blockAttributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/list', { - values: Object(external_this_wp_richText_["toHTMLString"])({ - value: Object(external_this_wp_richText_["join"])(blockAttributes.map(function (_ref) { - var content = _ref.content; - var value = Object(external_this_wp_richText_["create"])({ - html: content - }); - - if (blockAttributes.length > 1) { - return value; - } // When converting only one block, transform - // every line to a list item. - - - return Object(external_this_wp_richText_["replace"])(value, /\n/g, external_this_wp_richText_["__UNSTABLE_LINE_SEPARATOR"]); - }), external_this_wp_richText_["__UNSTABLE_LINE_SEPARATOR"]), - multilineTag: 'li' - }) - }); - } - }, { - type: 'block', - blocks: ['core/quote'], - transform: function transform(_ref2) { - var value = _ref2.value; - return Object(external_this_wp_blocks_["createBlock"])('core/list', { - values: Object(external_this_wp_richText_["toHTMLString"])({ - value: Object(external_this_wp_richText_["create"])({ - html: value, - multilineTag: 'p' - }), - multilineTag: 'li' - }) - }); - } - }, { - type: 'raw', - selector: 'ol,ul', - schema: { - ol: listContentSchema.ol, - ul: listContentSchema.ul - }, - transform: function transform(node) { - return Object(external_this_wp_blocks_["createBlock"])('core/list', Object(objectSpread["a" /* default */])({}, Object(external_this_wp_blocks_["getBlockAttributes"])('core/list', node.outerHTML), { - ordered: node.nodeName === 'OL' - })); - } - }].concat(Object(toConsumableArray["a" /* default */])(['*', '-'].map(function (prefix) { - return { - type: 'prefix', - prefix: prefix, - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core/list', { - values: "
  • ".concat(content, "
  • ") - }); - } - }; - })), Object(toConsumableArray["a" /* default */])(['1.', '1)'].map(function (prefix) { - return { - type: 'prefix', - prefix: prefix, - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core/list', { - ordered: true, - values: "
  • ".concat(content, "
  • ") - }); - } - }; - }))), - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(_ref3) { - var values = _ref3.values; - return Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({ - html: values, - multilineTag: 'li', - multilineWrapperTags: ['ul', 'ol'] - }), external_this_wp_richText_["__UNSTABLE_LINE_SEPARATOR"]).map(function (piece) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: Object(external_this_wp_richText_["toHTMLString"])({ - value: piece - }) - }); - }); - } - }, { - type: 'block', - blocks: ['core/quote'], - transform: function transform(_ref4) { - var values = _ref4.values; - return Object(external_this_wp_blocks_["createBlock"])('core/quote', { - value: Object(external_this_wp_richText_["toHTMLString"])({ - value: Object(external_this_wp_richText_["create"])({ - html: values, - multilineTag: 'li', - multilineWrapperTags: ['ul', 'ol'] - }), - multilineTag: 'p' - }) - }); - } - }] -}; -/* harmony default export */ var list_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return list_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/list", - category: "common", - attributes: { - ordered: { - type: "boolean", - "default": false - }, - values: { - type: "string", - source: "html", - selector: "ol,ul", - multiline: "li", - "default": "" - }, - start: { - type: "number" - }, - reversed: { - type: "boolean" - } - } -}; - - -var list_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('List'), - description: Object(external_this_wp_i18n_["__"])('Create a bulleted or numbered list.'), - icon: icon, - keywords: [Object(external_this_wp_i18n_["__"])('bullet list'), Object(external_this_wp_i18n_["__"])('ordered list'), Object(external_this_wp_i18n_["__"])('numbered list')], - supports: { - className: false - }, - example: { - attributes: { - values: '
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • ' - } - }, - transforms: list_transforms, - merge: function merge(attributes, attributesToMerge) { - var values = attributesToMerge.values; - - if (!values || values === '
  • ') { - return attributes; - } - - return Object(objectSpread["a" /* default */])({}, attributes, { - values: attributes.values + values - }); - }, - edit: ListEdit, - save: save -}; - - -/***/ }), -/* 252 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/deprecated.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -var blockAttributes = { - value: { - type: 'string', - source: 'html', - selector: 'blockquote', - multiline: 'p', - default: '' - }, - citation: { - type: 'string', - source: 'html', - selector: 'cite', - default: '' - }, - align: { - type: 'string' - } -}; -var deprecated = [{ - attributes: blockAttributes, - save: function save(_ref) { - var attributes = _ref.attributes; - var align = attributes.align, - value = attributes.value, - citation = attributes.citation; - return Object(external_this_wp_element_["createElement"])("blockquote", { - style: { - textAlign: align ? align : null - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - multiline: true, - value: value - }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "cite", - value: citation - })); - } -}, { - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - style: { - type: 'number', - default: 1 - } - }), - migrate: function migrate(attributes) { - if (attributes.style === 2) { - return Object(objectSpread["a" /* default */])({}, Object(external_lodash_["omit"])(attributes, ['style']), { - className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large' - }); - } - - return attributes; - }, - save: function save(_ref2) { - var attributes = _ref2.attributes; - var align = attributes.align, - value = attributes.value, - citation = attributes.citation, - style = attributes.style; - return Object(external_this_wp_element_["createElement"])("blockquote", { - className: style === 2 ? 'is-large' : '', - style: { - textAlign: align ? align : null - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - multiline: true, - value: value - }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "cite", - value: citation - })); - } -}, { - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - citation: { - type: 'string', - source: 'html', - selector: 'footer', - default: '' - }, - style: { - type: 'number', - default: 1 - } - }), - save: function save(_ref3) { - var attributes = _ref3.attributes; - var align = attributes.align, - value = attributes.value, - citation = attributes.citation, - style = attributes.style; - return Object(external_this_wp_element_["createElement"])("blockquote", { - className: "blocks-quote-style-".concat(style), - style: { - textAlign: align ? align : null - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - multiline: true, - value: value - }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "footer", - value: citation - })); - } -}]; -/* harmony default export */ var quote_deprecated = (deprecated); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/edit.js - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -function QuoteEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - isSelected = _ref.isSelected, - mergeBlocks = _ref.mergeBlocks, - onReplace = _ref.onReplace, - className = _ref.className; - var align = attributes.align, - value = attributes.value, - citation = attributes.citation; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { - value: align, - onChange: function onChange(nextAlign) { - setAttributes({ - align: nextAlign - }); - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BlockQuotation"], { - className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - identifier: "value", - multiline: true, - value: value, - onChange: function onChange(nextValue) { - return setAttributes({ - value: nextValue - }); - }, - onMerge: mergeBlocks, - onRemove: function onRemove(forward) { - var hasEmptyCitation = !citation || citation.length === 0; - - if (!forward && hasEmptyCitation) { - onReplace([]); - } - }, - placeholder: // translators: placeholder text used for the quote - Object(external_this_wp_i18n_["__"])('Write quote…'), - onReplace: onReplace, - onSplit: function onSplit(piece) { - return Object(external_this_wp_blocks_["createBlock"])('core/quote', Object(objectSpread["a" /* default */])({}, attributes, { - value: piece - })); - }, - __unstableOnSplitMiddle: function __unstableOnSplitMiddle() { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph'); - } - }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - identifier: "citation", - value: citation, - onChange: function onChange(nextCitation) { - return setAttributes({ - citation: nextCitation - }); - }, - __unstableMobileNoFocusOnMount: true, - placeholder: // translators: placeholder text used for the citation - Object(external_this_wp_i18n_["__"])('Write citation…'), - className: "wp-block-quote__citation" - }))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/save.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save_save(_ref) { - var attributes = _ref.attributes; - var align = attributes.align, - value = attributes.value, - citation = attributes.citation; - var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)); - return Object(external_this_wp_element_["createElement"])("blockquote", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - multiline: true, - value: value - }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "cite", - value: citation - })); -} - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules -var objectWithoutProperties = __webpack_require__(21); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(17); - -// EXTERNAL MODULE: external {"this":["wp","richText"]} -var external_this_wp_richText_ = __webpack_require__(22); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/transforms.js - - - - -/** - * WordPress dependencies - */ - - -var transforms = { - from: [{ - type: 'block', - isMultiBlock: true, - blocks: ['core/paragraph'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/quote', { - value: Object(external_this_wp_richText_["toHTMLString"])({ - value: Object(external_this_wp_richText_["join"])(attributes.map(function (_ref) { - var content = _ref.content; - return Object(external_this_wp_richText_["create"])({ - html: content - }); - }), "\u2028"), - multilineTag: 'p' - }) - }); - } - }, { - type: 'block', - blocks: ['core/heading'], - transform: function transform(_ref2) { - var content = _ref2.content; - return Object(external_this_wp_blocks_["createBlock"])('core/quote', { - value: "

    ".concat(content, "

    ") - }); - } - }, { - type: 'block', - blocks: ['core/pullquote'], - transform: function transform(_ref3) { - var value = _ref3.value, - citation = _ref3.citation; - return Object(external_this_wp_blocks_["createBlock"])('core/quote', { - value: value, - citation: citation - }); - } - }, { - type: 'prefix', - prefix: '>', - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core/quote', { - value: "

    ".concat(content, "

    ") - }); - } - }, { - type: 'raw', - isMatch: function isMatch(node) { - var isParagraphOrSingleCite = function () { - var hasCitation = false; - return function (child) { - // Child is a paragraph. - if (child.nodeName === 'P') { - return true; - } // Child is a cite and no other cite child exists before it. - - - if (!hasCitation && child.nodeName === 'CITE') { - hasCitation = true; - return true; - } - }; - }(); - - return node.nodeName === 'BLOCKQUOTE' && // The quote block can only handle multiline paragraph - // content with an optional cite child. - Array.from(node.childNodes).every(isParagraphOrSingleCite); - }, - schema: { - blockquote: { - children: { - p: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - cite: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - } - } - } - }], - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(_ref4) { - var value = _ref4.value, - citation = _ref4.citation; - var paragraphs = []; - - if (value && value !== '

    ') { - paragraphs.push.apply(paragraphs, Object(toConsumableArray["a" /* default */])(Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({ - html: value, - multilineTag: 'p' - }), "\u2028").map(function (piece) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: Object(external_this_wp_richText_["toHTMLString"])({ - value: piece - }) - }); - }))); - } - - if (citation && citation !== '

    ') { - paragraphs.push(Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: citation - })); - } - - if (paragraphs.length === 0) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: '' - }); - } - - return paragraphs; - } - }, { - type: 'block', - blocks: ['core/heading'], - transform: function transform(_ref5) { - var value = _ref5.value, - citation = _ref5.citation, - attrs = Object(objectWithoutProperties["a" /* default */])(_ref5, ["value", "citation"]); - - // If there is no quote content, use the citation as the - // content of the resulting heading. A nonexistent citation - // will result in an empty heading. - if (value === '

    ') { - return Object(external_this_wp_blocks_["createBlock"])('core/heading', { - content: citation - }); - } - - var pieces = Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({ - html: value, - multilineTag: 'p' - }), "\u2028"); - var headingBlock = Object(external_this_wp_blocks_["createBlock"])('core/heading', { - content: Object(external_this_wp_richText_["toHTMLString"])({ - value: pieces[0] - }) - }); - - if (!citation && pieces.length === 1) { - return headingBlock; - } - - var quotePieces = pieces.slice(1); - var quoteBlock = Object(external_this_wp_blocks_["createBlock"])('core/quote', Object(objectSpread["a" /* default */])({}, attrs, { - citation: citation, - value: Object(external_this_wp_richText_["toHTMLString"])({ - value: quotePieces.length ? Object(external_this_wp_richText_["join"])(pieces.slice(1), "\u2028") : Object(external_this_wp_richText_["create"])(), - multilineTag: 'p' - }) - })); - return [headingBlock, quoteBlock]; - } - }, { - type: 'block', - blocks: ['core/pullquote'], - transform: function transform(_ref6) { - var value = _ref6.value, - citation = _ref6.citation; - return Object(external_this_wp_blocks_["createBlock"])('core/pullquote', { - value: value, - citation: citation - }); - } - }] -}; -/* harmony default export */ var quote_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return quote_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var metadata = { - name: "core/quote", - category: "common", - attributes: { - value: { - type: "string", - source: "html", - selector: "blockquote", - multiline: "p", - "default": "" - }, - citation: { - type: "string", - source: "html", - selector: "cite", - "default": "" - }, - align: { - type: "string" - } - } -}; - - -var quote_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Quote'), - description: Object(external_this_wp_i18n_["__"])('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'), - icon: icon, - keywords: [Object(external_this_wp_i18n_["__"])('blockquote'), Object(external_this_wp_i18n_["__"])('cite')], - example: { - attributes: { - value: '

    ' + Object(external_this_wp_i18n_["__"])('In quoting others, we cite ourselves.') + '

    ', - citation: 'Julio Cortázar', - className: 'is-style-large' - } - }, - styles: [{ - name: 'default', - label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), - isDefault: true - }, { - name: 'large', - label: Object(external_this_wp_i18n_["_x"])('Large', 'block style') - }], - transforms: quote_transforms, - edit: QuoteEdit, - save: save_save, - merge: function merge(attributes, _ref) { - var value = _ref.value, - citation = _ref.citation; - - // Quote citations cannot be merged. Pick the second one unless it's - // empty. - if (!citation) { - citation = attributes.citation; - } - - if (!value || value === '

    ') { - return Object(objectSpread["a" /* default */])({}, attributes, { - citation: citation - }); - } - - return Object(objectSpread["a" /* default */])({}, attributes, { - value: attributes.value + value, - citation: citation - }); - }, - deprecated: quote_deprecated -}; - - -/***/ }), -/* 253 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(17); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/edit.js - - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - -var edit_HTMLEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(HTMLEdit, _Component); - - function HTMLEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, HTMLEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HTMLEdit).apply(this, arguments)); - _this.state = { - isPreview: false, - styles: [] - }; - _this.switchToHTML = _this.switchToHTML.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.switchToPreview = _this.switchToPreview.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(HTMLEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var styles = this.props.styles; // Default styles used to unset some of the styles - // that might be inherited from the editor style. - - var defaultStyles = "\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"; - this.setState({ - styles: [defaultStyles].concat(Object(toConsumableArray["a" /* default */])(Object(external_this_wp_blockEditor_["transformStyles"])(styles))) - }); - } - }, { - key: "switchToPreview", - value: function switchToPreview() { - this.setState({ - isPreview: true - }); - } - }, { - key: "switchToHTML", - value: function switchToHTML() { - this.setState({ - isPreview: false - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var _this$state = this.state, - isPreview = _this$state.isPreview, - styles = _this$state.styles; - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-html" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])("div", { - className: "components-toolbar" - }, Object(external_this_wp_element_["createElement"])("button", { - className: "components-tab-button ".concat(!isPreview ? 'is-active' : ''), - onClick: this.switchToHTML - }, Object(external_this_wp_element_["createElement"])("span", null, "HTML")), Object(external_this_wp_element_["createElement"])("button", { - className: "components-tab-button ".concat(isPreview ? 'is-active' : ''), - onClick: this.switchToPreview - }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Preview'))))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"].Consumer, null, function (isDisabled) { - return isPreview || isDisabled ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { - html: attributes.content, - styles: styles - }) : Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { - value: attributes.content, - onChange: function onChange(content) { - return setAttributes({ - content: content - }); - }, - placeholder: Object(external_this_wp_i18n_["__"])('Write HTML…'), - "aria-label": Object(external_this_wp_i18n_["__"])('HTML') - }); - })); - } - }]); - - return HTMLEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - styles: getSettings().styles - }; -})(edit_HTMLEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/save.js - - -/** - * WordPress dependencies - */ - -function save(_ref) { - var attributes = _ref.attributes; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/transforms.js -/** - * WordPress dependencies - */ - -var transforms = { - from: [{ - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'FIGURE' && !!node.querySelector('iframe'); - }, - schema: { - figure: { - require: ['iframe'], - children: { - iframe: { - attributes: ['src', 'allowfullscreen', 'height', 'width'] - }, - figcaption: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - } - } - } - }] -}; -/* harmony default export */ var html_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return html_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/html", - category: "formatting", - attributes: { - content: { - type: "string", - source: "html" - } - } -}; - - -var html_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Custom HTML'), - description: Object(external_this_wp_i18n_["__"])('Add custom HTML code and preview it as you edit.'), - icon: icon, - keywords: [Object(external_this_wp_i18n_["__"])('embed')], - example: { - attributes: { - content: '' + Object(external_this_wp_i18n_["__"])('Welcome to the wonderful world of blocks…') + '' - } - }, - supports: { - customClassName: false, - className: false, - html: false - }, - transforms: html_transforms, - edit: edit, - save: save -}; - - -/***/ }), -/* 254 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/deprecated.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -var deprecated_colorsMigration = function colorsMigration(attributes) { - return Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, attributes, { - customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, - customBackgroundColor: attributes.color && '#' === attributes.color[0] ? attributes.color : undefined - }), ['color', 'textColor']); -}; - -var blockAttributes = { - url: { - type: 'string', - source: 'attribute', - selector: 'a', - attribute: 'href' - }, - title: { - type: 'string', - source: 'attribute', - selector: 'a', - attribute: 'title' - }, - text: { - type: 'string', - source: 'html', - selector: 'a' - } -}; -var deprecated = [{ - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - align: { - type: 'string', - default: 'none' - }, - backgroundColor: { - type: 'string' - }, - textColor: { - type: 'string' - }, - customBackgroundColor: { - type: 'string' - }, - customTextColor: { - type: 'string' - }, - linkTarget: { - type: 'string', - source: 'attribute', - selector: 'a', - attribute: 'target' - }, - rel: { - type: 'string', - source: 'attribute', - selector: 'a', - attribute: 'rel' - }, - placeholder: { - type: 'string' - } - }), - isEligible: function isEligible(attribute) { - return attribute.className && attribute.className.includes('is-style-squared'); - }, - migrate: function migrate(attributes) { - var newClassName = attributes.className; - - if (newClassName) { - newClassName = newClassName.replace(/is-style-squared[\s]?/, '').trim(); - } - - return Object(objectSpread["a" /* default */])({}, attributes, { - className: newClassName ? newClassName : undefined, - borderRadius: 0 - }); - }, - save: function save(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var backgroundColor = attributes.backgroundColor, - customBackgroundColor = attributes.customBackgroundColor, - customTextColor = attributes.customTextColor, - linkTarget = attributes.linkTarget, - rel = attributes.rel, - text = attributes.text, - textColor = attributes.textColor, - title = attributes.title, - url = attributes.url; - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var buttonClasses = classnames_default()('wp-block-button__link', (_classnames = { - 'has-text-color': textColor || customTextColor - }, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); - var buttonStyle = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor - }; - return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "a", - className: buttonClasses, - href: url, - title: title, - style: buttonStyle, - value: text, - target: linkTarget, - rel: rel - })); - } -}, { - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - align: { - type: 'string', - default: 'none' - }, - backgroundColor: { - type: 'string' - }, - textColor: { - type: 'string' - }, - customBackgroundColor: { - type: 'string' - }, - customTextColor: { - type: 'string' - } - }), - save: function save(_ref2) { - var _classnames2; - - var attributes = _ref2.attributes; - var url = attributes.url, - text = attributes.text, - title = attributes.title, - backgroundColor = attributes.backgroundColor, - textColor = attributes.textColor, - customBackgroundColor = attributes.customBackgroundColor, - customTextColor = attributes.customTextColor; - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var buttonClasses = classnames_default()('wp-block-button__link', (_classnames2 = { - 'has-text-color': textColor || customTextColor - }, Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2)); - var buttonStyle = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor - }; - return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "a", - className: buttonClasses, - href: url, - title: title, - style: buttonStyle, - value: text - })); - }, - migrate: deprecated_colorsMigration -}, { - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - color: { - type: 'string' - }, - textColor: { - type: 'string' - }, - align: { - type: 'string', - default: 'none' - } - }), - save: function save(_ref3) { - var attributes = _ref3.attributes; - var url = attributes.url, - text = attributes.text, - title = attributes.title, - align = attributes.align, - color = attributes.color, - textColor = attributes.textColor; - var buttonStyle = { - backgroundColor: color, - color: textColor - }; - var linkClass = 'wp-block-button__link'; - return Object(external_this_wp_element_["createElement"])("div", { - className: "align".concat(align) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "a", - className: linkClass, - href: url, - title: title, - style: buttonStyle, - value: text - })); - }, - migrate: deprecated_colorsMigration -}, { - attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { - color: { - type: 'string' - }, - textColor: { - type: 'string' - }, - align: { - type: 'string', - default: 'none' - } - }), - save: function save(_ref4) { - var attributes = _ref4.attributes; - var url = attributes.url, - text = attributes.text, - title = attributes.title, - align = attributes.align, - color = attributes.color, - textColor = attributes.textColor; - return Object(external_this_wp_element_["createElement"])("div", { - className: "align".concat(align), - style: { - backgroundColor: color - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "a", - href: url, - title: title, - style: { - color: textColor - }, - value: text - })); - }, - migrate: deprecated_colorsMigration -}]; -/* harmony default export */ var button_deprecated = (deprecated); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/edit.js - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -var _window = window, - getComputedStyle = _window.getComputedStyle; -var applyFallbackStyles = Object(external_this_wp_components_["withFallbackStyles"])(function (node, ownProps) { - var textColor = ownProps.textColor, - backgroundColor = ownProps.backgroundColor; - var backgroundColorValue = backgroundColor && backgroundColor.color; - var textColorValue = textColor && textColor.color; //avoid the use of querySelector if textColor color is known and verify if node is available. - - var textNode = !textColorValue && node ? node.querySelector('[contenteditable="true"]') : null; - return { - fallbackBackgroundColor: backgroundColorValue || !node ? undefined : getComputedStyle(node).backgroundColor, - fallbackTextColor: textColorValue || !textNode ? undefined : getComputedStyle(textNode).color - }; -}); -var NEW_TAB_REL = 'noreferrer noopener'; -var MIN_BORDER_RADIUS_VALUE = 0; -var MAX_BORDER_RADIUS_VALUE = 50; -var INITIAL_BORDER_RADIUS_POSITION = 5; - -function BorderPanel(_ref) { - var _ref$borderRadius = _ref.borderRadius, - borderRadius = _ref$borderRadius === void 0 ? '' : _ref$borderRadius, - setAttributes = _ref.setAttributes; - var setBorderRadius = Object(external_this_wp_element_["useCallback"])(function (newBorderRadius) { - setAttributes({ - borderRadius: newBorderRadius - }); - }, [setAttributes]); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Border Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - value: borderRadius, - label: Object(external_this_wp_i18n_["__"])('Border Radius'), - min: MIN_BORDER_RADIUS_VALUE, - max: MAX_BORDER_RADIUS_VALUE, - initialPosition: INITIAL_BORDER_RADIUS_POSITION, - allowReset: true, - onChange: setBorderRadius - })); -} - -var edit_ButtonEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ButtonEdit, _Component); - - function ButtonEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, ButtonEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ButtonEdit).apply(this, arguments)); - _this.nodeRef = null; - _this.bindRef = _this.bindRef.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSetLinkRel = _this.onSetLinkRel.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onToggleOpenInNewTab = _this.onToggleOpenInNewTab.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(ButtonEdit, [{ - key: "bindRef", - value: function bindRef(node) { - if (!node) { - return; - } - - this.nodeRef = node; - } - }, { - key: "onSetLinkRel", - value: function onSetLinkRel(value) { - this.props.setAttributes({ - rel: value - }); - } - }, { - key: "onToggleOpenInNewTab", - value: function onToggleOpenInNewTab(value) { - var rel = this.props.attributes.rel; - var linkTarget = value ? '_blank' : undefined; - var updatedRel = rel; - - if (linkTarget && !rel) { - updatedRel = NEW_TAB_REL; - } else if (!linkTarget && rel === NEW_TAB_REL) { - updatedRel = undefined; - } - - this.props.setAttributes({ - linkTarget: linkTarget, - rel: updatedRel - }); - } - }, { - key: "render", - value: function render() { - var _classnames; - - var _this$props = this.props, - attributes = _this$props.attributes, - backgroundColor = _this$props.backgroundColor, - textColor = _this$props.textColor, - setBackgroundColor = _this$props.setBackgroundColor, - setTextColor = _this$props.setTextColor, - fallbackBackgroundColor = _this$props.fallbackBackgroundColor, - fallbackTextColor = _this$props.fallbackTextColor, - setAttributes = _this$props.setAttributes, - className = _this$props.className, - instanceId = _this$props.instanceId, - isSelected = _this$props.isSelected; - var borderRadius = attributes.borderRadius, - linkTarget = attributes.linkTarget, - placeholder = attributes.placeholder, - rel = attributes.rel, - text = attributes.text, - title = attributes.title, - url = attributes.url; - var linkId = "wp-block-button__inline-link-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])("div", { - className: className, - title: title, - ref: this.bindRef - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Add text…'), - value: text, - onChange: function onChange(value) { - return setAttributes({ - text: value - }); - }, - withoutInteractiveFormatting: true, - className: classnames_default()('wp-block-button__link', (_classnames = { - 'has-background': backgroundColor.color - }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor.color), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), Object(defineProperty["a" /* default */])(_classnames, 'no-border-radius', borderRadius === 0), _classnames)), - style: { - backgroundColor: backgroundColor.color, - color: textColor.color, - borderRadius: borderRadius ? borderRadius + 'px' : undefined - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - label: Object(external_this_wp_i18n_["__"])('Link'), - className: "wp-block-button__inline-link", - id: linkId - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLInput"], { - className: "wp-block-button__inline-link-input", - value: url - /* eslint-disable jsx-a11y/no-autofocus */ - // Disable Reason: The rule is meant to prevent enabling auto-focus, not disabling it. - , - autoFocus: false - /* eslint-enable jsx-a11y/no-autofocus */ - , - onChange: function onChange(value) { - return setAttributes({ - url: value - }); - }, - disableSuggestions: !isSelected, - id: linkId, - isFullWidth: true, - hasBorder: true - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - colorSettings: [{ - value: backgroundColor.color, - onChange: setBackgroundColor, - label: Object(external_this_wp_i18n_["__"])('Background Color') - }, { - value: textColor.color, - onChange: setTextColor, - label: Object(external_this_wp_i18n_["__"])('Text Color') - }] - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], { - // Text is considered large if font size is greater or equal to 18pt or 24px, - // currently that's not the case for button. - isLargeText: false, - textColor: textColor.color, - backgroundColor: backgroundColor.color, - fallbackBackgroundColor: fallbackBackgroundColor, - fallbackTextColor: fallbackTextColor - })), Object(external_this_wp_element_["createElement"])(BorderPanel, { - borderRadius: borderRadius, - setAttributes: setAttributes - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Link settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Open in new tab'), - onChange: this.onToggleOpenInNewTab, - checked: linkTarget === '_blank' - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Link rel'), - value: rel || '', - onChange: this.onSetLinkRel - })))); - } - }]); - - return ButtonEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([external_this_wp_compose_["withInstanceId"], Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', { - textColor: 'color' -}), applyFallbackStyles])(edit_ButtonEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z" -})))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/save.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save_save(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var backgroundColor = attributes.backgroundColor, - borderRadius = attributes.borderRadius, - customBackgroundColor = attributes.customBackgroundColor, - customTextColor = attributes.customTextColor, - linkTarget = attributes.linkTarget, - rel = attributes.rel, - text = attributes.text, - textColor = attributes.textColor, - title = attributes.title, - url = attributes.url; - var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); - var buttonClasses = classnames_default()('wp-block-button__link', (_classnames = { - 'has-text-color': textColor || customTextColor - }, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'no-border-radius', borderRadius === 0), _classnames)); - var buttonStyle = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor, - borderRadius: borderRadius ? borderRadius + 'px' : undefined - }; - return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "a", - className: buttonClasses, - href: url, - title: title, - style: buttonStyle, - value: text, - target: linkTarget, - rel: rel - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return button_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var metadata = { - name: "core/button", - category: "layout", - attributes: { - url: { - type: "string", - source: "attribute", - selector: "a", - attribute: "href" - }, - title: { - type: "string", - source: "attribute", - selector: "a", - attribute: "title" - }, - text: { - type: "string", - source: "html", - selector: "a" - }, - backgroundColor: { - type: "string" - }, - textColor: { - type: "string" - }, - customBackgroundColor: { - type: "string" - }, - customTextColor: { - type: "string" - }, - linkTarget: { - type: "string", - source: "attribute", - selector: "a", - attribute: "target" - }, - rel: { - type: "string", - source: "attribute", - selector: "a", - attribute: "rel" - }, - placeholder: { - type: "string" - }, - borderRadius: { - type: "number" - } - } -}; - -var button_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Button'), - description: Object(external_this_wp_i18n_["__"])('Prompt visitors to take action with a button-style link.'), - icon: icon, - keywords: [Object(external_this_wp_i18n_["__"])('link')], - example: { - attributes: { - className: 'is-style-fill', - backgroundColor: 'vivid-green-cyan', - text: Object(external_this_wp_i18n_["__"])('Call to Action') - } - }, - supports: { - align: true, - alignWide: false - }, - styles: [{ - name: 'fill', - label: Object(external_this_wp_i18n_["__"])('Fill'), - isDefault: true - }, { - name: 'outline', - label: Object(external_this_wp_i18n_["__"])('Outline') - }], - edit: edit, - save: save_save, - deprecated: button_deprecated -}; - - -/***/ }), -/* 255 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/edit.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - - -var edit_MoreEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(MoreEdit, _Component); - - function MoreEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, MoreEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MoreEdit).apply(this, arguments)); - _this.onChangeInput = _this.onChangeInput.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.state = { - defaultText: Object(external_this_wp_i18n_["__"])('Read more') - }; - return _this; - } - - Object(createClass["a" /* default */])(MoreEdit, [{ - key: "onChangeInput", - value: function onChangeInput(event) { - // Set defaultText to an empty string, allowing the user to clear/replace the input field's text - this.setState({ - defaultText: '' - }); - var value = event.target.value.length === 0 ? undefined : event.target.value; - this.props.setAttributes({ - customText: value - }); - } - }, { - key: "onKeyDown", - value: function onKeyDown(event) { - var keyCode = event.keyCode; - var insertBlocksAfter = this.props.insertBlocksAfter; - - if (keyCode === external_this_wp_keycodes_["ENTER"]) { - insertBlocksAfter([Object(external_this_wp_blocks_["createBlock"])(Object(external_this_wp_blocks_["getDefaultBlockName"])())]); - } - } - }, { - key: "getHideExcerptHelp", - value: function getHideExcerptHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('The excerpt is hidden.') : Object(external_this_wp_i18n_["__"])('The excerpt is visible.'); - } - }, { - key: "render", - value: function render() { - var _this$props$attribute = this.props.attributes, - customText = _this$props$attribute.customText, - noTeaser = _this$props$attribute.noTeaser; - var setAttributes = this.props.setAttributes; - - var toggleHideExcerpt = function toggleHideExcerpt() { - return setAttributes({ - noTeaser: !noTeaser - }); - }; - - var defaultText = this.state.defaultText; - var value = customText !== undefined ? customText : defaultText; - var inputLength = value.length + 1; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Hide the excerpt on the full content page'), - checked: !!noTeaser, - onChange: toggleHideExcerpt, - help: this.getHideExcerptHelp - }))), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-more" - }, Object(external_this_wp_element_["createElement"])("input", { - type: "text", - value: value, - size: inputLength, - onChange: this.onChangeInput, - onKeyDown: this.onKeyDown - }))); - } - }]); - - return MoreEdit; -}(external_this_wp_element_["Component"]); - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z" -})))); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/save.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save(_ref) { - var attributes = _ref.attributes; - var customText = attributes.customText, - noTeaser = attributes.noTeaser; - var moreTag = customText ? "") : ''; - var noTeaserTag = noTeaser ? '' : ''; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, Object(external_lodash_["compact"])([moreTag, noTeaserTag]).join('\n')); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/transforms.js -/** - * WordPress dependencies - */ - -var transforms = { - from: [{ - type: 'raw', - schema: { - 'wp-block': { - attributes: ['data-block'] - } - }, - isMatch: function isMatch(node) { - return node.dataset && node.dataset.block === 'core/more'; - }, - transform: function transform(node) { - var _node$dataset = node.dataset, - customText = _node$dataset.customText, - noTeaser = _node$dataset.noTeaser; - var attrs = {}; // Don't copy unless defined and not an empty string - - if (customText) { - attrs.customText = customText; - } // Special handling for boolean - - - if (noTeaser === '') { - attrs.noTeaser = true; - } - - return Object(external_this_wp_blocks_["createBlock"])('core/more', attrs); - } - }] -}; -/* harmony default export */ var more_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return more_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/more", - category: "layout", - attributes: { - customText: { - type: "string" - }, - noTeaser: { - type: "boolean", - "default": false - } - } -}; - - -var more_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["_x"])('More', 'block name'), - description: Object(external_this_wp_i18n_["__"])('Content before this block will be shown in the excerpt on your archives page.'), - icon: icon, - supports: { - customClassName: false, - className: false, - html: false, - multiple: false - }, - example: {}, - transforms: more_transforms, - edit: edit_MoreEdit, - save: save -}; - - -/***/ }), -/* 256 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/edit.js - - -/** - * WordPress dependencies - */ - -function NextPageEdit() { - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-nextpage" - }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Page break'))); -} - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - width: "24px", - height: "24px", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0 0h24v24H0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M9 11h6v2H9zM2 11h5v2H2zM17 11h5v2h-5zM6 4h7v5h7V8l-6-6H6a2 2 0 0 0-2 2v5h2zM18 20H6v-5H4v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5h-2z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/save.js - - -/** - * WordPress dependencies - */ - -function save() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, ''); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/transforms.js -/** - * WordPress dependencies - */ - -var transforms = { - from: [{ - type: 'raw', - schema: { - 'wp-block': { - attributes: ['data-block'] - } - }, - isMatch: function isMatch(node) { - return node.dataset && node.dataset.block === 'core/nextpage'; - }, - transform: function transform() { - return Object(external_this_wp_blocks_["createBlock"])('core/nextpage', {}); - } - }] -}; -/* harmony default export */ var nextpage_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return nextpage_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/nextpage", - category: "layout" -}; - - -var nextpage_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Page Break'), - description: Object(external_this_wp_i18n_["__"])('Separate your content into a multi-page experience.'), - icon: icon, - keywords: [Object(external_this_wp_i18n_["__"])('next page'), Object(external_this_wp_i18n_["__"])('pagination')], - supports: { - customClassName: false, - className: false, - html: false - }, - example: {}, - transforms: nextpage_transforms, - edit: NextPageEdit, - save: save -}; - - -/***/ }), -/* 257 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/deprecated.js - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -/** - * Given an HTML string for a deprecated columns inner block, returns the - * column index to which the migrated inner block should be assigned. Returns - * undefined if the inner block was not assigned to a column. - * - * @param {string} originalContent Deprecated Columns inner block HTML. - * - * @return {?number} Column to which inner block is to be assigned. - */ - -function getDeprecatedLayoutColumn(originalContent) { - var doc = getDeprecatedLayoutColumn.doc; - - if (!doc) { - doc = document.implementation.createHTMLDocument(''); - getDeprecatedLayoutColumn.doc = doc; - } - - var columnMatch; - doc.body.innerHTML = originalContent; - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = doc.body.firstChild.classList[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var classListItem = _step.value; - - if (columnMatch = classListItem.match(/^layout-column-(\d+)$/)) { - return Number(columnMatch[1]) - 1; - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } -} - -/* harmony default export */ var deprecated = ([{ - attributes: { - columns: { - type: 'number', - default: 2 - } - }, - isEligible: function isEligible(attributes, innerBlocks) { - // Since isEligible is called on every valid instance of the - // Columns block and a deprecation is the unlikely case due to - // its subsequent migration, optimize for the `false` condition - // by performing a naive, inaccurate pass at inner blocks. - var isFastPassEligible = innerBlocks.some(function (innerBlock) { - return /layout-column-\d+/.test(innerBlock.originalContent); - }); - - if (!isFastPassEligible) { - return false; - } // Only if the fast pass is considered eligible is the more - // accurate, durable, slower condition performed. - - - return innerBlocks.some(function (innerBlock) { - return getDeprecatedLayoutColumn(innerBlock.originalContent) !== undefined; - }); - }, - migrate: function migrate(attributes, innerBlocks) { - var columns = innerBlocks.reduce(function (result, innerBlock) { - var originalContent = innerBlock.originalContent; - var columnIndex = getDeprecatedLayoutColumn(originalContent); - - if (columnIndex === undefined) { - columnIndex = 0; - } - - if (!result[columnIndex]) { - result[columnIndex] = []; - } - - result[columnIndex].push(innerBlock); - return result; - }, []); - var migratedInnerBlocks = columns.map(function (columnBlocks) { - return Object(external_this_wp_blocks_["createBlock"])('core/column', {}, columnBlocks); - }); - return [Object(external_lodash_["omit"])(attributes, ['columns']), migratedInnerBlocks]; - }, - save: function save(_ref) { - var attributes = _ref.attributes; - var columns = attributes.columns; - return Object(external_this_wp_element_["createElement"])("div", { - className: "has-".concat(columns, "-columns") - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); - } -}, { - attributes: { - columns: { - type: 'number', - default: 2 - } - }, - migrate: function migrate(attributes, innerBlocks) { - attributes = Object(external_lodash_["omit"])(attributes, ['columns']); - return [attributes, innerBlocks]; - }, - save: function save(_ref2) { - var attributes = _ref2.attributes; - var verticalAlignment = attributes.verticalAlignment, - columns = attributes.columns; - var wrapperClasses = classnames_default()("has-".concat(columns, "-columns"), Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); - return Object(external_this_wp_element_["createElement"])("div", { - className: wrapperClasses - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); - } -}]); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(17); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/columns/utils.js -var utils = __webpack_require__(57); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/edit.js - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - -/** - * Allowed blocks constant is passed to InnerBlocks precisely as specified here. - * The contents of the array should never change. - * The array should contain the name of each block that is allowed. - * In columns block, the only block we allow is 'core/column'. - * - * @constant - * @type {string[]} - */ - -var ALLOWED_BLOCKS = ['core/column']; -/** - * Template option choices for predefined columns layouts. - * - * @constant - * @type {Array} - */ - -var TEMPLATE_OPTIONS = [{ - title: Object(external_this_wp_i18n_["__"])('Two columns; equal split'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "48", - height: "48", - viewBox: "0 0 48 48", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z" - })), - template: [['core/column'], ['core/column']] -}, { - title: Object(external_this_wp_i18n_["__"])('Two columns; one-third, two-thirds split'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "48", - height: "48", - viewBox: "0 0 48 48", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z" - })), - template: [['core/column', { - width: 33.33 - }], ['core/column', { - width: 66.66 - }]] -}, { - title: Object(external_this_wp_i18n_["__"])('Two columns; two-thirds, one-third split'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "48", - height: "48", - viewBox: "0 0 48 48", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z" - })), - template: [['core/column', { - width: 66.66 - }], ['core/column', { - width: 33.33 - }]] -}, { - title: Object(external_this_wp_i18n_["__"])('Three columns; equal split'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "48", - height: "48", - viewBox: "0 0 48 48", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fillRule: "evenodd", - d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z" - })), - template: [['core/column'], ['core/column'], ['core/column']] -}, { - title: Object(external_this_wp_i18n_["__"])('Three columns; wide center column'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "48", - height: "48", - viewBox: "0 0 48 48", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fillRule: "evenodd", - d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z" - })), - template: [['core/column', { - width: 25 - }], ['core/column', { - width: 50 - }], ['core/column', { - width: 25 - }]] -}]; -/** - * Number of columns to assume for template in case the user opts to skip - * template option selection. - * - * @type {number} - */ - -var DEFAULT_COLUMNS = 2; -function ColumnsEdit(_ref) { - var attributes = _ref.attributes, - className = _ref.className, - updateAlignment = _ref.updateAlignment, - updateColumns = _ref.updateColumns, - clientId = _ref.clientId; - var verticalAlignment = attributes.verticalAlignment; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - return { - count: select('core/block-editor').getBlockCount(clientId) - }; - }), - count = _useSelect.count; - - var _useState = Object(external_this_wp_element_["useState"])(Object(utils["c" /* getColumnsTemplate */])(count)), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - template = _useState2[0], - setTemplate = _useState2[1]; - - var _useState3 = Object(external_this_wp_element_["useState"])(false), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - forceUseTemplate = _useState4[0], - setForceUseTemplate = _useState4[1]; // This is used to force the usage of the template even if the count doesn't match the template - // The count doesn't match the template once you use undo/redo (this is used to reset to the placeholder state). - - - Object(external_this_wp_element_["useEffect"])(function () { - // Once the template is applied, reset it. - if (forceUseTemplate) { - setForceUseTemplate(false); - } - }, [forceUseTemplate]); - var classes = classnames_default()(className, Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); // The template selector is shown when we first insert the columns block (count === 0). - // or if there's no template available. - // The count === 0 trick is useful when you use undo/redo. - - var showTemplateSelector = count === 0 && !forceUseTemplate || !template; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !showTemplateSelector && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: count, - onChange: function onChange(value) { - return updateColumns(count, value); - }, - min: 2, - max: 6 - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { - onChange: updateAlignment, - value: verticalAlignment - }))), Object(external_this_wp_element_["createElement"])("div", { - className: classes - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - __experimentalTemplateOptions: TEMPLATE_OPTIONS, - __experimentalOnSelectTemplateOption: function __experimentalOnSelectTemplateOption(nextTemplate) { - if (nextTemplate === undefined) { - nextTemplate = Object(utils["c" /* getColumnsTemplate */])(DEFAULT_COLUMNS); - } - - setTemplate(nextTemplate); - setForceUseTemplate(true); - }, - __experimentalAllowTemplateOptionSkip: true, - template: showTemplateSelector ? null : template, - templateLock: "all", - allowedBlocks: ALLOWED_BLOCKS - }))); -} -/* harmony default export */ var edit = (Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, registry) { - return { - /** - * Update all child Column blocks with a new vertical alignment setting - * based on whatever alignment is passed in. This allows change to parent - * to overide anything set on a individual column basis. - * - * @param {string} verticalAlignment the vertical alignment setting - */ - updateAlignment: function updateAlignment(verticalAlignment) { - var clientId = ownProps.clientId, - setAttributes = ownProps.setAttributes; - - var _dispatch = dispatch('core/block-editor'), - updateBlockAttributes = _dispatch.updateBlockAttributes; - - var _registry$select = registry.select('core/block-editor'), - getBlockOrder = _registry$select.getBlockOrder; // Update own alignment. - - - setAttributes({ - verticalAlignment: verticalAlignment - }); // Update all child Column Blocks to match - - var innerBlockClientIds = getBlockOrder(clientId); - innerBlockClientIds.forEach(function (innerBlockClientId) { - updateBlockAttributes(innerBlockClientId, { - verticalAlignment: verticalAlignment - }); - }); - }, - - /** - * Updates the column count, including necessary revisions to child Column - * blocks to grant required or redistribute available space. - * - * @param {number} previousColumns Previous column count. - * @param {number} newColumns New column count. - */ - updateColumns: function updateColumns(previousColumns, newColumns) { - var clientId = ownProps.clientId; - - var _dispatch2 = dispatch('core/block-editor'), - replaceInnerBlocks = _dispatch2.replaceInnerBlocks; - - var _registry$select2 = registry.select('core/block-editor'), - getBlocks = _registry$select2.getBlocks; - - var innerBlocks = getBlocks(clientId); - var hasExplicitWidths = Object(utils["g" /* hasExplicitColumnWidths */])(innerBlocks); // Redistribute available width for existing inner blocks. - - var isAddingColumn = newColumns > previousColumns; - - if (isAddingColumn && hasExplicitWidths) { - // If adding a new column, assign width to the new column equal to - // as if it were `1 / columns` of the total available space. - var newColumnWidth = Object(utils["h" /* toWidthPrecision */])(100 / newColumns); // Redistribute in consideration of pending block insertion as - // constraining the available working width. - - var widths = Object(utils["e" /* getRedistributedColumnWidths */])(innerBlocks, 100 - newColumnWidth); - innerBlocks = [].concat(Object(toConsumableArray["a" /* default */])(Object(utils["d" /* getMappedColumnWidths */])(innerBlocks, widths)), Object(toConsumableArray["a" /* default */])(Object(external_lodash_["times"])(newColumns - previousColumns, function () { - return Object(external_this_wp_blocks_["createBlock"])('core/column', { - width: newColumnWidth - }); - }))); - } else if (isAddingColumn) { - innerBlocks = [].concat(Object(toConsumableArray["a" /* default */])(innerBlocks), Object(toConsumableArray["a" /* default */])(Object(external_lodash_["times"])(newColumns - previousColumns, function () { - return Object(external_this_wp_blocks_["createBlock"])('core/column'); - }))); - } else { - // The removed column will be the last of the inner blocks. - innerBlocks = Object(external_lodash_["dropRight"])(innerBlocks, previousColumns - newColumns); - - if (hasExplicitWidths) { - // Redistribute as if block is already removed. - var _widths = Object(utils["e" /* getRedistributedColumnWidths */])(innerBlocks, 100); - - innerBlocks = Object(utils["d" /* getMappedColumnWidths */])(innerBlocks, _widths); - } - } - - replaceInnerBlocks(clientId, innerBlocks, false); - } - }; -})(ColumnsEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z" -})))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/save.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save_save(_ref) { - var attributes = _ref.attributes; - var verticalAlignment = attributes.verticalAlignment; - var wrapperClasses = classnames_default()(Object(defineProperty["a" /* default */])({}, "are-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); - return Object(external_this_wp_element_["createElement"])("div", { - className: wrapperClasses - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return columns_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var metadata = { - name: "core/columns", - category: "layout", - attributes: { - verticalAlignment: { - type: "string" - } - } -}; - -var columns_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Columns'), - icon: icon, - description: Object(external_this_wp_i18n_["__"])('Add a block that displays content in multiple columns, then add whatever content blocks you’d like.'), - supports: { - align: ['wide', 'full'], - html: false - }, - example: { - innerBlocks: [{ - name: 'core/column', - innerBlocks: [{ - name: 'core/paragraph', - attributes: { - content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis pellentesque efficitur. Nam dapibus felis malesuada tincidunt rhoncus. Integer non malesuada tortor.' - } - }, { - name: 'core/image', - attributes: { - url: 'https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg' - } - }, { - name: 'core/paragraph', - attributes: { - content: 'Suspendisse commodo neque lacus, a dictum orci interdum et. Ut vel mi ut leo fringilla rutrum.' - } - }] - }, { - name: 'core/column', - innerBlocks: [{ - name: 'core/paragraph', - attributes: { - content: Object(external_this_wp_i18n_["__"])('Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit, eget faucibus urna pulvinar.') - } - }, { - name: 'core/paragraph', - attributes: { - content: Object(external_this_wp_i18n_["__"])('Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim ultricies commodo.') - } - }] - }] - }, - deprecated: deprecated, - edit: edit, - save: save_save -}; - - -/***/ }), -/* 258 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/edit.js - - -/** - * WordPress dependencies - */ - - -function PreformattedEdit(_ref) { - var attributes = _ref.attributes, - mergeBlocks = _ref.mergeBlocks, - setAttributes = _ref.setAttributes, - className = _ref.className; - var content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "pre" // Ensure line breaks are normalised to HTML. - , - value: content.replace(/\n/g, '
    '), - onChange: function onChange(nextContent) { - setAttributes({ - // Ensure line breaks are normalised to characters. This - // saves space, is easier to read, and ensures display - // filters work correctly. - content: nextContent.replace(/
    /g, '\n') - }); - }, - placeholder: Object(external_this_wp_i18n_["__"])('Write preformatted text…'), - wrapperClassName: className, - onMerge: mergeBlocks - }); -} - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "6", - y: "10", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "6", - y: "14", - width: "8", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "16", - y: "14", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "10", - y: "10", - width: "8", - height: "2" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/save.js - - -/** - * WordPress dependencies - */ - -function save(_ref) { - var attributes = _ref.attributes; - var content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "pre", - value: content - }); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/transforms.js -/** - * WordPress dependencies - */ - -var transforms = { - from: [{ - type: 'block', - blocks: ['core/code', 'core/paragraph'], - transform: function transform(_ref) { - var content = _ref.content; - return Object(external_this_wp_blocks_["createBlock"])('core/preformatted', { - content: content - }); - } - }, { - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'PRE' && !(node.children.length === 1 && node.firstChild.nodeName === 'CODE'); - }, - schema: { - pre: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - } - }], - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', attributes); - } - }] -}; -/* harmony default export */ var preformatted_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return preformatted_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/preformatted", - category: "formatting", - attributes: { - content: { - type: "string", - source: "html", - selector: "pre", - "default": "" - } - } -}; - - -var preformatted_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Preformatted'), - description: Object(external_this_wp_i18n_["__"])('Add text that respects your spacing and tabs, and also allows styling.'), - icon: icon, - example: { - attributes: { - content: Object(external_this_wp_i18n_["__"])('EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)') + '\n' + Object(external_this_wp_i18n_["__"])('Window, very small in the distance, illuminated.') + '\n' + Object(external_this_wp_i18n_["__"])('All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;') - } - }, - transforms: preformatted_transforms, - edit: PreformattedEdit, - save: save, - merge: function merge(attributes, attributesToMerge) { - return { - content: attributes.content + attributesToMerge.content - }; - } -}; - - -/***/ }), -/* 259 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/edit.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -function SeparatorEdit(_ref) { - var color = _ref.color, - setColor = _ref.setColor, - className = _ref.className; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["HorizontalRule"], { - className: classnames_default()(className, Object(defineProperty["a" /* default */])({ - 'has-background': color.color - }, color.class, color.class)), - style: { - backgroundColor: color.color, - color: color.color - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - colorSettings: [{ - value: color.color, - onChange: setColor, - label: Object(external_this_wp_i18n_["__"])('Color') - }] - }))); -} - -/* harmony default export */ var edit = (Object(external_this_wp_blockEditor_["withColors"])('color', { - textColor: 'color' -})(SeparatorEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19 13H5v-2h14v2z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/save.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function separatorSave(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var color = attributes.color, - customColor = attributes.customColor; // the hr support changing color using border-color, since border-color - // is not yet supported in the color palette, we use background-color - - var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', color); // the dots styles uses text for the dots, to change those dots color is - // using color, not backgroundColor - - var colorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', color); - var separatorClasses = classnames_default()((_classnames = { - 'has-text-color has-background': color || customColor - }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, colorClass, colorClass), _classnames)); - var separatorStyle = { - backgroundColor: backgroundClass ? undefined : customColor, - color: colorClass ? undefined : customColor - }; - return Object(external_this_wp_element_["createElement"])("hr", { - className: separatorClasses, - style: separatorStyle - }); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/transforms.js -/** - * WordPress dependencies - */ - -var transforms = { - from: [{ - type: 'enter', - regExp: /^-{3,}$/, - transform: function transform() { - return Object(external_this_wp_blocks_["createBlock"])('core/separator'); - } - }, { - type: 'raw', - selector: 'hr', - schema: { - hr: {} - } - }] -}; -/* harmony default export */ var separator_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return separator_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/separator", - category: "layout", - attributes: { - color: { - type: "string" - }, - customColor: { - type: "string" - } - } -}; - - -var separator_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Separator'), - description: Object(external_this_wp_i18n_["__"])('Create a break between ideas or sections with a horizontal separator.'), - icon: icon, - keywords: [Object(external_this_wp_i18n_["__"])('horizontal-line'), 'hr', Object(external_this_wp_i18n_["__"])('divider')], - example: { - attributes: { - customColor: '#065174', - className: 'is-style-wide' - } - }, - styles: [{ - name: 'default', - label: Object(external_this_wp_i18n_["__"])('Default'), - isDefault: true - }, { - name: 'wide', - label: Object(external_this_wp_i18n_["__"])('Wide Line') - }, { - name: 'dots', - label: Object(external_this_wp_i18n_["__"])('Dots') - }], - transforms: separator_transforms, - edit: edit, - save: separatorSave -}; - - -/***/ }), -/* 260 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(35); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z" -}))); - -// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js -var util = __webpack_require__(61); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/edit.js - - - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - -/** - * Internal dependencies - */ - - -var ALLOWED_MEDIA_TYPES = ['audio']; - -var edit_AudioEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(AudioEdit, _Component); - - function AudioEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, AudioEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(AudioEdit).apply(this, arguments)); // edit component has its own src in the state so it can be edited - // without setting the actual value outside of the edit UI - - _this.state = { - editing: !_this.props.attributes.src - }; - _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(AudioEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - mediaUpload = _this$props.mediaUpload, - noticeOperations = _this$props.noticeOperations, - setAttributes = _this$props.setAttributes; - var id = attributes.id, - _attributes$src = attributes.src, - src = _attributes$src === void 0 ? '' : _attributes$src; - - if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(src); - - if (file) { - mediaUpload({ - filesList: [file], - onFileChange: function onFileChange(_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), - _ref2$ = _ref2[0], - mediaId = _ref2$.id, - url = _ref2$.url; - - setAttributes({ - id: mediaId, - src: url - }); - }, - onError: function onError(e) { - setAttributes({ - src: undefined, - id: undefined - }); - - _this2.setState({ - editing: true - }); - - noticeOperations.createErrorNotice(e); - }, - allowedTypes: ALLOWED_MEDIA_TYPES - }); - } - } - } - }, { - key: "toggleAttribute", - value: function toggleAttribute(attribute) { - var _this3 = this; - - return function (newValue) { - _this3.props.setAttributes(Object(defineProperty["a" /* default */])({}, attribute, newValue)); - }; - } - }, { - key: "onSelectURL", - value: function onSelectURL(newSrc) { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - var src = attributes.src; // Set the block's src from the edit component's state, and switch off - // the editing UI. - - if (newSrc !== src) { - // Check if there's an embed block that handles this URL. - var embedBlock = Object(util["a" /* createUpgradedEmbedBlock */])({ - attributes: { - url: newSrc - } - }); - - if (undefined !== embedBlock) { - this.props.onReplace(embedBlock); - return; - } - - setAttributes({ - src: newSrc, - id: undefined - }); - } - - this.setState({ - editing: false - }); - } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - } - }, { - key: "getAutoplayHelp", - value: function getAutoplayHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('Note: Autoplaying audio may cause usability issues for some visitors.') : null; - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var _this$props$attribute = this.props.attributes, - autoplay = _this$props$attribute.autoplay, - caption = _this$props$attribute.caption, - loop = _this$props$attribute.loop, - preload = _this$props$attribute.preload, - src = _this$props$attribute.src; - var _this$props3 = this.props, - setAttributes = _this$props3.setAttributes, - isSelected = _this$props3.isSelected, - className = _this$props3.className, - noticeUI = _this$props3.noticeUI; - var editing = this.state.editing; - - var switchToEditing = function switchToEditing() { - _this4.setState({ - editing: true - }); - }; - - var onSelectAudio = function onSelectAudio(media) { - if (!media || !media.url) { - // in this case there was an error and we should continue in the editing state - // previous attributes should be removed because they may be temporary blob urls - setAttributes({ - src: undefined, - id: undefined - }); - switchToEditing(); - return; - } // sets the block's attribute and updates the edit component from the - // selected media, then switches off the editing UI - - - setAttributes({ - src: media.url, - id: media.id - }); - - _this4.setState({ - src: media.url, - editing: false - }); - }; - - if (editing) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: icon - }), - className: className, - onSelect: onSelectAudio, - onSelectURL: this.onSelectURL, - accept: "audio/*", - allowedTypes: ALLOWED_MEDIA_TYPES, - value: this.props.attributes, - notices: noticeUI, - onError: this.onUploadError - }); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-icon-button components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit audio'), - onClick: switchToEditing, - icon: "edit" - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Audio Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Autoplay'), - onChange: this.toggleAttribute('autoplay'), - checked: autoplay, - help: this.getAutoplayHelp - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Loop'), - onChange: this.toggleAttribute('loop'), - checked: loop - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Preload'), - value: undefined !== preload ? preload : 'none' // `undefined` is required for the preload attribute to be unset. - , - onChange: function onChange(value) { - return setAttributes({ - preload: 'none' !== value ? value : undefined - }); - }, - options: [{ - value: 'auto', - label: Object(external_this_wp_i18n_["__"])('Auto') - }, { - value: 'metadata', - label: Object(external_this_wp_i18n_["__"])('Metadata') - }, { - value: 'none', - label: Object(external_this_wp_i18n_["__"])('None') - }] - }))), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("audio", { - controls: "controls", - src: src - })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - onChange: function onChange(value) { - return setAttributes({ - caption: value - }); - }, - inlineToolbar: true - }))); - } - }]); - - return AudioEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - var _getSettings = getSettings(), - __experimentalMediaUpload = _getSettings.__experimentalMediaUpload; - - return { - mediaUpload: __experimentalMediaUpload - }; -}), external_this_wp_components_["withNotices"]])(edit_AudioEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/save.js - - -/** - * WordPress dependencies - */ - -function save(_ref) { - var attributes = _ref.attributes; - var autoplay = attributes.autoplay, - caption = attributes.caption, - loop = attributes.loop, - preload = attributes.preload, - src = attributes.src; - return Object(external_this_wp_element_["createElement"])("figure", null, Object(external_this_wp_element_["createElement"])("audio", { - controls: "controls", - src: src, - autoPlay: autoplay, - loop: loop, - preload: preload - }), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/transforms.js -/** - * WordPress dependencies - */ - - -var transforms = { - from: [{ - type: 'files', - isMatch: function isMatch(files) { - return files.length === 1 && files[0].type.indexOf('audio/') === 0; - }, - transform: function transform(files) { - var file = files[0]; // We don't need to upload the media directly here - // It's already done as part of the `componentDidMount` - // in the audio block - - var block = Object(external_this_wp_blocks_["createBlock"])('core/audio', { - src: Object(external_this_wp_blob_["createBlobURL"])(file) - }); - return block; - } - }, { - type: 'shortcode', - tag: 'audio', - attributes: { - src: { - type: 'string', - shortcode: function shortcode(_ref) { - var src = _ref.named.src; - return src; - } - }, - loop: { - type: 'string', - shortcode: function shortcode(_ref2) { - var loop = _ref2.named.loop; - return loop; - } - }, - autoplay: { - type: 'string', - shortcode: function shortcode(_ref3) { - var autoplay = _ref3.named.autoplay; - return autoplay; - } - }, - preload: { - type: 'string', - shortcode: function shortcode(_ref4) { - var preload = _ref4.named.preload; - return preload; - } - } - } - }] -}; -/* harmony default export */ var audio_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return audio_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/audio", - category: "common", - attributes: { - src: { - type: "string", - source: "attribute", - selector: "audio", - attribute: "src" - }, - caption: { - type: "string", - source: "html", - selector: "figcaption" - }, - id: { - type: "number" - }, - autoplay: { - type: "boolean", - source: "attribute", - selector: "audio", - attribute: "autoplay" - }, - loop: { - type: "boolean", - source: "attribute", - selector: "audio", - attribute: "loop" - }, - preload: { - type: "string", - source: "attribute", - selector: "audio", - attribute: "preload" - } - } -}; - - -var audio_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Audio'), - description: Object(external_this_wp_i18n_["__"])('Embed a simple audio player.'), - icon: icon, - transforms: audio_transforms, - supports: { - align: true - }, - edit: edit, - save: save -}; - - -/***/ }), -/* 261 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/edit.js - - -/** - * WordPress dependencies - */ - - - - - -var edit_ShortcodeEdit = function ShortcodeEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - instanceId = _ref.instanceId; - var inputId = "blocks-shortcode-input-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-shortcode components-placeholder" - }, Object(external_this_wp_element_["createElement"])("label", { - htmlFor: inputId, - className: "components-placeholder__label" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dashicon"], { - icon: "shortcode" - }), Object(external_this_wp_i18n_["__"])('Shortcode')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { - className: "input-control", - id: inputId, - value: attributes.text, - placeholder: Object(external_this_wp_i18n_["__"])('Write shortcode here…'), - onChange: function onChange(text) { - return setAttributes({ - text: text - }); - } - })); -}; - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["withInstanceId"])(edit_ShortcodeEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/save.js - - -/** - * WordPress dependencies - */ - -function save(_ref) { - var attributes = _ref.attributes; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.text); -} - -// EXTERNAL MODULE: external {"this":["wp","autop"]} -var external_this_wp_autop_ = __webpack_require__(72); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/transforms.js -/** - * WordPress dependencies - */ - -var transforms = { - from: [{ - type: 'shortcode', - // Per "Shortcode names should be all lowercase and use all - // letters, but numbers and underscores should work fine too. - // Be wary of using hyphens (dashes), you'll be better off not - // using them." in https://codex.wordpress.org/Shortcode_API - // Require that the first character be a letter. This notably - // prevents footnote markings ([1]) from being caught as - // shortcodes. - tag: '[a-z][a-z0-9_-]*', - attributes: { - text: { - type: 'string', - shortcode: function shortcode(attrs, _ref) { - var content = _ref.content; - return Object(external_this_wp_autop_["removep"])(Object(external_this_wp_autop_["autop"])(content)); - } - } - }, - priority: 20 - }] -}; -/* harmony default export */ var shortcode_transforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return shortcode_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - - -var shortcode_name = 'core/shortcode'; -var settings = { - title: Object(external_this_wp_i18n_["__"])('Shortcode'), - description: Object(external_this_wp_i18n_["__"])('Insert additional custom elements with a WordPress shortcode.'), - icon: icon, - category: 'widgets', - transforms: shortcode_transforms, - supports: { - customClassName: false, - className: false, - html: false - }, - edit: edit, - save: save -}; - - -/***/ }), -/* 262 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(37); -var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/edit.js - - -/** - * WordPress dependencies - */ - - - -function SubheadEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - className = _ref.className; - var align = attributes.align, - content = attributes.content, - placeholder = attributes.placeholder; - external_this_wp_deprecated_default()('The Subheading block', { - alternative: 'the Paragraph block', - plugin: 'Gutenberg' - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { - value: align, - onChange: function onChange(nextAlign) { - setAttributes({ - align: nextAlign - }); - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "p", - value: content, - onChange: function onChange(nextContent) { - setAttributes({ - content: nextContent - }); - }, - style: { - textAlign: align - }, - className: className, - placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write subheading…') - })); -} - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/save.js - - -/** - * WordPress dependencies - */ - -function save(_ref) { - var attributes = _ref.attributes; - var align = attributes.align, - content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "p", - style: { - textAlign: align - }, - value: content - }); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/tranforms.js -/** - * WordPress dependencies - */ - -var transforms = { - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', attributes); - } - }] -}; -/* harmony default export */ var tranforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return subhead_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/subhead", - category: "common", - attributes: { - align: { - type: "string" - }, - content: { - type: "string", - source: "html", - selector: "p" - } - } -}; - - -var subhead_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Subheading (deprecated)'), - description: Object(external_this_wp_i18n_["__"])('This block is deprecated. Please use the Paragraph block instead.'), - icon: icon, - supports: { - // Hide from inserter as this block is deprecated. - inserter: false, - multiple: false - }, - transforms: tranforms, - edit: SubheadEdit, - save: save -}; - - -/***/ }), -/* 263 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(35); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js -var util = __webpack_require__(61); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/edit.js - - - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - - -var ALLOWED_MEDIA_TYPES = ['video']; -var VIDEO_POSTER_ALLOWED_MEDIA_TYPES = ['image']; - -var edit_VideoEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(VideoEdit, _Component); - - function VideoEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, VideoEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(VideoEdit).apply(this, arguments)); // edit component has its own src in the state so it can be edited - // without setting the actual value outside of the edit UI - - _this.state = { - editing: !_this.props.attributes.src - }; - _this.videoPlayer = Object(external_this_wp_element_["createRef"])(); - _this.posterImageButton = Object(external_this_wp_element_["createRef"])(); - _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSelectPoster = _this.onSelectPoster.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onRemovePoster = _this.onRemovePoster.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(VideoEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - mediaUpload = _this$props.mediaUpload, - noticeOperations = _this$props.noticeOperations, - setAttributes = _this$props.setAttributes; - var id = attributes.id, - _attributes$src = attributes.src, - src = _attributes$src === void 0 ? '' : _attributes$src; - - if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(src); - - if (file) { - mediaUpload({ - filesList: [file], - onFileChange: function onFileChange(_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), - url = _ref2[0].url; - - setAttributes({ - src: url - }); - }, - onError: function onError(message) { - _this2.setState({ - editing: true - }); - - noticeOperations.createErrorNotice(message); - }, - allowedTypes: ALLOWED_MEDIA_TYPES - }); - } - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this.props.attributes.poster !== prevProps.attributes.poster) { - this.videoPlayer.current.load(); - } - } - }, { - key: "toggleAttribute", - value: function toggleAttribute(attribute) { - var _this3 = this; - - return function (newValue) { - _this3.props.setAttributes(Object(defineProperty["a" /* default */])({}, attribute, newValue)); - }; - } - }, { - key: "onSelectURL", - value: function onSelectURL(newSrc) { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - var src = attributes.src; // Set the block's src from the edit component's state, and switch off - // the editing UI. - - if (newSrc !== src) { - // Check if there's an embed block that handles this URL. - var embedBlock = Object(util["a" /* createUpgradedEmbedBlock */])({ - attributes: { - url: newSrc - } - }); - - if (undefined !== embedBlock) { - this.props.onReplace(embedBlock); - return; - } - - setAttributes({ - src: newSrc, - id: undefined - }); - } - - this.setState({ - editing: false - }); - } - }, { - key: "onSelectPoster", - value: function onSelectPoster(image) { - var setAttributes = this.props.setAttributes; - setAttributes({ - poster: image.url - }); - } - }, { - key: "onRemovePoster", - value: function onRemovePoster() { - var setAttributes = this.props.setAttributes; - setAttributes({ - poster: '' - }); // Move focus back to the Media Upload button. - - this.posterImageButton.current.focus(); - } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.removeAllNotices(); - noticeOperations.createErrorNotice(message); - } - }, { - key: "getAutoplayHelp", - value: function getAutoplayHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('Note: Autoplaying videos may cause usability issues for some visitors.') : null; - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var _this$props$attribute = this.props.attributes, - autoplay = _this$props$attribute.autoplay, - caption = _this$props$attribute.caption, - controls = _this$props$attribute.controls, - loop = _this$props$attribute.loop, - muted = _this$props$attribute.muted, - playsInline = _this$props$attribute.playsInline, - poster = _this$props$attribute.poster, - preload = _this$props$attribute.preload, - src = _this$props$attribute.src; - var _this$props3 = this.props, - className = _this$props3.className, - instanceId = _this$props3.instanceId, - isSelected = _this$props3.isSelected, - noticeUI = _this$props3.noticeUI, - setAttributes = _this$props3.setAttributes; - var editing = this.state.editing; - - var switchToEditing = function switchToEditing() { - _this4.setState({ - editing: true - }); - }; - - var onSelectVideo = function onSelectVideo(media) { - if (!media || !media.url) { - // in this case there was an error and we should continue in the editing state - // previous attributes should be removed because they may be temporary blob urls - setAttributes({ - src: undefined, - id: undefined - }); - switchToEditing(); - return; - } // sets the block's attribute and updates the edit component from the - // selected media, then switches off the editing UI - - - setAttributes({ - src: media.url, - id: media.id - }); - - _this4.setState({ - src: media.url, - editing: false - }); - }; - - if (editing) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { - icon: icon - }), - className: className, - onSelect: onSelectVideo, - onSelectURL: this.onSelectURL, - accept: "video/*", - allowedTypes: ALLOWED_MEDIA_TYPES, - value: this.props.attributes, - notices: noticeUI, - onError: this.onUploadError - }); - } - - var videoPosterDescription = "video-block__poster-image-description-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-icon-button components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit video'), - onClick: switchToEditing, - icon: "edit" - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Video Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Autoplay'), - onChange: this.toggleAttribute('autoplay'), - checked: autoplay, - help: this.getAutoplayHelp - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Loop'), - onChange: this.toggleAttribute('loop'), - checked: loop - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Muted'), - onChange: this.toggleAttribute('muted'), - checked: muted - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Playback Controls'), - onChange: this.toggleAttribute('controls'), - checked: controls - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Play inline'), - onChange: this.toggleAttribute('playsInline'), - checked: playsInline - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Preload'), - value: preload, - onChange: function onChange(value) { - return setAttributes({ - preload: value - }); - }, - options: [{ - value: 'auto', - label: Object(external_this_wp_i18n_["__"])('Auto') - }, { - value: 'metadata', - label: Object(external_this_wp_i18n_["__"])('Metadata') - }, { - value: 'none', - label: Object(external_this_wp_i18n_["__"])('None') - }] - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - className: "editor-video-poster-control" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"].VisualLabel, null, Object(external_this_wp_i18n_["__"])('Poster Image')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { - title: Object(external_this_wp_i18n_["__"])('Select Poster Image'), - onSelect: this.onSelectPoster, - allowedTypes: VIDEO_POSTER_ALLOWED_MEDIA_TYPES, - render: function render(_ref3) { - var open = _ref3.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isDefault: true, - onClick: open, - ref: _this4.posterImageButton, - "aria-describedby": videoPosterDescription - }, !_this4.props.attributes.poster ? Object(external_this_wp_i18n_["__"])('Select Poster Image') : Object(external_this_wp_i18n_["__"])('Replace image')); - } - }), Object(external_this_wp_element_["createElement"])("p", { - id: videoPosterDescription, - hidden: true - }, this.props.attributes.poster ? Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('The current poster image url is %s'), this.props.attributes.poster) : Object(external_this_wp_i18n_["__"])('There is no poster image currently selected')), !!this.props.attributes.poster && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - onClick: this.onRemovePoster, - isLink: true, - isDestructive: true - }, Object(external_this_wp_i18n_["__"])('Remove Poster Image')))))), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("video", { - controls: controls, - poster: poster, - src: src, - ref: this.videoPlayer - })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - onChange: function onChange(value) { - return setAttributes({ - caption: value - }); - }, - inlineToolbar: true - }))); - } - }]); - - return VideoEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - var _getSettings = getSettings(), - __experimentalMediaUpload = _getSettings.__experimentalMediaUpload; - - return { - mediaUpload: __experimentalMediaUpload - }; -}), external_this_wp_components_["withNotices"], external_this_wp_compose_["withInstanceId"]])(edit_VideoEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/save.js - - -/** - * WordPress dependencies - */ - -function save(_ref) { - var attributes = _ref.attributes; - var autoplay = attributes.autoplay, - caption = attributes.caption, - controls = attributes.controls, - loop = attributes.loop, - muted = attributes.muted, - poster = attributes.poster, - preload = attributes.preload, - src = attributes.src, - playsInline = attributes.playsInline; - return Object(external_this_wp_element_["createElement"])("figure", null, src && Object(external_this_wp_element_["createElement"])("video", { - autoPlay: autoplay, - controls: controls, - loop: loop, - muted: muted, - poster: poster, - preload: preload !== 'metadata' ? preload : undefined, - src: src, - playsInline: playsInline - }), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/tranforms.js -/** - * WordPress dependencies - */ - - -var transforms = { - from: [{ - type: 'files', - isMatch: function isMatch(files) { - return files.length === 1 && files[0].type.indexOf('video/') === 0; - }, - transform: function transform(files) { - var file = files[0]; // We don't need to upload the media directly here - // It's already done as part of the `componentDidMount` - // in the video block - - var block = Object(external_this_wp_blocks_["createBlock"])('core/video', { - src: Object(external_this_wp_blob_["createBlobURL"])(file) - }); - return block; - } - }, { - type: 'shortcode', - tag: 'video', - attributes: { - src: { - type: 'string', - shortcode: function shortcode(_ref) { - var _ref$named = _ref.named, - src = _ref$named.src, - mp4 = _ref$named.mp4, - m4v = _ref$named.m4v, - webm = _ref$named.webm, - ogv = _ref$named.ogv, - flv = _ref$named.flv; - return src || mp4 || m4v || webm || ogv || flv; - } - }, - poster: { - type: 'string', - shortcode: function shortcode(_ref2) { - var poster = _ref2.named.poster; - return poster; - } - }, - loop: { - type: 'string', - shortcode: function shortcode(_ref3) { - var loop = _ref3.named.loop; - return loop; - } - }, - autoplay: { - type: 'string', - shortcode: function shortcode(_ref4) { - var autoplay = _ref4.named.autoplay; - return autoplay; - } - }, - preload: { - type: 'string', - shortcode: function shortcode(_ref5) { - var preload = _ref5.named.preload; - return preload; - } - } - } - }] -}; -/* harmony default export */ var tranforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return video_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/video", - category: "common", - attributes: { - autoplay: { - type: "boolean", - source: "attribute", - selector: "video", - attribute: "autoplay" - }, - caption: { - type: "string", - source: "html", - selector: "figcaption" - }, - controls: { - type: "boolean", - source: "attribute", - selector: "video", - attribute: "controls", - "default": true - }, - id: { - type: "number" - }, - loop: { - type: "boolean", - source: "attribute", - selector: "video", - attribute: "loop" - }, - muted: { - type: "boolean", - source: "attribute", - selector: "video", - attribute: "muted" - }, - poster: { - type: "string", - source: "attribute", - selector: "video", - attribute: "poster" - }, - preload: { - type: "string", - source: "attribute", - selector: "video", - attribute: "preload", - "default": "metadata" - }, - src: { - type: "string", - source: "attribute", - selector: "video", - attribute: "src" - }, - playsInline: { - type: "boolean", - source: "attribute", - selector: "video", - attribute: "playsinline" - } - } -}; - - -var video_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Video'), - description: Object(external_this_wp_i18n_["__"])('Embed a video from your media library or upload a new one.'), - icon: icon, - keywords: [Object(external_this_wp_i18n_["__"])('movie')], - transforms: tranforms, - supports: { - align: true - }, - edit: edit, - save: save -}; - - -/***/ }), -/* 264 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(17); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/columns/utils.js -var utils = __webpack_require__(57); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/edit.js - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - -function ColumnEdit(_ref) { - var attributes = _ref.attributes, - className = _ref.className, - updateAlignment = _ref.updateAlignment, - updateWidth = _ref.updateWidth, - hasChildBlocks = _ref.hasChildBlocks; - var verticalAlignment = attributes.verticalAlignment, - width = attributes.width; - var classes = classnames_default()(className, 'block-core-columns', Object(defineProperty["a" /* default */])({}, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); - return Object(external_this_wp_element_["createElement"])("div", { - className: classes - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockVerticalAlignmentToolbar"], { - onChange: updateAlignment, - value: verticalAlignment - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Column Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Percentage width'), - value: width || '', - onChange: updateWidth, - min: 0, - max: 100, - required: true, - allowReset: true - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - templateLock: false, - renderAppender: hasChildBlocks ? undefined : function () { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender, null); - } - })); -} - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var clientId = ownProps.clientId; - - var _select = select('core/block-editor'), - getBlockOrder = _select.getBlockOrder; - - return { - hasChildBlocks: getBlockOrder(clientId).length > 0 - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, registry) { - return { - updateAlignment: function updateAlignment(verticalAlignment) { - var clientId = ownProps.clientId, - setAttributes = ownProps.setAttributes; - - var _dispatch = dispatch('core/block-editor'), - updateBlockAttributes = _dispatch.updateBlockAttributes; - - var _registry$select = registry.select('core/block-editor'), - getBlockRootClientId = _registry$select.getBlockRootClientId; // Update own alignment. - - - setAttributes({ - verticalAlignment: verticalAlignment - }); // Reset Parent Columns Block - - var rootClientId = getBlockRootClientId(clientId); - updateBlockAttributes(rootClientId, { - verticalAlignment: null - }); - }, - updateWidth: function updateWidth(width) { - var clientId = ownProps.clientId; - - var _dispatch2 = dispatch('core/block-editor'), - updateBlockAttributes = _dispatch2.updateBlockAttributes; - - var _registry$select2 = registry.select('core/block-editor'), - getBlockRootClientId = _registry$select2.getBlockRootClientId, - getBlocks = _registry$select2.getBlocks; // Constrain or expand siblings to account for gain or loss of - // total columns area. - - - var columns = getBlocks(getBlockRootClientId(clientId)); - var adjacentColumns = Object(utils["a" /* getAdjacentBlocks */])(columns, clientId); // The occupied width is calculated as the sum of the new width - // and the total width of blocks _not_ in the adjacent set. - - var occupiedWidth = width + Object(utils["f" /* getTotalColumnsWidth */])(Object(external_lodash_["difference"])(columns, [Object(external_lodash_["find"])(columns, { - clientId: clientId - })].concat(Object(toConsumableArray["a" /* default */])(adjacentColumns)))); // Compute _all_ next column widths, in case the updated column - // is in the middle of a set of columns which don't yet have - // any explicit widths assigned (include updates to those not - // part of the adjacent blocks). - - var nextColumnWidths = Object(objectSpread["a" /* default */])({}, Object(utils["b" /* getColumnWidths */])(columns, columns.length), Object(defineProperty["a" /* default */])({}, clientId, Object(utils["h" /* toWidthPrecision */])(width)), Object(utils["e" /* getRedistributedColumnWidths */])(adjacentColumns, 100 - occupiedWidth, columns.length)); - - Object(external_lodash_["forEach"])(nextColumnWidths, function (nextColumnWidth, columnClientId) { - updateBlockAttributes(columnClientId, { - width: nextColumnWidth - }); - }); - } - }; -}))(ColumnEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/save.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save(_ref) { - var attributes = _ref.attributes; - var verticalAlignment = attributes.verticalAlignment, - width = attributes.width; - var wrapperClasses = classnames_default()(Object(defineProperty["a" /* default */])({}, "is-vertically-aligned-".concat(verticalAlignment), verticalAlignment)); - var style; - - if (Number.isFinite(width)) { - style = { - flexBasis: width + '%' - }; - } - - return Object(external_this_wp_element_["createElement"])("div", { - className: wrapperClasses, - style: style - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return column_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/column", - category: "common", - attributes: { - verticalAlignment: { - type: "string" - }, - width: { - type: "number", - min: 0, - max: 100 - } - } -}; - -var column_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Column'), - parent: ['core/columns'], - icon: icon, - description: Object(external_this_wp_i18n_["__"])('A single column within a columns block.'), - supports: { - inserter: false, - reusable: false, - html: false - }, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var width = attributes.width; - - if (Number.isFinite(width)) { - return { - style: { - flexBasis: width + '%' - } - }; - } - }, - edit: edit, - save: save -}; - - -/***/ }), -/* 265 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(17); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(37); -var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/edit.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -function TextColumnsEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - className = _ref.className; - var width = attributes.width, - content = attributes.content, - columns = attributes.columns; - external_this_wp_deprecated_default()('The Text Columns block', { - alternative: 'the Columns block', - plugin: 'Gutenberg' - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { - value: width, - onChange: function onChange(nextWidth) { - return setAttributes({ - width: nextWidth - }); - }, - controls: ['center', 'wide', 'full'] - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: function onChange(value) { - return setAttributes({ - columns: value - }); - }, - min: 2, - max: 4, - required: true - }))), Object(external_this_wp_element_["createElement"])("div", { - className: "".concat(className, " align").concat(width, " columns-").concat(columns) - }, Object(external_lodash_["times"])(columns, function (index) { - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-column", - key: "column-".concat(index) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - tagName: "p", - value: Object(external_lodash_["get"])(content, [index, 'children']), - onChange: function onChange(nextContent) { - setAttributes({ - content: [].concat(Object(toConsumableArray["a" /* default */])(content.slice(0, index)), [{ - children: nextContent - }], Object(toConsumableArray["a" /* default */])(content.slice(index + 1))) - }); - }, - placeholder: Object(external_this_wp_i18n_["__"])('New Column') - })); - }))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/save.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function save(_ref) { - var attributes = _ref.attributes; - var width = attributes.width, - content = attributes.content, - columns = attributes.columns; - return Object(external_this_wp_element_["createElement"])("div", { - className: "align".concat(width, " columns-").concat(columns) - }, Object(external_lodash_["times"])(columns, function (index) { - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-column", - key: "column-".concat(index) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { - tagName: "p", - value: Object(external_lodash_["get"])(content, [index, 'children']) - })); - })); -} - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/tranforms.js -/** - * WordPress dependencies - */ - -var transforms = { - to: [{ - type: 'block', - blocks: ['core/columns'], - transform: function transform(_ref) { - var className = _ref.className, - columns = _ref.columns, - content = _ref.content, - width = _ref.width; - return Object(external_this_wp_blocks_["createBlock"])('core/columns', { - align: 'wide' === width || 'full' === width ? width : undefined, - className: className, - columns: columns - }, content.map(function (_ref2) { - var children = _ref2.children; - return Object(external_this_wp_blocks_["createBlock"])('core/column', {}, [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: children - })]); - })); - } - }] -}; -/* harmony default export */ var tranforms = (transforms); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return text_columns_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var metadata = { - name: "core/text-columns", - icon: "columns", - category: "layout", - attributes: { - content: { - type: "array", - source: "query", - selector: "p", - query: { - children: { - type: "string", - source: "html" - } - }, - "default": [{}, {}] - }, - columns: { - type: "number", - "default": 2 - }, - width: { - type: "string" - } - } -}; - - -var text_columns_name = metadata.name; - -var settings = { - // Disable insertion as this block is deprecated and ultimately replaced by the Columns block. - supports: { - inserter: false - }, - title: Object(external_this_wp_i18n_["__"])('Text Columns (deprecated)'), - description: Object(external_this_wp_i18n_["__"])('This block is deprecated. Please use the Columns block instead.'), - transforms: tranforms, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var width = attributes.width; - - if ('wide' === width || 'full' === width) { - return { - 'data-align': width - }; - } - }, - edit: TextColumnsEdit, - save: save -}; - - -/***/ }), -/* 266 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/edit.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -var edit_SpacerEdit = function SpacerEdit(_ref) { - var attributes = _ref.attributes, - isSelected = _ref.isSelected, - setAttributes = _ref.setAttributes, - instanceId = _ref.instanceId, - onResizeStart = _ref.onResizeStart, - _onResizeStop = _ref.onResizeStop; - var height = attributes.height; - var id = "block-spacer-height-input-".concat(instanceId); - - var _useState = Object(external_this_wp_element_["useState"])(height), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - inputHeightValue = _useState2[0], - setInputHeightValue = _useState2[1]; - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { - className: classnames_default()('block-library-spacer__resize-container', { - 'is-selected': isSelected - }), - size: { - height: height - }, - minHeight: "20", - enable: { - top: false, - right: false, - bottom: true, - left: false, - topRight: false, - bottomRight: false, - bottomLeft: false, - topLeft: false - }, - onResizeStart: onResizeStart, - onResizeStop: function onResizeStop(event, direction, elt, delta) { - _onResizeStop(); - - var spacerHeight = parseInt(height + delta.height, 10); - setAttributes({ - height: spacerHeight - }); - setInputHeightValue(spacerHeight); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Spacer Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - label: Object(external_this_wp_i18n_["__"])('Height in pixels'), - id: id - }, Object(external_this_wp_element_["createElement"])("input", { - type: "number", - id: id, - onChange: function onChange(event) { - var spacerHeight = parseInt(event.target.value, 10); - setInputHeightValue(spacerHeight); - - if (isNaN(spacerHeight)) { - // Set spacer height to default size and input box to empty string - setInputHeightValue(''); - spacerHeight = 100; - } else if (spacerHeight < 20) { - // Set spacer height to minimum size - spacerHeight = 20; - } - - setAttributes({ - height: spacerHeight - }); - }, - value: inputHeightValue, - min: "20", - step: "10" - }))))); -}; - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - toggleSelection = _dispatch.toggleSelection; - - return { - onResizeStart: function onResizeStart() { - return toggleSelection(false); - }, - onResizeStop: function onResizeStop() { - return toggleSelection(true); - } - }; -}), external_this_wp_compose_["withInstanceId"]])(edit_SpacerEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7" -})))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/save.js - -function save(_ref) { - var attributes = _ref.attributes; - return Object(external_this_wp_element_["createElement"])("div", { - style: { - height: attributes.height - }, - "aria-hidden": true - }); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return spacer_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var metadata = { - name: "core/spacer", - category: "layout", - attributes: { - height: { - type: "number", - "default": 100 - } - } -}; - -var spacer_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Spacer'), - description: Object(external_this_wp_i18n_["__"])('Add white space between blocks and customize its height.'), - icon: icon, - edit: edit, - save: save -}; - - -/***/ }), -/* 267 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu-item/menu-item-actions.js - - -/** - * WordPress dependencies - */ - - - - - -function MenuItemActions(_ref) { - var destination = _ref.destination, - moveLeft = _ref.moveLeft, - moveRight = _ref.moveRight, - moveToEnd = _ref.moveToEnd, - moveToStart = _ref.moveToStart, - onEditLableClicked = _ref.onEditLableClicked, - remove = _ref.remove; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - icon: "admin-links" - }, destination), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: onEditLableClicked, - icon: "edit" - }, Object(external_this_wp_i18n_["__"])('Edit label text')), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-navigation-menu-item__separator" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: moveToStart, - icon: "arrow-up-alt2" - }, Object(external_this_wp_i18n_["__"])('Move to start')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: moveLeft, - icon: "arrow-left-alt2" - }, Object(external_this_wp_i18n_["__"])('Move left')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: moveRight, - icon: "arrow-right-alt2" - }, Object(external_this_wp_i18n_["__"])('Move right')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: moveToEnd, - icon: "arrow-down-alt2" - }, Object(external_this_wp_i18n_["__"])('Move to end')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - icon: "arrow-left-alt2" - }, Object(external_this_wp_i18n_["__"])('Nest underneath…')), Object(external_this_wp_element_["createElement"])("div", { - className: "navigation-menu-item__separator" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: remove, - icon: "trash" - }, Object(external_this_wp_i18n_["__"])('Remove from menu'))); -} - -/* harmony default export */ var menu_item_actions = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2, _ref3) { - var clientId = _ref2.clientId; - var select = _ref3.select; - - var _select = select('core/block-editor'), - getBlockOrder = _select.getBlockOrder, - getBlockRootClientId = _select.getBlockRootClientId; - - var parentID = getBlockRootClientId(clientId); - - var _dispatch = dispatch('core/block-editor'), - moveBlocksDown = _dispatch.moveBlocksDown, - moveBlocksUp = _dispatch.moveBlocksUp, - moveBlockToPosition = _dispatch.moveBlockToPosition, - removeBlocks = _dispatch.removeBlocks; - - return { - moveToStart: function moveToStart() { - moveBlockToPosition(clientId, parentID, parentID, 0); - }, - moveRight: function moveRight() { - moveBlocksDown(clientId, parentID); - }, - moveLeft: function moveLeft() { - moveBlocksUp(clientId, parentID); - }, - moveToEnd: function moveToEnd() { - moveBlockToPosition(clientId, parentID, parentID, getBlockOrder(parentID).length - 1); - }, - remove: function remove() { - removeBlocks(clientId); - } - }; -})])(MenuItemActions)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu-item/edit.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -var POPOVER_PROPS = { - noArrow: true -}; - -function NavigationMenuItemEdit(_ref) { - var attributes = _ref.attributes, - clientId = _ref.clientId, - isSelected = _ref.isSelected, - setAttributes = _ref.setAttributes; - var plainTextRef = Object(external_this_wp_element_["useRef"])(null); - var onEditLableClicked = Object(external_this_wp_element_["useCallback"])(function (onClose) { - return function () { - onClose(); - Object(external_lodash_["invoke"])(plainTextRef, ['current', 'textarea', 'focus']); - }; - }, [plainTextRef]); - var content; - - if (isSelected) { - content = Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-navigation-menu-item__edit-container" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { - ref: plainTextRef, - className: "wp-block-navigation-menu-item__field", - value: attributes.label, - onChange: function onChange(label) { - return setAttributes({ - label: label - }); - }, - "aria-label": Object(external_this_wp_i18n_["__"])('Navigation Label'), - maxRows: 1 - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - contentClassName: "wp-block-navigation-menu-item__dropdown-content", - position: "bottom left", - popoverProps: POPOVER_PROPS, - renderToggle: function renderToggle(_ref2) { - var isOpen = _ref2.isOpen, - onToggle = _ref2.onToggle; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: isOpen ? 'arrow-up-alt2' : 'arrow-down-alt2', - label: Object(external_this_wp_i18n_["__"])('More options'), - onClick: onToggle, - "aria-expanded": isOpen - }); - }, - renderContent: function renderContent(_ref3) { - var onClose = _ref3.onClose; - return Object(external_this_wp_element_["createElement"])(menu_item_actions, { - clientId: clientId, - destination: attributes.destination, - onEditLableClicked: onEditLableClicked(onClose) - }); - } - })); - } else { - content = attributes.label; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Menu Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - checked: attributes.opensInNewTab, - onChange: function onChange(opensInNewTab) { - setAttributes({ - opensInNewTab: opensInNewTab - }); - }, - label: Object(external_this_wp_i18n_["__"])('Open in new tab') - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { - value: attributes.description || '', - onChange: function onChange(description) { - setAttributes({ - description: description - }); - }, - label: Object(external_this_wp_i18n_["__"])('Description') - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('SEO Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - value: attributes.title || '', - onChange: function onChange(title) { - setAttributes({ - title: title - }); - }, - label: Object(external_this_wp_i18n_["__"])('Title Attribute'), - help: Object(external_this_wp_i18n_["__"])('Provide more context about where the link goes.') - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - checked: attributes.nofollow, - onChange: function onChange(nofollow) { - setAttributes({ - nofollow: nofollow - }); - }, - label: Object(external_this_wp_i18n_["__"])('Add nofollow to menu item'), - help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_i18n_["__"])('Don\'t let search engines follow this link.'), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], { - className: "wp-block-navigation-menu-item__nofollow-external-link", - href: Object(external_this_wp_i18n_["__"])('https://codex.wordpress.org/Nofollow') - }, Object(external_this_wp_i18n_["__"])('What\'s this?'))) - }))), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-navigation-menu-item" - }, content, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - allowedBlocks: ['core/navigation-menu-item'], - renderAppender: external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender - }))); -} - -/* harmony default export */ var edit = (NavigationMenuItemEdit); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu-item/save.js - - -/** - * WordPress dependencies - */ - -function save() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu-item/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return navigation_menu_item_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - -var metadata = { - name: "core/navigation-menu-item", - category: "layout", - attributes: { - label: { - type: "string" - }, - destination: { - type: "string" - }, - nofollow: { - type: "boolean", - "default": false - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - opensInNewTab: { - type: "boolean", - "default": false - } - } -}; - - -var navigation_menu_item_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Menu Item (Experimental)'), - parent: ['core/navigation-menu'], - icon: 'admin-links', - description: Object(external_this_wp_i18n_["__"])('Add a page, link, or other item to your Navigation Menu.'), - edit: edit, - save: save -}; - - -/***/ }), -/* 268 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit-panel/index.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - -var edit_panel_ReusableBlockEditPanel = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ReusableBlockEditPanel, _Component); - - function ReusableBlockEditPanel() { - var _this; - - Object(classCallCheck["a" /* default */])(this, ReusableBlockEditPanel); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ReusableBlockEditPanel).apply(this, arguments)); - _this.titleField = Object(external_this_wp_element_["createRef"])(); - _this.editButton = Object(external_this_wp_element_["createRef"])(); - _this.handleFormSubmit = _this.handleFormSubmit.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.handleTitleChange = _this.handleTitleChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.handleTitleKeyDown = _this.handleTitleKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(ReusableBlockEditPanel, [{ - key: "componentDidMount", - value: function componentDidMount() { - // Select the input text when the form opens. - if (this.props.isEditing && this.titleField.current) { - this.titleField.current.select(); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - // Select the input text only once when the form opens. - if (!prevProps.isEditing && this.props.isEditing) { - this.titleField.current.select(); - } // Move focus back to the Edit button after pressing the Escape key or Save. - - - if ((prevProps.isEditing || prevProps.isSaving) && !this.props.isEditing && !this.props.isSaving) { - this.editButton.current.focus(); - } - } - }, { - key: "handleFormSubmit", - value: function handleFormSubmit(event) { - event.preventDefault(); - this.props.onSave(); - } - }, { - key: "handleTitleChange", - value: function handleTitleChange(event) { - this.props.onChangeTitle(event.target.value); - } - }, { - key: "handleTitleKeyDown", - value: function handleTitleKeyDown(event) { - if (event.keyCode === external_this_wp_keycodes_["ESCAPE"]) { - event.stopPropagation(); - this.props.onCancel(); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - isEditing = _this$props.isEditing, - title = _this$props.title, - isSaving = _this$props.isSaving, - isEditDisabled = _this$props.isEditDisabled, - onEdit = _this$props.onEdit, - instanceId = _this$props.instanceId; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isEditing && !isSaving && Object(external_this_wp_element_["createElement"])("div", { - className: "reusable-block-edit-panel" - }, Object(external_this_wp_element_["createElement"])("b", { - className: "reusable-block-edit-panel__info" - }, title), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - ref: this.editButton, - isLarge: true, - className: "reusable-block-edit-panel__button", - disabled: isEditDisabled, - onClick: onEdit - }, Object(external_this_wp_i18n_["__"])('Edit'))), (isEditing || isSaving) && Object(external_this_wp_element_["createElement"])("form", { - className: "reusable-block-edit-panel", - onSubmit: this.handleFormSubmit - }, Object(external_this_wp_element_["createElement"])("label", { - htmlFor: "reusable-block-edit-panel__title-".concat(instanceId), - className: "reusable-block-edit-panel__label" - }, Object(external_this_wp_i18n_["__"])('Name:')), Object(external_this_wp_element_["createElement"])("input", { - ref: this.titleField, - type: "text", - disabled: isSaving, - className: "reusable-block-edit-panel__title", - value: title, - onChange: this.handleTitleChange, - onKeyDown: this.handleTitleKeyDown, - id: "reusable-block-edit-panel__title-".concat(instanceId) - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - type: "submit", - isLarge: true, - isBusy: isSaving, - disabled: !title || isSaving, - className: "reusable-block-edit-panel__button" - }, Object(external_this_wp_i18n_["__"])('Save')))); - } - }]); - - return ReusableBlockEditPanel; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit_panel = (Object(external_this_wp_compose_["withInstanceId"])(edit_panel_ReusableBlockEditPanel)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/indicator/index.js - - -/** - * WordPress dependencies - */ - - - -function ReusableBlockIndicator(_ref) { - var title = _ref.title; - // translators: %s: title/name of the reusable block - var tooltipText = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Reusable Block: %s'), title); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Tooltip"], { - text: tooltipText - }, Object(external_this_wp_element_["createElement"])("span", { - className: "reusable-block-indicator" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dashicon"], { - icon: "controls-repeat" - }))); -} - -/* harmony default export */ var indicator = (ReusableBlockIndicator); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - - -var edit_ReusableBlockEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ReusableBlockEdit, _Component); - - function ReusableBlockEdit(_ref) { - var _this; - - var reusableBlock = _ref.reusableBlock; - - Object(classCallCheck["a" /* default */])(this, ReusableBlockEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ReusableBlockEdit).apply(this, arguments)); - _this.startEditing = _this.startEditing.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.stopEditing = _this.stopEditing.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setBlocks = _this.setBlocks.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.setTitle = _this.setTitle.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.save = _this.save.bind(Object(assertThisInitialized["a" /* default */])(_this)); - - if (reusableBlock) { - // Start in edit mode when we're working with a newly created reusable block - _this.state = { - isEditing: reusableBlock.isTemporary, - title: reusableBlock.title, - blocks: Object(external_this_wp_blocks_["parse"])(reusableBlock.content) - }; - } else { - // Start in preview mode when we're working with an existing reusable block - _this.state = { - isEditing: false, - title: null, - blocks: [] - }; - } - - return _this; - } - - Object(createClass["a" /* default */])(ReusableBlockEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (!this.props.reusableBlock) { - this.props.fetchReusableBlock(); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (prevProps.reusableBlock !== this.props.reusableBlock && this.state.title === null) { - this.setState({ - title: this.props.reusableBlock.title, - blocks: Object(external_this_wp_blocks_["parse"])(this.props.reusableBlock.content) - }); - } - } - }, { - key: "startEditing", - value: function startEditing() { - var reusableBlock = this.props.reusableBlock; - this.setState({ - isEditing: true, - title: reusableBlock.title, - blocks: Object(external_this_wp_blocks_["parse"])(reusableBlock.content) - }); - } - }, { - key: "stopEditing", - value: function stopEditing() { - this.setState({ - isEditing: false, - title: null, - blocks: [] - }); - } - }, { - key: "setBlocks", - value: function setBlocks(blocks) { - this.setState({ - blocks: blocks - }); - } - }, { - key: "setTitle", - value: function setTitle(title) { - this.setState({ - title: title - }); - } - }, { - key: "save", - value: function save() { - var _this$props = this.props, - onChange = _this$props.onChange, - onSave = _this$props.onSave; - var _this$state = this.state, - blocks = _this$state.blocks, - title = _this$state.title; - var content = Object(external_this_wp_blocks_["serialize"])(blocks); - onChange({ - title: title, - content: content - }); - onSave(); - this.stopEditing(); - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - isSelected = _this$props2.isSelected, - reusableBlock = _this$props2.reusableBlock, - isFetching = _this$props2.isFetching, - isSaving = _this$props2.isSaving, - canUpdateBlock = _this$props2.canUpdateBlock, - settings = _this$props2.settings; - var _this$state2 = this.state, - isEditing = _this$state2.isEditing, - title = _this$state2.title, - blocks = _this$state2.blocks; - - if (!reusableBlock && isFetching) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)); - } - - if (!reusableBlock) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_i18n_["__"])('Block has been deleted or is unavailable.')); - } - - var element = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockEditorProvider"], { - settings: settings, - value: blocks, - onChange: this.setBlocks, - onInput: this.setBlocks - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["WritingFlow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockList"], null))); - - if (!isEditing) { - element = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, element); - } - - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-block__reusable-block-container" - }, (isSelected || isEditing) && Object(external_this_wp_element_["createElement"])(edit_panel, { - isEditing: isEditing, - title: title !== null ? title : reusableBlock.title, - isSaving: isSaving && !reusableBlock.isTemporary, - isEditDisabled: !canUpdateBlock, - onEdit: this.startEditing, - onChangeTitle: this.setTitle, - onSave: this.save, - onCancel: this.stopEditing - }), !isSelected && !isEditing && Object(external_this_wp_element_["createElement"])(indicator, { - title: reusableBlock.title - }), element); - } - }]); - - return ReusableBlockEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core/editor'), - getReusableBlock = _select.__experimentalGetReusableBlock, - isFetchingReusableBlock = _select.__experimentalIsFetchingReusableBlock, - isSavingReusableBlock = _select.__experimentalIsSavingReusableBlock; - - var _select2 = select('core'), - canUser = _select2.canUser; - - var _select3 = select('core/block-editor'), - __experimentalGetParsedReusableBlock = _select3.__experimentalGetParsedReusableBlock, - getSettings = _select3.getSettings; - - var ref = ownProps.attributes.ref; - var reusableBlock = getReusableBlock(ref); - return { - reusableBlock: reusableBlock, - isFetching: isFetchingReusableBlock(ref), - isSaving: isSavingReusableBlock(ref), - blocks: reusableBlock ? __experimentalGetParsedReusableBlock(reusableBlock.id) : null, - canUpdateBlock: !!reusableBlock && !reusableBlock.isTemporary && !!canUser('update', 'blocks', ref), - settings: getSettings() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var _dispatch = dispatch('core/editor'), - fetchReusableBlocks = _dispatch.__experimentalFetchReusableBlocks, - updateReusableBlock = _dispatch.__experimentalUpdateReusableBlock, - saveReusableBlock = _dispatch.__experimentalSaveReusableBlock; - - var ref = ownProps.attributes.ref; - return { - fetchReusableBlock: Object(external_lodash_["partial"])(fetchReusableBlocks, ref), - onChange: Object(external_lodash_["partial"])(updateReusableBlock, ref), - onSave: Object(external_lodash_["partial"])(saveReusableBlock, ref) - }; -})])(edit_ReusableBlockEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return block_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return block_settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var block_name = 'core/block'; -var block_settings = { - title: Object(external_this_wp_i18n_["__"])('Reusable Block'), - category: 'reusable', - description: Object(external_this_wp_i18n_["__"])('Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used.'), - supports: { - customClassName: false, - html: false, - inserter: false - }, - edit: edit -}; - - -/***/ }), -/* 269 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu/use-block-navigator.js - - - -/** - * WordPress dependencies - */ - - - - - -var NavigatorIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24", - width: "20", - height: "20" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z" -})); -function useBlockNavigator(clientId) { - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - isNavigationListOpen = _useState2[0], - setIsNavigationListOpen = _useState2[1]; - - var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { - var _select = select('core/block-editor'), - getSelectedBlockClientId = _select.getSelectedBlockClientId, - getBlock = _select.getBlock; - - return { - block: getBlock(clientId), - selectedBlockClientId: getSelectedBlockClientId() - }; - }, [clientId]), - block = _useSelect.block, - selectedBlockClientId = _useSelect.selectedBlockClientId; - - var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'), - selectBlock = _useDispatch.selectBlock; - - var navigatorToolbarButton = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Open block navigator'), - onClick: function onClick() { - return setIsNavigationListOpen(true); - }, - icon: NavigatorIcon - }); - var navigatorModal = isNavigationListOpen && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], { - title: Object(external_this_wp_i18n_["__"])('Block Navigator'), - closeLabel: Object(external_this_wp_i18n_["__"])('Close'), - onRequestClose: function onRequestClose() { - setIsNavigationListOpen(false); - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockNavigationList"], { - blocks: [block], - selectedBlockClientId: selectedBlockClientId, - selectBlock: selectBlock, - showNestedBlocks: true - })); - return { - navigatorToolbarButton: navigatorToolbarButton, - navigatorModal: navigatorModal - }; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu/edit.js - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -function NavigationMenu(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - clientId = _ref.clientId; - - var _useBlockNavigator = useBlockNavigator(clientId), - navigatorToolbarButton = _useBlockNavigator.navigatorToolbarButton, - navigatorModal = _useBlockNavigator.navigatorModal; - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, navigatorToolbarButton)), navigatorModal, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Menu Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CheckboxControl"], { - value: attributes.automaticallyAdd, - onChange: function onChange(automaticallyAdd) { - setAttributes({ - automaticallyAdd: automaticallyAdd - }); - }, - label: Object(external_this_wp_i18n_["__"])('Automatically add new pages'), - help: Object(external_this_wp_i18n_["__"])('Automatically add new top level pages to this menu.') - }))), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-navigation-menu" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - allowedBlocks: ['core/navigation-menu-item'], - renderAppender: external_this_wp_blockEditor_["InnerBlocks"].ButtonBlockAppender - }))); -} - -/* harmony default export */ var edit = (NavigationMenu); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu/save.js - - -/** - * WordPress dependencies - */ - -function save() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation-menu/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return navigation_menu_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var navigation_menu_name = 'core/navigation-menu'; -var settings = { - title: Object(external_this_wp_i18n_["__"])('Navigation Menu (Experimental)'), - icon: 'menu', - description: Object(external_this_wp_i18n_["__"])('Add a navigation menu to your site.'), - keywords: [Object(external_this_wp_i18n_["__"])('menu'), Object(external_this_wp_i18n_["__"])('navigation'), Object(external_this_wp_i18n_["__"])('links')], - supports: { - align: ['wide', 'full'], - anchor: true, - html: false, - inserter: true - }, - edit: edit, - save: save -}; - - -/***/ }), -/* 270 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/edit.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -var edit_CategoriesEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(CategoriesEdit, _Component); - - function CategoriesEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, CategoriesEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CategoriesEdit).apply(this, arguments)); - _this.toggleDisplayAsDropdown = _this.toggleDisplayAsDropdown.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.toggleShowPostCounts = _this.toggleShowPostCounts.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.toggleShowHierarchy = _this.toggleShowHierarchy.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(CategoriesEdit, [{ - key: "toggleDisplayAsDropdown", - value: function toggleDisplayAsDropdown() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var displayAsDropdown = attributes.displayAsDropdown; - setAttributes({ - displayAsDropdown: !displayAsDropdown - }); - } - }, { - key: "toggleShowPostCounts", - value: function toggleShowPostCounts() { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - var showPostCounts = attributes.showPostCounts; - setAttributes({ - showPostCounts: !showPostCounts - }); - } - }, { - key: "toggleShowHierarchy", - value: function toggleShowHierarchy() { - var _this$props3 = this.props, - attributes = _this$props3.attributes, - setAttributes = _this$props3.setAttributes; - var showHierarchy = attributes.showHierarchy; - setAttributes({ - showHierarchy: !showHierarchy - }); - } - }, { - key: "getCategories", - value: function getCategories() { - var parentId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - var categories = this.props.categories; - - if (!categories || !categories.length) { - return []; - } - - if (parentId === null) { - return categories; - } - - return categories.filter(function (category) { - return category.parent === parentId; - }); - } - }, { - key: "getCategoryListClassName", - value: function getCategoryListClassName(level) { - return "wp-block-categories__list wp-block-categories__list-level-".concat(level); - } - }, { - key: "renderCategoryName", - value: function renderCategoryName(category) { - if (!category.name) { - return Object(external_this_wp_i18n_["__"])('(Untitled)'); - } - - return Object(external_lodash_["unescape"])(category.name).trim(); - } - }, { - key: "renderCategoryList", - value: function renderCategoryList() { - var _this2 = this; - - var showHierarchy = this.props.attributes.showHierarchy; - var parentId = showHierarchy ? 0 : null; - var categories = this.getCategories(parentId); - return Object(external_this_wp_element_["createElement"])("ul", { - className: this.getCategoryListClassName(0) - }, categories.map(function (category) { - return _this2.renderCategoryListItem(category, 0); - })); - } - }, { - key: "renderCategoryListItem", - value: function renderCategoryListItem(category, level) { - var _this3 = this; - - var _this$props$attribute = this.props.attributes, - showHierarchy = _this$props$attribute.showHierarchy, - showPostCounts = _this$props$attribute.showPostCounts; - var childCategories = this.getCategories(category.id); - return Object(external_this_wp_element_["createElement"])("li", { - key: category.id - }, Object(external_this_wp_element_["createElement"])("a", { - href: category.link, - target: "_blank", - rel: "noreferrer noopener" - }, this.renderCategoryName(category)), showPostCounts && Object(external_this_wp_element_["createElement"])("span", { - className: "wp-block-categories__post-count" - }, ' ', "(", category.count, ")"), showHierarchy && !!childCategories.length && Object(external_this_wp_element_["createElement"])("ul", { - className: this.getCategoryListClassName(level + 1) - }, childCategories.map(function (childCategory) { - return _this3.renderCategoryListItem(childCategory, level + 1); - }))); - } - }, { - key: "renderCategoryDropdown", - value: function renderCategoryDropdown() { - var _this4 = this; - - var instanceId = this.props.instanceId; - var showHierarchy = this.props.attributes.showHierarchy; - var parentId = showHierarchy ? 0 : null; - var categories = this.getCategories(parentId); - var selectId = "blocks-category-select-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("label", { - htmlFor: selectId, - className: "screen-reader-text" - }, Object(external_this_wp_i18n_["__"])('Categories')), Object(external_this_wp_element_["createElement"])("select", { - id: selectId, - className: "wp-block-categories__dropdown" - }, categories.map(function (category) { - return _this4.renderCategoryDropdownItem(category, 0); - }))); - } - }, { - key: "renderCategoryDropdownItem", - value: function renderCategoryDropdownItem(category, level) { - var _this5 = this; - - var _this$props$attribute2 = this.props.attributes, - showHierarchy = _this$props$attribute2.showHierarchy, - showPostCounts = _this$props$attribute2.showPostCounts; - var childCategories = this.getCategories(category.id); - return [Object(external_this_wp_element_["createElement"])("option", { - key: category.id - }, Object(external_lodash_["times"])(level * 3, function () { - return '\xa0'; - }), this.renderCategoryName(category), !!showPostCounts ? " (".concat(category.count, ")") : ''), showHierarchy && !!childCategories.length && childCategories.map(function (childCategory) { - return _this5.renderCategoryDropdownItem(childCategory, level + 1); - })]; - } - }, { - key: "render", - value: function render() { - var _this$props4 = this.props, - attributes = _this$props4.attributes, - isRequesting = _this$props4.isRequesting; - var displayAsDropdown = attributes.displayAsDropdown, - showHierarchy = attributes.showHierarchy, - showPostCounts = attributes.showPostCounts; - var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Categories Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display as Dropdown'), - checked: displayAsDropdown, - onChange: this.toggleDisplayAsDropdown - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show Hierarchy'), - checked: showHierarchy, - onChange: this.toggleShowHierarchy - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show Post Counts'), - checked: showPostCounts, - onChange: this.toggleShowPostCounts - }))); - - if (isRequesting) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: "admin-post", - label: Object(external_this_wp_i18n_["__"])('Categories') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])("div", { - className: this.props.className - }, displayAsDropdown ? this.renderCategoryDropdown() : this.renderCategoryList())); - } - }]); - - return CategoriesEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core'), - getEntityRecords = _select.getEntityRecords; - - var _select2 = select('core/data'), - isResolving = _select2.isResolving; - - var query = { - per_page: -1, - hide_empty: true - }; - return { - categories: getEntityRecords('taxonomy', 'category', query), - isRequesting: isResolving('core', 'getEntityRecords', ['taxonomy', 'category', query]) - }; -}), external_this_wp_compose_["withInstanceId"])(edit_CategoriesEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return categories_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var categories_name = 'core/categories'; -var settings = { - title: Object(external_this_wp_i18n_["__"])('Categories'), - description: Object(external_this_wp_i18n_["__"])('Display a list of all categories.'), - icon: icon, - category: 'widgets', - supports: { - align: true, - html: false - }, - edit: edit -}; - - -/***/ }), -/* 271 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "moment" -var external_moment_ = __webpack_require__(29); -var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_); - -// EXTERNAL MODULE: ./node_modules/memize/index.js -var memize = __webpack_require__(45); -var memize_default = /*#__PURE__*/__webpack_require__.n(memize); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} -var external_this_wp_serverSideRender_ = __webpack_require__(55); -var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/edit.js - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - -var edit_CalendarEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(CalendarEdit, _Component); - - function CalendarEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, CalendarEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CalendarEdit).apply(this, arguments)); - _this.getYearMonth = memize_default()(_this.getYearMonth.bind(Object(assertThisInitialized["a" /* default */])(_this)), { - maxSize: 1 - }); - _this.getServerSideAttributes = memize_default()(_this.getServerSideAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this)), { - maxSize: 1 - }); - return _this; - } - - Object(createClass["a" /* default */])(CalendarEdit, [{ - key: "getYearMonth", - value: function getYearMonth(date) { - if (!date) { - return {}; - } - - var momentDate = external_moment_default()(date); - return { - year: momentDate.year(), - month: momentDate.month() + 1 - }; - } - }, { - key: "getServerSideAttributes", - value: function getServerSideAttributes(attributes, date) { - return Object(objectSpread["a" /* default */])({}, attributes, this.getYearMonth(date)); - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { - block: "core/calendar", - attributes: this.getServerSideAttributes(this.props.attributes, this.props.date) - })); - } - }]); - - return CalendarEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_data_["withSelect"])(function (select) { - var coreEditorSelect = select('core/editor'); - - if (!coreEditorSelect) { - return; - } - - var getEditedPostAttribute = coreEditorSelect.getEditedPostAttribute; - var postType = getEditedPostAttribute('type'); // Dates are used to overwrite year and month used on the calendar. - // This overwrite should only happen for 'post' post types. - // For other post types the calendar always displays the current month. - - return { - date: postType === 'post' ? getEditedPostAttribute('date') : undefined - }; -})(edit_CalendarEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z" -})))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return calendar_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var calendar_name = 'core/calendar'; -var settings = { - title: Object(external_this_wp_i18n_["__"])('Calendar'), - description: Object(external_this_wp_i18n_["__"])('A calendar of your site’s posts.'), - icon: icon, - category: 'widgets', - keywords: [Object(external_this_wp_i18n_["__"])('posts'), Object(external_this_wp_i18n_["__"])('archive')], - supports: { - align: true - }, - example: {}, - edit: edit -}; - - -/***/ }), -/* 272 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(18); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(32); -var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); - -// EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(26); - -// EXTERNAL MODULE: external {"this":["wp","date"]} -var external_this_wp_date_ = __webpack_require__(56); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/edit.js - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - - - -/** - * Module Constants - */ - -var CATEGORIES_LIST_QUERY = { - per_page: -1 -}; -var MAX_POSTS_COLUMNS = 6; - -var edit_LatestPostsEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(LatestPostsEdit, _Component); - - function LatestPostsEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, LatestPostsEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LatestPostsEdit).apply(this, arguments)); - _this.state = { - categoriesList: [] - }; - return _this; - } - - Object(createClass["a" /* default */])(LatestPostsEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - this.isStillMounted = true; - this.fetchRequest = external_this_wp_apiFetch_default()({ - path: Object(external_this_wp_url_["addQueryArgs"])("/wp/v2/categories", CATEGORIES_LIST_QUERY) - }).then(function (categoriesList) { - if (_this2.isStillMounted) { - _this2.setState({ - categoriesList: categoriesList - }); - } - }).catch(function () { - if (_this2.isStillMounted) { - _this2.setState({ - categoriesList: [] - }); - } - }); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.isStillMounted = false; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes, - latestPosts = _this$props.latestPosts; - var categoriesList = this.state.categoriesList; - var displayPostContentRadio = attributes.displayPostContentRadio, - displayPostContent = attributes.displayPostContent, - displayPostDate = attributes.displayPostDate, - postLayout = attributes.postLayout, - columns = attributes.columns, - order = attributes.order, - orderBy = attributes.orderBy, - categories = attributes.categories, - postsToShow = attributes.postsToShow, - excerptLength = attributes.excerptLength; - var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Post Content Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Post Content'), - checked: displayPostContent, - onChange: function onChange(value) { - return setAttributes({ - displayPostContent: value - }); - } - }), displayPostContent && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RadioControl"], { - label: "Show:", - selected: displayPostContentRadio, - options: [{ - label: 'Excerpt', - value: 'excerpt' - }, { - label: 'Full Post', - value: 'full_post' - }], - onChange: function onChange(value) { - return setAttributes({ - displayPostContentRadio: value - }); - } - }), displayPostContent && displayPostContentRadio === 'excerpt' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Max number of words in excerpt'), - value: excerptLength, - onChange: function onChange(value) { - return setAttributes({ - excerptLength: value - }); - }, - min: 10, - max: 100 - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Post Meta Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display post date'), - checked: displayPostDate, - onChange: function onChange(value) { - return setAttributes({ - displayPostDate: value - }); - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Sorting and Filtering') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["QueryControls"], Object(esm_extends["a" /* default */])({ - order: order, - orderBy: orderBy - }, { - numberOfItems: postsToShow, - categoriesList: categoriesList, - selectedCategoryId: categories, - onOrderChange: function onOrderChange(value) { - return setAttributes({ - order: value - }); - }, - onOrderByChange: function onOrderByChange(value) { - return setAttributes({ - orderBy: value - }); - }, - onCategoryChange: function onCategoryChange(value) { - return setAttributes({ - categories: '' !== value ? value : undefined - }); - }, - onNumberOfItemsChange: function onNumberOfItemsChange(value) { - return setAttributes({ - postsToShow: value - }); - } - })), postLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: function onChange(value) { - return setAttributes({ - columns: value - }); - }, - min: 2, - max: !hasPosts ? MAX_POSTS_COLUMNS : Math.min(MAX_POSTS_COLUMNS, latestPosts.length), - required: true - }))); - var hasPosts = Array.isArray(latestPosts) && latestPosts.length; - - if (!hasPosts) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: "admin-post", - label: Object(external_this_wp_i18n_["__"])('Latest Posts') - }, !Array.isArray(latestPosts) ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null) : Object(external_this_wp_i18n_["__"])('No posts found.'))); - } // Removing posts from display should be instant. - - - var displayPosts = latestPosts.length > postsToShow ? latestPosts.slice(0, postsToShow) : latestPosts; - var layoutControls = [{ - icon: 'list-view', - title: Object(external_this_wp_i18n_["__"])('List view'), - onClick: function onClick() { - return setAttributes({ - postLayout: 'list' - }); - }, - isActive: postLayout === 'list' - }, { - icon: 'grid-view', - title: Object(external_this_wp_i18n_["__"])('Grid view'), - onClick: function onClick() { - return setAttributes({ - postLayout: 'grid' - }); - }, - isActive: postLayout === 'grid' - }]; - - var dateFormat = Object(external_this_wp_date_["__experimentalGetSettings"])().formats.date; - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: layoutControls - })), Object(external_this_wp_element_["createElement"])("ul", { - className: classnames_default()(this.props.className, Object(defineProperty["a" /* default */])({ - 'wp-block-latest-posts__list': true, - 'is-grid': postLayout === 'grid', - 'has-dates': displayPostDate - }, "columns-".concat(columns), postLayout === 'grid')) - }, displayPosts.map(function (post, i) { - var titleTrimmed = post.title.rendered.trim(); - var excerpt = post.excerpt.rendered; - - if (post.excerpt.raw === '') { - excerpt = post.content.raw; - } - - var excerptElement = document.createElement('div'); - excerptElement.innerHTML = excerpt; - excerpt = excerptElement.textContent || excerptElement.innerText || ''; - return Object(external_this_wp_element_["createElement"])("li", { - key: i - }, Object(external_this_wp_element_["createElement"])("a", { - href: post.link, - target: "_blank", - rel: "noreferrer noopener" - }, titleTrimmed ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, titleTrimmed) : Object(external_this_wp_i18n_["__"])('(no title)')), displayPostDate && post.date_gmt && Object(external_this_wp_element_["createElement"])("time", { - dateTime: Object(external_this_wp_date_["format"])('c', post.date_gmt), - className: "wp-block-latest-posts__post-date" - }, Object(external_this_wp_date_["dateI18n"])(dateFormat, post.date_gmt)), displayPostContent && displayPostContentRadio === 'excerpt' && Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-latest-posts__post-excerpt" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], { - key: "html" - }, excerptLength < excerpt.trim().split(' ').length ? excerpt.trim().split(' ', excerptLength).join(' ') + ' ... ' + Object(external_this_wp_i18n_["__"])('Read more') + '' : excerpt.trim().split(' ', excerptLength).join(' '))), displayPostContent && displayPostContentRadio === 'full_post' && Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-latest-posts__post-full-content" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], { - key: "html" - }, post.content.raw.trim()))); - }))); - } - }]); - - return LatestPostsEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _props$attributes = props.attributes, - postsToShow = _props$attributes.postsToShow, - order = _props$attributes.order, - orderBy = _props$attributes.orderBy, - categories = _props$attributes.categories; - - var _select = select('core'), - getEntityRecords = _select.getEntityRecords; - - var latestPostsQuery = Object(external_lodash_["pickBy"])({ - categories: categories, - order: order, - orderby: orderBy, - per_page: postsToShow - }, function (value) { - return !Object(external_lodash_["isUndefined"])(value); - }); - return { - latestPosts: getEntityRecords('postType', 'post', latestPostsQuery) - }; -})(edit_LatestPostsEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "11", - y: "7", - width: "6", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "11", - y: "11", - width: "6", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "11", - y: "15", - width: "6", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "7", - y: "7", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "7", - y: "11", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "7", - y: "15", - width: "2", - height: "2" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return latest_posts_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var latest_posts_name = 'core/latest-posts'; -var settings = { - title: Object(external_this_wp_i18n_["__"])('Latest Posts'), - description: Object(external_this_wp_i18n_["__"])('Display a list of your most recent posts.'), - icon: icon, - category: 'widgets', - keywords: [Object(external_this_wp_i18n_["__"])('recent posts')], - supports: { - align: true, - html: false - }, - edit: edit -}; - - -/***/ }), -/* 273 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} -var external_this_wp_serverSideRender_ = __webpack_require__(55); -var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/edit.js - - - - - - - - - -/** - * WordPress dependencies - */ - - - - - -/** - * Minimum number of comments a user can show using this block. - * - * @type {number} - */ - -var MIN_COMMENTS = 1; -/** - * Maximum number of comments a user can show using this block. - * - * @type {number} - */ - -var MAX_COMMENTS = 100; - -var edit_LatestComments = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(LatestComments, _Component); - - function LatestComments() { - var _this; - - Object(classCallCheck["a" /* default */])(this, LatestComments); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LatestComments).apply(this, arguments)); - _this.setCommentsToShow = _this.setCommentsToShow.bind(Object(assertThisInitialized["a" /* default */])(_this)); // Create toggles for each attribute; we create them here rather than - // passing `this.createToggleAttribute( 'displayAvatar' )` directly to - // `onChange` to avoid re-renders. - - _this.toggleDisplayAvatar = _this.createToggleAttribute('displayAvatar'); - _this.toggleDisplayDate = _this.createToggleAttribute('displayDate'); - _this.toggleDisplayExcerpt = _this.createToggleAttribute('displayExcerpt'); - return _this; - } - - Object(createClass["a" /* default */])(LatestComments, [{ - key: "createToggleAttribute", - value: function createToggleAttribute(propName) { - var _this2 = this; - - return function () { - var value = _this2.props.attributes[propName]; - var setAttributes = _this2.props.setAttributes; - setAttributes(Object(defineProperty["a" /* default */])({}, propName, !value)); - }; - } - }, { - key: "setCommentsToShow", - value: function setCommentsToShow(commentsToShow) { - this.props.setAttributes({ - commentsToShow: commentsToShow - }); - } - }, { - key: "render", - value: function render() { - var _this$props$attribute = this.props.attributes, - commentsToShow = _this$props$attribute.commentsToShow, - displayAvatar = _this$props$attribute.displayAvatar, - displayDate = _this$props$attribute.displayDate, - displayExcerpt = _this$props$attribute.displayExcerpt; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Latest Comments Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display Avatar'), - checked: displayAvatar, - onChange: this.toggleDisplayAvatar - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display Date'), - checked: displayDate, - onChange: this.toggleDisplayDate - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display Excerpt'), - checked: displayExcerpt, - onChange: this.toggleDisplayExcerpt - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Number of Comments'), - value: commentsToShow, - onChange: this.setCommentsToShow, - min: MIN_COMMENTS, - max: MAX_COMMENTS, - required: true - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { - block: "core/latest-comments", - attributes: this.props.attributes - }))); - } - }]); - - return LatestComments; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (edit_LatestComments); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z" -})))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return latest_comments_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var latest_comments_name = 'core/latest-comments'; -var settings = { - title: Object(external_this_wp_i18n_["__"])('Latest Comments'), - description: Object(external_this_wp_i18n_["__"])('Display a list of your most recent comments.'), - icon: icon, - category: 'widgets', - keywords: [Object(external_this_wp_i18n_["__"])('recent comments')], - supports: { - align: true, - html: false - }, - edit: edit -}; - - -/***/ }), -/* 274 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/social-list.js + 40 modules -var social_list = __webpack_require__(80); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/edit.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var ALLOWED_BLOCKS = Object.keys(social_list["a" /* default */]).map(function (site) { - return 'core/social-link-' + site; -}); // Template contains the links that show when start. - -var TEMPLATE = [['core/social-link-wordpress', { - url: 'https://wordpress.org' -}], ['core/social-link-facebook'], ['core/social-link-twitter'], ['core/social-link-instagram'], ['core/social-link-linkedin'], ['core/social-link-youtube']]; -var edit_SocialLinksEdit = function SocialLinksEdit(_ref) { - var className = _ref.className; - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { - allowedBlocks: ALLOWED_BLOCKS, - templateLock: false, - template: TEMPLATE - })); -}; -/* harmony default export */ var edit = (edit_SocialLinksEdit); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/save.js - - -/** - * WordPress dependencies - */ - -function save(_ref) { - var className = _ref.className; - return Object(external_this_wp_element_["createElement"])("ul", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null)); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-links/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "metadata", function() { return metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return social_links_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var metadata = { - name: "core/social-links", - category: "widgets", - icon: "share", - attributes: {} -}; - -var social_links_name = metadata.name; - -var settings = { - title: Object(external_this_wp_i18n_["__"])('Social links'), - description: Object(external_this_wp_i18n_["__"])('Create a block of links to your social media or external sites'), - supports: { - align: ['left', 'center', 'right'] - }, - example: { - innerBlocks: [{ - name: 'core/social-link-wordpress', - attributes: { - url: 'https://wordpress.org' - } - }, { - name: 'core/social-link-facebook', - attributes: { - url: 'https://www.facebook.com/WordPress/' - } - }, { - name: 'core/social-link-twitter', - attributes: { - url: 'https://twitter.com/WordPress' - } - }] - }, - styles: [{ - name: 'default', - label: Object(external_this_wp_i18n_["__"])('Default'), - isDefault: true - }, { - name: 'logos-only', - label: Object(external_this_wp_i18n_["__"])('Logos Only') - }, { - name: 'pill-shape', - label: Object(external_this_wp_i18n_["__"])('Pill Shape') - }], - edit: edit, - save: save -}; - - -/***/ }), -/* 275 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} -var external_this_wp_serverSideRender_ = __webpack_require__(55); -var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/edit.js - - -/** - * WordPress dependencies - */ - - - - -function ArchivesEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes; - var showPostCounts = attributes.showPostCounts, - displayAsDropdown = attributes.displayAsDropdown; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Archives Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display as Dropdown'), - checked: displayAsDropdown, - onChange: function onChange() { - return setAttributes({ - displayAsDropdown: !displayAsDropdown - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show Post Counts'), - checked: showPostCounts, - onChange: function onChange() { - return setAttributes({ - showPostCounts: !showPostCounts - }); - } - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { - block: "core/archives", - attributes: attributes - }))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return archives_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var archives_name = 'core/archives'; -var settings = { - title: Object(external_this_wp_i18n_["__"])('Archives'), - description: Object(external_this_wp_i18n_["__"])('Display a monthly archive of your posts.'), - icon: icon, - category: 'widgets', - supports: { - align: true, - html: false - }, - edit: ArchivesEdit -}; - - -/***/ }), -/* 276 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(17); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} -var external_this_wp_serverSideRender_ = __webpack_require__(55); -var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/tag-cloud/edit.js - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -var edit_TagCloudEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(TagCloudEdit, _Component); - - function TagCloudEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, TagCloudEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(TagCloudEdit).apply(this, arguments)); - _this.state = { - editing: !_this.props.attributes.taxonomy - }; - _this.setTaxonomy = _this.setTaxonomy.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.toggleShowTagCounts = _this.toggleShowTagCounts.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(TagCloudEdit, [{ - key: "getTaxonomyOptions", - value: function getTaxonomyOptions() { - var taxonomies = Object(external_lodash_["filter"])(this.props.taxonomies, 'show_cloud'); - var selectOption = { - label: Object(external_this_wp_i18n_["__"])('- Select -'), - value: '', - disabled: true - }; - var taxonomyOptions = Object(external_lodash_["map"])(taxonomies, function (taxonomy) { - return { - value: taxonomy.slug, - label: taxonomy.name - }; - }); - return [selectOption].concat(Object(toConsumableArray["a" /* default */])(taxonomyOptions)); - } - }, { - key: "setTaxonomy", - value: function setTaxonomy(taxonomy) { - var setAttributes = this.props.setAttributes; - setAttributes({ - taxonomy: taxonomy - }); - } - }, { - key: "toggleShowTagCounts", - value: function toggleShowTagCounts() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var showTagCounts = attributes.showTagCounts; - setAttributes({ - showTagCounts: !showTagCounts - }); - } - }, { - key: "render", - value: function render() { - var attributes = this.props.attributes; - var taxonomy = attributes.taxonomy, - showTagCounts = attributes.showTagCounts; - var taxonomyOptions = this.getTaxonomyOptions(); - var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Tag Cloud Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Taxonomy'), - options: taxonomyOptions, - value: taxonomy, - onChange: this.setTaxonomy - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show post counts'), - checked: showTagCounts, - onChange: this.toggleShowTagCounts - }))); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { - key: "tag-cloud", - block: "core/tag-cloud", - attributes: attributes - })); - } - }]); - - return TagCloudEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (Object(external_this_wp_data_["withSelect"])(function (select) { - return { - taxonomies: select('core').getTaxonomies() - }; -})(edit_TagCloudEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/tag-cloud/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return tag_cloud_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var tag_cloud_name = 'core/tag-cloud'; -var settings = { - title: Object(external_this_wp_i18n_["__"])('Tag Cloud'), - description: Object(external_this_wp_i18n_["__"])('A cloud of your most used tags.'), - icon: 'tag', - category: 'widgets', - supports: { - html: false, - align: true - }, - edit: edit -}; - - -/***/ }), -/* 277 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/social-list.js + 40 modules -var social_list = __webpack_require__(80); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/edit.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -var edit_SocialLinkEdit = function SocialLinkEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - isSelected = _ref.isSelected; - var url = attributes.url, - site = attributes.site; - - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - showURLPopover = _useState2[0], - setPopover = _useState2[1]; - - var classes = classnames_default()('wp-social-link', 'wp-social-link-' + site, { - 'wp-social-link__is-incomplete': !url - }); // Import icon. - - var IconComponent = Object(social_list["b" /* getIconBySite */])(site); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: classes, - onClick: function onClick() { - return setPopover(true); - } - }, Object(external_this_wp_element_["createElement"])(IconComponent, null), isSelected && showURLPopover && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"], { - onClose: function onClose() { - return setPopover(false); - } - }, Object(external_this_wp_element_["createElement"])("form", { - className: "block-editor-url-popover__link-editor", - onSubmit: function onSubmit(event) { - event.preventDefault(); - setPopover(false); - } - }, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-url-input block-editor-url-input" - }, Object(external_this_wp_element_["createElement"])("input", { - type: "text", - value: url, - onChange: function onChange(event) { - return setAttributes({ - url: event.target.value - }); - }, - placeholder: Object(external_this_wp_i18n_["__"])('Enter Address') - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: "editor-break", - label: Object(external_this_wp_i18n_["__"])('Apply'), - type: "submit" - })))); -}; - -/* harmony default export */ var edit = (edit_SocialLinkEdit); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return sites; }); - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var commonAttributes = { - category: 'widgets', - parent: ['core/social-links'], - supports: { - reusable: false, - html: false - }, - edit: edit -}; // Create individual blocks out of each site in social-list.js - -var sites = Object.keys(social_list["a" /* default */]).map(function (site) { - var siteParams = social_list["a" /* default */][site]; - return { - name: 'core/social-link-' + site, - settings: Object(objectSpread["a" /* default */])({ - title: siteParams.name, - icon: siteParams.icon, - description: Object(external_this_wp_i18n_["__"])('Link to ' + siteParams.name) - }, commonAttributes, { - attributes: { - url: { - type: 'string' - }, - site: { - type: 'string', - default: site - } - } - }) - }; -}); - - -/***/ }), -/* 278 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/edit.js - - -/** - * WordPress dependencies - */ - - -function SearchEdit(_ref) { - var className = _ref.className, - attributes = _ref.attributes, - setAttributes = _ref.setAttributes; - var label = attributes.label, - placeholder = attributes.placeholder, - buttonText = attributes.buttonText; - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - wrapperClassName: "wp-block-search__label", - "aria-label": Object(external_this_wp_i18n_["__"])('Label text'), - placeholder: Object(external_this_wp_i18n_["__"])('Add label…'), - withoutInteractiveFormatting: true, - value: label, - onChange: function onChange(html) { - return setAttributes({ - label: html - }); - } - }), Object(external_this_wp_element_["createElement"])("input", { - className: "wp-block-search__input", - "aria-label": Object(external_this_wp_i18n_["__"])('Optional placeholder text') // We hide the placeholder field's placeholder when there is a value. This - // stops screen readers from reading the placeholder field's placeholder - // which is confusing. - , - placeholder: placeholder ? undefined : Object(external_this_wp_i18n_["__"])('Optional placeholder…'), - value: placeholder, - onChange: function onChange(event) { - return setAttributes({ - placeholder: event.target.value - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { - wrapperClassName: "wp-block-search__button", - className: "wp-block-search__button-rich-text", - "aria-label": Object(external_this_wp_i18n_["__"])('Button text'), - placeholder: Object(external_this_wp_i18n_["__"])('Add button text…'), - withoutInteractiveFormatting: true, - value: buttonText, - onChange: function onChange(html) { - return setAttributes({ - buttonText: html - }); - } - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return search_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var search_name = 'core/search'; -var settings = { - title: Object(external_this_wp_i18n_["__"])('Search'), - description: Object(external_this_wp_i18n_["__"])('Help visitors find your content.'), - icon: 'search', - category: 'widgets', - keywords: [Object(external_this_wp_i18n_["__"])('find')], - supports: { - align: true - }, - example: {}, - edit: SearchEdit -}; - - -/***/ }), -/* 279 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(5); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} -var external_this_wp_serverSideRender_ = __webpack_require__(55); -var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/edit.js - - - - - - - - - -/** - * WordPress dependencies - */ - - - - - -var DEFAULT_MIN_ITEMS = 1; -var DEFAULT_MAX_ITEMS = 10; - -var edit_RSSEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(RSSEdit, _Component); - - function RSSEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, RSSEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(RSSEdit).apply(this, arguments)); - _this.state = { - editing: !_this.props.attributes.feedURL - }; - _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(_this)); - _this.onSubmitURL = _this.onSubmitURL.bind(Object(assertThisInitialized["a" /* default */])(_this)); - return _this; - } - - Object(createClass["a" /* default */])(RSSEdit, [{ - key: "toggleAttribute", - value: function toggleAttribute(propName) { - var _this2 = this; - - return function () { - var value = _this2.props.attributes[propName]; - var setAttributes = _this2.props.setAttributes; - setAttributes(Object(defineProperty["a" /* default */])({}, propName, !value)); - }; - } - }, { - key: "onSubmitURL", - value: function onSubmitURL(event) { - event.preventDefault(); - var feedURL = this.props.attributes.feedURL; - - if (feedURL) { - this.setState({ - editing: false - }); - } - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var _this$props$attribute = this.props.attributes, - blockLayout = _this$props$attribute.blockLayout, - columns = _this$props$attribute.columns, - displayAuthor = _this$props$attribute.displayAuthor, - displayExcerpt = _this$props$attribute.displayExcerpt, - displayDate = _this$props$attribute.displayDate, - excerptLength = _this$props$attribute.excerptLength, - feedURL = _this$props$attribute.feedURL, - itemsToShow = _this$props$attribute.itemsToShow; - var setAttributes = this.props.setAttributes; - - if (this.state.editing) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: "rss", - label: "RSS" - }, Object(external_this_wp_element_["createElement"])("form", { - onSubmit: this.onSubmitURL - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - placeholder: Object(external_this_wp_i18n_["__"])('Enter URL here…'), - value: feedURL, - onChange: function onChange(value) { - return setAttributes({ - feedURL: value - }); - }, - className: 'components-placeholder__input' - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isLarge: true, - type: "submit" - }, Object(external_this_wp_i18n_["__"])('Use URL')))); - } - - var toolbarControls = [{ - icon: 'edit', - title: Object(external_this_wp_i18n_["__"])('Edit RSS URL'), - onClick: function onClick() { - return _this3.setState({ - editing: true - }); - } - }, { - icon: 'list-view', - title: Object(external_this_wp_i18n_["__"])('List view'), - onClick: function onClick() { - return setAttributes({ - blockLayout: 'list' - }); - }, - isActive: blockLayout === 'list' - }, { - icon: 'grid-view', - title: Object(external_this_wp_i18n_["__"])('Grid view'), - onClick: function onClick() { - return setAttributes({ - blockLayout: 'grid' - }); - }, - isActive: blockLayout === 'grid' - }]; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: toolbarControls - })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('RSS Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Number of items'), - value: itemsToShow, - onChange: function onChange(value) { - return setAttributes({ - itemsToShow: value - }); - }, - min: DEFAULT_MIN_ITEMS, - max: DEFAULT_MAX_ITEMS, - required: true - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display author'), - checked: displayAuthor, - onChange: this.toggleAttribute('displayAuthor') - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display date'), - checked: displayDate, - onChange: this.toggleAttribute('displayDate') - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display excerpt'), - checked: displayExcerpt, - onChange: this.toggleAttribute('displayExcerpt') - }), displayExcerpt && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Max number of words in excerpt'), - value: excerptLength, - onChange: function onChange(value) { - return setAttributes({ - excerptLength: value - }); - }, - min: 10, - max: 100, - required: true - }), blockLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: function onChange(value) { - return setAttributes({ - columns: value - }); - }, - min: 2, - max: 6, - required: true - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, { - block: "core/rss", - attributes: this.props.attributes - }))); - } - }]); - - return RSSEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit = (edit_RSSEdit); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return rss_name; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var rss_name = 'core/rss'; -var settings = { - title: Object(external_this_wp_i18n_["__"])('RSS'), - description: Object(external_this_wp_i18n_["__"])('Display entries from any RSS or Atom feed.'), - icon: 'rss', - category: 'widgets', - keywords: [Object(external_this_wp_i18n_["__"])('atom'), Object(external_this_wp_i18n_["__"])('feed')], - supports: { - align: true, - html: false - }, - example: { - attributes: { - feedURL: 'https://wordpress.org' - } - }, - edit: edit -}; - - -/***/ }), -/* 280 */, -/* 281 */, -/* 282 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerCoreBlocks", function() { return registerCoreBlocks; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__experimentalRegisterExperimentalCoreBlocks", function() { return __experimentalRegisterExperimentalCoreBlocks; }); -/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10); -/* harmony import */ var _wordpress_core_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97); -/* harmony import */ var _wordpress_core_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_core_data__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24); -/* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _paragraph__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(164); -/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(243); -/* harmony import */ var _heading__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(240); -/* harmony import */ var _quote__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(252); -/* harmony import */ var _gallery__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(241); -/* harmony import */ var _archives__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(275); -/* harmony import */ var _audio__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(260); -/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(254); -/* harmony import */ var _calendar__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(271); -/* harmony import */ var _categories__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(270); -/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(250); -/* harmony import */ var _columns__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(257); -/* harmony import */ var _column__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(264); -/* harmony import */ var _cover__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(244); -/* harmony import */ var _embed__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(128); -/* harmony import */ var _file__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(246); -/* harmony import */ var _html__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(253); -/* harmony import */ var _media_text__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(242); -/* harmony import */ var _navigation_menu__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(269); -/* harmony import */ var _navigation_menu_item__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(267); -/* harmony import */ var _latest_comments__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(273); -/* harmony import */ var _latest_posts__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(272); -/* harmony import */ var _legacy_widget__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(248); -/* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(251); -/* harmony import */ var _missing__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(166); -/* harmony import */ var _more__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(255); -/* harmony import */ var _nextpage__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(256); -/* harmony import */ var _preformatted__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(258); -/* harmony import */ var _pullquote__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(249); -/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(268); -/* harmony import */ var _rss__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(279); -/* harmony import */ var _search__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(278); -/* harmony import */ var _group__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(129); -/* harmony import */ var _separator__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(259); -/* harmony import */ var _shortcode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(261); -/* harmony import */ var _spacer__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(266); -/* harmony import */ var _subhead__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(262); -/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(245); -/* harmony import */ var _text_columns__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(265); -/* harmony import */ var _verse__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(247); -/* harmony import */ var _video__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(263); -/* harmony import */ var _tag_cloud__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(276); -/* harmony import */ var _classic__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(165); -/* harmony import */ var _social_links__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(274); -/* harmony import */ var _social_link__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(277); - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -/** - * Function to register an individual block. - * - * @param {Object} block The block to be registered. - * - */ - -var registerBlock = function registerBlock(block) { - if (!block) { - return; - } - - var metadata = block.metadata, - settings = block.settings, - name = block.name; - - if (metadata) { - Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["unstable__bootstrapServerSideBlockDefinitions"])(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({}, name, metadata)); - } - - Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["registerBlockType"])(name, settings); -}; -/** - * Function to register core blocks provided by the block editor. - * - * @example - * ```js - * import { registerCoreBlocks } from '@wordpress/block-library'; - * - * registerCoreBlocks(); - * ``` - */ - - -var registerCoreBlocks = function registerCoreBlocks() { - [// Common blocks are grouped at the top to prioritize their display - // in various contexts — like the inserter and auto-complete components. - _paragraph__WEBPACK_IMPORTED_MODULE_6__, _image__WEBPACK_IMPORTED_MODULE_7__, _heading__WEBPACK_IMPORTED_MODULE_8__, _gallery__WEBPACK_IMPORTED_MODULE_10__, _list__WEBPACK_IMPORTED_MODULE_29__, _quote__WEBPACK_IMPORTED_MODULE_9__, // Register all remaining core blocks. - _shortcode__WEBPACK_IMPORTED_MODULE_40__, _archives__WEBPACK_IMPORTED_MODULE_11__, _audio__WEBPACK_IMPORTED_MODULE_12__, _button__WEBPACK_IMPORTED_MODULE_13__, _calendar__WEBPACK_IMPORTED_MODULE_14__, _categories__WEBPACK_IMPORTED_MODULE_15__, _code__WEBPACK_IMPORTED_MODULE_16__, _columns__WEBPACK_IMPORTED_MODULE_17__, _column__WEBPACK_IMPORTED_MODULE_18__, _cover__WEBPACK_IMPORTED_MODULE_19__, _embed__WEBPACK_IMPORTED_MODULE_20__].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_embed__WEBPACK_IMPORTED_MODULE_20__["common"]), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_embed__WEBPACK_IMPORTED_MODULE_20__["others"]), [_file__WEBPACK_IMPORTED_MODULE_21__, _group__WEBPACK_IMPORTED_MODULE_38__, window.wp && window.wp.oldEditor ? _classic__WEBPACK_IMPORTED_MODULE_48__ : null, // Only add the classic block in WP Context - _html__WEBPACK_IMPORTED_MODULE_22__, _media_text__WEBPACK_IMPORTED_MODULE_23__, _latest_comments__WEBPACK_IMPORTED_MODULE_26__, _latest_posts__WEBPACK_IMPORTED_MODULE_27__, _missing__WEBPACK_IMPORTED_MODULE_30__, _more__WEBPACK_IMPORTED_MODULE_31__, _nextpage__WEBPACK_IMPORTED_MODULE_32__, _preformatted__WEBPACK_IMPORTED_MODULE_33__, _pullquote__WEBPACK_IMPORTED_MODULE_34__, _rss__WEBPACK_IMPORTED_MODULE_36__, _search__WEBPACK_IMPORTED_MODULE_37__, _separator__WEBPACK_IMPORTED_MODULE_39__, _block__WEBPACK_IMPORTED_MODULE_35__, _spacer__WEBPACK_IMPORTED_MODULE_41__, _subhead__WEBPACK_IMPORTED_MODULE_42__, _table__WEBPACK_IMPORTED_MODULE_43__, _tag_cloud__WEBPACK_IMPORTED_MODULE_47__, _text_columns__WEBPACK_IMPORTED_MODULE_44__, _verse__WEBPACK_IMPORTED_MODULE_45__, _video__WEBPACK_IMPORTED_MODULE_46__]).forEach(registerBlock); - Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["setDefaultBlockName"])(_paragraph__WEBPACK_IMPORTED_MODULE_6__["name"]); - - if (window.wp && window.wp.oldEditor) { - Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["setFreeformContentHandlerName"])(_classic__WEBPACK_IMPORTED_MODULE_48__["name"]); - } - - Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["setUnregisteredTypeHandlerName"])(_missing__WEBPACK_IMPORTED_MODULE_30__["name"]); - - if (_group__WEBPACK_IMPORTED_MODULE_38__) { - Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__["setGroupingBlockName"])(_group__WEBPACK_IMPORTED_MODULE_38__["name"]); - } -}; -/** - * Function to register experimental core blocks depending on editor settings. - * - * @param {Object} settings Editor settings. - * - * @example - * ```js - * import { __experimentalRegisterExperimentalCoreBlocks } from '@wordpress/block-library'; - * - * __experimentalRegisterExperimentalCoreBlocks( settings ); - * ``` - */ - -var __experimentalRegisterExperimentalCoreBlocks = process.env.GUTENBERG_PHASE === 2 ? function (settings) { - var __experimentalEnableLegacyWidgetBlock = settings.__experimentalEnableLegacyWidgetBlock, - __experimentalEnableMenuBlock = settings.__experimentalEnableMenuBlock; - [__experimentalEnableLegacyWidgetBlock ? _legacy_widget__WEBPACK_IMPORTED_MODULE_28__ : null, __experimentalEnableMenuBlock ? _navigation_menu__WEBPACK_IMPORTED_MODULE_24__ : null, __experimentalEnableMenuBlock ? _navigation_menu_item__WEBPACK_IMPORTED_MODULE_25__ : null, _social_links__WEBPACK_IMPORTED_MODULE_49__].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_social_link__WEBPACK_IMPORTED_MODULE_50__[/* sites */ "a"])).forEach(registerBlock); -} : undefined; - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(96))) +(function() { module.exports = this["wp"]["blocks"]; }()); /***/ }) -/******/ ]); \ No newline at end of file + +/******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index 7f652d8dc0..601f3b174d 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -1,13 +1,13 @@ -this.wp=this.wp||{},this.wp.blockLibrary=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=282)}([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.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(e){for(var t=1;t= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-u,_=Math.floor,k=String.fromCharCode;function C(e){throw RangeError(j[e])}function w(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+w((e=e.replace(O,".")).split("."),t).join(".")}function x(e){for(var t,n,r=[],a=0,o=e.length;a=55296&&t<=56319&&a65535&&(t+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=k(e)})).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function N(e,t,n){var r=0;for(e=n?_(e/d):e>>1,e+=_(e/t);e>y*b>>1;r+=s)e=_(e/y);return _(r+(y+1)*e/(e+m))}function M(e){var t,n,r,a,o,c,i,m,d,f,v,O=[],j=e.length,y=0,k=p,w=h;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r=128&&C("not-basic"),O.push(e.charCodeAt(r));for(a=n>0?n+1:0;a=j&&C("invalid-input"),((m=(v=e.charCodeAt(a++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s)>=s||m>_((l-y)/c))&&C("overflow"),y+=m*c,!(m<(d=i<=w?u:i>=w+b?b:i-w));i+=s)c>_(l/(f=s-d))&&C("overflow"),c*=f;w=N(y-o,t=O.length+1,0==o),_(y/t)>l-k&&C("overflow"),k+=_(y/t),y%=t,O.splice(y++,0,k)}return S(O)}function B(e){var t,n,r,a,o,c,i,m,d,f,v,O,j,y,w,E=[];for(O=(e=x(e)).length,t=p,n=0,o=h,c=0;c=t&&v_((l-n)/(j=r+1))&&C("overflow"),n+=(i-t)*j,t=i,c=0;cl&&C("overflow"),v==t){for(m=n,d=s;!(m<(f=d<=o?u:d>=o+b?b:d-o));d+=s)w=m-f,y=s-f,E.push(k(T(f+w%y,0))),m=_(w/y);E.push(k(T(m,0))),o=N(n,j,r==a),n=0,++r}++n,++t}return E.join("")}i={version:"1.3.2",ucs2:{decode:x,encode:S},decode:M,encode:B,toASCII:function(e){return E(e,(function(e){return v.test(e)?"xn--"+B(e):e}))},toUnicode:function(e){return E(e,(function(e){return f.test(e)?M(e.slice(4).toLowerCase()):e}))}},void 0===(a=function(){return i}.call(t,n,t,e))||(e.exports=a)}()}).call(this,n(118)(e),n(61))},118:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},119:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},12:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},120:function(e,t,n){"use strict";t.decode=t.parse=n(121),t.encode=t.stringify=n(122)},121:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var i=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(b=p.substr(0,g),m=p.substr(g+1)):(b=p,m=""),d=decodeURIComponent(b),h=decodeURIComponent(m),r(c,d)?a(c[d])?c[d].push(h):c[d]=[c[d],h]:c[d]=h}return c};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},122:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(c(e),(function(c){var i=encodeURIComponent(r(c))+n;return a(e[c])?o(e[c],(function(e){return i+encodeURIComponent(r(e))})).join(t):i+encodeURIComponent(r(e[c]))})).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.richText}()},function(e,t,n){"use strict";var r=n(38);var o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return a}))},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.moment}()},function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.wp.apiFetch}()},,,function(e,t){!function(){e.exports=this.wp.blob}()},,function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"g",(function(){return i})),n.d(t,"l",(function(){return l})),n.d(t,"k",(function(){return s})),n.d(t,"o",(function(){return u})),n.d(t,"d",(function(){return b})),n.d(t,"f",(function(){return m})),n.d(t,"n",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"m",(function(){return g})),n.d(t,"h",(function(){return f})),n.d(t,"j",(function(){return v})),n.d(t,"a",(function(){return O}));var r=n(0),o=n(3),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z"})),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(o.Path,{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"})),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z"}),Object(r.createElement)(o.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),l=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z"})),s={foreground:"#1da1f2",src:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},u={foreground:"#ff0000",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},b={foreground:"#3b5998",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},m=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),d={foreground:"#0073AA",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},h={foreground:"#1db954",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},p=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),g={foreground:"#1ab7ea",src:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},f=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),v={foreground:"#35465c",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},O=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(r.createElement)(o.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(r.createElement)(o.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"}))},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},,function(e,t){!function(){e.exports=this.wp.viewport}()},,function(e,t,n){e.exports=function(e,t){var n,r,o,a=0;function c(){var t,c,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)r=o=a=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=c(l,i,e+1/3),o=c(l,i,e),a=c(l,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,p;return n=M(n),{ok:b,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=i++}function d(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,a=u(e,t,n),c=s(e,t,n),i=(a+c)/2;if(a==c)r=o=0;else{var l=a-c;switch(o=i>.5?l/(2-a-c):l/(a+c),a){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(m(r));return a}function T(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,o=n.s,a=n.v,c=[],i=1/t;t--;)c.push(m({h:r,s:o,v:a})),a=(a+i)%1;return c}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=M(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(P(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*A(this._r,255))+"%",g:l(100*A(this._g,255))+"%",b:l(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*A(this._r,255))+"%, "+l(100*A(this._g,255))+"%, "+l(100*A(this._b,255))+"%)":"rgba("+l(100*A(this._r,255))+"%, "+l(100*A(this._g,255))+"%, "+l(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=m(e);n="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return m(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:z(e[r]));e=n}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,n){n=0===n?0:n||50;var r=m(e).toRgb(),o=m(t).toRgb(),a=n/100;return m({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},m.readability=function(e,t){var n=m(e),r=m(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},m.isReadable=function(e,t,n){var r,o,a=m.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},m.mostReadable=function(e,t,n){var r,o,a,c,i=null,l=0;o=(n=n||{}).includeFallbackColors,a=n.level,c=n.size;for(var s=0;sl&&(l=r,i=m(t[s]));return m.isReadable(e,i,{level:a,size:c})||!o?i:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var B=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=m.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(B);function M(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,u(0,e))}function I(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function P(e){return o.round(255*parseFloat(e)).toString(16)}function H(e){return I(e)/255}var V,D,F,U=(D="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(r=function(){return m}.call(t,n,t,e))||(e.exports=r)}(Math)},,,,,,function(e,t){!function(){e.exports=this.wp.serverSideRender}()},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"h",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"f",(function(){return b})),n.d(t,"b",(function(){return m})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"d",(function(){return p}));var r=n(10),o=n(45),a=n.n(o),c=n(2),i=a()((function(e){return void 0===e?null:Object(c.times)(e,(function(){return["core/column"]}))})),l=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function s(e,t){var n=Object(c.findIndex)(e,{clientId:t});return n===e.length-1?e.slice(0,n):e.slice(n+1)}function u(e,t){var n=e.attributes.width;return l(void 0===n?100/t:n)}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(c.sumBy)(e,(function(e){return u(e,t)}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,n){var o=u(n,t);return Object.assign(e,Object(r.a)({},n.clientId,o))}),{})}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=(t-b(e,n))/e.length;return Object(c.mapValues)(m(e,n),(function(e){return l(e+r)}))}function h(e){return e.some((function(e){return Number.isFinite(e.attributes.width)}))}function p(e,t){return e.map((function(e){return Object(c.merge)({},e,{attributes:{width:t[e.clientId]}})}))}},,,,function(e,t,n){"use strict";n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return O})),n.d(t,"b",(function(){return j})),n.d(t,"c",(function(){return y}));var r=n(10),o=n(7),a=n(17),c=n(0),i=n(89),l=n(62),s=n(2),u=n(73),b=n.n(u),m=n(45),d=n.n(m),h=n(9),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},g=function(e){return Object(s.includes)(e,'class="wp-embedded-content"')},f=function(e){var t=e.thumbnail_url?e.thumbnail_url:e.url,n=Object(c.createElement)("p",null,Object(c.createElement)("img",{src:t,alt:e.title,width:"100%"}));return Object(c.renderToString)(n)},v=function(e,t){var n=e.preview,r=e.name,c=e.attributes.url;if(c){var s=function(e){for(var t=0,n=[].concat(Object(a.a)(i.a),Object(a.a)(i.b));t1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var o={"wp-has-aspect-ratio":!1},a=0;a=d.ratio)return b()(t,(m={},Object(r.a)(m,d.className,n),Object(r.a)(m,"wp-has-aspect-ratio",n),m))}return t}function j(e,t){var n=Object(c.createElement)("a",{href:e},e);t(Object(h.createBlock)("core/paragraph",{content:Object(c.renderToString)(n)}))}var y=d()((function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var a={},c=e.type,i=void 0===c?"rich":c,l=e.html,u=e.provider_name,b=Object(s.kebabCase)(Object(s.toLower)(""!==u?u:t));return g(l)&&(i="wp-embed"),(l||"photo"===i)&&(a.type=i,a.providerNameSlug=b),a.className=O(l,n,r&&o),a}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return c}));var r=["facebook.com","smugmug.com"],o=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],a="core/embed",c="core-embed/wordpress"},,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,function(e,t){!function(){e.exports=this.wp.autop}()},function(e,t,n){var r; -/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(143);function O(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a127?A+="x":A+=M[R];if(!A.match(d)){var L=B.slice(0,x),z=B.slice(x+1),P=M.match(h);P&&(L.push(P[1]),z.unshift(P[2])),z.length&&(O="/"+z.join(".")+O),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var H=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+H,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!p[_])for(x=0,N=u.length;x0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=k.slice(-1)[0],E=(n.host||e.host||k.length>1)&&("."===w||".."===w)||""===w,x=0,S=k.length;S>=0;S--)"."===(w=k[S])?k.splice(S,1):".."===w?(k.splice(S,1),x++):x&&(k.splice(S,1),x--);if(!y&&!_)for(;x--;x)k.unshift("..");!y||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),E&&"/"!==k.join("/").substr(-1)&&k.push("");var T,B=""===k[0]||k[0]&&"/"===k[0].charAt(0);C&&(n.hostname=n.host=B?"":k.length?k.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(y=y||n.host&&k.length)&&!B&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i}));var r=n(40),o=n(1),a=n(9),c=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:r.k,keywords:["tweet"],description:Object(o.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:r.o,keywords:[Object(o.__)("music"),Object(o.__)("video")],description:Object(o.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:r.d,description:Object(o.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:r.f,keywords:[Object(o.__)("image")],description:Object(o.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:r.n,keywords:[Object(o.__)("post"),Object(o.__)("blog")],responsive:!1,description:Object(o.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:r.b,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:r.i,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:r.e,keywords:[Object(o.__)("image")],description:Object(o.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:r.m,keywords:[Object(o.__)("video")],description:Object(o.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],i=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:r.l,description:Object(o.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:r.c,description:Object(o.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:r.l,description:Object(o.__)("Embed CollegeHumor content.")},patterns:[/^https?:\/\/(www\.)?collegehumor\.com\/.+/i]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:r.c,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(a.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(o.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:r.l,description:Object(o.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:r.l,description:Object(o.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:r.g,description:Object(o.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:r.c,description:Object(o.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:r.c,description:Object(o.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:r.c,description:Object(o.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:r.b,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:r.c,description:Object(o.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:r.h,description:Object(o.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:r.b,description:Object(o.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:r.l,description:Object(o.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:r.c,description:Object(o.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:r.c,description:Object(o.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:r.g,description:Object(o.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:r.b,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:r.c,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(a.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(o.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:r.l,description:Object(o.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:r.j,description:Object(o.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:r.l,keywords:[Object(o.__)("video")],description:Object(o.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:r.l,description:Object(o.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:r.a,keywords:[Object(o.__)("ebook")],responsive:!1,description:Object(o.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}]},,,,,,,function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function i(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(e){r=c}}();var l,s=[],u=!1,b=-1;function m(){u&&l&&(u=!1,l.length?s=l.concat(s):b=-1,s.length&&d())}function d(){if(!u){var e=i(m);u=!0;for(var t=s.length;t;){for(l=s,s=[];++b1)for(var n=1;n2&&void 0!==arguments[2])||arguments[2];return(function(o){function a(){var e;return Object(l.a)(this,a),(e=Object(u.a)(this,Object(b.a)(a).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(m.a)(e)),e.setUrl=e.setUrl.bind(Object(m.a)(e)),e.getMergedAttributes=e.getMergedAttributes.bind(Object(m.a)(e)),e.setMergedAttributes=e.setMergedAttributes.bind(Object(m.a)(e)),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(m.a)(e)),e.toggleResponsive=e.toggleResponsive.bind(Object(m.a)(e)),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(m.a)(e)),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(d.a)(a,o),Object(s.a)(a,[{key:"handleIncomingPreview",value:function(){if(this.setMergedAttributes(),this.props.onReplace){var e=Object(h.a)(this.props,this.getMergedAttributes());e&&this.props.onReplace(e)}}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,n=void 0!==e.preview,r=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!n,o=this.props.attributes.url!==e.attributes.url;if(r||o){if(this.props.cannotEmbed)return void(this.props.fetching||this.resubmitWithoutTrailingSlash());this.handleIncomingPreview()}}},{key:"resubmitWithoutTrailingSlash",value:function(){this.setState((function(e){return{url:e.url.replace(/\/$/,"")}}),this.setUrl)}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;this.setState({editingURL:!1}),n({url:t})}},{key:"getMergedAttributes",value:function(){var t=this.props.preview,o=this.props.attributes,a=o.className,c=o.allowResponsive;return Object(r.a)({},this.props.attributes,Object(h.c)(t,e,a,n,c))}},{key:"setMergedAttributes",value:function(){(0,this.props.setAttributes)(this.getMergedAttributes())}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(p.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(p.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,r=e.className,o=this.props.preview.html,a=!t;this.props.setAttributes({allowResponsive:a,className:Object(h.d)(o,r,n&&a)})}},{key:"render",value:function(){var r=this,o=this.state,a=o.url,c=o.editingURL,l=this.props,s=l.fetching,u=l.setAttributes,b=l.isSelected,m=l.preview,d=l.cannotEmbed,g=l.themeSupportsResponsive,f=l.tryAgain;if(s)return Object(i.createElement)(O,null);var y=Object(p.sprintf)(Object(p.__)("%s URL"),e);if(!m||d||c)return Object(i.createElement)(j,{icon:t,label:y,onSubmit:this.setUrl,value:a,cannotEmbed:d,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return Object(h.b)(a,r.props.onReplace)},tryAgain:f});var _=this.getMergedAttributes(),k=_.caption,C=_.type,w=_.allowResponsive,E=M()(_.className,this.props.className);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(v,{showEditButton:m&&!d,themeSupportsResponsive:g,blockSupportsResponsive:n,allowResponsive:w,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(i.createElement)(B,{preview:m,className:E,url:a,type:C,caption:k,onCaptionChange:function(e){return u({caption:e})},isSelected:b,icon:t,label:y}))}}]),a}(i.Component))}(t,o,T);return{title:t,description:N,icon:o,category:g,keywords:k,attributes:R,supports:Object(r.a)({align:!0},x),transforms:y,edit:Object(E.compose)(Object(A.withSelect)((function(e,t){var n=t.attributes.url,r=e("core"),o=r.getEmbedPreview,a=r.isPreviewEmbedFallback,c=r.isRequestingEmbedPreview,i=r.getThemeSupports,l=void 0!==n&&o(n),s=void 0!==n&&a(n),u=void 0!==n&&c(n),b=i(),m=!!l&&void 0===l.type&&!1===l.html,d=!!l&&l.data&&404===l.data.status,h=!!l&&!m&&!d,p=void 0!==n&&(!h||s);return{preview:h?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:p}})),Object(A.withDispatch)((function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}})))(I),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,l=n.providerNameSlug;if(!r)return null;var s=w()("wp-block-embed",(t={},Object(c.a)(t,"is-type-".concat(a),a),Object(c.a)(t,"is-provider-".concat(l),l),t));return Object(i.createElement)("figure",{className:s},Object(i.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!f.RichText.isEmpty(o)&&Object(i.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:R,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,l=n.providerNameSlug;if(!r)return null;var s=w()("wp-block-embed",(t={},Object(c.a)(t,"is-type-".concat(a),a),Object(c.a)(t,"is-provider-".concat(l),l),t));return Object(i.createElement)("figure",{className:s},"\n".concat(r,"\n"),!f.RichText.isEmpty(o)&&Object(i.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))}}]}}var L=n(9);n.d(t,"name",(function(){return z})),n.d(t,"settings",(function(){return P})),n.d(t,"common",(function(){return H})),n.d(t,"others",(function(){return V}));var z="core/embed",P=I({title:Object(p._x)("Embed","block title"),description:Object(p.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:a.c,responsive:!1,transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(L.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),H=o.a.map((function(e){return Object(r.a)({},e,{settings:I(e.settings)})})),V=o.b.map((function(e){return Object(r.a)({},e,{settings:I(e.settings)})}))},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(9),a=n(0),c=n(16),i=n.n(c),l=n(6),s=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(l.getColorClassName)("background-color",n),c=i()(o,{"has-background":n||r}),s={backgroundColor:o?void 0:r};return Object(a.createElement)("div",{className:c,style:s},Object(a.createElement)(l.InnerBlocks.Content,null))}}],u=n(4),b=n(8);var m=Object(b.compose)([Object(l.withColors)("backgroundColor"),Object(u.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlock)(n);return{hasInnerBlocks:!(!r||!r.innerBlocks.length)}}))])((function(e){var t=e.className,n=e.setBackgroundColor,o=e.backgroundColor,c=e.hasInnerBlocks,s={backgroundColor:o.color},u=i()(t,o.class,{"has-background":!!o.color});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(l.PanelColorSettings,{title:Object(r.__)("Color Settings"),colorSettings:[{value:o.color,onChange:n,label:Object(r.__)("Background Color")}]})),Object(a.createElement)("div",{className:u,style:s},Object(a.createElement)("div",{className:"wp-block-group__inner-container"},Object(a.createElement)(l.InnerBlocks,{renderAppender:!c&&l.InnerBlocks.ButtonBlockAppender}))))})),d=n(3),h=Object(a.createElement)(d.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(d.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z"}),Object(a.createElement)(d.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z"}));n.d(t,"metadata",(function(){return p})),n.d(t,"name",(function(){return g})),n.d(t,"settings",(function(){return f}));var p={name:"core/group",category:"layout",attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}}},g=p.name,f={title:Object(r.__)("Group"),icon:h,description:Object(r.__)("A block that groups other blocks."),keywords:[Object(r.__)("container"),Object(r.__)("wrapper"),Object(r.__)("row"),Object(r.__)("section")],example:{attributes:{customBackgroundColor:"#ffffff"},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(r.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(r.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(r.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(r.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(r.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(r.__)("Six.")}}]},supports:{align:["wide","full"],anchor:!0,html:!1},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],n=e.reduce((function(e,n){var r=n.attributes.align;return t.indexOf(r)>t.indexOf(e)?r:e}),void 0),r=e.map((function(e){return Object(o.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(o.createBlock)("core/group",{align:n},r)}}}]},edit:m,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(l.getColorClassName)("background-color",n),c=i()(o,{"has-background":n||r}),s={backgroundColor:o?void 0:r};return Object(a.createElement)("div",{className:c,style:s},Object(a.createElement)("div",{className:"wp-block-group__inner-container"},Object(a.createElement)(l.InnerBlocks.Content,null)))},deprecated:s}},,,,,,,,,,,function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var i,l=2147483647,s=36,u=1,b=26,m=38,d=700,h=72,p=128,g="-",f=/^xn--/,v=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-u,_=Math.floor,k=String.fromCharCode;function C(e){throw RangeError(j[e])}function w(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+w((e=e.replace(O,".")).split("."),t).join(".")}function x(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(t+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=k(e)})).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function B(e,t,n){var r=0;for(e=n?_(e/d):e>>1,e+=_(e/t);e>y*b>>1;r+=s)e=_(e/y);return _(r+(y+1)*e/(e+m))}function N(e){var t,n,r,o,a,c,i,m,d,f,v,O=[],j=e.length,y=0,k=p,w=h;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r=128&&C("not-basic"),O.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=j&&C("invalid-input"),((m=(v=e.charCodeAt(o++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s)>=s||m>_((l-y)/c))&&C("overflow"),y+=m*c,!(m<(d=i<=w?u:i>=w+b?b:i-w));i+=s)c>_(l/(f=s-d))&&C("overflow"),c*=f;w=B(y-a,t=O.length+1,0==a),_(y/t)>l-k&&C("overflow"),k+=_(y/t),y%=t,O.splice(y++,0,k)}return S(O)}function M(e){var t,n,r,o,a,c,i,m,d,f,v,O,j,y,w,E=[];for(O=(e=x(e)).length,t=p,n=0,a=h,c=0;c=t&&v_((l-n)/(j=r+1))&&C("overflow"),n+=(i-t)*j,t=i,c=0;cl&&C("overflow"),v==t){for(m=n,d=s;!(m<(f=d<=a?u:d>=a+b?b:d-a));d+=s)w=m-f,y=s-f,E.push(k(T(f+w%y,0))),m=_(w/y);E.push(k(T(m,0))),a=B(n,j,r==o),n=0,++r}++n,++t}return E.join("")}i={version:"1.3.2",ucs2:{decode:x,encode:S},decode:N,encode:M,toASCII:function(e){return E(e,(function(e){return v.test(e)?"xn--"+M(e):e}))},toUnicode:function(e){return E(e,(function(e){return f.test(e)?N(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(141)(e),n(67))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(144),t.encode=t.stringify=n(145)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var i=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(b=p.substr(0,g),m=p.substr(g+1)):(b=p,m=""),d=decodeURIComponent(b),h=decodeURIComponent(m),r(c,d)?o(c[d])?c[d].push(h):c[d]=[c[d],h]:c[d]=h}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(c(e),(function(c){var i=encodeURIComponent(r(c))+n;return o(e[c])?a(e[c],(function(e){return i+encodeURIComponent(r(e))})).join(t):i+encodeURIComponent(r(e[c]))})).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===m.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(r._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(i,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(i,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(r.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",(function(){var e=n.editor.getBody();document.activeElement===e&&(e.blur(),n.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(b.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(r.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(b.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(b.Component),p=n(3),g=Object(b.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(p.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object(b.createElement)(p.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object(b.createElement)(p.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object(b.createElement)(p.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"17",y:"8",width:"2",height:"2"}));n.d(t,"metadata",(function(){return f})),n.d(t,"name",(function(){return v})),n.d(t,"settings",(function(){return O}));var f={name:"core/freeform",category:"formatting",attributes:{content:{type:"string",source:"html"}}},v=f.name,O={title:Object(r._x)("Classic","block title"),description:Object(r.__)("Use the classic WordPress editor."),icon:g,supports:{className:!1,customClassName:!1,reusable:!1},edit:h,save:function(e){var t=e.attributes.content;return Object(b.createElement)(b.RawHTML,null,t)}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(3),c=n(9),i=n(4),l=n(6);var s=Object(i.withDispatch)((function(e,t){var n=t.clientId,r=t.attributes,o=e("core/block-editor").replaceBlock;return{convertToHTML:function(){o(n,Object(c.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}}))((function(e){var t,n=e.attributes,i=e.convertToHTML,s=n.originalName,u=n.originalUndelimitedContent,b=!!u,m=Object(c.getBlockType)("core/html"),d=[];return b&&m?(t=Object(r.sprintf)(Object(r.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),s),d.push(Object(o.createElement)(a.Button,{key:"convert",onClick:i,isLarge:!0,isPrimary:!0},Object(r.__)("Keep as HTML")))):t=Object(r.sprintf)(Object(r.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),s),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.Warning,{actions:d},t),Object(o.createElement)(o.RawHTML,null,u))}));n.d(t,"metadata",(function(){return u})),n.d(t,"name",(function(){return b})),n.d(t,"settings",(function(){return m}));var u={name:"core/missing",category:"common",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}}},b=u.name,m={name:b,title:Object(r.__)("Unrecognized Block"),description:Object(r.__)("Your site doesn’t include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},edit:s,save:function(e){var t=e.attributes;return Object(o.createElement)(o.RawHTML,null,t.originalContent)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){ +*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;tc?(n=a/c,i=100,l=Math.round(i/n)):(n=c/a,l=100,i=Math.round(l/n)),(i>a||l>c||i<10||l<10)&&(i=a,l=c),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:c,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,c=0,i=0,l=0;lr?-1:n===r?0:1}))[0],5),m=b[0],d=b[1],h=b[2],p=b[3],g=b[4];return p?[Math.round(m/p),Math.round(d/p),Math.round(h/p),Math.round(p/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,o=(n=n||{})&&n.data,a=this._getDefaultColor(n),c=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(a,new Error("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(a,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",c),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",c),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),r=[].concat(n,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(r.prototype,o),a&&e(r,a),n}()}()},,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(0),c=n(16),i=n.n(c),l=n(6),s=[{supports:{className:!1,anchor:!0},attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},save:function(e){var t=e.attributes,n=t.align,r=t.level,c=t.content,s=t.textColor,u=t.customTextColor,b="h"+r,m=Object(l.getColorClassName)("color",s),d=i()(Object(o.a)({},m,m));return Object(a.createElement)(l.RichText.Content,{className:d||void 0,tagName:b,style:{textAlign:n,color:m?void 0:u},value:c})}}],u=n(7),b=n(12),m=n(11),d=n(13),h=n(14),p=n(15),g=n(2),f=n(3);function v(e){var t=e.level,n={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return n.hasOwnProperty(t)?Object(a.createElement)(f.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(f.Path,{d:n[t]})):null}var O=function(e){function t(){return Object(b.a)(this,t),Object(d.a)(this,Object(h.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(m.a)(t,[{key:"createLevelControl",value:function(e,t,n){return{icon:Object(a.createElement)(v,{level:e}),title:Object(r.sprintf)(Object(r.__)("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isCollapsed,r=void 0===n||n,o=t.minLevel,c=t.maxLevel,i=t.selectedLevel,l=t.onChange;return Object(a.createElement)(f.Toolbar,{isCollapsed:r,icon:Object(a.createElement)(v,{level:i}),controls:Object(g.range)(o,c).map((function(t){return e.createLevelControl(t,i,l)}))})}}]),t}(a.Component),j=n(8),y=n(9),_=Object(a.memo)((function(e){var t=e.textColorValue,n=e.setTextColor;return Object(a.createElement)(l.PanelColorSettings,{title:Object(r.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:t,onChange:n,label:Object(r.__)("Text Color")}]})}));var k=Object(j.compose)([Object(l.withColors)("backgroundColor",{textColor:"color"})])((function(e){var t,n=e.attributes,c=e.setAttributes,s=e.mergeBlocks,b=e.onReplace,m=e.className,d=e.textColor,h=e.setTextColor,p=n.align,g=n.content,v=n.level,j=n.placeholder,k="h"+v;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.BlockControls,null,Object(a.createElement)(O,{minLevel:2,maxLevel:5,selectedLevel:v,onChange:function(e){return c({level:e})}}),Object(a.createElement)(l.AlignmentToolbar,{value:p,onChange:function(e){c({align:e})}})),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(f.PanelBody,{title:Object(r.__)("Heading Settings")},Object(a.createElement)("p",null,Object(r.__)("Level")),Object(a.createElement)(O,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:v,onChange:function(e){return c({level:e})}})),Object(a.createElement)(_,{setTextColor:h,textColorValue:d.color})),Object(a.createElement)(l.RichText,{identifier:"content",wrapperClassName:"wp-block-heading",tagName:k,value:g,onChange:function(e){return c({content:e})},onMerge:s,onSplit:function(e){return e?Object(y.createBlock)("core/heading",Object(u.a)({},n,{content:e})):Object(y.createBlock)("core/paragraph")},onReplace:b,onRemove:function(){return b([])},className:i()(m,(t={},Object(o.a)(t,"has-text-align-".concat(p),p),Object(o.a)(t,"has-text-color",d.color),Object(o.a)(t,d.class,d.class),t)),placeholder:j||Object(r.__)("Write heading…"),style:{color:d.color}}))}));var C=n(17);var w={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(y.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:{h1:{children:Object(y.getPhrasingContentSchema)()},h2:{children:Object(y.getPhrasingContentSchema)()},h3:{children:Object(y.getPhrasingContentSchema)()},h4:{children:Object(y.getPhrasingContentSchema)()},h5:{children:Object(y.getPhrasingContentSchema)()},h6:{children:Object(y.getPhrasingContentSchema)()}},transform:function(e){return Object(y.createBlock)("core/heading",Object(u.a)({},Object(y.getBlockAttributes)("core/heading",e.outerHTML),{level:(t=e.nodeName,Number(t.substr(1)))}));var t}}].concat(Object(C.a)([2,3,4,5,6].map((function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(y.createBlock)("core/heading",{level:e,content:t})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(y.createBlock)("core/paragraph",{content:t})}}]};n.d(t,"metadata",(function(){return E})),n.d(t,"name",(function(){return x})),n.d(t,"settings",(function(){return S}));var E={name:"core/heading",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},x=E.name,S={title:Object(r.__)("Heading"),description:Object(r.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:"heading",keywords:[Object(r.__)("title"),Object(r.__)("subtitle")],supports:{className:!1,anchor:!0},example:{attributes:{content:Object(r.__)("Code is Poetry"),level:2}},transforms:w,deprecated:s,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:k,save:function(e){var t,n=e.attributes,r=n.align,c=n.content,s=n.customTextColor,u=n.level,b=n.textColor,m="h"+u,d=Object(l.getColorClassName)("color",b),h=i()((t={},Object(o.a)(t,d,d),Object(o.a)(t,"has-text-align-".concat(r),r),t));return Object(a.createElement)(l.RichText.Content,{className:h||void 0,tagName:m,style:{color:d?void 0:s},value:c})}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(7),a=n(0),c=n(16),i=n.n(c),l=n(2),s=n(6);function u(e){return Math.min(3,e.images.length)}var b=function(e){var t=Object(l.pick)(e,["alt","id","link","caption"]);t.url=Object(l.get)(e,["sizes","large","url"])||Object(l.get)(e,["media_details","sizes","large","source_url"])||e.url;var n=Object(l.get)(e,["sizes","full","url"])||Object(l.get)(e,["media_details","sizes","full","source_url"]);return n&&(t.fullUrl=n),t},m=[{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?u(t):r,c=t.imageCrop,i=t.linkTo;return Object(a.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(a.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(a.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(a.createElement)("figure",null,t?Object(a.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(a.createElement)(s.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(l.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return Object(o.a)({},e,{ids:Object(l.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?u(t):r,c=t.imageCrop,i=t.linkTo;return Object(a.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(a.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(a.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(a.createElement)("figure",null,t?Object(a.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(a.createElement)(s.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?u(t):r,c=t.align,l=t.imageCrop,s=t.linkTo,b=i()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":l});return Object(a.createElement)("div",{className:b},n.map((function(e){var t;switch(s){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(a.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(a.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(a.createElement)("a",{href:t},n):n)})))}}],d=n(10),h=n(17),p=n(12),g=n(11),f=n(13),v=n(14),O=n(5),j=n(15),y=n(8),_=n(3),k=n(35),C=n(4),w=n(19),E=Object(a.createElement)(_.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(_.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(_.G,null,Object(a.createElement)(_.Path,{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}))),x=Object(a.createElement)(_.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(_.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),S=Object(a.createElement)(_.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(_.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),T=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(f.a)(this,Object(v.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(O.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(O.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(O.a)(e)),e.bindContainer=e.bindContainer.bind(Object(O.a)(e)),e.state={captionSelected:!1},e}return Object(j.a)(t,e),Object(g.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[w.BACKSPACE,w.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url;r&&!o&&this.props.setAttributes({url:r.source_url,alt:r.alt_text}),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,n=t.url,o=t.alt,c=t.id,l=t.linkTo,u=t.link,b=t.isFirstItem,m=t.isLastItem,d=t.isSelected,h=t.caption,p=t.onRemove,g=t.onMoveForward,f=t.onMoveBackward,v=t.setAttributes,O=t["aria-label"];switch(l){case"media":e=n;break;case"attachment":e=u}var j=Object(a.createElement)(a.Fragment,null,Object(a.createElement)("img",{src:n,alt:o,"data-id":c,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":O,ref:this.bindContainer}),Object(k.isBlobURL)(n)&&Object(a.createElement)(_.Spinner,null)),y=i()({"is-selected":d,"is-transient":Object(k.isBlobURL)(n)});return Object(a.createElement)("figure",{className:y},e?Object(a.createElement)("a",{href:e},j):j,Object(a.createElement)("div",{className:"block-library-gallery-item__move-menu"},Object(a.createElement)(_.IconButton,{icon:x,onClick:b?void 0:f,className:"blocks-gallery-item__move-backward",label:Object(r.__)("Move image backward"),"aria-disabled":b,disabled:!d}),Object(a.createElement)(_.IconButton,{icon:S,onClick:m?void 0:g,className:"blocks-gallery-item__move-forward",label:Object(r.__)("Move image forward"),"aria-disabled":m,disabled:!d})),Object(a.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(a.createElement)(_.IconButton,{icon:"no-alt",onClick:p,className:"blocks-gallery-item__remove",label:Object(r.__)("Remove image"),disabled:!d})),(d||h)&&Object(a.createElement)(s.RichText,{tagName:"figcaption",placeholder:d?Object(r.__)("Write caption…"):null,value:h,isSelected:this.state.captionSelected,onChange:function(e){return v({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),t}(a.Component),B=Object(C.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}}))(T),N=[{value:"attachment",label:Object(r.__)("Attachment Page")},{value:"media",label:Object(r.__)("Media File")},{value:"none",label:Object(r.__)("None")}],M=["image"],A=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(f.a)(this,Object(v.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(O.a)(e)),e.onSelectImages=e.onSelectImages.bind(Object(O.a)(e)),e.setLinkTo=e.setLinkTo.bind(Object(O.a)(e)),e.setColumnsNumber=e.setColumnsNumber.bind(Object(O.a)(e)),e.toggleImageCrop=e.toggleImageCrop.bind(Object(O.a)(e)),e.onMove=e.onMove.bind(Object(O.a)(e)),e.onMoveForward=e.onMoveForward.bind(Object(O.a)(e)),e.onMoveBackward=e.onMoveBackward.bind(Object(O.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(O.a)(e)),e.onUploadError=e.onUploadError.bind(Object(O.a)(e)),e.setImageAttributes=e.setImageAttributes.bind(Object(O.a)(e)),e.setAttributes=e.setAttributes.bind(Object(O.a)(e)),e.onFocusGalleryCaption=e.onFocusGalleryCaption.bind(Object(O.a)(e)),e.state={selectedImage:null,attachmentCaptions:null},e}return Object(j.a)(t,e),Object(g.a)(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=Object(o.a)({},e,{ids:Object(l.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onMove",value:function(e,t){var n=Object(h.a)(this.props.attributes.images);n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t}),this.setAttributes({images:n})}},{key:"onMoveForward",value:function(e){var t=this;return function(){e!==t.props.attributes.images.length-1&&t.onMove(e,e+1)}}},{key:"onMoveBackward",value:function(e){var t=this;return function(){0!==e&&t.onMove(e,e-1)}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(l.filter)(t.props.attributes.images,(function(t,n){return e!==n})),r=t.props.attributes.columns;t.setState({selectedImage:null}),t.setAttributes({images:n,columns:r?Math.min(n.length,r):r})}}},{key:"selectCaption",value:function(e,t,n){var r=Object(l.find)(t,{id:e.id}),o=r?r.caption:e.caption;if(!n)return o;var a=Object(l.find)(n,{id:e.id});return a&&a.caption!==e.caption?e.caption:o}},{key:"onSelectImages",value:function(e){var t=this,n=this.props.attributes,r=n.columns,a=n.images,c=this.state.attachmentCaptions;this.setState({attachmentCaptions:e.map((function(e){return{id:e.id,caption:e.caption}}))}),this.setAttributes({images:e.map((function(e){return Object(o.a)({},b(e),{caption:t.selectCaption(e,a,c)})})),columns:r?Math.min(e.length,r):r})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"setLinkTo",value:function(e){this.setAttributes({linkTo:e})}},{key:"setColumnsNumber",value:function(e){this.setAttributes({columns:e})}},{key:"toggleImageCrop",value:function(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}},{key:"getImageCropHelp",value:function(e){return e?Object(r.__)("Thumbnails are cropped to align."):Object(r.__)("Thumbnails are not cropped.")}},{key:"onFocusGalleryCaption",value:function(){this.setState({selectedImage:null})}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,r=this.setAttributes;n[e]&&r({images:[].concat(Object(h.a)(n.slice(0,e)),[Object(o.a)({},n[e],t)],Object(h.a)(n.slice(e+1)))})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=t.images;if(Object(l.every)(r,(function(e){var t=e.url;return Object(k.isBlobURL)(t)}))){var o=Object(l.map)(r,(function(e){var t=e.url;return Object(k.getBlobByURL)(t)}));Object(l.forEach)(r,(function(e){var t=e.url;return Object(k.revokeBlobURL)(t)})),n({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.attributes,c=n.className,b=n.isSelected,m=n.noticeUI,h=n.setAttributes,p=o.align,g=o.columns,f=void 0===g?u(o):g,v=o.caption,O=o.imageCrop,j=o.images,y=o.linkTo,k=!!j.length,C=k&&Object(l.some)(j,(function(e){return e.id})),w=Object(a.createElement)(s.MediaPlaceholder,{addToGallery:C,isAppender:k,className:c,dropZoneUIOnly:k&&!b,icon:!k&&Object(a.createElement)(s.BlockIcon,{icon:E}),labels:{title:!k&&Object(r.__)("Gallery"),instructions:!k&&Object(r.__)("Drag images, upload new ones or select files from your library.")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:M,multiple:!0,value:C?j:void 0,onError:this.onUploadError,notices:k?void 0:m});if(!k)return w;var x=i()("blocks-gallery-caption",{"screen-reader-text":!b&&s.RichText.isEmpty(v)});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(s.InspectorControls,null,Object(a.createElement)(_.PanelBody,{title:Object(r.__)("Gallery Settings")},j.length>1&&Object(a.createElement)(_.RangeControl,{label:Object(r.__)("Columns"),value:f,onChange:this.setColumnsNumber,min:1,max:Math.min(8,j.length),required:!0}),Object(a.createElement)(_.ToggleControl,{label:Object(r.__)("Crop Images"),checked:!!O,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(a.createElement)(_.SelectControl,{label:Object(r.__)("Link To"),value:y,onChange:this.setLinkTo,options:N}))),m,Object(a.createElement)("figure",{className:i()(c,(e={},Object(d.a)(e,"align".concat(p),p),Object(d.a)(e,"columns-".concat(f),f),Object(d.a)(e,"is-cropped",O),e))},Object(a.createElement)("ul",{className:"blocks-gallery-grid"},j.map((function(e,n){var o=Object(r.sprintf)(Object(r.__)("image %1$d of %2$d in gallery"),n+1,j.length);return Object(a.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(a.createElement)(B,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===n,isLastItem:n+1===j.length,isSelected:b&&t.state.selectedImage===n,onMoveBackward:t.onMoveBackward(n),onMoveForward:t.onMoveForward(n),onRemove:t.onRemoveImage(n),onSelect:t.onSelectImage(n),setAttributes:function(e){return t.setImageAttributes(n,e)},caption:e.caption,"aria-label":o}))}))),w,Object(a.createElement)(s.RichText,{tagName:"figcaption",className:x,placeholder:Object(r.__)("Write gallery caption…"),value:v,unstableOnFocus:this.onFocusGalleryCaption,onChange:function(e){return h({caption:e})},inlineToolbar:!0})))}}]),t}(a.Component),R=Object(y.compose)([Object(C.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),_.withNotices])(A);var I=n(9),L=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},z={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(l.every)(e,["align",t])?t:void 0;var n=Object(l.filter)(e,(function(e){return e.url}));return Object(I.createBlock)("core/gallery",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),ids:n.map((function(e){return e.id})),align:t})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return L(t).map((function(e){return{id:e}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return L(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(l.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(I.createBlock)("core/gallery",{images:e.map((function(e){return b({url:Object(k.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map((function(e){var t=e.id,r=e.url,o=e.alt,a=e.caption;return Object(I.createBlock)("core/image",{id:t,url:r,alt:o,caption:a,align:n})})):Object(I.createBlock)("core/image",{align:n})}}]};n.d(t,"metadata",(function(){return P})),n.d(t,"name",(function(){return H})),n.d(t,"settings",(function(){return V}));var P={name:"core/gallery",category:"common",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}}},H=P.name,V={title:Object(r.__)("Gallery"),description:Object(r.__)("Display multiple images in a rich gallery."),icon:E,keywords:[Object(r.__)("images"),Object(r.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://upload.wikimedia.org/wikipedia/commons/c/c3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://upload.wikimedia.org/wikipedia/commons/0/01/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},supports:{align:!0},transforms:z,edit:R,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?u(t):r,c=t.imageCrop,i=t.caption,l=t.linkTo;return Object(a.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(a.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(l){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(a.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(a.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(a.createElement)("figure",null,t?Object(a.createElement)("a",{href:t},n):n,!s.RichText.isEmpty(e.caption)&&Object(a.createElement)(s.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!s.RichText.isEmpty(i)&&Object(a.createElement)(s.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:i}))},deprecated:m}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(0),c=n(16),i=n.n(c),l=n(2),s=n(6),u=[{attributes:{align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},save:function(e){var t,n,r=e.attributes,c=r.backgroundColor,u=r.customBackgroundColor,b=r.isStackedOnMobile,m=r.mediaAlt,d=r.mediaPosition,h=r.mediaType,p=r.mediaUrl,g=r.mediaWidth,f={image:function(){return Object(a.createElement)("img",{src:p,alt:m})},video:function(){return Object(a.createElement)("video",{controls:!0,src:p})}},v=Object(s.getColorClassName)("background-color",c),O=i()((t={"has-media-on-the-right":"right"===d},Object(o.a)(t,v,v),Object(o.a)(t,"is-stacked-on-mobile",b),t));50!==g&&(n="right"===d?"auto ".concat(g,"%"):"".concat(g,"% auto"));var j={backgroundColor:v?void 0:u,gridTemplateColumns:n};return Object(a.createElement)("div",{className:O,style:j},Object(a.createElement)("figure",{className:"wp-block-media-text__media"},(f[h]||l.noop)()),Object(a.createElement)("div",{className:"wp-block-media-text__content"},Object(a.createElement)(s.InnerBlocks.Content,null)))}}],b=n(18),m=n(12),d=n(11),h=n(13),p=n(14),g=n(5),f=n(15),v=n(3),O=n(8),j=n(4),y=Object(a.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(v.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(a.createElement)(v.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(a.createElement)(v.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),_=["image","video"];function k(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}var C=function(e){function t(){var e;return Object(m.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).onUploadError=e.onUploadError.bind(Object(g.a)(e)),e}return Object(f.a)(t,e),Object(d.a)(t,[{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return Object(a.createElement)(s.BlockControls,null,Object(a.createElement)(v.Toolbar,null,Object(a.createElement)(s.MediaUpload,{onSelect:n,allowedTypes:_,value:t,render:function(e){var t=e.open;return Object(a.createElement)(v.IconButton,{className:"components-toolbar__control",label:Object(r.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className,o=e.imageFill,c=e.focalPoint,i=o?k(n,c):{};return Object(a.createElement)(a.Fragment,null,this.renderToolbarEditButton(),Object(a.createElement)("figure",{className:r,style:i},Object(a.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object(a.createElement)(a.Fragment,null,this.renderToolbarEditButton(),Object(a.createElement)("figure",{className:n},Object(a.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className,o=e.noticeUI;return Object(a.createElement)(s.MediaPlaceholder,{icon:Object(a.createElement)(s.BlockIcon,{icon:y}),labels:{title:Object(r.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:_,notices:o,onError:this.onUploadError})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,n=e.mediaUrl,r=e.mediaType,o=e.mediaWidth,c=e.commitWidthChange,i=e.onWidthChange,l=e.toggleSelection;if(r&&n){var s={right:"left"===t,left:"right"===t},u=null;switch(r){case"image":u=this.renderImage();break;case"video":u=this.renderVideo()}return Object(a.createElement)(v.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:s,onResizeStart:function(){l(!1)},onResize:function(e,t,n){i(parseInt(n.style.width))},onResizeStop:function(e,t,n){l(!0),c(parseInt(n.style.width))},axis:"x"},u)}return this.renderPlaceholder()}}]),t}(a.Component),w=Object(O.compose)([Object(j.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),v.withNotices])(C),E=[["core/paragraph",{fontSize:"large",placeholder:Object(r._x)("Content…","content placeholder")}]],x=function(e){return Math.max(15,Math.min(e,85))},S=function(e){function t(){var e;return Object(m.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(g.a)(e)),e.onWidthChange=e.onWidthChange.bind(Object(g.a)(e)),e.commitWidthChange=e.commitWidthChange.bind(Object(g.a)(e)),e.state={mediaWidth:null},e}return Object(f.a)(t,e),Object(d.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(l.get)(e,["sizes","large","url"])||Object(l.get)(e,["media_details","sizes","large","source_url"])),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url,imageFill:void 0,focalPoint:void 0})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:x(e)})}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:x(e)}),this.setState({mediaWidth:null})}},{key:"renderMediaArea",value:function(){var e=this.props.attributes,t=e.mediaAlt,n=e.mediaId,r=e.mediaPosition,o=e.mediaType,c=e.mediaUrl,i=e.mediaWidth,l=e.imageFill,s=e.focalPoint;return Object(a.createElement)(w,Object(b.a)({className:"block-library-media-text__media-container",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:o,mediaUrl:c,mediaPosition:r,mediaWidth:i,imageFill:l,focalPoint:s}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,c=t.className,l=t.backgroundColor,u=t.isSelected,b=t.setAttributes,m=t.setBackgroundColor,d=n.isStackedOnMobile,h=n.mediaAlt,p=n.mediaPosition,g=n.mediaType,f=n.mediaWidth,O=n.verticalAlignment,j=n.mediaUrl,y=n.imageFill,_=n.focalPoint,k=this.state.mediaWidth,C=i()(c,(e={"has-media-on-the-right":"right"===p,"is-selected":u,"has-background":l.class||l.color},Object(o.a)(e,l.class,l.class),Object(o.a)(e,"is-stacked-on-mobile",d),Object(o.a)(e,"is-vertically-aligned-".concat(O),O),Object(o.a)(e,"is-image-fill",y),e)),w="".concat(k||f,"%"),x={gridTemplateColumns:"right"===p?"auto ".concat(w):"".concat(w," auto"),backgroundColor:l.color},S=[{value:l.color,onChange:m,label:Object(r.__)("Background Color")}],T=[{icon:"align-pull-left",title:Object(r.__)("Show media on left"),isActive:"left"===p,onClick:function(){return b({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(r.__)("Show media on right"),isActive:"right"===p,onClick:function(){return b({mediaPosition:"right"})}}],B=Object(a.createElement)(v.PanelBody,{title:Object(r.__)("Media & Text Settings")},Object(a.createElement)(v.ToggleControl,{label:Object(r.__)("Stack on mobile"),checked:d,onChange:function(){return b({isStackedOnMobile:!d})}}),"image"===g&&Object(a.createElement)(v.ToggleControl,{label:Object(r.__)("Crop image to fill entire column"),checked:y,onChange:function(){return b({imageFill:!y})}}),y&&Object(a.createElement)(v.FocalPointPicker,{label:Object(r.__)("Focal Point Picker"),url:j,value:_,onChange:function(e){return b({focalPoint:e})}}),"image"===g&&Object(a.createElement)(v.TextareaControl,{label:Object(r.__)("Alt Text (Alternative Text)"),value:h,onChange:function(e){b({mediaAlt:e})},help:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(v.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(r.__)("Describe the purpose of the image")),Object(r.__)("Leave empty if the image is purely decorative."))}));return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(s.InspectorControls,null,B,Object(a.createElement)(s.PanelColorSettings,{title:Object(r.__)("Color Settings"),initialOpen:!1,colorSettings:S})),Object(a.createElement)(s.BlockControls,null,Object(a.createElement)(v.Toolbar,{controls:T}),Object(a.createElement)(s.BlockVerticalAlignmentToolbar,{onChange:function(e){b({verticalAlignment:e})},value:O})),Object(a.createElement)("div",{className:C,style:x},this.renderMediaArea(),Object(a.createElement)(s.InnerBlocks,{template:E,templateInsertUpdatesSelection:!1})))}}]),t}(a.Component),T=Object(s.withColors)("backgroundColor")(S),B=Object(a.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(v.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),N=50;var M=n(9),A={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(M.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image"})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id;return Object(M.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"image"===t},transform:function(e){var t=e.mediaAlt,n=e.mediaId,r=e.mediaUrl;return Object(M.createBlock)("core/image",{alt:t,id:n,url:r})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,n=e.mediaUrl;return Object(M.createBlock)("core/video",{id:t,src:n})}}]};n.d(t,"metadata",(function(){return R})),n.d(t,"name",(function(){return I})),n.d(t,"settings",(function(){return L}));var R={name:"core/media-text",category:"layout",attributes:{align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}},I=R.name,L={title:Object(r.__)("Media & Text"),description:Object(r.__)("Set media and words side-by-side for a richer layout."),icon:B,keywords:[Object(r.__)("image"),Object(r.__)("video")],supports:{align:["wide","full"],html:!1},example:{attributes:{mediaType:"image",mediaUrl:"https://upload.wikimedia.org/wikipedia/commons/d/d4/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(r.__)("The wren
    Earns his living
    Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(r.__)("— Kobayashi Issa (一茶)")}}]},transforms:A,edit:T,save:function(e){var t,n,r=e.attributes,c=r.backgroundColor,u=r.customBackgroundColor,b=r.isStackedOnMobile,m=r.mediaAlt,d=r.mediaPosition,h=r.mediaType,p=r.mediaUrl,g=r.mediaWidth,f=r.mediaId,v=r.verticalAlignment,O=r.imageFill,j=r.focalPoint,y={image:function(){return Object(a.createElement)("img",{src:p,alt:m,className:f&&"image"===h?"wp-image-".concat(f):null})},video:function(){return Object(a.createElement)("video",{controls:!0,src:p})}},_=Object(s.getColorClassName)("background-color",c),C=i()((t={"has-media-on-the-right":"right"===d,"has-background":_||u},Object(o.a)(t,_,_),Object(o.a)(t,"is-stacked-on-mobile",b),Object(o.a)(t,"is-vertically-aligned-".concat(v),v),Object(o.a)(t,"is-image-fill",O),t)),w=O?k(p,j):{};g!==N&&(n="right"===d?"auto ".concat(g,"%"):"".concat(g,"% auto"));var E={backgroundColor:_?void 0:u,gridTemplateColumns:n};return Object(a.createElement)("div",{className:C,style:E},Object(a.createElement)("figure",{className:"wp-block-media-text__media",style:w},(y[h]||l.noop)()),Object(a.createElement)("div",{className:"wp-block-media-text__content"},Object(a.createElement)(s.InnerBlocks.Content,null)))},deprecated:u}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(18),a=n(10),c=n(0),i=n(16),l=n.n(i),s=n(6),u={align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},b=[{attributes:u,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,i=n.caption,u=n.align,b=n.href,m=n.width,d=n.height,h=n.id,p=l()((t={},Object(a.a)(t,"align".concat(u),u),Object(a.a)(t,"is-resized",m||d),t)),g=Object(c.createElement)("img",{src:r,alt:o,className:h?"wp-image-".concat(h):null,width:m,height:d});return Object(c.createElement)("figure",{className:p},b?Object(c.createElement)("a",{href:b},g):g,!s.RichText.isEmpty(i)&&Object(c.createElement)(s.RichText.Content,{tagName:"figcaption",value:i}))}},{attributes:u,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,i=t.href,l=t.width,u=t.height,b=t.id,m=Object(c.createElement)("img",{src:n,alt:r,className:b?"wp-image-".concat(b):null,width:l,height:u});return Object(c.createElement)("figure",{className:a?"align".concat(a):null},i?Object(c.createElement)("a",{href:i},m):m,!s.RichText.isEmpty(o)&&Object(c.createElement)(s.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:u,save:function(e){var t=e.attributes,n=t.url,r=t.alt,a=t.caption,i=t.align,l=t.href,u=t.width,b=t.height,m=u||b?{width:u,height:b}:{},d=Object(c.createElement)("img",Object(o.a)({src:n,alt:r},m)),h={};return u?h={width:u}:"left"!==i&&"right"!==i||(h={maxWidth:"50%"}),Object(c.createElement)("figure",{className:i?"align".concat(i):null,style:h},l?Object(c.createElement)("a",{href:l},d):d,!s.RichText.isEmpty(a)&&Object(c.createElement)(s.RichText.Content,{tagName:"figcaption",value:a}))}}],m=n(7),d=n(12),h=n(11),p=n(13),g=n(14),f=n(5),v=n(15),O=n(23),j=n(2),y=n(35),_=n(3),k=n(8),C=n(19),w=n(4),E=n(26),x=n(43),S=n(46),T=n(61),B=Object(c.createElement)(_.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(_.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(c.createElement)(_.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(c.createElement)(_.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"}));var N=function(e){function t(){var e;return Object(d.a)(this,t),(e=Object(p.a)(this,Object(g.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(f.a)(e)),e.calculateSize=e.calculateSize.bind(Object(f.a)(e)),e}return Object(v.a)(t,e),Object(h.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=j.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e,t,n,r,o,a=(e=this.image,t=this.container,n=t.clientWidth,r=e.width>n,o=e.height/e.width,{width:r?n:e.width,height:r?n*o:e.height}),c=a.width,i=a.height;this.setState({width:c,height:i})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object(c.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(c.Component),M=Object(k.withGlobalEvents)({resize:"calculateSize"})(N),A=["image"],R=function(e,t){return!e&&Object(y.isBlobURL)(t)},I=function(e){e.stopPropagation()},L=function(e){[C.LEFT,C.DOWN,C.RIGHT,C.UP,C.BACKSPACE,C.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},z=function(e){var t=e.advancedOptions,n=e.linkDestination,o=e.mediaLinks,a=e.onChangeUrl,i=e.url,l=Object(c.useState)(!1),u=Object(O.a)(l,2),b=u[0],m=u[1],d=Object(c.useCallback)((function(){m(!0)})),h=Object(c.useState)(!1),p=Object(O.a)(h,2),g=p[0],f=p[1],v=Object(c.useState)(null),y=Object(O.a)(v,2),k=y[0],C=y[1],w=Object(c.useCallback)((function(){"media"!==n&&"attachment"!==n||C(""),f(!0)})),E=Object(c.useCallback)((function(){f(!1)})),x=Object(c.useCallback)((function(){C(null),E(),m(!1)})),S=Object(c.useRef)(null),T=Object(c.useCallback)((function(){return function(e){var t=S.current;t&&t.contains(e.target)||(m(!1),C(null),E())}})),B=Object(c.useCallback)((function(){return function(e){k&&a(k),E(),C(null),e.preventDefault()}})),N=Object(c.useCallback)((function(){x(),a("")})),M=null!==k?k:i,A=(Object(j.find)(o,["linkDestination",n])||{}).title;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(_.IconButton,{icon:"admin-links",className:"components-toolbar__control",label:i?Object(r.__)("Edit link"):Object(r.__)("Insert link"),"aria-expanded":b,onClick:d}),b&&Object(c.createElement)(s.URLPopover,{onClickOutside:T(),onClose:x,renderSettings:function(){return t},additionalControls:!M&&Object(c.createElement)(_.NavigableMenu,null,Object(j.map)(o,(function(e){return Object(c.createElement)(_.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){C(null),a(e.url),E()}},e.title)})))},(!i||g)&&Object(c.createElement)(s.URLPopover.LinkEditor,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",value:M,onChangeInputValue:C,onKeyDown:L,onKeyPress:I,onSubmit:B(),autocompleteRef:S}),i&&!g&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(s.URLPopover.LinkViewer,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:I,url:i,onEditLinkClick:w,urlLabel:A}),Object(c.createElement)(_.IconButton,{icon:"no",label:Object(r.__)("Remove link"),onClick:N}))))},P=function(e){function t(e){var n,r=e.attributes;return Object(d.a)(this,t),(n=Object(p.a)(this,Object(g.a)(t).apply(this,arguments))).updateAlt=n.updateAlt.bind(Object(f.a)(n)),n.updateAlignment=n.updateAlignment.bind(Object(f.a)(n)),n.onFocusCaption=n.onFocusCaption.bind(Object(f.a)(n)),n.onImageClick=n.onImageClick.bind(Object(f.a)(n)),n.onSelectImage=n.onSelectImage.bind(Object(f.a)(n)),n.onSelectURL=n.onSelectURL.bind(Object(f.a)(n)),n.updateImage=n.updateImage.bind(Object(f.a)(n)),n.updateWidth=n.updateWidth.bind(Object(f.a)(n)),n.updateHeight=n.updateHeight.bind(Object(f.a)(n)),n.updateDimensions=n.updateDimensions.bind(Object(f.a)(n)),n.onSetHref=n.onSetHref.bind(Object(f.a)(n)),n.onSetLinkClass=n.onSetLinkClass.bind(Object(f.a)(n)),n.onSetLinkRel=n.onSetLinkRel.bind(Object(f.a)(n)),n.onSetNewTab=n.onSetNewTab.bind(Object(f.a)(n)),n.getFilename=n.getFilename.bind(Object(f.a)(n)),n.toggleIsEditing=n.toggleIsEditing.bind(Object(f.a)(n)),n.onUploadError=n.onUploadError.bind(Object(f.a)(n)),n.onImageError=n.onImageError.bind(Object(f.a)(n)),n.getLinkDestinations=n.getLinkDestinations.bind(Object(f.a)(n)),n.state={captionFocused:!1,isEditing:!r.url},n}return Object(v.a)(t,e),Object(h.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=n.id,c=n.url,i=void 0===c?"":c;if(R(a,i)){var l=Object(y.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(t){var n=Object(O.a)(t,1)[0];e.onSelectImage(n)},allowedTypes:A,onError:function(t){o.createErrorNotice(t),e.setState({isEditing:!0})}})}}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.id,r=t.url,o=void 0===r?"":r,a=this.props.attributes,c=a.id,i=a.url,l=void 0===i?"":i;R(n,o)&&!R(c,l)&&Object(y.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e),this.setState({isEditing:!0})}},{key:"onSelectImage",value:function(e){if(e&&e.url){this.setState({isEditing:!1});var t,n,r,o=this.props.attributes,a=o.id,c=o.url,i=o.alt,l=o.caption,s=(t=e,(n=Object(j.pick)(t,["alt","id","link","caption"])).url=Object(j.get)(t,["sizes","large","url"])||Object(j.get)(t,["media_details","sizes","large","source_url"])||t.url,n);R(a,c)&&(i&&(s=Object(j.omit)(s,["alt"])),l&&(s=Object(j.omit)(s,["caption"]))),r=e.id&&e.id===a?{url:c}:{width:void 0,height:void 0,sizeSlug:"large"},this.props.setAttributes(Object(m.a)({},s,r))}else this.props.setAttributes({url:void 0,alt:void 0,id:void 0,caption:void 0})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0,sizeSlug:"large"}),this.setState({isEditing:!1})}},{key:"onImageError",value:function(e){var t=Object(T.a)({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetHref",value:function(e){var t,n=this.getLinkDestinations();this.props.attributes.linkDestination===(t=e?(Object(j.find)(n,(function(t){return t.url===e}))||{linkDestination:"custom"}).linkDestination:"none")?this.props.setAttributes({href:e}):this.props.setAttributes({linkDestination:t,href:e})}},{key:"onSetLinkClass",value:function(e){this.props.setAttributes({linkClass:e})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Object(m.a)({},t,{align:e}))}},{key:"updateImage",value:function(e){var t=this.props.image,n=Object(j.get)(t,["media_details","sizes",e,"source_url"]);if(!n)return null;this.props.setAttributes({url:n,width:void 0,height:void 0,sizeSlug:e})}},{key:"updateWidth",value:function(e){this.props.setAttributes({width:parseInt(e,10)})}},{key:"updateHeight",value:function(e){this.props.setAttributes({height:parseInt(e,10)})}},{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.setAttributes({width:t,height:n})}}},{key:"getFilename",value:function(e){var t=Object(E.getPath)(e);if(t)return Object(j.last)(t.split("/"))}},{key:"getLinkDestinations",value:function(){return[{linkDestination:"media",title:Object(r.__)("Media File"),url:this.props.image&&this.props.image.source_url||this.props.attributes.url,icon:B},{linkDestination:"attachment",title:Object(r.__)("Attachment Page"),url:this.props.image&&this.props.image.link,icon:Object(c.createElement)(_.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(_.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(c.createElement)(_.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}]}},{key:"toggleIsEditing",value:function(){this.setState({isEditing:!this.state.isEditing}),this.state.isEditing?Object(S.speak)(Object(r.__)("You are now viewing the image in the image block.")):Object(S.speak)(Object(r.__)("You are now editing the image in the image block."))}},{key:"getImageSizeOptions",value:function(){var e=this.props.imageSizes;return Object(j.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}},{key:"render",value:function(){var e=this,t=this.state.isEditing,n=this.props,o=n.attributes,i=n.setAttributes,u=n.isLargeViewport,b=n.isSelected,m=n.className,d=n.maxWidth,h=n.noticeUI,p=n.isRTL,g=n.onResizeStart,f=n.onResizeStop,v=o.url,O=o.alt,k=o.caption,C=o.align,w=o.id,E=o.href,x=o.rel,S=o.linkClass,T=o.linkDestination,N=o.width,R=o.height,P=o.linkTarget,H=o.sizeSlug,V=function(e,t){return t&&!e&&!Object(y.isBlobURL)(t)}(w,v),D=Object(c.createElement)(_.SVG,{width:20,height:20,viewBox:"0 0 20 20"},Object(c.createElement)(_.Rect,{x:11,y:3,width:7,height:5,rx:1}),Object(c.createElement)(_.Rect,{x:2,y:12,width:7,height:5,rx:1}),Object(c.createElement)(_.Path,{d:"M13,12h1a3,3,0,0,1-3,3v2a5,5,0,0,0,5-5h1L15,9Z"}),Object(c.createElement)(_.Path,{d:"M4,8H3l2,3L7,8H6A3,3,0,0,1,9,5V3A5,5,0,0,0,4,8Z"})),F=Object(c.createElement)(s.BlockControls,null,Object(c.createElement)(s.BlockAlignmentToolbar,{value:C,onChange:this.updateAlignment}),v&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(_.Toolbar,null,Object(c.createElement)(_.IconButton,{className:l()("components-icon-button components-toolbar__control",{"is-active":this.state.isEditing}),label:Object(r.__)("Edit image"),"aria-pressed":this.state.isEditing,onClick:this.toggleIsEditing,icon:D})),Object(c.createElement)(_.Toolbar,null,Object(c.createElement)(z,{url:E||"",onChangeUrl:this.onSetHref,mediaLinks:this.getLinkDestinations(),linkDestination:T,advancedOptions:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(_.ToggleControl,{label:Object(r.__)("Open in New Tab"),onChange:this.onSetNewTab,checked:"_blank"===P}),Object(c.createElement)(_.TextControl,{label:Object(r.__)("Link CSS Class"),value:S||"",onKeyPress:I,onKeyDown:L,onChange:this.onSetLinkClass}),Object(c.createElement)(_.TextControl,{label:Object(r.__)("Link Rel"),value:x||"",onChange:this.onSetLinkRel,onKeyPress:I,onKeyDown:L}))})))),U=V?v:void 0,q={title:v?Object(r.__)("Edit image"):Object(r.__)("Image"),instructions:Object(r.__)("Upload an image file, pick one from your media library, or add one with a URL.")},W=!!v&&Object(c.createElement)("img",{alt:Object(r.__)("Edit image"),title:Object(r.__)("Edit image"),className:"edit-image-preview",src:v}),G=Object(c.createElement)(s.MediaPlaceholder,{icon:Object(c.createElement)(s.BlockIcon,{icon:B}),className:m,labels:q,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onDoubleClick:this.toggleIsEditing,onCancel:!!v&&this.toggleIsEditing,notices:h,onError:this.onUploadError,accept:"image/*",allowedTypes:A,value:{id:w,src:U},mediaPreview:W,dropZoneUIOnly:!t&&v});if(t||!v)return Object(c.createElement)(c.Fragment,null,F,G);var Z=l()(m,Object(a.a)({"is-transient":Object(y.isBlobURL)(v),"is-resized":!!N||!!R,"is-focused":b},"size-".concat(H),H)),K=-1===["wide","full"].indexOf(C)&&u,$=this.getImageSizeOptions(),Y=function(t,n){return Object(c.createElement)(s.InspectorControls,null,Object(c.createElement)(_.PanelBody,{title:Object(r.__)("Image Settings")},Object(c.createElement)(_.TextareaControl,{label:Object(r.__)("Alt Text (Alternative Text)"),value:O,onChange:e.updateAlt,help:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(_.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(r.__)("Describe the purpose of the image")),Object(r.__)("Leave empty if the image is purely decorative."))}),!Object(j.isEmpty)($)&&Object(c.createElement)(_.SelectControl,{label:Object(r.__)("Image Size"),value:H,options:$,onChange:e.updateImage}),K&&Object(c.createElement)("div",{className:"block-library-image__dimensions"},Object(c.createElement)("p",{className:"block-library-image__dimensions__row"},Object(r.__)("Image Dimensions")),Object(c.createElement)("div",{className:"block-library-image__dimensions__row"},Object(c.createElement)(_.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(r.__)("Width"),value:N||t||"",min:1,onChange:e.updateWidth}),Object(c.createElement)(_.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(r.__)("Height"),value:R||n||"",min:1,onChange:e.updateHeight})),Object(c.createElement)("div",{className:"block-library-image__dimensions__row"},Object(c.createElement)(_.ButtonGroup,{"aria-label":Object(r.__)("Image Size")},[25,50,75,100].map((function(r){var o=Math.round(t*(r/100)),a=Math.round(n*(r/100)),i=N===o&&R===a;return Object(c.createElement)(_.Button,{key:r,isSmall:!0,isPrimary:i,"aria-pressed":i,onClick:e.updateDimensions(o,a)},r,"%")}))),Object(c.createElement)(_.Button,{isSmall:!0,onClick:e.updateDimensions()},Object(r.__)("Reset"))))))};return Object(c.createElement)(c.Fragment,null,F,Object(c.createElement)("figure",{className:Z},Object(c.createElement)(M,{src:v,dirtynessTrigger:C},(function(t){var n,o=t.imageWidthWithinContainer,a=t.imageHeightWithinContainer,l=t.imageWidth,s=t.imageHeight,u=e.getFilename(v);n=O||(u?Object(r.sprintf)(Object(r.__)("This image has an empty alt attribute; its file name is %s"),u):Object(r.__)("This image has an empty alt attribute"));var b=Object(c.createElement)(c.Fragment,null,Object(c.createElement)("img",{src:v,alt:n,onDoubleClick:e.toggleIsEditing,onClick:e.onImageClick,onError:function(){return e.onImageError(v)}}),Object(y.isBlobURL)(v)&&Object(c.createElement)(_.Spinner,null));if(!K||!o)return Object(c.createElement)(c.Fragment,null,Y(l,s),Object(c.createElement)("div",{style:{width:N,height:R}},b));var m=N||o,h=R||a,j=l/s,k=l a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}}},W=q.name,G={title:Object(r.__)("Image"),description:Object(r.__)("Insert an image to make a visual statement."),icon:B,keywords:["img",Object(r.__)("photo")],example:{attributes:{sizeSlug:"large",url:"https://upload.wikimedia.org/wikipedia/commons/1/15/MtBlanc1.JPG",caption:Object(r.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(r._x)("Default","block style"),isDefault:!0},{name:"circle-mask",label:Object(r._x)("Circle Mask","block style")}],transforms:U,getEditWrapperProps:function(e){var t=e.align,n=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!n}},edit:H,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,i=n.caption,u=n.align,b=n.href,m=n.rel,d=n.linkClass,h=n.width,p=n.height,g=n.id,f=n.linkTarget,v=n.sizeSlug,O=l()((t={},Object(a.a)(t,"align".concat(u),u),Object(a.a)(t,"size-".concat(v),v),Object(a.a)(t,"is-resized",h||p),t)),j=Object(c.createElement)("img",{src:r,alt:o,className:g?"wp-image-".concat(g):null,width:h,height:p}),y=Object(c.createElement)(c.Fragment,null,b?Object(c.createElement)("a",{className:d,href:b,target:f,rel:m},j):j,!s.RichText.isEmpty(i)&&Object(c.createElement)(s.RichText.Content,{tagName:"figcaption",value:i}));return"left"===u||"right"===u||"center"===u?Object(c.createElement)("div",null,Object(c.createElement)("figure",{className:O},y)):Object(c.createElement)("figure",{className:O},y)},deprecated:b}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(7),c=n(0),i=n(2),l=n(16),s=n.n(l),u=n(9),b=n(6),m="image",d="video",h=50;function p(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}function g(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}var f={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},v=[{attributes:Object(a.a)({},f,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,n=t.backgroundType,r=t.contentAlign,a=t.customOverlayColor,i=t.dimRatio,l=t.focalPoint,u=t.hasParallax,h=t.overlayColor,f=t.title,v=t.url,O=Object(b.getColorClassName)("background-color",h),j=n===m?p(v):{};O||(j.backgroundColor=a),l&&!u&&(j.backgroundPosition="".concat(100*l.x,"% ").concat(100*l.y,"%"));var y=s()(g(i),O,Object(o.a)({"has-background-dim":0!==i,"has-parallax":u},"has-".concat(r,"-content"),"center"!==r));return Object(c.createElement)("div",{className:y,style:j},d===n&&v&&Object(c.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:v}),!b.RichText.isEmpty(f)&&Object(c.createElement)(b.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:f}))},migrate:function(e){return[Object(i.omit)(e,["title","contentAlign"]),[Object(u.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(r.__)("Write title…")})]]}},{attributes:Object(a.a)({},f,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,a=t.hasParallax,i=t.dimRatio,l=t.align,u=t.contentAlign,m=t.overlayColor,d=t.customOverlayColor,h=Object(b.getColorClassName)("background-color",m),f=p(n);h||(f.backgroundColor=d);var v=s()("wp-block-cover-image",g(i),h,Object(o.a)({"has-background-dim":0!==i,"has-parallax":a},"has-".concat(u,"-content"),"center"!==u),l?"align".concat(l):null);return Object(c.createElement)("div",{className:v,style:f},!b.RichText.isEmpty(r)&&Object(c.createElement)(b.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))},migrate:function(e){return[Object(i.omit)(e,["title","contentAlign","align"]),[Object(u.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(r.__)("Write title…")})]]}},{attributes:Object(a.a)({},f,{title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,a=t.dimRatio,i=t.align,l=p(n),u=s()("wp-block-cover-image",g(a),{"has-background-dim":0!==a,"has-parallax":o},i?"align".concat(i):null);return Object(c.createElement)("section",{className:u,style:l},Object(c.createElement)(b.RichText.Content,{tagName:"h2",value:r}))},migrate:function(e){return[Object(i.omit)(e,["title","contentAlign","align"]),[Object(u.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(r.__)("Write title…")})]]}}],O=n(12),j=n(11),y=n(13),_=n(14),k=n(5),C=n(15),w=n(23),E=n(229),x=n.n(E),S=n(49),T=n.n(S),B=n(3),N=n(8),M=n(4),A=Object(c.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(B.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"}),Object(c.createElement)(B.Path,{d:"M0 0h24v24H0z",fill:"none"})),R=["image","video"],I=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(r.__)("Write title…")}]];function L(){return L.fastAverageColor||(L.fastAverageColor=new x.a),L.fastAverageColor}var z=Object(N.withInstanceId)((function(e){var t=e.value,n=void 0===t?"":t,o=e.instanceId,a=e.onChange,i=Object(c.useState)(null),l=Object(w.a)(i,2),s=l[0],u=l[1],b=Object(c.useCallback)((function(e){var t=""!==e.target.value?parseInt(e.target.value,10):void 0;(isNaN(t)||t50){if(e&&e.attributes.dimRatio>50&&e.overlayColor.color===o.color)return;return o.color?void this.changeIsDarkIfRequired(T()(o.color).isDark()):void this.changeIsDarkIfRequired(!0)}if(!(e&&e.attributes.dimRatio<=50&&e.attributes.url===c)){var i;switch(r.backgroundType){case m:i=this.imageRef.current;break;case d:i=this.videoRef.current}i&&L().getColorAsync(i,(function(e){t.changeIsDarkIfRequired(e.isDark)}))}}},{key:"changeIsDarkIfRequired",value:function(e){this.state.isDark!==e&&this.setState({isDark:e})}}]),t}(c.Component),D=Object(N.compose)([Object(M.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object(b.withColors)({overlayColor:"background-color"}),B.withNotices,N.withInstanceId])(V);var F={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(u.createBlock)("core/cover",{title:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,o=e.id;return Object(u.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:d})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType;return!e.url||t===m},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(u.createBlock)("core/image",{caption:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType;return!e.url||t===d},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(u.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]};n.d(t,"metadata",(function(){return U})),n.d(t,"name",(function(){return q})),n.d(t,"settings",(function(){return W}));var U={name:"core/cover",category:"common",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"}}},q=U.name,W={title:Object(r.__)("Cover"),description:Object(r.__)("Add an image or video with a text overlay — great for headers."),icon:A,supports:{align:!0},example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(r.__)("Snow Patrol"),align:"center"}}]},transforms:F,save:function(e){var t=e.attributes,n=t.backgroundType,r=t.customOverlayColor,o=t.dimRatio,a=t.focalPoint,i=t.hasParallax,l=t.overlayColor,u=t.url,h=t.minHeight,f=Object(b.getColorClassName)("background-color",l),v=n===m?p(u):{};f||(v.backgroundColor=r),a&&!i&&(v.backgroundPosition="".concat(100*a.x,"% ").concat(100*a.y,"%")),v.minHeight=h||void 0;var O=s()(g(o),f,{"has-background-dim":0!==o,"has-parallax":i});return Object(c.createElement)("div",{className:O,style:v},d===n&&u&&Object(c.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(c.createElement)("div",{className:"wp-block-cover__inner-container"},Object(c.createElement)(b.InnerBlocks.Content,null)))},edit:D,deprecated:v}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(16),c=n.n(a),i=n(6),l=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,a=t.body,l=t.foot,s=t.backgroundColor;if(!r.length&&!a.length&&!l.length)return null;var u=Object(i.getColorClassName)("background-color",s),b=c()(u,{"has-fixed-layout":n,"has-background":!!u}),m=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(o.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(o.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,a=e.scope;return Object(o.createElement)(i.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?a:void 0})})))})))};return Object(o.createElement)("table",{className:b},Object(o.createElement)(m,{type:"head",rows:r}),Object(o.createElement)(m,{type:"body",rows:a}),Object(o.createElement)(m,{type:"foot",rows:l}))}}],s=n(10),u=n(7),b=n(12),m=n(11),d=n(13),h=n(14),p=n(5),g=n(15),f=n(3),v=n(17),O=n(2),j=["align"];function y(e,t,n){if(!t)return e;var r=Object(O.pick)(e,["head","body","foot"]),o=t.sectionName,a=t.rowIndex;return Object(O.mapValues)(r,(function(e,r){return o&&o!==r?e:e.map((function(e,o){return a&&a!==o?e:{cells:e.cells.map((function(e,a){return _({sectionName:r,columnIndex:a,rowIndex:o},t)?n(e):e}))}}))}))}function _(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}function k(e,t){var n=t.sectionName,r=t.rowIndex,o=t.columnCount,a=function(e){return E(e.head)?E(e.body)?E(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),c=void 0===o?Object(O.get)(a,["cells","length"]):o;return c?Object(s.a)({},n,[].concat(Object(v.a)(e[n].slice(0,r)),[{cells:Object(O.times)(c,(function(e){var t=Object(O.get)(a,["cells",e],{}),r=Object(O.pick)(t,j);return Object(u.a)({},r,{content:"",tag:"head"===n?"th":"td"})}))}],Object(v.a)(e[n].slice(r)))):e}function C(e,t){var n=t.columnIndex,r=Object(O.pick)(e,["head","body","foot"]);return Object(O.mapValues)(r,(function(e,t){return E(e)?e:e.map((function(e){return x(e)||e.cells.length0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.columnIndex;this.setState({selectedCell:null}),o(C(r,{columnIndex:a+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.sectionName,a=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.columnIndex,r=Object(O.pick)(e,["head","body","foot"]);return Object(O.mapValues)(r,(function(e){return E(e)?e:e.map((function(e){return{cells:e.cells.length>=n?e.cells.filter((function(e,t){return t!==n})):e.cells}})).filter((function(e){return e.cells.length}))}))}(n,{sectionName:o,columnIndex:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:Object(u.a)({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(r.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(r.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(r.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(r.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(r.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(r.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.name,r=e.rows;if(E(r))return null;var a="t".concat(n),l=this.state.selectedCell;return Object(o.createElement)(a,null,r.map((function(e,r){var a=e.cells;return Object(o.createElement)("tr",{key:r},a.map((function(e,a){var u=e.content,b=e.tag,m=e.scope,d=e.align,h={sectionName:n,rowIndex:r,columnIndex:a},p=_(h,l),g=c()(Object(s.a)({"is-selected":p},"has-text-align-".concat(d),d));return Object(o.createElement)(b,{key:a,className:g,scope:"th"===b?m:void 0,onClick:function(e){var t=e&&e.target&&e.target.querySelector(".".concat("wp-block-table__cell-content"));t&&t.focus()}},Object(o.createElement)(i.RichText,{className:"wp-block-table__cell-content",value:u,onChange:t.onChange,unstableOnFocus:t.createOnFocus(h)}))})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,a=t.className,l=t.backgroundColor,s=t.setBackgroundColor,u=this.state,b=u.initialRowCount,m=u.initialColumnCount,d=n.hasFixedLayout,h=n.head,p=n.body,g=n.foot,v=E(h)&&E(p)&&E(g),O=this.renderSection;if(v)return Object(o.createElement)(f.Placeholder,{label:Object(r.__)("Table"),icon:Object(o.createElement)(i.BlockIcon,{icon:S,showColors:!0}),instructions:Object(r.__)("Insert a table for sharing data."),isColumnLayout:!0},Object(o.createElement)("form",{className:"wp-block-table__placeholder-form",onSubmit:this.onCreateTable},Object(o.createElement)(f.TextControl,{type:"number",label:Object(r.__)("Column Count"),value:m,onChange:this.onChangeInitialColumnCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(o.createElement)(f.TextControl,{type:"number",label:Object(r.__)("Row Count"),value:b,onChange:this.onChangeInitialRowCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(o.createElement)(f.Button,{className:"wp-block-table__placeholder-button",isDefault:!0,type:"submit"},Object(r.__)("Create Table"))));var j=c()(l.class,{"has-fixed-layout":d,"has-background":!!l.color});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.BlockControls,null,Object(o.createElement)(f.Toolbar,null,Object(o.createElement)(f.DropdownMenu,{hasArrowIndicator:!0,icon:"editor-table",label:Object(r.__)("Edit table"),controls:this.getTableControls()})),Object(o.createElement)(i.AlignmentToolbar,{label:Object(r.__)("Change column alignment"),alignmentControls:B,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(o.createElement)(i.InspectorControls,null,Object(o.createElement)(f.PanelBody,{title:Object(r.__)("Table Settings"),className:"blocks-table-settings"},Object(o.createElement)(f.ToggleControl,{label:Object(r.__)("Fixed width table cells"),checked:!!d,onChange:this.onChangeFixedLayout}),Object(o.createElement)(f.ToggleControl,{label:Object(r.__)("Header section"),checked:!(!h||!h.length),onChange:this.onToggleHeaderSection}),Object(o.createElement)(f.ToggleControl,{label:Object(r.__)("Footer section"),checked:!(!g||!g.length),onChange:this.onToggleFooterSection})),Object(o.createElement)(i.PanelColorSettings,{title:Object(r.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:l.color,onChange:s,label:Object(r.__)("Background Color"),disableCustomColors:!0,colors:T}]})),Object(o.createElement)("figure",{className:a},Object(o.createElement)("table",{className:j},Object(o.createElement)(O,{name:"head",rows:h}),Object(o.createElement)(O,{name:"body",rows:p}),Object(o.createElement)(O,{name:"foot",rows:g}))))}}]),t}(o.Component),A=N("backgroundColor")(M);var R=n(9),I={tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:Object(R.getPhrasingContentSchema)(),attributes:["scope"]},td:{allowEmpty:!0,children:Object(R.getPhrasingContentSchema)()}}}},L={from:[{type:"raw",selector:"table",schema:{table:{children:{thead:{allowEmpty:!0,children:I},tfoot:{allowEmpty:!0,children:I},tbody:{allowEmpty:!0,children:I}}}}}]};n.d(t,"metadata",(function(){return z})),n.d(t,"name",(function(){return P})),n.d(t,"settings",(function(){return H}));var z={name:"core/table",category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}}},P=z.name,H={title:Object(r.__)("Table"),description:Object(r.__)("Insert a table — perfect for sharing charts and data."),icon:S,example:{attributes:{head:[{cells:[{content:Object(r.__)("Version"),tag:"th"},{content:Object(r.__)("Jazz Musician"),tag:"th"},{content:Object(r.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(r.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(r.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(r.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(r._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(r.__)("Stripes")}],supports:{align:!0},transforms:L,edit:A,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,a=t.body,l=t.foot,u=t.backgroundColor;if(!r.length&&!a.length&&!l.length)return null;var b=Object(i.getColorClassName)("background-color",u),m=c()(b,{"has-fixed-layout":n,"has-background":!!b}),d=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(o.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(o.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,a=e.scope,l=e.align,u=c()(Object(s.a)({},"has-text-align-".concat(l),l));return Object(o.createElement)(i.RichText.Content,{className:u||void 0,"data-align":l,tagName:r,value:n,key:t,scope:"th"===r?a:void 0})})))})))};return Object(o.createElement)("figure",null,Object(o.createElement)("table",{className:m},Object(o.createElement)(d,{type:"head",rows:r}),Object(o.createElement)(d,{type:"body",rows:a}),Object(o.createElement)(d,{type:"foot",rows:l})))},deprecated:l}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(18),a=n(23),c=n(12),i=n(11),l=n(13),s=n(14),u=n(5),b=n(15),m=n(0),d=n(16),h=n.n(d),p=n(35),g=n(3),f=n(8),v=n(4),O=n(6),j=Object(m.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(m.createElement)(g.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(m.createElement)(g.Path,{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}));function y(e){var t=e.hrefs,n=e.openInNewWindow,o=e.showDownloadButton,a=e.changeLinkDestinationOption,c=e.changeOpenInNewWindow,i=e.changeShowDownloadButton,l=t.href,s=t.textLinkHref,u=t.attachmentPage,b=[{value:l,label:Object(r.__)("URL")}];return u&&(b=[{value:l,label:Object(r.__)("Media File")},{value:u,label:Object(r.__)("Attachment page")}]),Object(m.createElement)(m.Fragment,null,Object(m.createElement)(O.InspectorControls,null,Object(m.createElement)(g.PanelBody,{title:Object(r.__)("Text link settings")},Object(m.createElement)(g.SelectControl,{label:Object(r.__)("Link To"),value:s,options:b,onChange:a}),Object(m.createElement)(g.ToggleControl,{label:Object(r.__)("Open in new tab"),checked:n,onChange:c})),Object(m.createElement)(g.PanelBody,{title:Object(r.__)("Download button settings")},Object(m.createElement)(g.ToggleControl,{label:Object(r.__)("Show download button"),checked:o,onChange:i}))))}var _=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(u.a)(e)),e.confirmCopyURL=e.confirmCopyURL.bind(Object(u.a)(e)),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(u.a)(e)),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(u.a)(e)),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(u.a)(e)),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(u.a)(e)),e.onUploadError=e.onUploadError.bind(Object(u.a)(e)),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(b.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,o=t.mediaUpload,c=t.noticeOperations,i=t.setAttributes,l=n.downloadButtonText,s=n.href;Object(p.isBlobURL)(s)&&(o({filesList:[Object(p.getBlobByURL)(s)],onFileChange:function(t){var n=Object(a.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),c.createErrorNotice(t)}}),Object(p.revokeBlobURL)(s));void 0===l&&i({downloadButtonText:Object(r._x)("Download","button label")})}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"confirmCopyURL",value:function(){this.setState({showCopyConfirmation:!0})}},{key:"resetCopyConfirmation",value:function(){this.setState({showCopyConfirmation:!1})}},{key:"changeLinkDestinationOption",value:function(e){this.props.setAttributes({textLinkHref:e})}},{key:"changeOpenInNewWindow",value:function(e){this.props.setAttributes({textLinkTarget:!!e&&"_blank"})}},{key:"changeShowDownloadButton",value:function(e){this.props.setAttributes({showDownloadButton:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,a=t.isSelected,c=t.attributes,i=t.setAttributes,l=t.noticeUI,s=t.media,u=c.fileName,b=c.href,d=c.textLinkHref,f=c.textLinkTarget,v=c.showDownloadButton,_=c.downloadButtonText,k=c.id,C=this.state,w=C.hasError,E=C.showCopyConfirmation,x=s&&s.link;if(!b||w)return Object(m.createElement)(O.MediaPlaceholder,{icon:Object(m.createElement)(O.BlockIcon,{icon:j}),labels:{title:Object(r.__)("File"),instructions:Object(r.__)("Upload a file or pick one from your media library.")},onSelect:this.onSelectFile,notices:l,onError:this.onUploadError,accept:"*"});var S=h()(n,{"is-transient":Object(p.isBlobURL)(b)});return Object(m.createElement)(m.Fragment,null,Object(m.createElement)(y,Object(o.a)({hrefs:{href:b,textLinkHref:d,attachmentPage:x}},{openInNewWindow:!!f,showDownloadButton:v,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object(m.createElement)(O.BlockControls,null,Object(m.createElement)(O.MediaUploadCheck,null,Object(m.createElement)(g.Toolbar,null,Object(m.createElement)(O.MediaUpload,{onSelect:this.onSelectFile,value:k,render:function(e){var t=e.open;return Object(m.createElement)(g.IconButton,{className:"components-toolbar__control",label:Object(r.__)("Edit file"),onClick:t,icon:"edit"})}})))),Object(m.createElement)(g.Animate,{type:Object(p.isBlobURL)(b)?"loading":null},(function(t){var n=t.className;return Object(m.createElement)("div",{className:h()(S,n)},Object(m.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(m.createElement)(O.RichText,{wrapperClassName:"wp-block-file__textlink",tagName:"div",value:u,placeholder:Object(r.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return i({fileName:e})}}),v&&Object(m.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(m.createElement)(O.RichText,{tagName:"div",className:"wp-block-file__button",value:_,withoutInteractiveFormatting:!0,placeholder:Object(r.__)("Add text…"),onChange:function(e){return i({downloadButtonText:e})}}))),a&&Object(m.createElement)(g.ClipboardButton,{isDefault:!0,text:b,className:"wp-block-file__copy-url-button",onCopy:e.confirmCopyURL,onFinishCopy:e.resetCopyConfirmation,disabled:Object(p.isBlobURL)(b)},E?Object(r.__)("Copied!"):Object(r.__)("Copy URL")))})))}}]),t}(m.Component),k=Object(f.compose)([Object(v.withSelect)((function(e,t){var n=e("core").getMedia,r=(0,e("core/block-editor").getSettings)().__experimentalMediaUpload,o=t.attributes.id;return{media:void 0===o?void 0:n(o),mediaUpload:r}})),g.withNotices])(_);var C=n(2),w=n(9),E={from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var n=Object(p.createBlobURL)(e);t.push(Object(w.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(w.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(w.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(w.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(v.select)("core").getMedia)(t);return!!n&&Object(C.includes)(n.mime_type,"audio")},transform:function(e){return Object(w.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(v.select)("core").getMedia)(t);return!!n&&Object(C.includes)(n.mime_type,"video")},transform:function(e){return Object(w.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(v.select)("core").getMedia)(t);return!!n&&Object(C.includes)(n.mime_type,"image")},transform:function(e){return Object(w.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]};n.d(t,"metadata",(function(){return x})),n.d(t,"name",(function(){return S})),n.d(t,"settings",(function(){return T}));var x={name:"core/file",category:"common",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"}}},S=x.name,T={title:Object(r.__)("File"),description:Object(r.__)("Add a link to a downloadable file."),icon:j,keywords:[Object(r.__)("document"),Object(r.__)("pdf")],supports:{align:!0},transforms:E,edit:k,save:function(e){var t=e.attributes,n=t.href,r=t.fileName,o=t.textLinkHref,a=t.textLinkTarget,c=t.showDownloadButton,i=t.downloadButtonText;return n&&Object(m.createElement)("div",null,!O.RichText.isEmpty(r)&&Object(m.createElement)("a",{href:o,target:a,rel:!!a&&"noreferrer noopener"},Object(m.createElement)(O.RichText.Content,{value:r})),c&&Object(m.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(m.createElement)(O.RichText.Content,{value:i})))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6),c=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content;return Object(o.createElement)(a.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}],i=n(10),l=n(16),s=n.n(l);var u=n(3),b=Object(o.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(u.Path,{d:"M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z"}));var m=n(9),d={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(m.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(m.createBlock)("core/paragraph",e)}}]};n.d(t,"metadata",(function(){return h})),n.d(t,"name",(function(){return p})),n.d(t,"settings",(function(){return g}));var h={name:"core/verse",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}}},p=h.name,g={title:Object(r.__)("Verse"),description:Object(r.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:b,example:{attributes:{content:Object(r.__)("WHAT was he doing, the great god Pan,")+"
    "+Object(r.__)(" Down in the reeds by the river?")+"
    "+Object(r.__)("Spreading ruin and scattering ban,")+"
    "+Object(r.__)("Splashing and paddling with hoofs of a goat,")+"
    "+Object(r.__)("And breaking the golden lilies afloat")+"
    "+Object(r.__)(" With the dragon-fly on the river.")}},keywords:[Object(r.__)("poetry")],transforms:d,deprecated:c,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,n=e.setAttributes,c=e.className,l=e.mergeBlocks,u=t.textAlign,b=t.content;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(a.BlockControls,null,Object(o.createElement)(a.AlignmentToolbar,{value:u,onChange:function(e){n({textAlign:e})}})),Object(o.createElement)(a.RichText,{tagName:"pre",value:b,onChange:function(e){n({content:e})},placeholder:Object(r.__)("Write…"),wrapperClassName:c,className:s()(Object(i.a)({},"has-text-align-".concat(u),u)),onMerge:l}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,c=s()(Object(i.a)({},"has-text-align-".concat(n),n));return Object(o.createElement)(a.RichText.Content,{tagName:"pre",className:c,value:r})}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(12),a=n(11),c=n(13),i=n(14),l=n(5),s=n(15),u=n(0),b=n(3),m=n(4),d=n(6),h=n(55),p=n.n(h),g=n(32),f=n.n(g),v=n(8),O=n(2),j=n(41),y=n.n(j),_=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).containerRef=Object(u.createRef)(),e.formRef=Object(u.createRef)(),e.widgetContentRef=Object(u.createRef)(),e.triggerWidgetEvent=e.triggerWidgetEvent.bind(Object(l.a)(e)),e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){this.triggerWidgetEvent("widget-added"),this.previousFormData=new window.FormData(this.formRef.current)}},{key:"shouldComponentUpdate",value:function(e){e.form!==this.props.form&&this.widgetContentRef.current&&(this.widgetContentRef.current.innerHTML=e.form,this.triggerWidgetEvent("widget-updated"),this.previousFormData=new window.FormData(this.formRef.current));return!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,r=t.idBase,o=t.widgetNumber,a=t.form;return Object(u.createElement)("div",{className:"widget open",ref:this.containerRef},Object(u.createElement)("div",{className:"widget-inside"},Object(u.createElement)("form",{ref:this.formRef,method:"post",onBlur:function(){e.shouldTriggerInstanceUpdate()&&e.props.onInstanceChange(e.retrieveUpdatedInstance())}},Object(u.createElement)("div",{ref:this.widgetContentRef,className:"widget-content",dangerouslySetInnerHTML:{__html:a}}),Object(u.createElement)("input",{type:"hidden",name:"widget-id",className:"widget-id",value:n}),Object(u.createElement)("input",{type:"hidden",name:"id_base",className:"id_base",value:r}),Object(u.createElement)("input",{type:"hidden",name:"widget_number",className:"widget_number",value:o}),Object(u.createElement)("input",{type:"hidden",name:"multi_number",className:"multi_number",value:""}),Object(u.createElement)("input",{type:"hidden",name:"add_new",className:"add_new",value:""}))))}},{key:"shouldTriggerInstanceUpdate",value:function(){if(!this.formRef.current)return!1;if(!this.previousFormData)return!0;var e=new window.FormData(this.formRef.current),t=Array.from(e.keys()),n=Array.from(this.previousFormData.keys());if(t.length!==n.length)return!0;for(var r=0,o=t;r1?a[h]=p:a[h]=p[0]}}}catch(e){s=!0,u=e}finally{try{l||null==m.return||m.return()}finally{if(s)throw u}}return a}}}]),t}(u.Component),k=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).state={form:null,idBase:null},e.instanceUpdating=null,e.onInstanceChange=e.onInstanceChange.bind(Object(l.a)(e)),e.requestWidgetUpdater=e.requestWidgetUpdater.bind(Object(l.a)(e)),e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.requestWidgetUpdater()}},{key:"componentDidUpdate",value:function(e){e.instance!==this.props.instance&&this.instanceUpdating!==this.props.instance&&this.requestWidgetUpdater(),this.instanceUpdating===this.props.instance&&(this.instanceUpdating=null)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,o=t.identifier,a=this.state,c=a.id,i=a.idBase,l=a.form;return o?l?Object(u.createElement)("div",{className:"wp-block-legacy-widget__edit-container",style:{display:this.props.isVisible?"block":"none"}},Object(u.createElement)(_,{ref:function(t){e.widgetEditDomManagerRef=t},onInstanceChange:this.onInstanceChange,widgetNumber:-1*n,id:c,idBase:i,form:l})):null:Object(r.__)("Not a valid widget.")}},{key:"onInstanceChange",value:function(e){var t=this;this.requestWidgetUpdater(e,(function(e){t.instanceUpdating=e.instance,t.props.onInstanceChange(e.instance)}))}},{key:"requestWidgetUpdater",value:function(e,t){var n=this,r=this.props,o=r.identifier,a=r.instanceId,c=r.instance;o&&f()({path:"/wp/v2/widgets/".concat(o,"/"),data:{identifier:o,instance:c,id_to_use:-1*a,instance_changes:e},method:"POST"}).then((function(e){n.isStillMounted&&(n.setState({form:e.form,idBase:e.id_base,id:e.id}),t&&t(e))}))}}]),t}(u.Component),C=Object(v.withInstanceId)(k);function w(e){var t,n=e.availableLegacyWidgets,o=e.currentWidget,a=e.hasPermissionsToManageWidgets,c=e.onChangeWidget,i=Object(u.useMemo)((function(){return Object(O.pickBy)(n,(function(e){return!e.isHidden}))}),[n]);return a||(t=Object(r.__)("You don't have permissions to use widgets on this site.")),Object(O.isEmpty)(i)&&(t=Object(r.__)("There are no widgets available.")),t=Object(u.createElement)(b.SelectControl,{label:Object(r.__)("Select a legacy widget to display:"),value:o||"none",onChange:c,options:[{value:"none",label:"Select widget"}].concat(Object(O.map)(i,(function(e,t){return{value:t,label:e.name}})))}),Object(u.createElement)(b.Placeholder,{icon:Object(u.createElement)(d.BlockIcon,{icon:"admin-customizer"}),label:Object(r.__)("Legacy Widget")},t)}var E=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).state={isPreview:!1},e.switchToEdit=e.switchToEdit.bind(Object(l.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(l.a)(e)),e.changeWidget=e.changeWidget.bind(Object(l.a)(e)),e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,o=t.availableLegacyWidgets,a=t.hasPermissionsToManageWidgets,c=t.setAttributes,i=this.state.isPreview,l=n.identifier,s=n.isCallbackWidget,m=l&&o[l];if(!m)return Object(u.createElement)(w,{availableLegacyWidgets:o,currentWidget:l,hasPermissionsToManageWidgets:a,onChangeWidget:function(e){return c({instance:{},identifier:e,isCallbackWidget:o[e].isCallbackWidget})}});var h=Object(u.createElement)(d.InspectorControls,null,Object(u.createElement)(b.PanelBody,{title:m.name},m.description));return a?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(d.BlockControls,null,Object(u.createElement)(b.Toolbar,null,!m.isHidden&&Object(u.createElement)(b.IconButton,{onClick:this.changeWidget,label:Object(r.__)("Change widget"),icon:"update"}),!s&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(b.Button,{className:"components-tab-button ".concat(i?"":"is-active"),onClick:this.switchToEdit},Object(u.createElement)("span",null,Object(r.__)("Edit"))),Object(u.createElement)(b.Button,{className:"components-tab-button ".concat(i?"is-active":""),onClick:this.switchToPreview},Object(u.createElement)("span",null,Object(r.__)("Preview")))))),h,!s&&Object(u.createElement)(C,{isVisible:!i,identifier:n.identifier,instance:n.instance,onInstanceChange:function(t){e.props.setAttributes({instance:t})}}),(i||s)&&this.renderWidgetPreview()):Object(u.createElement)(u.Fragment,null,h,this.renderWidgetPreview())}},{key:"changeWidget",value:function(){this.switchToEdit(),this.props.setAttributes({instance:{},identifier:void 0})}},{key:"switchToEdit",value:function(){this.setState({isPreview:!1})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"renderWidgetPreview",value:function(){var e=this.props.attributes;return Object(u.createElement)(p.a,{className:"wp-block-legacy-widget__preview",block:"core/legacy-widget",attributes:e})}}]),t}(u.Component),x=Object(m.withSelect)((function(e){var t=e("core/block-editor").getSettings(),n=t.availableLegacyWidgets;return{hasPermissionsToManageWidgets:t.hasPermissionsToManageWidgets,availableLegacyWidgets:n}}))(E),S=Object(u.createElement)(b.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(b.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(u.createElement)(b.G,null,Object(u.createElement)(b.Path,{d:"M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"})));n.d(t,"name",(function(){return T})),n.d(t,"settings",(function(){return B}));var T="core/legacy-widget",B={title:Object(r.__)("Legacy Widget (Experimental)"),description:Object(r.__)("Display a legacy widget."),icon:S,category:"widgets",supports:{html:!1,customClassName:!1},edit:x}},function(e,t,n){"use strict";n.r(t);var r=n(1),o="is-style-".concat("solid-color"),a=n(7),c=n(10),i=n(0),l=n(16),s=n.n(l),u=n(2),b=n(6),m=n(4),d={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},h=[{attributes:d,save:function(e){var t,n,r=e.attributes,a=r.mainColor,l=r.customMainColor,d=r.textColor,h=r.customTextColor,p=r.value,g=r.citation,f=r.className;if(Object(u.includes)(f,o))(t=Object(b.getColorClassName)("background-color",a))||(n={backgroundColor:l});else if(l)n={borderColor:l};else if(a){var v=Object(u.get)(Object(m.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(b.getColorObjectByAttributeValues)(v,a).color}}var O=Object(b.getColorClassName)("color",d),j=d||h?s()("has-text-color",Object(c.a)({},O,O)):void 0,y=O?void 0:{color:h};return Object(i.createElement)("figure",{className:t,style:n},Object(i.createElement)("blockquote",{className:j,style:y},Object(i.createElement)(b.RichText.Content,{value:p,multiline:!0}),!b.RichText.isEmpty(g)&&Object(i.createElement)(b.RichText.Content,{tagName:"cite",value:g})))}},{attributes:Object(a.a)({},d),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(i.createElement)("blockquote",null,Object(i.createElement)(b.RichText.Content,{value:n,multiline:!0}),!b.RichText.isEmpty(r)&&Object(i.createElement)(b.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Object(a.a)({},d,{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object(i.createElement)("blockquote",{className:"align".concat(o)},Object(i.createElement)(b.RichText.Content,{value:n,multiline:!0}),!b.RichText.isEmpty(r)&&Object(i.createElement)(b.RichText.Content,{tagName:"footer",value:r}))}}],p=n(18),g=n(12),f=n(11),v=n(13),O=n(14),j=n(5),y=n(15),_=function(e){function t(e){var n;return Object(g.a)(this,t),(n=Object(v.a)(this,Object(O.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(j.a)(n)),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(j.a)(n)),n}return Object(y.a)(t,e),Object(f.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,a=t.setTextColor,c=t.setMainColor,i=t.className,l=Object(u.includes)(i,o),s=!r.color||this.wasTextColorAutomaticallyComputed,b=l&&s&&e;c(e),b&&(this.wasTextColorAutomaticallyComputed=!0,a(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.mainColor,a=e.textColor,l=e.setAttributes,m=e.isSelected,d=e.className,h=t.value,g=t.citation,f=Object(u.includes)(d,o),v=f?{backgroundColor:n.color}:{borderColor:n.color},O=s()(d,Object(c.a)({"has-background":f&&n.color},n.class,f&&n.class)),j={color:a.color},y=a.color&&s()("has-text-color",Object(c.a)({},a.class,a.class));return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("figure",{style:v,className:O},Object(i.createElement)("blockquote",{style:j,className:y},Object(i.createElement)(b.RichText,{multiline:!0,value:h,onChange:function(e){return l({value:e})},placeholder:Object(r.__)("Write quote…"),wrapperClassName:"block-library-pullquote__content"}),(!b.RichText.isEmpty(g)||m)&&Object(i.createElement)(b.RichText,{value:g,placeholder:Object(r.__)("Write citation…"),onChange:function(e){return l({citation:e})},className:"wp-block-pullquote__citation"}))),Object(i.createElement)(b.InspectorControls,null,Object(i.createElement)(b.PanelColorSettings,{title:Object(r.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(r.__)("Main Color")},{value:a.color,onChange:this.pullQuoteTextColorSetter,label:Object(r.__)("Text Color")}]},f&&Object(i.createElement)(b.ContrastChecker,Object(p.a)({textColor:a.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}(i.Component),k=Object(b.withColors)({mainColor:"background-color",textColor:"color"})(_),C=n(3),w=Object(i.createElement)(C.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)(C.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(i.createElement)(C.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object(i.createElement)(C.Path,{d:"m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"}),Object(i.createElement)(C.Polygon,{points:"21 4 2 4 2 6 21 6"}));n.d(t,"metadata",(function(){return E})),n.d(t,"name",(function(){return x})),n.d(t,"settings",(function(){return S}));var E={name:"core/pullquote",category:"formatting",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},x=E.name,S={title:Object(r.__)("Pullquote"),description:Object(r.__)("Give special visual emphasis to a quote from your text."),icon:w,example:{attributes:{value:"

    "+Object(r.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:"Matt Mullenweg"}},styles:[{name:"default",label:Object(r._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(r.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:k,save:function(e){var t,n,r=e.attributes,a=r.mainColor,l=r.customMainColor,d=r.textColor,h=r.customTextColor,p=r.value,g=r.citation,f=r.className;if(Object(u.includes)(f,o)){var v=Object(b.getColorClassName)("background-color",a);t=s()(Object(c.a)({"has-background":v||l},v,v)),n={backgroundColor:v?void 0:l}}else if(l)n={borderColor:l};else if(a){var O=Object(u.get)(Object(m.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(b.getColorObjectByAttributeValues)(O,a).color}}var j=Object(b.getColorClassName)("color",d),y=(d||h)&&s()("has-text-color",Object(c.a)({},j,j)),_=j?void 0:{color:h};return Object(i.createElement)("figure",{className:t,style:n},Object(i.createElement)("blockquote",{className:y,style:_},Object(i.createElement)(b.RichText.Content,{value:p,multiline:!0}),!b.RichText.isEmpty(g)&&Object(i.createElement)(b.RichText.Content,{tagName:"cite",value:g})))},deprecated:h}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6),c=n(2);function i(e){return Object(c.flow)(l,u,m)(e||"")}function l(e){return e.replace(/&/g,"&")}function s(e){return e.replace(/&/g,"&")}function u(e){return e.replace(/\[/g,"[")}function b(e){return e.replace(/[/g,"[")}function m(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}function d(e){return e.replace(/^(\s*https?:)//([^\s<>"]+\s*)$/m,"$1//$2")}var h=n(3),p=Object(o.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(h.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(o.createElement)(h.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"}));var g=n(9),f={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(g.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]};n.d(t,"metadata",(function(){return v})),n.d(t,"name",(function(){return O})),n.d(t,"settings",(function(){return j}));var v={name:"core/code",category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}}},O=v.name,j={title:Object(r.__)("Code"),description:Object(r.__)("Display code snippets that respect your spacing and tabs."),icon:p,example:{attributes:{content:Object(r.__)('// A "block" is the abstract term used')+"\n"+Object(r.__)("// to describe units of markup that,")+"\n"+Object(r.__)("// when composed together, form the")+"\n"+Object(r.__)("// content or layout of a page.")+"\n"+Object(r.__)("registerBlockType( name, settings );")}},supports:{html:!1},transforms:f,edit:function(e){var t,n=e.attributes,l=e.setAttributes,u=e.className;return Object(o.createElement)("div",{className:u},Object(o.createElement)(a.PlainText,{value:(t=n.content,Object(c.flow)(d,b,s)(t||"")),onChange:function(e){return l({content:i(e)})},placeholder:Object(r.__)("Write code…"),"aria-label":Object(r.__)("Code")}))},save:function(e){var t=e.attributes;return Object(o.createElement)("pre",null,Object(o.createElement)("code",null,t.content))}}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(1),a=n(0),c=n(9),i=n(6),l=n(3),s=n(22),u=function(e){var t=e.setAttributes,n=e.reversed,r=e.start;return Object(a.createElement)(i.InspectorControls,null,Object(a.createElement)(l.PanelBody,{title:Object(o.__)("Ordered List Settings")},Object(a.createElement)(l.TextControl,{label:Object(o.__)("Start Value"),type:"number",onChange:function(e){var n=parseInt(e,10);t({start:isNaN(n)?void 0:n})},value:Number.isInteger(r)?r.toString(10):"",step:"1"}),Object(a.createElement)(l.ToggleControl,{label:Object(o.__)("Reverse List Numbering"),checked:n||!1,onChange:function(e){t({reversed:e||void 0})}})))};var b=Object(a.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(l.G,null,Object(a.createElement)(l.Path,{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));var m=n(17),d=Object(r.a)({},Object(c.getPhrasingContentSchema)(),{ul:{},ol:{attributes:["type"]}});["ul","ol"].forEach((function(e){d[e].children={li:{children:d}}}));var h={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(c.createBlock)("core/list",{values:Object(s.toHTMLString)({value:Object(s.join)(e.map((function(t){var n=t.content,r=Object(s.create)({html:n});return e.length>1?r:Object(s.replace)(r,/\n/g,s.__UNSTABLE_LINE_SEPARATOR)})),s.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(c.createBlock)("core/list",{values:Object(s.toHTMLString)({value:Object(s.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:{ol:d.ol,ul:d.ul},transform:function(e){return Object(c.createBlock)("core/list",Object(r.a)({},Object(c.getBlockAttributes)("core/list",e.outerHTML),{ordered:"OL"===e.nodeName}))}}].concat(Object(m.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(c.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(m.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(c.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(s.split)(Object(s.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),s.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(c.createBlock)("core/paragraph",{content:Object(s.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(c.createBlock)("core/quote",{value:Object(s.toHTMLString)({value:Object(s.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]};n.d(t,"metadata",(function(){return p})),n.d(t,"name",(function(){return g})),n.d(t,"settings",(function(){return f}));var p={name:"core/list",category:"common",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:""},start:{type:"number"},reversed:{type:"boolean"}}},g=p.name,f={title:Object(o.__)("List"),description:Object(o.__)("Create a bulleted or numbered list."),icon:b,keywords:[Object(o.__)("bullet list"),Object(o.__)("ordered list"),Object(o.__)("numbered list")],supports:{className:!1},example:{attributes:{values:"
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:h,merge:function(e,t){var n=t.values;return n&&"
  • "!==n?Object(r.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,b=e.onReplace,m=e.className,d=t.ordered,h=t.values,p=t.reversed,f=t.start,v=d?"ol":"ul";return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(i.RichText,{identifier:"values",multiline:"li",tagName:v,onChange:function(e){return n({values:e})},value:h,wrapperClassName:"block-library-list",className:m,placeholder:Object(o.__)("Write list…"),onMerge:r,onSplit:function(e){return Object(c.createBlock)(g,{ordered:d,values:e})},__unstableOnSplitMiddle:function(){return Object(c.createBlock)("core/paragraph")},onReplace:b,onRemove:function(){return b([])},start:f,reversed:p},(function(e){var t=e.value,r=e.onChange;if(void 0!==t.start)return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(i.RichTextShortcut,{type:"primary",character:"[",onUse:function(){r(Object(s.__unstableOutdentListItems)(t))}}),Object(a.createElement)(i.RichTextShortcut,{type:"primary",character:"]",onUse:function(){r(Object(s.__unstableIndentListItems)(t,{type:v}))}}),Object(a.createElement)(i.RichTextShortcut,{type:"primary",character:"m",onUse:function(){r(Object(s.__unstableIndentListItems)(t,{type:v}))}}),Object(a.createElement)(i.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){r(Object(s.__unstableOutdentListItems)(t))}}),Object(a.createElement)(i.BlockControls,null,Object(a.createElement)(l.Toolbar,{controls:[{icon:"editor-ul",title:Object(o.__)("Convert to unordered list"),isActive:Object(s.__unstableIsActiveListType)(t,"ul",v),onClick:function(){r(Object(s.__unstableChangeListType)(t,{type:"ul"})),Object(s.__unstableIsListRootSelected)(t)&&n({ordered:!1})}},{icon:"editor-ol",title:Object(o.__)("Convert to ordered list"),isActive:Object(s.__unstableIsActiveListType)(t,"ol",v),onClick:function(){r(Object(s.__unstableChangeListType)(t,{type:"ol"})),Object(s.__unstableIsListRootSelected)(t)&&n({ordered:!0})}},{icon:"editor-outdent",title:Object(o.__)("Outdent list item"),shortcut:Object(o._x)("Backspace","keyboard key"),onClick:function(){r(Object(s.__unstableOutdentListItems)(t))}},{icon:"editor-indent",title:Object(o.__)("Indent list item"),shortcut:Object(o._x)("Space","keyboard key"),onClick:function(){r(Object(s.__unstableIndentListItems)(t,{type:v}))}}]})))})),d&&Object(a.createElement)(u,{setAttributes:n,ordered:d,reversed:p,start:f}))},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=t.reversed,c=t.start,l=n?"ol":"ul";return Object(a.createElement)(i.RichText.Content,{tagName:l,value:r,reversed:o,start:c,multiline:"li"})}}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(1),a=n(0),c=n(2),i=n(6),l={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},s=[{attributes:l,save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(a.createElement)("blockquote",{style:{textAlign:n||null}},Object(a.createElement)(i.RichText.Content,{multiline:!0,value:r}),!i.RichText.isEmpty(o)&&Object(a.createElement)(i.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(r.a)({},l,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(r.a)({},Object(c.omit)(e,["style"]),{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=t.style;return Object(a.createElement)("blockquote",{className:2===c?"is-large":"",style:{textAlign:n||null}},Object(a.createElement)(i.RichText.Content,{multiline:!0,value:r}),!i.RichText.isEmpty(o)&&Object(a.createElement)(i.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(r.a)({},l,{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=t.style;return Object(a.createElement)("blockquote",{className:"blocks-quote-style-".concat(c),style:{textAlign:n||null}},Object(a.createElement)(i.RichText.Content,{multiline:!0,value:r}),!i.RichText.isEmpty(o)&&Object(a.createElement)(i.RichText.Content,{tagName:"footer",value:o}))}}],u=n(10),b=n(16),m=n.n(b),d=n(3),h=n(9);var p=Object(a.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(d.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(d.Path,{d:"M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z"}));var g=n(21),f=n(17),v=n(22),O={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(h.createBlock)("core/quote",{value:Object(v.toHTMLString)({value:Object(v.join)(e.map((function(e){var t=e.content;return Object(v.create)({html:t})})),"\u2028"),multilineTag:"p"})})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(h.createBlock)("core/quote",{value:"

    ".concat(t,"

    ")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(h.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(h.createBlock)("core/quote",{value:"

    ".concat(e,"

    ")})}},{type:"raw",isMatch:function(e){var t,n=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(n)},schema:{blockquote:{children:{p:{children:Object(h.getPhrasingContentSchema)()},cite:{children:Object(h.getPhrasingContentSchema)()}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"

    "!==t&&r.push.apply(r,Object(f.a)(Object(v.split)(Object(v.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(h.createBlock)("core/paragraph",{content:Object(v.toHTMLString)({value:e})})})))),n&&"

    "!==n&&r.push(Object(h.createBlock)("core/paragraph",{content:n})),0===r.length?Object(h.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,o=Object(g.a)(e,["value","citation"]);if("

    "===t)return Object(h.createBlock)("core/heading",{content:n});var a=Object(v.split)(Object(v.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(h.createBlock)("core/heading",{content:Object(v.toHTMLString)({value:a[0]})});if(!n&&1===a.length)return c;var i=a.slice(1);return[c,Object(h.createBlock)("core/quote",Object(r.a)({},o,{citation:n,value:Object(v.toHTMLString)({value:i.length?Object(v.join)(a.slice(1),"\u2028"):Object(v.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(h.createBlock)("core/pullquote",{value:t,citation:n})}}]};n.d(t,"metadata",(function(){return j})),n.d(t,"name",(function(){return y})),n.d(t,"settings",(function(){return _}));var j={name:"core/quote",category:"common",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}}},y=j.name,_={title:Object(o.__)("Quote"),description:Object(o.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:p,keywords:[Object(o.__)("blockquote"),Object(o.__)("cite")],example:{attributes:{value:"

    "+Object(o.__)("In quoting others, we cite ourselves.")+"

    ",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(o._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(o._x)("Large","block style")}],transforms:O,edit:function(e){var t=e.attributes,n=e.setAttributes,c=e.isSelected,l=e.mergeBlocks,s=e.onReplace,b=e.className,p=t.align,g=t.value,f=t.citation;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(i.BlockControls,null,Object(a.createElement)(i.AlignmentToolbar,{value:p,onChange:function(e){n({align:e})}})),Object(a.createElement)(d.BlockQuotation,{className:m()(b,Object(u.a)({},"has-text-align-".concat(p),p))},Object(a.createElement)(i.RichText,{identifier:"value",multiline:!0,value:g,onChange:function(e){return n({value:e})},onMerge:l,onRemove:function(e){var t=!f||0===f.length;!e&&t&&s([])},placeholder:Object(o.__)("Write quote…"),onReplace:s,onSplit:function(e){return Object(h.createBlock)("core/quote",Object(r.a)({},t,{value:e}))},__unstableOnSplitMiddle:function(){return Object(h.createBlock)("core/paragraph")}}),(!i.RichText.isEmpty(f)||c)&&Object(a.createElement)(i.RichText,{identifier:"citation",value:f,onChange:function(e){return n({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(o.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=m()(Object(u.a)({},"has-text-align-".concat(n),n));return Object(a.createElement)("blockquote",{className:c},Object(a.createElement)(i.RichText.Content,{multiline:!0,value:r}),!i.RichText.isEmpty(o)&&Object(a.createElement)(i.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,o=t.citation;return o||(o=e.citation),n&&"

    "!==n?Object(r.a)({},e,{value:e.value+n,citation:o}):Object(r.a)({},e,{citation:o})},deprecated:s}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(17),a=n(12),c=n(11),i=n(13),l=n(14),s=n(5),u=n(15),b=n(0),m=n(6),d=n(3),h=n(4),p=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(s.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(s.a)(e)),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(o.a)(Object(m.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,o=this.state,a=o.isPreview,c=o.styles;return Object(b.createElement)("div",{className:"wp-block-html"},Object(b.createElement)(m.BlockControls,null,Object(b.createElement)("div",{className:"components-toolbar"},Object(b.createElement)("button",{className:"components-tab-button ".concat(a?"":"is-active"),onClick:this.switchToHTML},Object(b.createElement)("span",null,"HTML")),Object(b.createElement)("button",{className:"components-tab-button ".concat(a?"is-active":""),onClick:this.switchToPreview},Object(b.createElement)("span",null,Object(r.__)("Preview"))))),Object(b.createElement)(d.Disabled.Consumer,null,(function(e){return a||e?Object(b.createElement)(d.SandBox,{html:t.content,styles:c}):Object(b.createElement)(m.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(r.__)("Write HTML…"),"aria-label":Object(r.__)("HTML")})})))}}]),t}(b.Component),g=Object(h.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(p),f=Object(b.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(d.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"}));var v=n(9),O={from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:Object(v.getPhrasingContentSchema)()}}}}}]};n.d(t,"metadata",(function(){return j})),n.d(t,"name",(function(){return y})),n.d(t,"settings",(function(){return _}));var j={name:"core/html",category:"formatting",attributes:{content:{type:"string",source:"html"}}},y=j.name,_={title:Object(r.__)("Custom HTML"),description:Object(r.__)("Add custom HTML code and preview it as you edit."),icon:f,keywords:[Object(r.__)("embed")],example:{attributes:{content:""+Object(r.__)("Welcome to the wonderful world of blocks…")+""}},supports:{customClassName:!1,className:!1,html:!1},transforms:O,edit:g,save:function(e){var t=e.attributes;return Object(b.createElement)(b.RawHTML,null,t.content)}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(7),c=n(0),i=n(2),l=n(16),s=n.n(l),u=n(6),b=function(e){return Object(i.omit)(Object(a.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},m={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},d=[{attributes:Object(a.a)({},m,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}}),isEligible:function(e){return e.className&&e.className.includes("is-style-squared")},migrate:function(e){var t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Object(a.a)({},e,{className:t||void 0,borderRadius:0})},save:function(e){var t,n=e.attributes,r=n.backgroundColor,a=n.customBackgroundColor,i=n.customTextColor,l=n.linkTarget,b=n.rel,m=n.text,d=n.textColor,h=n.title,p=n.url,g=Object(u.getColorClassName)("color",d),f=Object(u.getColorClassName)("background-color",r),v=s()("wp-block-button__link",(t={"has-text-color":d||i},Object(o.a)(t,g,g),Object(o.a)(t,"has-background",r||a),Object(o.a)(t,f,f),t)),O={backgroundColor:f?void 0:a,color:g?void 0:i};return Object(c.createElement)("div",null,Object(c.createElement)(u.RichText.Content,{tagName:"a",className:v,href:p,title:h,style:O,value:m,target:l,rel:b}))}},{attributes:Object(a.a)({},m,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.url,a=n.text,i=n.title,l=n.backgroundColor,b=n.textColor,m=n.customBackgroundColor,d=n.customTextColor,h=Object(u.getColorClassName)("color",b),p=Object(u.getColorClassName)("background-color",l),g=s()("wp-block-button__link",(t={"has-text-color":b||d},Object(o.a)(t,h,h),Object(o.a)(t,"has-background",l||m),Object(o.a)(t,p,p),t)),f={backgroundColor:p?void 0:m,color:h?void 0:d};return Object(c.createElement)("div",null,Object(c.createElement)(u.RichText.Content,{tagName:"a",className:g,href:r,title:i,style:f,value:a}))},migrate:b},{attributes:Object(a.a)({},m,{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,a=t.align,i={backgroundColor:t.color,color:t.textColor};return Object(c.createElement)("div",{className:"align".concat(a)},Object(c.createElement)(u.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:i,value:r}))},migrate:b},{attributes:Object(a.a)({},m,{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,a=t.align,i=t.color,l=t.textColor;return Object(c.createElement)("div",{className:"align".concat(a),style:{backgroundColor:i}},Object(c.createElement)(u.RichText.Content,{tagName:"a",href:n,title:o,style:{color:l},value:r}))},migrate:b}],h=n(12),p=n(11),g=n(13),f=n(14),v=n(5),O=n(15),j=n(8),y=n(3),_=window.getComputedStyle,k=Object(y.withFallbackStyles)((function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,a=n&&n.color,c=!a&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:_(e).backgroundColor,fallbackTextColor:a||!c?void 0:_(c).color}})),C=0,w=50,E=5;function x(e){var t=e.borderRadius,n=void 0===t?"":t,o=e.setAttributes,a=Object(c.useCallback)((function(e){o({borderRadius:e})}),[o]);return Object(c.createElement)(y.PanelBody,{title:Object(r.__)("Border Settings")},Object(c.createElement)(y.RangeControl,{value:n,label:Object(r.__)("Border Radius"),min:C,max:w,initialPosition:E,allowReset:!0,onChange:a}))}var S=function(e){function t(){var e;return Object(h.a)(this,t),(e=Object(g.a)(this,Object(f.a)(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(Object(v.a)(e)),e.onSetLinkRel=e.onSetLinkRel.bind(Object(v.a)(e)),e.onToggleOpenInNewTab=e.onToggleOpenInNewTab.bind(Object(v.a)(e)),e}return Object(O.a)(t,e),Object(p.a)(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onToggleOpenInNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,a=t.backgroundColor,i=t.textColor,l=t.setBackgroundColor,b=t.setTextColor,m=t.fallbackBackgroundColor,d=t.fallbackTextColor,h=t.setAttributes,p=t.className,g=t.instanceId,f=t.isSelected,v=n.borderRadius,O=n.linkTarget,j=n.placeholder,_=n.rel,k=n.text,C=n.title,w=n.url,E="wp-block-button__inline-link-".concat(g);return Object(c.createElement)("div",{className:p,title:C,ref:this.bindRef},Object(c.createElement)(u.RichText,{placeholder:j||Object(r.__)("Add text…"),value:k,onChange:function(e){return h({text:e})},withoutInteractiveFormatting:!0,className:s()("wp-block-button__link",(e={"has-background":a.color},Object(o.a)(e,a.class,a.class),Object(o.a)(e,"has-text-color",i.color),Object(o.a)(e,i.class,i.class),Object(o.a)(e,"no-border-radius",0===v),e)),style:{backgroundColor:a.color,color:i.color,borderRadius:v?v+"px":void 0}}),Object(c.createElement)(y.BaseControl,{label:Object(r.__)("Link"),className:"wp-block-button__inline-link",id:E},Object(c.createElement)(u.URLInput,{className:"wp-block-button__inline-link-input",value:w,autoFocus:!1,onChange:function(e){return h({url:e})},disableSuggestions:!f,id:E,isFullWidth:!0,hasBorder:!0})),Object(c.createElement)(u.InspectorControls,null,Object(c.createElement)(u.PanelColorSettings,{title:Object(r.__)("Color Settings"),colorSettings:[{value:a.color,onChange:l,label:Object(r.__)("Background Color")},{value:i.color,onChange:b,label:Object(r.__)("Text Color")}]},Object(c.createElement)(u.ContrastChecker,{isLargeText:!1,textColor:i.color,backgroundColor:a.color,fallbackBackgroundColor:m,fallbackTextColor:d})),Object(c.createElement)(x,{borderRadius:v,setAttributes:h}),Object(c.createElement)(y.PanelBody,{title:Object(r.__)("Link settings")},Object(c.createElement)(y.ToggleControl,{label:Object(r.__)("Open in new tab"),onChange:this.onToggleOpenInNewTab,checked:"_blank"===O}),Object(c.createElement)(y.TextControl,{label:Object(r.__)("Link rel"),value:_||"",onChange:this.onSetLinkRel}))))}}]),t}(c.Component),T=Object(j.compose)([j.withInstanceId,Object(u.withColors)("backgroundColor",{textColor:"color"}),k])(S),B=Object(c.createElement)(y.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(y.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(c.createElement)(y.G,null,Object(c.createElement)(y.Path,{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"})));n.d(t,"metadata",(function(){return N})),n.d(t,"name",(function(){return M})),n.d(t,"settings",(function(){return A}));var N={name:"core/button",category:"layout",attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"}}},M=N.name,A={title:Object(r.__)("Button"),description:Object(r.__)("Prompt visitors to take action with a button-style link."),icon:B,keywords:[Object(r.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(r.__)("Call to Action")}},supports:{align:!0,alignWide:!1},styles:[{name:"fill",label:Object(r.__)("Fill"),isDefault:!0},{name:"outline",label:Object(r.__)("Outline")}],edit:T,save:function(e){var t,n=e.attributes,r=n.backgroundColor,a=n.borderRadius,i=n.customBackgroundColor,l=n.customTextColor,b=n.linkTarget,m=n.rel,d=n.text,h=n.textColor,p=n.title,g=n.url,f=Object(u.getColorClassName)("color",h),v=Object(u.getColorClassName)("background-color",r),O=s()("wp-block-button__link",(t={"has-text-color":h||l},Object(o.a)(t,f,f),Object(o.a)(t,"has-background",r||i),Object(o.a)(t,v,v),Object(o.a)(t,"no-border-radius",0===a),t)),j={backgroundColor:v?void 0:i,color:f?void 0:l,borderRadius:a?a+"px":void 0};return Object(c.createElement)("div",null,Object(c.createElement)(u.RichText.Content,{tagName:"a",className:O,href:g,title:p,style:j,value:d,target:b,rel:m}))},deprecated:d}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(12),a=n(11),c=n(13),i=n(14),l=n(5),s=n(15),u=n(0),b=n(3),m=n(6),d=n(19),h=n(9),p=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(l.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(l.a)(e)),e.state={defaultText:Object(r.__)("Read more")},e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===d.ENTER&&n([Object(h.createBlock)(Object(h.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(r.__)("The excerpt is hidden."):Object(r.__)("The excerpt is visible.")}},{key:"render",value:function(){var e=this.props.attributes,t=e.customText,n=e.noTeaser,o=this.props.setAttributes,a=this.state.defaultText,c=void 0!==t?t:a,i=c.length+1;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(m.InspectorControls,null,Object(u.createElement)(b.PanelBody,null,Object(u.createElement)(b.ToggleControl,{label:Object(r.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return o({noTeaser:!n})},help:this.getHideExcerptHelp}))),Object(u.createElement)("div",{className:"wp-block-more"},Object(u.createElement)("input",{type:"text",value:c,size:i,onChange:this.onChangeInput,onKeyDown:this.onKeyDown})))}}]),t}(u.Component),g=Object(u.createElement)(b.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(b.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(u.createElement)(b.G,null,Object(u.createElement)(b.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"}))),f=n(2);var v={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,n=t.customText,r=t.noTeaser,o={};return n&&(o.customText=n),""===r&&(o.noTeaser=!0),Object(h.createBlock)("core/more",o)}}]};n.d(t,"metadata",(function(){return O})),n.d(t,"name",(function(){return j})),n.d(t,"settings",(function(){return y}));var O={name:"core/more",category:"layout",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}}},j=O.name,y={title:Object(r._x)("More","block name"),description:Object(r.__)("Content before this block will be shown in the excerpt on your archives page."),icon:g,supports:{customClassName:!1,className:!1,html:!1,multiple:!1},example:{},transforms:v,edit:p,save:function(e){var t=e.attributes,n=t.customText,r=t.noTeaser,o=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",a=r?"\x3c!--noteaser--\x3e":"";return Object(u.createElement)(u.RawHTML,null,Object(f.compact)([o,a]).join("\n"))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0);var a=n(3),c=Object(o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24"},Object(o.createElement)(a.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(o.createElement)(a.Path,{d:"M9 11h6v2H9zM2 11h5v2H2zM17 11h5v2h-5zM6 4h7v5h7V8l-6-6H6a2 2 0 0 0-2 2v5h2zM18 20H6v-5H4v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5h-2z"}));var i=n(9),l={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(i.createBlock)("core/nextpage",{})}}]};n.d(t,"metadata",(function(){return s})),n.d(t,"name",(function(){return u})),n.d(t,"settings",(function(){return b}));var s={name:"core/nextpage",category:"layout"},u=s.name,b={title:Object(r.__)("Page Break"),description:Object(r.__)("Separate your content into a multi-page experience."),icon:c,keywords:[Object(r.__)("next page"),Object(r.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},example:{},transforms:l,edit:function(){return Object(o.createElement)("div",{className:"wp-block-nextpage"},Object(o.createElement)("span",null,Object(r.__)("Page break")))},save:function(){return Object(o.createElement)(o.RawHTML,null,"\x3c!--nextpage--\x3e")}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(0),c=n(2),i=n(16),l=n.n(i),s=n(9),u=n(6);function b(e){var t,n=b.doc;n||(n=document.implementation.createHTMLDocument(""),b.doc=n),n.body.innerHTML=e;var r=!0,o=!1,a=void 0;try{for(var c,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(c=i.next()).done);r=!0){if(t=c.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}}var m=[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some((function(e){return/layout-column-\d+/.test(e.originalContent)}))&&t.some((function(e){return void 0!==b(e.originalContent)}))},migrate:function(e,t){var n=t.reduce((function(e,t){var n=b(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(s.createBlock)("core/column",{},e)}));return[Object(c.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object(a.createElement)("div",{className:"has-".concat(t,"-columns")},Object(a.createElement)(u.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(c.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,c=l()("has-".concat(r,"-columns"),Object(o.a)({},"are-vertically-aligned-".concat(n),n));return Object(a.createElement)("div",{className:c},Object(a.createElement)(u.InnerBlocks.Content,null))}}],d=n(17),h=n(23),p=n(3),g=n(4),f=n(57),v=["core/column"],O=[{title:Object(r.__)("Two columns; equal split"),icon:Object(a.createElement)(p.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),template:[["core/column"],["core/column"]]},{title:Object(r.__)("Two columns; one-third, two-thirds split"),icon:Object(a.createElement)(p.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),template:[["core/column",{width:33.33}],["core/column",{width:66.66}]]},{title:Object(r.__)("Two columns; two-thirds, one-third split"),icon:Object(a.createElement)(p.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),template:[["core/column",{width:66.66}],["core/column",{width:33.33}]]},{title:Object(r.__)("Three columns; equal split"),icon:Object(a.createElement)(p.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),template:[["core/column"],["core/column"],["core/column"]]},{title:Object(r.__)("Three columns; wide center column"),icon:Object(a.createElement)(p.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),template:[["core/column",{width:25}],["core/column",{width:50}],["core/column",{width:25}]]}],j=2;var y=Object(g.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockOrder;a({verticalAlignment:r}),i(o).forEach((function(e){c(e,{verticalAlignment:r})}))},updateColumns:function(r,o){var a=t.clientId,i=e("core/block-editor").replaceInnerBlocks,l=(0,n.select("core/block-editor").getBlocks)(a),u=Object(f.g)(l),b=o>r;if(b&&u){var m=Object(f.h)(100/o),h=Object(f.e)(l,100-m);l=[].concat(Object(d.a)(Object(f.d)(l,h)),Object(d.a)(Object(c.times)(o-r,(function(){return Object(s.createBlock)("core/column",{width:m})}))))}else if(b)l=[].concat(Object(d.a)(l),Object(d.a)(Object(c.times)(o-r,(function(){return Object(s.createBlock)("core/column")}))));else if(l=Object(c.dropRight)(l,r-o),u){var p=Object(f.e)(l,100);l=Object(f.d)(l,p)}i(a,l,!1)}}}))((function(e){var t=e.attributes,n=e.className,c=e.updateAlignment,i=e.updateColumns,s=e.clientId,b=t.verticalAlignment,m=Object(g.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(s)}})).count,d=Object(a.useState)(Object(f.c)(m)),y=Object(h.a)(d,2),_=y[0],k=y[1],C=Object(a.useState)(!1),w=Object(h.a)(C,2),E=w[0],x=w[1];Object(a.useEffect)((function(){E&&x(!1)}),[E]);var S=l()(n,Object(o.a)({},"are-vertically-aligned-".concat(b),b)),T=0===m&&!E||!_;return Object(a.createElement)(a.Fragment,null,!T&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.InspectorControls,null,Object(a.createElement)(p.PanelBody,null,Object(a.createElement)(p.RangeControl,{label:Object(r.__)("Columns"),value:m,onChange:function(e){return i(m,e)},min:2,max:6}))),Object(a.createElement)(u.BlockControls,null,Object(a.createElement)(u.BlockVerticalAlignmentToolbar,{onChange:c,value:b}))),Object(a.createElement)("div",{className:S},Object(a.createElement)(u.InnerBlocks,{__experimentalTemplateOptions:O,__experimentalOnSelectTemplateOption:function(e){void 0===e&&(e=Object(f.c)(j)),k(e),x(!0)},__experimentalAllowTemplateOptionSkip:!0,template:T?null:_,templateLock:"all",allowedBlocks:v})))})),_=Object(a.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(p.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(p.G,null,Object(a.createElement)(p.Path,{d:"M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z"})));n.d(t,"metadata",(function(){return k})),n.d(t,"name",(function(){return C})),n.d(t,"settings",(function(){return w}));var k={name:"core/columns",category:"layout",attributes:{verticalAlignment:{type:"string"}}},C=k.name,w={title:Object(r.__)("Columns"),icon:_,description:Object(r.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis pellentesque efficitur. Nam dapibus felis malesuada tincidunt rhoncus. Integer non malesuada tortor."}},{name:"core/image",attributes:{url:"https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:"Suspendisse commodo neque lacus, a dictum orci interdum et. Ut vel mi ut leo fringilla rutrum."}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(r.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit, eget faucibus urna pulvinar.")}},{name:"core/paragraph",attributes:{content:Object(r.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim ultricies commodo.")}}]}]},deprecated:m,edit:y,save:function(e){var t=e.attributes.verticalAlignment,n=l()(Object(o.a)({},"are-vertically-aligned-".concat(t),t));return Object(a.createElement)("div",{className:n},Object(a.createElement)(u.InnerBlocks.Content,null))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6);var c=n(3),i=Object(o.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(c.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(o.createElement)(c.Path,{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"}),Object(o.createElement)(c.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object(o.createElement)(c.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object(o.createElement)(c.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object(o.createElement)(c.Rect,{x:"10",y:"10",width:"8",height:"2"}));var l=n(9),s={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(l.createBlock)("core/preformatted",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:{pre:{children:Object(l.getPhrasingContentSchema)()}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(l.createBlock)("core/paragraph",e)}}]};n.d(t,"metadata",(function(){return u})),n.d(t,"name",(function(){return b})),n.d(t,"settings",(function(){return m}));var u={name:"core/preformatted",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""}}},b=u.name,m={title:Object(r.__)("Preformatted"),description:Object(r.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:i,example:{attributes:{content:Object(r.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)")+"\n"+Object(r.__)("Window, very small in the distance, illuminated.")+"\n"+Object(r.__)("All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:s,edit:function(e){var t=e.attributes,n=e.mergeBlocks,c=e.setAttributes,i=e.className,l=t.content;return Object(o.createElement)(a.RichText,{tagName:"pre",value:l.replace(/\n/g,"
    "),onChange:function(e){c({content:e.replace(/
    /g,"\n")})},placeholder:Object(r.__)("Write preformatted text…"),wrapperClassName:i,onMerge:n})},save:function(e){var t=e.attributes.content;return Object(o.createElement)(a.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(0),c=n(16),i=n.n(c),l=n(3),s=n(6);var u=Object(s.withColors)("color",{textColor:"color"})((function(e){var t=e.color,n=e.setColor,c=e.className;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.HorizontalRule,{className:i()(c,Object(o.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(a.createElement)(s.InspectorControls,null,Object(a.createElement)(s.PanelColorSettings,{title:Object(r.__)("Color Settings"),colorSettings:[{value:t.color,onChange:n,label:Object(r.__)("Color")}]})))})),b=Object(a.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(l.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(l.Path,{d:"M19 13H5v-2h14v2z"}));var m=n(9),d={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(m.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]};n.d(t,"metadata",(function(){return h})),n.d(t,"name",(function(){return p})),n.d(t,"settings",(function(){return g}));var h={name:"core/separator",category:"layout",attributes:{color:{type:"string"},customColor:{type:"string"}}},p=h.name,g={title:Object(r.__)("Separator"),description:Object(r.__)("Create a break between ideas or sections with a horizontal separator."),icon:b,keywords:[Object(r.__)("horizontal-line"),"hr",Object(r.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(r.__)("Default"),isDefault:!0},{name:"wide",label:Object(r.__)("Wide Line")},{name:"dots",label:Object(r.__)("Dots")}],transforms:d,edit:u,save:function(e){var t,n=e.attributes,r=n.color,c=n.customColor,l=Object(s.getColorClassName)("background-color",r),u=Object(s.getColorClassName)("color",r),b=i()((t={"has-text-color has-background":r||c},Object(o.a)(t,l,l),Object(o.a)(t,u,u),t)),m={backgroundColor:l?void 0:c,color:u?void 0:c};return Object(a.createElement)("hr",{className:b,style:m})}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(23),c=n(12),i=n(11),l=n(13),s=n(14),u=n(5),b=n(15),m=n(0),d=n(35),h=n(8),p=n(3),g=n(6),f=n(4),v=Object(m.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(m.createElement)(p.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(m.createElement)(p.Path,{d:"m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z"})),O=n(61),j=["audio"],y=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.toggleAttribute=e.toggleAttribute.bind(Object(u.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(u.a)(e)),e.onUploadError=e.onUploadError.bind(Object(u.a)(e)),e}return Object(b.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,c=t.setAttributes,i=n.id,l=n.src,s=void 0===l?"":l;if(!i&&Object(d.isBlobURL)(s)){var u=Object(d.getBlobByURL)(s);u&&r({filesList:[u],onFileChange:function(e){var t=Object(a.a)(e,1)[0],n=t.id,r=t.url;c({id:n,src:r})},onError:function(t){c({src:void 0,id:void 0}),e.setState({editing:!0}),o.createErrorNotice(t)},allowedTypes:j})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(o.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=Object(O.a)({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(r.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,o=t.caption,a=t.loop,c=t.preload,i=t.src,l=this.props,s=l.setAttributes,u=l.isSelected,b=l.className,d=l.noticeUI,h=this.state.editing,f=function(){e.setState({editing:!0})};return h?Object(m.createElement)(g.MediaPlaceholder,{icon:Object(m.createElement)(g.BlockIcon,{icon:v}),className:b,onSelect:function(t){if(!t||!t.url)return s({src:void 0,id:void 0}),void f();s({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:j,value:this.props.attributes,notices:d,onError:this.onUploadError}):Object(m.createElement)(m.Fragment,null,Object(m.createElement)(g.BlockControls,null,Object(m.createElement)(p.Toolbar,null,Object(m.createElement)(p.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(r.__)("Edit audio"),onClick:f,icon:"edit"}))),Object(m.createElement)(g.InspectorControls,null,Object(m.createElement)(p.PanelBody,{title:Object(r.__)("Audio Settings")},Object(m.createElement)(p.ToggleControl,{label:Object(r.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object(m.createElement)(p.ToggleControl,{label:Object(r.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:a}),Object(m.createElement)(p.SelectControl,{label:Object(r.__)("Preload"),value:void 0!==c?c:"none",onChange:function(e){return s({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(r.__)("Auto")},{value:"metadata",label:Object(r.__)("Metadata")},{value:"none",label:Object(r.__)("None")}]}))),Object(m.createElement)("figure",{className:b},Object(m.createElement)(p.Disabled,null,Object(m.createElement)("audio",{controls:"controls",src:i})),(!g.RichText.isEmpty(o)||u)&&Object(m.createElement)(g.RichText,{tagName:"figcaption",placeholder:Object(r.__)("Write caption…"),value:o,onChange:function(e){return s({caption:e})},inlineToolbar:!0})))}}]),t}(m.Component),_=Object(h.compose)([Object(f.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),p.withNotices])(y);var k=n(9),C={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(k.createBlock)("core/audio",{src:Object(d.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]};n.d(t,"metadata",(function(){return w})),n.d(t,"name",(function(){return E})),n.d(t,"settings",(function(){return x}));var w={name:"core/audio",category:"common",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}}},E=w.name,x={title:Object(r.__)("Audio"),description:Object(r.__)("Embed a simple audio player."),icon:v,transforms:C,supports:{align:!0},edit:_,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src;return Object(m.createElement)("figure",null,Object(m.createElement)("audio",{controls:"controls",src:c,autoPlay:n,loop:o,preload:a}),!g.RichText.isEmpty(r)&&Object(m.createElement)(g.RichText.Content,{tagName:"figcaption",value:r}))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(3),c=n(6),i=n(8),l=Object(i.withInstanceId)((function(e){var t=e.attributes,n=e.setAttributes,i=e.instanceId,l="blocks-shortcode-input-".concat(i);return Object(o.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(o.createElement)("label",{htmlFor:l,className:"components-placeholder__label"},Object(o.createElement)(a.Dashicon,{icon:"shortcode"}),Object(r.__)("Shortcode")),Object(o.createElement)(c.PlainText,{className:"input-control",id:l,value:t.text,placeholder:Object(r.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))})),s=Object(o.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(a.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"}));var u=n(72),b={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(u.removep)(Object(u.autop)(n))}}},priority:20}]};n.d(t,"name",(function(){return m})),n.d(t,"settings",(function(){return d}));var m="core/shortcode",d={title:Object(r.__)("Shortcode"),description:Object(r.__)("Insert additional custom elements with a WordPress shortcode."),icon:s,category:"widgets",transforms:b,supports:{customClassName:!1,className:!1,html:!1},edit:l,save:function(e){var t=e.attributes;return Object(o.createElement)(o.RawHTML,null,t.text)}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(37),c=n.n(a),i=n(6);var l=n(3),s=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"}));var u=n(9),b={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(u.createBlock)("core/paragraph",e)}}]};n.d(t,"metadata",(function(){return m})),n.d(t,"name",(function(){return d})),n.d(t,"settings",(function(){return h}));var m={name:"core/subhead",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}}},d=m.name,h={title:Object(r.__)("Subheading (deprecated)"),description:Object(r.__)("This block is deprecated. Please use the Paragraph block instead."),icon:s,supports:{inserter:!1,multiple:!1},transforms:b,edit:function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=t.align,s=t.content,u=t.placeholder;return c()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.BlockControls,null,Object(o.createElement)(i.AlignmentToolbar,{value:l,onChange:function(e){n({align:e})}})),Object(o.createElement)(i.RichText,{tagName:"p",value:s,onChange:function(e){n({content:e})},style:{textAlign:l},className:a,placeholder:u||Object(r.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,r=t.content;return Object(o.createElement)(i.RichText.Content,{tagName:"p",style:{textAlign:n},value:r})}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(23),c=n(12),i=n(11),l=n(13),s=n(14),u=n(5),b=n(15),m=n(0),d=n(35),h=n(3),p=n(6),g=n(8),f=n(4),v=n(61),O=Object(m.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(m.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(m.createElement)(h.Path,{d:"M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z"})),j=["video"],y=["image"],_=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.videoPlayer=Object(m.createRef)(),e.posterImageButton=Object(m.createRef)(),e.toggleAttribute=e.toggleAttribute.bind(Object(u.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(u.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(u.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(u.a)(e)),e.onUploadError=e.onUploadError.bind(Object(u.a)(e)),e}return Object(b.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,c=t.setAttributes,i=n.id,l=n.src,s=void 0===l?"":l;if(!i&&Object(d.isBlobURL)(s)){var u=Object(d.getBlobByURL)(s);u&&r({filesList:[u],onFileChange:function(e){var t=Object(a.a)(e,1)[0].url;c({src:t})},onError:function(t){e.setState({editing:!0}),o.createErrorNotice(t)},allowedTypes:j})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(o.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=Object(v.a)({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(r.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,o=t.caption,a=t.controls,c=t.loop,i=t.muted,l=t.playsInline,s=t.poster,u=t.preload,b=t.src,d=this.props,g=d.className,f=d.instanceId,v=d.isSelected,_=d.noticeUI,k=d.setAttributes,C=this.state.editing,w=function(){e.setState({editing:!0})};if(C)return Object(m.createElement)(p.MediaPlaceholder,{icon:Object(m.createElement)(p.BlockIcon,{icon:O}),className:g,onSelect:function(t){if(!t||!t.url)return k({src:void 0,id:void 0}),void w();k({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:j,value:this.props.attributes,notices:_,onError:this.onUploadError});var E="video-block__poster-image-description-".concat(f);return Object(m.createElement)(m.Fragment,null,Object(m.createElement)(p.BlockControls,null,Object(m.createElement)(h.Toolbar,null,Object(m.createElement)(h.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(r.__)("Edit video"),onClick:w,icon:"edit"}))),Object(m.createElement)(p.InspectorControls,null,Object(m.createElement)(h.PanelBody,{title:Object(r.__)("Video Settings")},Object(m.createElement)(h.ToggleControl,{label:Object(r.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object(m.createElement)(h.ToggleControl,{label:Object(r.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:c}),Object(m.createElement)(h.ToggleControl,{label:Object(r.__)("Muted"),onChange:this.toggleAttribute("muted"),checked:i}),Object(m.createElement)(h.ToggleControl,{label:Object(r.__)("Playback Controls"),onChange:this.toggleAttribute("controls"),checked:a}),Object(m.createElement)(h.ToggleControl,{label:Object(r.__)("Play inline"),onChange:this.toggleAttribute("playsInline"),checked:l}),Object(m.createElement)(h.SelectControl,{label:Object(r.__)("Preload"),value:u,onChange:function(e){return k({preload:e})},options:[{value:"auto",label:Object(r.__)("Auto")},{value:"metadata",label:Object(r.__)("Metadata")},{value:"none",label:Object(r.__)("None")}]}),Object(m.createElement)(p.MediaUploadCheck,null,Object(m.createElement)(h.BaseControl,{className:"editor-video-poster-control"},Object(m.createElement)(h.BaseControl.VisualLabel,null,Object(r.__)("Poster Image")),Object(m.createElement)(p.MediaUpload,{title:Object(r.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:y,render:function(t){var n=t.open;return Object(m.createElement)(h.Button,{isDefault:!0,onClick:n,ref:e.posterImageButton,"aria-describedby":E},e.props.attributes.poster?Object(r.__)("Replace image"):Object(r.__)("Select Poster Image"))}}),Object(m.createElement)("p",{id:E,hidden:!0},this.props.attributes.poster?Object(r.sprintf)(Object(r.__)("The current poster image url is %s"),this.props.attributes.poster):Object(r.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object(m.createElement)(h.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(r.__)("Remove Poster Image")))))),Object(m.createElement)("figure",{className:g},Object(m.createElement)(h.Disabled,null,Object(m.createElement)("video",{controls:a,poster:s,src:b,ref:this.videoPlayer})),(!p.RichText.isEmpty(o)||v)&&Object(m.createElement)(p.RichText,{tagName:"figcaption",placeholder:Object(r.__)("Write caption…"),value:o,onChange:function(e){return k({caption:e})},inlineToolbar:!0})))}}]),t}(m.Component),k=Object(g.compose)([Object(f.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),h.withNotices,g.withInstanceId])(_);var C=n(9),w={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(C.createBlock)("core/video",{src:Object(d.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,n=t.src,r=t.mp4,o=t.m4v,a=t.webm,c=t.ogv,i=t.flv;return n||r||o||a||c||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]};n.d(t,"metadata",(function(){return E})),n.d(t,"name",(function(){return x})),n.d(t,"settings",(function(){return S}));var E={name:"core/video",category:"common",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}}},x=E.name,S={title:Object(r.__)("Video"),description:Object(r.__)("Embed a video from your media library or upload a new one."),icon:O,keywords:[Object(r.__)("movie")],transforms:w,supports:{align:!0},edit:k,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.controls,a=t.loop,c=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(m.createElement)("figure",null,s&&Object(m.createElement)("video",{autoPlay:n,controls:o,loop:a,muted:c,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!p.RichText.isEmpty(r)&&Object(m.createElement)(p.RichText.Content,{tagName:"figcaption",value:r}))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(7),a=n(17),c=n(10),i=n(0),l=n(16),s=n.n(l),u=n(2),b=n(6),m=n(3),d=n(4),h=n(8),p=n(57);var g=Object(h.compose)(Object(d.withSelect)((function(e,t){var n=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(n).length>0}})),Object(d.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockRootClientId;a({verticalAlignment:r}),c(i(o),{verticalAlignment:null})},updateWidth:function(r){var i=t.clientId,l=e("core/block-editor").updateBlockAttributes,s=n.select("core/block-editor"),b=s.getBlockRootClientId,m=(0,s.getBlocks)(b(i)),d=Object(p.a)(m,i),h=r+Object(p.f)(Object(u.difference)(m,[Object(u.find)(m,{clientId:i})].concat(Object(a.a)(d)))),g=Object(o.a)({},Object(p.b)(m,m.length),Object(c.a)({},i,Object(p.h)(r)),Object(p.e)(d,100-h,m.length));Object(u.forEach)(g,(function(e,t){l(t,{width:e})}))}}})))((function(e){var t=e.attributes,n=e.className,o=e.updateAlignment,a=e.updateWidth,l=e.hasChildBlocks,u=t.verticalAlignment,d=t.width,h=s()(n,"block-core-columns",Object(c.a)({},"is-vertically-aligned-".concat(u),u));return Object(i.createElement)("div",{className:h},Object(i.createElement)(b.BlockControls,null,Object(i.createElement)(b.BlockVerticalAlignmentToolbar,{onChange:o,value:u})),Object(i.createElement)(b.InspectorControls,null,Object(i.createElement)(m.PanelBody,{title:Object(r.__)("Column Settings")},Object(i.createElement)(m.RangeControl,{label:Object(r.__)("Percentage width"),value:d||"",onChange:a,min:0,max:100,required:!0,allowReset:!0}))),Object(i.createElement)(b.InnerBlocks,{templateLock:!1,renderAppender:l?void 0:function(){return Object(i.createElement)(b.InnerBlocks.ButtonBlockAppender,null)}}))})),f=Object(i.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(m.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(i.createElement)(m.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}));n.d(t,"metadata",(function(){return v})),n.d(t,"name",(function(){return O})),n.d(t,"settings",(function(){return j}));var v={name:"core/column",category:"common",attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}}},O=v.name,j={title:Object(r.__)("Column"),parent:["core/columns"],icon:f,description:Object(r.__)("A single column within a columns block."),supports:{inserter:!1,reusable:!1,html:!1},getEditWrapperProps:function(e){var t=e.width;if(Number.isFinite(t))return{style:{flexBasis:t+"%"}}},edit:g,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.width,a=s()(Object(c.a)({},"is-vertically-aligned-".concat(r),r));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(i.createElement)("div",{className:a,style:t},Object(i.createElement)(b.InnerBlocks.Content,null))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(17),a=n(0),c=n(2),i=n(3),l=n(6),s=n(37),u=n.n(s);var b=n(9),m={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(b.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map((function(e){var t=e.children;return Object(b.createBlock)("core/column",{},[Object(b.createBlock)("core/paragraph",{content:t})])})))}}]};n.d(t,"metadata",(function(){return d})),n.d(t,"name",(function(){return h})),n.d(t,"settings",(function(){return p}));var d={name:"core/text-columns",icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}}},h=d.name,p={supports:{inserter:!1},title:Object(r.__)("Text Columns (deprecated)"),description:Object(r.__)("This block is deprecated. Please use the Columns block instead."),transforms:m,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,s=e.className,b=t.width,m=t.content,d=t.columns;return u()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.BlockControls,null,Object(a.createElement)(l.BlockAlignmentToolbar,{value:b,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(i.PanelBody,null,Object(a.createElement)(i.RangeControl,{label:Object(r.__)("Columns"),value:d,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(a.createElement)("div",{className:"".concat(s," align").concat(b," columns-").concat(d)},Object(c.times)(d,(function(e){return Object(a.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(a.createElement)(l.RichText,{tagName:"p",value:Object(c.get)(m,[e,"children"]),onChange:function(t){n({content:[].concat(Object(o.a)(m.slice(0,e)),[{children:t}],Object(o.a)(m.slice(e+1)))})},placeholder:Object(r.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object(a.createElement)("div",{className:"align".concat(n," columns-").concat(o)},Object(c.times)(o,(function(e){return Object(a.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(a.createElement)(l.RichText.Content,{tagName:"p",value:Object(c.get)(r,[e,"children"])}))})))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(23),a=n(0),c=n(16),i=n.n(c),l=n(6),s=n(3),u=n(8),b=n(4),m=Object(u.compose)([Object(b.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),u.withInstanceId])((function(e){var t=e.attributes,n=e.isSelected,c=e.setAttributes,u=e.instanceId,b=e.onResizeStart,m=e.onResizeStop,d=t.height,h="block-spacer-height-input-".concat(u),p=Object(a.useState)(d),g=Object(o.a)(p,2),f=g[0],v=g[1];return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(s.ResizableBox,{className:i()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:d},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:b,onResizeStop:function(e,t,n,r){m();var o=parseInt(d+r.height,10);c({height:o}),v(o)}}),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(s.PanelBody,{title:Object(r.__)("Spacer Settings")},Object(a.createElement)(s.BaseControl,{label:Object(r.__)("Height in pixels"),id:h},Object(a.createElement)("input",{type:"number",id:h,onChange:function(e){var t=parseInt(e.target.value,10);v(t),isNaN(t)?(v(""),t=100):t<20&&(t=20),c({height:t})},value:f,min:"20",step:"10"})))))})),d=Object(a.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(s.G,null,Object(a.createElement)(s.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));n.d(t,"metadata",(function(){return h})),n.d(t,"name",(function(){return p})),n.d(t,"settings",(function(){return g}));var h={name:"core/spacer",category:"layout",attributes:{height:{type:"number",default:100}}},p=h.name,g={title:Object(r.__)("Spacer"),description:Object(r.__)("Add white space between blocks and customize its height."),icon:d,edit:m,save:function(e){var t=e.attributes;return Object(a.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(2),c=n(3),i=n(6),l=n(4),s=n(8);var u=Object(s.compose)([Object(l.withDispatch)((function(e,t,n){var r=t.clientId,o=(0,n.select)("core/block-editor"),a=o.getBlockOrder,c=(0,o.getBlockRootClientId)(r),i=e("core/block-editor"),l=i.moveBlocksDown,s=i.moveBlocksUp,u=i.moveBlockToPosition,b=i.removeBlocks;return{moveToStart:function(){u(r,c,c,0)},moveRight:function(){l(r,c)},moveLeft:function(){s(r,c)},moveToEnd:function(){u(r,c,c,a(c).length-1)},remove:function(){b(r)}}}))])((function(e){var t=e.destination,n=e.moveLeft,a=e.moveRight,i=e.moveToEnd,l=e.moveToStart,s=e.onEditLableClicked,u=e.remove;return Object(o.createElement)(c.NavigableMenu,null,Object(o.createElement)(c.MenuItem,{icon:"admin-links"},t),Object(o.createElement)(c.MenuItem,{onClick:s,icon:"edit"},Object(r.__)("Edit label text")),Object(o.createElement)("div",{className:"wp-block-navigation-menu-item__separator"}),Object(o.createElement)(c.MenuItem,{onClick:l,icon:"arrow-up-alt2"},Object(r.__)("Move to start")),Object(o.createElement)(c.MenuItem,{onClick:n,icon:"arrow-left-alt2"},Object(r.__)("Move left")),Object(o.createElement)(c.MenuItem,{onClick:a,icon:"arrow-right-alt2"},Object(r.__)("Move right")),Object(o.createElement)(c.MenuItem,{onClick:i,icon:"arrow-down-alt2"},Object(r.__)("Move to end")),Object(o.createElement)(c.MenuItem,{icon:"arrow-left-alt2"},Object(r.__)("Nest underneath…")),Object(o.createElement)("div",{className:"navigation-menu-item__separator"}),Object(o.createElement)(c.MenuItem,{onClick:u,icon:"trash"},Object(r.__)("Remove from menu")))})),b={noArrow:!0};var m=function(e){var t,n=e.attributes,l=e.clientId,s=e.isSelected,m=e.setAttributes,d=Object(o.useRef)(null),h=Object(o.useCallback)((function(e){return function(){e(),Object(a.invoke)(d,["current","textarea","focus"])}}),[d]);return t=s?Object(o.createElement)("div",{className:"wp-block-navigation-menu-item__edit-container"},Object(o.createElement)(i.PlainText,{ref:d,className:"wp-block-navigation-menu-item__field",value:n.label,onChange:function(e){return m({label:e})},"aria-label":Object(r.__)("Navigation Label"),maxRows:1}),Object(o.createElement)(c.Dropdown,{contentClassName:"wp-block-navigation-menu-item__dropdown-content",position:"bottom left",popoverProps:b,renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(o.createElement)(c.IconButton,{icon:t?"arrow-up-alt2":"arrow-down-alt2",label:Object(r.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(e){var t=e.onClose;return Object(o.createElement)(u,{clientId:l,destination:n.destination,onEditLableClicked:h(t)})}})):n.label,Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.InspectorControls,null,Object(o.createElement)(c.PanelBody,{title:Object(r.__)("Menu Settings")},Object(o.createElement)(c.ToggleControl,{checked:n.opensInNewTab,onChange:function(e){m({opensInNewTab:e})},label:Object(r.__)("Open in new tab")}),Object(o.createElement)(c.TextareaControl,{value:n.description||"",onChange:function(e){m({description:e})},label:Object(r.__)("Description")})),Object(o.createElement)(c.PanelBody,{title:Object(r.__)("SEO Settings")},Object(o.createElement)(c.TextControl,{value:n.title||"",onChange:function(e){m({title:e})},label:Object(r.__)("Title Attribute"),help:Object(r.__)("Provide more context about where the link goes.")}),Object(o.createElement)(c.ToggleControl,{checked:n.nofollow,onChange:function(e){m({nofollow:e})},label:Object(r.__)("Add nofollow to menu item"),help:Object(o.createElement)(o.Fragment,null,Object(r.__)("Don't let search engines follow this link."),Object(o.createElement)(c.ExternalLink,{className:"wp-block-navigation-menu-item__nofollow-external-link",href:Object(r.__)("https://codex.wordpress.org/Nofollow")},Object(r.__)("What's this?")))}))),Object(o.createElement)("div",{className:"wp-block-navigation-menu-item"},t,Object(o.createElement)(i.InnerBlocks,{allowedBlocks:["core/navigation-menu-item"],renderAppender:i.InnerBlocks.ButtonBlockAppender})))};n.d(t,"metadata",(function(){return d})),n.d(t,"name",(function(){return h})),n.d(t,"settings",(function(){return p}));var d={name:"core/navigation-menu-item",category:"layout",attributes:{label:{type:"string"},destination:{type:"string"},nofollow:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},opensInNewTab:{type:"boolean",default:!1}}},h=d.name,p={title:Object(r.__)("Menu Item (Experimental)"),parent:["core/navigation-menu"],icon:"admin-links",description:Object(r.__)("Add a page, link, or other item to your Navigation Menu."),edit:m,save:function(){return Object(o.createElement)(i.InnerBlocks.Content,null)}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(12),a=n(11),c=n(13),i=n(14),l=n(5),s=n(15),u=n(0),b=n(2),m=n(3),d=n(4),h=n(6),p=n(8),g=n(9),f=n(19),v=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).titleField=Object(u.createRef)(),e.editButton=Object(u.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(l.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(l.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(l.a)(e)),e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===f.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,n=e.title,o=e.isSaving,a=e.isEditDisabled,c=e.onEdit,i=e.instanceId;return Object(u.createElement)(u.Fragment,null,!t&&!o&&Object(u.createElement)("div",{className:"reusable-block-edit-panel"},Object(u.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object(u.createElement)(m.Button,{ref:this.editButton,isLarge:!0,className:"reusable-block-edit-panel__button",disabled:a,onClick:c},Object(r.__)("Edit"))),(t||o)&&Object(u.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(u.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(i),className:"reusable-block-edit-panel__label"},Object(r.__)("Name:")),Object(u.createElement)("input",{ref:this.titleField,type:"text",disabled:o,className:"reusable-block-edit-panel__title",value:n,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(i)}),Object(u.createElement)(m.Button,{type:"submit",isLarge:!0,isBusy:o,disabled:!n||o,className:"reusable-block-edit-panel__button"},Object(r.__)("Save"))))}}]),t}(u.Component),O=Object(p.withInstanceId)(v);var j=function(e){var t=e.title,n=Object(r.sprintf)(Object(r.__)("Reusable Block: %s"),t);return Object(u.createElement)(m.Tooltip,{text:n},Object(u.createElement)("span",{className:"reusable-block-indicator"},Object(u.createElement)(m.Dashicon,{icon:"controls-repeat"})))},y=function(e){function t(e){var n,r=e.reusableBlock;return Object(o.a)(this,t),(n=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(l.a)(n)),n.stopEditing=n.stopEditing.bind(Object(l.a)(n)),n.setBlocks=n.setBlocks.bind(Object(l.a)(n)),n.setTitle=n.setTitle.bind(Object(l.a)(n)),n.save=n.save.bind(Object(l.a)(n)),n.state=r?{isEditing:r.isTemporary,title:r.title,blocks:Object(g.parse)(r.content)}:{isEditing:!1,title:null,blocks:[]},n}return Object(s.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object(g.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object(g.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,n=e.onSave,r=this.state,o=r.blocks;t({title:r.title,content:Object(g.serialize)(o)}),n(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,o=e.isFetching,a=e.isSaving,c=e.canUpdateBlock,i=e.settings,l=this.state,s=l.isEditing,b=l.title,d=l.blocks;if(!n&&o)return Object(u.createElement)(m.Placeholder,null,Object(u.createElement)(m.Spinner,null));if(!n)return Object(u.createElement)(m.Placeholder,null,Object(r.__)("Block has been deleted or is unavailable."));var p=Object(u.createElement)(h.BlockEditorProvider,{settings:i,value:d,onChange:this.setBlocks,onInput:this.setBlocks},Object(u.createElement)(h.WritingFlow,null,Object(u.createElement)(h.BlockList,null)));return s||(p=Object(u.createElement)(m.Disabled,null,p)),Object(u.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||s)&&Object(u.createElement)(O,{isEditing:s,title:null!==b?b:n.title,isSaving:a&&!n.isTemporary,isEditDisabled:!c,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),!t&&!s&&Object(u.createElement)(j,{title:n.title}),p)}}]),t}(u.Component),_=Object(p.compose)([Object(d.withSelect)((function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,a=n.__experimentalIsSavingReusableBlock,c=e("core").canUser,i=e("core/block-editor"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=r(u);return{reusableBlock:b,isFetching:o(u),isSaving:a(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!c("update","blocks",u),settings:s()}})),Object(d.withDispatch)((function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlock,a=n.__experimentalSaveReusableBlock,c=t.attributes.ref;return{fetchReusableBlock:Object(b.partial)(r,c),onChange:Object(b.partial)(o,c),onSave:Object(b.partial)(a,c)}}))])(y);n.d(t,"name",(function(){return k})),n.d(t,"settings",(function(){return C}));var k="core/block",C={title:Object(r.__)("Reusable Block"),category:"reusable",description:Object(r.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used."),supports:{customClassName:!1,html:!1,inserter:!1},edit:_}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6),c=n(3),i=n(23),l=n(4),s=Object(o.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(o.createElement)(c.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));var u=function(e){var t=e.attributes,n=e.setAttributes,u=function(e){var t=Object(o.useState)(!1),n=Object(i.a)(t,2),u=n[0],b=n[1],m=Object(l.useSelect)((function(t){var n=t("core/block-editor"),r=n.getSelectedBlockClientId;return{block:(0,n.getBlock)(e),selectedBlockClientId:r()}}),[e]),d=m.block,h=m.selectedBlockClientId,p=Object(l.useDispatch)("core/block-editor").selectBlock;return{navigatorToolbarButton:Object(o.createElement)(c.IconButton,{className:"components-toolbar__control",label:Object(r.__)("Open block navigator"),onClick:function(){return b(!0)},icon:s}),navigatorModal:u&&Object(o.createElement)(c.Modal,{title:Object(r.__)("Block Navigator"),closeLabel:Object(r.__)("Close"),onRequestClose:function(){b(!1)}},Object(o.createElement)(a.__experimentalBlockNavigationList,{blocks:[d],selectedBlockClientId:h,selectBlock:p,showNestedBlocks:!0}))}}(e.clientId),b=u.navigatorToolbarButton,m=u.navigatorModal;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(a.BlockControls,null,Object(o.createElement)(c.Toolbar,null,b)),m,Object(o.createElement)(a.InspectorControls,null,Object(o.createElement)(c.PanelBody,{title:Object(r.__)("Menu Settings")},Object(o.createElement)(c.CheckboxControl,{value:t.automaticallyAdd,onChange:function(e){n({automaticallyAdd:e})},label:Object(r.__)("Automatically add new pages"),help:Object(r.__)("Automatically add new top level pages to this menu.")}))),Object(o.createElement)("div",{className:"wp-block-navigation-menu"},Object(o.createElement)(a.InnerBlocks,{allowedBlocks:["core/navigation-menu-item"],renderAppender:a.InnerBlocks.ButtonBlockAppender})))};n.d(t,"name",(function(){return b})),n.d(t,"settings",(function(){return m}));var b="core/navigation-menu",m={title:Object(r.__)("Navigation Menu (Experimental)"),icon:"menu",description:Object(r.__)("Add a navigation menu to your site."),keywords:[Object(r.__)("menu"),Object(r.__)("navigation"),Object(r.__)("links")],supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},edit:u,save:function(){return Object(o.createElement)(a.InnerBlocks.Content,null)}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(12),a=n(11),c=n(13),i=n(14),l=n(5),s=n(15),u=n(0),b=n(2),m=n(3),d=n(8),h=n(4),p=n(6),g=function(e){function t(){var e;return Object(o.a)(this,t),(e=Object(c.a)(this,Object(i.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(l.a)(e)),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(l.a)(e)),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(l.a)(e)),e}return Object(s.a)(t,e),Object(a.a)(t,[{key:"toggleDisplayAsDropdown",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({displayAsDropdown:!t.displayAsDropdown})}},{key:"toggleShowPostCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showPostCounts:!t.showPostCounts})}},{key:"toggleShowHierarchy",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showHierarchy:!t.showHierarchy})}},{key:"getCategories",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(b.unescape)(e.name).trim():Object(r.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object(u.createElement)("ul",{className:this.getCategoryListClassName(0)},n.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return Object(u.createElement)("li",{key:e.id},Object(u.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),a&&Object(u.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!c.length&&Object(u.createElement)("ul",{className:this.getCategoryListClassName(t+1)},c.map((function(e){return n.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,n=this.props.attributes.showHierarchy?0:null,o=this.getCategories(n),a="blocks-category-select-".concat(t);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("label",{htmlFor:a,className:"screen-reader-text"},Object(r.__)("Categories")),Object(u.createElement)("select",{id:a,className:"wp-block-categories__dropdown"},o.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return[Object(u.createElement)("option",{key:e.id},Object(b.times)(3*t,(function(){return" "})),this.renderCategoryName(e),a?" (".concat(e.count,")"):""),o&&!!c.length&&c.map((function(e){return n.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.isRequesting,o=t.displayAsDropdown,a=t.showHierarchy,c=t.showPostCounts,i=Object(u.createElement)(p.InspectorControls,null,Object(u.createElement)(m.PanelBody,{title:Object(r.__)("Categories Settings")},Object(u.createElement)(m.ToggleControl,{label:Object(r.__)("Display as Dropdown"),checked:o,onChange:this.toggleDisplayAsDropdown}),Object(u.createElement)(m.ToggleControl,{label:Object(r.__)("Show Hierarchy"),checked:a,onChange:this.toggleShowHierarchy}),Object(u.createElement)(m.ToggleControl,{label:Object(r.__)("Show Post Counts"),checked:c,onChange:this.toggleShowPostCounts})));return n?Object(u.createElement)(u.Fragment,null,i,Object(u.createElement)(m.Placeholder,{icon:"admin-post",label:Object(r.__)("Categories")},Object(u.createElement)(m.Spinner,null))):Object(u.createElement)(u.Fragment,null,i,Object(u.createElement)("div",{className:this.props.className},o?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(u.Component),f=Object(d.compose)(Object(h.withSelect)((function(e){var t=e("core").getEntityRecords,n=e("core/data").isResolving,r={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}})),d.withInstanceId)(g),v=Object(u.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(m.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(u.createElement)(m.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object(u.createElement)(m.Path,{d:"m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),Object(u.createElement)(m.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"}));n.d(t,"name",(function(){return O})),n.d(t,"settings",(function(){return j}));var O="core/categories",j={title:Object(r.__)("Categories"),description:Object(r.__)("Display a list of all categories."),icon:v,category:"widgets",supports:{align:!0,html:!1},edit:f}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(7),a=n(12),c=n(11),i=n(13),l=n(14),s=n(5),u=n(15),b=n(0),m=n(29),d=n.n(m),h=n(45),p=n.n(h),g=n(3),f=n(4),v=n(55),O=n.n(v),j=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).getYearMonth=p()(e.getYearMonth.bind(Object(s.a)(e)),{maxSize:1}),e.getServerSideAttributes=p()(e.getServerSideAttributes.bind(Object(s.a)(e)),{maxSize:1}),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=d()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return Object(o.a)({},e,this.getYearMonth(t))}},{key:"render",value:function(){return Object(b.createElement)(g.Disabled,null,Object(b.createElement)(O.a,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}(b.Component),y=Object(f.withSelect)((function(e){var t=e("core/editor");if(t){var n=t.getEditedPostAttribute;return{date:"post"===n("type")?n("date"):void 0}}}))(j),_=Object(b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(g.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(b.createElement)(g.G,null,Object(b.createElement)(g.Path,{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"})));n.d(t,"name",(function(){return k})),n.d(t,"settings",(function(){return C}));var k="core/calendar",C={title:Object(r.__)("Calendar"),description:Object(r.__)("A calendar of your site’s posts."),icon:_,category:"widgets",keywords:[Object(r.__)("posts"),Object(r.__)("archive")],supports:{align:!0},example:{},edit:y}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(18),c=n(12),i=n(11),l=n(13),s=n(14),u=n(15),b=n(0),m=n(2),d=n(16),h=n.n(d),p=n(3),g=n(32),f=n.n(g),v=n(26),O=n(56),j=n(6),y=n(4),_={per_page:-1},k=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={categoriesList:[]},e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=f()({path:Object(v.addQueryArgs)("/wp/v2/categories",_)}).then((function(t){e.isStillMounted&&e.setState({categoriesList:t})})).catch((function(){e.isStillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,c=e.latestPosts,i=this.state.categoriesList,l=t.displayPostContentRadio,s=t.displayPostContent,u=t.displayPostDate,m=t.postLayout,d=t.columns,g=t.order,f=t.orderBy,v=t.categories,y=t.postsToShow,_=t.excerptLength,k=Object(b.createElement)(j.InspectorControls,null,Object(b.createElement)(p.PanelBody,{title:Object(r.__)("Post Content Settings")},Object(b.createElement)(p.ToggleControl,{label:Object(r.__)("Post Content"),checked:s,onChange:function(e){return n({displayPostContent:e})}}),s&&Object(b.createElement)(p.RadioControl,{label:"Show:",selected:l,options:[{label:"Excerpt",value:"excerpt"},{label:"Full Post",value:"full_post"}],onChange:function(e){return n({displayPostContentRadio:e})}}),s&&"excerpt"===l&&Object(b.createElement)(p.RangeControl,{label:Object(r.__)("Max number of words in excerpt"),value:_,onChange:function(e){return n({excerptLength:e})},min:10,max:100})),Object(b.createElement)(p.PanelBody,{title:Object(r.__)("Post Meta Settings")},Object(b.createElement)(p.ToggleControl,{label:Object(r.__)("Display post date"),checked:u,onChange:function(e){return n({displayPostDate:e})}})),Object(b.createElement)(p.PanelBody,{title:Object(r.__)("Sorting and Filtering")},Object(b.createElement)(p.QueryControls,Object(a.a)({order:g,orderBy:f},{numberOfItems:y,categoriesList:i,selectedCategoryId:v,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}})),"grid"===m&&Object(b.createElement)(p.RangeControl,{label:Object(r.__)("Columns"),value:d,onChange:function(e){return n({columns:e})},min:2,max:C?Math.min(6,c.length):6,required:!0}))),C=Array.isArray(c)&&c.length;if(!C)return Object(b.createElement)(b.Fragment,null,k,Object(b.createElement)(p.Placeholder,{icon:"admin-post",label:Object(r.__)("Latest Posts")},Array.isArray(c)?Object(r.__)("No posts found."):Object(b.createElement)(p.Spinner,null)));var w=c.length>y?c.slice(0,y):c,E=[{icon:"list-view",title:Object(r.__)("List view"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===m},{icon:"grid-view",title:Object(r.__)("Grid view"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===m}],x=Object(O.__experimentalGetSettings)().formats.date;return Object(b.createElement)(b.Fragment,null,k,Object(b.createElement)(j.BlockControls,null,Object(b.createElement)(p.Toolbar,{controls:E})),Object(b.createElement)("ul",{className:h()(this.props.className,Object(o.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===m,"has-dates":u},"columns-".concat(d),"grid"===m))},w.map((function(e,t){var n=e.title.rendered.trim(),o=e.excerpt.rendered;""===e.excerpt.raw&&(o=e.content.raw);var a=document.createElement("div");return a.innerHTML=o,o=a.textContent||a.innerText||"",Object(b.createElement)("li",{key:t},Object(b.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object(b.createElement)(b.RawHTML,null,n):Object(r.__)("(no title)")),u&&e.date_gmt&&Object(b.createElement)("time",{dateTime:Object(O.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(O.dateI18n)(x,e.date_gmt)),s&&"excerpt"===l&&Object(b.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},Object(b.createElement)(b.RawHTML,{key:"html"},_'+Object(r.__)("Read more")+"":o.trim().split(" ",_).join(" "))),s&&"full_post"===l&&Object(b.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(b.createElement)(b.RawHTML,{key:"html"},e.content.raw.trim())))}))))}}]),t}(b.Component),C=Object(y.withSelect)((function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,a=n.orderBy,c=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(m.pickBy)({categories:c,order:o,orderby:a,per_page:r},(function(e){return!Object(m.isUndefined)(e)})))}}))(k),w=Object(b.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(p.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(b.createElement)(p.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(b.createElement)(p.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(b.createElement)(p.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(b.createElement)(p.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(b.createElement)(p.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(b.createElement)(p.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"}));n.d(t,"name",(function(){return E})),n.d(t,"settings",(function(){return x}));var E="core/latest-posts",x={title:Object(r.__)("Latest Posts"),description:Object(r.__)("Display a list of your most recent posts."),icon:w,category:"widgets",keywords:[Object(r.__)("recent posts")],supports:{align:!0,html:!1},edit:C}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(12),c=n(11),i=n(13),l=n(14),s=n(5),u=n(15),b=n(0),m=n(6),d=n(3),h=n(55),p=n.n(h),g=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(s.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(o.a)({},e,!n))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,n=e.displayAvatar,o=e.displayDate,a=e.displayExcerpt;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(m.InspectorControls,null,Object(b.createElement)(d.PanelBody,{title:Object(r.__)("Latest Comments Settings")},Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display Avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display Date"),checked:o,onChange:this.toggleDisplayDate}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display Excerpt"),checked:a,onChange:this.toggleDisplayExcerpt}),Object(b.createElement)(d.RangeControl,{label:Object(r.__)("Number of Comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(b.createElement)(d.Disabled,null,Object(b.createElement)(p.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(b.Component),f=Object(b.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(b.createElement)(d.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(b.createElement)(d.G,null,Object(b.createElement)(d.Path,{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"})));n.d(t,"name",(function(){return v})),n.d(t,"settings",(function(){return O}));var v="core/latest-comments",O={title:Object(r.__)("Latest Comments"),description:Object(r.__)("Display a list of your most recent comments."),icon:f,category:"widgets",keywords:[Object(r.__)("recent comments")],supports:{align:!0,html:!1},edit:g}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6),c=n(80),i=Object.keys(c.a).map((function(e){return"core/social-link-"+e})),l=[["core/social-link-wordpress",{url:"https://wordpress.org"}],["core/social-link-facebook"],["core/social-link-twitter"],["core/social-link-instagram"],["core/social-link-linkedin"],["core/social-link-youtube"]],s=function(e){var t=e.className;return Object(o.createElement)("div",{className:t},Object(o.createElement)(a.InnerBlocks,{allowedBlocks:i,templateLock:!1,template:l}))};n.d(t,"metadata",(function(){return u})),n.d(t,"name",(function(){return b})),n.d(t,"settings",(function(){return m}));var u={name:"core/social-links",category:"widgets",icon:"share",attributes:{}},b=u.name,m={title:Object(r.__)("Social links"),description:Object(r.__)("Create a block of links to your social media or external sites"),supports:{align:["left","center","right"]},example:{innerBlocks:[{name:"core/social-link-wordpress",attributes:{url:"https://wordpress.org"}},{name:"core/social-link-facebook",attributes:{url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link-twitter",attributes:{url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(r.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(r.__)("Logos Only")},{name:"pill-shape",label:Object(r.__)("Pill Shape")}],edit:s,save:function(e){var t=e.className;return Object(o.createElement)("ul",{className:t},Object(o.createElement)(a.InnerBlocks.Content,null))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(3),c=n(6),i=n(55),l=n.n(i);var s=Object(o.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(a.Path,{d:"M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z"}));n.d(t,"name",(function(){return u})),n.d(t,"settings",(function(){return b}));var u="core/archives",b={title:Object(r.__)("Archives"),description:Object(r.__)("Display a monthly archive of your posts."),icon:s,category:"widgets",supports:{align:!0,html:!1},edit:function(e){var t=e.attributes,n=e.setAttributes,i=t.showPostCounts,s=t.displayAsDropdown;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(a.PanelBody,{title:Object(r.__)("Archives Settings")},Object(o.createElement)(a.ToggleControl,{label:Object(r.__)("Display as Dropdown"),checked:s,onChange:function(){return n({displayAsDropdown:!s})}}),Object(o.createElement)(a.ToggleControl,{label:Object(r.__)("Show Post Counts"),checked:i,onChange:function(){return n({showPostCounts:!i})}}))),Object(o.createElement)(a.Disabled,null,Object(o.createElement)(l.a,{block:"core/archives",attributes:t})))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(17),a=n(12),c=n(11),i=n(13),l=n(14),s=n(5),u=n(15),b=n(0),m=n(2),d=n(3),h=n(4),p=n(6),g=n(55),f=n.n(g),v=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(s.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(s.a)(e)),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(m.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(r.__)("- Select -"),value:"",disabled:!0},n=Object(m.map)(e,(function(e){return{value:e.slug,label:e.name}}));return[t].concat(Object(o.a)(n))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,n=e.showTagCounts,o=this.getTaxonomyOptions(),a=Object(b.createElement)(p.InspectorControls,null,Object(b.createElement)(d.PanelBody,{title:Object(r.__)("Tag Cloud Settings")},Object(b.createElement)(d.SelectControl,{label:Object(r.__)("Taxonomy"),options:o,value:t,onChange:this.setTaxonomy}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object(b.createElement)(b.Fragment,null,a,Object(b.createElement)(f.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}(b.Component),O=Object(h.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(v);n.d(t,"name",(function(){return j})),n.d(t,"settings",(function(){return y}));var j="core/tag-cloud",y={title:Object(r.__)("Tag Cloud"),description:Object(r.__)("A cloud of your most used tags."),icon:"tag",category:"widgets",supports:{html:!1,align:!0},edit:O}},function(e,t,n){"use strict";var r=n(7),o=n(1),a=n(23),c=n(0),i=n(16),l=n.n(i),s=n(6),u=n(3),b=n(80),m=function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,i=t.url,m=t.site,d=Object(c.useState)(!1),h=Object(a.a)(d,2),p=h[0],g=h[1],f=l()("wp-social-link","wp-social-link-"+m,{"wp-social-link__is-incomplete":!i}),v=Object(b.b)(m);return Object(c.createElement)(u.Button,{className:f,onClick:function(){return g(!0)}},Object(c.createElement)(v,null),r&&p&&Object(c.createElement)(s.URLPopover,{onClose:function(){return g(!1)}},Object(c.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),g(!1)}},Object(c.createElement)("div",{className:"editor-url-input block-editor-url-input"},Object(c.createElement)("input",{type:"text",value:i,onChange:function(e){return n({url:e.target.value})},placeholder:Object(o.__)("Enter Address")})),Object(c.createElement)(u.IconButton,{icon:"editor-break",label:Object(o.__)("Apply"),type:"submit"}))))};n.d(t,"a",(function(){return h}));var d={category:"widgets",parent:["core/social-links"],supports:{reusable:!1,html:!1},edit:m},h=Object.keys(b.a).map((function(e){var t=b.a[e];return{name:"core/social-link-"+e,settings:Object(r.a)({title:t.name,icon:t.icon,description:Object(o.__)("Link to "+t.name)},d,{attributes:{url:{type:"string"},site:{type:"string",default:e}}})}}))},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(6);n.d(t,"name",(function(){return c})),n.d(t,"settings",(function(){return i}));var c="core/search",i={title:Object(r.__)("Search"),description:Object(r.__)("Help visitors find your content."),icon:"search",category:"widgets",keywords:[Object(r.__)("find")],supports:{align:!0},example:{},edit:function(e){var t=e.className,n=e.attributes,c=e.setAttributes,i=n.label,l=n.placeholder,s=n.buttonText;return Object(o.createElement)("div",{className:t},Object(o.createElement)(a.RichText,{wrapperClassName:"wp-block-search__label","aria-label":Object(r.__)("Label text"),placeholder:Object(r.__)("Add label…"),withoutInteractiveFormatting:!0,value:i,onChange:function(e){return c({label:e})}}),Object(o.createElement)("input",{className:"wp-block-search__input","aria-label":Object(r.__)("Optional placeholder text"),placeholder:l?void 0:Object(r.__)("Optional placeholder…"),value:l,onChange:function(e){return c({placeholder:e.target.value})}}),Object(o.createElement)(a.RichText,{wrapperClassName:"wp-block-search__button",className:"wp-block-search__button-rich-text","aria-label":Object(r.__)("Button text"),placeholder:Object(r.__)("Add button text…"),withoutInteractiveFormatting:!0,value:s,onChange:function(e){return c({buttonText:e})}}))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(10),a=n(12),c=n(11),i=n(13),l=n(14),s=n(5),u=n(15),b=n(0),m=n(3),d=n(6),h=n(55),p=n.n(h),g=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(s.a)(e)),e.onSubmitURL=e.onSubmitURL.bind(Object(s.a)(e)),e}return Object(u.a)(t,e),Object(c.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(o.a)({},e,!n))}}},{key:"onSubmitURL",value:function(e){e.preventDefault(),this.props.attributes.feedURL&&this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.blockLayout,o=t.columns,a=t.displayAuthor,c=t.displayExcerpt,i=t.displayDate,l=t.excerptLength,s=t.feedURL,u=t.itemsToShow,h=this.props.setAttributes;if(this.state.editing)return Object(b.createElement)(m.Placeholder,{icon:"rss",label:"RSS"},Object(b.createElement)("form",{onSubmit:this.onSubmitURL},Object(b.createElement)(m.TextControl,{placeholder:Object(r.__)("Enter URL here…"),value:s,onChange:function(e){return h({feedURL:e})},className:"components-placeholder__input"}),Object(b.createElement)(m.Button,{isLarge:!0,type:"submit"},Object(r.__)("Use URL"))));var g=[{icon:"edit",title:Object(r.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(r.__)("List view"),onClick:function(){return h({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(r.__)("Grid view"),onClick:function(){return h({blockLayout:"grid"})},isActive:"grid"===n}];return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(d.BlockControls,null,Object(b.createElement)(m.Toolbar,{controls:g})),Object(b.createElement)(d.InspectorControls,null,Object(b.createElement)(m.PanelBody,{title:Object(r.__)("RSS Settings")},Object(b.createElement)(m.RangeControl,{label:Object(r.__)("Number of items"),value:u,onChange:function(e){return h({itemsToShow:e})},min:1,max:10,required:!0}),Object(b.createElement)(m.ToggleControl,{label:Object(r.__)("Display author"),checked:a,onChange:this.toggleAttribute("displayAuthor")}),Object(b.createElement)(m.ToggleControl,{label:Object(r.__)("Display date"),checked:i,onChange:this.toggleAttribute("displayDate")}),Object(b.createElement)(m.ToggleControl,{label:Object(r.__)("Display excerpt"),checked:c,onChange:this.toggleAttribute("displayExcerpt")}),c&&Object(b.createElement)(m.RangeControl,{label:Object(r.__)("Max number of words in excerpt"),value:l,onChange:function(e){return h({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object(b.createElement)(m.RangeControl,{label:Object(r.__)("Columns"),value:o,onChange:function(e){return h({columns:e})},min:2,max:6,required:!0}))),Object(b.createElement)(m.Disabled,null,Object(b.createElement)(p.a,{block:"core/rss",attributes:this.props.attributes})))}}]),t}(b.Component);n.d(t,"name",(function(){return f})),n.d(t,"settings",(function(){return v}));var f="core/rss",v={title:Object(r.__)("RSS"),description:Object(r.__)("Display entries from any RSS or Atom feed."),icon:"rss",category:"widgets",keywords:[Object(r.__)("atom"),Object(r.__)("feed")],supports:{align:!0,html:!1},example:{attributes:{feedURL:"https://wordpress.org"}},edit:g}},,,function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"registerCoreBlocks",(function(){return J})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return X}));var r=n(17),o=n(10),a=(n(97),n(6),n(24),n(9)),c=n(164),i=n(243),l=n(240),s=n(252),u=n(241),b=n(275),m=n(260),d=n(254),h=n(271),p=n(270),g=n(250),f=n(257),v=n(264),O=n(244),j=n(128),y=n(246),_=n(253),k=n(242),C=n(269),w=n(267),E=n(273),x=n(272),S=n(248),T=n(251),B=n(166),N=n(255),M=n(256),A=n(258),R=n(249),I=n(268),L=n(279),z=n(278),P=n(129),H=n(259),V=n(261),D=n(266),F=n(262),U=n(245),q=n(265),W=n(247),G=n(263),Z=n(276),K=n(165),$=n(274),Y=n(277),Q=function(e){if(e){var t=e.metadata,n=e.settings,r=e.name;t&&Object(a.unstable__bootstrapServerSideBlockDefinitions)(Object(o.a)({},r,t)),Object(a.registerBlockType)(r,n)}},J=function(){[c,i,l,u,T,s,V,b,m,d,h,p,g,f,v,O,j].concat(Object(r.a)(j.common),Object(r.a)(j.others),[y,P,window.wp&&window.wp.oldEditor?K:null,_,k,E,x,B,N,M,A,R,L,z,H,I,D,F,U,Z,q,W,G]).forEach(Q),Object(a.setDefaultBlockName)(c.name),window.wp&&window.wp.oldEditor&&Object(a.setFreeformContentHandlerName)(K.name),Object(a.setUnregisteredTypeHandlerName)(B.name),P&&Object(a.setGroupingBlockName)(P.name)},X=2===e.env.GUTENBERG_PHASE?function(e){var t=e.__experimentalEnableLegacyWidgetBlock,n=e.__experimentalEnableMenuBlock;[t?S:null,n?C:null,n?w:null,$].concat(Object(r.a)(Y.a)).forEach(Q)}:void 0}.call(this,n(96))}]); \ No newline at end of file +e.exports=function(){"use strict";function e(e,t){for(var n=0;nc?(n=o/c,i=100,l=Math.round(i/n)):(n=c/o,l=100,i=Math.round(l/n)),(i>o||l>c||i<10||l<10)&&(i=o,l=c),{srcLeft:r,srcTop:a,srcWidth:o,srcHeight:c,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,a=0,o=0,c=0,i=0,l=0;lr?-1:n===r?0:1}))[0],5),m=b[0],d=b[1],h=b[2],p=b[3],g=b[4];return p?[Math.round(m/p),Math.round(d/p),Math.round(h/p),Math.round(p/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,a=(n=n||{})&&n.data,o=this._getDefaultColor(n),c=function(){s(),t.call(e,r.getColor(e,n),a)},i=function(){s(),t.call(e,r._prepareResult(o,new Error("Image error")),a)},l=function(){s(),t.call(e,r._prepareResult(o,new Error("Image abort")),a)},s=function(){e.removeEventListener("load",c),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",c),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),r=[].concat(n,e[3]/255),a=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:a,isLight:!a}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(r.prototype,a),o&&e(r,o),n}()}()},2:function(e,t){!function(){e.exports=this.lodash}()},21:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}n.d(t,"a",(function(){return r}))},22:function(e,t){!function(){e.exports=this.wp.richText}()},23:function(e,t,n){"use strict";var r=n(38);var a=n(39);function o(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||Object(a.a)()}n.d(t,"a",(function(){return o}))},24:function(e,t){!function(){e.exports=this.wp.editor}()},26:function(e,t){!function(){e.exports=this.wp.url}()},29:function(e,t){!function(){e.exports=this.moment}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},31:function(e,t,n){"use strict";function r(e){return(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})(e)}function a(e){return(a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return a}))},310:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"metadata",(function(){return ve})),n.d(r,"name",(function(){return Oe})),n.d(r,"settings",(function(){return je}));var a={};n.r(a),n.d(a,"metadata",(function(){return gt})),n.d(a,"name",(function(){return ft})),n.d(a,"settings",(function(){return vt}));var o={};n.r(o),n.d(o,"metadata",(function(){return wt})),n.d(o,"name",(function(){return Et})),n.d(o,"settings",(function(){return xt}));var c={};n.r(c),n.d(c,"metadata",(function(){return At})),n.d(c,"name",(function(){return Lt})),n.d(c,"settings",(function(){return It}));var i={};n.r(i),n.d(i,"metadata",(function(){return Qt})),n.d(i,"name",(function(){return Jt})),n.d(i,"settings",(function(){return Xt}));var l={};n.r(l),n.d(l,"name",(function(){return rn})),n.d(l,"settings",(function(){return an}));var s={};n.r(s),n.d(s,"metadata",(function(){return bn})),n.d(s,"name",(function(){return mn})),n.d(s,"settings",(function(){return dn}));var u={};n.r(u),n.d(u,"metadata",(function(){return En})),n.d(u,"name",(function(){return xn})),n.d(u,"settings",(function(){return Sn}));var b={};n.r(b),n.d(b,"name",(function(){return An})),n.d(b,"settings",(function(){return Ln}));var m={};n.r(m),n.d(m,"name",(function(){return Hn})),n.d(m,"settings",(function(){return Vn}));var d={};n.r(d),n.d(d,"metadata",(function(){return Yn})),n.d(d,"name",(function(){return Qn})),n.d(d,"settings",(function(){return Jn}));var h={};n.r(h),n.d(h,"metadata",(function(){return dr})),n.d(h,"name",(function(){return hr})),n.d(h,"settings",(function(){return pr}));var p={};n.r(p),n.d(p,"metadata",(function(){return vr})),n.d(p,"name",(function(){return Or})),n.d(p,"settings",(function(){return jr}));var g={};n.r(g),n.d(g,"metadata",(function(){return Fr})),n.d(g,"name",(function(){return Ur})),n.d(g,"settings",(function(){return qr}));var f={};n.r(f),n.d(f,"name",(function(){return na})),n.d(f,"settings",(function(){return ra})),n.d(f,"common",(function(){return aa})),n.d(f,"others",(function(){return oa}));var v={};n.r(v),n.d(v,"metadata",(function(){return ba})),n.d(v,"name",(function(){return ma})),n.d(v,"settings",(function(){return da}));var O={};n.r(O),n.d(O,"metadata",(function(){return va})),n.d(O,"name",(function(){return Oa})),n.d(O,"settings",(function(){return ja}));var j={};n.r(j),n.d(j,"metadata",(function(){return Aa})),n.d(j,"name",(function(){return La})),n.d(j,"settings",(function(){return Ia}));var y={};n.r(y),n.d(y,"name",(function(){return Ha})),n.d(y,"settings",(function(){return Va}));var _={};n.r(_),n.d(_,"name",(function(){return Ka})),n.d(_,"settings",(function(){return $a}));var k={};n.r(k),n.d(k,"metadata",(function(){return io})),n.d(k,"name",(function(){return lo})),n.d(k,"settings",(function(){return so}));var C={};n.r(C),n.d(C,"metadata",(function(){return bo})),n.d(C,"name",(function(){return mo})),n.d(C,"settings",(function(){return ho}));var w={};n.r(w),n.d(w,"metadata",(function(){return vo})),n.d(w,"name",(function(){return Oo})),n.d(w,"settings",(function(){return jo}));var E={};n.r(E),n.d(E,"metadata",(function(){return ko})),n.d(E,"name",(function(){return Co})),n.d(E,"settings",(function(){return wo}));var x={};n.r(x),n.d(x,"metadata",(function(){return So})),n.d(x,"name",(function(){return To})),n.d(x,"settings",(function(){return No}));var S={};n.r(S),n.d(S,"metadata",(function(){return zo})),n.d(S,"name",(function(){return Po})),n.d(S,"settings",(function(){return Ho}));var T={};n.r(T),n.d(T,"name",(function(){return Wo})),n.d(T,"settings",(function(){return Go}));var N={};n.r(N),n.d(N,"name",(function(){return Ko})),n.d(N,"settings",(function(){return $o}));var M={};n.r(M),n.d(M,"name",(function(){return Yo})),n.d(M,"settings",(function(){return Qo}));var B={};n.r(B),n.d(B,"metadata",(function(){return tc})),n.d(B,"name",(function(){return nc})),n.d(B,"settings",(function(){return rc}));var R={};n.r(R),n.d(R,"metadata",(function(){return ic})),n.d(R,"name",(function(){return lc})),n.d(R,"settings",(function(){return sc}));var A={};n.r(A),n.d(A,"name",(function(){return hc})),n.d(A,"settings",(function(){return pc}));var L={};n.r(L),n.d(L,"metadata",(function(){return vc})),n.d(L,"name",(function(){return Oc})),n.d(L,"settings",(function(){return jc}));var I={};n.r(I),n.d(I,"metadata",(function(){return wc})),n.d(I,"name",(function(){return Ec})),n.d(I,"settings",(function(){return xc}));var z={};n.r(z),n.d(z,"metadata",(function(){return Wc})),n.d(z,"name",(function(){return Gc})),n.d(z,"settings",(function(){return Zc}));var P={};n.r(P),n.d(P,"metadata",(function(){return $c})),n.d(P,"name",(function(){return Yc})),n.d(P,"settings",(function(){return Qc}));var H={};n.r(H),n.d(H,"metadata",(function(){return ti})),n.d(H,"name",(function(){return ni})),n.d(H,"settings",(function(){return ri}));var V={};n.r(V),n.d(V,"metadata",(function(){return ui})),n.d(V,"name",(function(){return bi})),n.d(V,"settings",(function(){return mi}));var D={};n.r(D),n.d(D,"name",(function(){return pi})),n.d(D,"settings",(function(){return gi}));var F={};n.r(F),n.d(F,"metadata",(function(){return ji})),n.d(F,"name",(function(){return yi})),n.d(F,"settings",(function(){return _i}));var U=n(17),q=n(10),W=(n(86),n(6)),G=(n(24),n(9)),Z=n(1),K=n(7),$=n(0),Y=n(16),Q=n.n(Y),J=n(2),X={className:!1},ee={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},direction:{type:"string",enum:["ltr","rtl"]}},te=[{supports:X,attributes:ee,save:function(e){var t,n=e.attributes,r=n.align,a=n.content,o=n.dropCap,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(W.getColorClassName)("color",i),h=Object(W.getColorClassName)("background-color",c),p=Object(W.getFontSizeClass)(u),g=Q()((t={"has-text-color":i||s,"has-background":c||l,"has-drop-cap":o},Object(q.a)(t,p,p),Object(q.a)(t,d,d),Object(q.a)(t,h,h),t)),f={backgroundColor:h?void 0:l,color:d?void 0:s,fontSize:p?void 0:b,textAlign:r};return Object($.createElement)(W.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:a,dir:m})}},{supports:X,attributes:Object(K.a)({},ee,{width:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.width,a=n.align,o=n.content,c=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.customBackgroundColor,u=n.customTextColor,b=n.fontSize,m=n.customFontSize,d=Object(W.getColorClassName)("color",l),h=Object(W.getColorClassName)("background-color",i),p=b&&"is-".concat(b,"-text"),g=Q()((t={},Object(q.a)(t,"align".concat(r),r),Object(q.a)(t,"has-background",i||s),Object(q.a)(t,"has-drop-cap",c),Object(q.a)(t,p,p),Object(q.a)(t,d,d),Object(q.a)(t,h,h),t)),f={backgroundColor:h?void 0:s,color:d?void 0:u,fontSize:p?void 0:m,textAlign:a};return Object($.createElement)(W.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o})}},{supports:X,attributes:Object(J.omit)(Object(K.a)({},ee,{fontSize:{type:"number"}}),"customFontSize","customTextColor","customBackgroundColor"),save:function(e){var t,n=e.attributes,r=n.width,a=n.align,o=n.content,c=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.fontSize,u=Q()((t={},Object(q.a)(t,"align".concat(r),r),Object(q.a)(t,"has-background",i),Object(q.a)(t,"has-drop-cap",c),t)),b={backgroundColor:i,color:l,fontSize:s,textAlign:a};return Object($.createElement)("p",{style:b,className:u||void 0},o)},migrate:function(e){return Object(J.omit)(Object(K.a)({},e,{customFontSize:Object(J.isFinite)(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0}),["fontSize","textColor","backgroundColor"])}},{supports:X,attributes:Object(K.a)({},ee,{content:{type:"string",source:"html",default:""}}),save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.content)},migrate:function(e){return e}}],ne=n(18),re=n(12),ae=n(11),oe=n(13),ce=n(14),ie=n(5),le=n(15),se=n(3),ue=n(8),be=n(4),me=window.getComputedStyle,de=Object(se.withFallbackStyles)((function(e,t){var n=t.attributes,r=n.textColor,a=n.backgroundColor,o=n.fontSize,c=n.customFontSize,i=e.querySelector('[contenteditable="true"]'),l=i?me(i):null;return{fallbackBackgroundColor:a||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:o||c||!l?void 0:parseInt(l.fontSize)||void 0}})),he=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).toggleDropCap=e.toggleDropCap.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"toggleDropCap",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({dropCap:!t.dropCap})}},{key:"getDropCapHelp",value:function(e){return e?Object(Z.__)("Showing large initial letter."):Object(Z.__)("Toggle to show a large initial letter.")}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.setAttributes,a=t.mergeBlocks,o=t.onReplace,c=t.className,i=t.backgroundColor,l=t.textColor,s=t.setBackgroundColor,u=t.setTextColor,b=t.fallbackBackgroundColor,m=t.fallbackTextColor,d=t.fallbackFontSize,h=t.fontSize,p=t.setFontSize,g=t.isRTL,f=n.align,v=n.content,O=n.dropCap,j=n.placeholder,y=n.direction;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.AlignmentToolbar,{value:f,onChange:function(e){r({align:e})}}),g&&Object($.createElement)(se.Toolbar,{controls:[{icon:"editor-ltr",title:Object(Z._x)("Left to right","editor button"),isActive:"ltr"===y,onClick:function(){r({direction:"ltr"===y?void 0:"ltr"})}}]})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Text Settings"),className:"blocks-font-size"},Object($.createElement)(W.FontSizePicker,{fallbackFontSize:d,value:h.size,onChange:p}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Drop Cap"),checked:!!O,onChange:this.toggleDropCap,help:this.getDropCapHelp})),Object($.createElement)(W.PanelColorSettings,{title:Object(Z.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:i.color,onChange:s,label:Object(Z.__)("Background Color")},{value:l.color,onChange:u,label:Object(Z.__)("Text Color")}]},Object($.createElement)(W.ContrastChecker,Object(ne.a)({textColor:l.color,backgroundColor:i.color,fallbackTextColor:m,fallbackBackgroundColor:b},{fontSize:h.size})))),Object($.createElement)(W.RichText,{identifier:"content",tagName:"p",className:Q()("wp-block-paragraph",c,(e={"has-text-color":l.color,"has-background":i.color,"has-drop-cap":O},Object(q.a)(e,"has-text-align-".concat(f),f),Object(q.a)(e,i.class,i.class),Object(q.a)(e,l.class,l.class),Object(q.a)(e,h.class,h.class),e)),style:{backgroundColor:i.color,color:l.color,fontSize:h.size?h.size+"px":void 0,direction:y},value:v,onChange:function(e){r({content:e})},onSplit:function(e){return e?Object(G.createBlock)("core/paragraph",Object(K.a)({},n,{content:e})):Object(G.createBlock)("core/paragraph")},onMerge:a,onReplace:o,onRemove:o?function(){return o([])}:void 0,"aria-label":v?Object(Z.__)("Paragraph block"):Object(Z.__)("Empty block; start writing or type forward slash to choose a block"),placeholder:j||Object(Z.__)("Start writing or type / to choose a block"),__unstableEmbedURLOnPaste:!0}))}}]),t}($.Component),pe=Object(ue.compose)([Object(W.withColors)("backgroundColor",{textColor:"color"}),Object(W.withFontSizes)("fontSize"),de,Object(be.withSelect)((function(e){return{isRTL:(0,e("core/block-editor").getSettings)().isRTL}}))])(he),ge=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z"}));var fe={from:[{type:"raw",priority:20,selector:"p",schema:{p:{children:Object(G.getPhrasingContentSchema)()}}}]},ve={name:"core/paragraph",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},direction:{type:"string",enum:["ltr","rtl"]}}},Oe=ve.name,je={title:Object(Z.__)("Paragraph"),description:Object(Z.__)("Start with the building block of all narrative."),icon:ge,keywords:[Object(Z.__)("text")],example:{attributes:{content:Object(Z.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing."),customFontSize:28,dropCap:!0}},supports:{className:!1},transforms:fe,deprecated:te,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},getEditWrapperProps:function(e){var t=e.width;if(-1!==["wide","full","left","right"].indexOf(t))return{"data-align":t}},edit:pe,save:function(e){var t,n=e.attributes,r=n.align,a=n.content,o=n.dropCap,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(W.getColorClassName)("color",i),h=Object(W.getColorClassName)("background-color",c),p=Object(W.getFontSizeClass)(u),g=Q()((t={"has-text-color":i||s,"has-background":c||l,"has-drop-cap":o},Object(q.a)(t,"has-text-align-".concat(r),r),Object(q.a)(t,p,p),Object(q.a)(t,d,d),Object(q.a)(t,h,h),t)),f={backgroundColor:h?void 0:l,color:d?void 0:s,fontSize:p?void 0:b};return Object($.createElement)(W.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:a,dir:m})}},ye={align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},_e=[{attributes:ye,save:function(e){var t,n=e.attributes,r=n.url,a=n.alt,o=n.caption,c=n.align,i=n.href,l=n.width,s=n.height,u=n.id,b=Q()((t={},Object(q.a)(t,"align".concat(c),c),Object(q.a)(t,"is-resized",l||s),t)),m=Object($.createElement)("img",{src:r,alt:a,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object($.createElement)("figure",{className:b},i?Object($.createElement)("a",{href:i},m):m,!W.RichText.isEmpty(o)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ye,save:function(e){var t=e.attributes,n=t.url,r=t.alt,a=t.caption,o=t.align,c=t.href,i=t.width,l=t.height,s=t.id,u=Object($.createElement)("img",{src:n,alt:r,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object($.createElement)("figure",{className:o?"align".concat(o):null},c?Object($.createElement)("a",{href:c},u):u,!W.RichText.isEmpty(a)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:a}))}},{attributes:ye,save:function(e){var t=e.attributes,n=t.url,r=t.alt,a=t.caption,o=t.align,c=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object($.createElement)("img",Object(ne.a)({src:n,alt:r},s)),b={};return i?b={width:i}:"left"!==o&&"right"!==o||(b={maxWidth:"50%"}),Object($.createElement)("figure",{className:o?"align".concat(o):null,style:b},c?Object($.createElement)("a",{href:c},u):u,!W.RichText.isEmpty(a)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:a}))}}],ke=n(23),Ce=n(35),we=n(19),Ee=n(26),xe=n(42),Se=n(45),Te=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z"})),Ne=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.Path,{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"})),Me=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z"}),Object($.createElement)(se.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),Be=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z"})),Re={foreground:"#1da1f2",src:Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},Ae={foreground:"#ff0000",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},Le={foreground:"#3b5998",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},Ie=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),ze={foreground:"#0073AA",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},Pe={foreground:"#1db954",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},He=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),Ve={foreground:"#1ab7ea",src:Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},De=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),Fe={foreground:"#35465c",src:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},Ue=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object($.createElement)(se.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object($.createElement)(se.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),qe=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:Re,keywords:["tweet"],description:Object(Z.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:Ae,keywords:[Object(Z.__)("music"),Object(Z.__)("video")],description:Object(Z.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:Le,description:Object(Z.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:Ie,keywords:[Object(Z.__)("image")],description:Object(Z.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:ze,keywords:[Object(Z.__)("post"),Object(Z.__)("blog")],responsive:!1,description:Object(Z.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:Ne,keywords:[Object(Z.__)("music"),Object(Z.__)("audio")],description:Object(Z.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:Pe,keywords:[Object(Z.__)("music"),Object(Z.__)("audio")],description:Object(Z.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:He,keywords:[Object(Z.__)("image")],description:Object(Z.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:Ve,keywords:[Object(Z.__)("video")],description:Object(Z.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],We=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:Be,description:Object(Z.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:Te,description:Object(Z.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:Be,description:Object(Z.__)("Embed CollegeHumor content.")},patterns:[/^https?:\/\/(www\.)?collegehumor\.com\/.+/i]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:Te,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(G.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(Z.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:Be,description:Object(Z.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:Be,description:Object(Z.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:Me,description:Object(Z.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:Te,description:Object(Z.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:Te,description:Object(Z.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:Te,description:Object(Z.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:Ne,keywords:[Object(Z.__)("music"),Object(Z.__)("audio")],description:Object(Z.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:Te,description:Object(Z.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:De,description:Object(Z.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:Ne,description:Object(Z.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:Be,description:Object(Z.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:Te,description:Object(Z.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:Te,description:Object(Z.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:Me,description:Object(Z.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:Ne,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:Te,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(G.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(Z.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:Be,description:Object(Z.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:Fe,description:Object(Z.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:Be,keywords:[Object(Z.__)("video")],description:Object(Z.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:Be,description:Object(Z.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:Ue,keywords:[Object(Z.__)("ebook")],responsive:!1,description:Object(Z.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],Ge=["facebook.com","smugmug.com"],Ze=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],Ke=n(67),$e=n.n(Ke),Ye=n(44),Qe=n.n(Ye),Je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},Xe=function(e){return Object(J.includes)(e,'class="wp-embedded-content"')},et=function(e,t){var n=e.preview,r=e.name,a=e.attributes.url;if(a){var o=function(e){for(var t=0,n=[].concat(Object(U.a)(qe),Object(U.a)(We));t1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var r={"wp-has-aspect-ratio":!1},a=0;a=u.ratio)return $e()(t,(s={},Object(q.a)(s,u.className,n),Object(q.a)(s,"wp-has-aspect-ratio",n),s))}return t}var nt=Qe()((function(e,t,n,r){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var o={},c=e.type,i=void 0===c?"rich":c,l=e.html,s=e.provider_name,u=Object(J.kebabCase)(Object(J.toLower)(""!==s?s:t));return Xe(l)&&(i="wp-embed"),(l||"photo"===i)&&(o.type=i,o.providerNameSlug=u),o.className=tt(l,n,r&&a),o})),rt=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object($.createElement)(se.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"}));var at=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(ie.a)(e)),e.calculateSize=e.calculateSize.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=J.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e,t,n,r,a,o=(e=this.image,t=this.container,n=t.clientWidth,r=e.width>n,a=e.height/e.width,{width:r?n:e.width,height:r?n*a:e.height}),c=o.width,i=o.height;this.setState({width:c,height:i})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object($.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}($.Component),ot=Object(ue.withGlobalEvents)({resize:"calculateSize"})(at),ct=["image"],it=function(e,t){return!e&&Object(Ce.isBlobURL)(t)},lt=function(e){e.stopPropagation()},st=function(e){[we.LEFT,we.DOWN,we.RIGHT,we.UP,we.BACKSPACE,we.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},ut=function(e){var t=e.advancedOptions,n=e.linkDestination,r=e.mediaLinks,a=e.onChangeUrl,o=e.url,c=Object($.useState)(!1),i=Object(ke.a)(c,2),l=i[0],s=i[1],u=Object($.useCallback)((function(){s(!0)})),b=Object($.useState)(!1),m=Object(ke.a)(b,2),d=m[0],h=m[1],p=Object($.useState)(null),g=Object(ke.a)(p,2),f=g[0],v=g[1],O=Object($.useCallback)((function(){"media"!==n&&"attachment"!==n||v(""),h(!0)})),j=Object($.useCallback)((function(){h(!1)})),y=Object($.useCallback)((function(){v(null),j(),s(!1)})),_=Object($.useRef)(null),k=Object($.useCallback)((function(){return function(e){var t=_.current;t&&t.contains(e.target)||(s(!1),v(null),j())}})),C=Object($.useCallback)((function(){return function(e){f&&a(f),j(),v(null),e.preventDefault()}})),w=Object($.useCallback)((function(){y(),a("")})),E=null!==f?f:o,x=(Object(J.find)(r,["linkDestination",n])||{}).title;return Object($.createElement)($.Fragment,null,Object($.createElement)(se.IconButton,{icon:"admin-links",className:"components-toolbar__control",label:o?Object(Z.__)("Edit link"):Object(Z.__)("Insert link"),"aria-expanded":l,onClick:u}),l&&Object($.createElement)(W.URLPopover,{onClickOutside:k(),onClose:y,renderSettings:function(){return t},additionalControls:!E&&Object($.createElement)(se.NavigableMenu,null,Object(J.map)(r,(function(e){return Object($.createElement)(se.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){v(null),a(e.url),j()}},e.title)})))},(!o||d)&&Object($.createElement)(W.URLPopover.LinkEditor,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",value:E,onChangeInputValue:v,onKeyDown:st,onKeyPress:lt,onSubmit:C(),autocompleteRef:_}),o&&!d&&Object($.createElement)($.Fragment,null,Object($.createElement)(W.URLPopover.LinkViewer,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:lt,url:o,onEditLinkClick:O,urlLabel:x}),Object($.createElement)(se.IconButton,{icon:"no",label:Object(Z.__)("Remove link"),onClick:w}))))},bt=function(e){function t(e){var n,r=e.attributes;return Object(re.a)(this,t),(n=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).updateAlt=n.updateAlt.bind(Object(ie.a)(n)),n.updateAlignment=n.updateAlignment.bind(Object(ie.a)(n)),n.onFocusCaption=n.onFocusCaption.bind(Object(ie.a)(n)),n.onImageClick=n.onImageClick.bind(Object(ie.a)(n)),n.onSelectImage=n.onSelectImage.bind(Object(ie.a)(n)),n.onSelectURL=n.onSelectURL.bind(Object(ie.a)(n)),n.updateImage=n.updateImage.bind(Object(ie.a)(n)),n.updateWidth=n.updateWidth.bind(Object(ie.a)(n)),n.updateHeight=n.updateHeight.bind(Object(ie.a)(n)),n.updateDimensions=n.updateDimensions.bind(Object(ie.a)(n)),n.onSetHref=n.onSetHref.bind(Object(ie.a)(n)),n.onSetLinkClass=n.onSetLinkClass.bind(Object(ie.a)(n)),n.onSetLinkRel=n.onSetLinkRel.bind(Object(ie.a)(n)),n.onSetNewTab=n.onSetNewTab.bind(Object(ie.a)(n)),n.getFilename=n.getFilename.bind(Object(ie.a)(n)),n.toggleIsEditing=n.toggleIsEditing.bind(Object(ie.a)(n)),n.onUploadError=n.onUploadError.bind(Object(ie.a)(n)),n.onImageError=n.onImageError.bind(Object(ie.a)(n)),n.getLinkDestinations=n.getLinkDestinations.bind(Object(ie.a)(n)),n.state={captionFocused:!1,isEditing:!r.url},n}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,a=t.noticeOperations,o=n.id,c=n.url,i=void 0===c?"":c;if(it(o,i)){var l=Object(Ce.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(t){var n=Object(ke.a)(t,1)[0];e.onSelectImage(n)},allowedTypes:ct,onError:function(t){a.createErrorNotice(t),e.setState({isEditing:!0})}})}}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.id,r=t.url,a=void 0===r?"":r,o=this.props.attributes,c=o.id,i=o.url,l=void 0===i?"":i;it(n,a)&&!it(c,l)&&Object(Ce.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e),this.setState({isEditing:!0})}},{key:"onSelectImage",value:function(e){if(e&&e.url){this.setState({isEditing:!1});var t,n,r,a=this.props.attributes,o=a.id,c=a.url,i=a.alt,l=a.caption,s=(t=e,(n=Object(J.pick)(t,["alt","id","link","caption"])).url=Object(J.get)(t,["sizes","large","url"])||Object(J.get)(t,["media_details","sizes","large","source_url"])||t.url,n);it(o,c)&&(i&&(s=Object(J.omit)(s,["alt"])),l&&(s=Object(J.omit)(s,["caption"]))),r=e.id&&e.id===o?{url:c}:{width:void 0,height:void 0,sizeSlug:"large"},this.props.setAttributes(Object(K.a)({},s,r))}else this.props.setAttributes({url:void 0,alt:void 0,id:void 0,caption:void 0})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0,sizeSlug:"large"}),this.setState({isEditing:!1})}},{key:"onImageError",value:function(e){var t=et({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetHref",value:function(e){var t,n=this.getLinkDestinations();this.props.attributes.linkDestination===(t=e?(Object(J.find)(n,(function(t){return t.url===e}))||{linkDestination:"custom"}).linkDestination:"none")?this.props.setAttributes({href:e}):this.props.setAttributes({linkDestination:t,href:e})}},{key:"onSetLinkClass",value:function(e){this.props.setAttributes({linkClass:e})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Object(K.a)({},t,{align:e}))}},{key:"updateImage",value:function(e){var t=this.props.image,n=Object(J.get)(t,["media_details","sizes",e,"source_url"]);if(!n)return null;this.props.setAttributes({url:n,width:void 0,height:void 0,sizeSlug:e})}},{key:"updateWidth",value:function(e){this.props.setAttributes({width:parseInt(e,10)})}},{key:"updateHeight",value:function(e){this.props.setAttributes({height:parseInt(e,10)})}},{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.setAttributes({width:t,height:n})}}},{key:"getFilename",value:function(e){var t=Object(Ee.getPath)(e);if(t)return Object(J.last)(t.split("/"))}},{key:"getLinkDestinations",value:function(){return[{linkDestination:"media",title:Object(Z.__)("Media File"),url:this.props.image&&this.props.image.source_url||this.props.attributes.url,icon:rt},{linkDestination:"attachment",title:Object(Z.__)("Attachment Page"),url:this.props.image&&this.props.image.link,icon:Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}]}},{key:"toggleIsEditing",value:function(){this.setState({isEditing:!this.state.isEditing}),this.state.isEditing?Object(Se.speak)(Object(Z.__)("You are now viewing the image in the image block.")):Object(Se.speak)(Object(Z.__)("You are now editing the image in the image block."))}},{key:"getImageSizeOptions",value:function(){var e=this.props.imageSizes;return Object(J.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}},{key:"render",value:function(){var e=this,t=this.state.isEditing,n=this.props,r=n.attributes,a=n.setAttributes,o=n.isLargeViewport,c=n.isSelected,i=n.className,l=n.maxWidth,s=n.noticeUI,u=n.isRTL,b=n.onResizeStart,m=n.onResizeStop,d=r.url,h=r.alt,p=r.caption,g=r.align,f=r.id,v=r.href,O=r.rel,j=r.linkClass,y=r.linkDestination,_=r.width,k=r.height,C=r.linkTarget,w=r.sizeSlug,E=function(e,t){return t&&!e&&!Object(Ce.isBlobURL)(t)}(f,d),x=Object($.createElement)(se.SVG,{width:20,height:20,viewBox:"0 0 20 20"},Object($.createElement)(se.Rect,{x:11,y:3,width:7,height:5,rx:1}),Object($.createElement)(se.Rect,{x:2,y:12,width:7,height:5,rx:1}),Object($.createElement)(se.Path,{d:"M13,12h1a3,3,0,0,1-3,3v2a5,5,0,0,0,5-5h1L15,9Z"}),Object($.createElement)(se.Path,{d:"M4,8H3l2,3L7,8H6A3,3,0,0,1,9,5V3A5,5,0,0,0,4,8Z"})),S=Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockAlignmentToolbar,{value:g,onChange:this.updateAlignment}),d&&Object($.createElement)($.Fragment,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.IconButton,{className:Q()("components-icon-button components-toolbar__control",{"is-active":this.state.isEditing}),label:Object(Z.__)("Edit image"),"aria-pressed":this.state.isEditing,onClick:this.toggleIsEditing,icon:x})),Object($.createElement)(se.Toolbar,null,Object($.createElement)(ut,{url:v||"",onChangeUrl:this.onSetHref,mediaLinks:this.getLinkDestinations(),linkDestination:y,advancedOptions:Object($.createElement)($.Fragment,null,Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Open in New Tab"),onChange:this.onSetNewTab,checked:"_blank"===C}),Object($.createElement)(se.TextControl,{label:Object(Z.__)("Link CSS Class"),value:j||"",onKeyPress:lt,onKeyDown:st,onChange:this.onSetLinkClass}),Object($.createElement)(se.TextControl,{label:Object(Z.__)("Link Rel"),value:O||"",onChange:this.onSetLinkRel,onKeyPress:lt,onKeyDown:st}))})))),T=E?d:void 0,N={title:d?Object(Z.__)("Edit image"):Object(Z.__)("Image"),instructions:Object(Z.__)("Upload an image file, pick one from your media library, or add one with a URL.")},M=!!d&&Object($.createElement)("img",{alt:Object(Z.__)("Edit image"),title:Object(Z.__)("Edit image"),className:"edit-image-preview",src:d}),B=Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:rt}),className:i,labels:N,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onDoubleClick:this.toggleIsEditing,onCancel:!!d&&this.toggleIsEditing,notices:s,onError:this.onUploadError,accept:"image/*",allowedTypes:ct,value:{id:f,src:T},mediaPreview:M,dropZoneUIOnly:!t&&d});if(t||!d)return Object($.createElement)($.Fragment,null,S,B);var R=Q()(i,Object(q.a)({"is-transient":Object(Ce.isBlobURL)(d),"is-resized":!!_||!!k,"is-focused":c},"size-".concat(w),w)),A=-1===["wide","full"].indexOf(g)&&o,L=this.getImageSizeOptions(),I=function(t,n){return Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Image Settings")},Object($.createElement)(se.TextareaControl,{label:Object(Z.__)("Alt Text (Alternative Text)"),value:h,onChange:e.updateAlt,help:Object($.createElement)($.Fragment,null,Object($.createElement)(se.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Z.__)("Describe the purpose of the image")),Object(Z.__)("Leave empty if the image is purely decorative."))}),!Object(J.isEmpty)(L)&&Object($.createElement)(se.SelectControl,{label:Object(Z.__)("Image Size"),value:w,options:L,onChange:e.updateImage}),A&&Object($.createElement)("div",{className:"block-library-image__dimensions"},Object($.createElement)("p",{className:"block-library-image__dimensions__row"},Object(Z.__)("Image Dimensions")),Object($.createElement)("div",{className:"block-library-image__dimensions__row"},Object($.createElement)(se.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(Z.__)("Width"),value:_||t||"",min:1,onChange:e.updateWidth}),Object($.createElement)(se.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(Z.__)("Height"),value:k||n||"",min:1,onChange:e.updateHeight})),Object($.createElement)("div",{className:"block-library-image__dimensions__row"},Object($.createElement)(se.ButtonGroup,{"aria-label":Object(Z.__)("Image Size")},[25,50,75,100].map((function(r){var a=Math.round(t*(r/100)),o=Math.round(n*(r/100)),c=_===a&&k===o;return Object($.createElement)(se.Button,{key:r,isSmall:!0,isPrimary:c,"aria-pressed":c,onClick:e.updateDimensions(a,o)},r,"%")}))),Object($.createElement)(se.Button,{isSmall:!0,onClick:e.updateDimensions()},Object(Z.__)("Reset"))))))};return Object($.createElement)($.Fragment,null,S,Object($.createElement)("figure",{className:R},Object($.createElement)(ot,{src:d,dirtynessTrigger:g},(function(t){var n,r=t.imageWidthWithinContainer,o=t.imageHeightWithinContainer,c=t.imageWidth,i=t.imageHeight,s=e.getFilename(d);n=h||(s?Object(Z.sprintf)(Object(Z.__)("This image has an empty alt attribute; its file name is %s"),s):Object(Z.__)("This image has an empty alt attribute"));var p=Object($.createElement)($.Fragment,null,Object($.createElement)("img",{src:d,alt:n,onDoubleClick:e.toggleIsEditing,onClick:e.onImageClick,onError:function(){return e.onImageError(d)}}),Object(Ce.isBlobURL)(d)&&Object($.createElement)(se.Spinner,null));if(!A||!r)return Object($.createElement)($.Fragment,null,I(c,i),Object($.createElement)("div",{style:{width:_,height:k}},p));var f=_||r,v=k||o,O=c/i,j=c a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}}},ft=gt.name,vt={title:Object(Z.__)("Image"),description:Object(Z.__)("Insert an image to make a visual statement."),icon:rt,keywords:["img",Object(Z.__)("photo")],example:{attributes:{sizeSlug:"large",url:"https://upload.wikimedia.org/wikipedia/commons/1/15/MtBlanc1.JPG",caption:Object(Z.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Z._x)("Default","block style"),isDefault:!0},{name:"circle-mask",label:Object(Z._x)("Circle Mask","block style")}],transforms:pt,getEditWrapperProps:function(e){var t=e.align,n=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!n}},edit:mt,save:function(e){var t,n=e.attributes,r=n.url,a=n.alt,o=n.caption,c=n.align,i=n.href,l=n.rel,s=n.linkClass,u=n.width,b=n.height,m=n.id,d=n.linkTarget,h=n.sizeSlug,p=Q()((t={},Object(q.a)(t,"align".concat(c),c),Object(q.a)(t,"size-".concat(h),h),Object(q.a)(t,"is-resized",u||b),t)),g=Object($.createElement)("img",{src:r,alt:a,className:m?"wp-image-".concat(m):null,width:u,height:b}),f=Object($.createElement)($.Fragment,null,i?Object($.createElement)("a",{className:s,href:i,target:d,rel:l},g):g,!W.RichText.isEmpty(o)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:o}));return"left"===c||"right"===c||"center"===c?Object($.createElement)("div",null,Object($.createElement)("figure",{className:p},f)):Object($.createElement)("figure",{className:p},f)},deprecated:_e},Ot=[{supports:{className:!1,anchor:!0},attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},save:function(e){var t=e.attributes,n=t.align,r=t.level,a=t.content,o=t.textColor,c=t.customTextColor,i="h"+r,l=Object(W.getColorClassName)("color",o),s=Q()(Object(q.a)({},l,l));return Object($.createElement)(W.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:n,color:l?void 0:c},value:a})}}];function jt(e){var t=e.level,n={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return n.hasOwnProperty(t)?Object($.createElement)(se.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:n[t]})):null}var yt=function(e){function t(){return Object(re.a)(this,t),Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"createLevelControl",value:function(e,t,n){return{icon:Object($.createElement)(jt,{level:e}),title:Object(Z.sprintf)(Object(Z.__)("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isCollapsed,r=void 0===n||n,a=t.minLevel,o=t.maxLevel,c=t.selectedLevel,i=t.onChange;return Object($.createElement)(se.Toolbar,{isCollapsed:r,icon:Object($.createElement)(jt,{level:c}),controls:Object(J.range)(a,o).map((function(t){return e.createLevelControl(t,c,i)}))})}}]),t}($.Component),_t=Object($.memo)((function(e){var t=e.textColorValue,n=e.setTextColor;return Object($.createElement)(W.PanelColorSettings,{title:Object(Z.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:t,onChange:n,label:Object(Z.__)("Text Color")}]})}));var kt=Object(ue.compose)([Object(W.withColors)("backgroundColor",{textColor:"color"})])((function(e){var t,n=e.attributes,r=e.setAttributes,a=e.mergeBlocks,o=e.onReplace,c=e.className,i=e.textColor,l=e.setTextColor,s=n.align,u=n.content,b=n.level,m=n.placeholder,d="h"+b;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(yt,{minLevel:2,maxLevel:5,selectedLevel:b,onChange:function(e){return r({level:e})}}),Object($.createElement)(W.AlignmentToolbar,{value:s,onChange:function(e){r({align:e})}})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Heading Settings")},Object($.createElement)("p",null,Object(Z.__)("Level")),Object($.createElement)(yt,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:b,onChange:function(e){return r({level:e})}})),Object($.createElement)(_t,{setTextColor:l,textColorValue:i.color})),Object($.createElement)(W.RichText,{identifier:"content",wrapperClassName:"wp-block-heading",tagName:d,value:u,onChange:function(e){return r({content:e})},onMerge:a,onSplit:function(e){return e?Object(G.createBlock)("core/heading",Object(K.a)({},n,{content:e})):Object(G.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},className:Q()(c,(t={},Object(q.a)(t,"has-text-align-".concat(s),s),Object(q.a)(t,"has-text-color",i.color),Object(q.a)(t,i.class,i.class),t)),placeholder:m||Object(Z.__)("Write heading…"),style:{color:i.color}}))}));var Ct={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(G.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:{h1:{children:Object(G.getPhrasingContentSchema)()},h2:{children:Object(G.getPhrasingContentSchema)()},h3:{children:Object(G.getPhrasingContentSchema)()},h4:{children:Object(G.getPhrasingContentSchema)()},h5:{children:Object(G.getPhrasingContentSchema)()},h6:{children:Object(G.getPhrasingContentSchema)()}},transform:function(e){return Object(G.createBlock)("core/heading",Object(K.a)({},Object(G.getBlockAttributes)("core/heading",e.outerHTML),{level:(t=e.nodeName,Number(t.substr(1)))}));var t}}].concat(Object(U.a)([2,3,4,5,6].map((function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(G.createBlock)("core/heading",{level:e,content:t})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(G.createBlock)("core/paragraph",{content:t})}}]},wt={name:"core/heading",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},Et=wt.name,xt={title:Object(Z.__)("Heading"),description:Object(Z.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:"heading",keywords:[Object(Z.__)("title"),Object(Z.__)("subtitle")],supports:{className:!1,anchor:!0},example:{attributes:{content:Object(Z.__)("Code is Poetry"),level:2}},transforms:Ct,deprecated:Ot,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:kt,save:function(e){var t,n=e.attributes,r=n.align,a=n.content,o=n.customTextColor,c=n.level,i=n.textColor,l="h"+c,s=Object(W.getColorClassName)("color",i),u=Q()((t={},Object(q.a)(t,s,s),Object(q.a)(t,"has-text-align-".concat(r),r),t));return Object($.createElement)(W.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:o},value:a})}},St={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},Tt=[{attributes:St,save:function(e){var t=e.attributes,n=t.align,r=t.value,a=t.citation;return Object($.createElement)("blockquote",{style:{textAlign:n||null}},Object($.createElement)(W.RichText.Content,{multiline:!0,value:r}),!W.RichText.isEmpty(a)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:a}))}},{attributes:Object(K.a)({},St,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(K.a)({},Object(J.omit)(e,["style"]),{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,a=t.citation,o=t.style;return Object($.createElement)("blockquote",{className:2===o?"is-large":"",style:{textAlign:n||null}},Object($.createElement)(W.RichText.Content,{multiline:!0,value:r}),!W.RichText.isEmpty(a)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:a}))}},{attributes:Object(K.a)({},St,{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,a=t.citation,o=t.style;return Object($.createElement)("blockquote",{className:"blocks-quote-style-".concat(o),style:{textAlign:n||null}},Object($.createElement)(W.RichText.Content,{multiline:!0,value:r}),!W.RichText.isEmpty(a)&&Object($.createElement)(W.RichText.Content,{tagName:"footer",value:a}))}}];var Nt=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.Path,{d:"M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z"}));var Mt=n(21),Bt=n(22),Rt={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/quote",{value:Object(Bt.toHTMLString)({value:Object(Bt.join)(e.map((function(e){var t=e.content;return Object(Bt.create)({html:t})})),"\u2028"),multilineTag:"p"})})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(G.createBlock)("core/quote",{value:"

    ".concat(t,"

    ")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(G.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(G.createBlock)("core/quote",{value:"

    ".concat(e,"

    ")})}},{type:"raw",isMatch:function(e){var t,n=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(n)},schema:{blockquote:{children:{p:{children:Object(G.getPhrasingContentSchema)()},cite:{children:Object(G.getPhrasingContentSchema)()}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"

    "!==t&&r.push.apply(r,Object(U.a)(Object(Bt.split)(Object(Bt.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(G.createBlock)("core/paragraph",{content:Object(Bt.toHTMLString)({value:e})})})))),n&&"

    "!==n&&r.push(Object(G.createBlock)("core/paragraph",{content:n})),0===r.length?Object(G.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(Mt.a)(e,["value","citation"]);if("

    "===t)return Object(G.createBlock)("core/heading",{content:n});var a=Object(Bt.split)(Object(Bt.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(G.createBlock)("core/heading",{content:Object(Bt.toHTMLString)({value:a[0]})});if(!n&&1===a.length)return o;var c=a.slice(1);return[o,Object(G.createBlock)("core/quote",Object(K.a)({},r,{citation:n,value:Object(Bt.toHTMLString)({value:c.length?Object(Bt.join)(a.slice(1),"\u2028"):Object(Bt.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(G.createBlock)("core/pullquote",{value:t,citation:n})}}]},At={name:"core/quote",category:"common",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}}},Lt=At.name,It={title:Object(Z.__)("Quote"),description:Object(Z.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:Nt,keywords:[Object(Z.__)("blockquote"),Object(Z.__)("cite")],example:{attributes:{value:"

    "+Object(Z.__)("In quoting others, we cite ourselves.")+"

    ",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(Z._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(Z._x)("Large","block style")}],transforms:Rt,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,a=e.mergeBlocks,o=e.onReplace,c=e.className,i=t.align,l=t.value,s=t.citation;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object($.createElement)(se.BlockQuotation,{className:Q()(c,Object(q.a)({},"has-text-align-".concat(i),i))},Object($.createElement)(W.RichText,{identifier:"value",multiline:!0,value:l,onChange:function(e){return n({value:e})},onMerge:a,onRemove:function(e){var t=!s||0===s.length;!e&&t&&o([])},placeholder:Object(Z.__)("Write quote…"),onReplace:o,onSplit:function(e){return Object(G.createBlock)("core/quote",Object(K.a)({},t,{value:e}))},__unstableOnSplitMiddle:function(){return Object(G.createBlock)("core/paragraph")}}),(!W.RichText.isEmpty(s)||r)&&Object($.createElement)(W.RichText,{identifier:"citation",value:s,onChange:function(e){return n({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(Z.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,a=t.citation,o=Q()(Object(q.a)({},"has-text-align-".concat(n),n));return Object($.createElement)("blockquote",{className:o},Object($.createElement)(W.RichText.Content,{multiline:!0,value:r}),!W.RichText.isEmpty(a)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:a}))},merge:function(e,t){var n=t.value,r=t.citation;return r||(r=e.citation),n&&"

    "!==n?Object(K.a)({},e,{value:e.value+n,citation:r}):Object(K.a)({},e,{citation:r})},deprecated:Tt};function zt(e){return Math.min(3,e.images.length)}var Pt=function(e){var t=Object(J.pick)(e,["alt","id","link","caption"]);t.url=Object(J.get)(e,["sizes","large","url"])||Object(J.get)(e,["media_details","sizes","large","source_url"])||e.url;var n=Object(J.get)(e,["sizes","full","url"])||Object(J.get)(e,["media_details","sizes","full","source_url"]);return n&&(t.fullUrl=n),t},Ht=[{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?zt(t):r,o=t.imageCrop,c=t.linkTo;return Object($.createElement)("ul",{className:"columns-".concat(a," ").concat(o?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object($.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object($.createElement)("figure",null,t?Object($.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(J.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return Object(K.a)({},e,{ids:Object(J.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?zt(t):r,o=t.imageCrop,c=t.linkTo;return Object($.createElement)("ul",{className:"columns-".concat(a," ").concat(o?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object($.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object($.createElement)("figure",null,t?Object($.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?zt(t):r,o=t.align,c=t.imageCrop,i=t.linkTo,l=Q()("columns-".concat(a),{alignnone:"none"===o,"is-cropped":c});return Object($.createElement)("div",{className:l},n.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object($.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object($.createElement)("a",{href:t},n):n)})))}}],Vt=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}))),Dt=Object($.createElement)(se.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),Ft=Object($.createElement)(se.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),Ut=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(ie.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(ie.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(ie.a)(e)),e.bindContainer=e.bindContainer.bind(Object(ie.a)(e)),e.state={captionSelected:!1},e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[we.BACKSPACE,we.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,a=t.url;r&&!a&&this.props.setAttributes({url:r.source_url,alt:r.alt_text}),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,a=t.id,o=t.linkTo,c=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,h=t.setAttributes,p=t["aria-label"];switch(o){case"media":e=n;break;case"attachment":e=c}var g=Object($.createElement)($.Fragment,null,Object($.createElement)("img",{src:n,alt:r,"data-id":a,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":p,ref:this.bindContainer}),Object(Ce.isBlobURL)(n)&&Object($.createElement)(se.Spinner,null)),f=Q()({"is-selected":s,"is-transient":Object(Ce.isBlobURL)(n)});return Object($.createElement)("figure",{className:f},e?Object($.createElement)("a",{href:e},g):g,Object($.createElement)("div",{className:"block-library-gallery-item__move-menu"},Object($.createElement)(se.IconButton,{icon:Dt,onClick:i?void 0:d,className:"blocks-gallery-item__move-backward",label:Object(Z.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object($.createElement)(se.IconButton,{icon:Ft,onClick:l?void 0:m,className:"blocks-gallery-item__move-forward",label:Object(Z.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object($.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object($.createElement)(se.IconButton,{icon:"no-alt",onClick:b,className:"blocks-gallery-item__remove",label:Object(Z.__)("Remove image"),disabled:!s})),(s||u)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:s?Object(Z.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return h({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),t}($.Component),qt=Object(be.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}}))(Ut),Wt=[{value:"attachment",label:Object(Z.__)("Attachment Page")},{value:"media",label:Object(Z.__)("Media File")},{value:"none",label:Object(Z.__)("None")}],Gt=["image"],Zt=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(ie.a)(e)),e.onSelectImages=e.onSelectImages.bind(Object(ie.a)(e)),e.setLinkTo=e.setLinkTo.bind(Object(ie.a)(e)),e.setColumnsNumber=e.setColumnsNumber.bind(Object(ie.a)(e)),e.toggleImageCrop=e.toggleImageCrop.bind(Object(ie.a)(e)),e.onMove=e.onMove.bind(Object(ie.a)(e)),e.onMoveForward=e.onMoveForward.bind(Object(ie.a)(e)),e.onMoveBackward=e.onMoveBackward.bind(Object(ie.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e.setImageAttributes=e.setImageAttributes.bind(Object(ie.a)(e)),e.setAttributes=e.setAttributes.bind(Object(ie.a)(e)),e.onFocusGalleryCaption=e.onFocusGalleryCaption.bind(Object(ie.a)(e)),e.state={selectedImage:null,attachmentCaptions:null},e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=Object(K.a)({},e,{ids:Object(J.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onMove",value:function(e,t){var n=Object(U.a)(this.props.attributes.images);n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t}),this.setAttributes({images:n})}},{key:"onMoveForward",value:function(e){var t=this;return function(){e!==t.props.attributes.images.length-1&&t.onMove(e,e+1)}}},{key:"onMoveBackward",value:function(e){var t=this;return function(){0!==e&&t.onMove(e,e-1)}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(J.filter)(t.props.attributes.images,(function(t,n){return e!==n})),r=t.props.attributes.columns;t.setState({selectedImage:null}),t.setAttributes({images:n,columns:r?Math.min(n.length,r):r})}}},{key:"selectCaption",value:function(e,t,n){var r=Object(J.find)(t,{id:e.id}),a=r?r.caption:e.caption;if(!n)return a;var o=Object(J.find)(n,{id:e.id});return o&&o.caption!==e.caption?e.caption:a}},{key:"onSelectImages",value:function(e){var t=this,n=this.props.attributes,r=n.columns,a=n.images,o=this.state.attachmentCaptions;this.setState({attachmentCaptions:e.map((function(e){return{id:e.id,caption:e.caption}}))}),this.setAttributes({images:e.map((function(e){return Object(K.a)({},Pt(e),{caption:t.selectCaption(e,a,o)})})),columns:r?Math.min(e.length,r):r})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"setLinkTo",value:function(e){this.setAttributes({linkTo:e})}},{key:"setColumnsNumber",value:function(e){this.setAttributes({columns:e})}},{key:"toggleImageCrop",value:function(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}},{key:"getImageCropHelp",value:function(e){return e?Object(Z.__)("Thumbnails are cropped to align."):Object(Z.__)("Thumbnails are not cropped.")}},{key:"onFocusGalleryCaption",value:function(){this.setState({selectedImage:null})}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,r=this.setAttributes;n[e]&&r({images:[].concat(Object(U.a)(n.slice(0,e)),[Object(K.a)({},n[e],t)],Object(U.a)(n.slice(e+1)))})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=t.images;if(Object(J.every)(r,(function(e){var t=e.url;return Object(Ce.isBlobURL)(t)}))){var a=Object(J.map)(r,(function(e){var t=e.url;return Object(Ce.getBlobByURL)(t)}));Object(J.forEach)(r,(function(e){var t=e.url;return Object(Ce.revokeBlobURL)(t)})),n({filesList:a,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.className,o=n.isSelected,c=n.noticeUI,i=n.setAttributes,l=r.align,s=r.columns,u=void 0===s?zt(r):s,b=r.caption,m=r.imageCrop,d=r.images,h=r.linkTo,p=!!d.length,g=p&&Object(J.some)(d,(function(e){return e.id})),f=Object($.createElement)(W.MediaPlaceholder,{addToGallery:g,isAppender:p,className:a,dropZoneUIOnly:p&&!o,icon:!p&&Object($.createElement)(W.BlockIcon,{icon:Vt}),labels:{title:!p&&Object(Z.__)("Gallery"),instructions:!p&&Object(Z.__)("Drag images, upload new ones or select files from your library.")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:Gt,multiple:!0,value:g?d:void 0,onError:this.onUploadError,notices:p?void 0:c});if(!p)return f;var v=Q()("blocks-gallery-caption",{"screen-reader-text":!o&&W.RichText.isEmpty(b)});return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Gallery Settings")},d.length>1&&Object($.createElement)(se.RangeControl,{label:Object(Z.__)("Columns"),value:u,onChange:this.setColumnsNumber,min:1,max:Math.min(8,d.length),required:!0}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Crop Images"),checked:!!m,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object($.createElement)(se.SelectControl,{label:Object(Z.__)("Link To"),value:h,onChange:this.setLinkTo,options:Wt}))),c,Object($.createElement)("figure",{className:Q()(a,(e={},Object(q.a)(e,"align".concat(l),l),Object(q.a)(e,"columns-".concat(u),u),Object(q.a)(e,"is-cropped",m),e))},Object($.createElement)("ul",{className:"blocks-gallery-grid"},d.map((function(e,n){var r=Object(Z.sprintf)(Object(Z.__)("image %1$d of %2$d in gallery"),n+1,d.length);return Object($.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object($.createElement)(qt,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===n,isLastItem:n+1===d.length,isSelected:o&&t.state.selectedImage===n,onMoveBackward:t.onMoveBackward(n),onMoveForward:t.onMoveForward(n),onRemove:t.onRemoveImage(n),onSelect:t.onSelectImage(n),setAttributes:function(e){return t.setImageAttributes(n,e)},caption:e.caption,"aria-label":r}))}))),f,Object($.createElement)(W.RichText,{tagName:"figcaption",className:v,placeholder:Object(Z.__)("Write gallery caption…"),value:b,unstableOnFocus:this.onFocusGalleryCaption,onChange:function(e){return i({caption:e})},inlineToolbar:!0})))}}]),t}($.Component),Kt=Object(ue.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),se.withNotices])(Zt);var $t=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Yt={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(J.every)(e,["align",t])?t:void 0;var n=Object(J.filter)(e,(function(e){return e.url}));return Object(G.createBlock)("core/gallery",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),ids:n.map((function(e){return e.id})),align:t})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return $t(t).map((function(e){return{id:e}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return $t(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(J.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(G.createBlock)("core/gallery",{images:e.map((function(e){return Pt({url:Object(Ce.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map((function(e){var t=e.id,r=e.url,a=e.alt,o=e.caption;return Object(G.createBlock)("core/image",{id:t,url:r,alt:a,caption:o,align:n})})):Object(G.createBlock)("core/image",{align:n})}}]},Qt={name:"core/gallery",category:"common",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}}},Jt=Qt.name,Xt={title:Object(Z.__)("Gallery"),description:Object(Z.__)("Display multiple images in a rich gallery."),icon:Vt,keywords:[Object(Z.__)("images"),Object(Z.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://upload.wikimedia.org/wikipedia/commons/c/c3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://upload.wikimedia.org/wikipedia/commons/0/01/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},supports:{align:!0},transforms:Yt,edit:Kt,save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?zt(t):r,o=t.imageCrop,c=t.caption,i=t.linkTo;return Object($.createElement)("figure",{className:"columns-".concat(a," ").concat(o?"is-cropped":"")},Object($.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object($.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object($.createElement)("figure",null,t?Object($.createElement)("a",{href:t},n):n,!W.RichText.isEmpty(e.caption)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!W.RichText.isEmpty(c)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:c}))},deprecated:Ht},en=n(53),tn=n.n(en);var nn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z"})),rn="core/archives",an={title:Object(Z.__)("Archives"),description:Object(Z.__)("Display a monthly archive of your posts."),icon:nn,category:"widgets",supports:{align:!0,html:!1},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.showPostCounts,a=t.displayAsDropdown;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Archives Settings")},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Display as Dropdown"),checked:a,onChange:function(){return n({displayAsDropdown:!a})}}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Show Post Counts"),checked:r,onChange:function(){return n({showPostCounts:!r})}}))),Object($.createElement)(se.Disabled,null,Object($.createElement)(tn.a,{block:"core/archives",attributes:t})))}},on=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z"})),cn=["audio"],ln=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.toggleAttribute=e.toggleAttribute.bind(Object(ie.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,a=t.noticeOperations,o=t.setAttributes,c=n.id,i=n.src,l=void 0===i?"":i;if(!c&&Object(Ce.isBlobURL)(l)){var s=Object(Ce.getBlobByURL)(l);s&&r({filesList:[s],onFileChange:function(e){var t=Object(ke.a)(e,1)[0],n=t.id,r=t.url;o({id:n,src:r})},onError:function(t){o({src:void 0,id:void 0}),e.setState({editing:!0}),a.createErrorNotice(t)},allowedTypes:cn})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(q.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var a=et({attributes:{url:e}});if(void 0!==a)return void this.props.onReplace(a);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(Z.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,r=t.caption,a=t.loop,o=t.preload,c=t.src,i=this.props,l=i.setAttributes,s=i.isSelected,u=i.className,b=i.noticeUI,m=this.state.editing,d=function(){e.setState({editing:!0})};return m?Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:on}),className:u,onSelect:function(t){if(!t||!t.url)return l({src:void 0,id:void 0}),void d();l({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:cn,value:this.props.attributes,notices:b,onError:this.onUploadError}):Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(Z.__)("Edit audio"),onClick:d,icon:"edit"}))),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Audio Settings")},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:a}),Object($.createElement)(se.SelectControl,{label:Object(Z.__)("Preload"),value:void 0!==o?o:"none",onChange:function(e){return l({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(Z.__)("Auto")},{value:"metadata",label:Object(Z.__)("Metadata")},{value:"none",label:Object(Z.__)("None")}]}))),Object($.createElement)("figure",{className:u},Object($.createElement)(se.Disabled,null,Object($.createElement)("audio",{controls:"controls",src:c})),(!W.RichText.isEmpty(r)||s)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(Z.__)("Write caption…"),value:r,onChange:function(e){return l({caption:e})},inlineToolbar:!0})))}}]),t}($.Component),sn=Object(ue.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),se.withNotices])(ln);var un={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(G.createBlock)("core/audio",{src:Object(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},bn={name:"core/audio",category:"common",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}}},mn=bn.name,dn={title:Object(Z.__)("Audio"),description:Object(Z.__)("Embed a simple audio player."),icon:on,transforms:un,supports:{align:!0},edit:sn,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,a=t.loop,o=t.preload,c=t.src;return Object($.createElement)("figure",null,Object($.createElement)("audio",{controls:"controls",src:c,autoPlay:n,loop:a,preload:o}),!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:r}))}},hn=function(e){return Object(J.omit)(Object(K.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},pn={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},gn=[{attributes:Object(K.a)({},pn,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}}),isEligible:function(e){return e.className&&e.className.includes("is-style-squared")},migrate:function(e){var t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Object(K.a)({},e,{className:t||void 0,borderRadius:0})},save:function(e){var t,n=e.attributes,r=n.backgroundColor,a=n.customBackgroundColor,o=n.customTextColor,c=n.linkTarget,i=n.rel,l=n.text,s=n.textColor,u=n.title,b=n.url,m=Object(W.getColorClassName)("color",s),d=Object(W.getColorClassName)("background-color",r),h=Q()("wp-block-button__link",(t={"has-text-color":s||o},Object(q.a)(t,m,m),Object(q.a)(t,"has-background",r||a),Object(q.a)(t,d,d),t)),p={backgroundColor:d?void 0:a,color:m?void 0:o};return Object($.createElement)("div",null,Object($.createElement)(W.RichText.Content,{tagName:"a",className:h,href:b,title:u,style:p,value:l,target:c,rel:i}))}},{attributes:Object(K.a)({},pn,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.url,a=n.text,o=n.title,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=Object(W.getColorClassName)("color",i),b=Object(W.getColorClassName)("background-color",c),m=Q()("wp-block-button__link",(t={"has-text-color":i||s},Object(q.a)(t,u,u),Object(q.a)(t,"has-background",c||l),Object(q.a)(t,b,b),t)),d={backgroundColor:b?void 0:l,color:u?void 0:s};return Object($.createElement)("div",null,Object($.createElement)(W.RichText.Content,{tagName:"a",className:m,href:r,title:o,style:d,value:a}))},migrate:hn},{attributes:Object(K.a)({},pn,{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,a=t.title,o=t.align,c={backgroundColor:t.color,color:t.textColor};return Object($.createElement)("div",{className:"align".concat(o)},Object($.createElement)(W.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:a,style:c,value:r}))},migrate:hn},{attributes:Object(K.a)({},pn,{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,a=t.title,o=t.align,c=t.color,i=t.textColor;return Object($.createElement)("div",{className:"align".concat(o),style:{backgroundColor:c}},Object($.createElement)(W.RichText.Content,{tagName:"a",href:n,title:a,style:{color:i},value:r}))},migrate:hn}],fn=window.getComputedStyle,vn=Object(se.withFallbackStyles)((function(e,t){var n=t.textColor,r=t.backgroundColor,a=r&&r.color,o=n&&n.color,c=!o&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:a||!e?void 0:fn(e).backgroundColor,fallbackTextColor:o||!c?void 0:fn(c).color}})),On=0,jn=50,yn=5;function _n(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,a=Object($.useCallback)((function(e){r({borderRadius:e})}),[r]);return Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Border Settings")},Object($.createElement)(se.RangeControl,{value:n,label:Object(Z.__)("Border Radius"),min:On,max:jn,initialPosition:yn,allowReset:!0,onChange:a}))}var kn=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(Object(ie.a)(e)),e.onSetLinkRel=e.onSetLinkRel.bind(Object(ie.a)(e)),e.onToggleOpenInNewTab=e.onToggleOpenInNewTab.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onToggleOpenInNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.backgroundColor,a=t.textColor,o=t.setBackgroundColor,c=t.setTextColor,i=t.fallbackBackgroundColor,l=t.fallbackTextColor,s=t.setAttributes,u=t.className,b=t.instanceId,m=t.isSelected,d=n.borderRadius,h=n.linkTarget,p=n.placeholder,g=n.rel,f=n.text,v=n.title,O=n.url,j="wp-block-button__inline-link-".concat(b);return Object($.createElement)("div",{className:u,title:v,ref:this.bindRef},Object($.createElement)(W.RichText,{placeholder:p||Object(Z.__)("Add text…"),value:f,onChange:function(e){return s({text:e})},withoutInteractiveFormatting:!0,className:Q()("wp-block-button__link",(e={"has-background":r.color},Object(q.a)(e,r.class,r.class),Object(q.a)(e,"has-text-color",a.color),Object(q.a)(e,a.class,a.class),Object(q.a)(e,"no-border-radius",0===d),e)),style:{backgroundColor:r.color,color:a.color,borderRadius:d?d+"px":void 0}}),Object($.createElement)(se.BaseControl,{label:Object(Z.__)("Link"),className:"wp-block-button__inline-link",id:j},Object($.createElement)(W.URLInput,{className:"wp-block-button__inline-link-input",value:O,autoFocus:!1,onChange:function(e){return s({url:e})},disableSuggestions:!m,id:j,isFullWidth:!0,hasBorder:!0})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(Z.__)("Color Settings"),colorSettings:[{value:r.color,onChange:o,label:Object(Z.__)("Background Color")},{value:a.color,onChange:c,label:Object(Z.__)("Text Color")}]},Object($.createElement)(W.ContrastChecker,{isLargeText:!1,textColor:a.color,backgroundColor:r.color,fallbackBackgroundColor:i,fallbackTextColor:l})),Object($.createElement)(_n,{borderRadius:d,setAttributes:s}),Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Link settings")},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Open in new tab"),onChange:this.onToggleOpenInNewTab,checked:"_blank"===h}),Object($.createElement)(se.TextControl,{label:Object(Z.__)("Link rel"),value:g||"",onChange:this.onSetLinkRel}))))}}]),t}($.Component),Cn=Object(ue.compose)([ue.withInstanceId,Object(W.withColors)("backgroundColor",{textColor:"color"}),vn])(kn),wn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"})));var En={name:"core/button",category:"layout",attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"}}},xn=En.name,Sn={title:Object(Z.__)("Button"),description:Object(Z.__)("Prompt visitors to take action with a button-style link."),icon:wn,keywords:[Object(Z.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(Z.__)("Call to Action")}},supports:{align:!0,alignWide:!1},styles:[{name:"fill",label:Object(Z.__)("Fill"),isDefault:!0},{name:"outline",label:Object(Z.__)("Outline")}],edit:Cn,save:function(e){var t,n=e.attributes,r=n.backgroundColor,a=n.borderRadius,o=n.customBackgroundColor,c=n.customTextColor,i=n.linkTarget,l=n.rel,s=n.text,u=n.textColor,b=n.title,m=n.url,d=Object(W.getColorClassName)("color",u),h=Object(W.getColorClassName)("background-color",r),p=Q()("wp-block-button__link",(t={"has-text-color":u||c},Object(q.a)(t,d,d),Object(q.a)(t,"has-background",r||o),Object(q.a)(t,h,h),Object(q.a)(t,"no-border-radius",0===a),t)),g={backgroundColor:h?void 0:o,color:d?void 0:c,borderRadius:a?a+"px":void 0};return Object($.createElement)("div",null,Object($.createElement)(W.RichText.Content,{tagName:"a",className:p,href:m,title:b,style:g,value:s,target:i,rel:l}))},deprecated:gn},Tn=n(29),Nn=n.n(Tn),Mn=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).getYearMonth=Qe()(e.getYearMonth.bind(Object(ie.a)(e)),{maxSize:1}),e.getServerSideAttributes=Qe()(e.getServerSideAttributes.bind(Object(ie.a)(e)),{maxSize:1}),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=Nn()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return Object(K.a)({},e,this.getYearMonth(t))}},{key:"render",value:function(){return Object($.createElement)(se.Disabled,null,Object($.createElement)(tn.a,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}($.Component),Bn=Object(be.withSelect)((function(e){var t=e("core/editor");if(t){var n=t.getEditedPostAttribute;return{date:"post"===n("type")?n("date"):void 0}}}))(Mn),Rn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),An="core/calendar",Ln={title:Object(Z.__)("Calendar"),description:Object(Z.__)("A calendar of your site’s posts."),icon:Rn,category:"widgets",keywords:[Object(Z.__)("posts"),Object(Z.__)("archive")],supports:{align:!0},example:{},edit:Bn},In=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(ie.a)(e)),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(ie.a)(e)),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"toggleDisplayAsDropdown",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({displayAsDropdown:!t.displayAsDropdown})}},{key:"toggleShowPostCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showPostCounts:!t.showPostCounts})}},{key:"toggleShowHierarchy",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showHierarchy:!t.showHierarchy})}},{key:"getCategories",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(J.unescape)(e.name).trim():Object(Z.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object($.createElement)("ul",{className:this.getCategoryListClassName(0)},n.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var n=this,r=this.props.attributes,a=r.showHierarchy,o=r.showPostCounts,c=this.getCategories(e.id);return Object($.createElement)("li",{key:e.id},Object($.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),o&&Object($.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),a&&!!c.length&&Object($.createElement)("ul",{className:this.getCategoryListClassName(t+1)},c.map((function(e){return n.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,n=this.props.attributes.showHierarchy?0:null,r=this.getCategories(n),a="blocks-category-select-".concat(t);return Object($.createElement)($.Fragment,null,Object($.createElement)("label",{htmlFor:a,className:"screen-reader-text"},Object(Z.__)("Categories")),Object($.createElement)("select",{id:a,className:"wp-block-categories__dropdown"},r.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var n=this,r=this.props.attributes,a=r.showHierarchy,o=r.showPostCounts,c=this.getCategories(e.id);return[Object($.createElement)("option",{key:e.id},Object(J.times)(3*t,(function(){return" "})),this.renderCategoryName(e),o?" (".concat(e.count,")"):""),a&&!!c.length&&c.map((function(e){return n.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.isRequesting,r=t.displayAsDropdown,a=t.showHierarchy,o=t.showPostCounts,c=Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Categories Settings")},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Display as Dropdown"),checked:r,onChange:this.toggleDisplayAsDropdown}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Show Hierarchy"),checked:a,onChange:this.toggleShowHierarchy}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Show Post Counts"),checked:o,onChange:this.toggleShowPostCounts})));return n?Object($.createElement)($.Fragment,null,c,Object($.createElement)(se.Placeholder,{icon:"admin-post",label:Object(Z.__)("Categories")},Object($.createElement)(se.Spinner,null))):Object($.createElement)($.Fragment,null,c,Object($.createElement)("div",{className:this.props.className},r?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}($.Component),zn=Object(ue.compose)(Object(be.withSelect)((function(e){var t=e("core").getEntityRecords,n=e("core/data").isResolving,r={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}})),ue.withInstanceId)(In),Pn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object($.createElement)(se.Path,{d:"m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),Object($.createElement)(se.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"})),Hn="core/categories",Vn={title:Object(Z.__)("Categories"),description:Object(Z.__)("Display a list of all categories."),icon:Pn,category:"widgets",supports:{align:!0,html:!1},edit:zn};function Dn(e){return Object(J.flow)(Fn,qn,Gn)(e||"")}function Fn(e){return e.replace(/&/g,"&")}function Un(e){return e.replace(/&/g,"&")}function qn(e){return e.replace(/\[/g,"[")}function Wn(e){return e.replace(/[/g,"[")}function Gn(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}function Zn(e){return e.replace(/^(\s*https?:)//([^\s<>"]+\s*)$/m,"$1//$2")}var Kn=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"}));var $n={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(G.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},Yn={name:"core/code",category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}}},Qn=Yn.name,Jn={title:Object(Z.__)("Code"),description:Object(Z.__)("Display code snippets that respect your spacing and tabs."),icon:Kn,example:{attributes:{content:Object(Z.__)('// A "block" is the abstract term used')+"\n"+Object(Z.__)("// to describe units of markup that,")+"\n"+Object(Z.__)("// when composed together, form the")+"\n"+Object(Z.__)("// content or layout of a page.")+"\n"+Object(Z.__)("registerBlockType( name, settings );")}},supports:{html:!1},transforms:$n,edit:function(e){var t,n=e.attributes,r=e.setAttributes,a=e.className;return Object($.createElement)("div",{className:a},Object($.createElement)(W.PlainText,{value:(t=n.content,Object(J.flow)(Zn,Wn,Un)(t||"")),onChange:function(e){return r({content:Dn(e)})},placeholder:Object(Z.__)("Write code…"),"aria-label":Object(Z.__)("Code")}))},save:function(e){var t=e.attributes;return Object($.createElement)("pre",null,Object($.createElement)("code",null,t.content))}};function Xn(e){var t,n=Xn.doc;n||(n=document.implementation.createHTMLDocument(""),Xn.doc=n),n.body.innerHTML=e;var r=!0,a=!1,o=void 0;try{for(var c,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(c=i.next()).done);r=!0){if(t=c.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}}var er=[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some((function(e){return/layout-column-\d+/.test(e.originalContent)}))&&t.some((function(e){return void 0!==Xn(e.originalContent)}))},migrate:function(e,t){var n=t.reduce((function(e,t){var n=Xn(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(G.createBlock)("core/column",{},e)}));return[Object(J.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object($.createElement)("div",{className:"has-".concat(t,"-columns")},Object($.createElement)(W.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(J.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,a=Q()("has-".concat(r,"-columns"),Object(q.a)({},"are-vertically-aligned-".concat(n),n));return Object($.createElement)("div",{className:a},Object($.createElement)(W.InnerBlocks.Content,null))}}],tr=Qe()((function(e){return void 0===e?null:Object(J.times)(e,(function(){return["core/column"]}))})),nr=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function rr(e,t){var n=e.attributes.width;return nr(void 0===n?100/t:n)}function ar(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(J.sumBy)(e,(function(e){return rr(e,t)}))}function or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,n){var r=rr(n,t);return Object.assign(e,Object(q.a)({},n.clientId,r))}),{})}function cr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=(t-ar(e,n))/e.length;return Object(J.mapValues)(or(e,n),(function(e){return nr(e+r)}))}function ir(e,t){return e.map((function(e){return Object(J.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var lr=["core/column"],sr=[{title:Object(Z.__)("Two columns; equal split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),template:[["core/column"],["core/column"]]},{title:Object(Z.__)("Two columns; one-third, two-thirds split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),template:[["core/column",{width:33.33}],["core/column",{width:66.66}]]},{title:Object(Z.__)("Two columns; two-thirds, one-third split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),template:[["core/column",{width:66.66}],["core/column",{width:33.33}]]},{title:Object(Z.__)("Three columns; equal split"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),template:[["core/column"],["core/column"],["core/column"]]},{title:Object(Z.__)("Three columns; wide center column"),icon:Object($.createElement)(se.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),template:[["core/column",{width:25}],["core/column",{width:50}],["core/column",{width:25}]]}],ur=2;var br=Object(be.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var a=t.clientId,o=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockOrder;o({verticalAlignment:r}),i(a).forEach((function(e){c(e,{verticalAlignment:r})}))},updateColumns:function(r,a){var o=t.clientId,c=e("core/block-editor").replaceInnerBlocks,i=(0,n.select("core/block-editor").getBlocks)(o),l=i.some((function(e){return Number.isFinite(e.attributes.width)})),s=a>r;if(s&&l){var u=nr(100/a),b=cr(i,100-u);i=[].concat(Object(U.a)(ir(i,b)),Object(U.a)(Object(J.times)(a-r,(function(){return Object(G.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(U.a)(i),Object(U.a)(Object(J.times)(a-r,(function(){return Object(G.createBlock)("core/column")}))));else{if(i=Object(J.dropRight)(i,r-a),l)i=ir(i,cr(i,100))}c(o,i,!1)}}}))((function(e){var t=e.attributes,n=e.className,r=e.updateAlignment,a=e.updateColumns,o=e.clientId,c=t.verticalAlignment,i=Object(be.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(o)}})).count,l=Object($.useState)(tr(i)),s=Object(ke.a)(l,2),u=s[0],b=s[1],m=Object($.useState)(!1),d=Object(ke.a)(m,2),h=d[0],p=d[1];Object($.useEffect)((function(){h&&p(!1)}),[h]);var g=Q()(n,Object(q.a)({},"are-vertically-aligned-".concat(c),c)),f=0===i&&!h||!u;return Object($.createElement)($.Fragment,null,!f&&Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,null,Object($.createElement)(se.RangeControl,{label:Object(Z.__)("Columns"),value:i,onChange:function(e){return a(i,e)},min:2,max:6}))),Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockVerticalAlignmentToolbar,{onChange:r,value:c}))),Object($.createElement)("div",{className:g},Object($.createElement)(W.InnerBlocks,{__experimentalTemplateOptions:sr,__experimentalOnSelectTemplateOption:function(e){void 0===e&&(e=tr(ur)),b(e),p(!0)},__experimentalAllowTemplateOptionSkip:!0,template:f?null:u,templateLock:"all",allowedBlocks:lr})))})),mr=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z"})));var dr={name:"core/columns",category:"layout",attributes:{verticalAlignment:{type:"string"}}},hr=dr.name,pr={title:Object(Z.__)("Columns"),icon:mr,description:Object(Z.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis pellentesque efficitur. Nam dapibus felis malesuada tincidunt rhoncus. Integer non malesuada tortor."}},{name:"core/image",attributes:{url:"https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:"Suspendisse commodo neque lacus, a dictum orci interdum et. Ut vel mi ut leo fringilla rutrum."}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Z.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit, eget faucibus urna pulvinar.")}},{name:"core/paragraph",attributes:{content:Object(Z.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim ultricies commodo.")}}]}]},deprecated:er,edit:br,save:function(e){var t=e.attributes.verticalAlignment,n=Q()(Object(q.a)({},"are-vertically-aligned-".concat(t),t));return Object($.createElement)("div",{className:n},Object($.createElement)(W.InnerBlocks.Content,null))}};var gr=Object(ue.compose)(Object(be.withSelect)((function(e,t){var n=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(n).length>0}})),Object(be.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var a=t.clientId,o=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockRootClientId;o({verticalAlignment:r}),c(i(a),{verticalAlignment:null})},updateWidth:function(r){var a=t.clientId,o=e("core/block-editor").updateBlockAttributes,c=n.select("core/block-editor"),i=c.getBlockRootClientId,l=(0,c.getBlocks)(i(a)),s=function(e,t){var n=Object(J.findIndex)(e,{clientId:t});return n===e.length-1?e.slice(0,n):e.slice(n+1)}(l,a),u=r+ar(Object(J.difference)(l,[Object(J.find)(l,{clientId:a})].concat(Object(U.a)(s)))),b=Object(K.a)({},or(l,l.length),Object(q.a)({},a,nr(r)),cr(s,100-u,l.length));Object(J.forEach)(b,(function(e,t){o(t,{width:e})}))}}})))((function(e){var t=e.attributes,n=e.className,r=e.updateAlignment,a=e.updateWidth,o=e.hasChildBlocks,c=t.verticalAlignment,i=t.width,l=Q()(n,"block-core-columns",Object(q.a)({},"is-vertically-aligned-".concat(c),c));return Object($.createElement)("div",{className:l},Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Column Settings")},Object($.createElement)(se.RangeControl,{label:Object(Z.__)("Percentage width"),value:i||"",onChange:a,min:0,max:100,required:!0,allowReset:!0}))),Object($.createElement)(W.InnerBlocks,{templateLock:!1,renderAppender:o?void 0:function(){return Object($.createElement)(W.InnerBlocks.ButtonBlockAppender,null)}}))})),fr=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}));var vr={name:"core/column",category:"common",attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}}},Or=vr.name,jr={title:Object(Z.__)("Column"),parent:["core/columns"],icon:fr,description:Object(Z.__)("A single column within a columns block."),supports:{inserter:!1,reusable:!1,html:!1},getEditWrapperProps:function(e){var t=e.width;if(Number.isFinite(t))return{style:{flexBasis:t+"%"}}},edit:gr,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,a=n.width,o=Q()(Object(q.a)({},"is-vertically-aligned-".concat(r),r));return Number.isFinite(a)&&(t={flexBasis:a+"%"}),Object($.createElement)("div",{className:o,style:t},Object($.createElement)(W.InnerBlocks.Content,null))}},yr="image",_r="video",kr=50;function Cr(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}function wr(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}var Er={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},xr=[{attributes:Object(K.a)({},Er,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,n=t.backgroundType,r=t.contentAlign,a=t.customOverlayColor,o=t.dimRatio,c=t.focalPoint,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object(W.getColorClassName)("background-color",l),m=n===yr?Cr(u):{};b||(m.backgroundColor=a),c&&!i&&(m.backgroundPosition="".concat(100*c.x,"% ").concat(100*c.y,"%"));var d=Q()(wr(o),b,Object(q.a)({"has-background-dim":0!==o,"has-parallax":i},"has-".concat(r,"-content"),"center"!==r));return Object($.createElement)("div",{className:d,style:m},_r===n&&u&&Object($.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!W.RichText.isEmpty(s)&&Object($.createElement)(W.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign"]),[Object(G.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Z.__)("Write title…")})]]}},{attributes:Object(K.a)({},Er,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,a=t.hasParallax,o=t.dimRatio,c=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object(W.getColorClassName)("background-color",l),b=Cr(n);u||(b.backgroundColor=s);var m=Q()("wp-block-cover-image",wr(o),u,Object(q.a)({"has-background-dim":0!==o,"has-parallax":a},"has-".concat(i,"-content"),"center"!==i),c?"align".concat(c):null);return Object($.createElement)("div",{className:m,style:b},!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign","align"]),[Object(G.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Z.__)("Write title…")})]]}},{attributes:Object(K.a)({},Er,{title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,a=t.hasParallax,o=t.dimRatio,c=t.align,i=Cr(n),l=Q()("wp-block-cover-image",wr(o),{"has-background-dim":0!==o,"has-parallax":a},c?"align".concat(c):null);return Object($.createElement)("section",{className:l,style:i},Object($.createElement)(W.RichText.Content,{tagName:"h2",value:r}))},migrate:function(e){return[Object(J.omit)(e,["title","contentAlign","align"]),[Object(G.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Z.__)("Write title…")})]]}}],Sr=n(198),Tr=n.n(Sr),Nr=n(48),Mr=n.n(Nr),Br=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.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"}),Object($.createElement)(se.Path,{d:"M0 0h24v24H0z",fill:"none"})),Rr=["image","video"],Ar=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(Z.__)("Write title…")}]];function Lr(){return Lr.fastAverageColor||(Lr.fastAverageColor=new Tr.a),Lr.fastAverageColor}var Ir=Object(ue.withInstanceId)((function(e){var t=e.value,n=void 0===t?"":t,r=e.instanceId,a=e.onChange,o=Object($.useState)(null),c=Object(ke.a)(o,2),i=c[0],l=c[1],s=Object($.useCallback)((function(e){var t=""!==e.target.value?parseInt(e.target.value,10):void 0;(isNaN(t)||t50){if(e&&e.attributes.dimRatio>50&&e.overlayColor.color===a.color)return;return a.color?void this.changeIsDarkIfRequired(Mr()(a.color).isDark()):void this.changeIsDarkIfRequired(!0)}if(!(e&&e.attributes.dimRatio<=50&&e.attributes.url===c)){var i;switch(r.backgroundType){case yr:i=this.imageRef.current;break;case _r:i=this.videoRef.current}i&&Lr().getColorAsync(i,(function(e){t.changeIsDarkIfRequired(e.isDark)}))}}},{key:"changeIsDarkIfRequired",value:function(e){this.state.isDark!==e&&this.setState({isDark:e})}}]),t}($.Component),Vr=Object(ue.compose)([Object(be.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object(W.withColors)({overlayColor:"background-color"}),se.withNotices,ue.withInstanceId])(Hr);var Dr={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,a=e.id;return Object(G.createBlock)("core/cover",{title:t,url:n,align:r,id:a})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,a=e.id;return Object(G.createBlock)("core/cover",{title:t,url:n,align:r,id:a,backgroundType:_r})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType;return!e.url||t===yr},transform:function(e){var t=e.title,n=e.url,r=e.align,a=e.id;return Object(G.createBlock)("core/image",{caption:t,url:n,align:r,id:a})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType;return!e.url||t===_r},transform:function(e){var t=e.title,n=e.url,r=e.align,a=e.id;return Object(G.createBlock)("core/video",{caption:t,src:n,id:a,align:r})}}]},Fr={name:"core/cover",category:"common",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"}}},Ur=Fr.name,qr={title:Object(Z.__)("Cover"),description:Object(Z.__)("Add an image or video with a text overlay — great for headers."),icon:Br,supports:{align:!0},example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://upload.wikimedia.org/wikipedia/commons/9/95/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(Z.__)("Snow Patrol"),align:"center"}}]},transforms:Dr,save:function(e){var t=e.attributes,n=t.backgroundType,r=t.customOverlayColor,a=t.dimRatio,o=t.focalPoint,c=t.hasParallax,i=t.overlayColor,l=t.url,s=t.minHeight,u=Object(W.getColorClassName)("background-color",i),b=n===yr?Cr(l):{};u||(b.backgroundColor=r),o&&!c&&(b.backgroundPosition="".concat(100*o.x,"% ").concat(100*o.y,"%")),b.minHeight=s||void 0;var m=Q()(wr(a),u,{"has-background-dim":0!==a,"has-parallax":c});return Object($.createElement)("div",{className:m,style:b},_r===n&&l&&Object($.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:l}),Object($.createElement)("div",{className:"wp-block-cover__inner-container"},Object($.createElement)(W.InnerBlocks.Content,null)))},edit:Vr,deprecated:xr},Wr=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,a=e.allowResponsive,o=e.getResponsiveHelp,c=e.toggleResponsive,i=e.switchBackToURLInput;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,n&&Object($.createElement)(se.IconButton,{className:"components-toolbar__control",label:Object(Z.__)("Edit URL"),icon:"edit",onClick:i}))),r&&t&&Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Media Settings"),className:"blocks-responsive"},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Resize for smaller devices"),checked:a,help:o,onChange:c}))))},Gr=function(){return Object($.createElement)("div",{className:"wp-block-embed is-loading"},Object($.createElement)(se.Spinner,null),Object($.createElement)("p",null,Object(Z.__)("Embedding…")))},Zr=function(e){var t=e.icon,n=e.label,r=e.value,a=e.onSubmit,o=e.onChange,c=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object($.createElement)(se.Placeholder,{icon:Object($.createElement)(W.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed",instructions:Object(Z.__)("Paste a link to the content you want to display on your site.")},Object($.createElement)("form",{onSubmit:a},Object($.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(Z.__)("Enter URL to embed here…"),onChange:o}),Object($.createElement)(se.Button,{isLarge:!0,type:"submit"},Object(Z._x)("Embed","button label")),c&&Object($.createElement)("p",{className:"components-placeholder__error"},Object(Z.__)("Sorry, this content could not be embedded."),Object($.createElement)("br",null),Object($.createElement)(se.Button,{isLarge:!0,onClick:l},Object(Z._x)("Try again","button label"))," ",Object($.createElement)(se.Button,{isLarge:!0,onClick:i},Object(Z._x)("Convert to link","button label")))),Object($.createElement)("div",{className:"components-placeholder__learn-more"},Object($.createElement)(se.ExternalLink,{href:Object(Z.__)("https://wordpress.org/support/article/embeds/")},Object(Z.__)("Learn more about embeds"))))},Kr=n(79),$r=window.FocusEvent,Yr=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(ie.a)(e)),e.node=Object($.createRef)(),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new $r("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object($.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}($.Component),Qr=Object(ue.withGlobalEvents)({blur:"checkFocus"})(Yr),Jr=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(ie.a)(e)),e.state={interactive:!1},e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,n,r=this.props,a=r.preview,o=r.url,c=r.type,i=r.caption,l=r.onCaptionChange,s=r.isSelected,u=r.className,b=r.icon,m=r.label,d=a.scripts,h=this.state.interactive,p="photo"===c?(t=(e=a).thumbnail_url?e.thumbnail_url:e.url,n=Object($.createElement)("p",null,Object($.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object($.renderToString)(n)):a.html,g=Object(Kr.parse)(o).host.split("."),f=g.splice(g.length-2,g.length-1).join("."),v=Object(J.includes)(Ge,f),O=Object(Z.sprintf)(Object(Z.__)("Embedded content from %s"),f),j=$e()(c,u,"wp-block-embed__wrapper"),y="wp-embed"===c?Object($.createElement)(Qr,{html:p}):Object($.createElement)("div",{className:"wp-block-embed__wrapper"},Object($.createElement)(se.SandBox,{html:p,scripts:d,title:O,type:j,onFocus:this.hideOverlay}),!h&&Object($.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object($.createElement)("figure",{className:$e()(u,"wp-block-embed",{"is-type-video":"video"===c})},v?Object($.createElement)(se.Placeholder,{icon:Object($.createElement)(W.BlockIcon,{icon:b,showColors:!0}),label:m},Object($.createElement)("p",{className:"components-placeholder__error"},Object($.createElement)("a",{href:o},o)),Object($.createElement)("p",{className:"components-placeholder__error"},Object(Z.sprintf)(Object(Z.__)("Embedded content from %s can't be previewed in the editor."),f))):y,(!W.RichText.isEmpty(i)||s)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(Z.__)("Write caption…"),value:i,onChange:l,inlineToolbar:!0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}($.Component);function Xr(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(function(r){function a(){var e;return Object(re.a)(this,a),(e=Object(oe.a)(this,Object(ce.a)(a).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(ie.a)(e)),e.setUrl=e.setUrl.bind(Object(ie.a)(e)),e.getMergedAttributes=e.getMergedAttributes.bind(Object(ie.a)(e)),e.setMergedAttributes=e.setMergedAttributes.bind(Object(ie.a)(e)),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(ie.a)(e)),e.toggleResponsive=e.toggleResponsive.bind(Object(ie.a)(e)),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(ie.a)(e)),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(le.a)(a,r),Object(ae.a)(a,[{key:"handleIncomingPreview",value:function(){if(this.setMergedAttributes(),this.props.onReplace){var e=et(this.props,this.getMergedAttributes());e&&this.props.onReplace(e)}}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,n=void 0!==e.preview,r=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!n,a=this.props.attributes.url!==e.attributes.url;if(r||a){if(this.props.cannotEmbed)return void(this.props.fetching||this.resubmitWithoutTrailingSlash());this.handleIncomingPreview()}}},{key:"resubmitWithoutTrailingSlash",value:function(){this.setState((function(e){return{url:e.url.replace(/\/$/,"")}}),this.setUrl)}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;this.setState({editingURL:!1}),n({url:t})}},{key:"getMergedAttributes",value:function(){var t=this.props.preview,r=this.props.attributes,a=r.className,o=r.allowResponsive;return Object(K.a)({},this.props.attributes,nt(t,e,a,n,o))}},{key:"setMergedAttributes",value:function(){(0,this.props.setAttributes)(this.getMergedAttributes())}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(Z.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(Z.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,r=e.className,a=this.props.preview.html,o=!t;this.props.setAttributes({allowResponsive:o,className:tt(a,r,n&&o)})}},{key:"render",value:function(){var r=this,a=this.state,o=a.url,c=a.editingURL,i=this.props,l=i.fetching,s=i.setAttributes,u=i.isSelected,b=i.preview,m=i.cannotEmbed,d=i.themeSupportsResponsive,h=i.tryAgain;if(l)return Object($.createElement)(Gr,null);var p=Object(Z.sprintf)(Object(Z.__)("%s URL"),e);if(!b||m||c)return Object($.createElement)(Zr,{icon:t,label:p,onSubmit:this.setUrl,value:o,cannotEmbed:m,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return function(e,t){var n=Object($.createElement)("a",{href:e},e);t(Object(G.createBlock)("core/paragraph",{content:Object($.renderToString)(n)}))}(o,r.props.onReplace)},tryAgain:h});var g=this.getMergedAttributes(),f=g.caption,v=g.type,O=g.allowResponsive,j=Q()(g.className,this.props.className);return Object($.createElement)($.Fragment,null,Object($.createElement)(Wr,{showEditButton:b&&!m,themeSupportsResponsive:d,blockSupportsResponsive:n,allowResponsive:O,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object($.createElement)(Jr,{preview:b,className:j,url:o,type:v,caption:f,onCaptionChange:function(e){return s({caption:e})},isSelected:u,icon:t,label:p}))}}]),a}($.Component))}var ea={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function ta(e){var t=e.title,n=e.description,r=e.icon,a=e.category,o=void 0===a?"embed":a,c=e.transforms,i=e.keywords,l=void 0===i?[]:i,s=e.supports,u=void 0===s?{}:s,b=e.responsive,m=void 0===b||b,d=n||Object(Z.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),h=Xr(t,r,m);return{title:t,description:d,icon:r,category:o,keywords:l,attributes:ea,supports:Object(K.a)({align:!0},u),transforms:c,edit:Object(ue.compose)(Object(be.withSelect)((function(e,t){var n=t.attributes.url,r=e("core"),a=r.getEmbedPreview,o=r.isPreviewEmbedFallback,c=r.isRequestingEmbedPreview,i=r.getThemeSupports,l=void 0!==n&&a(n),s=void 0!==n&&o(n),u=void 0!==n&&c(n),b=i(),m=!!l&&void 0===l.type&&!1===l.html,d=!!l&&l.data&&404===l.data.status,h=!!l&&!m&&!d,p=void 0!==n&&(!h||s);return{preview:h?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:p}})),Object(be.withDispatch)((function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}})))(h),save:function(e){var t,n=e.attributes,r=n.url,a=n.caption,o=n.type,c=n.providerNameSlug;if(!r)return null;var i=$e()("wp-block-embed",(t={},Object(q.a)(t,"is-type-".concat(o),o),Object(q.a)(t,"is-provider-".concat(c),c),t));return Object($.createElement)("figure",{className:i},Object($.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!W.RichText.isEmpty(a)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:a}))},deprecated:[{attributes:ea,save:function(e){var t,n=e.attributes,r=n.url,a=n.caption,o=n.type,c=n.providerNameSlug;if(!r)return null;var i=$e()("wp-block-embed",(t={},Object(q.a)(t,"is-type-".concat(o),o),Object(q.a)(t,"is-provider-".concat(c),c),t));return Object($.createElement)("figure",{className:i},"\n".concat(r,"\n"),!W.RichText.isEmpty(a)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:a}))}}]}}var na="core/embed",ra=ta({title:Object(Z._x)("Embed","block title"),description:Object(Z.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:Te,responsive:!1,transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(G.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),aa=qe.map((function(e){return Object(K.a)({},e,{settings:ta(e.settings)})})),oa=We.map((function(e){return Object(K.a)({},e,{settings:ta(e.settings)})})),ca=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.Path,{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}));function ia(e){var t=e.hrefs,n=e.openInNewWindow,r=e.showDownloadButton,a=e.changeLinkDestinationOption,o=e.changeOpenInNewWindow,c=e.changeShowDownloadButton,i=t.href,l=t.textLinkHref,s=t.attachmentPage,u=[{value:i,label:Object(Z.__)("URL")}];return s&&(u=[{value:i,label:Object(Z.__)("Media File")},{value:s,label:Object(Z.__)("Attachment page")}]),Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Text link settings")},Object($.createElement)(se.SelectControl,{label:Object(Z.__)("Link To"),value:l,options:u,onChange:a}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Open in new tab"),checked:n,onChange:o})),Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Download button settings")},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Show download button"),checked:r,onChange:c}))))}var la=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(ie.a)(e)),e.confirmCopyURL=e.confirmCopyURL.bind(Object(ie.a)(e)),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(ie.a)(e)),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(ie.a)(e)),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(ie.a)(e)),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,a=t.noticeOperations,o=t.setAttributes,c=n.downloadButtonText,i=n.href;Object(Ce.isBlobURL)(i)&&(r({filesList:[Object(Ce.getBlobByURL)(i)],onFileChange:function(t){var n=Object(ke.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),a.createErrorNotice(t)}}),Object(Ce.revokeBlobURL)(i));void 0===c&&o({downloadButtonText:Object(Z._x)("Download","button label")})}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"confirmCopyURL",value:function(){this.setState({showCopyConfirmation:!0})}},{key:"resetCopyConfirmation",value:function(){this.setState({showCopyConfirmation:!1})}},{key:"changeLinkDestinationOption",value:function(e){this.props.setAttributes({textLinkHref:e})}},{key:"changeOpenInNewWindow",value:function(e){this.props.setAttributes({textLinkTarget:!!e&&"_blank"})}},{key:"changeShowDownloadButton",value:function(e){this.props.setAttributes({showDownloadButton:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.isSelected,a=t.attributes,o=t.setAttributes,c=t.noticeUI,i=t.media,l=a.fileName,s=a.href,u=a.textLinkHref,b=a.textLinkTarget,m=a.showDownloadButton,d=a.downloadButtonText,h=a.id,p=this.state,g=p.hasError,f=p.showCopyConfirmation,v=i&&i.link;if(!s||g)return Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:ca}),labels:{title:Object(Z.__)("File"),instructions:Object(Z.__)("Upload a file or pick one from your media library.")},onSelect:this.onSelectFile,notices:c,onError:this.onUploadError,accept:"*"});var O=Q()(n,{"is-transient":Object(Ce.isBlobURL)(s)});return Object($.createElement)($.Fragment,null,Object($.createElement)(ia,Object(ne.a)({hrefs:{href:s,textLinkHref:u,attachmentPage:v}},{openInNewWindow:!!b,showDownloadButton:m,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.MediaUploadCheck,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(W.MediaUpload,{onSelect:this.onSelectFile,value:h,render:function(e){var t=e.open;return Object($.createElement)(se.IconButton,{className:"components-toolbar__control",label:Object(Z.__)("Edit file"),onClick:t,icon:"edit"})}})))),Object($.createElement)(se.Animate,{type:Object(Ce.isBlobURL)(s)?"loading":null},(function(t){var n=t.className;return Object($.createElement)("div",{className:Q()(O,n)},Object($.createElement)("div",{className:"wp-block-file__content-wrapper"},Object($.createElement)(W.RichText,{wrapperClassName:"wp-block-file__textlink",tagName:"div",value:l,placeholder:Object(Z.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return o({fileName:e})}}),m&&Object($.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object($.createElement)(W.RichText,{tagName:"div",className:"wp-block-file__button",value:d,withoutInteractiveFormatting:!0,placeholder:Object(Z.__)("Add text…"),onChange:function(e){return o({downloadButtonText:e})}}))),r&&Object($.createElement)(se.ClipboardButton,{isDefault:!0,text:s,className:"wp-block-file__copy-url-button",onCopy:e.confirmCopyURL,onFinishCopy:e.resetCopyConfirmation,disabled:Object(Ce.isBlobURL)(s)},f?Object(Z.__)("Copied!"):Object(Z.__)("Copy URL")))})))}}]),t}($.Component),sa=Object(ue.compose)([Object(be.withSelect)((function(e,t){var n=e("core").getMedia,r=(0,e("core/block-editor").getSettings)().__experimentalMediaUpload,a=t.attributes.id;return{media:void 0===a?void 0:n(a),mediaUpload:r}})),se.withNotices])(la);var ua={from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var n=Object(Ce.createBlobURL)(e);t.push(Object(G.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(G.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(G.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(G.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(be.select)("core").getMedia)(t);return!!n&&Object(J.includes)(n.mime_type,"audio")},transform:function(e){return Object(G.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(be.select)("core").getMedia)(t);return!!n&&Object(J.includes)(n.mime_type,"video")},transform:function(e){return Object(G.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(be.select)("core").getMedia)(t);return!!n&&Object(J.includes)(n.mime_type,"image")},transform:function(e){return Object(G.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},ba={name:"core/file",category:"common",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"}}},ma=ba.name,da={title:Object(Z.__)("File"),description:Object(Z.__)("Add a link to a downloadable file."),icon:ca,keywords:[Object(Z.__)("document"),Object(Z.__)("pdf")],supports:{align:!0},transforms:ua,edit:sa,save:function(e){var t=e.attributes,n=t.href,r=t.fileName,a=t.textLinkHref,o=t.textLinkTarget,c=t.showDownloadButton,i=t.downloadButtonText;return n&&Object($.createElement)("div",null,!W.RichText.isEmpty(r)&&Object($.createElement)("a",{href:a,target:o,rel:!!o&&"noreferrer noopener"},Object($.createElement)(W.RichText.Content,{value:r})),c&&Object($.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object($.createElement)(W.RichText.Content,{value:i})))}},ha=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(ie.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(U.a)(Object(W.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=this.state,a=r.isPreview,o=r.styles;return Object($.createElement)("div",{className:"wp-block-html"},Object($.createElement)(W.BlockControls,null,Object($.createElement)("div",{className:"components-toolbar"},Object($.createElement)("button",{className:"components-tab-button ".concat(a?"":"is-active"),onClick:this.switchToHTML},Object($.createElement)("span",null,"HTML")),Object($.createElement)("button",{className:"components-tab-button ".concat(a?"is-active":""),onClick:this.switchToPreview},Object($.createElement)("span",null,Object(Z.__)("Preview"))))),Object($.createElement)(se.Disabled.Consumer,null,(function(e){return a||e?Object($.createElement)(se.SandBox,{html:t.content,styles:o}):Object($.createElement)(W.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(Z.__)("Write HTML…"),"aria-label":Object(Z.__)("HTML")})})))}}]),t}($.Component),pa=Object(be.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(ha),ga=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"}));var fa={from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:Object(G.getPhrasingContentSchema)()}}}}}]},va={name:"core/html",category:"formatting",attributes:{content:{type:"string",source:"html"}}},Oa=va.name,ja={title:Object(Z.__)("Custom HTML"),description:Object(Z.__)("Add custom HTML code and preview it as you edit."),icon:ga,keywords:[Object(Z.__)("embed")],example:{attributes:{content:""+Object(Z.__)("Welcome to the wonderful world of blocks…")+""}},supports:{customClassName:!1,className:!1,html:!1},transforms:fa,edit:pa,save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.content)}},ya=[{attributes:{align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},save:function(e){var t,n,r=e.attributes,a=r.backgroundColor,o=r.customBackgroundColor,c=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m={image:function(){return Object($.createElement)("img",{src:u,alt:i})},video:function(){return Object($.createElement)("video",{controls:!0,src:u})}},d=Object(W.getColorClassName)("background-color",a),h=Q()((t={"has-media-on-the-right":"right"===l},Object(q.a)(t,d,d),Object(q.a)(t,"is-stacked-on-mobile",c),t));50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var p={backgroundColor:d?void 0:o,gridTemplateColumns:n};return Object($.createElement)("div",{className:h,style:p},Object($.createElement)("figure",{className:"wp-block-media-text__media"},(m[s]||J.noop)()),Object($.createElement)("div",{className:"wp-block-media-text__content"},Object($.createElement)(W.InnerBlocks.Content,null)))}}],_a=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object($.createElement)(se.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object($.createElement)(se.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),ka=["image","video"];function Ca(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}var wa=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(W.MediaUpload,{onSelect:n,allowedTypes:ka,value:t,render:function(e){var t=e.open;return Object($.createElement)(se.IconButton,{className:"components-toolbar__control",label:Object(Z.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className,a=e.imageFill,o=e.focalPoint,c=a?Ca(n,o):{};return Object($.createElement)($.Fragment,null,this.renderToolbarEditButton(),Object($.createElement)("figure",{className:r,style:c},Object($.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object($.createElement)($.Fragment,null,this.renderToolbarEditButton(),Object($.createElement)("figure",{className:n},Object($.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className,r=e.noticeUI;return Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:_a}),labels:{title:Object(Z.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:ka,notices:r,onError:this.onUploadError})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,n=e.mediaUrl,r=e.mediaType,a=e.mediaWidth,o=e.commitWidthChange,c=e.onWidthChange,i=e.toggleSelection;if(r&&n){var l={right:"left"===t,left:"right"===t},s=null;switch(r){case"image":s=this.renderImage();break;case"video":s=this.renderVideo()}return Object($.createElement)(se.ResizableBox,{className:"editor-media-container__resizer",size:{width:a+"%"},minWidth:"10%",maxWidth:"100%",enable:l,onResizeStart:function(){i(!1)},onResize:function(e,t,n){c(parseInt(n.style.width))},onResizeStop:function(e,t,n){i(!0),o(parseInt(n.style.width))},axis:"x"},s)}return this.renderPlaceholder()}}]),t}($.Component),Ea=Object(ue.compose)([Object(be.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),se.withNotices])(wa),xa=[["core/paragraph",{fontSize:"large",placeholder:Object(Z._x)("Content…","content placeholder")}]],Sa=function(e){return Math.max(15,Math.min(e,85))},Ta=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(ie.a)(e)),e.onWidthChange=e.onWidthChange.bind(Object(ie.a)(e)),e.commitWidthChange=e.commitWidthChange.bind(Object(ie.a)(e)),e.state={mediaWidth:null},e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(J.get)(e,["sizes","large","url"])||Object(J.get)(e,["media_details","sizes","large","source_url"])),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url,imageFill:void 0,focalPoint:void 0})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:Sa(e)})}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:Sa(e)}),this.setState({mediaWidth:null})}},{key:"renderMediaArea",value:function(){var e=this.props.attributes,t=e.mediaAlt,n=e.mediaId,r=e.mediaPosition,a=e.mediaType,o=e.mediaUrl,c=e.mediaWidth,i=e.imageFill,l=e.focalPoint;return Object($.createElement)(Ea,Object(ne.a)({className:"block-library-media-text__media-container",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:a,mediaUrl:o,mediaPosition:r,mediaWidth:c,imageFill:i,focalPoint:l}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.className,a=t.backgroundColor,o=t.isSelected,c=t.setAttributes,i=t.setBackgroundColor,l=n.isStackedOnMobile,s=n.mediaAlt,u=n.mediaPosition,b=n.mediaType,m=n.mediaWidth,d=n.verticalAlignment,h=n.mediaUrl,p=n.imageFill,g=n.focalPoint,f=this.state.mediaWidth,v=Q()(r,(e={"has-media-on-the-right":"right"===u,"is-selected":o,"has-background":a.class||a.color},Object(q.a)(e,a.class,a.class),Object(q.a)(e,"is-stacked-on-mobile",l),Object(q.a)(e,"is-vertically-aligned-".concat(d),d),Object(q.a)(e,"is-image-fill",p),e)),O="".concat(f||m,"%"),j={gridTemplateColumns:"right"===u?"auto ".concat(O):"".concat(O," auto"),backgroundColor:a.color},y=[{value:a.color,onChange:i,label:Object(Z.__)("Background Color")}],_=[{icon:"align-pull-left",title:Object(Z.__)("Show media on left"),isActive:"left"===u,onClick:function(){return c({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(Z.__)("Show media on right"),isActive:"right"===u,onClick:function(){return c({mediaPosition:"right"})}}],k=Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Media & Text Settings")},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Stack on mobile"),checked:l,onChange:function(){return c({isStackedOnMobile:!l})}}),"image"===b&&Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Crop image to fill entire column"),checked:p,onChange:function(){return c({imageFill:!p})}}),p&&Object($.createElement)(se.FocalPointPicker,{label:Object(Z.__)("Focal Point Picker"),url:h,value:g,onChange:function(e){return c({focalPoint:e})}}),"image"===b&&Object($.createElement)(se.TextareaControl,{label:Object(Z.__)("Alt Text (Alternative Text)"),value:s,onChange:function(e){c({mediaAlt:e})},help:Object($.createElement)($.Fragment,null,Object($.createElement)(se.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Z.__)("Describe the purpose of the image")),Object(Z.__)("Leave empty if the image is purely decorative."))}));return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,k,Object($.createElement)(W.PanelColorSettings,{title:Object(Z.__)("Color Settings"),initialOpen:!1,colorSettings:y})),Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:_}),Object($.createElement)(W.BlockVerticalAlignmentToolbar,{onChange:function(e){c({verticalAlignment:e})},value:d})),Object($.createElement)("div",{className:v,style:j},this.renderMediaArea(),Object($.createElement)(W.InnerBlocks,{template:xa,templateInsertUpdatesSelection:!1})))}}]),t}($.Component),Na=Object(W.withColors)("backgroundColor")(Ta),Ma=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),Ba=50;var Ra={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(G.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image"})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id;return Object(G.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"image"===t},transform:function(e){var t=e.mediaAlt,n=e.mediaId,r=e.mediaUrl;return Object(G.createBlock)("core/image",{alt:t,id:n,url:r})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,n=e.mediaUrl;return Object(G.createBlock)("core/video",{id:t,src:n})}}]},Aa={name:"core/media-text",category:"layout",attributes:{align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}},La=Aa.name,Ia={title:Object(Z.__)("Media & Text"),description:Object(Z.__)("Set media and words side-by-side for a richer layout."),icon:Ma,keywords:[Object(Z.__)("image"),Object(Z.__)("video")],supports:{align:["wide","full"],html:!1},example:{attributes:{mediaType:"image",mediaUrl:"https://upload.wikimedia.org/wikipedia/commons/d/d4/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Z.__)("The wren
    Earns his living
    Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Z.__)("— Kobayashi Issa (一茶)")}}]},transforms:Ra,edit:Na,save:function(e){var t,n,r=e.attributes,a=r.backgroundColor,o=r.customBackgroundColor,c=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m=r.mediaId,d=r.verticalAlignment,h=r.imageFill,p=r.focalPoint,g={image:function(){return Object($.createElement)("img",{src:u,alt:i,className:m&&"image"===s?"wp-image-".concat(m):null})},video:function(){return Object($.createElement)("video",{controls:!0,src:u})}},f=Object(W.getColorClassName)("background-color",a),v=Q()((t={"has-media-on-the-right":"right"===l,"has-background":f||o},Object(q.a)(t,f,f),Object(q.a)(t,"is-stacked-on-mobile",c),Object(q.a)(t,"is-vertically-aligned-".concat(d),d),Object(q.a)(t,"is-image-fill",h),t)),O=h?Ca(u,p):{};b!==Ba&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var j={backgroundColor:f?void 0:o,gridTemplateColumns:n};return Object($.createElement)("div",{className:v,style:j},Object($.createElement)("figure",{className:"wp-block-media-text__media",style:O},(g[s]||J.noop)()),Object($.createElement)("div",{className:"wp-block-media-text__content"},Object($.createElement)(W.InnerBlocks.Content,null)))},deprecated:ya};Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object($.createElement)(se.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));Object(Z.__)("Navigation Menu (Experimental)"),Object(Z.__)("Add a navigation menu to your site."),Object(Z.__)("menu"),Object(Z.__)("navigation"),Object(Z.__)("links");Object(ue.compose)([Object(be.withDispatch)((function(e,t,n){var r=t.clientId,a=(0,n.select)("core/block-editor"),o=a.getBlockOrder,c=(0,a.getBlockRootClientId)(r),i=e("core/block-editor"),l=i.moveBlocksDown,s=i.moveBlocksUp,u=i.moveBlockToPosition,b=i.removeBlocks;return{moveToStart:function(){u(r,c,c,0)},moveRight:function(){l(r,c)},moveLeft:function(){s(r,c)},moveToEnd:function(){u(r,c,c,o(c).length-1)},remove:function(){b(r)}}}))])((function(e){var t=e.destination,n=e.moveLeft,r=e.moveRight,a=e.moveToEnd,o=e.moveToStart,c=e.onEditLableClicked,i=e.remove;return Object($.createElement)(se.NavigableMenu,null,Object($.createElement)(se.MenuItem,{icon:"admin-links"},t),Object($.createElement)(se.MenuItem,{onClick:c,icon:"edit"},Object(Z.__)("Edit label text")),Object($.createElement)("div",{className:"wp-block-navigation-menu-item__separator"}),Object($.createElement)(se.MenuItem,{onClick:o,icon:"arrow-up-alt2"},Object(Z.__)("Move to start")),Object($.createElement)(se.MenuItem,{onClick:n,icon:"arrow-left-alt2"},Object(Z.__)("Move left")),Object($.createElement)(se.MenuItem,{onClick:r,icon:"arrow-right-alt2"},Object(Z.__)("Move right")),Object($.createElement)(se.MenuItem,{onClick:a,icon:"arrow-down-alt2"},Object(Z.__)("Move to end")),Object($.createElement)(se.MenuItem,{icon:"arrow-left-alt2"},Object(Z.__)("Nest underneath…")),Object($.createElement)("div",{className:"navigation-menu-item__separator"}),Object($.createElement)(se.MenuItem,{onClick:i,icon:"trash"},Object(Z.__)("Remove from menu")))}));Object(Z.__)("Menu Item (Experimental)"),Object(Z.__)("Add a page, link, or other item to your Navigation Menu.");var za=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(ie.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(q.a)({},e,!n))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,n=e.displayAvatar,r=e.displayDate,a=e.displayExcerpt;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Latest Comments Settings")},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Display Avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Display Date"),checked:r,onChange:this.toggleDisplayDate}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Display Excerpt"),checked:a,onChange:this.toggleDisplayExcerpt}),Object($.createElement)(se.RangeControl,{label:Object(Z.__)("Number of Comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object($.createElement)(se.Disabled,null,Object($.createElement)(tn.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}($.Component),Pa=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"}))),Ha="core/latest-comments",Va={title:Object(Z.__)("Latest Comments"),description:Object(Z.__)("Display a list of your most recent comments."),icon:Pa,category:"widgets",keywords:[Object(Z.__)("recent comments")],supports:{align:!0,html:!1},edit:za},Da=n(32),Fa=n.n(Da),Ua=n(54),qa={per_page:-1},Wa=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).state={categoriesList:[]},e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=Fa()({path:Object(Ee.addQueryArgs)("/wp/v2/categories",qa)}).then((function(t){e.isStillMounted&&e.setState({categoriesList:t})})).catch((function(){e.isStillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.latestPosts,a=this.state.categoriesList,o=t.displayPostContentRadio,c=t.displayPostContent,i=t.displayPostDate,l=t.postLayout,s=t.columns,u=t.order,b=t.orderBy,m=t.categories,d=t.postsToShow,h=t.excerptLength,p=Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Post Content Settings")},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Post Content"),checked:c,onChange:function(e){return n({displayPostContent:e})}}),c&&Object($.createElement)(se.RadioControl,{label:"Show:",selected:o,options:[{label:"Excerpt",value:"excerpt"},{label:"Full Post",value:"full_post"}],onChange:function(e){return n({displayPostContentRadio:e})}}),c&&"excerpt"===o&&Object($.createElement)(se.RangeControl,{label:Object(Z.__)("Max number of words in excerpt"),value:h,onChange:function(e){return n({excerptLength:e})},min:10,max:100})),Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Post Meta Settings")},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Display post date"),checked:i,onChange:function(e){return n({displayPostDate:e})}})),Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Sorting and Filtering")},Object($.createElement)(se.QueryControls,Object(ne.a)({order:u,orderBy:b},{numberOfItems:d,categoriesList:a,selectedCategoryId:m,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}})),"grid"===l&&Object($.createElement)(se.RangeControl,{label:Object(Z.__)("Columns"),value:s,onChange:function(e){return n({columns:e})},min:2,max:g?Math.min(6,r.length):6,required:!0}))),g=Array.isArray(r)&&r.length;if(!g)return Object($.createElement)($.Fragment,null,p,Object($.createElement)(se.Placeholder,{icon:"admin-post",label:Object(Z.__)("Latest Posts")},Array.isArray(r)?Object(Z.__)("No posts found."):Object($.createElement)(se.Spinner,null)));var f=r.length>d?r.slice(0,d):r,v=[{icon:"list-view",title:Object(Z.__)("List view"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===l},{icon:"grid-view",title:Object(Z.__)("Grid view"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===l}],O=Object(Ua.__experimentalGetSettings)().formats.date;return Object($.createElement)($.Fragment,null,p,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:v})),Object($.createElement)("ul",{className:Q()(this.props.className,Object(q.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===l,"has-dates":i},"columns-".concat(s),"grid"===l))},f.map((function(e,t){var n=e.title.rendered.trim(),r=e.excerpt.rendered;""===e.excerpt.raw&&(r=e.content.raw);var a=document.createElement("div");return a.innerHTML=r,r=a.textContent||a.innerText||"",Object($.createElement)("li",{key:t},Object($.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object($.createElement)($.RawHTML,null,n):Object(Z.__)("(no title)")),i&&e.date_gmt&&Object($.createElement)("time",{dateTime:Object(Ua.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(Ua.dateI18n)(O,e.date_gmt)),c&&"excerpt"===o&&Object($.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},Object($.createElement)($.RawHTML,{key:"html"},h'+Object(Z.__)("Read more")+"":r.trim().split(" ",h).join(" "))),c&&"full_post"===o&&Object($.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object($.createElement)($.RawHTML,{key:"html"},e.content.raw.trim())))}))))}}]),t}($.Component),Ga=Object(be.withSelect)((function(e,t){var n=t.attributes,r=n.postsToShow,a=n.order,o=n.orderBy,c=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(J.pickBy)({categories:c,order:a,orderby:o,per_page:r},(function(e){return!Object(J.isUndefined)(e)})))}}))(Wa),Za=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object($.createElement)(se.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object($.createElement)(se.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object($.createElement)(se.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object($.createElement)(se.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"})),Ka="core/latest-posts",$a={title:Object(Z.__)("Latest Posts"),description:Object(Z.__)("Display a list of your most recent posts."),icon:Za,category:"widgets",keywords:[Object(Z.__)("recent posts")],supports:{align:!0,html:!1},edit:Ga},Ya=n(40),Qa=n.n(Ya),Ja=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).containerRef=Object($.createRef)(),e.formRef=Object($.createRef)(),e.widgetContentRef=Object($.createRef)(),e.triggerWidgetEvent=e.triggerWidgetEvent.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"componentDidMount",value:function(){this.triggerWidgetEvent("widget-added"),this.previousFormData=new window.FormData(this.formRef.current)}},{key:"shouldComponentUpdate",value:function(e){e.form!==this.props.form&&this.widgetContentRef.current&&(this.widgetContentRef.current.innerHTML=e.form,this.triggerWidgetEvent("widget-updated"),this.previousFormData=new window.FormData(this.formRef.current));return!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,r=t.idBase,a=t.widgetNumber,o=t.form;return Object($.createElement)("div",{className:"widget open",ref:this.containerRef},Object($.createElement)("div",{className:"widget-inside"},Object($.createElement)("form",{ref:this.formRef,method:"post",onBlur:function(){e.shouldTriggerInstanceUpdate()&&e.props.onInstanceChange(e.retrieveUpdatedInstance())}},Object($.createElement)("div",{ref:this.widgetContentRef,className:"widget-content",dangerouslySetInnerHTML:{__html:o}}),Object($.createElement)("input",{type:"hidden",name:"widget-id",className:"widget-id",value:n}),Object($.createElement)("input",{type:"hidden",name:"id_base",className:"id_base",value:r}),Object($.createElement)("input",{type:"hidden",name:"widget_number",className:"widget_number",value:a}),Object($.createElement)("input",{type:"hidden",name:"multi_number",className:"multi_number",value:""}),Object($.createElement)("input",{type:"hidden",name:"add_new",className:"add_new",value:""}))))}},{key:"shouldTriggerInstanceUpdate",value:function(){if(!this.formRef.current)return!1;if(!this.previousFormData)return!0;var e=new window.FormData(this.formRef.current),t=Array.from(e.keys()),n=Array.from(this.previousFormData.keys());if(t.length!==n.length)return!0;for(var r=0,a=t;r1?o[h]=p:o[h]=p[0]}}}catch(e){s=!0,u=e}finally{try{l||null==m.return||m.return()}finally{if(s)throw u}}return o}}}]),t}($.Component),Xa=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).state={form:null,idBase:null},e.instanceUpdating=null,e.onInstanceChange=e.onInstanceChange.bind(Object(ie.a)(e)),e.requestWidgetUpdater=e.requestWidgetUpdater.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.requestWidgetUpdater()}},{key:"componentDidUpdate",value:function(e){e.instance!==this.props.instance&&this.instanceUpdating!==this.props.instance&&this.requestWidgetUpdater(),this.instanceUpdating===this.props.instance&&(this.instanceUpdating=null)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.identifier,a=this.state,o=a.id,c=a.idBase,i=a.form;return r?i?Object($.createElement)("div",{className:"wp-block-legacy-widget__edit-container",style:{display:this.props.isVisible?"block":"none"}},Object($.createElement)(Ja,{ref:function(t){e.widgetEditDomManagerRef=t},onInstanceChange:this.onInstanceChange,widgetNumber:-1*n,id:o,idBase:c,form:i})):null:Object(Z.__)("Not a valid widget.")}},{key:"onInstanceChange",value:function(e){var t=this;this.requestWidgetUpdater(e,(function(e){t.instanceUpdating=e.instance,t.props.onInstanceChange(e.instance)}))}},{key:"requestWidgetUpdater",value:function(e,t){var n=this,r=this.props,a=r.identifier,o=r.instanceId,c=r.instance;a&&Fa()({path:"/wp/v2/widgets/".concat(a,"/"),data:{identifier:a,instance:c,id_to_use:-1*o,instance_changes:e},method:"POST"}).then((function(e){n.isStillMounted&&(n.setState({form:e.form,idBase:e.id_base,id:e.id}),t&&t(e))}))}}]),t}($.Component),eo=Object(ue.withInstanceId)(Xa);function to(e){var t,n=e.availableLegacyWidgets,r=e.currentWidget,a=e.hasPermissionsToManageWidgets,o=e.onChangeWidget,c=Object($.useMemo)((function(){return Object(J.pickBy)(n,(function(e){return!e.isHidden}))}),[n]);return a||(t=Object(Z.__)("You don't have permissions to use widgets on this site.")),Object(J.isEmpty)(c)&&(t=Object(Z.__)("There are no widgets available.")),t=Object($.createElement)(se.SelectControl,{label:Object(Z.__)("Select a legacy widget to display:"),value:r||"none",onChange:o,options:[{value:"none",label:"Select widget"}].concat(Object(J.map)(c,(function(e,t){return{value:t,label:e.name}})))}),Object($.createElement)(se.Placeholder,{icon:Object($.createElement)(W.BlockIcon,{icon:"admin-customizer"}),label:Object(Z.__)("Legacy Widget")},t)}var no=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).state={isPreview:!1},e.switchToEdit=e.switchToEdit.bind(Object(ie.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(ie.a)(e)),e.changeWidget=e.changeWidget.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.availableLegacyWidgets,a=t.hasPermissionsToManageWidgets,o=t.setAttributes,c=this.state.isPreview,i=n.identifier,l=n.isCallbackWidget,s=i&&r[i];if(!s)return Object($.createElement)(to,{availableLegacyWidgets:r,currentWidget:i,hasPermissionsToManageWidgets:a,onChangeWidget:function(e){return o({instance:{},identifier:e,isCallbackWidget:r[e].isCallbackWidget})}});var u=Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:s.name},s.description));return a?Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,!s.isHidden&&Object($.createElement)(se.IconButton,{onClick:this.changeWidget,label:Object(Z.__)("Change widget"),icon:"update"}),!l&&Object($.createElement)($.Fragment,null,Object($.createElement)(se.Button,{className:"components-tab-button ".concat(c?"":"is-active"),onClick:this.switchToEdit},Object($.createElement)("span",null,Object(Z.__)("Edit"))),Object($.createElement)(se.Button,{className:"components-tab-button ".concat(c?"is-active":""),onClick:this.switchToPreview},Object($.createElement)("span",null,Object(Z.__)("Preview")))))),u,!l&&Object($.createElement)(eo,{isVisible:!c,identifier:n.identifier,instance:n.instance,onInstanceChange:function(t){e.props.setAttributes({instance:t})}}),(c||l)&&this.renderWidgetPreview()):Object($.createElement)($.Fragment,null,u,this.renderWidgetPreview())}},{key:"changeWidget",value:function(){this.switchToEdit(),this.props.setAttributes({instance:{},identifier:void 0})}},{key:"switchToEdit",value:function(){this.setState({isPreview:!1})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"renderWidgetPreview",value:function(){var e=this.props.attributes;return Object($.createElement)(tn.a,{className:"wp-block-legacy-widget__preview",block:"core/legacy-widget",attributes:e})}}]),t}($.Component),ro=(Object(be.withSelect)((function(e){var t=e("core/block-editor").getSettings(),n=t.availableLegacyWidgets;return{hasPermissionsToManageWidgets:t.hasPermissionsToManageWidgets,availableLegacyWidgets:n}}))(no),Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),Object(Z.__)("Legacy Widget (Experimental)"),Object(Z.__)("Display a legacy widget."),function(e){var t=e.setAttributes,n=e.reversed,r=e.start;return Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Ordered List Settings")},Object($.createElement)(se.TextControl,{label:Object(Z.__)("Start Value"),type:"number",onChange:function(e){var n=parseInt(e,10);t({start:isNaN(n)?void 0:n})},value:Number.isInteger(r)?r.toString(10):"",step:"1"}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Reverse List Numbering"),checked:n||!1,onChange:function(e){t({reversed:e||void 0})}})))});var ao=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));var oo=Object(K.a)({},Object(G.getPhrasingContentSchema)(),{ul:{},ol:{attributes:["type"]}});["ul","ol"].forEach((function(e){oo[e].children={li:{children:oo}}}));var co={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/list",{values:Object(Bt.toHTMLString)({value:Object(Bt.join)(e.map((function(t){var n=t.content,r=Object(Bt.create)({html:n});return e.length>1?r:Object(Bt.replace)(r,/\n/g,Bt.__UNSTABLE_LINE_SEPARATOR)})),Bt.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(G.createBlock)("core/list",{values:Object(Bt.toHTMLString)({value:Object(Bt.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:{ol:oo.ol,ul:oo.ul},transform:function(e){return Object(G.createBlock)("core/list",Object(K.a)({},Object(G.getBlockAttributes)("core/list",e.outerHTML),{ordered:"OL"===e.nodeName}))}}].concat(Object(U.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(G.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(U.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(G.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(Bt.split)(Object(Bt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),Bt.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(G.createBlock)("core/paragraph",{content:Object(Bt.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(G.createBlock)("core/quote",{value:Object(Bt.toHTMLString)({value:Object(Bt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]},io={name:"core/list",category:"common",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:""},start:{type:"number"},reversed:{type:"boolean"}}},lo=io.name,so={title:Object(Z.__)("List"),description:Object(Z.__)("Create a bulleted or numbered list."),icon:ao,keywords:[Object(Z.__)("bullet list"),Object(Z.__)("ordered list"),Object(Z.__)("numbered list")],supports:{className:!1},example:{attributes:{values:"
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:co,merge:function(e,t){var n=t.values;return n&&"
  • "!==n?Object(K.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,a=e.onReplace,o=e.className,c=t.ordered,i=t.values,l=t.reversed,s=t.start,u=c?"ol":"ul";return Object($.createElement)($.Fragment,null,Object($.createElement)(W.RichText,{identifier:"values",multiline:"li",tagName:u,onChange:function(e){return n({values:e})},value:i,wrapperClassName:"block-library-list",className:o,placeholder:Object(Z.__)("Write list…"),onMerge:r,onSplit:function(e){return Object(G.createBlock)(lo,{ordered:c,values:e})},__unstableOnSplitMiddle:function(){return Object(G.createBlock)("core/paragraph")},onReplace:a,onRemove:function(){return a([])},start:s,reversed:l},(function(e){var t=e.value,r=e.onChange;if(void 0!==t.start)return Object($.createElement)($.Fragment,null,Object($.createElement)(W.RichTextShortcut,{type:"primary",character:"[",onUse:function(){r(Object(Bt.__unstableOutdentListItems)(t))}}),Object($.createElement)(W.RichTextShortcut,{type:"primary",character:"]",onUse:function(){r(Object(Bt.__unstableIndentListItems)(t,{type:u}))}}),Object($.createElement)(W.RichTextShortcut,{type:"primary",character:"m",onUse:function(){r(Object(Bt.__unstableIndentListItems)(t,{type:u}))}}),Object($.createElement)(W.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){r(Object(Bt.__unstableOutdentListItems)(t))}}),Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:[{icon:"editor-ul",title:Object(Z.__)("Convert to unordered list"),isActive:Object(Bt.__unstableIsActiveListType)(t,"ul",u),onClick:function(){r(Object(Bt.__unstableChangeListType)(t,{type:"ul"})),Object(Bt.__unstableIsListRootSelected)(t)&&n({ordered:!1})}},{icon:"editor-ol",title:Object(Z.__)("Convert to ordered list"),isActive:Object(Bt.__unstableIsActiveListType)(t,"ol",u),onClick:function(){r(Object(Bt.__unstableChangeListType)(t,{type:"ol"})),Object(Bt.__unstableIsListRootSelected)(t)&&n({ordered:!0})}},{icon:"editor-outdent",title:Object(Z.__)("Outdent list item"),shortcut:Object(Z._x)("Backspace","keyboard key"),onClick:function(){r(Object(Bt.__unstableOutdentListItems)(t))}},{icon:"editor-indent",title:Object(Z.__)("Indent list item"),shortcut:Object(Z._x)("Space","keyboard key"),onClick:function(){r(Object(Bt.__unstableIndentListItems)(t,{type:u}))}}]})))})),c&&Object($.createElement)(ro,{setAttributes:n,ordered:c,reversed:l,start:s}))},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,a=t.reversed,o=t.start,c=n?"ol":"ul";return Object($.createElement)(W.RichText.Content,{tagName:c,value:r,reversed:a,start:o,multiline:"li"})}};var uo=Object(be.withDispatch)((function(e,t){var n=t.clientId,r=t.attributes,a=e("core/block-editor").replaceBlock;return{convertToHTML:function(){a(n,Object(G.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}}))((function(e){var t,n=e.attributes,r=e.convertToHTML,a=n.originalName,o=n.originalUndelimitedContent,c=!!o,i=Object(G.getBlockType)("core/html"),l=[];return c&&i?(t=Object(Z.sprintf)(Object(Z.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),a),l.push(Object($.createElement)(se.Button,{key:"convert",onClick:r,isLarge:!0,isPrimary:!0},Object(Z.__)("Keep as HTML")))):t=Object(Z.sprintf)(Object(Z.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),a),Object($.createElement)($.Fragment,null,Object($.createElement)(W.Warning,{actions:l},t),Object($.createElement)($.RawHTML,null,o))}));var bo={name:"core/missing",category:"common",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}}},mo=bo.name,ho={name:mo,title:Object(Z.__)("Unrecognized Block"),description:Object(Z.__)("Your site doesn’t include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},edit:uo,save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.originalContent)}},po=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(ie.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(ie.a)(e)),e.state={defaultText:Object(Z.__)("Read more")},e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===we.ENTER&&n([Object(G.createBlock)(Object(G.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(Z.__)("The excerpt is hidden."):Object(Z.__)("The excerpt is visible.")}},{key:"render",value:function(){var e=this.props.attributes,t=e.customText,n=e.noTeaser,r=this.props.setAttributes,a=this.state.defaultText,o=void 0!==t?t:a,c=o.length+1;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,null,Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return r({noTeaser:!n})},help:this.getHideExcerptHelp}))),Object($.createElement)("div",{className:"wp-block-more"},Object($.createElement)("input",{type:"text",value:o,size:c,onChange:this.onChangeInput,onKeyDown:this.onKeyDown})))}}]),t}($.Component),go=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"})));var fo={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,n=t.customText,r=t.noTeaser,a={};return n&&(a.customText=n),""===r&&(a.noTeaser=!0),Object(G.createBlock)("core/more",a)}}]},vo={name:"core/more",category:"layout",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}}},Oo=vo.name,jo={title:Object(Z._x)("More","block name"),description:Object(Z.__)("Content before this block will be shown in the excerpt on your archives page."),icon:go,supports:{customClassName:!1,className:!1,html:!1,multiple:!1},example:{},transforms:fo,edit:po,save:function(e){var t=e.attributes,n=t.customText,r=t.noTeaser,a=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",o=r?"\x3c!--noteaser--\x3e":"";return Object($.createElement)($.RawHTML,null,Object(J.compact)([a,o]).join("\n"))}};var yo=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M9 11h6v2H9zM2 11h5v2H2zM17 11h5v2h-5zM6 4h7v5h7V8l-6-6H6a2 2 0 0 0-2 2v5h2zM18 20H6v-5H4v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5h-2z"}));var _o={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(G.createBlock)("core/nextpage",{})}}]},ko={name:"core/nextpage",category:"layout"},Co=ko.name,wo={title:Object(Z.__)("Page Break"),description:Object(Z.__)("Separate your content into a multi-page experience."),icon:yo,keywords:[Object(Z.__)("next page"),Object(Z.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},example:{},transforms:_o,edit:function(){return Object($.createElement)("div",{className:"wp-block-nextpage"},Object($.createElement)("span",null,Object(Z.__)("Page break")))},save:function(){return Object($.createElement)($.RawHTML,null,"\x3c!--nextpage--\x3e")}};var Eo=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"}),Object($.createElement)(se.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object($.createElement)(se.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"10",y:"10",width:"8",height:"2"}));var xo={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(G.createBlock)("core/preformatted",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:{pre:{children:Object(G.getPhrasingContentSchema)()}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/paragraph",e)}}]},So={name:"core/preformatted",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""}}},To=So.name,No={title:Object(Z.__)("Preformatted"),description:Object(Z.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Eo,example:{attributes:{content:Object(Z.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)")+"\n"+Object(Z.__)("Window, very small in the distance, illuminated.")+"\n"+Object(Z.__)("All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:xo,edit:function(e){var t=e.attributes,n=e.mergeBlocks,r=e.setAttributes,a=e.className,o=t.content;return Object($.createElement)(W.RichText,{tagName:"pre",value:o.replace(/\n/g,"
    "),onChange:function(e){r({content:e.replace(/
    /g,"\n")})},placeholder:Object(Z.__)("Write preformatted text…"),wrapperClassName:a,onMerge:n})},save:function(e){var t=e.attributes.content;return Object($.createElement)(W.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}},Mo="is-style-".concat("solid-color"),Bo={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},Ro=[{attributes:Bo,save:function(e){var t,n,r=e.attributes,a=r.mainColor,o=r.customMainColor,c=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(J.includes)(u,Mo))(t=Object(W.getColorClassName)("background-color",a))||(n={backgroundColor:o});else if(o)n={borderColor:o};else if(a){var b=Object(J.get)(Object(be.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(W.getColorObjectByAttributeValues)(b,a).color}}var m=Object(W.getColorClassName)("color",c),d=c||i?Q()("has-text-color",Object(q.a)({},m,m)):void 0,h=m?void 0:{color:i};return Object($.createElement)("figure",{className:t,style:n},Object($.createElement)("blockquote",{className:d,style:h},Object($.createElement)(W.RichText.Content,{value:l,multiline:!0}),!W.RichText.isEmpty(s)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:s})))}},{attributes:Object(K.a)({},Bo),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object($.createElement)("blockquote",null,Object($.createElement)(W.RichText.Content,{value:n,multiline:!0}),!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Object(K.a)({},Bo,{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,a=t.align;return Object($.createElement)("blockquote",{className:"align".concat(a)},Object($.createElement)(W.RichText.Content,{value:n,multiline:!0}),!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"footer",value:r}))}}],Ao=function(e){function t(e){var n;return Object(re.a)(this,t),(n=Object(oe.a)(this,Object(ce.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(ie.a)(n)),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(ie.a)(n)),n}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,a=t.setTextColor,o=t.setMainColor,c=t.className,i=Object(J.includes)(c,Mo),l=!r.color||this.wasTextColorAutomaticallyComputed,s=i&&l&&e;o(e),s&&(this.wasTextColorAutomaticallyComputed=!0,a(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.mainColor,r=e.textColor,a=e.setAttributes,o=e.isSelected,c=e.className,i=t.value,l=t.citation,s=Object(J.includes)(c,Mo),u=s?{backgroundColor:n.color}:{borderColor:n.color},b=Q()(c,Object(q.a)({"has-background":s&&n.color},n.class,s&&n.class)),m={color:r.color},d=r.color&&Q()("has-text-color",Object(q.a)({},r.class,r.class));return Object($.createElement)($.Fragment,null,Object($.createElement)("figure",{style:u,className:b},Object($.createElement)("blockquote",{style:m,className:d},Object($.createElement)(W.RichText,{multiline:!0,value:i,onChange:function(e){return a({value:e})},placeholder:Object(Z.__)("Write quote…"),wrapperClassName:"block-library-pullquote__content"}),(!W.RichText.isEmpty(l)||o)&&Object($.createElement)(W.RichText,{value:l,placeholder:Object(Z.__)("Write citation…"),onChange:function(e){return a({citation:e})},className:"wp-block-pullquote__citation"}))),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(Z.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(Z.__)("Main Color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(Z.__)("Text Color")}]},s&&Object($.createElement)(W.ContrastChecker,Object(ne.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}($.Component),Lo=Object(W.withColors)({mainColor:"background-color",textColor:"color"})(Ao),Io=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object($.createElement)(se.Path,{d:"m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"}),Object($.createElement)(se.Polygon,{points:"21 4 2 4 2 6 21 6"}));var zo={name:"core/pullquote",category:"formatting",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},Po=zo.name,Ho={title:Object(Z.__)("Pullquote"),description:Object(Z.__)("Give special visual emphasis to a quote from your text."),icon:Io,example:{attributes:{value:"

    "+Object(Z.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:"Matt Mullenweg"}},styles:[{name:"default",label:Object(Z._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Z.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:Lo,save:function(e){var t,n,r=e.attributes,a=r.mainColor,o=r.customMainColor,c=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(J.includes)(u,Mo)){var b=Object(W.getColorClassName)("background-color",a);t=Q()(Object(q.a)({"has-background":b||o},b,b)),n={backgroundColor:b?void 0:o}}else if(o)n={borderColor:o};else if(a){var m=Object(J.get)(Object(be.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(W.getColorObjectByAttributeValues)(m,a).color}}var d=Object(W.getColorClassName)("color",c),h=(c||i)&&Q()("has-text-color",Object(q.a)({},d,d)),p=d?void 0:{color:i};return Object($.createElement)("figure",{className:t,style:n},Object($.createElement)("blockquote",{className:h,style:p},Object($.createElement)(W.RichText.Content,{value:l,multiline:!0}),!W.RichText.isEmpty(s)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:s})))},deprecated:Ro},Vo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).titleField=Object($.createRef)(),e.editButton=Object($.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(ie.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(ie.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===we.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,n=e.title,r=e.isSaving,a=e.isEditDisabled,o=e.onEdit,c=e.instanceId;return Object($.createElement)($.Fragment,null,!t&&!r&&Object($.createElement)("div",{className:"reusable-block-edit-panel"},Object($.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object($.createElement)(se.Button,{ref:this.editButton,isLarge:!0,className:"reusable-block-edit-panel__button",disabled:a,onClick:o},Object(Z.__)("Edit"))),(t||r)&&Object($.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object($.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(c),className:"reusable-block-edit-panel__label"},Object(Z.__)("Name:")),Object($.createElement)("input",{ref:this.titleField,type:"text",disabled:r,className:"reusable-block-edit-panel__title",value:n,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(c)}),Object($.createElement)(se.Button,{type:"submit",isLarge:!0,isBusy:r,disabled:!n||r,className:"reusable-block-edit-panel__button"},Object(Z.__)("Save"))))}}]),t}($.Component),Do=Object(ue.withInstanceId)(Vo);var Fo=function(e){var t=e.title,n=Object(Z.sprintf)(Object(Z.__)("Reusable Block: %s"),t);return Object($.createElement)(se.Tooltip,{text:n},Object($.createElement)("span",{className:"reusable-block-indicator"},Object($.createElement)(se.Dashicon,{icon:"controls-repeat"})))},Uo=function(e){function t(e){var n,r=e.reusableBlock;return Object(re.a)(this,t),(n=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(ie.a)(n)),n.stopEditing=n.stopEditing.bind(Object(ie.a)(n)),n.setBlocks=n.setBlocks.bind(Object(ie.a)(n)),n.setTitle=n.setTitle.bind(Object(ie.a)(n)),n.save=n.save.bind(Object(ie.a)(n)),n.state=r?{isEditing:r.isTemporary,title:r.title,blocks:Object(G.parse)(r.content)}:{isEditing:!1,title:null,blocks:[]},n}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object(G.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object(G.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,n=e.onSave,r=this.state,a=r.blocks;t({title:r.title,content:Object(G.serialize)(a)}),n(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,r=e.isFetching,a=e.isSaving,o=e.canUpdateBlock,c=e.settings,i=this.state,l=i.isEditing,s=i.title,u=i.blocks;if(!n&&r)return Object($.createElement)(se.Placeholder,null,Object($.createElement)(se.Spinner,null));if(!n)return Object($.createElement)(se.Placeholder,null,Object(Z.__)("Block has been deleted or is unavailable."));var b=Object($.createElement)(W.BlockEditorProvider,{settings:c,value:u,onChange:this.setBlocks,onInput:this.setBlocks},Object($.createElement)(W.WritingFlow,null,Object($.createElement)(W.BlockList,null)));return l||(b=Object($.createElement)(se.Disabled,null,b)),Object($.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||l)&&Object($.createElement)(Do,{isEditing:l,title:null!==s?s:n.title,isSaving:a&&!n.isTemporary,isEditDisabled:!o,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),!t&&!l&&Object($.createElement)(Fo,{title:n.title}),b)}}]),t}($.Component),qo=Object(ue.compose)([Object(be.withSelect)((function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,a=n.__experimentalIsFetchingReusableBlock,o=n.__experimentalIsSavingReusableBlock,c=e("core").canUser,i=e("core/block-editor"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=r(u);return{reusableBlock:b,isFetching:a(u),isSaving:o(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!c("update","blocks",u),settings:s()}})),Object(be.withDispatch)((function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,a=n.__experimentalUpdateReusableBlock,o=n.__experimentalSaveReusableBlock,c=t.attributes.ref;return{fetchReusableBlock:Object(J.partial)(r,c),onChange:Object(J.partial)(a,c),onSave:Object(J.partial)(o,c)}}))])(Uo),Wo="core/block",Go={title:Object(Z.__)("Reusable Block"),category:"reusable",description:Object(Z.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used."),supports:{customClassName:!1,html:!1,inserter:!1},edit:qo},Zo=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(ie.a)(e)),e.onSubmitURL=e.onSubmitURL.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(q.a)({},e,!n))}}},{key:"onSubmitURL",value:function(e){e.preventDefault(),this.props.attributes.feedURL&&this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.blockLayout,r=t.columns,a=t.displayAuthor,o=t.displayExcerpt,c=t.displayDate,i=t.excerptLength,l=t.feedURL,s=t.itemsToShow,u=this.props.setAttributes;if(this.state.editing)return Object($.createElement)(se.Placeholder,{icon:"rss",label:"RSS"},Object($.createElement)("form",{onSubmit:this.onSubmitURL},Object($.createElement)(se.TextControl,{placeholder:Object(Z.__)("Enter URL here…"),value:l,onChange:function(e){return u({feedURL:e})},className:"components-placeholder__input"}),Object($.createElement)(se.Button,{isLarge:!0,type:"submit"},Object(Z.__)("Use URL"))));var b=[{icon:"edit",title:Object(Z.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(Z.__)("List view"),onClick:function(){return u({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(Z.__)("Grid view"),onClick:function(){return u({blockLayout:"grid"})},isActive:"grid"===n}];return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,{controls:b})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("RSS Settings")},Object($.createElement)(se.RangeControl,{label:Object(Z.__)("Number of items"),value:s,onChange:function(e){return u({itemsToShow:e})},min:1,max:10,required:!0}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Display author"),checked:a,onChange:this.toggleAttribute("displayAuthor")}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Display date"),checked:c,onChange:this.toggleAttribute("displayDate")}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Display excerpt"),checked:o,onChange:this.toggleAttribute("displayExcerpt")}),o&&Object($.createElement)(se.RangeControl,{label:Object(Z.__)("Max number of words in excerpt"),value:i,onChange:function(e){return u({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object($.createElement)(se.RangeControl,{label:Object(Z.__)("Columns"),value:r,onChange:function(e){return u({columns:e})},min:2,max:6,required:!0}))),Object($.createElement)(se.Disabled,null,Object($.createElement)(tn.a,{block:"core/rss",attributes:this.props.attributes})))}}]),t}($.Component),Ko="core/rss",$o={title:Object(Z.__)("RSS"),description:Object(Z.__)("Display entries from any RSS or Atom feed."),icon:"rss",category:"widgets",keywords:[Object(Z.__)("atom"),Object(Z.__)("feed")],supports:{align:!0,html:!1},example:{attributes:{feedURL:"https://wordpress.org"}},edit:Zo};var Yo="core/search",Qo={title:Object(Z.__)("Search"),description:Object(Z.__)("Help visitors find your content."),icon:"search",category:"widgets",keywords:[Object(Z.__)("find")],supports:{align:!0},example:{},edit:function(e){var t=e.className,n=e.attributes,r=e.setAttributes,a=n.label,o=n.placeholder,c=n.buttonText;return Object($.createElement)("div",{className:t},Object($.createElement)(W.RichText,{wrapperClassName:"wp-block-search__label","aria-label":Object(Z.__)("Label text"),placeholder:Object(Z.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return r({label:e})}}),Object($.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Z.__)("Optional placeholder text"),placeholder:o?void 0:Object(Z.__)("Optional placeholder…"),value:o,onChange:function(e){return r({placeholder:e.target.value})}}),Object($.createElement)(W.RichText,{wrapperClassName:"wp-block-search__button",className:"wp-block-search__button-rich-text","aria-label":Object(Z.__)("Button text"),placeholder:Object(Z.__)("Add button text…"),withoutInteractiveFormatting:!0,value:c,onChange:function(e){return r({buttonText:e})}}))}},Jo=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,a=Object(W.getColorClassName)("background-color",n),o=Q()(a,{"has-background":n||r}),c={backgroundColor:a?void 0:r};return Object($.createElement)("div",{className:o,style:c},Object($.createElement)(W.InnerBlocks.Content,null))}}];var Xo=Object(ue.compose)([Object(W.withColors)("backgroundColor"),Object(be.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlock)(n);return{hasInnerBlocks:!(!r||!r.innerBlocks.length)}}))])((function(e){var t=e.className,n=e.setBackgroundColor,r=e.backgroundColor,a=e.hasInnerBlocks,o={backgroundColor:r.color},c=Q()(t,r.class,{"has-background":!!r.color});return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(Z.__)("Color Settings"),colorSettings:[{value:r.color,onChange:n,label:Object(Z.__)("Background Color")}]})),Object($.createElement)("div",{className:c,style:o},Object($.createElement)("div",{className:"wp-block-group__inner-container"},Object($.createElement)(W.InnerBlocks,{renderAppender:!a&&W.InnerBlocks.ButtonBlockAppender}))))})),ec=Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z"}),Object($.createElement)(se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z"}));var tc={name:"core/group",category:"layout",attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}}},nc=tc.name,rc={title:Object(Z.__)("Group"),icon:ec,description:Object(Z.__)("A block that groups other blocks."),keywords:[Object(Z.__)("container"),Object(Z.__)("wrapper"),Object(Z.__)("row"),Object(Z.__)("section")],example:{attributes:{customBackgroundColor:"#ffffff"},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(Z.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(Z.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(Z.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(Z.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(Z.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(Z.__)("Six.")}}]},supports:{align:["wide","full"],anchor:!0,html:!1},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],n=e.reduce((function(e,n){var r=n.attributes.align;return t.indexOf(r)>t.indexOf(e)?r:e}),void 0),r=e.map((function(e){return Object(G.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(G.createBlock)("core/group",{align:n},r)}}}]},edit:Xo,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,a=Object(W.getColorClassName)("background-color",n),o=Q()(a,{"has-background":n||r}),c={backgroundColor:a?void 0:r};return Object($.createElement)("div",{className:o,style:c},Object($.createElement)("div",{className:"wp-block-group__inner-container"},Object($.createElement)(W.InnerBlocks.Content,null)))},deprecated:Jo};var ac=Object(W.withColors)("color",{textColor:"color"})((function(e){var t=e.color,n=e.setColor,r=e.className;return Object($.createElement)($.Fragment,null,Object($.createElement)(se.HorizontalRule,{className:Q()(r,Object(q.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(Z.__)("Color Settings"),colorSettings:[{value:t.color,onChange:n,label:Object(Z.__)("Color")}]})))})),oc=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.Path,{d:"M19 13H5v-2h14v2z"}));var cc={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(G.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},ic={name:"core/separator",category:"layout",attributes:{color:{type:"string"},customColor:{type:"string"}}},lc=ic.name,sc={title:Object(Z.__)("Separator"),description:Object(Z.__)("Create a break between ideas or sections with a horizontal separator."),icon:oc,keywords:[Object(Z.__)("horizontal-line"),"hr",Object(Z.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Z.__)("Default"),isDefault:!0},{name:"wide",label:Object(Z.__)("Wide Line")},{name:"dots",label:Object(Z.__)("Dots")}],transforms:cc,edit:ac,save:function(e){var t,n=e.attributes,r=n.color,a=n.customColor,o=Object(W.getColorClassName)("background-color",r),c=Object(W.getColorClassName)("color",r),i=Q()((t={"has-text-color has-background":r||a},Object(q.a)(t,o,o),Object(q.a)(t,c,c),t)),l={backgroundColor:o?void 0:a,color:c?void 0:a};return Object($.createElement)("hr",{className:i,style:l})}},uc=Object(ue.withInstanceId)((function(e){var t=e.attributes,n=e.setAttributes,r=e.instanceId,a="blocks-shortcode-input-".concat(r);return Object($.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object($.createElement)("label",{htmlFor:a,className:"components-placeholder__label"},Object($.createElement)(se.Dashicon,{icon:"shortcode"}),Object(Z.__)("Shortcode")),Object($.createElement)(W.PlainText,{className:"input-control",id:a,value:t.text,placeholder:Object(Z.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))})),bc=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"}));var mc=n(66),dc={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(mc.removep)(Object(mc.autop)(n))}}},priority:20}]},hc="core/shortcode",pc={title:Object(Z.__)("Shortcode"),description:Object(Z.__)("Insert additional custom elements with a WordPress shortcode."),icon:bc,category:"widgets",transforms:dc,supports:{customClassName:!1,className:!1,html:!1},edit:uc,save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.text)}},gc=Object(ue.compose)([Object(be.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),ue.withInstanceId])((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,a=e.instanceId,o=e.onResizeStart,c=e.onResizeStop,i=t.height,l="block-spacer-height-input-".concat(a),s=Object($.useState)(i),u=Object(ke.a)(s,2),b=u[0],m=u[1];return Object($.createElement)($.Fragment,null,Object($.createElement)(se.ResizableBox,{className:Q()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:i},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:o,onResizeStop:function(e,t,n,a){c();var o=parseInt(i+a.height,10);r({height:o}),m(o)}}),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Spacer Settings")},Object($.createElement)(se.BaseControl,{label:Object(Z.__)("Height in pixels"),id:l},Object($.createElement)("input",{type:"number",id:l,onChange:function(e){var t=parseInt(e.target.value,10);m(t),isNaN(t)?(m(""),t=100):t<20&&(t=20),r({height:t})},value:b,min:"20",step:"10"})))))})),fc=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.G,null,Object($.createElement)(se.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));var vc={name:"core/spacer",category:"layout",attributes:{height:{type:"number",default:100}}},Oc=vc.name,jc={title:Object(Z.__)("Spacer"),description:Object(Z.__)("Add white space between blocks and customize its height."),icon:fc,edit:gc,save:function(e){var t=e.attributes;return Object($.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},yc=n(37),_c=n.n(yc);var kc=Object($.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(se.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"}));var Cc={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/paragraph",e)}}]},wc={name:"core/subhead",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}}},Ec=wc.name,xc={title:Object(Z.__)("Subheading (deprecated)"),description:Object(Z.__)("This block is deprecated. Please use the Paragraph block instead."),icon:kc,supports:{inserter:!1,multiple:!1},transforms:Cc,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,a=t.align,o=t.content,c=t.placeholder;return _c()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.AlignmentToolbar,{value:a,onChange:function(e){n({align:e})}})),Object($.createElement)(W.RichText,{tagName:"p",value:o,onChange:function(e){n({content:e})},style:{textAlign:a},className:r,placeholder:c||Object(Z.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,r=t.content;return Object($.createElement)(W.RichText.Content,{tagName:"p",style:{textAlign:n},value:r})}},Sc=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,a=t.body,o=t.foot,c=t.backgroundColor;if(!r.length&&!a.length&&!o.length)return null;var i=Object(W.getColorClassName)("background-color",c),l=Q()(i,{"has-fixed-layout":n,"has-background":!!i}),s=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object($.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object($.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,a=e.scope;return Object($.createElement)(W.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?a:void 0})})))})))};return Object($.createElement)("table",{className:l},Object($.createElement)(s,{type:"head",rows:r}),Object($.createElement)(s,{type:"body",rows:a}),Object($.createElement)(s,{type:"foot",rows:o}))}}],Tc=["align"];function Nc(e,t,n){if(!t)return e;var r=Object(J.pick)(e,["head","body","foot"]),a=t.sectionName,o=t.rowIndex;return Object(J.mapValues)(r,(function(e,r){return a&&a!==r?e:e.map((function(e,a){return o&&o!==a?e:{cells:e.cells.map((function(e,o){return Mc({sectionName:r,columnIndex:o,rowIndex:a},t)?n(e):e}))}}))}))}function Mc(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}function Bc(e,t){var n=t.sectionName,r=t.rowIndex,a=t.columnCount,o=function(e){return Lc(e.head)?Lc(e.body)?Lc(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),c=void 0===a?Object(J.get)(o,["cells","length"]):a;return c?Object(q.a)({},n,[].concat(Object(U.a)(e[n].slice(0,r)),[{cells:Object(J.times)(c,(function(e){var t=Object(J.get)(o,["cells",e],{}),r=Object(J.pick)(t,Tc);return Object(K.a)({},r,{content:"",tag:"head"===n?"th":"td"})}))}],Object(U.a)(e[n].slice(r)))):e}function Rc(e,t){var n=t.columnIndex,r=Object(J.pick)(e,["head","body","foot"]);return Object(J.mapValues)(r,(function(e,t){return Lc(e)?e:e.map((function(e){return Ic(e)||e.cells.length0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,a=n.setAttributes,o=t.columnIndex;this.setState({selectedCell:null}),a(Rc(r,{columnIndex:o+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,a=e.sectionName,o=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.columnIndex,r=Object(J.pick)(e,["head","body","foot"]);return Object(J.mapValues)(r,(function(e){return Lc(e)?e:e.map((function(e){return{cells:e.cells.length>=n?e.cells.filter((function(e,t){return t!==n})):e.cells}})).filter((function(e){return e.cells.length}))}))}(n,{sectionName:a,columnIndex:o}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:Object(K.a)({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(Z.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(Z.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(Z.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(Z.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(Z.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(Z.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.name,r=e.rows;if(Lc(r))return null;var a="t".concat(n),o=this.state.selectedCell;return Object($.createElement)(a,null,r.map((function(e,r){var a=e.cells;return Object($.createElement)("tr",{key:r},a.map((function(e,a){var c=e.content,i=e.tag,l=e.scope,s=e.align,u={sectionName:n,rowIndex:r,columnIndex:a},b=Mc(u,o),m=Q()(Object(q.a)({"is-selected":b},"has-text-align-".concat(s),s));return Object($.createElement)(i,{key:a,className:m,scope:"th"===i?l:void 0,onClick:function(e){var t=e&&e.target&&e.target.querySelector(".".concat("wp-block-table__cell-content"));t&&t.focus()}},Object($.createElement)(W.RichText,{className:"wp-block-table__cell-content",value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(u)}))})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,a=t.backgroundColor,o=t.setBackgroundColor,c=this.state,i=c.initialRowCount,l=c.initialColumnCount,s=n.hasFixedLayout,u=n.head,b=n.body,m=n.foot,d=Lc(u)&&Lc(b)&&Lc(m),h=this.renderSection;if(d)return Object($.createElement)(se.Placeholder,{label:Object(Z.__)("Table"),icon:Object($.createElement)(W.BlockIcon,{icon:zc,showColors:!0}),instructions:Object(Z.__)("Insert a table for sharing data."),isColumnLayout:!0},Object($.createElement)("form",{className:"wp-block-table__placeholder-form",onSubmit:this.onCreateTable},Object($.createElement)(se.TextControl,{type:"number",label:Object(Z.__)("Column Count"),value:l,onChange:this.onChangeInitialColumnCount,min:"1",className:"wp-block-table__placeholder-input"}),Object($.createElement)(se.TextControl,{type:"number",label:Object(Z.__)("Row Count"),value:i,onChange:this.onChangeInitialRowCount,min:"1",className:"wp-block-table__placeholder-input"}),Object($.createElement)(se.Button,{className:"wp-block-table__placeholder-button",isDefault:!0,type:"submit"},Object(Z.__)("Create Table"))));var p=Q()(a.class,{"has-fixed-layout":s,"has-background":!!a.color});return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.DropdownMenu,{hasArrowIndicator:!0,icon:"editor-table",label:Object(Z.__)("Edit table"),controls:this.getTableControls()})),Object($.createElement)(W.AlignmentToolbar,{label:Object(Z.__)("Change column alignment"),alignmentControls:Hc,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Table Settings"),className:"blocks-table-settings"},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Fixed width table cells"),checked:!!s,onChange:this.onChangeFixedLayout}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Header section"),checked:!(!u||!u.length),onChange:this.onToggleHeaderSection}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Footer section"),checked:!(!m||!m.length),onChange:this.onToggleFooterSection})),Object($.createElement)(W.PanelColorSettings,{title:Object(Z.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:a.color,onChange:o,label:Object(Z.__)("Background Color"),disableCustomColors:!0,colors:Pc}]})),Object($.createElement)("figure",{className:r},Object($.createElement)("table",{className:p},Object($.createElement)(h,{name:"head",rows:u}),Object($.createElement)(h,{name:"body",rows:b}),Object($.createElement)(h,{name:"foot",rows:m}))))}}]),t}($.Component),Fc=Vc("backgroundColor")(Dc);var Uc={tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:Object(G.getPhrasingContentSchema)(),attributes:["scope"]},td:{allowEmpty:!0,children:Object(G.getPhrasingContentSchema)()}}}},qc={from:[{type:"raw",selector:"table",schema:{table:{children:{thead:{allowEmpty:!0,children:Uc},tfoot:{allowEmpty:!0,children:Uc},tbody:{allowEmpty:!0,children:Uc}}}}}]},Wc={name:"core/table",category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}}},Gc=Wc.name,Zc={title:Object(Z.__)("Table"),description:Object(Z.__)("Insert a table — perfect for sharing charts and data."),icon:zc,example:{attributes:{head:[{cells:[{content:Object(Z.__)("Version"),tag:"th"},{content:Object(Z.__)("Jazz Musician"),tag:"th"},{content:Object(Z.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Z.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Z.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Z.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Z._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Z.__)("Stripes")}],supports:{align:!0},transforms:qc,edit:Fc,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,a=t.body,o=t.foot,c=t.backgroundColor;if(!r.length&&!a.length&&!o.length)return null;var i=Object(W.getColorClassName)("background-color",c),l=Q()(i,{"has-fixed-layout":n,"has-background":!!i}),s=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object($.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object($.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,a=e.scope,o=e.align,c=Q()(Object(q.a)({},"has-text-align-".concat(o),o));return Object($.createElement)(W.RichText.Content,{className:c||void 0,"data-align":o,tagName:r,value:n,key:t,scope:"th"===r?a:void 0})})))})))};return Object($.createElement)("figure",null,Object($.createElement)("table",{className:l},Object($.createElement)(s,{type:"head",rows:r}),Object($.createElement)(s,{type:"body",rows:a}),Object($.createElement)(s,{type:"foot",rows:o})))},deprecated:Sc};var Kc={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,a=e.width;return Object(G.createBlock)("core/columns",{align:"wide"===a||"full"===a?a:void 0,className:t,columns:n},r.map((function(e){var t=e.children;return Object(G.createBlock)("core/column",{},[Object(G.createBlock)("core/paragraph",{content:t})])})))}}]},$c={name:"core/text-columns",icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}}},Yc=$c.name,Qc={supports:{inserter:!1},title:Object(Z.__)("Text Columns (deprecated)"),description:Object(Z.__)("This block is deprecated. Please use the Columns block instead."),transforms:Kc,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,a=t.width,o=t.content,c=t.columns;return _c()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockAlignmentToolbar,{value:a,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,null,Object($.createElement)(se.RangeControl,{label:Object(Z.__)("Columns"),value:c,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object($.createElement)("div",{className:"".concat(r," align").concat(a," columns-").concat(c)},Object(J.times)(c,(function(e){return Object($.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object($.createElement)(W.RichText,{tagName:"p",value:Object(J.get)(o,[e,"children"]),onChange:function(t){n({content:[].concat(Object(U.a)(o.slice(0,e)),[{children:t}],Object(U.a)(o.slice(e+1)))})},placeholder:Object(Z.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,a=t.columns;return Object($.createElement)("div",{className:"align".concat(n," columns-").concat(a)},Object(J.times)(a,(function(e){return Object($.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object($.createElement)(W.RichText.Content,{tagName:"p",value:Object(J.get)(r,[e,"children"])}))})))}},Jc=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content;return Object($.createElement)(W.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}];var Xc=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z"}));var ei={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/paragraph",e)}}]},ti={name:"core/verse",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}}},ni=ti.name,ri={title:Object(Z.__)("Verse"),description:Object(Z.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Xc,example:{attributes:{content:Object(Z.__)("WHAT was he doing, the great god Pan,")+"
    "+Object(Z.__)(" Down in the reeds by the river?")+"
    "+Object(Z.__)("Spreading ruin and scattering ban,")+"
    "+Object(Z.__)("Splashing and paddling with hoofs of a goat,")+"
    "+Object(Z.__)("And breaking the golden lilies afloat")+"
    "+Object(Z.__)(" With the dragon-fly on the river.")}},keywords:[Object(Z.__)("poetry")],transforms:ei,deprecated:Jc,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,a=e.mergeBlocks,o=t.textAlign,c=t.content;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.AlignmentToolbar,{value:o,onChange:function(e){n({textAlign:e})}})),Object($.createElement)(W.RichText,{tagName:"pre",value:c,onChange:function(e){n({content:e})},placeholder:Object(Z.__)("Write…"),wrapperClassName:r,className:Q()(Object(q.a)({},"has-text-align-".concat(o),o)),onMerge:a}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,a=Q()(Object(q.a)({},"has-text-align-".concat(n),n));return Object($.createElement)(W.RichText.Content,{tagName:"pre",className:a,value:r})}},ai=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(se.Path,{d:"M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z"})),oi=["video"],ci=["image"],ii=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.videoPlayer=Object($.createRef)(),e.posterImageButton=Object($.createRef)(),e.toggleAttribute=e.toggleAttribute.bind(Object(ie.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(ie.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(ie.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(ie.a)(e)),e.onUploadError=e.onUploadError.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,a=t.noticeOperations,o=t.setAttributes,c=n.id,i=n.src,l=void 0===i?"":i;if(!c&&Object(Ce.isBlobURL)(l)){var s=Object(Ce.getBlobByURL)(l);s&&r({filesList:[s],onFileChange:function(e){var t=Object(ke.a)(e,1)[0].url;o({src:t})},onError:function(t){e.setState({editing:!0}),a.createErrorNotice(t)},allowedTypes:oi})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(q.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var a=et({attributes:{url:e}});if(void 0!==a)return void this.props.onReplace(a);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(Z.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,r=t.caption,a=t.controls,o=t.loop,c=t.muted,i=t.playsInline,l=t.poster,s=t.preload,u=t.src,b=this.props,m=b.className,d=b.instanceId,h=b.isSelected,p=b.noticeUI,g=b.setAttributes,f=this.state.editing,v=function(){e.setState({editing:!0})};if(f)return Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:ai}),className:m,onSelect:function(t){if(!t||!t.url)return g({src:void 0,id:void 0}),void v();g({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:oi,value:this.props.attributes,notices:p,onError:this.onUploadError});var O="video-block__poster-image-description-".concat(d);return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(se.Toolbar,null,Object($.createElement)(se.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(Z.__)("Edit video"),onClick:v,icon:"edit"}))),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Video Settings")},Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:o}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Muted"),onChange:this.toggleAttribute("muted"),checked:c}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Playback Controls"),onChange:this.toggleAttribute("controls"),checked:a}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Play inline"),onChange:this.toggleAttribute("playsInline"),checked:i}),Object($.createElement)(se.SelectControl,{label:Object(Z.__)("Preload"),value:s,onChange:function(e){return g({preload:e})},options:[{value:"auto",label:Object(Z.__)("Auto")},{value:"metadata",label:Object(Z.__)("Metadata")},{value:"none",label:Object(Z.__)("None")}]}),Object($.createElement)(W.MediaUploadCheck,null,Object($.createElement)(se.BaseControl,{className:"editor-video-poster-control"},Object($.createElement)(se.BaseControl.VisualLabel,null,Object(Z.__)("Poster Image")),Object($.createElement)(W.MediaUpload,{title:Object(Z.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:ci,render:function(t){var n=t.open;return Object($.createElement)(se.Button,{isDefault:!0,onClick:n,ref:e.posterImageButton,"aria-describedby":O},e.props.attributes.poster?Object(Z.__)("Replace image"):Object(Z.__)("Select Poster Image"))}}),Object($.createElement)("p",{id:O,hidden:!0},this.props.attributes.poster?Object(Z.sprintf)(Object(Z.__)("The current poster image url is %s"),this.props.attributes.poster):Object(Z.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object($.createElement)(se.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(Z.__)("Remove Poster Image")))))),Object($.createElement)("figure",{className:m},Object($.createElement)(se.Disabled,null,Object($.createElement)("video",{controls:a,poster:l,src:u,ref:this.videoPlayer})),(!W.RichText.isEmpty(r)||h)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(Z.__)("Write caption…"),value:r,onChange:function(e){return g({caption:e})},inlineToolbar:!0})))}}]),t}($.Component),li=Object(ue.compose)([Object(be.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})),se.withNotices,ue.withInstanceId])(ii);var si={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(G.createBlock)("core/video",{src:Object(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,n=t.src,r=t.mp4,a=t.m4v,o=t.webm,c=t.ogv,i=t.flv;return n||r||a||o||c||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},ui={name:"core/video",category:"common",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}}},bi=ui.name,mi={title:Object(Z.__)("Video"),description:Object(Z.__)("Embed a video from your media library or upload a new one."),icon:ai,keywords:[Object(Z.__)("movie")],transforms:si,supports:{align:!0},edit:li,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,a=t.controls,o=t.loop,c=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object($.createElement)("figure",null,s&&Object($.createElement)("video",{autoPlay:n,controls:a,loop:o,muted:c,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:r}))}},di=function(e){function t(){var e;return Object(re.a)(this,t),(e=Object(oe.a)(this,Object(ce.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(ie.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(ie.a)(e)),e}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(J.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(Z.__)("- Select -"),value:"",disabled:!0},n=Object(J.map)(e,(function(e){return{value:e.slug,label:e.name}}));return[t].concat(Object(U.a)(n))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,n=e.showTagCounts,r=this.getTaxonomyOptions(),a=Object($.createElement)(W.InspectorControls,null,Object($.createElement)(se.PanelBody,{title:Object(Z.__)("Tag Cloud Settings")},Object($.createElement)(se.SelectControl,{label:Object(Z.__)("Taxonomy"),options:r,value:t,onChange:this.setTaxonomy}),Object($.createElement)(se.ToggleControl,{label:Object(Z.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object($.createElement)($.Fragment,null,a,Object($.createElement)(tn.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}($.Component),hi=Object(be.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(di),pi="core/tag-cloud",gi={title:Object(Z.__)("Tag Cloud"),description:Object(Z.__)("A cloud of your most used tags."),icon:"tag",category:"widgets",supports:{html:!1,align:!0},edit:hi},fi=window.wp;var vi=function(e){function t(e){var n;return Object(re.a)(this,t),(n=Object(oe.a)(this,Object(ce.a)(t).call(this,e))).initialize=n.initialize.bind(Object(ie.a)(n)),n.onSetup=n.onSetup.bind(Object(ie.a)(n)),n.focus=n.focus.bind(Object(ie.a)(n)),n}return Object(le.a)(t,e),Object(ae.a)(t,[{key:"componentDidMount",value:function(){var e=window.wpEditorL10n.tinymce,t=e.baseURL,n=e.suffix;window.tinymce.EditorManager.overrideDefaults({base_url:t,suffix:n}),"complete"===document.readyState?this.initialize():window.addEventListener("DOMContentLoaded",this.initialize)}},{key:"componentWillUnmount",value:function(){window.addEventListener("DOMContentLoaded",this.initialize),fi.oldEditor.remove("editor-".concat(this.props.clientId))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.clientId,r=t.attributes.content,a=window.tinymce.get("editor-".concat(n));e.attributes.content!==r&&a.setContent(r||"")}},{key:"initialize",value:function(){var e=this.props.clientId,t=window.wpEditorL10n.tinymce.settings;fi.oldEditor.initialize("editor-".concat(e),{tinymce:Object(K.a)({},t,{inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-".concat(e),setup:this.onSetup})})}},{key:"onSetup",value:function(e){var t,n=this,r=this.props,a=r.attributes.content,o=r.setAttributes,c=this.ref;this.editor=e,a&&e.on("loadContent",(function(){return e.setContent(a)})),e.on("blur",(function(){return t=e.selection.getBookmark(2,!0),o({content:e.getContent()}),e.once("focus",(function(){t&&e.selection.moveToBookmark(t)})),!1})),e.on("mousedown touchstart",(function(){t=null})),e.on("keydown",(function(t){t.keyCode!==we.BACKSPACE&&t.keyCode!==we.DELETE||!function(e){var t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===we.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(Z._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(c,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(c,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(Z.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",(function(){var e=n.editor.getBody();document.activeElement===e&&(e.blur(),n.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object($.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(Z.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object($.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}($.Component),Oi=Object($.createElement)(se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(se.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object($.createElement)(se.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object($.createElement)(se.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object($.createElement)(se.Rect,{x:"17",y:"8",width:"2",height:"2"}));var ji={name:"core/freeform",category:"formatting",attributes:{content:{type:"string",source:"html"}}},yi=ji.name,_i={title:Object(Z._x)("Classic","block title"),description:Object(Z.__)("Use the classic WordPress editor."),icon:Oi,supports:{className:!1,customClassName:!1,reusable:!1},edit:vi,save:function(e){var t=e.attributes.content;return Object($.createElement)($.RawHTML,null,t)}},ki={fivehundredpx:{name:"500px",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))}},amazon:{name:"Amazon",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))}},bandcamp:{name:"Bandcamp",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))}},behance:{name:"Behance",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))}},chain:{name:"Link",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"}))}},codepen:{name:"CodePen",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))}},deviantart:{name:"DeviantArt",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))}},dribbble:{name:"Dribbble",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))}},dropbox:{name:"Dropbox",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))}},etsy:{name:"Etsy",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))}},facebook:{name:"Facebook",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))}},feed:{name:"RSS Feed",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))}},flickr:{name:"Flickr",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))}},foursquare:{name:"Foursquare",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))}},goodreads:{name:"Goodreads",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))}},google:{name:"Google",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))}},github:{name:"Github",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))}},instagram:{name:"Instagram",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))}},lastfm:{name:"Last.fm",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M10.5002,0 C4.7006,0 0,4.70109753 0,10.4998496 C0,16.2989526 4.7006,21 10.5002,21 C16.299,21 21,16.2989526 21,10.4998496 C21,4.70109753 16.299,0 10.5002,0 Z M14.69735,14.7204413 C13.3164,14.7151781 12.4346,14.0870017 11.83445,12.6859357 L11.6816001,12.3451305 L10.35405,9.31011397 C9.92709997,8.26875064 8.85260001,7.57120012 7.68010001,7.57120012 C6.06945001,7.57120012 4.75925001,8.88509738 4.75925001,10.5009524 C4.75925001,12.1164565 6.06945001,13.4303036 7.68010001,13.4303036 C8.77200001,13.4303036 9.76514999,12.827541 10.2719501,11.8567047 C10.2893,11.8235214 10.3239,11.8019673 10.36305,11.8038219 C10.4007,11.8053759 10.43535,11.8287847 10.4504,11.8631709 L10.98655,13.1045863 C11.0016,13.1389726 10.9956,13.17782 10.97225,13.2068931 C10.1605001,14.1995341 8.96020001,14.7683115 7.68010001,14.7683115 C5.33305,14.7683115 3.42340001,12.8535563 3.42340001,10.5009524 C3.42340001,8.14679459 5.33300001,6.23203946 7.68010001,6.23203946 C9.45720002,6.23203946 10.8909,7.19074535 11.6138,8.86359341 C11.6205501,8.88018505 12.3412,10.5707777 12.97445,12.0190621 C13.34865,12.8739575 13.64615,13.3959676 14.6288,13.4291508 C15.5663001,13.4612814 16.25375,12.9121534 16.25375,12.1484869 C16.25375,11.4691321 15.8320501,11.3003585 14.8803,10.98216 C13.2365,10.4397989 12.34495,9.88605929 12.34495,8.51817658 C12.34495,7.1809207 13.26665,6.31615054 14.692,6.31615054 C15.62875,6.31615054 16.3155,6.7286858 16.79215,7.5768142 C16.80495,7.60062396 16.8079001,7.62814302 16.8004001,7.65420843 C16.7929,7.68027384 16.7748,7.70212868 16.7507001,7.713808 L15.86145,8.16900031 C15.8178001,8.19200805 15.7643,8.17807308 15.73565,8.13847371 C15.43295,7.71345711 15.0956,7.52513451 14.6423,7.52513451 C14.05125,7.52513451 13.6220001,7.92899802 13.6220001,8.48649708 C13.6220001,9.17382194 14.1529001,9.34144259 15.0339,9.61923972 C15.14915,9.65578139 15.26955,9.69397731 15.39385,9.73432853 C16.7763,10.1865133 17.57675,10.7311301 17.57675,12.1836251 C17.57685,13.629654 16.3389,14.7204413 14.69735,14.7204413 Z"}))}},linkedin:{name:"Linkedin",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))}},mail:{name:"Mail",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))}},mastodon:{name:"Mastodon",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))}},meetup:{name:"Meetup",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))}},medium:{name:"Medium",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))}},pinterest:{name:"Pinterest",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))}},pocket:{name:"Pocket",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))}},reddit:{name:"Reddit",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))}},skype:{name:"Skype",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))}},snapchat:{name:"Snapchat",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))}},soundcloud:{name:"Soundcloud",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))}},spotify:{name:"Spotify",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))}},tumblr:{name:"Tumblr",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M16.749,17.396c-0.357,0.17-1.041,0.319-1.551,0.332c-1.539,0.041-1.837-1.081-1.85-1.896V9.847h3.861V6.937h-3.847V2.039 c0,0-2.77,0-2.817,0c-0.046,0-0.127,0.041-0.138,0.144c-0.165,1.499-0.867,4.13-3.783,5.181v2.484h1.945v6.282 c0,2.151,1.587,5.206,5.775,5.135c1.413-0.024,2.982-0.616,3.329-1.126L16.749,17.396z"}))}},twitch:{name:"Twitch",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))}},twitter:{name:"Twitter",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))}},vimeo:{name:"Vimeo",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))}},vk:{name:"VK",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))}},wordpress:{name:"WordPress",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(se.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))}},yelp:{name:"Yelp",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))}},youtube:{name:"YouTube",icon:function(){return Object($.createElement)(se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object($.createElement)(se.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}}},Ci=ki;Object.keys(Ci).map((function(e){return"core/social-link-"+e}));Object(Z.__)("Social links"),Object(Z.__)("Create a block of links to your social media or external sites"),Object(Z.__)("Default"),Object(Z.__)("Logos Only"),Object(Z.__)("Pill Shape");var wi={category:"widgets",parent:["core/social-links"],supports:{reusable:!1,html:!1},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,a=t.url,o=t.site,c=Object($.useState)(!1),i=Object(ke.a)(c,2),l=i[0],s=i[1],u=Q()("wp-social-link","wp-social-link-"+o,{"wp-social-link__is-incomplete":!a}),b=function(e){return ki[e].icon}(o);return Object($.createElement)(se.Button,{className:u,onClick:function(){return s(!0)}},Object($.createElement)(b,null),r&&l&&Object($.createElement)(W.URLPopover,{onClose:function(){return s(!1)}},Object($.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),s(!1)}},Object($.createElement)("div",{className:"editor-url-input block-editor-url-input"},Object($.createElement)("input",{type:"text",value:a,onChange:function(e){return n({url:e.target.value})},placeholder:Object(Z.__)("Enter Address")})),Object($.createElement)(se.IconButton,{icon:"editor-break",label:Object(Z.__)("Apply"),type:"submit"}))))}};Object.keys(Ci).map((function(e){var t=Ci[e];return{name:"core/social-link-"+e,settings:Object(K.a)({title:t.name,icon:t.icon,description:Object(Z.__)("Link to "+t.name)},wi,{attributes:{url:{type:"string"},site:{type:"string",default:e}}})}}));n.d(t,"registerCoreBlocks",(function(){return xi})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return Si}));var Ei=function(e){if(e){var t=e.metadata,n=e.settings,r=e.name;t&&Object(G.unstable__bootstrapServerSideBlockDefinitions)(Object(q.a)({},r,t)),Object(G.registerBlockType)(r,n)}},xi=function(){[r,a,o,i,k,c,A,l,s,u,b,m,d,h,p,g,f].concat(Object(U.a)(aa),Object(U.a)(oa),[v,B,window.wp&&window.wp.oldEditor?F:null,O,j,y,_,C,w,E,x,S,N,M,R,T,L,I,z,D,P,H,V]).forEach(Ei),Object(G.setDefaultBlockName)(Oe),window.wp&&window.wp.oldEditor&&Object(G.setFreeformContentHandlerName)(yi),Object(G.setUnregisteredTypeHandlerName)(mo),B&&Object(G.setGroupingBlockName)(nc)},Si=void 0},32:function(e,t){!function(){e.exports=this.wp.apiFetch}()},35:function(e,t){!function(){e.exports=this.wp.blob}()},37:function(e,t){!function(){e.exports=this.wp.deprecated}()},38:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},39:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},42:function(e,t){!function(){e.exports=this.wp.viewport}()},44:function(e,t,n){e.exports=function(e,t){var n,r,a,o=0;function c(){var t,c,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=R(e,360),t=R(t,100),n=R(n,100),0===t)r=a=o=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=c(l,i,e+1/3),a=c(l,i,e),o=c(l,i,e-1/3)}return{r:255*r,g:255*a,b:255*o}}(e.h,r,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,p;return n=B(n),{ok:b,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=i++}function d(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,a,o=u(e,t,n),c=s(e,t,n),i=(o+c)/2;if(o==c)r=a=0;else{var l=o-c;switch(a=i>.5?l/(2-o-c):l/(o+c),o){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(m(r));return o}function T(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,a=n.s,o=n.v,c=[],i=1/t;t--;)c.push(m({h:r,s:a,v:o})),o=(o+i)%1;return c}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:a.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=B(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,a){var o=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(n).toString(16)),I(P(r))];if(a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*R(this._r,255))+"%",g:l(100*R(this._g,255))+"%",b:l(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*R(this._r,255))+"%, "+l(100*R(this._g,255))+"%, "+l(100*R(this._b,255))+"%)":"rgba("+l(100*R(this._r,255))+"%, "+l(100*R(this._g,255))+"%, "+l(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=m(e);n="#"+g(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return m(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:z(e[r]));e=n}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,n){n=0===n?0:n||50;var r=m(e).toRgb(),a=m(t).toRgb(),o=n/100;return m({r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a})},m.readability=function(e,t){var n=m(e),r=m(t);return(a.max(n.getLuminance(),r.getLuminance())+.05)/(a.min(n.getLuminance(),r.getLuminance())+.05)},m.isReadable=function(e,t,n){var r,a,o=m.readability(e,t);switch(a=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},m.mostReadable=function(e,t,n){var r,a,o,c,i=null,l=0;a=(n=n||{}).includeFallbackColors,o=n.level,c=n.size;for(var s=0;sl&&(l=r,i=m(t[s]));return m.isReadable(e,i,{level:o,size:c})||!a?i:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var N=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=m.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(N);function B(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return s(1,u(0,e))}function L(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function P(e){return a.round(255*parseFloat(e)).toString(16)}function H(e){return L(e)/255}var V,D,F,U=(D="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(r=function(){return m}.call(t,n,t,e))||(e.exports=r)}(Math)},5:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},53:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},54:function(e,t){!function(){e.exports=this.wp.date}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},61:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},66:function(e,t){!function(){e.exports=this.wp.autop}()},67:function(e,t,n){var r; +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(120);function O(e,t,n){if(e&&a.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),i=-1!==o&&o127?R+="x":R+=B[A];if(!R.match(d)){var I=N.slice(0,x),z=N.slice(x+1),P=B.match(h);P&&(I.push(P[1]),z.unshift(P[2])),z.length&&(O="/"+z.join(".")+O),this.hostname=I.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var H=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+H,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!p[_])for(x=0,M=u.length;x0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=k.slice(-1)[0],E=(n.host||e.host||k.length>1)&&("."===w||".."===w)||""===w,x=0,S=k.length;S>=0;S--)"."===(w=k[S])?k.splice(S,1):".."===w?(k.splice(S,1),x++):x&&(k.splice(S,1),x--);if(!y&&!_)for(;x--;x)k.unshift("..");!y||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),E&&"/"!==k.join("/").substr(-1)&&k.push("");var T,N=""===k[0]||k[0]&&"/"===k[0].charAt(0);C&&(n.hostname=n.host=N?"":k.length?k.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(y=y||n.host&&k.length)&&!N&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},8:function(e,t){!function(){e.exports=this.wp.compose}()},86:function(e,t){!function(){e.exports=this.wp.coreData}()},9:function(e,t){!function(){e.exports=this.wp.blocks}()}}); \ No newline at end of file diff --git a/wp-includes/js/dist/block-serialization-default-parser.js b/wp-includes/js/dist/block-serialization-default-parser.js index d86da798cc..a20be539f5 100644 --- a/wp-includes/js/dist/block-serialization-default-parser.js +++ b/wp-includes/js/dist/block-serialization-default-parser.js @@ -82,60 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockSerializationDefaultParser"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 283); +/******/ return __webpack_require__(__webpack_require__.s = 212); /******/ }) /************************************************************************/ /******/ ({ -/***/ 23: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js -var arrayWithHoles = __webpack_require__(38); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js -function _iterableToArrayLimit(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js -var nonIterableRest = __webpack_require__(39); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); - - - -function _slicedToArray(arr, i) { - return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])(); -} - -/***/ }), - -/***/ 283: +/***/ 212: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -523,6 +475,54 @@ function addBlockFromStack(endOffset) { } +/***/ }), + +/***/ 23: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +var arrayWithHoles = __webpack_require__(38); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +function _iterableToArrayLimit(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +var nonIterableRest = __webpack_require__(39); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); + + + +function _slicedToArray(arr, i) { + return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])(); +} + /***/ }), /***/ 38: diff --git a/wp-includes/js/dist/block-serialization-default-parser.min.js b/wp-includes/js/dist/block-serialization-default-parser.min.js index 06dfa3b6be..6ddcaab640 100644 --- a/wp-includes/js/dist/block-serialization-default-parser.min.js +++ b/wp-includes/js/dist/block-serialization-default-parser.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.blockSerializationDefaultParser=function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)r.d(e,u,function(t){return n[t]}.bind(null,u));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=283)}({23:function(n,t,r){"use strict";var e=r(38);var u=r(39);function o(n,t){return Object(e.a)(n)||function(n,t){var r=[],e=!0,u=!1,o=void 0;try{for(var i,l=n[Symbol.iterator]();!(e=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);e=!0);}catch(n){u=!0,o=n}finally{try{e||null==l.return||l.return()}finally{if(u)throw o}}return r}(n,t)||Object(u.a)()}r.d(t,"a",(function(){return o}))},283:function(n,t,r){"use strict";r.r(t),r.d(t,"parse",(function(){return a}));var e,u,o,i,l=r(23),c=/)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function s(n,t,r,e,u){return{blockName:n,attrs:t,innerBlocks:r,innerHTML:e,innerContent:u}}function f(n){return s(null,{},[],n,[n])}var a=function(n){e=n,u=0,o=[],i=[],c.lastIndex=0;do{}while(p());return o};function p(){var n=function(){var n=c.exec(e);if(null===n)return["no-more-tokens"];var t=n.index,r=Object(l.a)(n,7),u=r[0],o=r[1],i=r[2],s=r[3],f=r[4],a=r[6],p=u.length,b=!!o,v=!!a,d=(i||"core/")+s,h=!!f,k=h?function(n){try{return JSON.parse(n)}catch(n){return null}}(f):{};if(v)return["void-block",d,k,t,p];if(b)return["block-closer",d,null,t,p];return["block-opener",d,k,t,p]}(),t=Object(l.a)(n,5),r=t[0],a=t[1],p=t[2],h=t[3],k=t[4],y=i.length,O=h>u?u:null;switch(r){case"no-more-tokens":if(0===y)return b(),!1;if(1===y)return d(),!1;for(;0)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function s(n,t,r,e,u){return{blockName:n,attrs:t,innerBlocks:r,innerHTML:e,innerContent:u}}function f(n){return s(null,{},[],n,[n])}var a=function(n){e=n,u=0,o=[],i=[],c.lastIndex=0;do{}while(p());return o};function p(){var n=function(){var n=c.exec(e);if(null===n)return["no-more-tokens"];var t=n.index,r=Object(l.a)(n,7),u=r[0],o=r[1],i=r[2],s=r[3],f=r[4],a=r[6],p=u.length,b=!!o,v=!!a,d=(i||"core/")+s,h=!!f,k=h?function(n){try{return JSON.parse(n)}catch(n){return null}}(f):{};if(v)return["void-block",d,k,t,p];if(b)return["block-closer",d,null,t,p];return["block-opener",d,k,t,p]}(),t=Object(l.a)(n,5),r=t[0],a=t[1],p=t[2],h=t[3],k=t[4],y=i.length,O=h>u?u:null;switch(r){case"no-more-tokens":if(0===y)return b(),!1;if(1===y)return d(),!1;for(;0 (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
    foo
    ",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var i={},o={},s={},c=a(!0),u="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:function(){"use strict";var e=a(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function d(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};i.helper.isArray(e)||(e=[e]);for(var a=0;a").replace(/&/g,"&")};var h=function(e,t,r,n){"use strict";var a,i,o,s,c,u=n||"",l=u.indexOf("g")>-1,d=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),f=new RegExp(t,u.replace(/g/g,"")),h=[];do{for(a=0;o=d.exec(e);)if(f.test(o[0]))a++||(s=(i=d.lastIndex)-o[0].length);else if(a&&!--a){c=o.index+o[0].length;var p={left:{start:s,end:i},match:{start:i,end:o.index},right:{start:o.index,end:c},wholeMatch:{start:s,end:c}};if(h.push(p),!l)return h}}while(a&&(d.lastIndex=i));return h};i.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=h(e,t,r,n),i=[],o=0;o0){var l=[];0!==s[0].wholeMatch.start&&l.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d=0?n+(r||0):n},i.helper.splitAtIndex=function(e,t){"use strict";if(!i.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},i.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e}))},i.helper.padEnd=function(e,t,r){"use strict";return t>>=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),i.helper.regexes={asteriskDashAndColon:/([*_:~])/g},i.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},i.Converter=function(e){"use strict";var t={},r=[],n=[],a={},o=u,f={parsed:{},raw:"",format:""};function h(e,t){if(t=t||null,i.helper.isString(e)){if(t=e=i.helper.stdExtName(e),i.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new i.Converter));i.helper.isArray(e)||(e=[e]);var a=d(e,t);if(!a.valid)throw Error(a.error);for(var o=0;o[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r? ?(['"].*['"])?\)$/m)>-1)o="";else if(!o){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),o="#"+a,i.helper.isUndefined(r.gUrls[a]))return e;o=r.gUrls[a],i.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var l='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,n,a,o){if("\\"===n)return r+a;if(!i.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,o),c="";return t.openLinksInNewWindow&&(c=' target="¨E95Eblank"'),r+'"+a+""}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,m=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,b=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,v=function(e){"use strict";return function(t,r,n,a,o,s,c){var u=n=n.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback),l="",d="",f=r||"",h=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(d=' target="¨E95Eblank"'),f+'"+u+""+l+h}},k=function(e,t){"use strict";return function(r,n,a){var o="mailto:";return n=n||"",a=i.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(o=i.helper.encodeEmailAddress(o+a),a=i.helper.encodeEmailAddress(a)):o+=a,n+''+a+""}};i.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(m,v(t))).replace(_,k(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),i.subParser("simplifiedAutoLinks",(function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(g,v(t)):e.replace(p,v(t))).replace(b,k(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),i.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=i.subParser("blockQuotes")(e,t,r),e=i.subParser("headers")(e,t,r),e=i.subParser("horizontalRule")(e,t,r),e=i.subParser("lists")(e,t,r),e=i.subParser("codeBlocks")(e,t,r),e=i.subParser("tables")(e,t,r),e=i.subParser("hashHTMLBlocks")(e,t,r),e=i.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),i.subParser("blockQuotes",(function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=i.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=i.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
    [^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")})),i.subParser("hashBlock")("
    \n"+e+"\n
    ",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),i.subParser("codeBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,a){var o=n,s=a,c="\n";return o=i.subParser("outdent")(o,t,r),o=i.subParser("encodeCode")(o,t,r),o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),o="
    "+o+c+"
    ",i.subParser("hashBlock")(o,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),i.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,a,o){var s=o;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+""+(s=i.subParser("encodeCode")(s,t,r))+"",s=i.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),i.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",a="\n",i="",o='\n',s="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(a="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(o='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":i=""+r.metadata.parsed.title+"\n";break;case"charset":o="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}return e=a+"\n\n"+i+o+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),i.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,a=0;a/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),i.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,i.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),i.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),i.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),i.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,a,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=i.subParser("encodeCode")(o,t,r),o="
    "+(o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
    ",o=i.subParser("hashBlock")(o,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),i.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)})),i.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=i.helper.replaceRecursiveRegExp(e,(function(e,n,a,o){var s=a+i.subParser("encodeCode")(n,t,r)+o;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),i.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),i.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,n,a){var i=e;return-1!==n.search(/\bmarkdown\b/)&&(i=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var o=0;o]*>)","im"),u="<"+n[o]+"\\b[^>]*>",l="";-1!==(s=i.helper.regexIndexOf(e,c));){var d=i.helper.splitAtIndex(e,s),f=i.helper.replaceRecursiveRegExp(d[1],a,u,l,"im");if(f===d[1])break;e=d[0].concat(f)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=(e=i.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),i.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),i.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
    ","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),i.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,o=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,(function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=""+o+"";return i.subParser("hashBlock")(u,t,r)}))).replace(o,(function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l=""+o+"";return i.subParser("hashBlock")(l,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,a;if(t.customizedHeaderId){var o=e.match(/\{([^{]+?)}\s*$/);o&&o[1]&&(e=o[1])}return n=e,a=i.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=a+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=a+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,(function(e,a,o){var s=o;t.customizedHeaderId&&(s=o.replace(/\s?\{([^{]+?)}\s*$/,""));var u=i.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(o)+'"',d=n-1+a.length,f=""+u+"";return i.subParser("hashBlock")(f,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),i.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=i.subParser("hashBlock")("
    ",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),i.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,a,o,s,c,u){var l=r.gUrls,d=r.gTitles,f=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,i.helper.isUndefined(l[n]))return e;a=l[n],i.helper.isUndefined(d[n])||(u=d[n]),i.helper.isUndefined(f[n])||(o=f[n].width,s=f[n].height)}t=t.replace(/"/g,""").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var h=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,a,i,o,s,c){return n(e,t,r,a=a.replace(/\s/g,""),i,o,s,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)})),i.subParser("italicsAndBold",(function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return n(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),i.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,o=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(a,(function(e,n,a,s,c,u,l){l=l&&""!==l.trim();var d=i.subParser("outdent")(c,t,r),f="";return u&&t.tasklists&&(f=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='-1?(d=i.subParser("githubCodeBlocks")(d,t,r),d=i.subParser("blockGamut")(d,t,r)):(d=(d=i.subParser("lists")(d,t,r)).replace(/\n$/,""),d=(d=i.subParser("hashHTMLBlocks")(d,t,r)).replace(/\n\n+/g,"\n\n"),d=o?i.subParser("paragraphs")(d,t,r):i.subParser("spanGamut")(d,t,r)),d=""+(d=d.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function o(e,r,i){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?o:s,u="";if(-1!==e.search(c))!function t(l){var d=l.search(c),f=a(e,r);-1!==d?(u+="\n\n<"+r+f+">\n"+n(l.slice(0,d),!!i)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?o:s,t(l.slice(d))):u+="\n\n<"+r+f+">\n"+n(l,!!i)+"\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!i)+"\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r){return o(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r,n){return o(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),i.subParser("metadata",(function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,n){return r.metadata.parsed[t]=n,""}))}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,r){return n(r),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,a){return t&&(r.metadata.format=t),n(a),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),i.subParser("outdent",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)})),i.subParser("paragraphs",(function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],o=n.length,s=0;s=0?a.push(c):c.search(/\S/)>=0&&(c=(c=i.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"

    "),c+="

    ",a.push(c))}for(o=a.length,s=0;s]*>\s*]*>/.test(l)&&(d=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),i.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),i.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=i.subParser("codeSpans")(e,t,r),e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=i.subParser("encodeBackslashEscapes")(e,t,r),e=i.subParser("images")(e,t,r),e=i.subParser("anchors")(e,t,r),e=i.subParser("autoLinks")(e,t,r),e=i.subParser("simplifiedAutoLinks")(e,t,r),e=i.subParser("emoji")(e,t,r),e=i.subParser("underline")(e,t,r),e=i.subParser("italicsAndBold")(e,t,r),e=i.subParser("strikethrough")(e,t,r),e=i.subParser("ellipsis")(e,t,r),e=i.subParser("hashHTMLSpans")(e,t,r),e=i.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
    \n")):e=e.replace(/ +\n/g,"
    \n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),i.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=i.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),i.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,o,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=i.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&o&&s&&(r.gDimensions[n]={width:o,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),i.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+i.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,o=e.split("\n");for(a=0;a"+(c=i.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var i=0;i\n"}return r+="\n\n"}(p,m)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,i.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),i.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),i.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),i.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,o=0;o ")})),i.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),i.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),i.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,o=0;o",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),i.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var o=0;o",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),i.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,o=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),i.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,o=0;otr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rp&&(p=g)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return i}.call(t,r,t,e))||(e.exports=n)}).call(this)},25:function(e,t){!function(){e.exports=this.wp.dom}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},30:function(e,t,r){"use strict";function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},35:function(e,t){!function(){e.exports=this.wp.blob}()},36:function(e,t,r){"use strict";var n,a;function i(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=f("SET_DEFAULT_BLOCK_NAME"),p=f("SET_FREEFORM_FALLBACK_BLOCK_NAME"),g=f("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=f("SET_GROUPING_BLOCK_NAME");var b=Object(i.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return Object(c.a)({},e,Object(u.keyBy)(Object(u.map)(t.blockTypes,(function(e){return Object(u.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(u.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return Object(c.a)({},e,Object(u.mapValues)(Object(u.keyBy)(t.blockTypes,"name"),(function(t){return Object(u.uniqBy)([].concat(Object(s.a)(Object(u.get)(t,["styles"],[])),Object(s.a)(Object(u.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return Object(c.a)({},e,Object(o.a)({},t.blockName,Object(u.uniqBy)([].concat(Object(s.a)(Object(u.get)(e,[t.blockName],[])),Object(s.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return Object(c.a)({},e,Object(o.a)({},t.blockName,Object(u.filter)(Object(u.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:p,unregisteredFallbackBlockName:g,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(u.isEmpty)(t.category))return e;if(Object(u.find)(e,["slug",t.slug]))return Object(u.map)(e,(function(e){return e.slug===t.slug?Object(c.a)({},e,t.category):e}))}return e}}),_=r(36),v=function(e,t){return"string"==typeof t?w(e,t):t},k=Object(_.a)((function(e){return Object.values(e.blockTypes)}),(function(e){return[e.blockTypes]}));function w(e,t){return e.blockTypes[t]}function y(e,t){return e.blockStyles[t]}function j(e){return e.categories}function O(e){return e.defaultBlockName}function T(e){return e.freeformFallbackBlockName}function x(e){return e.unregisteredFallbackBlockName}function C(e){return e.groupingBlockName}var A=Object(_.a)((function(e,t){return Object(u.map)(Object(u.filter)(e.blockTypes,(function(e){return Object(u.includes)(e.parent,t)})),(function(e){return e.name}))}),(function(e){return[e.blockTypes]})),S=function(e,t,r,n){var a=v(e,t);return Object(u.get)(a,["supports",r],n)};function E(e,t,r,n){return!!S(e,t,r,n)}function P(e,t,r){var n=v(e,t),a=Object(u.flow)([u.deburr,function(e){return e.toLowerCase()},function(e){return e.trim()}]),i=a(r),o=Object(u.flow)([a,function(e){return Object(u.includes)(e,i)}]);return o(n.title)||Object(u.some)(n.keywords,o)||o(n.category)}var N=function(e,t){return A(e,t).length>0},B=function(e,t){return Object(u.some)(A(e,t),(function(t){return E(e,t,"inserter",!0)}))};function M(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(u.castArray)(e)}}function L(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(u.castArray)(e)}}function z(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(u.castArray)(t),blockName:e}}function H(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(u.castArray)(t),blockName:e}}function I(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function D(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function V(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function R(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function F(e){return{type:"SET_CATEGORIES",categories:e}}function $(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}Object(i.registerStore)("core/blocks",{reducer:b,selectors:n,actions:a});var q=r(70),U=r.n(q),G=r(27),W=r(49),K=r.n(W),Y=r(0),Z=["#191e23","#f8f9f9"];function Q(e){var t=pe();if(e.name!==t)return!1;Q.block&&Q.block.name===t||(Q.block=Te(t));var r=Q.block,n=ge(t);return Object(u.every)(n.attributes,(function(t,n){return r.attributes[n]===e.attributes[n]}))}function X(e){return!!e&&(Object(u.isString)(e)||Object(Y.isValidElement)(e)||Object(u.isFunction)(e)||e instanceof Y.Component)}function J(e){if(X(e))return{src:e};if(Object(u.has)(e,["background"])){var t=K()(e.background);return Object(c.a)({},e,{foreground:e.foreground?e.foreground:Object(W.mostReadable)(t,Z,{includeFallbackColors:!0,level:"AA",size:"large"}).toHexString(),shadowColor:t.setAlpha(.3).toRgbString()})}return e}function ee(e){return Object(u.isString)(e)?ge(e):e}var te=["attributes","supports","save","migrate","isEligible"],re={icon:"block-default",attributes:{},keywords:[],save:function(){return null}},ne={};function ae(e){ne=Object(c.a)({},ne,e)}function ie(e,t){if(t=Object(c.a)({name:e},re,Object(u.get)(ne,e),t),"string"==typeof e)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(e))if(Object(i.select)("core/blocks").getBlockType(e))console.error('Block "'+e+'" is already registered.');else{var r=Object(c.a)({},t);if((t=Object(G.applyFilters)("blocks.registerBlockType",t,e)).deprecated&&(t.deprecated=t.deprecated.map((function(t){return Object(u.pick)(Object(G.applyFilters)("blocks.registerBlockType",Object(c.a)({},Object(u.omit)(r,te),t),e),te)}))),Object(u.isPlainObject)(t))if(Object(u.isFunction)(t.save))if("edit"in t&&!Object(u.isFunction)(t.edit))console.error('The "edit" property must be a valid function.');else if("category"in t)if("category"in t&&!Object(u.some)(Object(i.select)("core/blocks").getCategories(),{slug:t.category}))console.error('The block "'+e+'" must have a registered category.');else if("title"in t&&""!==t.title)if("string"==typeof t.title){if(t.icon=J(t.icon),X(t.icon.src))return Object(i.dispatch)("core/blocks").addBlockTypes(t),t;console.error("The icon passed is invalid. The icon should be a string, an element, a function, or an object following the specifications documented in https://developer.wordpress.org/block-editor/developers/block-api/block-registration/#icon-optional")}else console.error("Block titles must be strings.");else console.error('The block "'+e+'" must have a title.');else console.error('The block "'+e+'" must have a category.');else console.error('The "save" property must be a valid function.');else console.error("Block settings must be a valid object.")}else console.error("Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block");else console.error("Block names must be strings.")}function oe(e){var t=Object(i.select)("core/blocks").getBlockType(e);if(t)return Object(i.dispatch)("core/blocks").removeBlockTypes(e),t;console.error('Block "'+e+'" is not registered.')}function se(e){Object(i.dispatch)("core/blocks").setFreeformFallbackBlockName(e)}function ce(){return Object(i.select)("core/blocks").getFreeformFallbackBlockName()}function ue(){return Object(i.select)("core/blocks").getGroupingBlockName()}function le(e){Object(i.dispatch)("core/blocks").setUnregisteredFallbackBlockName(e)}function de(){return Object(i.select)("core/blocks").getUnregisteredFallbackBlockName()}function fe(e){Object(i.dispatch)("core/blocks").setDefaultBlockName(e)}function he(e){Object(i.dispatch)("core/blocks").setGroupingBlockName(e)}function pe(){return Object(i.select)("core/blocks").getDefaultBlockName()}function ge(e){return Object(i.select)("core/blocks").getBlockType(e)}function me(){return Object(i.select)("core/blocks").getBlockTypes()}function be(e,t,r){return Object(i.select)("core/blocks").getBlockSupport(e,t,r)}function _e(e,t,r){return Object(i.select)("core/blocks").hasBlockSupport(e,t,r)}function ve(e){return"core/block"===e.name}var ke=function(e){return Object(i.select)("core/blocks").getChildBlockNames(e)},we=function(e){return Object(i.select)("core/blocks").hasChildBlocks(e)},ye=function(e){return Object(i.select)("core/blocks").hasChildBlocksWithInserterSupport(e)},je=function(e,t){Object(i.dispatch)("core/blocks").addBlockStyles(e,t)},Oe=function(e,t){Object(i.dispatch)("core/blocks").removeBlockStyles(e,t)};function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=ge(e),a=Object(u.reduce)(n.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{});return{clientId:U()(),name:e,isValid:!0,attributes:a,innerBlocks:r}}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=U()();return Object(c.a)({},e,{clientId:n,attributes:Object(c.a)({},e.attributes,t),innerBlocks:r||e.innerBlocks.map((function(e){return xe(e)}))})}var Ce=function(e,t,r){if(Object(u.isEmpty)(r))return!1;var n=r.length>1,a=Object(u.first)(r).name;if(!(Ee(e)||!n||e.isMultiBlock))return!1;if(!Ee(e)&&!Object(u.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var i=Object(u.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(i.name)||Ee(e)))return!1;if(!n&&Pe(i.name)&&Pe(e.blockName))return!1;if(Object(u.isFunction)(e.isMatch)){var o=e.isMultiBlock?r.map((function(e){return e.attributes})):i.attributes;if(!e.isMatch(o))return!1}return!0},Ae=function(e){if(Object(u.isEmpty)(e))return[];var t=me();return Object(u.filter)(t,(function(t){return!!Me(Le("from",t.name),(function(t){return Ce(t,"from",e)}))}))},Se=function(e){if(Object(u.isEmpty)(e))return[];var t=Le("to",ge(Object(u.first)(e).name).name),r=Object(u.filter)(t,(function(t){return t&&Ce(t,"to",e)}));return Object(u.flatMap)(r,(function(e){return e.blocks})).map((function(e){return ge(e)}))},Ee=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},Pe=function(e){return e===ue()},Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e.length)return!1;var t=e[0].name;return Object(u.every)(e,["name",t])};function Be(e){if(Object(u.isEmpty)(e))return[];var t=Ae(e),r=Se(e);return Object(u.uniq)([].concat(Object(s.a)(t),Object(s.a)(r)))}function Me(e,t){for(var r=Object(G.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,a=r[0],i=a.name;if(!Pe(t)&&n&&!Ne(r))return null;var o,s=Le("from",t),l=Me(Le("to",i),(function(e){return"block"===e.type&&(Ee(e)||-1!==e.blocks.indexOf(t))&&(!n||e.isMultiBlock)}))||Me(s,(function(e){return"block"===e.type&&(Ee(e)||-1!==e.blocks.indexOf(i))&&(!n||e.isMultiBlock)}));if(!l)return null;if(o=l.isMultiBlock?Object(u.has)(l,"__experimentalConvert")?l.__experimentalConvert(r):l.transform(r.map((function(e){return e.attributes})),r.map((function(e){return e.innerBlocks}))):Object(u.has)(l,"__experimentalConvert")?l.__experimentalConvert(a):l.transform(a.attributes,a.innerBlocks),!Object(u.isObjectLike)(o))return null;if((o=Object(u.castArray)(o)).some((function(e){return!ge(e.name)})))return null;var d=Object(u.findIndex)(o,(function(e){return e.name===t}));return d<0?null:o.map((function(t,r){var n=Object(c.a)({},t,{clientId:r===d?a.clientId:t.clientId});return Object(G.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var He=function e(t,r){return Te(t,r.attributes,Object(u.map)(r.innerBlocks,(function(t){return e(t.name,t)})))},Ie=r(23);var De,Ve=function(){return De||(De=document.implementation.createHTMLDocument("")),De};function Re(e,t){if(t){if("string"==typeof e){var r=Ve();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=Re(e,t[n]),r}),{})}}function Fe(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return function(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}(n,t)}}var $e=r(72),qe=r(230),Ue=r(38),Ge=r(30),We=r(39);var Ke=r(12),Ye=r(11),Ze=/^#[xX]([A-Fa-f0-9]+)$/,Qe=/^#([0-9]+)$/,Xe=/^([A-Za-z0-9]+)$/,Je=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(Ze);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(Qe))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Xe))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),et=/[A-Za-z]/,tt=/\r\n?/g;function rt(e){return Je.test(e)}function nt(e){return et.test(e)}var at=function(){function e(e,t){this.delegate=e,this.entityParser=t,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer.toLowerCase();"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||nt(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){"-"===this.consume()&&"-"===this.peek()&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();rt(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();rt(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();rt(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();rt(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();rt(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();rt(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();rt(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();rt(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||nt(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(tt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),it=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new at(this,e),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:[],n=ee(e),a=n.save;if(a.prototype instanceof Y.Component){var i=new a({attributes:t});a=i.render.bind(i)}var o=a({attributes:t,innerBlocks:r});if(Object(u.isObject)(o)&&Object(G.hasFilter)("blocks.getSaveContent.extraProps")){var s=Object(G.applyFilters)("blocks.getSaveContent.extraProps",Object(c.a)({},o.props),n,t);ut()(s,o.props)||(o=Object(Y.cloneElement)(o,s))}return o=Object(G.applyFilters)("blocks.getSaveElement",o,n,t),Object(Y.createElement)(mt,{innerBlocks:r},o)}function kt(e,t,r){var n=ee(e);return Object(Y.renderToString)(vt(n,t,r))}function wt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=kt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function yt(e,t,r){var n=Object(u.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(u.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function jt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isInnerBlocks,r=void 0!==t&&t,n=e.name,a=wt(e);return n===de()||!r&&n===ce()?a:yt(n,function(e,t){return Object(u.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a?e:void 0!==r.source?e:"default"in r&&r.default===a?e:(e[n]=a,e)}),{})}(ge(n),e.attributes),a)}function Ot(e,t){return Object(u.castArray)(e).map((function(e){return jt(e,t)})).join("\n\n")}var Tt=/[\t\n\r\v\f ]+/g,xt=/^[\t\n\r\v\f ]*$/,Ct=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,At=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],St=[].concat(At,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),Et=[u.identity,function(e){return Lt(e).join(" ")}],Pt=/^[\da-z]+$/i,Nt=/^#\d+$/,Bt=/^#x[\da-f]+$/i;var Mt=function(){function e(){Object(Ke.a)(this,e)}return Object(Ye.a)(e,[{key:"parse",value:function(e){if(t=e,Pt.test(t)||Nt.test(t)||Bt.test(t))return Object(ot.decodeEntities)("&"+e+";");var t}}]),e}();function Lt(e){return e.trim().split(Tt)}function zt(e){return e.attributes.filter((function(e){var t=Object(Ie.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(u.includes)(St,r)}))}function Ht(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st(),n=e.chars,a=t.chars,i=0;i2&&void 0!==arguments[2]?arguments[2]:st();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;var n=[e,t].map(u.fromPairs),a=Object(Ie.a)(n,2),i=a[0],o=a[1];for(var s in i){if(!o.hasOwnProperty(s))return r.warning("Encountered unexpected attribute `%s`.",s),!1;var c=i[s],l=o[s],d=Vt[s];if(d){if(!d(c,l))return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",s,l,c),!1}else if(c!==l)return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",s,l,c),!1}return!0}var Ft={StartTag:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st();return e.tagName!==t.tagName?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):Rt.apply(void 0,Object(s.a)([e,t].map(zt)).concat([r]))},Chars:Ht,Comment:Ht};function $t(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!xt.test(t.chars))return t}}function qt(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Ut(e,t){var r,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st(),i=[e,t].map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:st();try{return new it(new Mt).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}(e,a)})),o=Object(Ie.a)(i,2),s=o[0],c=o[1];if(!s||!c)return!1;for(;r=$t(s);){if(!(n=$t(c)))return a.warning("Expected end of content, instead saw %o.",r),!1;if(r.type!==n.type)return a.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",n.type,n,r.type,r),!1;var u=Ft[r.type];if(u&&!u(r,n,a))return!1;qt(r,c[0])?$t(c):qt(n,s[0])&&$t(s)}return!(n=$t(c))||(a.warning("Expected %o, instead saw end of content.",n),!1)}function Gt(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){var e=[],t=st();return{error:function(){for(var r=arguments.length,n=new Array(r),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},n=ee(e),a=Object(u.mapValues)(n.attributes,(function(e,n){return ur(n,e,t,r)}));return Object(G.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function dr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,i=e.innerHTML,o=e.innerContent,l=ce(),d=de()||l;r=r||{},i=i.trim();var f=t||l;"core/cover-image"===f&&(f="core/cover"),"core/text"!==f&&"core/cover-text"!==f||(f="core/paragraph"),f===l&&(i=Object($e.autop)(i).trim());var h=ge(f);if(!h){var p={attrs:r,blockName:t,innerBlocks:a,innerContent:o},g=fr(p,{isCommentDelimited:!1}),m=fr(p,{isCommentDelimited:!0});f&&(i=m),r={originalName:t,originalContent:m,originalUndelimitedContent:g},h=ge(f=d)}a=(a=a.map(dr)).filter((function(e){return e}));var b=f===l||f===d;if(h&&(i||!b)){var _=Te(f,lr(h,i,r),a);if(!b){var v=Gt(h,_.attributes,i),k=v.isValid,w=v.validationIssues;_.isValid=k,_.validationIssues=w}return _.originalContent=_.originalContent||i,(_=function(e,t){var r=ge(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,i=a.originalContent,o=a.innerBlocks,l=0;l0&&(_.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",h.name,h,kt(h,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(s.a)(r))}))),_}}function fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,i=e.attrs,o=void 0===i?{}:i,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=0,d=(void 0===u?[]:u).map((function(e){return null!==e?e:fr(c[l++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?yt(a,o,d):d}var hr,pr=(hr=qe.parse,function(e){return hr(e).reduce((function(e,t){var r=dr(t);return r&&e.push(r),e}),[])}),gr=pr,mr=r(25),br={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},"#text":{}};function _r(){return br}function vr(e){var t=e.nodeName.toLowerCase();return _r().hasOwnProperty(t)||"span"===t}["strong","em","s","del","ins","a","code","abbr","sub","sup"].forEach((function(e){br[e].children=Object(u.omit)(br,e)}));var kr=window.Node,wr=kr.ELEMENT_NODE,yr=kr.TEXT_NODE;function jr(e){var t=e.map((function(e){var t=e.isMatch,r=e.blockName,n=e.schema,a=_e(r,"anchor");return a||t?Object(u.mapValues)(n,(function(e){var r=e.attributes||[];return a&&(r=[].concat(Object(s.a)(r),["id"])),Object(c.a)({},e,{attributes:r,isMatch:t||void 0})})):n}));return u.mergeWith.apply(void 0,[{}].concat(Object(s.a)(t),[function(e,t,r){switch(r){case"children":return"*"===e||"*"===t?"*":Object(c.a)({},e,t);case"attributes":case"require":return[].concat(Object(s.a)(e||[]),Object(s.a)(t||[]));case"isMatch":if(!e||!t)return;return function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}}]))}function Or(e){return!e.hasChildNodes()||Array.from(e.childNodes).every((function(e){return e.nodeType===yr?!e.nodeValue.trim():e.nodeType!==wr||("BR"===e.nodeName||!e.hasAttributes()&&Or(e))}))}function Tr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,function e(t,r,n,a){Array.from(t).forEach((function(t){e(t.childNodes,r,n,a),r.forEach((function(e){n.contains(t)&&e(t,n,a)}))}))}(n.body.childNodes,t,n,r),n.body.innerHTML}function xr(e,t,r){var n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,function e(t,r,n,a){Array.from(t).forEach((function(t){var i=t.nodeName.toLowerCase();if(!n.hasOwnProperty(i)||n[i].isMatch&&!n[i].isMatch(t))e(t.childNodes,r,n,a),a&&!vr(t)&&t.nextElementSibling&&Object(mr.insertAfter)(r.createElement("br"),t),Object(mr.unwrap)(t);else if(t.nodeType===wr){var o=n[i],s=o.attributes,c=void 0===s?[]:s,l=o.classes,d=void 0===l?[]:l,f=o.children,h=o.require,p=void 0===h?[]:h,g=o.allowEmpty;if(f&&!g&&Or(t))return void Object(mr.remove)(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach((function(e){var r=e.name;"class"===r||Object(u.includes)(c,r)||t.removeAttribute(r)})),t.classList&&t.classList.length)){var m=d.map((function(e){return"string"==typeof e?function(t){return t===e}:e instanceof RegExp?function(t){return e.test(t)}:u.noop}));Array.from(t.classList).forEach((function(e){m.some((function(t){return t(e)}))||t.classList.remove(e)})),t.classList.length||t.removeAttribute("class")}if(t.hasChildNodes()){if("*"===f)return;if(f)p.length&&!t.querySelector(p.join(","))?(e(t.childNodes,r,n,a),Object(mr.unwrap)(t)):"BODY"===t.parentNode.nodeName&&vr(t)?(e(t.childNodes,r,n,a),Array.from(t.childNodes).some((function(e){return!vr(e)}))&&Object(mr.unwrap)(t)):e(t.childNodes,r,f,a);else for(;t.firstChild;)Object(mr.remove)(t.firstChild)}}}))}(n.body.childNodes,n,t,r),n.body.innerHTML}var Cr=window.Node,Ar=Cr.ELEMENT_NODE,Sr=Cr.TEXT_NODE,Er=function(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var i=n.firstChild;i.nodeType===Sr?i.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(i)):n.removeChild(i):i.nodeType===Ar?"BR"===i.nodeName?(i.nextSibling&&"BR"===i.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(i.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(i):n.removeChild(i)):"P"===i.nodeName?Or(i)?n.removeChild(i):a.appendChild(i):vr(i)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(i)):a.appendChild(i):n.removeChild(i)}return a.innerHTML},Pr=window.Node.COMMENT_NODE,Nr=function(e,t){if(e.nodeType===Pr)if("nextpage"!==e.nodeValue){if(0===e.nodeValue.indexOf("more")){for(var r=e.nodeValue.slice(4).trim(),n=e,a=!1;n=n.nextSibling;)if(n.nodeType===Pr&&"noteaser"===n.nodeValue){a=!0,Object(mr.remove)(n);break}Object(mr.replace)(e,function(e,t,r){var n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,a,t))}}else Object(mr.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))};function Br(e){return"OL"===e.nodeName||"UL"===e.nodeName}var Mr=function(e){if(Br(e)){var t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}var n,a=e.parentNode;if(a&&"LI"===a.nodeName&&1===a.children.length&&!/\S/.test((n=a,Object(s.a)(n.childNodes).map((function(e){var t=e.nodeValue;return void 0===t?"":t})).join("")))){var i=a,o=i.previousElementSibling,c=i.parentNode;o?(o.appendChild(t),c.removeChild(i)):(c.parentNode.insertBefore(t,c),c.parentNode.removeChild(c))}if(a&&Br(a)){var u=e.previousElementSibling;u?u.appendChild(e):Object(mr.unwrap)(e)}}},Lr=function(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=Er(e.innerHTML))};var zr=function(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!vr(e)&&Object(u.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(u.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);for(var i=n;i&&"P"!==i.nodeName;)i=i.parentElement;var o=t.createElement("figure");i?i.parentNode.insertBefore(o,i):n.parentNode.insertBefore(o,n),o.appendChild(n)}},Hr=r(159);var Ir=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Me(Le("from"),(function(e){return"shortcode"===e.type&&Object(u.some)(Object(u.castArray)(e.tag),(function(e){return Object(Hr.regexp)(e).test(t)}))}));if(!n)return[t];var a,i=Object(u.castArray)(n.tag),o=Object(u.first)(i);if(a=Object(Hr.next)(o,t,r)){var l=t.substr(0,a.index);if(r=a.index+a.content.length,!Object(u.includes)(a.shortcode.content||"","<")&&!/(\n|

    )\s*$/.test(l))return e(t,r);var d=Object(u.mapValues)(Object(u.pickBy)(n.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(a.shortcode.attrs,a)}));return[l,Te(n.blockName,lr(Object(c.a)({},ge(n.blockName),{attributes:n.attributes}),a.shortcode.content,d))].concat(Object(s.a)(e(t.substr(r))))}return[t]},Dr=window.Node.COMMENT_NODE,Vr=function(e){e.nodeType===Dr&&Object(mr.remove)(e)};function Rr(e,t){return e.every((function(e){return function(e,t){if(vr(e))return!0;if(!t)return!1;var r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some((function(e){return 0===Object(u.difference)([r,t],e).length}))}(e,t)&&Rr(Array.from(e.children),t)}))}function Fr(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}var $r=function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(Fr)&&Rr(n,t)},qr=function(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,i=r.textDecorationLine,o=r.verticalAlign;"bold"!==n&&"700"!==n||Object(mr.wrap)(t.createElement("strong"),e),"italic"===a&&Object(mr.wrap)(t.createElement("em"),e),"line-through"===i&&Object(mr.wrap)(t.createElement("s"),e),"super"===o?Object(mr.wrap)(t.createElement("sup"),e):"sub"===o&&Object(mr.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(mr.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(mr.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))},Ur=function(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)},Gr=window.parseInt;function Wr(e){return"OL"===e.nodeName||"UL"===e.nodeName}var Kr=function(e,t){if("P"===e.nodeName){var r=e.getAttribute("style");if(r&&-1!==r.indexOf("mso-list")){var n=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);if(n){var a=Gr(n[1],10)-1||0,i=e.previousElementSibling;if(!i||!Wr(i)){var o=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(o),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",o),e.parentNode.insertBefore(c,e)}var u=e.previousElementSibling,l=u.nodeName,d=t.createElement("li"),f=u;for(e.removeChild(e.firstElementChild);e.firstChild;)d.appendChild(e.firstChild);for(;a--;)Wr(f=f.lastElementChild||f)&&(f=f.lastElementChild||f);Wr(f)||(f=f.appendChild(t.createElement(l))),f.appendChild(d),e.parentNode.removeChild(e)}}}},Yr=r(35),Zr=window,Qr=Zr.atob,Xr=Zr.File,Jr=function(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){var t,r=e.src.split(","),n=Object(Ie.a)(r,2),a=n[0],i=n[1],o=a.slice(5).split(";"),s=Object(Ie.a)(o,1)[0];if(!i||!s)return void(e.src="");try{t=Qr(i)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u]+>/,""),"INLINE"!==o){var f=r||a;if(-1!==f.indexOf("\x3c!-- wp:"))return pr(f)}if(String.prototype.normalize&&(r=r.normalize()),!a||r&&!function(e){return!/<(?!br[ />])/i.test(e)}(r)||(r=rn(a),"AUTO"===o&&-1===a.indexOf("\n")&&0!==a.indexOf("

    ")&&0===r.indexOf("

    ")&&(o="INLINE")),"INLINE"===o)return sn(r);var h=Ir(r),p=h.length>1;if("AUTO"===o&&!p&&$r(r,s))return sn(r);var g=Object(u.filter)(Le("from"),{type:"raw"}).map((function(e){return e.isMatch?e:Object(c.a)({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),m=_r(),b=jr(g),_=Object(u.compact)(Object(u.flatMap)(h,(function(e){if("string"!=typeof e)return e;var t=[an,Kr,Ur,Mr,Jr,qr,Nr,Vr,zr,Lr];d||t.unshift(nn);var r=Object(c.a)({},b,m);return e=xr(e=Tr(e,t,b),r),e=Er(e),on.log("Processed HTML piece:\n\n",e),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map((function(e){var t=Me(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return Te("core/html",lr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):Te(a,lr(a,e.outerHTML))}))}({html:e,rawTransforms:g})})));if("AUTO"===o&&1===_.length){var v=a.trim();if(""!==v&&-1===v.indexOf("\n"))return xr(wt(_[0]),m)}return _}function un(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return pr(r);var n=Ir(r),a=Object(u.filter)(Le("from"),{type:"raw"}).map((function(e){return e.isMatch?e:Object(c.a)({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),i=jr(a);return Object(u.compact)(Object(u.flatMap)(n,(function(e){return"string"!=typeof e?e:(e=Tr(e,[Mr,Nr,zr,Lr],i),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map((function(e){var t=Me(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return Te("core/html",lr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):Te(a,lr(a,e.outerHTML))}))}({html:e=Er(e),rawTransforms:a}))})))}function ln(){return Object(i.select)("core/blocks").getCategories()}function dn(e){Object(i.dispatch)("core/blocks").setCategories(e)}function fn(e,t){Object(i.dispatch)("core/blocks").updateCategory(e,t)}function hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(u.every)(t,(function(t,r){var n=Object(Ie.a)(t,3),a=n[0],i=n[2],o=e[r];return a===o.name&&hn(o.innerBlocks,i)}))}function pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(u.map)(t,(function(t,r){var n=Object(Ie.a)(t,3),a=n[0],i=n[1],o=n[2],s=e[r];if(s&&s.name===a){var l=pn(s.innerBlocks,o);return Object(c.a)({},s,{innerBlocks:l})}var d=ge(a),f=function(e,t){return Object(u.mapValues)(t,(function(t,r){return h(e[r],t)}))},h=function(e,t){return r=e,"html"===Object(u.get)(r,["source"])&&Object(u.isArray)(t)?Object(Y.renderToString)(t):function(e){return"query"===Object(u.get)(e,["source"])}(e)&&t?t.map((function(t){return f(e.query,t)})):t;var r};return Te(a,f(Object(u.get)(d,["attributes"],{}),i),pn([],o))})):e}r.d(t,"createBlock",(function(){return Te})),r.d(t,"cloneBlock",(function(){return xe})),r.d(t,"getPossibleBlockTransformations",(function(){return Be})),r.d(t,"switchToBlockType",(function(){return ze})),r.d(t,"getBlockTransforms",(function(){return Le})),r.d(t,"findTransform",(function(){return Me})),r.d(t,"getBlockFromExample",(function(){return He})),r.d(t,"parse",(function(){return gr})),r.d(t,"getBlockAttributes",(function(){return lr})),r.d(t,"parseWithAttributeSchema",(function(){return cr})),r.d(t,"pasteHandler",(function(){return cn})),r.d(t,"rawHandler",(function(){return un})),r.d(t,"getPhrasingContentSchema",(function(){return _r})),r.d(t,"serialize",(function(){return Ot})),r.d(t,"getBlockContent",(function(){return wt})),r.d(t,"getBlockDefaultClassName",(function(){return bt})),r.d(t,"getBlockMenuDefaultClassName",(function(){return _t})),r.d(t,"getSaveElement",(function(){return vt})),r.d(t,"getSaveContent",(function(){return kt})),r.d(t,"isValidBlockContent",(function(){return Wt})),r.d(t,"getCategories",(function(){return ln})),r.d(t,"setCategories",(function(){return dn})),r.d(t,"updateCategory",(function(){return fn})),r.d(t,"registerBlockType",(function(){return ie})),r.d(t,"unregisterBlockType",(function(){return oe})),r.d(t,"setFreeformContentHandlerName",(function(){return se})),r.d(t,"getFreeformContentHandlerName",(function(){return ce})),r.d(t,"setUnregisteredTypeHandlerName",(function(){return le})),r.d(t,"getUnregisteredTypeHandlerName",(function(){return de})),r.d(t,"setDefaultBlockName",(function(){return fe})),r.d(t,"getDefaultBlockName",(function(){return pe})),r.d(t,"setGroupingBlockName",(function(){return he})),r.d(t,"getGroupingBlockName",(function(){return ue})),r.d(t,"getBlockType",(function(){return ge})),r.d(t,"getBlockTypes",(function(){return me})),r.d(t,"getBlockSupport",(function(){return be})),r.d(t,"hasBlockSupport",(function(){return _e})),r.d(t,"isReusableBlock",(function(){return ve})),r.d(t,"getChildBlockNames",(function(){return ke})),r.d(t,"hasChildBlocks",(function(){return we})),r.d(t,"hasChildBlocksWithInserterSupport",(function(){return ye})),r.d(t,"unstable__bootstrapServerSideBlockDefinitions",(function(){return ae})),r.d(t,"registerBlockStyle",(function(){return je})),r.d(t,"unregisterBlockStyle",(function(){return Oe})),r.d(t,"isUnmodifiedDefaultBlock",(function(){return Q})),r.d(t,"normalizeIconObject",(function(){return J})),r.d(t,"isValidIcon",(function(){return X})),r.d(t,"doBlocksMatchTemplate",(function(){return hn})),r.d(t,"synchronizeBlocksWithTemplate",(function(){return pn})),r.d(t,"children",(function(){return Qt})),r.d(t,"node",(function(){return ar})),r.d(t,"withBlockContentContext",(function(){return gt}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},41:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},49:function(e,t,r){var n;!function(a){var i=/^\s+/,o=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,d=a.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,r=!1;if(E[e])e=E[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:D(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:D(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(h=e.r,p=e.g,g=e.b,t={r:255*B(h,255),g:255*B(p,255),b:255*B(g,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=H(e.s),s=H(e.v),t=function(e,t,r){e=6*B(e,360),t=B(t,100),r=B(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),c=r*(1-(1-i)*t),u=n%6;return{r:255*[r,s,o,o,c,r][u],g:255*[c,r,r,s,o,o][u],b:255*[o,o,c,r,r,s][u]}}(e.h,n,s),d=!0,f="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=H(e.s),c=H(e.l),t=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=B(e,360),t=B(t,100),r=B(r,100),0===t)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,n,c),d=!0,f="hsl"),e.hasOwnProperty("a")&&(r=e.a));var h,p,g;return r=N(r),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function h(e,t,r){e=B(e,255),t=B(t,255),r=B(r,255);var n,a,i=l(e,t,r),o=u(e,t,r),s=(i+o)/2;if(i==o)n=a=0;else{var c=i-o;switch(a=s>.5?c/(2-i-o):c/(i+o),i){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(f(n));return i}function S(e,t){t=t||6;for(var r=f(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(f({h:n,s:a,v:i})),i=(i+s)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var i=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(I(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*B(this._r,255))+"%",g:c(100*B(this._g,255))+"%",b:c(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%)":"rgba("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);r="#"+m(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(j,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:H(e[n]));e=r}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,r){r=0===r?0:r||50;var n=f(e).toRgb(),a=f(t).toRgb(),i=r/100;return f({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},f.readability=function(e,t){var r=f(e),n=f(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,t,r){var n,a,i=f.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},f.mostReadable=function(e,t,r){var n,a,i,o,s=null,c=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var u=0;uc&&(c=n,s=f(t[u]));return f.isReadable(e,s,{level:i,size:o})||!a?s:(r.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],r))};var E=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=f.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(E);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function B(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return u(1,l(0,e))}function L(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function H(e){return e<=1&&(e=100*e+"%"),e}function I(e){return a.round(255*parseFloat(e)).toString(16)}function D(e){return L(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}(Math)},54:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(10);function a(e){for(var t=1;t>>((3&t)<<3)&255;return a}}},93:function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,a=r;return[a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]]].join("")}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.blocks=function(e){var t={};function r(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,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=316)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},11:function(e,t,r){"use strict";function n(e,t){for(var r=0;r (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:

    foo
    ",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var i={},o={},s={},c=a(!0),u="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:function(){"use strict";var e=a(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function d(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};i.helper.isArray(e)||(e=[e]);for(var a=0;a").replace(/&/g,"&")};var h=function(e,t,r,n){"use strict";var a,i,o,s,c,u=n||"",l=u.indexOf("g")>-1,d=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),f=new RegExp(t,u.replace(/g/g,"")),h=[];do{for(a=0;o=d.exec(e);)if(f.test(o[0]))a++||(s=(i=d.lastIndex)-o[0].length);else if(a&&!--a){c=o.index+o[0].length;var p={left:{start:s,end:i},match:{start:i,end:o.index},right:{start:o.index,end:c},wholeMatch:{start:s,end:c}};if(h.push(p),!l)return h}}while(a&&(d.lastIndex=i));return h};i.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=h(e,t,r,n),i=[],o=0;o0){var l=[];0!==s[0].wholeMatch.start&&l.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d=0?n+(r||0):n},i.helper.splitAtIndex=function(e,t){"use strict";if(!i.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},i.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e}))},i.helper.padEnd=function(e,t,r){"use strict";return t>>=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),i.helper.regexes={asteriskDashAndColon:/([*_:~])/g},i.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},i.Converter=function(e){"use strict";var t={},r=[],n=[],a={},o=u,f={parsed:{},raw:"",format:""};function h(e,t){if(t=t||null,i.helper.isString(e)){if(t=e=i.helper.stdExtName(e),i.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new i.Converter));i.helper.isArray(e)||(e=[e]);var a=d(e,t);if(!a.valid)throw Error(a.error);for(var o=0;o[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r? ?(['"].*['"])?\)$/m)>-1)o="";else if(!o){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),o="#"+a,i.helper.isUndefined(r.gUrls[a]))return e;o=r.gUrls[a],i.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var l='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,n,a,o){if("\\"===n)return r+a;if(!i.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,o),c="";return t.openLinksInNewWindow&&(c=' target="¨E95Eblank"'),r+'"+a+""}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,m=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,b=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,v=function(e){"use strict";return function(t,r,n,a,o,s,c){var u=n=n.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback),l="",d="",f=r||"",h=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(d=' target="¨E95Eblank"'),f+'"+u+""+l+h}},k=function(e,t){"use strict";return function(r,n,a){var o="mailto:";return n=n||"",a=i.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(o=i.helper.encodeEmailAddress(o+a),a=i.helper.encodeEmailAddress(a)):o+=a,n+''+a+""}};i.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(m,v(t))).replace(_,k(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),i.subParser("simplifiedAutoLinks",(function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(g,v(t)):e.replace(p,v(t))).replace(b,k(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),i.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=i.subParser("blockQuotes")(e,t,r),e=i.subParser("headers")(e,t,r),e=i.subParser("horizontalRule")(e,t,r),e=i.subParser("lists")(e,t,r),e=i.subParser("codeBlocks")(e,t,r),e=i.subParser("tables")(e,t,r),e=i.subParser("hashHTMLBlocks")(e,t,r),e=i.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),i.subParser("blockQuotes",(function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=i.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=i.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
    [^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")})),i.subParser("hashBlock")("
    \n"+e+"\n
    ",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),i.subParser("codeBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,a){var o=n,s=a,c="\n";return o=i.subParser("outdent")(o,t,r),o=i.subParser("encodeCode")(o,t,r),o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),o="
    "+o+c+"
    ",i.subParser("hashBlock")(o,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),i.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,a,o){var s=o;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+""+(s=i.subParser("encodeCode")(s,t,r))+"",s=i.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),i.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",a="\n",i="",o='\n',s="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(a="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(o='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":i=""+r.metadata.parsed.title+"\n";break;case"charset":o="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}return e=a+"\n\n"+i+o+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),i.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,a=0;a/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),i.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,i.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),i.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),i.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),i.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,a,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=i.subParser("encodeCode")(o,t,r),o="
    "+(o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
    ",o=i.subParser("hashBlock")(o,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),i.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)})),i.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=i.helper.replaceRecursiveRegExp(e,(function(e,n,a,o){var s=a+i.subParser("encodeCode")(n,t,r)+o;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),i.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),i.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,n,a){var i=e;return-1!==n.search(/\bmarkdown\b/)&&(i=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var o=0;o]*>)","im"),u="<"+n[o]+"\\b[^>]*>",l="";-1!==(s=i.helper.regexIndexOf(e,c));){var d=i.helper.splitAtIndex(e,s),f=i.helper.replaceRecursiveRegExp(d[1],a,u,l,"im");if(f===d[1])break;e=d[0].concat(f)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=(e=i.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),i.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),i.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
    ","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),i.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,o=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,(function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=""+o+"";return i.subParser("hashBlock")(u,t,r)}))).replace(o,(function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l=""+o+"";return i.subParser("hashBlock")(l,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,a;if(t.customizedHeaderId){var o=e.match(/\{([^{]+?)}\s*$/);o&&o[1]&&(e=o[1])}return n=e,a=i.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=a+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=a+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,(function(e,a,o){var s=o;t.customizedHeaderId&&(s=o.replace(/\s?\{([^{]+?)}\s*$/,""));var u=i.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(o)+'"',d=n-1+a.length,f=""+u+"";return i.subParser("hashBlock")(f,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),i.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=i.subParser("hashBlock")("
    ",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),i.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,a,o,s,c,u){var l=r.gUrls,d=r.gTitles,f=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,i.helper.isUndefined(l[n]))return e;a=l[n],i.helper.isUndefined(d[n])||(u=d[n]),i.helper.isUndefined(f[n])||(o=f[n].width,s=f[n].height)}t=t.replace(/"/g,""").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var h=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,a,i,o,s,c){return n(e,t,r,a=a.replace(/\s/g,""),i,o,s,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)})),i.subParser("italicsAndBold",(function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return n(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),i.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,o=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(a,(function(e,n,a,s,c,u,l){l=l&&""!==l.trim();var d=i.subParser("outdent")(c,t,r),f="";return u&&t.tasklists&&(f=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='-1?(d=i.subParser("githubCodeBlocks")(d,t,r),d=i.subParser("blockGamut")(d,t,r)):(d=(d=i.subParser("lists")(d,t,r)).replace(/\n$/,""),d=(d=i.subParser("hashHTMLBlocks")(d,t,r)).replace(/\n\n+/g,"\n\n"),d=o?i.subParser("paragraphs")(d,t,r):i.subParser("spanGamut")(d,t,r)),d=""+(d=d.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function o(e,r,i){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?o:s,u="";if(-1!==e.search(c))!function t(l){var d=l.search(c),f=a(e,r);-1!==d?(u+="\n\n<"+r+f+">\n"+n(l.slice(0,d),!!i)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?o:s,t(l.slice(d))):u+="\n\n<"+r+f+">\n"+n(l,!!i)+"\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!i)+"\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r){return o(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r,n){return o(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),i.subParser("metadata",(function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,n){return r.metadata.parsed[t]=n,""}))}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,r){return n(r),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,a){return t&&(r.metadata.format=t),n(a),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),i.subParser("outdent",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)})),i.subParser("paragraphs",(function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],o=n.length,s=0;s=0?a.push(c):c.search(/\S/)>=0&&(c=(c=i.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"

    "),c+="

    ",a.push(c))}for(o=a.length,s=0;s]*>\s*]*>/.test(l)&&(d=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),i.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),i.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=i.subParser("codeSpans")(e,t,r),e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=i.subParser("encodeBackslashEscapes")(e,t,r),e=i.subParser("images")(e,t,r),e=i.subParser("anchors")(e,t,r),e=i.subParser("autoLinks")(e,t,r),e=i.subParser("simplifiedAutoLinks")(e,t,r),e=i.subParser("emoji")(e,t,r),e=i.subParser("underline")(e,t,r),e=i.subParser("italicsAndBold")(e,t,r),e=i.subParser("strikethrough")(e,t,r),e=i.subParser("ellipsis")(e,t,r),e=i.subParser("hashHTMLSpans")(e,t,r),e=i.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
    \n")):e=e.replace(/ +\n/g,"
    \n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),i.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=i.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),i.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,o,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=i.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&o&&s&&(r.gDimensions[n]={width:o,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),i.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+i.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,o=e.split("\n");for(a=0;a"+(c=i.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var i=0;i\n"}return r+="\n\n"}(p,m)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,i.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),i.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),i.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),i.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,o=0;o ")})),i.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),i.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),i.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,o=0;o",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),i.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var o=0;o",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),i.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,o=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),i.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,o=0;otr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rp&&(p=g)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return i}.call(t,r,t,e))||(e.exports=n)}).call(this)},23:function(e,t,r){"use strict";var n=r(38);var a=r(39);function i(e,t){return Object(n.a)(e)||function(e,t){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r}(e,t)||Object(a.a)()}r.d(t,"a",(function(){return i}))},25:function(e,t){!function(){e.exports=this.wp.dom}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},30:function(e,t,r){"use strict";function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},316:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"getBlockTypes",(function(){return k})),r.d(n,"getBlockType",(function(){return w})),r.d(n,"getBlockStyles",(function(){return y})),r.d(n,"getCategories",(function(){return j})),r.d(n,"getDefaultBlockName",(function(){return O})),r.d(n,"getFreeformFallbackBlockName",(function(){return T})),r.d(n,"getUnregisteredFallbackBlockName",(function(){return x})),r.d(n,"getGroupingBlockName",(function(){return C})),r.d(n,"getChildBlockNames",(function(){return A})),r.d(n,"getBlockSupport",(function(){return S})),r.d(n,"hasBlockSupport",(function(){return E})),r.d(n,"isMatchingSearchTerm",(function(){return P})),r.d(n,"hasChildBlocks",(function(){return N})),r.d(n,"hasChildBlocksWithInserterSupport",(function(){return B}));var a={};r.r(a),r.d(a,"addBlockTypes",(function(){return M})),r.d(a,"removeBlockTypes",(function(){return L})),r.d(a,"addBlockStyles",(function(){return z})),r.d(a,"removeBlockStyles",(function(){return H})),r.d(a,"setDefaultBlockName",(function(){return I})),r.d(a,"setFreeformFallbackBlockName",(function(){return D})),r.d(a,"setUnregisteredFallbackBlockName",(function(){return V})),r.d(a,"setGroupingBlockName",(function(){return R})),r.d(a,"setCategories",(function(){return F})),r.d(a,"updateCategory",(function(){return $}));var i=r(4),o=r(10),s=r(17),c=r(7),u=r(2),l=r(1),d=[{slug:"common",title:Object(l.__)("Common Blocks")},{slug:"formatting",title:Object(l.__)("Formatting")},{slug:"layout",title:Object(l.__)("Layout Elements")},{slug:"widgets",title:Object(l.__)("Widgets")},{slug:"embed",title:Object(l.__)("Embeds")},{slug:"reusable",title:Object(l.__)("Reusable Blocks")}];function f(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=f("SET_DEFAULT_BLOCK_NAME"),p=f("SET_FREEFORM_FALLBACK_BLOCK_NAME"),g=f("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=f("SET_GROUPING_BLOCK_NAME");var b=Object(i.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return Object(c.a)({},e,Object(u.keyBy)(Object(u.map)(t.blockTypes,(function(e){return Object(u.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(u.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return Object(c.a)({},e,Object(u.mapValues)(Object(u.keyBy)(t.blockTypes,"name"),(function(t){return Object(u.uniqBy)([].concat(Object(s.a)(Object(u.get)(t,["styles"],[])),Object(s.a)(Object(u.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return Object(c.a)({},e,Object(o.a)({},t.blockName,Object(u.uniqBy)([].concat(Object(s.a)(Object(u.get)(e,[t.blockName],[])),Object(s.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return Object(c.a)({},e,Object(o.a)({},t.blockName,Object(u.filter)(Object(u.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:p,unregisteredFallbackBlockName:g,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(u.isEmpty)(t.category))return e;if(Object(u.find)(e,["slug",t.slug]))return Object(u.map)(e,(function(e){return e.slug===t.slug?Object(c.a)({},e,t.category):e}))}return e}}),_=r(36),v=function(e,t){return"string"==typeof t?w(e,t):t},k=Object(_.a)((function(e){return Object.values(e.blockTypes)}),(function(e){return[e.blockTypes]}));function w(e,t){return e.blockTypes[t]}function y(e,t){return e.blockStyles[t]}function j(e){return e.categories}function O(e){return e.defaultBlockName}function T(e){return e.freeformFallbackBlockName}function x(e){return e.unregisteredFallbackBlockName}function C(e){return e.groupingBlockName}var A=Object(_.a)((function(e,t){return Object(u.map)(Object(u.filter)(e.blockTypes,(function(e){return Object(u.includes)(e.parent,t)})),(function(e){return e.name}))}),(function(e){return[e.blockTypes]})),S=function(e,t,r,n){var a=v(e,t);return Object(u.get)(a,["supports",r],n)};function E(e,t,r,n){return!!S(e,t,r,n)}function P(e,t,r){var n=v(e,t),a=Object(u.flow)([u.deburr,function(e){return e.toLowerCase()},function(e){return e.trim()}]),i=a(r),o=Object(u.flow)([a,function(e){return Object(u.includes)(e,i)}]);return o(n.title)||Object(u.some)(n.keywords,o)||o(n.category)}var N=function(e,t){return A(e,t).length>0},B=function(e,t){return Object(u.some)(A(e,t),(function(t){return E(e,t,"inserter",!0)}))};function M(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(u.castArray)(e)}}function L(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(u.castArray)(e)}}function z(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(u.castArray)(t),blockName:e}}function H(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(u.castArray)(t),blockName:e}}function I(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function D(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function V(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function R(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function F(e){return{type:"SET_CATEGORIES",categories:e}}function $(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}Object(i.registerStore)("core/blocks",{reducer:b,selectors:n,actions:a});var q=r(64),U=r.n(q),G=r(27),W=r(48),K=r.n(W),Y=r(0),Z=["#191e23","#f8f9f9"];function Q(e){var t=pe();if(e.name!==t)return!1;Q.block&&Q.block.name===t||(Q.block=Te(t));var r=Q.block,n=ge(t);return Object(u.every)(n.attributes,(function(t,n){return r.attributes[n]===e.attributes[n]}))}function X(e){return!!e&&(Object(u.isString)(e)||Object(Y.isValidElement)(e)||Object(u.isFunction)(e)||e instanceof Y.Component)}function J(e){if(X(e))return{src:e};if(Object(u.has)(e,["background"])){var t=K()(e.background);return Object(c.a)({},e,{foreground:e.foreground?e.foreground:Object(W.mostReadable)(t,Z,{includeFallbackColors:!0,level:"AA",size:"large"}).toHexString(),shadowColor:t.setAlpha(.3).toRgbString()})}return e}function ee(e){return Object(u.isString)(e)?ge(e):e}var te=["attributes","supports","save","migrate","isEligible"],re={icon:"block-default",attributes:{},keywords:[],save:function(){return null}},ne={};function ae(e){ne=Object(c.a)({},ne,e)}function ie(e,t){if(t=Object(c.a)({name:e},re,Object(u.get)(ne,e),t),"string"==typeof e)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(e))if(Object(i.select)("core/blocks").getBlockType(e))console.error('Block "'+e+'" is already registered.');else{var r=Object(c.a)({},t);if((t=Object(G.applyFilters)("blocks.registerBlockType",t,e)).deprecated&&(t.deprecated=t.deprecated.map((function(t){return Object(u.pick)(Object(G.applyFilters)("blocks.registerBlockType",Object(c.a)({},Object(u.omit)(r,te),t),e),te)}))),Object(u.isPlainObject)(t))if(Object(u.isFunction)(t.save))if("edit"in t&&!Object(u.isFunction)(t.edit))console.error('The "edit" property must be a valid function.');else if("category"in t)if("category"in t&&!Object(u.some)(Object(i.select)("core/blocks").getCategories(),{slug:t.category}))console.error('The block "'+e+'" must have a registered category.');else if("title"in t&&""!==t.title)if("string"==typeof t.title){if(t.icon=J(t.icon),X(t.icon.src))return Object(i.dispatch)("core/blocks").addBlockTypes(t),t;console.error("The icon passed is invalid. The icon should be a string, an element, a function, or an object following the specifications documented in https://developer.wordpress.org/block-editor/developers/block-api/block-registration/#icon-optional")}else console.error("Block titles must be strings.");else console.error('The block "'+e+'" must have a title.');else console.error('The block "'+e+'" must have a category.');else console.error('The "save" property must be a valid function.');else console.error("Block settings must be a valid object.")}else console.error("Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block");else console.error("Block names must be strings.")}function oe(e){var t=Object(i.select)("core/blocks").getBlockType(e);if(t)return Object(i.dispatch)("core/blocks").removeBlockTypes(e),t;console.error('Block "'+e+'" is not registered.')}function se(e){Object(i.dispatch)("core/blocks").setFreeformFallbackBlockName(e)}function ce(){return Object(i.select)("core/blocks").getFreeformFallbackBlockName()}function ue(){return Object(i.select)("core/blocks").getGroupingBlockName()}function le(e){Object(i.dispatch)("core/blocks").setUnregisteredFallbackBlockName(e)}function de(){return Object(i.select)("core/blocks").getUnregisteredFallbackBlockName()}function fe(e){Object(i.dispatch)("core/blocks").setDefaultBlockName(e)}function he(e){Object(i.dispatch)("core/blocks").setGroupingBlockName(e)}function pe(){return Object(i.select)("core/blocks").getDefaultBlockName()}function ge(e){return Object(i.select)("core/blocks").getBlockType(e)}function me(){return Object(i.select)("core/blocks").getBlockTypes()}function be(e,t,r){return Object(i.select)("core/blocks").getBlockSupport(e,t,r)}function _e(e,t,r){return Object(i.select)("core/blocks").hasBlockSupport(e,t,r)}function ve(e){return"core/block"===e.name}var ke=function(e){return Object(i.select)("core/blocks").getChildBlockNames(e)},we=function(e){return Object(i.select)("core/blocks").hasChildBlocks(e)},ye=function(e){return Object(i.select)("core/blocks").hasChildBlocksWithInserterSupport(e)},je=function(e,t){Object(i.dispatch)("core/blocks").addBlockStyles(e,t)},Oe=function(e,t){Object(i.dispatch)("core/blocks").removeBlockStyles(e,t)};function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=ge(e),a=Object(u.reduce)(n.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{});return{clientId:U()(),name:e,isValid:!0,attributes:a,innerBlocks:r}}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=U()();return Object(c.a)({},e,{clientId:n,attributes:Object(c.a)({},e.attributes,t),innerBlocks:r||e.innerBlocks.map((function(e){return xe(e)}))})}var Ce=function(e,t,r){if(Object(u.isEmpty)(r))return!1;var n=r.length>1,a=Object(u.first)(r).name;if(!(Ee(e)||!n||e.isMultiBlock))return!1;if(!Ee(e)&&!Object(u.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var i=Object(u.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(i.name)||Ee(e)))return!1;if(!n&&Pe(i.name)&&Pe(e.blockName))return!1;if(Object(u.isFunction)(e.isMatch)){var o=e.isMultiBlock?r.map((function(e){return e.attributes})):i.attributes;if(!e.isMatch(o))return!1}return!0},Ae=function(e){if(Object(u.isEmpty)(e))return[];var t=me();return Object(u.filter)(t,(function(t){return!!Me(Le("from",t.name),(function(t){return Ce(t,"from",e)}))}))},Se=function(e){if(Object(u.isEmpty)(e))return[];var t=Le("to",ge(Object(u.first)(e).name).name),r=Object(u.filter)(t,(function(t){return t&&Ce(t,"to",e)}));return Object(u.flatMap)(r,(function(e){return e.blocks})).map((function(e){return ge(e)}))},Ee=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},Pe=function(e){return e===ue()},Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e.length)return!1;var t=e[0].name;return Object(u.every)(e,["name",t])};function Be(e){if(Object(u.isEmpty)(e))return[];var t=Ae(e),r=Se(e);return Object(u.uniq)([].concat(Object(s.a)(t),Object(s.a)(r)))}function Me(e,t){for(var r=Object(G.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,a=r[0],i=a.name;if(!Pe(t)&&n&&!Ne(r))return null;var o,s=Le("from",t),l=Me(Le("to",i),(function(e){return"block"===e.type&&(Ee(e)||-1!==e.blocks.indexOf(t))&&(!n||e.isMultiBlock)}))||Me(s,(function(e){return"block"===e.type&&(Ee(e)||-1!==e.blocks.indexOf(i))&&(!n||e.isMultiBlock)}));if(!l)return null;if(o=l.isMultiBlock?Object(u.has)(l,"__experimentalConvert")?l.__experimentalConvert(r):l.transform(r.map((function(e){return e.attributes})),r.map((function(e){return e.innerBlocks}))):Object(u.has)(l,"__experimentalConvert")?l.__experimentalConvert(a):l.transform(a.attributes,a.innerBlocks),!Object(u.isObjectLike)(o))return null;if((o=Object(u.castArray)(o)).some((function(e){return!ge(e.name)})))return null;var d=Object(u.findIndex)(o,(function(e){return e.name===t}));return d<0?null:o.map((function(t,r){var n=Object(c.a)({},t,{clientId:r===d?a.clientId:t.clientId});return Object(G.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var He=function e(t,r){return Te(t,r.attributes,Object(u.map)(r.innerBlocks,(function(t){return e(t.name,t)})))},Ie=r(23);var De,Ve=function(){return De||(De=document.implementation.createHTMLDocument("")),De};function Re(e,t){if(t){if("string"==typeof e){var r=Ve();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=Re(e,t[n]),r}),{})}}function Fe(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return function(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}(n,t)}}var $e=r(66),qe=r(199),Ue=r(38),Ge=r(30),We=r(39);var Ke=r(12),Ye=r(11),Ze=/^#[xX]([A-Fa-f0-9]+)$/,Qe=/^#([0-9]+)$/,Xe=/^([A-Za-z0-9]+)$/,Je=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(Ze);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(Qe))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Xe))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),et=/[A-Za-z]/,tt=/\r\n?/g;function rt(e){return Je.test(e)}function nt(e){return et.test(e)}var at=function(){function e(e,t){this.delegate=e,this.entityParser=t,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer.toLowerCase();"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||nt(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){"-"===this.consume()&&"-"===this.peek()&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();rt(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();rt(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();rt(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();rt(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();rt(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();rt(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();rt(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();rt(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||nt(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(tt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),it=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new at(this,e),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:[],n=ee(e),a=n.save;if(a.prototype instanceof Y.Component){var i=new a({attributes:t});a=i.render.bind(i)}var o=a({attributes:t,innerBlocks:r});if(Object(u.isObject)(o)&&Object(G.hasFilter)("blocks.getSaveContent.extraProps")){var s=Object(G.applyFilters)("blocks.getSaveContent.extraProps",Object(c.a)({},o.props),n,t);ut()(s,o.props)||(o=Object(Y.cloneElement)(o,s))}return o=Object(G.applyFilters)("blocks.getSaveElement",o,n,t),Object(Y.createElement)(mt,{innerBlocks:r},o)}function kt(e,t,r){var n=ee(e);return Object(Y.renderToString)(vt(n,t,r))}function wt(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=kt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function yt(e,t,r){var n=Object(u.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(u.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function jt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isInnerBlocks,r=void 0!==t&&t,n=e.name,a=wt(e);return n===de()||!r&&n===ce()?a:yt(n,function(e,t){return Object(u.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a?e:void 0!==r.source?e:"default"in r&&r.default===a?e:(e[n]=a,e)}),{})}(ge(n),e.attributes),a)}function Ot(e,t){return Object(u.castArray)(e).map((function(e){return jt(e,t)})).join("\n\n")}var Tt=/[\t\n\r\v\f ]+/g,xt=/^[\t\n\r\v\f ]*$/,Ct=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,At=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],St=[].concat(At,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),Et=[u.identity,function(e){return Lt(e).join(" ")}],Pt=/^[\da-z]+$/i,Nt=/^#\d+$/,Bt=/^#x[\da-f]+$/i;var Mt=function(){function e(){Object(Ke.a)(this,e)}return Object(Ye.a)(e,[{key:"parse",value:function(e){if(t=e,Pt.test(t)||Nt.test(t)||Bt.test(t))return Object(ot.decodeEntities)("&"+e+";");var t}}]),e}();function Lt(e){return e.trim().split(Tt)}function zt(e){return e.attributes.filter((function(e){var t=Object(Ie.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(u.includes)(St,r)}))}function Ht(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st(),n=e.chars,a=t.chars,i=0;i2&&void 0!==arguments[2]?arguments[2]:st();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;var n=[e,t].map(u.fromPairs),a=Object(Ie.a)(n,2),i=a[0],o=a[1];for(var s in i){if(!o.hasOwnProperty(s))return r.warning("Encountered unexpected attribute `%s`.",s),!1;var c=i[s],l=o[s],d=Vt[s];if(d){if(!d(c,l))return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",s,l,c),!1}else if(c!==l)return r.warning("Expected attribute `%s` of value `%s`, saw `%s`.",s,l,c),!1}return!0}var Ft={StartTag:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st();return e.tagName!==t.tagName?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):Rt.apply(void 0,Object(s.a)([e,t].map(zt)).concat([r]))},Chars:Ht,Comment:Ht};function $t(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!xt.test(t.chars))return t}}function qt(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Ut(e,t){var r,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st(),i=[e,t].map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:st();try{return new it(new Mt).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}(e,a)})),o=Object(Ie.a)(i,2),s=o[0],c=o[1];if(!s||!c)return!1;for(;r=$t(s);){if(!(n=$t(c)))return a.warning("Expected end of content, instead saw %o.",r),!1;if(r.type!==n.type)return a.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",n.type,n,r.type,r),!1;var u=Ft[r.type];if(u&&!u(r,n,a))return!1;qt(r,c[0])?$t(c):qt(n,s[0])&&$t(s)}return!(n=$t(c))||(a.warning("Expected %o, instead saw end of content.",n),!1)}function Gt(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){var e=[],t=st();return{error:function(){for(var r=arguments.length,n=new Array(r),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},n=ee(e),a=Object(u.mapValues)(n.attributes,(function(e,n){return ur(n,e,t,r)}));return Object(G.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function dr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,i=e.innerHTML,o=e.innerContent,l=ce(),d=de()||l;r=r||{},i=i.trim();var f=t||l;"core/cover-image"===f&&(f="core/cover"),"core/text"!==f&&"core/cover-text"!==f||(f="core/paragraph"),f===l&&(i=Object($e.autop)(i).trim());var h=ge(f);if(!h){var p={attrs:r,blockName:t,innerBlocks:a,innerContent:o},g=fr(p,{isCommentDelimited:!1}),m=fr(p,{isCommentDelimited:!0});f&&(i=m),r={originalName:t,originalContent:m,originalUndelimitedContent:g},h=ge(f=d)}a=(a=a.map(dr)).filter((function(e){return e}));var b=f===l||f===d;if(h&&(i||!b)){var _=Te(f,lr(h,i,r),a);if(!b){var v=Gt(h,_.attributes,i),k=v.isValid,w=v.validationIssues;_.isValid=k,_.validationIssues=w}return _.originalContent=_.originalContent||i,(_=function(e,t){var r=ge(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,i=a.originalContent,o=a.innerBlocks,l=0;l0&&(_.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",h.name,h,kt(h,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(s.a)(r))}))),_}}function fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,i=e.attrs,o=void 0===i?{}:i,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=0,d=(void 0===u?[]:u).map((function(e){return null!==e?e:fr(c[l++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?yt(a,o,d):d}var hr,pr=(hr=qe.parse,function(e){return hr(e).reduce((function(e,t){var r=dr(t);return r&&e.push(r),e}),[])}),gr=pr,mr=r(25),br={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},"#text":{}};function _r(){return br}function vr(e){var t=e.nodeName.toLowerCase();return _r().hasOwnProperty(t)||"span"===t}["strong","em","s","del","ins","a","code","abbr","sub","sup"].forEach((function(e){br[e].children=Object(u.omit)(br,e)}));var kr=window.Node,wr=kr.ELEMENT_NODE,yr=kr.TEXT_NODE;function jr(e){var t=e.map((function(e){var t=e.isMatch,r=e.blockName,n=e.schema,a=_e(r,"anchor");return a||t?Object(u.mapValues)(n,(function(e){var r=e.attributes||[];return a&&(r=[].concat(Object(s.a)(r),["id"])),Object(c.a)({},e,{attributes:r,isMatch:t||void 0})})):n}));return u.mergeWith.apply(void 0,[{}].concat(Object(s.a)(t),[function(e,t,r){switch(r){case"children":return"*"===e||"*"===t?"*":Object(c.a)({},e,t);case"attributes":case"require":return[].concat(Object(s.a)(e||[]),Object(s.a)(t||[]));case"isMatch":if(!e||!t)return;return function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}}]))}function Or(e){return!e.hasChildNodes()||Array.from(e.childNodes).every((function(e){return e.nodeType===yr?!e.nodeValue.trim():e.nodeType!==wr||("BR"===e.nodeName||!e.hasAttributes()&&Or(e))}))}function Tr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,function e(t,r,n,a){Array.from(t).forEach((function(t){e(t.childNodes,r,n,a),r.forEach((function(e){n.contains(t)&&e(t,n,a)}))}))}(n.body.childNodes,t,n,r),n.body.innerHTML}function xr(e,t,r){var n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,function e(t,r,n,a){Array.from(t).forEach((function(t){var i=t.nodeName.toLowerCase();if(!n.hasOwnProperty(i)||n[i].isMatch&&!n[i].isMatch(t))e(t.childNodes,r,n,a),a&&!vr(t)&&t.nextElementSibling&&Object(mr.insertAfter)(r.createElement("br"),t),Object(mr.unwrap)(t);else if(t.nodeType===wr){var o=n[i],s=o.attributes,c=void 0===s?[]:s,l=o.classes,d=void 0===l?[]:l,f=o.children,h=o.require,p=void 0===h?[]:h,g=o.allowEmpty;if(f&&!g&&Or(t))return void Object(mr.remove)(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach((function(e){var r=e.name;"class"===r||Object(u.includes)(c,r)||t.removeAttribute(r)})),t.classList&&t.classList.length)){var m=d.map((function(e){return"string"==typeof e?function(t){return t===e}:e instanceof RegExp?function(t){return e.test(t)}:u.noop}));Array.from(t.classList).forEach((function(e){m.some((function(t){return t(e)}))||t.classList.remove(e)})),t.classList.length||t.removeAttribute("class")}if(t.hasChildNodes()){if("*"===f)return;if(f)p.length&&!t.querySelector(p.join(","))?(e(t.childNodes,r,n,a),Object(mr.unwrap)(t)):"BODY"===t.parentNode.nodeName&&vr(t)?(e(t.childNodes,r,n,a),Array.from(t.childNodes).some((function(e){return!vr(e)}))&&Object(mr.unwrap)(t)):e(t.childNodes,r,f,a);else for(;t.firstChild;)Object(mr.remove)(t.firstChild)}}}))}(n.body.childNodes,n,t,r),n.body.innerHTML}var Cr=window.Node,Ar=Cr.ELEMENT_NODE,Sr=Cr.TEXT_NODE,Er=function(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var i=n.firstChild;i.nodeType===Sr?i.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(i)):n.removeChild(i):i.nodeType===Ar?"BR"===i.nodeName?(i.nextSibling&&"BR"===i.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(i.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(i):n.removeChild(i)):"P"===i.nodeName?Or(i)?n.removeChild(i):a.appendChild(i):vr(i)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(i)):a.appendChild(i):n.removeChild(i)}return a.innerHTML},Pr=window.Node.COMMENT_NODE,Nr=function(e,t){if(e.nodeType===Pr)if("nextpage"!==e.nodeValue){if(0===e.nodeValue.indexOf("more")){for(var r=e.nodeValue.slice(4).trim(),n=e,a=!1;n=n.nextSibling;)if(n.nodeType===Pr&&"noteaser"===n.nodeValue){a=!0,Object(mr.remove)(n);break}Object(mr.replace)(e,function(e,t,r){var n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,a,t))}}else Object(mr.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))};function Br(e){return"OL"===e.nodeName||"UL"===e.nodeName}var Mr=function(e){if(Br(e)){var t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}var n,a=e.parentNode;if(a&&"LI"===a.nodeName&&1===a.children.length&&!/\S/.test((n=a,Object(s.a)(n.childNodes).map((function(e){var t=e.nodeValue;return void 0===t?"":t})).join("")))){var i=a,o=i.previousElementSibling,c=i.parentNode;o?(o.appendChild(t),c.removeChild(i)):(c.parentNode.insertBefore(t,c),c.parentNode.removeChild(c))}if(a&&Br(a)){var u=e.previousElementSibling;u?u.appendChild(e):Object(mr.unwrap)(e)}}},Lr=function(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=Er(e.innerHTML))};var zr=function(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!vr(e)&&Object(u.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(u.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);for(var i=n;i&&"P"!==i.nodeName;)i=i.parentElement;var o=t.createElement("figure");i?i.parentNode.insertBefore(o,i):n.parentNode.insertBefore(o,n),o.appendChild(n)}},Hr=r(136);var Ir=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Me(Le("from"),(function(e){return"shortcode"===e.type&&Object(u.some)(Object(u.castArray)(e.tag),(function(e){return Object(Hr.regexp)(e).test(t)}))}));if(!n)return[t];var a,i=Object(u.castArray)(n.tag),o=Object(u.first)(i);if(a=Object(Hr.next)(o,t,r)){var l=t.substr(0,a.index);if(r=a.index+a.content.length,!Object(u.includes)(a.shortcode.content||"","<")&&!/(\n|

    )\s*$/.test(l))return e(t,r);var d=Object(u.mapValues)(Object(u.pickBy)(n.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(a.shortcode.attrs,a)}));return[l,Te(n.blockName,lr(Object(c.a)({},ge(n.blockName),{attributes:n.attributes}),a.shortcode.content,d))].concat(Object(s.a)(e(t.substr(r))))}return[t]},Dr=window.Node.COMMENT_NODE,Vr=function(e){e.nodeType===Dr&&Object(mr.remove)(e)};function Rr(e,t){return e.every((function(e){return function(e,t){if(vr(e))return!0;if(!t)return!1;var r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some((function(e){return 0===Object(u.difference)([r,t],e).length}))}(e,t)&&Rr(Array.from(e.children),t)}))}function Fr(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}var $r=function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(Fr)&&Rr(n,t)},qr=function(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,i=r.textDecorationLine,o=r.verticalAlign;"bold"!==n&&"700"!==n||Object(mr.wrap)(t.createElement("strong"),e),"italic"===a&&Object(mr.wrap)(t.createElement("em"),e),"line-through"===i&&Object(mr.wrap)(t.createElement("s"),e),"super"===o?Object(mr.wrap)(t.createElement("sup"),e):"sub"===o&&Object(mr.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(mr.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(mr.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))},Ur=function(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)},Gr=window.parseInt;function Wr(e){return"OL"===e.nodeName||"UL"===e.nodeName}var Kr=function(e,t){if("P"===e.nodeName){var r=e.getAttribute("style");if(r&&-1!==r.indexOf("mso-list")){var n=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);if(n){var a=Gr(n[1],10)-1||0,i=e.previousElementSibling;if(!i||!Wr(i)){var o=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(o),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",o),e.parentNode.insertBefore(c,e)}var u=e.previousElementSibling,l=u.nodeName,d=t.createElement("li"),f=u;for(e.removeChild(e.firstElementChild);e.firstChild;)d.appendChild(e.firstChild);for(;a--;)Wr(f=f.lastElementChild||f)&&(f=f.lastElementChild||f);Wr(f)||(f=f.appendChild(t.createElement(l))),f.appendChild(d),e.parentNode.removeChild(e)}}}},Yr=r(35),Zr=window,Qr=Zr.atob,Xr=Zr.File,Jr=function(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){var t,r=e.src.split(","),n=Object(Ie.a)(r,2),a=n[0],i=n[1],o=a.slice(5).split(";"),s=Object(Ie.a)(o,1)[0];if(!i||!s)return void(e.src="");try{t=Qr(i)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u]+>/,""),"INLINE"!==o){var f=r||a;if(-1!==f.indexOf("\x3c!-- wp:"))return pr(f)}if(String.prototype.normalize&&(r=r.normalize()),!a||r&&!function(e){return!/<(?!br[ />])/i.test(e)}(r)||(r=rn(a),"AUTO"===o&&-1===a.indexOf("\n")&&0!==a.indexOf("

    ")&&0===r.indexOf("

    ")&&(o="INLINE")),"INLINE"===o)return sn(r);var h=Ir(r),p=h.length>1;if("AUTO"===o&&!p&&$r(r,s))return sn(r);var g=Object(u.filter)(Le("from"),{type:"raw"}).map((function(e){return e.isMatch?e:Object(c.a)({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),m=_r(),b=jr(g),_=Object(u.compact)(Object(u.flatMap)(h,(function(e){if("string"!=typeof e)return e;var t=[an,Kr,Ur,Mr,Jr,qr,Nr,Vr,zr,Lr];d||t.unshift(nn);var r=Object(c.a)({},b,m);return e=xr(e=Tr(e,t,b),r),e=Er(e),on.log("Processed HTML piece:\n\n",e),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map((function(e){var t=Me(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return Te("core/html",lr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):Te(a,lr(a,e.outerHTML))}))}({html:e,rawTransforms:g})})));if("AUTO"===o&&1===_.length){var v=a.trim();if(""!==v&&-1===v.indexOf("\n"))return xr(wt(_[0]),m)}return _}function un(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return pr(r);var n=Ir(r),a=Object(u.filter)(Le("from"),{type:"raw"}).map((function(e){return e.isMatch?e:Object(c.a)({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),i=jr(a);return Object(u.compact)(Object(u.flatMap)(n,(function(e){return"string"!=typeof e?e:(e=Tr(e,[Mr,Nr,zr,Lr],i),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map((function(e){var t=Me(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return Te("core/html",lr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):Te(a,lr(a,e.outerHTML))}))}({html:e=Er(e),rawTransforms:a}))})))}function ln(){return Object(i.select)("core/blocks").getCategories()}function dn(e){Object(i.dispatch)("core/blocks").setCategories(e)}function fn(e,t){Object(i.dispatch)("core/blocks").updateCategory(e,t)}function hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(u.every)(t,(function(t,r){var n=Object(Ie.a)(t,3),a=n[0],i=n[2],o=e[r];return a===o.name&&hn(o.innerBlocks,i)}))}function pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(u.map)(t,(function(t,r){var n=Object(Ie.a)(t,3),a=n[0],i=n[1],o=n[2],s=e[r];if(s&&s.name===a){var l=pn(s.innerBlocks,o);return Object(c.a)({},s,{innerBlocks:l})}var d=ge(a),f=function(e,t){return Object(u.mapValues)(t,(function(t,r){return h(e[r],t)}))},h=function(e,t){return r=e,"html"===Object(u.get)(r,["source"])&&Object(u.isArray)(t)?Object(Y.renderToString)(t):function(e){return"query"===Object(u.get)(e,["source"])}(e)&&t?t.map((function(t){return f(e.query,t)})):t;var r};return Te(a,f(Object(u.get)(d,["attributes"],{}),i),pn([],o))})):e}r.d(t,"createBlock",(function(){return Te})),r.d(t,"cloneBlock",(function(){return xe})),r.d(t,"getPossibleBlockTransformations",(function(){return Be})),r.d(t,"switchToBlockType",(function(){return ze})),r.d(t,"getBlockTransforms",(function(){return Le})),r.d(t,"findTransform",(function(){return Me})),r.d(t,"getBlockFromExample",(function(){return He})),r.d(t,"parse",(function(){return gr})),r.d(t,"getBlockAttributes",(function(){return lr})),r.d(t,"parseWithAttributeSchema",(function(){return cr})),r.d(t,"pasteHandler",(function(){return cn})),r.d(t,"rawHandler",(function(){return un})),r.d(t,"getPhrasingContentSchema",(function(){return _r})),r.d(t,"serialize",(function(){return Ot})),r.d(t,"getBlockContent",(function(){return wt})),r.d(t,"getBlockDefaultClassName",(function(){return bt})),r.d(t,"getBlockMenuDefaultClassName",(function(){return _t})),r.d(t,"getSaveElement",(function(){return vt})),r.d(t,"getSaveContent",(function(){return kt})),r.d(t,"isValidBlockContent",(function(){return Wt})),r.d(t,"getCategories",(function(){return ln})),r.d(t,"setCategories",(function(){return dn})),r.d(t,"updateCategory",(function(){return fn})),r.d(t,"registerBlockType",(function(){return ie})),r.d(t,"unregisterBlockType",(function(){return oe})),r.d(t,"setFreeformContentHandlerName",(function(){return se})),r.d(t,"getFreeformContentHandlerName",(function(){return ce})),r.d(t,"setUnregisteredTypeHandlerName",(function(){return le})),r.d(t,"getUnregisteredTypeHandlerName",(function(){return de})),r.d(t,"setDefaultBlockName",(function(){return fe})),r.d(t,"getDefaultBlockName",(function(){return pe})),r.d(t,"setGroupingBlockName",(function(){return he})),r.d(t,"getGroupingBlockName",(function(){return ue})),r.d(t,"getBlockType",(function(){return ge})),r.d(t,"getBlockTypes",(function(){return me})),r.d(t,"getBlockSupport",(function(){return be})),r.d(t,"hasBlockSupport",(function(){return _e})),r.d(t,"isReusableBlock",(function(){return ve})),r.d(t,"getChildBlockNames",(function(){return ke})),r.d(t,"hasChildBlocks",(function(){return we})),r.d(t,"hasChildBlocksWithInserterSupport",(function(){return ye})),r.d(t,"unstable__bootstrapServerSideBlockDefinitions",(function(){return ae})),r.d(t,"registerBlockStyle",(function(){return je})),r.d(t,"unregisterBlockStyle",(function(){return Oe})),r.d(t,"isUnmodifiedDefaultBlock",(function(){return Q})),r.d(t,"normalizeIconObject",(function(){return J})),r.d(t,"isValidIcon",(function(){return X})),r.d(t,"doBlocksMatchTemplate",(function(){return hn})),r.d(t,"synchronizeBlocksWithTemplate",(function(){return pn})),r.d(t,"children",(function(){return Qt})),r.d(t,"node",(function(){return ar})),r.d(t,"withBlockContentContext",(function(){return gt}))},35:function(e,t){!function(){e.exports=this.wp.blob}()},36:function(e,t,r){"use strict";var n,a;function i(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=B(e,360),t=B(t,100),r=B(r,100),0===t)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,n,c),d=!0,f="hsl"),e.hasOwnProperty("a")&&(r=e.a));var h,p,g;return r=N(r),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function h(e,t,r){e=B(e,255),t=B(t,255),r=B(r,255);var n,a,i=l(e,t,r),o=u(e,t,r),s=(i+o)/2;if(i==o)n=a=0;else{var c=i-o;switch(a=s>.5?c/(2-i-o):c/(i+o),i){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(f(n));return i}function S(e,t){t=t||6;for(var r=f(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(f({h:n,s:a,v:i})),i=(i+s)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var i=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(I(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*B(this._r,255))+"%",g:c(100*B(this._g,255))+"%",b:c(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%)":"rgba("+c(100*B(this._r,255))+"%, "+c(100*B(this._g,255))+"%, "+c(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);r="#"+m(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(j,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:H(e[n]));e=r}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,r){r=0===r?0:r||50;var n=f(e).toRgb(),a=f(t).toRgb(),i=r/100;return f({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},f.readability=function(e,t){var r=f(e),n=f(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,t,r){var n,a,i=f.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},f.mostReadable=function(e,t,r){var n,a,i,o,s=null,c=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var u=0;uc&&(c=n,s=f(t[u]));return f.isReadable(e,s,{level:i,size:o})||!a?s:(r.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],r))};var E=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=f.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(E);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function B(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return u(1,l(0,e))}function L(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function H(e){return e<=1&&(e=100*e+"%"),e}function I(e){return a.round(255*parseFloat(e)).toString(16)}function D(e){return L(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}(Math)},52:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},64:function(e,t,r){var n=r(82),a=r(83);e.exports=function(e,t,r){var i=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var s=0;s<16;++s)t[i+s]=o[s];return t||a(o)}},66:function(e,t){!function(){e.exports=this.wp.autop}()},7:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(10);function a(e){for(var t=1;t>>((3&t)<<3)&255;return a}}},83:function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,a=r;return[a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]]].join("")}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/components.js b/wp-includes/js/dist/components.js index 8f82b423b7..6a0bed8615 100644 --- a/wp-includes/js/dist/components.js +++ b/wp-includes/js/dist/components.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["components"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 383); +/******/ return __webpack_require__(__webpack_require__.s = 313); /******/ }) /************************************************************************/ /******/ ([ @@ -396,7 +396,7 @@ function _extends() { /* 20 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(48); +module.exports = __webpack_require__(47); /***/ }), @@ -569,7 +569,7 @@ function _typeof(obj) { if (false) { var throwOnDirectAccess, ReactIs; } else { // By explicitly using `prop-types` you are opting into new production behavior. // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(94)(); + module.exports = __webpack_require__(84)(); } @@ -602,14 +602,13 @@ function _nonIterableRest() { } /***/ }), -/* 40 */, -/* 41 */ +/* 40 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["isShallowEqual"]; }()); /***/ }), -/* 42 */ +/* 41 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -654,8 +653,8 @@ var DEFAULT_VERTICAL_SPACING = exports.DEFAULT_VERTICAL_SPACING = 22; var MODIFIER_KEY_NAMES = exports.MODIFIER_KEY_NAMES = new Set(['Shift', 'Control', 'Alt', 'Meta']); /***/ }), -/* 43 */, -/* 44 */ +/* 42 */, +/* 43 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -697,22 +696,22 @@ function _asyncToGenerator(fn) { } /***/ }), -/* 45 */, -/* 46 */ +/* 44 */, +/* 45 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["a11y"]; }()); /***/ }), -/* 47 */ +/* 46 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = true ? __webpack_require__(315) : undefined; +module.exports = true ? __webpack_require__(244) : undefined; /***/ }), -/* 48 */ +/* 47 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -1444,7 +1443,7 @@ try { /***/ }), -/* 49 */ +/* 48 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 @@ -2644,17 +2643,17 @@ else {} /***/ }), -/* 50 */ +/* 49 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var defineProperties = __webpack_require__(68); +var defineProperties = __webpack_require__(62); -var implementation = __webpack_require__(181); -var getPolyfill = __webpack_require__(182); -var shim = __webpack_require__(311); +var implementation = __webpack_require__(153); +var getPolyfill = __webpack_require__(154); +var shim = __webpack_require__(240); var polyfill = getPolyfill(); @@ -2668,7 +2667,7 @@ module.exports = polyfill; /***/ }), -/* 51 */ +/* 50 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2887,13 +2886,11 @@ var CalendarDayPhrases = exports.CalendarDayPhrases = { }; /***/ }), +/* 51 */, /* 52 */, /* 53 */, /* 54 */, -/* 55 */, -/* 56 */, -/* 57 */, -/* 58 */ +/* 55 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2904,7 +2901,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getPhrasePropTypes; -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -2923,7 +2920,7 @@ function getPhrasePropTypes(defaultPhrases) { } /***/ }), -/* 59 */ +/* 56 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2940,7 +2937,7 @@ var _createClass = function () { function defineProperties(target, props) { for exports.withStyles = withStyles; -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -2952,17 +2949,17 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _hoistNonReactStatics = __webpack_require__(316); +var _hoistNonReactStatics = __webpack_require__(245); var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics); -var _constants = __webpack_require__(319); +var _constants = __webpack_require__(248); -var _brcast = __webpack_require__(320); +var _brcast = __webpack_require__(249); var _brcast2 = _interopRequireDefault(_brcast); -var _ThemedStyleSheet = __webpack_require__(179); +var _ThemedStyleSheet = __webpack_require__(151); var _ThemedStyleSheet2 = _interopRequireDefault(_ThemedStyleSheet); @@ -3177,18 +3174,15 @@ function withStyles(styleFn) { } /***/ }), -/* 60 */ +/* 57 */ /***/ (function(module, exports) { (function() { module.exports = this["ReactDOM"]; }()); /***/ }), -/* 61 */, -/* 62 */, -/* 63 */, -/* 64 */, -/* 65 */, -/* 66 */ +/* 58 */, +/* 59 */, +/* 60 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3198,12 +3192,12 @@ Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var _extends = _interopDefault(__webpack_require__(136)); -var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(137)); +var _extends = _interopDefault(__webpack_require__(113)); +var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(114)); var React = __webpack_require__(28); var React__default = _interopDefault(React); -var _inheritsLoose = _interopDefault(__webpack_require__(138)); -var _assertThisInitialized = _interopDefault(__webpack_require__(139)); +var _inheritsLoose = _interopDefault(__webpack_require__(115)); +var _assertThisInitialized = _interopDefault(__webpack_require__(116)); var is = { arr: Array.isArray, @@ -5518,7 +5512,7 @@ exports.useSprings = useSprings; /***/ }), -/* 67 */ +/* 61 */ /***/ (function(module, exports) { var g; @@ -5544,13 +5538,13 @@ module.exports = g; /***/ }), -/* 68 */ +/* 62 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var keys = __webpack_require__(146); +var keys = __webpack_require__(123); var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol'; var toStr = Object.prototype.toString; @@ -5609,12 +5603,12 @@ module.exports = defineProperties; /***/ }), -/* 69 */ +/* 63 */ /***/ (function(module, exports, __webpack_require__) { var moment = __webpack_require__(29); -var momentValidationWrapper = __webpack_require__(313); -var core = __webpack_require__(314); +var momentValidationWrapper = __webpack_require__(242); +var core = __webpack_require__(243); module.exports = { @@ -5655,11 +5649,11 @@ module.exports = { /***/ }), -/* 70 */ +/* 64 */ /***/ (function(module, exports, __webpack_require__) { -var rng = __webpack_require__(92); -var bytesToUuid = __webpack_require__(93); +var rng = __webpack_require__(82); +var bytesToUuid = __webpack_require__(83); function v4(options, buf, offset) { var i = buf && offset || 0; @@ -5690,33 +5684,32 @@ module.exports = v4; /***/ }), -/* 71 */ +/* 65 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(130); +module.exports = __webpack_require__(107); /***/ }), -/* 72 */, -/* 73 */, -/* 74 */, -/* 75 */, -/* 76 */, -/* 77 */ +/* 66 */, +/* 67 */, +/* 68 */, +/* 69 */, +/* 70 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(292); +var implementation = __webpack_require__(221); module.exports = Function.prototype.bind || implementation; /***/ }), -/* 78 */ +/* 71 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5730,16 +5723,15 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf(_constants.WEEKDAYS); /***/ }), -/* 79 */, -/* 80 */, -/* 81 */ +/* 72 */, +/* 73 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5754,7 +5746,7 @@ exports['default'] = _propTypes2['default'].oneOf(_constants.WEEKDAYS); -var shallowEqual = __webpack_require__(312); +var shallowEqual = __webpack_require__(241); /** * Does a shallow comparison for props and state. @@ -5772,7 +5764,7 @@ module.exports = shallowCompare; /***/ }), -/* 82 */ +/* 74 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5797,7 +5789,7 @@ function isSameDay(a, b) { } /***/ }), -/* 83 */ +/* 75 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5812,7 +5804,7 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -5824,7 +5816,7 @@ function toMomentObject(dateString, customFormat) { } /***/ }), -/* 84 */ +/* 76 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5838,14 +5830,14 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTATION, _constants.VERTICAL_ORIENTATION, _constants.VERTICAL_SCROLLABLE]); /***/ }), -/* 85 */ +/* 77 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -5858,7 +5850,7 @@ function isTouchDevice() { module.exports = exports['default']; /***/ }), -/* 86 */ +/* 78 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5872,19 +5864,17 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.OPEN_DOWN, _constants.OPEN_UP]); /***/ }), -/* 87 */, -/* 88 */, -/* 89 */, -/* 90 */, -/* 91 */, -/* 92 */ +/* 79 */, +/* 80 */, +/* 81 */, +/* 82 */ /***/ (function(module, exports) { // Unique ID creation requires a high quality random # generator. In the @@ -5924,7 +5914,7 @@ if (getRandomValues) { /***/ }), -/* 93 */ +/* 83 */ /***/ (function(module, exports) { /** @@ -5954,7 +5944,7 @@ module.exports = bytesToUuid; /***/ }), -/* 94 */ +/* 84 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5967,7 +5957,7 @@ module.exports = bytesToUuid; -var ReactPropTypesSecret = __webpack_require__(95); +var ReactPropTypesSecret = __webpack_require__(85); function emptyFunction() {} function emptyFunctionWithReset() {} @@ -6025,7 +6015,7 @@ module.exports = function() { /***/ }), -/* 95 */ +/* 85 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6044,21 +6034,20 @@ module.exports = ReactPropTypesSecret; /***/ }), -/* 96 */, -/* 97 */, -/* 98 */ +/* 86 */, +/* 87 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(77); +var bind = __webpack_require__(70); module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); /***/ }), -/* 99 */ +/* 88 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6072,14 +6061,14 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.ICON_BEFORE_POSITION, _constants.ICON_AFTER_POSITION]); /***/ }), -/* 100 */ +/* 89 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6093,14 +6082,14 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.INFO_POSITION_TOP, _constants.INFO_POSITION_BOTTOM, _constants.INFO_POSITION_BEFORE, _constants.INFO_POSITION_AFTER]); /***/ }), -/* 101 */ +/* 90 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6115,7 +6104,7 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _isBeforeDay = __webpack_require__(102); +var _isBeforeDay = __webpack_require__(91); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); @@ -6127,7 +6116,7 @@ function isInclusivelyAfterDay(a, b) { } /***/ }), -/* 102 */ +/* 91 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6162,7 +6151,7 @@ function isBeforeDay(a, b) { } /***/ }), -/* 103 */ +/* 92 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6199,10 +6188,10 @@ CloseButton.defaultProps = { exports['default'] = CloseButton; /***/ }), -/* 104 */, -/* 105 */, -/* 106 */, -/* 107 */ +/* 93 */, +/* 94 */, +/* 95 */, +/* 96 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6386,7 +6375,7 @@ module.exports = function GetIntrinsic(name, allowMissing) { /***/ }), -/* 108 */ +/* 97 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6400,7 +6389,7 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -6431,7 +6420,7 @@ exports['default'] = (0, _airbnbPropTypes.and)([_propTypes2['default'].instanceO }()], 'Modifiers (Set of Strings)'); /***/ }), -/* 109 */ +/* 98 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6446,11 +6435,11 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _toMomentObject = __webpack_require__(83); +var _toMomentObject = __webpack_require__(75); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -6462,7 +6451,7 @@ function toISODateString(date, currentFormat) { } /***/ }), -/* 110 */ +/* 99 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -6677,7 +6666,7 @@ function addEventListener(target, eventName, listener, options) { /***/ }), -/* 111 */ +/* 100 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6692,11 +6681,11 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _toMomentObject = __webpack_require__(83); +var _toMomentObject = __webpack_require__(75); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -6708,7 +6697,7 @@ function toISOMonthString(date, currentFormat) { } /***/ }), -/* 112 */ +/* 101 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6722,14 +6711,14 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOfType([_propTypes2['default'].bool, _propTypes2['default'].oneOf([_constants.START_DATE, _constants.END_DATE])]); /***/ }), -/* 113 */ +/* 102 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6744,11 +6733,11 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _isBeforeDay = __webpack_require__(102); +var _isBeforeDay = __webpack_require__(91); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _isSameDay = __webpack_require__(82); +var _isSameDay = __webpack_require__(74); var _isSameDay2 = _interopRequireDefault(_isSameDay); @@ -6760,29 +6749,17 @@ function isAfterDay(a, b) { } /***/ }), -/* 114 */, -/* 115 */, -/* 116 */, -/* 117 */, -/* 118 */, -/* 119 */, -/* 120 */, -/* 121 */, -/* 122 */, -/* 123 */, -/* 124 */, -/* 125 */, -/* 126 */, -/* 127 */, -/* 128 */, -/* 129 */, -/* 130 */ +/* 103 */, +/* 104 */, +/* 105 */, +/* 106 */, +/* 107 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(131); +var util = __webpack_require__(108); function scrollIntoView(elem, container, config) { config = config || {}; @@ -6911,7 +6888,7 @@ function scrollIntoView(elem, container, config) { module.exports = scrollIntoView; /***/ }), -/* 131 */ +/* 108 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7356,11 +7333,11 @@ module.exports = _extends({ }, domUtils); /***/ }), -/* 132 */, -/* 133 */, -/* 134 */, -/* 135 */, -/* 136 */ +/* 109 */, +/* 110 */, +/* 111 */, +/* 112 */, +/* 113 */ /***/ (function(module, exports) { function _extends() { @@ -7384,7 +7361,7 @@ function _extends() { module.exports = _extends; /***/ }), -/* 137 */ +/* 114 */ /***/ (function(module, exports) { function _objectWithoutPropertiesLoose(source, excluded) { @@ -7405,7 +7382,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { module.exports = _objectWithoutPropertiesLoose; /***/ }), -/* 138 */ +/* 115 */ /***/ (function(module, exports) { function _inheritsLoose(subClass, superClass) { @@ -7417,7 +7394,7 @@ function _inheritsLoose(subClass, superClass) { module.exports = _inheritsLoose; /***/ }), -/* 139 */ +/* 116 */ /***/ (function(module, exports) { function _assertThisInitialized(self) { @@ -7431,23 +7408,23 @@ function _assertThisInitialized(self) { module.exports = _assertThisInitialized; /***/ }), -/* 140 */, -/* 141 */, -/* 142 */, -/* 143 */, -/* 144 */, -/* 145 */, -/* 146 */ +/* 117 */, +/* 118 */, +/* 119 */, +/* 120 */, +/* 121 */, +/* 122 */, +/* 123 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var slice = Array.prototype.slice; -var isArgs = __webpack_require__(167); +var isArgs = __webpack_require__(139); var origKeys = Object.keys; -var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(291); +var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(220); var originalKeys = Object.keys; @@ -7476,7 +7453,7 @@ module.exports = keysShim; /***/ }), -/* 147 */ +/* 124 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7520,10 +7497,10 @@ module.exports = function isCallable(value) { /***/ }), -/* 148 */ +/* 125 */ /***/ (function(module, exports, __webpack_require__) { -var bind = __webpack_require__(77); +var bind = __webpack_require__(70); var has = bind.call(Function.call, Object.prototype.hasOwnProperty); var $assign = Object.assign; @@ -7543,7 +7520,7 @@ module.exports = function assign(target, source) { /***/ }), -/* 149 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7558,7 +7535,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -7570,37 +7547,37 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(81); +var _reactAddonsShallowCompare = __webpack_require__(73); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(69); +var _reactMomentProptypes = __webpack_require__(63); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _getCalendarDaySettings = __webpack_require__(183); +var _getCalendarDaySettings = __webpack_require__(155); var _getCalendarDaySettings2 = _interopRequireDefault(_getCalendarDaySettings); -var _ModifiersShape = __webpack_require__(108); +var _ModifiersShape = __webpack_require__(97); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -8025,25 +8002,25 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(CalendarDay); /***/ }), -/* 150 */ +/* 127 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(330); +module.exports = __webpack_require__(259); /***/ }), -/* 151 */ +/* 128 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(68); +var define = __webpack_require__(62); -var implementation = __webpack_require__(189); -var getPolyfill = __webpack_require__(190); -var shim = __webpack_require__(332); +var implementation = __webpack_require__(161); +var getPolyfill = __webpack_require__(162); +var shim = __webpack_require__(261); var polyfill = getPolyfill(); @@ -8057,7 +8034,7 @@ module.exports = polyfill; /***/ }), -/* 152 */ +/* 129 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8122,7 +8099,7 @@ function getInputHeight(_ref, small) { } /***/ }), -/* 153 */ +/* 130 */ /***/ (function(module, exports) { /** @@ -8159,7 +8136,7 @@ module.exports = isObject; /***/ }), -/* 154 */ +/* 131 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8174,11 +8151,11 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _toMomentObject = __webpack_require__(83); +var _toMomentObject = __webpack_require__(75); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -8190,7 +8167,7 @@ function toLocalizedDateString(date, currentFormat) { } /***/ }), -/* 155 */ +/* 132 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8201,11 +8178,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isDayVisible; -var _isBeforeDay = __webpack_require__(102); +var _isBeforeDay = __webpack_require__(91); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _isAfterDay = __webpack_require__(113); +var _isAfterDay = __webpack_require__(102); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); @@ -8222,7 +8199,7 @@ function isDayVisible(day, month, numberOfMonths, enableOutsideDays) { } /***/ }), -/* 156 */ +/* 133 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8237,7 +8214,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -8249,85 +8226,85 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(81); +var _reactAddonsShallowCompare = __webpack_require__(73); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _throttle = __webpack_require__(203); +var _throttle = __webpack_require__(175); var _throttle2 = _interopRequireDefault(_throttle); -var _isTouchDevice = __webpack_require__(85); +var _isTouchDevice = __webpack_require__(77); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _reactOutsideClickHandler = __webpack_require__(150); +var _reactOutsideClickHandler = __webpack_require__(127); var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarMonthGrid = __webpack_require__(186); +var _CalendarMonthGrid = __webpack_require__(158); var _CalendarMonthGrid2 = _interopRequireDefault(_CalendarMonthGrid); -var _DayPickerNavigation = __webpack_require__(345); +var _DayPickerNavigation = __webpack_require__(274); var _DayPickerNavigation2 = _interopRequireDefault(_DayPickerNavigation); -var _DayPickerKeyboardShortcuts = __webpack_require__(348); +var _DayPickerKeyboardShortcuts = __webpack_require__(277); var _DayPickerKeyboardShortcuts2 = _interopRequireDefault(_DayPickerKeyboardShortcuts); -var _getNumberOfCalendarMonthWeeks = __webpack_require__(350); +var _getNumberOfCalendarMonthWeeks = __webpack_require__(279); var _getNumberOfCalendarMonthWeeks2 = _interopRequireDefault(_getNumberOfCalendarMonthWeeks); -var _getCalendarMonthWidth = __webpack_require__(187); +var _getCalendarMonthWidth = __webpack_require__(159); var _getCalendarMonthWidth2 = _interopRequireDefault(_getCalendarMonthWidth); -var _calculateDimension = __webpack_require__(185); +var _calculateDimension = __webpack_require__(157); var _calculateDimension2 = _interopRequireDefault(_calculateDimension); -var _getActiveElement = __webpack_require__(351); +var _getActiveElement = __webpack_require__(280); var _getActiveElement2 = _interopRequireDefault(_getActiveElement); -var _isDayVisible = __webpack_require__(155); +var _isDayVisible = __webpack_require__(132); var _isDayVisible2 = _interopRequireDefault(_isDayVisible); -var _ModifiersShape = __webpack_require__(108); +var _ModifiersShape = __webpack_require__(97); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(84); +var _ScrollableOrientationShape = __webpack_require__(76); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(78); +var _DayOfWeekShape = __webpack_require__(71); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(100); +var _CalendarInfoPositionShape = __webpack_require__(89); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -9804,17 +9781,12 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DayPicker); /***/ }), -/* 157 */, -/* 158 */, -/* 159 */, -/* 160 */, -/* 161 */, -/* 162 */, -/* 163 */, -/* 164 */, -/* 165 */, -/* 166 */, -/* 167 */ +/* 134 */, +/* 135 */, +/* 136 */, +/* 137 */, +/* 138 */, +/* 139 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9838,13 +9810,13 @@ module.exports = function isArguments(value) { /***/ }), -/* 168 */ +/* 140 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES = __webpack_require__(293); +var ES = __webpack_require__(222); var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || (Math.pow(2, 53) - 1); @@ -9910,14 +9882,14 @@ module.exports = function flat() { /***/ }), -/* 169 */ +/* 141 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES2015 = __webpack_require__(294); -var assign = __webpack_require__(148); +var ES2015 = __webpack_require__(223); +var assign = __webpack_require__(125); var ES2016 = assign(assign({}, ES2015), { // https://github.com/tc39/ecma262/pull/60 @@ -9933,7 +9905,7 @@ module.exports = ES2016; /***/ }), -/* 170 */ +/* 142 */ /***/ (function(module, exports) { module.exports = function isPrimitive(value) { @@ -9942,14 +9914,14 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 171 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var toStr = Object.prototype.toString; -var hasSymbols = __webpack_require__(298)(); +var hasSymbols = __webpack_require__(227)(); if (hasSymbols) { var symToStr = Symbol.prototype.toString; @@ -9984,7 +9956,7 @@ if (hasSymbols) { /***/ }), -/* 172 */ +/* 144 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10033,18 +10005,18 @@ module.exports = function hasSymbols() { /***/ }), -/* 173 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var GetIntrinsic = __webpack_require__(107); +var GetIntrinsic = __webpack_require__(96); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); -var has = __webpack_require__(98); +var has = __webpack_require__(87); var predicates = { // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type @@ -10089,7 +10061,7 @@ module.exports = function assertRecord(ES, recordType, argumentName, value) { /***/ }), -/* 174 */ +/* 146 */ /***/ (function(module, exports) { module.exports = Number.isNaN || function isNaN(a) { @@ -10098,7 +10070,7 @@ module.exports = Number.isNaN || function isNaN(a) { /***/ }), -/* 175 */ +/* 147 */ /***/ (function(module, exports) { var $isNaN = Number.isNaN || function (a) { return a !== a; }; @@ -10107,7 +10079,7 @@ module.exports = Number.isFinite || function (x) { return typeof x === 'number' /***/ }), -/* 176 */ +/* 148 */ /***/ (function(module, exports) { module.exports = function sign(number) { @@ -10116,7 +10088,7 @@ module.exports = function sign(number) { /***/ }), -/* 177 */ +/* 149 */ /***/ (function(module, exports) { module.exports = function mod(number, modulo) { @@ -10126,13 +10098,13 @@ module.exports = function mod(number, modulo) { /***/ }), -/* 178 */ +/* 150 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(168); +var implementation = __webpack_require__(140); module.exports = function getPolyfill() { return Array.prototype.flat || implementation; @@ -10140,7 +10112,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 179 */ +/* 151 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10241,7 +10213,7 @@ exports['default'] = { }; /***/ }), -/* 180 */ +/* 152 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10447,19 +10419,19 @@ exports['default'] = { }; /***/ }), -/* 181 */ +/* 153 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // modified from https://github.com/es-shims/es6-shim -var keys = __webpack_require__(146); -var bind = __webpack_require__(77); +var keys = __webpack_require__(123); +var bind = __webpack_require__(70); var canBeObject = function (obj) { return typeof obj !== 'undefined' && obj !== null; }; -var hasSymbols = __webpack_require__(172)(); +var hasSymbols = __webpack_require__(144)(); var toObject = Object; var push = bind.call(Function.call, Array.prototype.push); var propIsEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); @@ -10495,13 +10467,13 @@ module.exports = function assign(target, source1) { /***/ }), -/* 182 */ +/* 154 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(181); +var implementation = __webpack_require__(153); var lacksProperEnumerationOrder = function () { if (!Object.assign) { @@ -10553,7 +10525,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 183 */ +/* 155 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10564,11 +10536,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getCalendarDaySettings; -var _getPhrase = __webpack_require__(321); +var _getPhrase = __webpack_require__(250); var _getPhrase2 = _interopRequireDefault(_getPhrase); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -10611,7 +10583,7 @@ function getCalendarDaySettings(day, ariaLabelFormat, daySize, modifiers, phrase } /***/ }), -/* 184 */ +/* 156 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10625,7 +10597,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -10637,65 +10609,65 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(81); +var _reactAddonsShallowCompare = __webpack_require__(73); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(69); +var _reactMomentProptypes = __webpack_require__(63); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarWeek = __webpack_require__(322); +var _CalendarWeek = __webpack_require__(251); var _CalendarWeek2 = _interopRequireDefault(_CalendarWeek); -var _CalendarDay = __webpack_require__(149); +var _CalendarDay = __webpack_require__(126); var _CalendarDay2 = _interopRequireDefault(_CalendarDay); -var _calculateDimension = __webpack_require__(185); +var _calculateDimension = __webpack_require__(157); var _calculateDimension2 = _interopRequireDefault(_calculateDimension); -var _getCalendarMonthWeeks = __webpack_require__(324); +var _getCalendarMonthWeeks = __webpack_require__(253); var _getCalendarMonthWeeks2 = _interopRequireDefault(_getCalendarMonthWeeks); -var _isSameDay = __webpack_require__(82); +var _isSameDay = __webpack_require__(74); var _isSameDay2 = _interopRequireDefault(_isSameDay); -var _toISODateString = __webpack_require__(109); +var _toISODateString = __webpack_require__(98); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _ModifiersShape = __webpack_require__(108); +var _ModifiersShape = __webpack_require__(97); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(84); +var _ScrollableOrientationShape = __webpack_require__(76); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(78); +var _DayOfWeekShape = __webpack_require__(71); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -11016,7 +10988,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(CalendarMonth); /***/ }), -/* 185 */ +/* 157 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11060,7 +11032,7 @@ function calculateDimension(el, axis) { } /***/ }), -/* 186 */ +/* 158 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11074,7 +11046,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -11086,71 +11058,71 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(81); +var _reactAddonsShallowCompare = __webpack_require__(73); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(69); +var _reactMomentProptypes = __webpack_require__(63); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _consolidatedEvents = __webpack_require__(110); +var _consolidatedEvents = __webpack_require__(99); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarMonth = __webpack_require__(184); +var _CalendarMonth = __webpack_require__(156); var _CalendarMonth2 = _interopRequireDefault(_CalendarMonth); -var _isTransitionEndSupported = __webpack_require__(325); +var _isTransitionEndSupported = __webpack_require__(254); var _isTransitionEndSupported2 = _interopRequireDefault(_isTransitionEndSupported); -var _getTransformStyles = __webpack_require__(326); +var _getTransformStyles = __webpack_require__(255); var _getTransformStyles2 = _interopRequireDefault(_getTransformStyles); -var _getCalendarMonthWidth = __webpack_require__(187); +var _getCalendarMonthWidth = __webpack_require__(159); var _getCalendarMonthWidth2 = _interopRequireDefault(_getCalendarMonthWidth); -var _toISOMonthString = __webpack_require__(111); +var _toISOMonthString = __webpack_require__(100); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); -var _isPrevMonth = __webpack_require__(327); +var _isPrevMonth = __webpack_require__(256); var _isPrevMonth2 = _interopRequireDefault(_isPrevMonth); -var _isNextMonth = __webpack_require__(328); +var _isNextMonth = __webpack_require__(257); var _isNextMonth2 = _interopRequireDefault(_isNextMonth); -var _ModifiersShape = __webpack_require__(108); +var _ModifiersShape = __webpack_require__(97); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(84); +var _ScrollableOrientationShape = __webpack_require__(76); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(78); +var _DayOfWeekShape = __webpack_require__(71); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -11626,7 +11598,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(CalendarMonthGrid); /***/ }), -/* 187 */ +/* 159 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11641,7 +11613,7 @@ function getCalendarMonthWidth(daySize, calendarMonthPadding) { } /***/ }), -/* 188 */ +/* 160 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11666,15 +11638,15 @@ function isSameMonth(a, b) { } /***/ }), -/* 189 */ +/* 161 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES = __webpack_require__(331); -var has = __webpack_require__(98); -var bind = __webpack_require__(77); +var ES = __webpack_require__(260); +var has = __webpack_require__(87); +var bind = __webpack_require__(70); var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); module.exports = function values(O) { @@ -11690,13 +11662,13 @@ module.exports = function values(O) { /***/ }), -/* 190 */ +/* 162 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(189); +var implementation = __webpack_require__(161); module.exports = function getPolyfill() { return typeof Object.values === 'function' ? Object.values : implementation; @@ -11704,7 +11676,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 191 */ +/* 163 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11733,13 +11705,13 @@ module.exports = function contains(other) { /***/ }), -/* 192 */ +/* 164 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(191); +var implementation = __webpack_require__(163); module.exports = function getPolyfill() { if (typeof document !== 'undefined') { @@ -11755,7 +11727,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 193 */ +/* 165 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11769,47 +11741,47 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactMomentProptypes = __webpack_require__(69); +var _reactMomentProptypes = __webpack_require__(63); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _FocusedInputShape = __webpack_require__(194); +var _FocusedInputShape = __webpack_require__(166); var _FocusedInputShape2 = _interopRequireDefault(_FocusedInputShape); -var _IconPositionShape = __webpack_require__(99); +var _IconPositionShape = __webpack_require__(88); var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); -var _OrientationShape = __webpack_require__(195); +var _OrientationShape = __webpack_require__(167); var _OrientationShape2 = _interopRequireDefault(_OrientationShape); -var _DisabledShape = __webpack_require__(112); +var _DisabledShape = __webpack_require__(101); var _DisabledShape2 = _interopRequireDefault(_DisabledShape); -var _AnchorDirectionShape = __webpack_require__(196); +var _AnchorDirectionShape = __webpack_require__(168); var _AnchorDirectionShape2 = _interopRequireDefault(_AnchorDirectionShape); -var _OpenDirectionShape = __webpack_require__(86); +var _OpenDirectionShape = __webpack_require__(78); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _DayOfWeekShape = __webpack_require__(78); +var _DayOfWeekShape = __webpack_require__(71); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(100); +var _CalendarInfoPositionShape = __webpack_require__(89); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); @@ -11896,7 +11868,7 @@ exports['default'] = { }; /***/ }), -/* 194 */ +/* 166 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11910,14 +11882,14 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.START_DATE, _constants.END_DATE]); /***/ }), -/* 195 */ +/* 167 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11931,14 +11903,14 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTATION, _constants.VERTICAL_ORIENTATION]); /***/ }), -/* 196 */ +/* 168 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11952,14 +11924,14 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.ANCHOR_LEFT, _constants.ANCHOR_RIGHT]); /***/ }), -/* 197 */ +/* 169 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11970,7 +11942,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getResponsiveContainerStyles; -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } @@ -11983,7 +11955,7 @@ function getResponsiveContainerStyles(anchorDirection, currentOffset, containerE } /***/ }), -/* 198 */ +/* 170 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11994,7 +11966,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getDetachedContainerStyles; -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); /** * Calculate and return a CSS transform style to position a detached element @@ -12035,7 +12007,7 @@ function getDetachedContainerStyles(openDirection, anchorDirection, referenceEl) } /***/ }), -/* 199 */ +/* 171 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12124,7 +12096,7 @@ function disableScroll(node) { } /***/ }), -/* 200 */ +/* 172 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12148,51 +12120,51 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _reactMomentProptypes = __webpack_require__(69); +var _reactMomentProptypes = __webpack_require__(63); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _OpenDirectionShape = __webpack_require__(86); +var _OpenDirectionShape = __webpack_require__(78); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _DateRangePickerInput = __webpack_require__(201); +var _DateRangePickerInput = __webpack_require__(173); var _DateRangePickerInput2 = _interopRequireDefault(_DateRangePickerInput); -var _IconPositionShape = __webpack_require__(99); +var _IconPositionShape = __webpack_require__(88); var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); -var _DisabledShape = __webpack_require__(112); +var _DisabledShape = __webpack_require__(101); var _DisabledShape2 = _interopRequireDefault(_DisabledShape); -var _toMomentObject = __webpack_require__(83); +var _toMomentObject = __webpack_require__(75); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); -var _toLocalizedDateString = __webpack_require__(154); +var _toLocalizedDateString = __webpack_require__(131); var _toLocalizedDateString2 = _interopRequireDefault(_toLocalizedDateString); -var _isInclusivelyAfterDay = __webpack_require__(101); +var _isInclusivelyAfterDay = __webpack_require__(90); var _isInclusivelyAfterDay2 = _interopRequireDefault(_isInclusivelyAfterDay); -var _isBeforeDay = __webpack_require__(102); +var _isBeforeDay = __webpack_require__(91); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -12609,7 +12581,7 @@ DateRangePickerInputController.propTypes = propTypes; DateRangePickerInputController.defaultProps = defaultProps; /***/ }), -/* 201 */ +/* 173 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12621,7 +12593,7 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -12633,49 +12605,49 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _OpenDirectionShape = __webpack_require__(86); +var _OpenDirectionShape = __webpack_require__(78); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _DateInput = __webpack_require__(202); +var _DateInput = __webpack_require__(174); var _DateInput2 = _interopRequireDefault(_DateInput); -var _IconPositionShape = __webpack_require__(99); +var _IconPositionShape = __webpack_require__(88); var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); -var _DisabledShape = __webpack_require__(112); +var _DisabledShape = __webpack_require__(101); var _DisabledShape2 = _interopRequireDefault(_DisabledShape); -var _RightArrow = __webpack_require__(206); +var _RightArrow = __webpack_require__(178); var _RightArrow2 = _interopRequireDefault(_RightArrow); -var _LeftArrow = __webpack_require__(207); +var _LeftArrow = __webpack_require__(179); var _LeftArrow2 = _interopRequireDefault(_LeftArrow); -var _CloseButton = __webpack_require__(103); +var _CloseButton = __webpack_require__(92); var _CloseButton2 = _interopRequireDefault(_CloseButton); -var _CalendarIcon = __webpack_require__(208); +var _CalendarIcon = __webpack_require__(180); var _CalendarIcon2 = _interopRequireDefault(_CalendarIcon); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -13065,7 +13037,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DateRangePickerInput); /***/ }), -/* 202 */ +/* 174 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13079,7 +13051,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -13091,27 +13063,27 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); -var _throttle = __webpack_require__(203); +var _throttle = __webpack_require__(175); var _throttle2 = _interopRequireDefault(_throttle); -var _isTouchDevice = __webpack_require__(85); +var _isTouchDevice = __webpack_require__(77); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _getInputHeight = __webpack_require__(152); +var _getInputHeight = __webpack_require__(129); var _getInputHeight2 = _interopRequireDefault(_getInputHeight); -var _OpenDirectionShape = __webpack_require__(86); +var _OpenDirectionShape = __webpack_require__(78); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -13545,11 +13517,11 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(DateInput); /***/ }), -/* 203 */ +/* 175 */ /***/ (function(module, exports, __webpack_require__) { -var debounce = __webpack_require__(335), - isObject = __webpack_require__(153); +var debounce = __webpack_require__(264), + isObject = __webpack_require__(130); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -13620,10 +13592,10 @@ module.exports = throttle; /***/ }), -/* 204 */ +/* 176 */ /***/ (function(module, exports, __webpack_require__) { -var freeGlobal = __webpack_require__(337); +var freeGlobal = __webpack_require__(266); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; @@ -13635,10 +13607,10 @@ module.exports = root; /***/ }), -/* 205 */ +/* 177 */ /***/ (function(module, exports, __webpack_require__) { -var root = __webpack_require__(204); +var root = __webpack_require__(176); /** Built-in value references. */ var Symbol = root.Symbol; @@ -13647,7 +13619,7 @@ module.exports = Symbol; /***/ }), -/* 206 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13683,7 +13655,7 @@ RightArrow.defaultProps = { exports['default'] = RightArrow; /***/ }), -/* 207 */ +/* 179 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13719,7 +13691,7 @@ LeftArrow.defaultProps = { exports['default'] = LeftArrow; /***/ }), -/* 208 */ +/* 180 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13755,7 +13727,7 @@ CalendarIcon.defaultProps = { exports['default'] = CalendarIcon; /***/ }), -/* 209 */ +/* 181 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13769,7 +13741,7 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -13781,93 +13753,93 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactMomentProptypes = __webpack_require__(69); +var _reactMomentProptypes = __webpack_require__(63); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _object3 = __webpack_require__(151); +var _object3 = __webpack_require__(128); var _object4 = _interopRequireDefault(_object3); -var _isTouchDevice = __webpack_require__(85); +var _isTouchDevice = __webpack_require__(77); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _isInclusivelyAfterDay = __webpack_require__(101); +var _isInclusivelyAfterDay = __webpack_require__(90); var _isInclusivelyAfterDay2 = _interopRequireDefault(_isInclusivelyAfterDay); -var _isNextDay = __webpack_require__(210); +var _isNextDay = __webpack_require__(182); var _isNextDay2 = _interopRequireDefault(_isNextDay); -var _isSameDay = __webpack_require__(82); +var _isSameDay = __webpack_require__(74); var _isSameDay2 = _interopRequireDefault(_isSameDay); -var _isAfterDay = __webpack_require__(113); +var _isAfterDay = __webpack_require__(102); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); -var _isBeforeDay = __webpack_require__(102); +var _isBeforeDay = __webpack_require__(91); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _getVisibleDays = __webpack_require__(211); +var _getVisibleDays = __webpack_require__(183); var _getVisibleDays2 = _interopRequireDefault(_getVisibleDays); -var _isDayVisible = __webpack_require__(155); +var _isDayVisible = __webpack_require__(132); var _isDayVisible2 = _interopRequireDefault(_isDayVisible); -var _getSelectedDateOffset = __webpack_require__(344); +var _getSelectedDateOffset = __webpack_require__(273); var _getSelectedDateOffset2 = _interopRequireDefault(_getSelectedDateOffset); -var _toISODateString = __webpack_require__(109); +var _toISODateString = __webpack_require__(98); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _toISOMonthString = __webpack_require__(111); +var _toISOMonthString = __webpack_require__(100); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); -var _DisabledShape = __webpack_require__(112); +var _DisabledShape = __webpack_require__(101); var _DisabledShape2 = _interopRequireDefault(_DisabledShape); -var _FocusedInputShape = __webpack_require__(194); +var _FocusedInputShape = __webpack_require__(166); var _FocusedInputShape2 = _interopRequireDefault(_FocusedInputShape); -var _ScrollableOrientationShape = __webpack_require__(84); +var _ScrollableOrientationShape = __webpack_require__(76); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(78); +var _DayOfWeekShape = __webpack_require__(71); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(100); +var _CalendarInfoPositionShape = __webpack_require__(89); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); -var _DayPicker = __webpack_require__(156); +var _DayPicker = __webpack_require__(133); var _DayPicker2 = _interopRequireDefault(_DayPicker); @@ -15266,7 +15238,7 @@ DayPickerRangeController.propTypes = propTypes; DayPickerRangeController.defaultProps = defaultProps; /***/ }), -/* 210 */ +/* 182 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15281,7 +15253,7 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _isSameDay = __webpack_require__(82); +var _isSameDay = __webpack_require__(74); var _isSameDay2 = _interopRequireDefault(_isSameDay); @@ -15294,7 +15266,7 @@ function isNextDay(a, b) { } /***/ }), -/* 211 */ +/* 183 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15309,7 +15281,7 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _toISOMonthString = __webpack_require__(111); +var _toISOMonthString = __webpack_require__(100); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); @@ -15363,7 +15335,7 @@ function getVisibleDays(month, numberOfMonths, enableOutsideDays, withoutTransit } /***/ }), -/* 212 */ +/* 184 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15377,7 +15349,7 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -15389,69 +15361,69 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactMomentProptypes = __webpack_require__(69); +var _reactMomentProptypes = __webpack_require__(63); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _object3 = __webpack_require__(151); +var _object3 = __webpack_require__(128); var _object4 = _interopRequireDefault(_object3); -var _isTouchDevice = __webpack_require__(85); +var _isTouchDevice = __webpack_require__(77); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _isSameDay = __webpack_require__(82); +var _isSameDay = __webpack_require__(74); var _isSameDay2 = _interopRequireDefault(_isSameDay); -var _isAfterDay = __webpack_require__(113); +var _isAfterDay = __webpack_require__(102); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); -var _getVisibleDays = __webpack_require__(211); +var _getVisibleDays = __webpack_require__(183); var _getVisibleDays2 = _interopRequireDefault(_getVisibleDays); -var _isDayVisible = __webpack_require__(155); +var _isDayVisible = __webpack_require__(132); var _isDayVisible2 = _interopRequireDefault(_isDayVisible); -var _toISODateString = __webpack_require__(109); +var _toISODateString = __webpack_require__(98); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _toISOMonthString = __webpack_require__(111); +var _toISOMonthString = __webpack_require__(100); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); -var _ScrollableOrientationShape = __webpack_require__(84); +var _ScrollableOrientationShape = __webpack_require__(76); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(78); +var _DayOfWeekShape = __webpack_require__(71); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(100); +var _CalendarInfoPositionShape = __webpack_require__(89); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); -var _DayPicker = __webpack_require__(156); +var _DayPicker = __webpack_require__(133); var _DayPicker2 = _interopRequireDefault(_DayPicker); @@ -16411,7 +16383,7 @@ DayPickerSingleDateController.propTypes = propTypes; DayPickerSingleDateController.defaultProps = defaultProps; /***/ }), -/* 213 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16425,39 +16397,39 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactMomentProptypes = __webpack_require__(69); +var _reactMomentProptypes = __webpack_require__(63); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _IconPositionShape = __webpack_require__(99); +var _IconPositionShape = __webpack_require__(88); var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); -var _OrientationShape = __webpack_require__(195); +var _OrientationShape = __webpack_require__(167); var _OrientationShape2 = _interopRequireDefault(_OrientationShape); -var _AnchorDirectionShape = __webpack_require__(196); +var _AnchorDirectionShape = __webpack_require__(168); var _AnchorDirectionShape2 = _interopRequireDefault(_AnchorDirectionShape); -var _OpenDirectionShape = __webpack_require__(86); +var _OpenDirectionShape = __webpack_require__(78); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _DayOfWeekShape = __webpack_require__(78); +var _DayOfWeekShape = __webpack_require__(71); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(100); +var _CalendarInfoPositionShape = __webpack_require__(89); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); @@ -16540,7 +16512,7 @@ exports['default'] = { }; /***/ }), -/* 214 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16552,7 +16524,7 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -16564,37 +16536,37 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _DateInput = __webpack_require__(202); +var _DateInput = __webpack_require__(174); var _DateInput2 = _interopRequireDefault(_DateInput); -var _IconPositionShape = __webpack_require__(99); +var _IconPositionShape = __webpack_require__(88); var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); -var _CloseButton = __webpack_require__(103); +var _CloseButton = __webpack_require__(92); var _CloseButton2 = _interopRequireDefault(_CloseButton); -var _CalendarIcon = __webpack_require__(208); +var _CalendarIcon = __webpack_require__(180); var _CalendarIcon2 = _interopRequireDefault(_CalendarIcon); -var _OpenDirectionShape = __webpack_require__(86); +var _OpenDirectionShape = __webpack_require__(78); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -16900,23 +16872,20 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(SingleDatePickerInput); /***/ }), -/* 215 */, -/* 216 */, -/* 217 */, -/* 218 */, -/* 219 */, -/* 220 */, -/* 221 */, -/* 222 */, -/* 223 */, -/* 224 */ +/* 187 */, +/* 188 */, +/* 189 */, +/* 190 */, +/* 191 */, +/* 192 */, +/* 193 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: external "ReactDOM" -var external_ReactDOM_ = __webpack_require__(60); +var external_ReactDOM_ = __webpack_require__(57); var external_ReactDOM_default = /*#__PURE__*/__webpack_require__.n(external_ReactDOM_); // EXTERNAL MODULE: external "React" @@ -17229,14 +17198,14 @@ PortalWithState_PortalWithState.defaultProps = { /***/ }), -/* 225 */, -/* 226 */, -/* 227 */, -/* 228 */, -/* 229 */, -/* 230 */, -/* 231 */, -/* 232 */ +/* 194 */, +/* 195 */, +/* 196 */, +/* 197 */, +/* 198 */, +/* 199 */, +/* 200 */, +/* 201 */ /***/ (function(module, exports, __webpack_require__) { /*! @@ -18214,7 +18183,7 @@ module.exports = closest; }); /***/ }), -/* 233 */ +/* 202 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */ @@ -19279,15 +19248,15 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */ /***/ }), -/* 234 */ +/* 203 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(310); +module.exports = __webpack_require__(239); /***/ }), -/* 235 */ +/* 204 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19328,8 +19297,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); var React = __importStar(__webpack_require__(28)); -var resizer_1 = __webpack_require__(354); -var fast_memoize_1 = __importDefault(__webpack_require__(355)); +var resizer_1 = __webpack_require__(283); +var fast_memoize_1 = __importDefault(__webpack_require__(284)); var DEFAULT_SIZE = { width: 'auto', height: 'auto', @@ -19983,55 +19952,15 @@ exports.Resizable = Resizable; /***/ }), -/* 236 */, -/* 237 */, -/* 238 */, -/* 239 */, -/* 240 */, -/* 241 */, -/* 242 */, -/* 243 */, -/* 244 */, -/* 245 */, -/* 246 */, -/* 247 */, -/* 248 */, -/* 249 */, -/* 250 */, -/* 251 */, -/* 252 */, -/* 253 */, -/* 254 */, -/* 255 */, -/* 256 */, -/* 257 */, -/* 258 */, -/* 259 */, -/* 260 */, -/* 261 */, -/* 262 */, -/* 263 */, -/* 264 */, -/* 265 */, -/* 266 */, -/* 267 */, -/* 268 */, -/* 269 */, -/* 270 */, -/* 271 */, -/* 272 */, -/* 273 */, -/* 274 */, -/* 275 */, -/* 276 */, -/* 277 */, -/* 278 */, -/* 279 */, -/* 280 */, -/* 281 */, -/* 282 */, -/* 283 */, -/* 284 */ +/* 205 */, +/* 206 */, +/* 207 */, +/* 208 */, +/* 209 */, +/* 210 */, +/* 211 */, +/* 212 */, +/* 213 */ /***/ (function(module, exports) { /** @@ -20080,21 +20009,21 @@ exports.Resizable = Resizable; /***/ }), -/* 285 */ +/* 214 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -__webpack_require__(286); +__webpack_require__(215); /***/ }), -/* 286 */ +/* 215 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var _registerCSSInterfaceWithDefaultTheme = __webpack_require__(287); +var _registerCSSInterfaceWithDefaultTheme = __webpack_require__(216); var _registerCSSInterfaceWithDefaultTheme2 = _interopRequireDefault(_registerCSSInterfaceWithDefaultTheme); @@ -20103,7 +20032,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd (0, _registerCSSInterfaceWithDefaultTheme2['default'])(); /***/ }), -/* 287 */ +/* 216 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20114,11 +20043,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = registerCSSInterfaceWithDefaultTheme; -var _reactWithStylesInterfaceCss = __webpack_require__(288); +var _reactWithStylesInterfaceCss = __webpack_require__(217); var _reactWithStylesInterfaceCss2 = _interopRequireDefault(_reactWithStylesInterfaceCss); -var _registerInterfaceWithDefaultTheme = __webpack_require__(309); +var _registerInterfaceWithDefaultTheme = __webpack_require__(238); var _registerInterfaceWithDefaultTheme2 = _interopRequireDefault(_registerInterfaceWithDefaultTheme); @@ -20129,36 +20058,36 @@ function registerCSSInterfaceWithDefaultTheme() { } /***/ }), -/* 288 */ +/* 217 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(289).default; +module.exports = __webpack_require__(218).default; /***/ }), -/* 289 */ +/* 218 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); -var _arrayPrototype = __webpack_require__(290); +var _arrayPrototype = __webpack_require__(219); var _arrayPrototype2 = _interopRequireDefault(_arrayPrototype); -var _globalCache = __webpack_require__(305); +var _globalCache = __webpack_require__(234); var _globalCache2 = _interopRequireDefault(_globalCache); -var _constants = __webpack_require__(306); +var _constants = __webpack_require__(235); -var _getClassName = __webpack_require__(307); +var _getClassName = __webpack_require__(236); var _getClassName2 = _interopRequireDefault(_getClassName); -var _separateStyles2 = __webpack_require__(308); +var _separateStyles2 = __webpack_require__(237); var _separateStyles3 = _interopRequireDefault(_separateStyles2); @@ -20216,19 +20145,19 @@ function resolve(stylesArray) { exports['default'] = { create: create, resolve: resolve }; /***/ }), -/* 290 */ +/* 219 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(68); -var bind = __webpack_require__(77); +var define = __webpack_require__(62); +var bind = __webpack_require__(70); -var implementation = __webpack_require__(168); -var getPolyfill = __webpack_require__(178); +var implementation = __webpack_require__(140); +var getPolyfill = __webpack_require__(150); var polyfill = getPolyfill(); -var shim = __webpack_require__(304); +var shim = __webpack_require__(233); var boundFlat = bind.call(Function.call, polyfill); @@ -20242,7 +20171,7 @@ module.exports = boundFlat; /***/ }), -/* 291 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20253,7 +20182,7 @@ if (!Object.keys) { // modified from https://github.com/es-shims/es5-shim var has = Object.prototype.hasOwnProperty; var toStr = Object.prototype.toString; - var isArgs = __webpack_require__(167); // eslint-disable-line global-require + var isArgs = __webpack_require__(139); // eslint-disable-line global-require var isEnumerable = Object.prototype.propertyIsEnumerable; var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString'); var hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype'); @@ -20371,7 +20300,7 @@ module.exports = keysShim; /***/ }), -/* 292 */ +/* 221 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20430,19 +20359,19 @@ module.exports = function bind(that) { /***/ }), -/* 293 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(77); +var bind = __webpack_require__(70); -var ES2016 = __webpack_require__(169); -var assign = __webpack_require__(148); -var forEach = __webpack_require__(303); +var ES2016 = __webpack_require__(141); +var assign = __webpack_require__(125); +var forEach = __webpack_require__(232); -var GetIntrinsic = __webpack_require__(107); +var GetIntrinsic = __webpack_require__(96); var $TypeError = GetIntrinsic('%TypeError%'); var $isEnumerable = bind.call(Function.call, GetIntrinsic('%ObjectPrototype%').propertyIsEnumerable); @@ -20491,17 +20420,17 @@ module.exports = ES2017; /***/ }), -/* 294 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(98); -var toPrimitive = __webpack_require__(295); -var keys = __webpack_require__(146); +var has = __webpack_require__(87); +var toPrimitive = __webpack_require__(224); +var keys = __webpack_require__(123); -var GetIntrinsic = __webpack_require__(107); +var GetIntrinsic = __webpack_require__(96); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); @@ -20514,17 +20443,17 @@ var $RegExp = GetIntrinsic('%RegExp%'); var hasSymbols = !!$Symbol; -var assertRecord = __webpack_require__(173); -var $isNaN = __webpack_require__(174); -var $isFinite = __webpack_require__(175); +var assertRecord = __webpack_require__(145); +var $isNaN = __webpack_require__(146); +var $isFinite = __webpack_require__(147); var MAX_SAFE_INTEGER = $Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1; -var assign = __webpack_require__(148); -var sign = __webpack_require__(176); -var mod = __webpack_require__(177); -var isPrimitive = __webpack_require__(299); +var assign = __webpack_require__(125); +var sign = __webpack_require__(148); +var mod = __webpack_require__(149); +var isPrimitive = __webpack_require__(228); var parseInteger = parseInt; -var bind = __webpack_require__(77); +var bind = __webpack_require__(70); var arraySlice = bind.call(Function.call, $Array.prototype.slice); var strSlice = bind.call(Function.call, $String.prototype.slice); var isBinary = bind.call(Function.call, $RegExp.prototype.test, /^0b[01]+$/i); @@ -20567,9 +20496,9 @@ var trim = function (value) { return replace(value, trimRegex, ''); }; -var ES5 = __webpack_require__(300); +var ES5 = __webpack_require__(229); -var hasRegExpMatcher = __webpack_require__(302); +var hasRegExpMatcher = __webpack_require__(231); // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-abstract-operations var ES6 = assign(assign({}, ES5), { @@ -21288,17 +21217,17 @@ module.exports = ES6; /***/ }), -/* 295 */ +/* 224 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(296); +module.exports = __webpack_require__(225); /***/ }), -/* 296 */ +/* 225 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21306,10 +21235,10 @@ module.exports = __webpack_require__(296); var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; -var isPrimitive = __webpack_require__(170); -var isCallable = __webpack_require__(147); -var isDate = __webpack_require__(297); -var isSymbol = __webpack_require__(171); +var isPrimitive = __webpack_require__(142); +var isCallable = __webpack_require__(124); +var isDate = __webpack_require__(226); +var isSymbol = __webpack_require__(143); var ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) { if (typeof O === 'undefined' || O === null) { @@ -21380,7 +21309,7 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 297 */ +/* 226 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21407,14 +21336,14 @@ module.exports = function isDateObject(value) { /***/ }), -/* 298 */ +/* 227 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { var origSymbol = global.Symbol; -var hasSymbolSham = __webpack_require__(172); +var hasSymbolSham = __webpack_require__(144); module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } @@ -21425,10 +21354,10 @@ module.exports = function hasNativeSymbols() { return hasSymbolSham(); }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(67))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(61))) /***/ }), -/* 299 */ +/* 228 */ /***/ (function(module, exports) { module.exports = function isPrimitive(value) { @@ -21437,29 +21366,29 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 300 */ +/* 229 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var GetIntrinsic = __webpack_require__(107); +var GetIntrinsic = __webpack_require__(96); var $Object = GetIntrinsic('%Object%'); var $TypeError = GetIntrinsic('%TypeError%'); var $String = GetIntrinsic('%String%'); -var assertRecord = __webpack_require__(173); -var $isNaN = __webpack_require__(174); -var $isFinite = __webpack_require__(175); +var assertRecord = __webpack_require__(145); +var $isNaN = __webpack_require__(146); +var $isFinite = __webpack_require__(147); -var sign = __webpack_require__(176); -var mod = __webpack_require__(177); +var sign = __webpack_require__(148); +var mod = __webpack_require__(149); -var IsCallable = __webpack_require__(147); -var toPrimitive = __webpack_require__(301); +var IsCallable = __webpack_require__(124); +var toPrimitive = __webpack_require__(230); -var has = __webpack_require__(98); +var has = __webpack_require__(87); // https://es5.github.io/#x9 var ES5 = { @@ -21679,7 +21608,7 @@ module.exports = ES5; /***/ }), -/* 301 */ +/* 230 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21687,9 +21616,9 @@ module.exports = ES5; var toStr = Object.prototype.toString; -var isPrimitive = __webpack_require__(170); +var isPrimitive = __webpack_require__(142); -var isCallable = __webpack_require__(147); +var isCallable = __webpack_require__(124); // http://ecma-international.org/ecma-262/5.1/#sec-8.12.8 var ES5internalSlots = { @@ -21731,13 +21660,13 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 302 */ +/* 231 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(98); +var has = __webpack_require__(87); var regexExec = RegExp.prototype.exec; var gOPD = Object.getOwnPropertyDescriptor; @@ -21777,7 +21706,7 @@ module.exports = function isRegex(value) { /***/ }), -/* 303 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21791,14 +21720,14 @@ module.exports = function forEach(array, callback) { /***/ }), -/* 304 */ +/* 233 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(68); -var getPolyfill = __webpack_require__(178); +var define = __webpack_require__(62); +var getPolyfill = __webpack_require__(150); module.exports = function shimFlat() { var polyfill = getPolyfill(); @@ -21812,14 +21741,14 @@ module.exports = function shimFlat() { /***/ }), -/* 305 */ +/* 234 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { -var define = __webpack_require__(68); -var isSymbol = __webpack_require__(171); +var define = __webpack_require__(62); +var isSymbol = __webpack_require__(143); var globalKey = '__ global cache key __'; /* istanbul ignore else */ @@ -21908,10 +21837,10 @@ var globalCache = { module.exports = globalCache; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(67))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(61))) /***/ }), -/* 306 */ +/* 235 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -21924,7 +21853,7 @@ exports.GLOBAL_CACHE_KEY = GLOBAL_CACHE_KEY; exports.MAX_SPECIFICITY = MAX_SPECIFICITY; /***/ }), -/* 307 */ +/* 236 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -21945,7 +21874,7 @@ function getClassName(namespace, styleName) { } /***/ }), -/* 308 */ +/* 237 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -21993,7 +21922,7 @@ function separateStyles(stylesArray) { exports['default'] = separateStyles; /***/ }), -/* 309 */ +/* 238 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22004,11 +21933,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = registerInterfaceWithDefaultTheme; -var _ThemedStyleSheet = __webpack_require__(179); +var _ThemedStyleSheet = __webpack_require__(151); var _ThemedStyleSheet2 = _interopRequireDefault(_ThemedStyleSheet); -var _DefaultTheme = __webpack_require__(180); +var _DefaultTheme = __webpack_require__(152); var _DefaultTheme2 = _interopRequireDefault(_DefaultTheme); @@ -22020,7 +21949,7 @@ function registerInterfaceWithDefaultTheme(reactWithStylesInterface) { } /***/ }), -/* 310 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22030,7 +21959,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _CalendarDay = __webpack_require__(149); +var _CalendarDay = __webpack_require__(126); Object.defineProperty(exports, 'CalendarDay', { enumerable: true, @@ -22043,7 +21972,7 @@ Object.defineProperty(exports, 'CalendarDay', { }() }); -var _CalendarMonth = __webpack_require__(184); +var _CalendarMonth = __webpack_require__(156); Object.defineProperty(exports, 'CalendarMonth', { enumerable: true, @@ -22056,7 +21985,7 @@ Object.defineProperty(exports, 'CalendarMonth', { }() }); -var _CalendarMonthGrid = __webpack_require__(186); +var _CalendarMonthGrid = __webpack_require__(158); Object.defineProperty(exports, 'CalendarMonthGrid', { enumerable: true, @@ -22069,7 +21998,7 @@ Object.defineProperty(exports, 'CalendarMonthGrid', { }() }); -var _DateRangePicker = __webpack_require__(329); +var _DateRangePicker = __webpack_require__(258); Object.defineProperty(exports, 'DateRangePicker', { enumerable: true, @@ -22082,7 +22011,7 @@ Object.defineProperty(exports, 'DateRangePicker', { }() }); -var _DateRangePickerInput = __webpack_require__(201); +var _DateRangePickerInput = __webpack_require__(173); Object.defineProperty(exports, 'DateRangePickerInput', { enumerable: true, @@ -22095,7 +22024,7 @@ Object.defineProperty(exports, 'DateRangePickerInput', { }() }); -var _DateRangePickerInputController = __webpack_require__(200); +var _DateRangePickerInputController = __webpack_require__(172); Object.defineProperty(exports, 'DateRangePickerInputController', { enumerable: true, @@ -22108,7 +22037,7 @@ Object.defineProperty(exports, 'DateRangePickerInputController', { }() }); -var _DateRangePickerShape = __webpack_require__(193); +var _DateRangePickerShape = __webpack_require__(165); Object.defineProperty(exports, 'DateRangePickerShape', { enumerable: true, @@ -22121,7 +22050,7 @@ Object.defineProperty(exports, 'DateRangePickerShape', { }() }); -var _DayPicker = __webpack_require__(156); +var _DayPicker = __webpack_require__(133); Object.defineProperty(exports, 'DayPicker', { enumerable: true, @@ -22134,7 +22063,7 @@ Object.defineProperty(exports, 'DayPicker', { }() }); -var _DayPickerRangeController = __webpack_require__(209); +var _DayPickerRangeController = __webpack_require__(181); Object.defineProperty(exports, 'DayPickerRangeController', { enumerable: true, @@ -22147,7 +22076,7 @@ Object.defineProperty(exports, 'DayPickerRangeController', { }() }); -var _DayPickerSingleDateController = __webpack_require__(212); +var _DayPickerSingleDateController = __webpack_require__(184); Object.defineProperty(exports, 'DayPickerSingleDateController', { enumerable: true, @@ -22160,7 +22089,7 @@ Object.defineProperty(exports, 'DayPickerSingleDateController', { }() }); -var _SingleDatePicker = __webpack_require__(352); +var _SingleDatePicker = __webpack_require__(281); Object.defineProperty(exports, 'SingleDatePicker', { enumerable: true, @@ -22173,7 +22102,7 @@ Object.defineProperty(exports, 'SingleDatePicker', { }() }); -var _SingleDatePickerInput = __webpack_require__(214); +var _SingleDatePickerInput = __webpack_require__(186); Object.defineProperty(exports, 'SingleDatePickerInput', { enumerable: true, @@ -22186,7 +22115,7 @@ Object.defineProperty(exports, 'SingleDatePickerInput', { }() }); -var _SingleDatePickerShape = __webpack_require__(213); +var _SingleDatePickerShape = __webpack_require__(185); Object.defineProperty(exports, 'SingleDatePickerShape', { enumerable: true, @@ -22199,7 +22128,7 @@ Object.defineProperty(exports, 'SingleDatePickerShape', { }() }); -var _isInclusivelyAfterDay = __webpack_require__(101); +var _isInclusivelyAfterDay = __webpack_require__(90); Object.defineProperty(exports, 'isInclusivelyAfterDay', { enumerable: true, @@ -22212,7 +22141,7 @@ Object.defineProperty(exports, 'isInclusivelyAfterDay', { }() }); -var _isInclusivelyBeforeDay = __webpack_require__(353); +var _isInclusivelyBeforeDay = __webpack_require__(282); Object.defineProperty(exports, 'isInclusivelyBeforeDay', { enumerable: true, @@ -22225,7 +22154,7 @@ Object.defineProperty(exports, 'isInclusivelyBeforeDay', { }() }); -var _isNextDay = __webpack_require__(210); +var _isNextDay = __webpack_require__(182); Object.defineProperty(exports, 'isNextDay', { enumerable: true, @@ -22238,7 +22167,7 @@ Object.defineProperty(exports, 'isNextDay', { }() }); -var _isSameDay = __webpack_require__(82); +var _isSameDay = __webpack_require__(74); Object.defineProperty(exports, 'isSameDay', { enumerable: true, @@ -22251,7 +22180,7 @@ Object.defineProperty(exports, 'isSameDay', { }() }); -var _toISODateString = __webpack_require__(109); +var _toISODateString = __webpack_require__(98); Object.defineProperty(exports, 'toISODateString', { enumerable: true, @@ -22264,7 +22193,7 @@ Object.defineProperty(exports, 'toISODateString', { }() }); -var _toLocalizedDateString = __webpack_require__(154); +var _toLocalizedDateString = __webpack_require__(131); Object.defineProperty(exports, 'toLocalizedDateString', { enumerable: true, @@ -22277,7 +22206,7 @@ Object.defineProperty(exports, 'toLocalizedDateString', { }() }); -var _toMomentObject = __webpack_require__(83); +var _toMomentObject = __webpack_require__(75); Object.defineProperty(exports, 'toMomentObject', { enumerable: true, @@ -22293,14 +22222,14 @@ Object.defineProperty(exports, 'toMomentObject', { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /***/ }), -/* 311 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(68); -var getPolyfill = __webpack_require__(182); +var define = __webpack_require__(62); +var getPolyfill = __webpack_require__(154); module.exports = function shimAssign() { var polyfill = getPolyfill(); @@ -22314,7 +22243,7 @@ module.exports = function shimAssign() { /***/ }), -/* 312 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22385,7 +22314,7 @@ function shallowEqual(objA, objB) { module.exports = shallowEqual; /***/ }), -/* 313 */ +/* 242 */ /***/ (function(module, exports, __webpack_require__) { var moment = __webpack_require__(29); @@ -22411,7 +22340,7 @@ module.exports = { /***/ }), -/* 314 */ +/* 243 */ /***/ (function(module, exports) { var messages = { @@ -22536,7 +22465,7 @@ module.exports = { /***/ }), -/* 315 */ +/* 244 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22592,7 +22521,7 @@ module.exports = { /***/ }), -/* 316 */ +/* 245 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22602,7 +22531,7 @@ module.exports = { * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ -var ReactIs = __webpack_require__(317); +var ReactIs = __webpack_require__(246); var REACT_STATICS = { childContextTypes: true, contextType: true, @@ -22702,19 +22631,19 @@ module.exports = hoistNonReactStatics; /***/ }), -/* 317 */ +/* 246 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; if (true) { - module.exports = __webpack_require__(318); + module.exports = __webpack_require__(247); } else {} /***/ }), -/* 318 */ +/* 247 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22736,7 +22665,7 @@ exports.isSuspense=function(a){return t(a)===p}; /***/ }), -/* 319 */ +/* 248 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22753,7 +22682,7 @@ var DIRECTIONS = exports.DIRECTIONS = { }; /***/ }), -/* 320 */ +/* 249 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22776,7 +22705,7 @@ exports['default'] = _propTypes2['default'].shape({ }); /***/ }), -/* 321 */ +/* 250 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22797,7 +22726,7 @@ function getPhrase(phrase, args) { } /***/ }), -/* 322 */ +/* 251 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22812,13 +22741,13 @@ var _react = __webpack_require__(28); var _react2 = _interopRequireDefault(_react); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _CalendarDay = __webpack_require__(149); +var _CalendarDay = __webpack_require__(126); var _CalendarDay2 = _interopRequireDefault(_CalendarDay); -var _CustomizableCalendarDay = __webpack_require__(323); +var _CustomizableCalendarDay = __webpack_require__(252); var _CustomizableCalendarDay2 = _interopRequireDefault(_CustomizableCalendarDay); @@ -22841,7 +22770,7 @@ function CalendarWeek(_ref) { CalendarWeek.propTypes = propTypes; /***/ }), -/* 323 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22856,7 +22785,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -22868,35 +22797,35 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(81); +var _reactAddonsShallowCompare = __webpack_require__(73); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(69); +var _reactMomentProptypes = __webpack_require__(63); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _getCalendarDaySettings = __webpack_require__(183); +var _getCalendarDaySettings = __webpack_require__(155); var _getCalendarDaySettings2 = _interopRequireDefault(_getCalendarDaySettings); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); -var _DefaultTheme = __webpack_require__(180); +var _DefaultTheme = __webpack_require__(152); var _DefaultTheme2 = _interopRequireDefault(_DefaultTheme); @@ -23351,7 +23280,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(CustomizableCalendarDay); /***/ }), -/* 324 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -23366,7 +23295,7 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -23415,7 +23344,7 @@ function getCalendarMonthWeeks(month, enableOutsideDays) { } /***/ }), -/* 325 */ +/* 254 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -23430,7 +23359,7 @@ function isTransitionEndSupported() { } /***/ }), -/* 326 */ +/* 255 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -23450,7 +23379,7 @@ function getTransformStyles(transformValue) { } /***/ }), -/* 327 */ +/* 256 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -23465,7 +23394,7 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _isSameMonth = __webpack_require__(188); +var _isSameMonth = __webpack_require__(160); var _isSameMonth2 = _interopRequireDefault(_isSameMonth); @@ -23477,7 +23406,7 @@ function isPrevMonth(a, b) { } /***/ }), -/* 328 */ +/* 257 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -23492,7 +23421,7 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _isSameMonth = __webpack_require__(188); +var _isSameMonth = __webpack_require__(160); var _isSameMonth2 = _interopRequireDefault(_isSameMonth); @@ -23504,7 +23433,7 @@ function isNextMonth(a, b) { } /***/ }), -/* 329 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -23519,7 +23448,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -23527,7 +23456,7 @@ var _react = __webpack_require__(28); var _react2 = _interopRequireDefault(_react); -var _reactAddonsShallowCompare = __webpack_require__(81); +var _reactAddonsShallowCompare = __webpack_require__(73); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); @@ -23535,61 +23464,61 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); -var _reactPortal = __webpack_require__(224); +var _reactPortal = __webpack_require__(193); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _consolidatedEvents = __webpack_require__(110); +var _consolidatedEvents = __webpack_require__(99); -var _isTouchDevice = __webpack_require__(85); +var _isTouchDevice = __webpack_require__(77); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _reactOutsideClickHandler = __webpack_require__(150); +var _reactOutsideClickHandler = __webpack_require__(127); var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler); -var _DateRangePickerShape = __webpack_require__(193); +var _DateRangePickerShape = __webpack_require__(165); var _DateRangePickerShape2 = _interopRequireDefault(_DateRangePickerShape); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getResponsiveContainerStyles = __webpack_require__(197); +var _getResponsiveContainerStyles = __webpack_require__(169); var _getResponsiveContainerStyles2 = _interopRequireDefault(_getResponsiveContainerStyles); -var _getDetachedContainerStyles = __webpack_require__(198); +var _getDetachedContainerStyles = __webpack_require__(170); var _getDetachedContainerStyles2 = _interopRequireDefault(_getDetachedContainerStyles); -var _getInputHeight = __webpack_require__(152); +var _getInputHeight = __webpack_require__(129); var _getInputHeight2 = _interopRequireDefault(_getInputHeight); -var _isInclusivelyAfterDay = __webpack_require__(101); +var _isInclusivelyAfterDay = __webpack_require__(90); var _isInclusivelyAfterDay2 = _interopRequireDefault(_isInclusivelyAfterDay); -var _disableScroll2 = __webpack_require__(199); +var _disableScroll2 = __webpack_require__(171); var _disableScroll3 = _interopRequireDefault(_disableScroll2); -var _DateRangePickerInputController = __webpack_require__(200); +var _DateRangePickerInputController = __webpack_require__(172); var _DateRangePickerInputController2 = _interopRequireDefault(_DateRangePickerInputController); -var _DayPickerRangeController = __webpack_require__(209); +var _DayPickerRangeController = __webpack_require__(181); var _DayPickerRangeController2 = _interopRequireDefault(_DayPickerRangeController); -var _CloseButton = __webpack_require__(103); +var _CloseButton = __webpack_require__(92); var _CloseButton2 = _interopRequireDefault(_CloseButton); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -24342,7 +24271,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(DateRangePicker); /***/ }), -/* 330 */ +/* 259 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -24362,15 +24291,15 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _consolidatedEvents = __webpack_require__(110); +var _consolidatedEvents = __webpack_require__(99); -var _object = __webpack_require__(151); +var _object = __webpack_require__(128); var _object2 = _interopRequireDefault(_object); -var _document = __webpack_require__(333); +var _document = __webpack_require__(262); var _document2 = _interopRequireDefault(_document); @@ -24580,24 +24509,24 @@ OutsideClickHandler.propTypes = propTypes; OutsideClickHandler.defaultProps = defaultProps; /***/ }), -/* 331 */ +/* 260 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(169); +module.exports = __webpack_require__(141); /***/ }), -/* 332 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var getPolyfill = __webpack_require__(190); -var define = __webpack_require__(68); +var getPolyfill = __webpack_require__(162); +var define = __webpack_require__(62); module.exports = function shimValues() { var polyfill = getPolyfill(); @@ -24611,18 +24540,18 @@ module.exports = function shimValues() { /***/ }), -/* 333 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(68); +var define = __webpack_require__(62); -var implementation = __webpack_require__(191); -var getPolyfill = __webpack_require__(192); +var implementation = __webpack_require__(163); +var getPolyfill = __webpack_require__(164); var polyfill = getPolyfill(); -var shim = __webpack_require__(334); +var shim = __webpack_require__(263); var boundContains = function contains(node, other) { return polyfill.apply(node, [other]); @@ -24638,14 +24567,14 @@ module.exports = boundContains; /***/ }), -/* 334 */ +/* 263 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(68); -var getPolyfill = __webpack_require__(192); +var define = __webpack_require__(62); +var getPolyfill = __webpack_require__(164); module.exports = function shimContains() { var polyfill = getPolyfill(); @@ -24668,12 +24597,12 @@ module.exports = function shimContains() { /***/ }), -/* 335 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(153), - now = __webpack_require__(336), - toNumber = __webpack_require__(338); +var isObject = __webpack_require__(130), + now = __webpack_require__(265), + toNumber = __webpack_require__(267); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -24865,10 +24794,10 @@ module.exports = debounce; /***/ }), -/* 336 */ +/* 265 */ /***/ (function(module, exports, __webpack_require__) { -var root = __webpack_require__(204); +var root = __webpack_require__(176); /** * Gets the timestamp of the number of milliseconds that have elapsed since @@ -24894,7 +24823,7 @@ module.exports = now; /***/ }), -/* 337 */ +/* 266 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ @@ -24902,14 +24831,14 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object module.exports = freeGlobal; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(67))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(61))) /***/ }), -/* 338 */ +/* 267 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(153), - isSymbol = __webpack_require__(339); +var isObject = __webpack_require__(130), + isSymbol = __webpack_require__(268); /** Used as references for various `Number` constants. */ var NAN = 0 / 0; @@ -24977,11 +24906,11 @@ module.exports = toNumber; /***/ }), -/* 339 */ +/* 268 */ /***/ (function(module, exports, __webpack_require__) { -var baseGetTag = __webpack_require__(340), - isObjectLike = __webpack_require__(343); +var baseGetTag = __webpack_require__(269), + isObjectLike = __webpack_require__(272); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; @@ -25012,12 +24941,12 @@ module.exports = isSymbol; /***/ }), -/* 340 */ +/* 269 */ /***/ (function(module, exports, __webpack_require__) { -var Symbol = __webpack_require__(205), - getRawTag = __webpack_require__(341), - objectToString = __webpack_require__(342); +var Symbol = __webpack_require__(177), + getRawTag = __webpack_require__(270), + objectToString = __webpack_require__(271); /** `Object#toString` result references. */ var nullTag = '[object Null]', @@ -25046,10 +24975,10 @@ module.exports = baseGetTag; /***/ }), -/* 341 */ +/* 270 */ /***/ (function(module, exports, __webpack_require__) { -var Symbol = __webpack_require__(205); +var Symbol = __webpack_require__(177); /** Used for built-in method references. */ var objectProto = Object.prototype; @@ -25098,7 +25027,7 @@ module.exports = getRawTag; /***/ }), -/* 342 */ +/* 271 */ /***/ (function(module, exports) { /** Used for built-in method references. */ @@ -25126,7 +25055,7 @@ module.exports = objectToString; /***/ }), -/* 343 */ +/* 272 */ /***/ (function(module, exports) { /** @@ -25161,7 +25090,7 @@ module.exports = isObjectLike; /***/ }), -/* 344 */ +/* 273 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -25183,7 +25112,7 @@ function getSelectedDateOffset(fn, day) { } /***/ }), -/* 345 */ +/* 274 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -25195,7 +25124,7 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -25207,37 +25136,37 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _LeftArrow = __webpack_require__(207); +var _LeftArrow = __webpack_require__(179); var _LeftArrow2 = _interopRequireDefault(_LeftArrow); -var _RightArrow = __webpack_require__(206); +var _RightArrow = __webpack_require__(178); var _RightArrow2 = _interopRequireDefault(_RightArrow); -var _ChevronUp = __webpack_require__(346); +var _ChevronUp = __webpack_require__(275); var _ChevronUp2 = _interopRequireDefault(_ChevronUp); -var _ChevronDown = __webpack_require__(347); +var _ChevronDown = __webpack_require__(276); var _ChevronDown2 = _interopRequireDefault(_ChevronDown); -var _ScrollableOrientationShape = __webpack_require__(84); +var _ScrollableOrientationShape = __webpack_require__(76); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -25492,7 +25421,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DayPickerNavigation); /***/ }), -/* 346 */ +/* 275 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -25528,7 +25457,7 @@ ChevronUp.defaultProps = { exports['default'] = ChevronUp; /***/ }), -/* 347 */ +/* 276 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -25564,7 +25493,7 @@ ChevronDown.defaultProps = { exports['default'] = ChevronDown; /***/ }), -/* 348 */ +/* 277 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -25579,7 +25508,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -25591,21 +25520,21 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _getPhrasePropTypes = __webpack_require__(58); +var _getPhrasePropTypes = __webpack_require__(55); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _KeyboardShortcutRow = __webpack_require__(349); +var _KeyboardShortcutRow = __webpack_require__(278); var _KeyboardShortcutRow2 = _interopRequireDefault(_KeyboardShortcutRow); -var _CloseButton = __webpack_require__(103); +var _CloseButton = __webpack_require__(92); var _CloseButton2 = _interopRequireDefault(_CloseButton); @@ -26073,7 +26002,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref3) { })(DayPickerKeyboardShortcuts); /***/ }), -/* 349 */ +/* 278 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -26085,7 +26014,7 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -26097,9 +26026,9 @@ var _propTypes = __webpack_require__(34); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -26188,7 +26117,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(KeyboardShortcutRow); /***/ }), -/* 350 */ +/* 279 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -26219,7 +26148,7 @@ function getNumberOfCalendarMonthWeeks(month) { } /***/ }), -/* 351 */ +/* 280 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -26234,7 +26163,7 @@ function getActiveElement() { } /***/ }), -/* 352 */ +/* 281 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -26249,7 +26178,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(50); +var _object = __webpack_require__(49); var _object2 = _interopRequireDefault(_object); @@ -26261,69 +26190,69 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _reactWithStyles = __webpack_require__(59); +var _reactWithStyles = __webpack_require__(56); -var _reactPortal = __webpack_require__(224); +var _reactPortal = __webpack_require__(193); -var _airbnbPropTypes = __webpack_require__(47); +var _airbnbPropTypes = __webpack_require__(46); -var _consolidatedEvents = __webpack_require__(110); +var _consolidatedEvents = __webpack_require__(99); -var _isTouchDevice = __webpack_require__(85); +var _isTouchDevice = __webpack_require__(77); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _reactOutsideClickHandler = __webpack_require__(150); +var _reactOutsideClickHandler = __webpack_require__(127); var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler); -var _SingleDatePickerShape = __webpack_require__(213); +var _SingleDatePickerShape = __webpack_require__(185); var _SingleDatePickerShape2 = _interopRequireDefault(_SingleDatePickerShape); -var _defaultPhrases = __webpack_require__(51); +var _defaultPhrases = __webpack_require__(50); -var _toMomentObject = __webpack_require__(83); +var _toMomentObject = __webpack_require__(75); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); -var _toLocalizedDateString = __webpack_require__(154); +var _toLocalizedDateString = __webpack_require__(131); var _toLocalizedDateString2 = _interopRequireDefault(_toLocalizedDateString); -var _getResponsiveContainerStyles = __webpack_require__(197); +var _getResponsiveContainerStyles = __webpack_require__(169); var _getResponsiveContainerStyles2 = _interopRequireDefault(_getResponsiveContainerStyles); -var _getDetachedContainerStyles = __webpack_require__(198); +var _getDetachedContainerStyles = __webpack_require__(170); var _getDetachedContainerStyles2 = _interopRequireDefault(_getDetachedContainerStyles); -var _getInputHeight = __webpack_require__(152); +var _getInputHeight = __webpack_require__(129); var _getInputHeight2 = _interopRequireDefault(_getInputHeight); -var _isInclusivelyAfterDay = __webpack_require__(101); +var _isInclusivelyAfterDay = __webpack_require__(90); var _isInclusivelyAfterDay2 = _interopRequireDefault(_isInclusivelyAfterDay); -var _disableScroll2 = __webpack_require__(199); +var _disableScroll2 = __webpack_require__(171); var _disableScroll3 = _interopRequireDefault(_disableScroll2); -var _SingleDatePickerInput = __webpack_require__(214); +var _SingleDatePickerInput = __webpack_require__(186); var _SingleDatePickerInput2 = _interopRequireDefault(_SingleDatePickerInput); -var _DayPickerSingleDateController = __webpack_require__(212); +var _DayPickerSingleDateController = __webpack_require__(184); var _DayPickerSingleDateController2 = _interopRequireDefault(_DayPickerSingleDateController); -var _CloseButton = __webpack_require__(103); +var _CloseButton = __webpack_require__(92); var _CloseButton2 = _interopRequireDefault(_CloseButton); -var _constants = __webpack_require__(42); +var _constants = __webpack_require__(41); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -27109,7 +27038,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(SingleDatePicker); /***/ }), -/* 353 */ +/* 282 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -27124,7 +27053,7 @@ var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _isAfterDay = __webpack_require__(113); +var _isAfterDay = __webpack_require__(102); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); @@ -27136,7 +27065,7 @@ function isInclusivelyBeforeDay(a, b) { } /***/ }), -/* 354 */ +/* 283 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -27234,7 +27163,7 @@ exports.Resizer = Resizer; /***/ }), -/* 355 */ +/* 284 */ /***/ (function(module, exports) { // @@ -27384,34 +27313,35 @@ module.exports.strategies = { /***/ }), -/* 356 */, -/* 357 */, -/* 358 */, -/* 359 */, -/* 360 */, -/* 361 */, -/* 362 */, -/* 363 */, -/* 364 */, -/* 365 */, -/* 366 */, -/* 367 */, -/* 368 */, -/* 369 */, -/* 370 */, -/* 371 */, -/* 372 */, -/* 373 */, -/* 374 */, -/* 375 */, -/* 376 */, -/* 377 */, -/* 378 */, -/* 379 */, -/* 380 */, -/* 381 */, -/* 382 */, -/* 383 */ +/* 285 */, +/* 286 */, +/* 287 */, +/* 288 */, +/* 289 */, +/* 290 */, +/* 291 */, +/* 292 */, +/* 293 */, +/* 294 */, +/* 295 */, +/* 296 */, +/* 297 */, +/* 298 */, +/* 299 */, +/* 300 */, +/* 301 */, +/* 302 */, +/* 303 */, +/* 304 */, +/* 305 */, +/* 306 */, +/* 307 */, +/* 308 */, +/* 309 */, +/* 310 */, +/* 311 */, +/* 312 */, +/* 313 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -27632,7 +27562,7 @@ function Button(props, ref) { var esm_extends = __webpack_require__(18); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(41); +var external_this_wp_isShallowEqual_ = __webpack_require__(40); var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); // EXTERNAL MODULE: external {"this":["wp","deprecated"]} @@ -30998,7 +30928,7 @@ PopoverContainer.Slot = function () { /* harmony default export */ var popover = (PopoverContainer); // EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(46); +var external_this_wp_a11y_ = __webpack_require__(45); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js @@ -31753,7 +31683,7 @@ function CheckboxControl(_ref) { /* harmony default export */ var checkbox_control = (Object(external_this_wp_compose_["withInstanceId"])(CheckboxControl)); // EXTERNAL MODULE: ./node_modules/clipboard/dist/clipboard.js -var clipboard = __webpack_require__(232); +var clipboard = __webpack_require__(201); var clipboard_default = /*#__PURE__*/__webpack_require__.n(clipboard); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/clipboard-button/index.js @@ -32057,7 +31987,7 @@ function (_Component) { /* harmony default export */ var dropdown = (dropdown_Dropdown); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js -var tinycolor = __webpack_require__(49); +var tinycolor = __webpack_require__(48); var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/utils.js @@ -32297,11 +32227,11 @@ function calculateSaturationChange(e, props, container) { } // EXTERNAL MODULE: ./node_modules/mousetrap/mousetrap.js -var mousetrap = __webpack_require__(233); +var mousetrap = __webpack_require__(202); var mousetrap_default = /*#__PURE__*/__webpack_require__.n(mousetrap); // EXTERNAL MODULE: ./node_modules/mousetrap/plugins/global-bind/mousetrap-global-bind.js -var mousetrap_global_bind = __webpack_require__(284); +var mousetrap_global_bind = __webpack_require__(213); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/keyboard-shortcuts/platform.js /** @@ -33932,14 +33862,14 @@ function ColorPalette(_ref) { } // EXTERNAL MODULE: ./node_modules/react-dates/initialize.js -var initialize = __webpack_require__(285); +var initialize = __webpack_require__(214); // EXTERNAL MODULE: external "moment" var external_moment_ = __webpack_require__(29); var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_); // EXTERNAL MODULE: ./node_modules/react-dates/index.js -var react_dates = __webpack_require__(234); +var react_dates = __webpack_require__(203); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date.js @@ -36864,7 +36794,7 @@ function (_Component) { /* harmony default export */ var token_input = (token_input_TokenInput); // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js -var lib = __webpack_require__(71); +var lib = __webpack_require__(65); var lib_default = /*#__PURE__*/__webpack_require__.n(lib); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/suggestions-list.js @@ -39010,7 +38940,7 @@ function RadioControl(_ref) { /* harmony default export */ var radio_control = (Object(external_this_wp_compose_["withInstanceId"])(RadioControl)); // EXTERNAL MODULE: ./node_modules/re-resizable/lib/index.js -var re_resizable_lib = __webpack_require__(235); +var re_resizable_lib = __webpack_require__(204); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/resizable-box/index.js @@ -39374,10 +39304,10 @@ var regenerator = __webpack_require__(20); var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(44); +var asyncToGenerator = __webpack_require__(43); // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js -var web_cjs = __webpack_require__(66); +var web_cjs = __webpack_require__(60); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/snackbar/list.js @@ -40350,7 +40280,7 @@ function withFilters(hookName) { } // EXTERNAL MODULE: ./node_modules/uuid/v4.js -var v4 = __webpack_require__(70); +var v4 = __webpack_require__(64); var v4_default = /*#__PURE__*/__webpack_require__.n(v4); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-notices/index.js diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js index 16fb970d0e..fc4a10eb56 100644 --- a/wp-includes/js/dist/components.min.js +++ b/wp-includes/js/dist/components.min.js @@ -1,16 +1,16 @@ -this.wp=this.wp||{},this.wp.components=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=383)}([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.lodash}()},,,function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.richText}()},function(e,t,n){"use strict";var r=n(38);var o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return a}))},,function(e,t){!function(){e.exports=this.wp.dom}()},,function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.moment}()},function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},,,function(e,t,n){e.exports=n(94)()},,,function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},,function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},,function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function s(e){r(i,o,a,s,c,"next",e)}function c(e){r(i,o,a,s,c,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},,function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){e.exports=n(315)},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r=u;return function(o,a){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw a;return P()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=w(i,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?f:d,c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=f,n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function v(){}function b(){}function m(){}var y={};y[a]=function(){return this};var g=Object.getPrototypeOf,O=g&&g(g(j([])));O&&O!==n&&r.call(O,a)&&(y=O);var k=m.prototype=v.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function D(e){var t;this._invoke=function(n,o){function a(){return new Promise((function(t,a){!function t(n,o,a,i){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,a,i)}),(function(e){t("throw",e,a,i)})):Promise.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,i)}))}i(s.arg)}(n,o,t,a)}))}return t=t?t.then(a,a):a()}}function w(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,w(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function j(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,s=0,c=o.round,l=o.min,u=o.max,d=o.random;function h(e,t){if(t=t||{},(e=e||"")instanceof h)return e;if(!(this instanceof h))return new h(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,c=null,d=!1,h=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(E[e])e=E[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:H(t[1]),g:H(t[2]),b:H(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:H(t[1]),g:H(t[2]),b:H(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(f=e.r,p=e.g,v=e.b,t={r:255*I(f,255),g:255*I(p,255),b:255*I(v,255)},d=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=R(e.s),s=R(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),s=n*(1-a*t),c=n*(1-(1-a)*t),l=r%6;return{r:255*[n,s,i,i,c,n][l],g:255*[c,n,n,s,i,i][l],b:255*[i,i,c,n,n,s][l]}}(e.h,r,s),d=!0,h="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=R(e.s),c=R(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)r=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=i(c,s,e+1/3),o=i(c,s,e),a=i(c,s,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,c),d=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,v;return n=T(n),{ok:d,format:e.format||h,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function f(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,a=u(e,t,n),i=l(e,t,n),s=(a+i)/2;if(a==i)r=o=0;else{var c=a-i;switch(o=s>.5?c/(2-a-i):c/(a+i),a){case e:r=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(h(r));return a}function P(e,t){t=t||6;for(var n=h(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(h({h:r,s:o,v:a})),a=(a+s)%1;return i}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[N(c(e).toString(16)),N(c(t).toString(16)),N(c(n).toString(16)),N(L(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*I(this._r,255))+"%",g:c(100*I(this._g,255))+"%",b:c(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*I(this._r,255))+"%, "+c(100*I(this._g,255))+"%, "+c(100*I(this._b,255))+"%)":"rgba("+c(100*I(this._r,255))+"%, "+c(100*I(this._g,255))+"%, "+c(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(z[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=h(e);n="#"+b(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(M,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:R(e[r]));e=n}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:d(),g:d(),b:d()})},h.mix=function(e,t,n){n=0===n?0:n||50;var r=h(e).toRgb(),o=h(t).toRgb(),a=n/100;return h({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},h.readability=function(e,t){var n=h(e),r=h(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(e,t,n){var r,o,a=h.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},h.mostReadable=function(e,t,n){var r,o,a,i,s=null,c=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var l=0;lc&&(c=r,s=h(t[l]));return h.isReadable(e,s,{level:a,size:i})||!o?s:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var E=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(E);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function x(e){return l(1,u(0,e))}function H(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return H(e)/255}var A,V,B,K=(V="[\\s|\\(]+("+(A="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",B="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",{CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=h:void 0===(r=function(){return h}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";var r=n(68),o=n(181),a=n(182),i=n(311),s=a();r(s,{getPolyfill:a,implementation:o,shim:i}),e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="Interact with the calendar and add the check-in date for your trip.",o="Move backward to switch to the previous month.",a="Move forward to switch to the next month.",i="page up and page down keys",s="Home and end keys",c="Escape key",l="Select the date in focus.",u="Move backward (left) and forward (right) by one day.",d="Move backward (up) and forward (down) by one week.",h="Return to the date input field.",f="Press the down arrow key to interact with the calendar and\n select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",p=function(e){var t=e.date;return"Choose "+String(t)+" as your check-in date. It’s available."},v=function(e){var t=e.date;return"Choose "+String(t)+" as your check-out date. It’s available."},b=function(e){return e.date},m=function(e){var t=e.date;return"Not available. "+String(t)},y=function(e){var t=e.date;return"Selected. "+String(t)};t.default={calendarLabel:"Calendar",closeDatePicker:"Close",focusStartDate:r,clearDate:"Clear Date",clearDates:"Clear Dates",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:s,escape:c,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableStartDate:p,chooseAvailableEndDate:v,dateIsUnavailable:m,dateIsSelected:y};t.DateRangePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:r,jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:s,escape:c,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableStartDate:p,chooseAvailableEndDate:v,dateIsUnavailable:m,dateIsSelected:y},t.DateRangePickerInputPhrases={focusStartDate:r,clearDates:"Clear Dates",keyboardNavigationInstructions:f},t.SingleDatePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:s,escape:c,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableDate:b,dateIsUnavailable:m,dateIsSelected:y},t.SingleDatePickerInputPhrases={clearDate:"Clear Date",keyboardNavigationInstructions:f},t.DayPickerPhrases={calendarLabel:"Calendar",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:s,escape:c,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,chooseAvailableStartDate:p,chooseAvailableEndDate:v,chooseAvailableDate:b,dateIsUnavailable:m,dateIsSelected:y},t.DayPickerKeyboardShortcutsPhrases={keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:s,escape:c,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h},t.DayPickerNavigationPhrases={jumpToPrevMonth:o,jumpToNextMonth:a},t.CalendarDayPhrases={chooseAvailableDate:b,dateIsUnavailable:m,dateIsSelected:y}},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce((function(e,t){return(0,r.default)({},e,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,o.default.oneOfType([o.default.string,o.default.func,o.default.node])))}),{})};var r=a(n(50)),o=a(n(34));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withStylesPropTypes=t.css=void 0;var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,s=void 0===n?"styles":n,u=t.themePropName,h=void 0===u?"theme":u,p=t.cssPropName,y=void 0===p?"css":p,g=t.flushBefore,O=void 0!==g&&g,k=t.pureComponent,_=void 0!==k&&k,D=void 0,w=void 0,M=void 0,S=void 0,C=function(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}(_);function j(e){return e===l.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function P(t,n){var r=function(e){return e===l.DIRECTIONS.LTR?M:S}(t),o=t===l.DIRECTIONS.LTR?D:w,a=d.default.get();return o&&r===a?o:(t===l.DIRECTIONS.RTL?(w=e?d.default.createRTL(e):v,S=a,o=w):(D=e?d.default.createLTR(e):v,M=a,o=D),o)}function E(e,t){return{resolveMethod:j(e),styleDef:P(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[l.CHANNEL]?r.context[l.CHANNEL].getState():m;return r.state=E(o),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe((function(t){e.setState(E(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;O&&d.default.flush();var n=this.state,o=n.resolveMethod,a=n.styleDef;return i.default.createElement(e,r({},this.props,(f(t={},h,d.default.get()),f(t,s,a()),f(t,y,o),t)))}}]),n}(C);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=b,e.propTypes&&(n.propTypes=(0,a.default)({},e.propTypes),delete n.propTypes[s],delete n.propTypes[h],delete n.propTypes[y]),e.defaultProps&&(n.defaultProps=(0,a.default)({},e.defaultProps)),(0,c.default)(n,e)}};var a=h(n(50)),i=h(n(28)),s=h(n(34)),c=h(n(316)),l=n(319),u=h(n(320)),d=h(n(179));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:s.default.object.isRequired,theme:s.default.object.isRequired,css:s.default.func.isRequired};var p={},v=function(){return p};var b=f({},l.CHANNEL,u.default),m=l.DIRECTIONS.LTR},function(e,t){!function(){e.exports=this.ReactDOM}()},,,,,,function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(136)),a=r(n(137)),i=n(28),s=r(i),c=r(n(138)),l=r(n(139)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function h(e,t){return u.und(e)||u.nul(e)?t:e}function f(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var i=a,s=!1,c=0;c=f.startTime+l.duration;else if(l.decay)b=p+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-b)<.1)&&(v=b);else{d=void 0!==f.lastTime?f.lastTime:t,g=void 0!==f.lastVelocity?f.lastVelocity:l.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),k=0;kv:b=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,s,c){var l=c?c(e):e;if(ln){if("identity"===s)return l;"clamp"===s&&(l=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=a(l),r===-1/0?l=-l:o===1/0?l+=r:l=l*(o-r)+r;return l}(e,a[t],a[t+1],o[t],o[t+1],c,i,s,r.map)}}var A=function(e){function t(n,r,o,a){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=F(r,o,a),i}c(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var V=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}c(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new A(this,e,t,n)},t}(y),B=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new V(e)})),n}c(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new A(this,e,t)},t}(g),K=0,W=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=K++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=v(e),n=t.delay,r=void 0===n?0:n,i=t.to,s=a(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},s,{delay:r,to:i}));else if(i){var c={};Object.entries(i).forEach((function(e){var t,n=e[0],a=e[1],i=o({to:(t={},t[n]=a,t),delay:p(r,n)},s),l=c[i.delay]&&c[i.delay].to;c[i.delay]=o({},c[i.delay],i,{to:o({},l,i.to)})})),this.queue=Object.values(c)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(s),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,a=e.to,i=void 0===a?{}:a;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var s=t.delay,c=a(t,["delay"]),l=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(c.to)||u.fun(c.to);s?setTimeout((function(){r===n.guid&&(d?n.runAsync(c,l):n.diff(c).start(l))}),s):d?n.runAsync(c,l):n.diff(c).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,R.has(t)||R.add(t),N||(N=!0,w(z||L));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,R.has(t)&&R.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,a(e,["delay"])),i=this.local,s=Promise.resolve(void 0);if(u.arr(r.to))for(var c=function(e){var t=e,a=o({},r,v(r.to[t]));u.arr(a.config)&&(a.config=a.config[t]),s=s.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},l=0;l=r.length)return"break";i=r[a++]}else{if((a=r.next()).done)return"break";i=a.value}var n=i.key,s=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(s),e.current.deleted=e.current.deleted.filter(s))},r=e.current.deleted,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var J=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=b.transform(t)),n.payload=t,n}return c(t,e),t}(O),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},te="[-+]?\\d*\\.?\\d+",ne=te+"%";function re(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=he(o,r,e+1/3),i=he(o,r,e),s=he(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function pe(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function ve(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function me(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ye(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ue.exec(t))?parseInt(n[1]+"ff",16)>>>0:ee.hasOwnProperty(t)?ee[t]:(n=oe.exec(t))?(pe(n[1])<<24|pe(n[2])<<16|pe(n[3])<<8|255)>>>0:(n=ae.exec(t))?(pe(n[1])<<24|pe(n[2])<<16|pe(n[3])<<8|be(n[4]))>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=de.exec(t))?parseInt(n[1],16)>>>0:(n=le.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ie.exec(t))?(255|fe(ve(n[1]),me(n[2]),me(n[3])))>>>0:(n=se.exec(t))?(fe(ve(n[1]),me(n[2]),me(n[3]))|be(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var ge=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Oe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ke=new RegExp("("+Object.keys(ee).join("|")+")","g"),_e={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},De=["Webkit","Ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||_e.hasOwnProperty(e)&&_e[e]?(""+t).trim():t+"px"}_e=Object.keys(_e).reduce((function(e,t){return De.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),_e);var Me={};I((function(e){return new J(e)})),P("div"),S((function(e){var t=e.output.map((function(e){return e.replace(Oe,ye)})).map((function(e){return e.replace(ke,ye)})),n=t[0].match(ge).map((function(){return[]}));t.forEach((function(e){e.match(ge).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(ge).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(ge,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),_(ee),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,s=a(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var l in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(l)){var u=0===l.indexOf("--"),d=we(l,n[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,d):e.style[l]=d}for(var h in s){var f=c?h:Me[h]||(Me[h]=h.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,s[h])}}),(function(e){return e}));var Se,Ce,je=(Se=function(e){return i.forwardRef((function(t,n){var r=d(),c=i.useRef(!0),l=i.useRef(null),h=i.useRef(null),f=i.useCallback((function(e){var t=l.current;l.current=new H(e,(function(){var e=!1;h.current&&(e=b.fn(h.current,l.current.getAnimatedValue())),h.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){c.current=!1,l.current&&l.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(h,c,r)})),f(t);var p,v=l.current.getValue(),m=(v.scrollTop,v.scrollLeft,a(v,["scrollTop","scrollLeft"])),y=(p=e,!u.fun(p)||p.prototype instanceof s.Component?function(e){return h.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return s.createElement(e,o({},m,{ref:y}))}))},void 0===(Ce=!1)&&(Ce=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ce?t[0].toLowerCase()+t.substring(1):t;return e[n]=Se(n),e}),Se)}),Pe=je(["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","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"]);t.apply=je,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=L,t.animated=Pe,t.a=Pe,t.interpolate=function(e,t,n){return e&&new A(e,t,n)},t.Globals=x,t.useSpring=function(e){var t=u.fun(e),n=U(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),a=p(t),s=i.useRef(),c=U(e,(function(e,t){return 0===e&&(s.current=[]),s.current.push(t),o({},a,{config:p(a.config,e),attach:e>0&&function(){return s.current[e-1]}})})),l=c[0],d=c[1],h=c[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=s.current[r];return o({},e,{config:p(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[l,f,h]:l},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),s=X(r),c=s.lazy,l=void 0!==c&&c,u=(s.unique,s.reset),h=void 0!==u&&u,f=(s.enter,s.leave,s.update,s.onDestroyed),v=(s.keys,s.items,s.onFrame),b=s.onRest,m=s.onStart,y=s.ref,g=a(s,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),k=i.useRef(!1),_=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:O});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(_.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(_.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(_.current.instances).map((function(e){return e[1]}))}}})),_.current=function(e,t){var n=e.first,r=e.prevProps,i=a(e,["first","prevProps"]),s=X(t),c=s.items,l=s.keys,u=s.initial,d=s.from,h=s.enter,f=s.leave,v=s.update,b=s.trail,m=void 0===b?0:b,y=s.unique,g=s.config,O=s.order,k=void 0===O?[q,G,Y]:O,_=X(r),D=_.keys,w=_.items,M=o({},i.current),S=[].concat(i.deleted),C=Object.keys(M),j=new Set(C),P=new Set(l),E=l.filter((function(e){return!j.has(e)})),z=i.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=l.filter((function(e){return j.has(e)})),I=-m;for(;k.length;){switch(k.shift()){case q:E.forEach((function(e,t){y&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=l.indexOf(e),o=c[r],a=n&&void 0!==u?"initial":q;M[e]={slot:a,originalKey:e,key:y?String(e):$++,item:o,trail:I+=m,config:p(g,o,a),from:p(n&&void 0!==u?u||{}:d,o),to:p(h,o)}}));break;case G:z.forEach((function(e){var t=D.indexOf(e),n=w[t],r=G;S.unshift(o({},M[e],{slot:r,destroyed:!0,left:D[Math.max(0,t-1)],right:D[Math.min(D.length,t+1)],trail:I+=m,config:p(g,n,r),to:p(f,n)})),delete M[e]}));break;case Y:T.forEach((function(e){var t=l.indexOf(e),n=c[t],r=Y;M[e]=o({},M[e],{item:n,slot:r,trail:I+=m,config:p(g,n,r),to:p(v,n)})}))}}var x=l.map((function(e){return M[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,a(e,["left","right"]));-1!==(t=x.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),x=[].concat(x.slice(0,t),[r],x.slice(t))})),o({},i,{changed:E.length||z.length||T.length,first:n&&0===E.length,transitions:x,current:M,deleted:S,prevProps:t})}(_.current,r),_.current.changed&&_.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,a=e.config,i=e.trail,s=e.key,c=e.item;_.current.instances.has(s)||_.current.instances.set(s,new W);var u=_.current.instances.get(s),d=o({},g,{to:r,from:n,config:a,ref:y,onRest:function(n){_.current.mounted&&(e.destroyed&&(y||l||Q(_,s),f&&f(c)),!Array.from(_.current.instances).some((function(e){return!e[1].idle}))&&(y||l)&&_.current.deleted.length>0&&Q(_),b&&b(c,t,n))},onStart:m&&function(){return m(c,t)},onFrame:v&&function(e){return v(c,t,e)},delay:i,reset:h&&t===q});u.update(d),_.current.paused||u.start()})),i.useEffect((function(){return _.current.mounted=k.current=!0,function(){_.current.mounted=k.current=!1,Array.from(_.current.instances).map((function(e){return e[1].destroy()})),_.current.instances.clear()}}),[]),_.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:_.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var a=e.current;if(a){var i=a.controllers;if(i.length){var s=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+s})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=U},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(146),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,s=Object.defineProperty,c=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,r){var o;t in e&&("function"!=typeof(o=r)||"[object Function]"!==a.call(o)||!r())||(c?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,n){"use strict";var r=n(95);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,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,n){"use strict";var r=n(77);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(34),a=(r=o)&&r.__esModule?r:{default:r},i=n(42);t.default=a.default.oneOf([i.ICON_BEFORE_POSITION,i.ICON_AFTER_POSITION])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(34),a=(r=o)&&r.__esModule?r:{default:r},i=n(42);t.default=a.default.oneOf([i.INFO_POSITION_TOP,i.INFO_POSITION_BOTTOM,i.INFO_POSITION_BEFORE,i.INFO_POSITION_AFTER])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&!(0,o.default)(e,t)};var r=a(n(29)),o=a(n(102));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a.default.isMoment(e)||!a.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),i=t.month(),s=n===o,c=r===i;return s&&c?e.date()1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in c))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===c[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return c[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(34),a=(r=o)&&r.__esModule?r:{default:r},i=n(47);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=(0,i.and)([a.default.instanceOf(Set),function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o0?!0===i?r.scrollTop(t,g.top+O.top):!1===i?r.scrollTop(t,g.top+k.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+k.top):a||((i=void 0===i||!!i)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+k.top)),o&&(O.left<0||k.left>0?!0===s?r.scrollLeft(t,g.left+O.left):!1===s?r.scrollLeft(t,g.left+k.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+k.left):a||((s=void 0===s||!!s)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+k.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},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){"use strict";var r=Array.prototype.slice,o=n(167),a=Object.keys,i=a?function(e){return a(e)}:n(291),s=Object.keys;i.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)}):Object.keys=i;return Object.keys||i},e.exports=i},function(e,t,n){"use strict";var r=Function.prototype.toString,o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},i=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(s)return function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(a(e))return!1;var t=i.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){var r=n(77).call(Function.call,Object.prototype.hasOwnProperty),o=Object.assign;e.exports=function(e,t){if(o)return o(e,t);for(var n in t)r(t,n)&&(e[n]=t[n]);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCalendarDay=void 0;var r=Object.assign||function(e){for(var t=1;t=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(293),o=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,a=function e(t,n,a,i,s){for(var c=i,l=0;l0&&(h=r.IsArray(d)),h){c=e(t,d,r.ToLength(r.Get(d,"length")),c,s-1)}else{if(c>=o)throw new TypeError("index too large");r.CreateDataPropertyOrThrow(t,r.ToString(c),d),c+=1}}l+=1}return c};e.exports=function(){var e=r.ToObject(this),t=r.ToLength(r.Get(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=r.ToInteger(arguments[0]));var o=r.ArraySpeciesCreate(e,0);return a(o,e,t,0,n),o}},function(e,t,n){"use strict";var r=n(294),o=n(148),a=o(o({},r),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=a},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(298)()){var o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&a.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(107),o=r("%TypeError%"),a=r("%SyntaxError%"),i=n(98),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(i(t,r)&&!n[r])return!1;var a=i(t,"[[Value]]"),s=i(t,"[[Get]]")||i(t,"[[Set]]");if(a&&s)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var i=s[t];if("function"!=typeof i)throw new a("unknown record type: "+t);if(!i(e,r))throw new o(n+" must be a "+t);console.log(i(e,r),r)}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(168);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function a(e,t){var n=t(e(o));return function(){return n}}function i(e){return a(e,r.createLTR||r.create)}function s(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",a="width"===t?"Right":"Bottom",i=!n||r?window.getComputedStyle(e):null,s=e.offsetWidth,c=e.offsetHeight,l="width"===t?s:c;n||(l-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(l+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=o&&at.clientHeight?t:o(t)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=r(),i=o(e);return t.set(i,i.style.overflowY),i===n?t:a(i,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&(L||H||i!==k)){var $=y||this.today;V=this.deleteModifierFromRange(V,$,$.clone().add(k,"days"),"blocked-minimum-nights"),V=this.deleteModifierFromRange(V,$,$.clone().add(k,"days"),"blocked")}(L||x)&&(0,d.default)(P).forEach((function(e){Object.keys(e).forEach((function(e){var n=(0,u.default)(e),r=!1;(L||z)&&(s(n)?(V=t.addModifier(V,n,"blocked-out-of-range"),r=!0):V=t.deleteModifier(V,n,"blocked-out-of-range")),(L||T)&&(c(n)?(V=t.addModifier(V,n,"blocked-calendar"),r=!0):V=t.deleteModifier(V,n,"blocked-calendar")),V=r?t.addModifier(V,n,"blocked"):t.deleteModifier(V,n,"blocked"),(L||I)&&(V=l(n)?t.addModifier(V,n,"highlighted-calendar"):t.deleteModifier(V,n,"highlighted-calendar"))}))})),i>0&&n&&o===E.END_DATE&&(V=this.addModifierToRange(V,n,n.clone().add(i,"days"),"blocked-minimum-nights"),V=this.addModifierToRange(V,n,n.clone().add(i,"days"),"blocked"));var q=(0,u.default)();if((0,m.default)(this.today,q)||(V=this.deleteModifier(V,this.today,"today"),V=this.addModifier(V,q,"today"),this.today=q),Object.keys(V).length>0&&this.setState({visibleDays:(0,a.default)({},P,V)}),L||h!==M){var G=N(h,o);this.setState({phrases:(0,a.default)({},h,{chooseAvailableDate:G})})}}},{key:"onDayClick",value:function(e,t){var n=this.props,r=n.keepOpenOnDateSelect,o=n.minimumNights,a=n.onBlur,i=n.focusedInput,s=n.onFocusChange,c=n.onClose,l=n.onDatesChange,u=n.startDateOffset,d=n.endDateOffset,h=n.disabled;if(t&&t.preventDefault(),!this.isBlocked(e)){var f=this.props,p=f.startDate,b=f.endDate;if(u||d)p=(0,_.default)(u,e),b=(0,_.default)(d,e),r||(s(null),c({startDate:p,endDate:b}));else if(i===E.START_DATE){var m=b&&b.clone().subtract(o,"days"),O=(0,g.default)(m,e)||(0,y.default)(p,b),k=h===E.END_DATE;k&&O||(p=e,O&&(b=null)),k&&!O?(s(null),c({startDate:p,endDate:b})):k||s(E.END_DATE)}else if(i===E.END_DATE){var D=p&&p.clone().add(o,"days");p?(0,v.default)(e,D)?(b=e,r||(s(null),c({startDate:p,endDate:b}))):h!==E.START_DATE&&(p=e,b=null):(b=e,s(E.START_DATE))}l({startDate:p,endDate:b}),a()}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,r=t.endDate,o=t.focusedInput,i=t.minimumNights,s=t.startDateOffset,c=t.endDateOffset,l=this.state,u=l.hoverDate,d=l.visibleDays,h=null;if(o){var f=s||c,p={};if(f){var v=(0,_.default)(s,e),b=(0,_.default)(c,e,(function(e){return e.add(1,"day")}));h={start:v,end:b},this.state.dateOffset&&this.state.dateOffset.start&&this.state.dateOffset.end&&(p=this.deleteModifierFromRange(p,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),p=this.addModifierToRange(p,v,b,"hovered-offset")}if(!f){if(p=this.deleteModifier(p,u,"hovered"),p=this.addModifier(p,e,"hovered"),n&&!r&&o===E.END_DATE){if((0,y.default)(u,n)){var O=u.clone().add(1,"day");p=this.deleteModifierFromRange(p,n,O,"hovered-span")}if(!this.isBlocked(e)&&(0,y.default)(e,n)){var k=e.clone().add(1,"day");p=this.addModifierToRange(p,n,k,"hovered-span")}}if(!n&&r&&o===E.START_DATE&&((0,g.default)(u,r)&&(p=this.deleteModifierFromRange(p,u,r,"hovered-span")),!this.isBlocked(e)&&(0,g.default)(e,r)&&(p=this.addModifierToRange(p,e,r,"hovered-span"))),n){var D=n.clone().add(1,"day"),w=n.clone().add(i+1,"days");if(p=this.deleteModifierFromRange(p,D,w,"after-hovered-start"),(0,m.default)(e,n)){var M=n.clone().add(1,"day"),S=n.clone().add(i+1,"days");p=this.addModifierToRange(p,M,S,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:h,visibleDays:(0,a.default)({},d,p)})}}}},{key:"onDayMouseLeave",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=this.state,s=i.hoverDate,c=i.visibleDays,l=i.dateOffset;if(!this.isTouchDevice&&s){var u={};if(u=this.deleteModifier(u,s,"hovered"),l&&(u=this.deleteModifierFromRange(u,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),n&&!r&&(0,y.default)(s,n)){var d=s.clone().add(1,"day");u=this.deleteModifierFromRange(u,n,d,"hovered-span")}if(!n&&r&&(0,y.default)(r,s)&&(u=this.deleteModifierFromRange(u,s,r,"hovered-span")),n&&(0,m.default)(e,n)){var h=n.clone().add(1,"day"),f=n.clone().add(o+1,"days");u=this.deleteModifierFromRange(u,h,f,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:(0,a.default)({},c,u)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(0,n+1).forEach((function(e){c[e]=s[e]}));var l=i.clone().subtract(2,"months"),u=(0,O.default)(l,1,r,!0),d=i.clone().subtract(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(1).forEach((function(e){c[e]=s[e]}));var l=i.clone().add(n+1,"month"),u=(0,O.default)(l,1,r,!0),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onMultiplyScrollableMonths",value:function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,r=this.state,o=r.currentMonth,i=r.visibleDays,s=Object.keys(i).length,c=o.clone().add(s,"month"),l=(0,O.default)(c,t,n,!0);this.setState({visibleDays:(0,a.default)({},i,this.getModifiers(l))})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.startDate,a=n.endDate,i=n.focusedInput,s=n.minimumNights,c=n.numberOfMonths,l=e.clone().startOf("month");if(i===E.START_DATE&&o?l=o.clone():i===E.END_DATE&&!a&&o?l=o.clone().add(s,"days"):i===E.END_DATE&&a&&(l=a.clone()),this.isBlocked(l)){for(var u=[],d=e.clone().add(c-1,"months").endOf("month"),h=l.clone();!(0,y.default)(h,d);)h=h.clone().add(1,"day"),u.push(h);var f=u.filter((function(e){return!t.isBlocked(e)}));f.length>0&&(l=r(f,1)[0])}return l}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,D.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.numberOfMonths,o=e.enableOutsideDays,a=e.orientation,i=e.startDate,s=(n||(i?function(){return i}:function(){return t.today}))(),c=a===E.VERTICAL_SCROLLABLE;return{currentMonth:s,visibleDays:this.getModifiers((0,O.default)(s,r,o,c))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===E.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,k.default)(t,d,h,i))return e;var f=(0,D.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(f)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.add(n),(0,a.default)({},t,I({},r,(0,a.default)({},o,I({},f,i))))}),p);else{var v=(0,w.default)(t),b=e[v]||u[v],m=new Set(b[f]);m.add(n),p=(0,a.default)({},p,I({},v,(0,a.default)({},b,I({},f,m))))}return p}},{key:"addModifierToRange",value:function(e,t,n,r){for(var o=e,a=t.clone();(0,g.default)(a,n);)o=this.addModifier(o,a,r),a=a.clone().add(1,"day");return o}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===E.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,k.default)(t,d,h,i))return e;var f=(0,D.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(f)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.delete(n),(0,a.default)({},t,I({},r,(0,a.default)({},o,I({},f,i))))}),p);else{var v=(0,w.default)(t),b=e[v]||u[v],m=new Set(b[f]);m.delete(n),p=(0,a.default)({},p,I({},v,(0,a.default)({},b,I({},f,m))))}return p}},{key:"deleteModifierFromRange",value:function(e,t,n,r){for(var o=e,a=t.clone();(0,g.default)(a,n);)o=this.deleteModifier(o,a,r),a=a.clone().add(1,"day");return o}},{key:"doesNotMeetMinimumNights",value:function(e){var t=this.props,n=t.startDate,r=t.isOutsideRange,o=t.focusedInput,a=t.minimumNights;if(o!==E.END_DATE)return!1;if(n){var i=e.diff(n.clone().startOf("day").hour(12),"days");return i=0}return r((0,u.default)(e).subtract(a,"days"))}},{key:"isDayAfterHoveredStartDate",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,a=(this.state||{}).hoverDate;return!!n&&!r&&!this.isBlocked(e)&&(0,b.default)(a,e)&&o>0&&(0,m.default)(a,n)}},{key:"isEndDate",value:function(e){var t=this.props.endDate;return(0,m.default)(e,t)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,m.default)(e,t)}},{key:"isInHoveredSpan",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=(this.state||{}).hoverDate,a=!!n&&!r&&(e.isBetween(n,o)||(0,m.default)(o,e)),i=!!r&&!n&&(e.isBetween(o,r)||(0,m.default)(o,e)),s=o&&!this.isBlocked(o);return(a||i)&&s}},{key:"isInSelectedSpan",value:function(e){var t=this.props,n=t.startDate,r=t.endDate;return e.isBetween(n,r)}},{key:"isLastInRange",value:function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,b.default)(e,t)}},{key:"isStartDate",value:function(e){var t=this.props.startDate;return(0,m.default)(e,t)}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)||this.doesNotMeetMinimumNights(e)}},{key:"isToday",value:function(e){return(0,m.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,s=e.navNext,c=e.noNavButtons,l=e.onOutsideClick,u=e.withPortal,d=e.enableOutsideDays,h=e.firstDayOfWeek,f=e.hideKeyboardShortcutsPanel,p=e.daySize,v=e.focusedInput,b=e.renderCalendarDay,m=e.renderDayContents,y=e.renderCalendarInfo,g=e.renderMonthElement,O=e.calendarInfoPosition,k=e.onBlur,_=e.isFocused,D=e.showKeyboardShortcuts,w=e.isRTL,M=e.weekDayFormat,S=e.dayAriaLabelFormat,C=e.verticalHeight,j=e.noBorder,P=e.transitionDuration,E=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,H=I.phrases,N=I.visibleDays;return i.default.createElement(z.default,{orientation:n,enableOutsideDays:d,modifiers:N,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,onMultiplyScrollableMonths:this.onMultiplyScrollableMonths,monthFormat:r,renderMonthText:o,withPortal:u,hidden:!v,initialVisibleMonth:function(){return x},daySize:p,onOutsideClick:l,navPrev:a,navNext:s,noNavButtons:c,renderCalendarDay:b,renderDayContents:m,renderCalendarInfo:y,renderMonthElement:g,calendarInfoPosition:O,firstDayOfWeek:h,hideKeyboardShortcutsPanel:f,isFocused:_,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:k,showKeyboardShortcuts:D,phrases:H,isRTL:w,weekDayFormat:M,dayAriaLabelFormat:S,verticalHeight:C,verticalBorderSpacing:E,noBorder:j,transitionDuration:P,horizontalMonthPadding:T})}}]),t}(i.default.Component);t.default=R,R.propTypes=x,R.defaultProps=H},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!r.default.isMoment(e)||!r.default.isMoment(t))return!1;var n=(0,r.default)(e).add(1,"day");return(0,o.default)(n,t)};var r=a(n(29)),o=a(n(82));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){if(!r.default.isMoment(e))return{};for(var i={},s=a?e.clone():e.clone().subtract(1,"month"),c=0;c<(a?t:t+2);c+=1){var l=[],u=s.clone(),d=u.clone().startOf("month").hour(12),h=u.clone().endOf("month").hour(12),f=d.clone();if(n)for(var p=0;p0&&this.setState({visibleDays:(0,a.default)({},D,z)})}},{key:"componentWillUpdate",value:function(){this.today=(0,u.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:!1}),i({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(0,n+1).forEach((function(e){c[e]=s[e]}));var l=i.clone().subtract(1,"month"),u=(0,m.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(l.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(1).forEach((function(e){c[e]=s[e]}));var l=i.clone().add(n,"month"),u=(0,m.default)(l,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===w.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===w.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(o&&(i=o.clone()),this.isBlocked(i)){for(var s=[],c=e.clone().add(a-1,"months").endOf("month"),l=i.clone();!(0,b.default)(l,c);)l=l.clone().add(1,"day"),s.push(l);var u=s.filter((function(e){return!t.isBlocked(e)&&(0,b.default)(e,i)}));if(u.length>0){var d=r(u,1);i=d[0]}}return i}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,m.default)(i,o,a))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===w.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,y.default)(t,d,h,i))return e;var f=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(f)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.add(n),(0,a.default)({},t,C({},r,(0,a.default)({},o,C({},f,i))))}),p);else{var v=(0,O.default)(t),b=e[v]||u[v],m=new Set(b[f]);m.add(n),p=(0,a.default)({},p,C({},v,(0,a.default)({},b,C({},f,m))))}return p}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===w.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,y.default)(t,d,h,i))return e;var f=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(f)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.delete(n),(0,a.default)({},t,C({},r,(0,a.default)({},o,C({},f,i))))}),p);else{var v=(0,O.default)(t),b=e[v]||u[v],m=new Set(b[f]);m.delete(n),p=(0,a.default)({},p,C({},v,(0,a.default)({},b,C({},f,m))))}return p}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,v.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,v.default)(e,t)}},{key:"isToday",value:function(e){return(0,v.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,s=e.navNext,c=e.onOutsideClick,l=e.withPortal,u=e.focused,d=e.enableOutsideDays,h=e.hideKeyboardShortcutsPanel,f=e.daySize,p=e.firstDayOfWeek,v=e.renderCalendarDay,b=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,k=e.isRTL,_=e.phrases,D=e.dayAriaLabelFormat,w=e.onBlur,S=e.showKeyboardShortcuts,C=e.weekDayFormat,j=e.verticalHeight,P=e.noBorder,E=e.transitionDuration,z=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,H=I.visibleDays;return i.default.createElement(M.default,{orientation:n,enableOutsideDays:d,modifiers:H,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:l,hidden:!u,hideKeyboardShortcutsPanel:h,initialVisibleMonth:function(){return x},firstDayOfWeek:p,onOutsideClick:c,navPrev:a,navNext:s,renderMonthText:o,renderCalendarDay:v,renderDayContents:b,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:w,phrases:_,daySize:f,isRTL:k,showKeyboardShortcuts:S,weekDayFormat:C,dayAriaLabelFormat:D,verticalHeight:j,noBorder:P,transitionDuration:E,verticalBorderSpacing:z,horizontalMonthPadding:T})}}]),t}(i.default.Component);t.default=E,E.propTypes=j,E.defaultProps=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n(34)),o=p(n(69)),a=n(47),i=n(51),s=p(n(58)),c=p(n(99)),l=p(n(195)),u=p(n(196)),d=p(n(86)),h=p(n(78)),f=p(n(100));function p(e){return e&&e.__esModule?e:{default:e}}t.default={date:o.default.momentObj,onDateChange:r.default.func.isRequired,focused:r.default.bool,onFocusChange:r.default.func.isRequired,id:r.default.string.isRequired,placeholder:r.default.string,disabled:r.default.bool,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDate:r.default.bool,customCloseIcon:r.default.node,showDefaultInputIcon:r.default.bool,inputIconPosition:c.default,customInputIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,verticalSpacing:a.nonNegativeInteger,keepFocusOnInput:r.default.bool,renderMonthText:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:l.default,anchorDirection:u.default,openDirection:d.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,initialVisibleMonth:r.default.func,firstDayOfWeek:h.default,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDate:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:f.default,hideKeyboardShortcutsPanel:r.default.bool,daySize:a.nonNegativeInteger,isRTL:r.default.bool,verticalHeight:a.nonNegativeInteger,transitionDuration:a.nonNegativeInteger,horizontalMonthPadding:a.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,onClose:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(i.SingleDatePickerPhrases)),dayAriaLabelFormat:r.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.richText}()},function(e,t,n){"use strict";var r=n(38);var o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return a}))},,function(e,t){!function(){e.exports=this.wp.dom}()},,function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.moment}()},function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},,,function(e,t,n){e.exports=n(84)()},,,function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},,function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function s(e){r(i,o,a,s,c,"next",e)}function c(e){r(i,o,a,s,c,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},,function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){e.exports=n(244)},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r=u;return function(o,a){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw a;return P()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=w(i,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?f:d,c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=f,n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function v(){}function b(){}function m(){}var y={};y[a]=function(){return this};var g=Object.getPrototypeOf,O=g&&g(g(j([])));O&&O!==n&&r.call(O,a)&&(y=O);var k=m.prototype=v.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function D(e){var t;this._invoke=function(n,o){function a(){return new Promise((function(t,a){!function t(n,o,a,i){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,a,i)}),(function(e){t("throw",e,a,i)})):Promise.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,i)}))}i(s.arg)}(n,o,t,a)}))}return t=t?t.then(a,a):a()}}function w(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,w(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function j(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,s=0,c=o.round,l=o.min,u=o.max,d=o.random;function h(e,t){if(t=t||{},(e=e||"")instanceof h)return e;if(!(this instanceof h))return new h(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,c=null,d=!1,h=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(E[e])e=E[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:H(t[1]),g:H(t[2]),b:H(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:H(t[1]),g:H(t[2]),b:H(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(f=e.r,p=e.g,v=e.b,t={r:255*I(f,255),g:255*I(p,255),b:255*I(v,255)},d=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=R(e.s),s=R(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),s=n*(1-a*t),c=n*(1-(1-a)*t),l=r%6;return{r:255*[n,s,i,i,c,n][l],g:255*[c,n,n,s,i,i][l],b:255*[i,i,c,n,n,s][l]}}(e.h,r,s),d=!0,h="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=R(e.s),c=R(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)r=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=i(c,s,e+1/3),o=i(c,s,e),a=i(c,s,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,c),d=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,v;return n=T(n),{ok:d,format:e.format||h,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function f(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,a=u(e,t,n),i=l(e,t,n),s=(a+i)/2;if(a==i)r=o=0;else{var c=a-i;switch(o=s>.5?c/(2-a-i):c/(a+i),a){case e:r=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(h(r));return a}function P(e,t){t=t||6;for(var n=h(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(h({h:r,s:o,v:a})),a=(a+s)%1;return i}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[N(c(e).toString(16)),N(c(t).toString(16)),N(c(n).toString(16)),N(L(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*I(this._r,255))+"%",g:c(100*I(this._g,255))+"%",b:c(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*I(this._r,255))+"%, "+c(100*I(this._g,255))+"%, "+c(100*I(this._b,255))+"%)":"rgba("+c(100*I(this._r,255))+"%, "+c(100*I(this._g,255))+"%, "+c(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(z[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=h(e);n="#"+b(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(M,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:R(e[r]));e=n}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:d(),g:d(),b:d()})},h.mix=function(e,t,n){n=0===n?0:n||50;var r=h(e).toRgb(),o=h(t).toRgb(),a=n/100;return h({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},h.readability=function(e,t){var n=h(e),r=h(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(e,t,n){var r,o,a=h.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},h.mostReadable=function(e,t,n){var r,o,a,i,s=null,c=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var l=0;lc&&(c=r,s=h(t[l]));return h.isReadable(e,s,{level:a,size:i})||!o?s:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var E=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(E);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function x(e){return l(1,u(0,e))}function H(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return H(e)/255}var A,V,B,K=(V="[\\s|\\(]+("+(A="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",B="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",{CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=h:void 0===(r=function(){return h}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";var r=n(62),o=n(153),a=n(154),i=n(240),s=a();r(s,{getPolyfill:a,implementation:o,shim:i}),e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="Interact with the calendar and add the check-in date for your trip.",o="Move backward to switch to the previous month.",a="Move forward to switch to the next month.",i="page up and page down keys",s="Home and end keys",c="Escape key",l="Select the date in focus.",u="Move backward (left) and forward (right) by one day.",d="Move backward (up) and forward (down) by one week.",h="Return to the date input field.",f="Press the down arrow key to interact with the calendar and\n select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",p=function(e){var t=e.date;return"Choose "+String(t)+" as your check-in date. It’s available."},v=function(e){var t=e.date;return"Choose "+String(t)+" as your check-out date. It’s available."},b=function(e){return e.date},m=function(e){var t=e.date;return"Not available. "+String(t)},y=function(e){var t=e.date;return"Selected. "+String(t)};t.default={calendarLabel:"Calendar",closeDatePicker:"Close",focusStartDate:r,clearDate:"Clear Date",clearDates:"Clear Dates",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:s,escape:c,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableStartDate:p,chooseAvailableEndDate:v,dateIsUnavailable:m,dateIsSelected:y};t.DateRangePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:r,jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:s,escape:c,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableStartDate:p,chooseAvailableEndDate:v,dateIsUnavailable:m,dateIsSelected:y},t.DateRangePickerInputPhrases={focusStartDate:r,clearDates:"Clear Dates",keyboardNavigationInstructions:f},t.SingleDatePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:s,escape:c,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableDate:b,dateIsUnavailable:m,dateIsSelected:y},t.SingleDatePickerInputPhrases={clearDate:"Clear Date",keyboardNavigationInstructions:f},t.DayPickerPhrases={calendarLabel:"Calendar",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:s,escape:c,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,chooseAvailableStartDate:p,chooseAvailableEndDate:v,chooseAvailableDate:b,dateIsUnavailable:m,dateIsSelected:y},t.DayPickerKeyboardShortcutsPhrases={keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:s,escape:c,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h},t.DayPickerNavigationPhrases={jumpToPrevMonth:o,jumpToNextMonth:a},t.CalendarDayPhrases={chooseAvailableDate:b,dateIsUnavailable:m,dateIsSelected:y}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce((function(e,t){return(0,r.default)({},e,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,o.default.oneOfType([o.default.string,o.default.func,o.default.node])))}),{})};var r=a(n(49)),o=a(n(34));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withStylesPropTypes=t.css=void 0;var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,s=void 0===n?"styles":n,u=t.themePropName,h=void 0===u?"theme":u,p=t.cssPropName,y=void 0===p?"css":p,g=t.flushBefore,O=void 0!==g&&g,k=t.pureComponent,_=void 0!==k&&k,D=void 0,w=void 0,M=void 0,S=void 0,C=function(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}(_);function j(e){return e===l.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function P(t,n){var r=function(e){return e===l.DIRECTIONS.LTR?M:S}(t),o=t===l.DIRECTIONS.LTR?D:w,a=d.default.get();return o&&r===a?o:(t===l.DIRECTIONS.RTL?(w=e?d.default.createRTL(e):v,S=a,o=w):(D=e?d.default.createLTR(e):v,M=a,o=D),o)}function E(e,t){return{resolveMethod:j(e),styleDef:P(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[l.CHANNEL]?r.context[l.CHANNEL].getState():m;return r.state=E(o),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe((function(t){e.setState(E(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;O&&d.default.flush();var n=this.state,o=n.resolveMethod,a=n.styleDef;return i.default.createElement(e,r({},this.props,(f(t={},h,d.default.get()),f(t,s,a()),f(t,y,o),t)))}}]),n}(C);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=b,e.propTypes&&(n.propTypes=(0,a.default)({},e.propTypes),delete n.propTypes[s],delete n.propTypes[h],delete n.propTypes[y]),e.defaultProps&&(n.defaultProps=(0,a.default)({},e.defaultProps)),(0,c.default)(n,e)}};var a=h(n(49)),i=h(n(28)),s=h(n(34)),c=h(n(245)),l=n(248),u=h(n(249)),d=h(n(151));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:s.default.object.isRequired,theme:s.default.object.isRequired,css:s.default.func.isRequired};var p={},v=function(){return p};var b=f({},l.CHANNEL,u.default),m=l.DIRECTIONS.LTR},function(e,t){!function(){e.exports=this.ReactDOM}()},,,function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(113)),a=r(n(114)),i=n(28),s=r(i),c=r(n(115)),l=r(n(116)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function h(e,t){return u.und(e)||u.nul(e)?t:e}function f(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var i=a,s=!1,c=0;c=f.startTime+l.duration;else if(l.decay)b=p+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-b)<.1)&&(v=b);else{d=void 0!==f.lastTime?f.lastTime:t,g=void 0!==f.lastVelocity?f.lastVelocity:l.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),k=0;kv:b=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,s,c){var l=c?c(e):e;if(ln){if("identity"===s)return l;"clamp"===s&&(l=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=a(l),r===-1/0?l=-l:o===1/0?l+=r:l=l*(o-r)+r;return l}(e,a[t],a[t+1],o[t],o[t+1],c,i,s,r.map)}}var A=function(e){function t(n,r,o,a){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=F(r,o,a),i}c(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var V=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}c(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new A(this,e,t,n)},t}(y),B=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new V(e)})),n}c(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new A(this,e,t)},t}(g),K=0,W=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=K++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=v(e),n=t.delay,r=void 0===n?0:n,i=t.to,s=a(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},s,{delay:r,to:i}));else if(i){var c={};Object.entries(i).forEach((function(e){var t,n=e[0],a=e[1],i=o({to:(t={},t[n]=a,t),delay:p(r,n)},s),l=c[i.delay]&&c[i.delay].to;c[i.delay]=o({},c[i.delay],i,{to:o({},l,i.to)})})),this.queue=Object.values(c)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(s),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,a=e.to,i=void 0===a?{}:a;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var s=t.delay,c=a(t,["delay"]),l=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(c.to)||u.fun(c.to);s?setTimeout((function(){r===n.guid&&(d?n.runAsync(c,l):n.diff(c).start(l))}),s):d?n.runAsync(c,l):n.diff(c).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,R.has(t)||R.add(t),N||(N=!0,w(z||L));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,R.has(t)&&R.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,a(e,["delay"])),i=this.local,s=Promise.resolve(void 0);if(u.arr(r.to))for(var c=function(e){var t=e,a=o({},r,v(r.to[t]));u.arr(a.config)&&(a.config=a.config[t]),s=s.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},l=0;l=r.length)return"break";i=r[a++]}else{if((a=r.next()).done)return"break";i=a.value}var n=i.key,s=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(s),e.current.deleted=e.current.deleted.filter(s))},r=e.current.deleted,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var J=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=b.transform(t)),n.payload=t,n}return c(t,e),t}(O),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},te="[-+]?\\d*\\.?\\d+",ne=te+"%";function re(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=he(o,r,e+1/3),i=he(o,r,e),s=he(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function pe(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function ve(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function me(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ye(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ue.exec(t))?parseInt(n[1]+"ff",16)>>>0:ee.hasOwnProperty(t)?ee[t]:(n=oe.exec(t))?(pe(n[1])<<24|pe(n[2])<<16|pe(n[3])<<8|255)>>>0:(n=ae.exec(t))?(pe(n[1])<<24|pe(n[2])<<16|pe(n[3])<<8|be(n[4]))>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=de.exec(t))?parseInt(n[1],16)>>>0:(n=le.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ie.exec(t))?(255|fe(ve(n[1]),me(n[2]),me(n[3])))>>>0:(n=se.exec(t))?(fe(ve(n[1]),me(n[2]),me(n[3]))|be(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var ge=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Oe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ke=new RegExp("("+Object.keys(ee).join("|")+")","g"),_e={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},De=["Webkit","Ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||_e.hasOwnProperty(e)&&_e[e]?(""+t).trim():t+"px"}_e=Object.keys(_e).reduce((function(e,t){return De.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),_e);var Me={};I((function(e){return new J(e)})),P("div"),S((function(e){var t=e.output.map((function(e){return e.replace(Oe,ye)})).map((function(e){return e.replace(ke,ye)})),n=t[0].match(ge).map((function(){return[]}));t.forEach((function(e){e.match(ge).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(ge).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(ge,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),_(ee),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,s=a(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var l in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(l)){var u=0===l.indexOf("--"),d=we(l,n[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,d):e.style[l]=d}for(var h in s){var f=c?h:Me[h]||(Me[h]=h.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,s[h])}}),(function(e){return e}));var Se,Ce,je=(Se=function(e){return i.forwardRef((function(t,n){var r=d(),c=i.useRef(!0),l=i.useRef(null),h=i.useRef(null),f=i.useCallback((function(e){var t=l.current;l.current=new H(e,(function(){var e=!1;h.current&&(e=b.fn(h.current,l.current.getAnimatedValue())),h.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){c.current=!1,l.current&&l.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(h,c,r)})),f(t);var p,v=l.current.getValue(),m=(v.scrollTop,v.scrollLeft,a(v,["scrollTop","scrollLeft"])),y=(p=e,!u.fun(p)||p.prototype instanceof s.Component?function(e){return h.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return s.createElement(e,o({},m,{ref:y}))}))},void 0===(Ce=!1)&&(Ce=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ce?t[0].toLowerCase()+t.substring(1):t;return e[n]=Se(n),e}),Se)}),Pe=je(["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","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"]);t.apply=je,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=L,t.animated=Pe,t.a=Pe,t.interpolate=function(e,t,n){return e&&new A(e,t,n)},t.Globals=x,t.useSpring=function(e){var t=u.fun(e),n=U(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),a=p(t),s=i.useRef(),c=U(e,(function(e,t){return 0===e&&(s.current=[]),s.current.push(t),o({},a,{config:p(a.config,e),attach:e>0&&function(){return s.current[e-1]}})})),l=c[0],d=c[1],h=c[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=s.current[r];return o({},e,{config:p(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[l,f,h]:l},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),s=X(r),c=s.lazy,l=void 0!==c&&c,u=(s.unique,s.reset),h=void 0!==u&&u,f=(s.enter,s.leave,s.update,s.onDestroyed),v=(s.keys,s.items,s.onFrame),b=s.onRest,m=s.onStart,y=s.ref,g=a(s,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),k=i.useRef(!1),_=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:O});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(_.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(_.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(_.current.instances).map((function(e){return e[1]}))}}})),_.current=function(e,t){var n=e.first,r=e.prevProps,i=a(e,["first","prevProps"]),s=X(t),c=s.items,l=s.keys,u=s.initial,d=s.from,h=s.enter,f=s.leave,v=s.update,b=s.trail,m=void 0===b?0:b,y=s.unique,g=s.config,O=s.order,k=void 0===O?[q,G,Y]:O,_=X(r),D=_.keys,w=_.items,M=o({},i.current),S=[].concat(i.deleted),C=Object.keys(M),j=new Set(C),P=new Set(l),E=l.filter((function(e){return!j.has(e)})),z=i.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=l.filter((function(e){return j.has(e)})),I=-m;for(;k.length;){switch(k.shift()){case q:E.forEach((function(e,t){y&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=l.indexOf(e),o=c[r],a=n&&void 0!==u?"initial":q;M[e]={slot:a,originalKey:e,key:y?String(e):$++,item:o,trail:I+=m,config:p(g,o,a),from:p(n&&void 0!==u?u||{}:d,o),to:p(h,o)}}));break;case G:z.forEach((function(e){var t=D.indexOf(e),n=w[t],r=G;S.unshift(o({},M[e],{slot:r,destroyed:!0,left:D[Math.max(0,t-1)],right:D[Math.min(D.length,t+1)],trail:I+=m,config:p(g,n,r),to:p(f,n)})),delete M[e]}));break;case Y:T.forEach((function(e){var t=l.indexOf(e),n=c[t],r=Y;M[e]=o({},M[e],{item:n,slot:r,trail:I+=m,config:p(g,n,r),to:p(v,n)})}))}}var x=l.map((function(e){return M[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,a(e,["left","right"]));-1!==(t=x.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),x=[].concat(x.slice(0,t),[r],x.slice(t))})),o({},i,{changed:E.length||z.length||T.length,first:n&&0===E.length,transitions:x,current:M,deleted:S,prevProps:t})}(_.current,r),_.current.changed&&_.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,a=e.config,i=e.trail,s=e.key,c=e.item;_.current.instances.has(s)||_.current.instances.set(s,new W);var u=_.current.instances.get(s),d=o({},g,{to:r,from:n,config:a,ref:y,onRest:function(n){_.current.mounted&&(e.destroyed&&(y||l||Q(_,s),f&&f(c)),!Array.from(_.current.instances).some((function(e){return!e[1].idle}))&&(y||l)&&_.current.deleted.length>0&&Q(_),b&&b(c,t,n))},onStart:m&&function(){return m(c,t)},onFrame:v&&function(e){return v(c,t,e)},delay:i,reset:h&&t===q});u.update(d),_.current.paused||u.start()})),i.useEffect((function(){return _.current.mounted=k.current=!0,function(){_.current.mounted=k.current=!1,Array.from(_.current.instances).map((function(e){return e[1].destroy()})),_.current.instances.clear()}}),[]),_.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:_.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var a=e.current;if(a){var i=a.controllers;if(i.length){var s=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+s})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=U},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(123),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,s=Object.defineProperty,c=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,r){var o;t in e&&("function"!=typeof(o=r)||"[object Function]"!==a.call(o)||!r())||(c?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,n){"use strict";var r=n(85);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,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,n){"use strict";var r=n(70);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(34),a=(r=o)&&r.__esModule?r:{default:r},i=n(41);t.default=a.default.oneOf([i.ICON_BEFORE_POSITION,i.ICON_AFTER_POSITION])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(34),a=(r=o)&&r.__esModule?r:{default:r},i=n(41);t.default=a.default.oneOf([i.INFO_POSITION_TOP,i.INFO_POSITION_BOTTOM,i.INFO_POSITION_BEFORE,i.INFO_POSITION_AFTER])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&!(0,o.default)(e,t)};var r=a(n(29)),o=a(n(91));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a.default.isMoment(e)||!a.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),i=t.month(),s=n===o,c=r===i;return s&&c?e.date()1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in c))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===c[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return c[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(34),a=(r=o)&&r.__esModule?r:{default:r},i=n(46);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=(0,i.and)([a.default.instanceOf(Set),function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o0?!0===i?r.scrollTop(t,g.top+O.top):!1===i?r.scrollTop(t,g.top+k.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+k.top):a||((i=void 0===i||!!i)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+k.top)),o&&(O.left<0||k.left>0?!0===s?r.scrollLeft(t,g.left+O.left):!1===s?r.scrollLeft(t,g.left+k.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+k.left):a||((s=void 0===s||!!s)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+k.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},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){"use strict";var r=Array.prototype.slice,o=n(139),a=Object.keys,i=a?function(e){return a(e)}:n(220),s=Object.keys;i.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)}):Object.keys=i;return Object.keys||i},e.exports=i},function(e,t,n){"use strict";var r=Function.prototype.toString,o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},i=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(s)return function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(a(e))return!1;var t=i.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){var r=n(70).call(Function.call,Object.prototype.hasOwnProperty),o=Object.assign;e.exports=function(e,t){if(o)return o(e,t);for(var n in t)r(t,n)&&(e[n]=t[n]);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCalendarDay=void 0;var r=Object.assign||function(e){for(var t=1;t=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(222),o=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,a=function e(t,n,a,i,s){for(var c=i,l=0;l0&&(h=r.IsArray(d)),h){c=e(t,d,r.ToLength(r.Get(d,"length")),c,s-1)}else{if(c>=o)throw new TypeError("index too large");r.CreateDataPropertyOrThrow(t,r.ToString(c),d),c+=1}}l+=1}return c};e.exports=function(){var e=r.ToObject(this),t=r.ToLength(r.Get(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=r.ToInteger(arguments[0]));var o=r.ArraySpeciesCreate(e,0);return a(o,e,t,0,n),o}},function(e,t,n){"use strict";var r=n(223),o=n(125),a=o(o({},r),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=a},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(227)()){var o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&a.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(96),o=r("%TypeError%"),a=r("%SyntaxError%"),i=n(87),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(i(t,r)&&!n[r])return!1;var a=i(t,"[[Value]]"),s=i(t,"[[Get]]")||i(t,"[[Set]]");if(a&&s)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var i=s[t];if("function"!=typeof i)throw new a("unknown record type: "+t);if(!i(e,r))throw new o(n+" must be a "+t);console.log(i(e,r),r)}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(140);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function a(e,t){var n=t(e(o));return function(){return n}}function i(e){return a(e,r.createLTR||r.create)}function s(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",a="width"===t?"Right":"Bottom",i=!n||r?window.getComputedStyle(e):null,s=e.offsetWidth,c=e.offsetHeight,l="width"===t?s:c;n||(l-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(l+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=o&&at.clientHeight?t:o(t)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=r(),i=o(e);return t.set(i,i.style.overflowY),i===n?t:a(i,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&(L||H||i!==k)){var $=y||this.today;V=this.deleteModifierFromRange(V,$,$.clone().add(k,"days"),"blocked-minimum-nights"),V=this.deleteModifierFromRange(V,$,$.clone().add(k,"days"),"blocked")}(L||x)&&(0,d.default)(P).forEach((function(e){Object.keys(e).forEach((function(e){var n=(0,u.default)(e),r=!1;(L||z)&&(s(n)?(V=t.addModifier(V,n,"blocked-out-of-range"),r=!0):V=t.deleteModifier(V,n,"blocked-out-of-range")),(L||T)&&(c(n)?(V=t.addModifier(V,n,"blocked-calendar"),r=!0):V=t.deleteModifier(V,n,"blocked-calendar")),V=r?t.addModifier(V,n,"blocked"):t.deleteModifier(V,n,"blocked"),(L||I)&&(V=l(n)?t.addModifier(V,n,"highlighted-calendar"):t.deleteModifier(V,n,"highlighted-calendar"))}))})),i>0&&n&&o===E.END_DATE&&(V=this.addModifierToRange(V,n,n.clone().add(i,"days"),"blocked-minimum-nights"),V=this.addModifierToRange(V,n,n.clone().add(i,"days"),"blocked"));var q=(0,u.default)();if((0,m.default)(this.today,q)||(V=this.deleteModifier(V,this.today,"today"),V=this.addModifier(V,q,"today"),this.today=q),Object.keys(V).length>0&&this.setState({visibleDays:(0,a.default)({},P,V)}),L||h!==M){var G=N(h,o);this.setState({phrases:(0,a.default)({},h,{chooseAvailableDate:G})})}}},{key:"onDayClick",value:function(e,t){var n=this.props,r=n.keepOpenOnDateSelect,o=n.minimumNights,a=n.onBlur,i=n.focusedInput,s=n.onFocusChange,c=n.onClose,l=n.onDatesChange,u=n.startDateOffset,d=n.endDateOffset,h=n.disabled;if(t&&t.preventDefault(),!this.isBlocked(e)){var f=this.props,p=f.startDate,b=f.endDate;if(u||d)p=(0,_.default)(u,e),b=(0,_.default)(d,e),r||(s(null),c({startDate:p,endDate:b}));else if(i===E.START_DATE){var m=b&&b.clone().subtract(o,"days"),O=(0,g.default)(m,e)||(0,y.default)(p,b),k=h===E.END_DATE;k&&O||(p=e,O&&(b=null)),k&&!O?(s(null),c({startDate:p,endDate:b})):k||s(E.END_DATE)}else if(i===E.END_DATE){var D=p&&p.clone().add(o,"days");p?(0,v.default)(e,D)?(b=e,r||(s(null),c({startDate:p,endDate:b}))):h!==E.START_DATE&&(p=e,b=null):(b=e,s(E.START_DATE))}l({startDate:p,endDate:b}),a()}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,r=t.endDate,o=t.focusedInput,i=t.minimumNights,s=t.startDateOffset,c=t.endDateOffset,l=this.state,u=l.hoverDate,d=l.visibleDays,h=null;if(o){var f=s||c,p={};if(f){var v=(0,_.default)(s,e),b=(0,_.default)(c,e,(function(e){return e.add(1,"day")}));h={start:v,end:b},this.state.dateOffset&&this.state.dateOffset.start&&this.state.dateOffset.end&&(p=this.deleteModifierFromRange(p,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),p=this.addModifierToRange(p,v,b,"hovered-offset")}if(!f){if(p=this.deleteModifier(p,u,"hovered"),p=this.addModifier(p,e,"hovered"),n&&!r&&o===E.END_DATE){if((0,y.default)(u,n)){var O=u.clone().add(1,"day");p=this.deleteModifierFromRange(p,n,O,"hovered-span")}if(!this.isBlocked(e)&&(0,y.default)(e,n)){var k=e.clone().add(1,"day");p=this.addModifierToRange(p,n,k,"hovered-span")}}if(!n&&r&&o===E.START_DATE&&((0,g.default)(u,r)&&(p=this.deleteModifierFromRange(p,u,r,"hovered-span")),!this.isBlocked(e)&&(0,g.default)(e,r)&&(p=this.addModifierToRange(p,e,r,"hovered-span"))),n){var D=n.clone().add(1,"day"),w=n.clone().add(i+1,"days");if(p=this.deleteModifierFromRange(p,D,w,"after-hovered-start"),(0,m.default)(e,n)){var M=n.clone().add(1,"day"),S=n.clone().add(i+1,"days");p=this.addModifierToRange(p,M,S,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:h,visibleDays:(0,a.default)({},d,p)})}}}},{key:"onDayMouseLeave",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=this.state,s=i.hoverDate,c=i.visibleDays,l=i.dateOffset;if(!this.isTouchDevice&&s){var u={};if(u=this.deleteModifier(u,s,"hovered"),l&&(u=this.deleteModifierFromRange(u,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),n&&!r&&(0,y.default)(s,n)){var d=s.clone().add(1,"day");u=this.deleteModifierFromRange(u,n,d,"hovered-span")}if(!n&&r&&(0,y.default)(r,s)&&(u=this.deleteModifierFromRange(u,s,r,"hovered-span")),n&&(0,m.default)(e,n)){var h=n.clone().add(1,"day"),f=n.clone().add(o+1,"days");u=this.deleteModifierFromRange(u,h,f,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:(0,a.default)({},c,u)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(0,n+1).forEach((function(e){c[e]=s[e]}));var l=i.clone().subtract(2,"months"),u=(0,O.default)(l,1,r,!0),d=i.clone().subtract(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(1).forEach((function(e){c[e]=s[e]}));var l=i.clone().add(n+1,"month"),u=(0,O.default)(l,1,r,!0),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onMultiplyScrollableMonths",value:function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,r=this.state,o=r.currentMonth,i=r.visibleDays,s=Object.keys(i).length,c=o.clone().add(s,"month"),l=(0,O.default)(c,t,n,!0);this.setState({visibleDays:(0,a.default)({},i,this.getModifiers(l))})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.startDate,a=n.endDate,i=n.focusedInput,s=n.minimumNights,c=n.numberOfMonths,l=e.clone().startOf("month");if(i===E.START_DATE&&o?l=o.clone():i===E.END_DATE&&!a&&o?l=o.clone().add(s,"days"):i===E.END_DATE&&a&&(l=a.clone()),this.isBlocked(l)){for(var u=[],d=e.clone().add(c-1,"months").endOf("month"),h=l.clone();!(0,y.default)(h,d);)h=h.clone().add(1,"day"),u.push(h);var f=u.filter((function(e){return!t.isBlocked(e)}));f.length>0&&(l=r(f,1)[0])}return l}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,D.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.numberOfMonths,o=e.enableOutsideDays,a=e.orientation,i=e.startDate,s=(n||(i?function(){return i}:function(){return t.today}))(),c=a===E.VERTICAL_SCROLLABLE;return{currentMonth:s,visibleDays:this.getModifiers((0,O.default)(s,r,o,c))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===E.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,k.default)(t,d,h,i))return e;var f=(0,D.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(f)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.add(n),(0,a.default)({},t,I({},r,(0,a.default)({},o,I({},f,i))))}),p);else{var v=(0,w.default)(t),b=e[v]||u[v],m=new Set(b[f]);m.add(n),p=(0,a.default)({},p,I({},v,(0,a.default)({},b,I({},f,m))))}return p}},{key:"addModifierToRange",value:function(e,t,n,r){for(var o=e,a=t.clone();(0,g.default)(a,n);)o=this.addModifier(o,a,r),a=a.clone().add(1,"day");return o}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===E.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,k.default)(t,d,h,i))return e;var f=(0,D.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(f)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.delete(n),(0,a.default)({},t,I({},r,(0,a.default)({},o,I({},f,i))))}),p);else{var v=(0,w.default)(t),b=e[v]||u[v],m=new Set(b[f]);m.delete(n),p=(0,a.default)({},p,I({},v,(0,a.default)({},b,I({},f,m))))}return p}},{key:"deleteModifierFromRange",value:function(e,t,n,r){for(var o=e,a=t.clone();(0,g.default)(a,n);)o=this.deleteModifier(o,a,r),a=a.clone().add(1,"day");return o}},{key:"doesNotMeetMinimumNights",value:function(e){var t=this.props,n=t.startDate,r=t.isOutsideRange,o=t.focusedInput,a=t.minimumNights;if(o!==E.END_DATE)return!1;if(n){var i=e.diff(n.clone().startOf("day").hour(12),"days");return i=0}return r((0,u.default)(e).subtract(a,"days"))}},{key:"isDayAfterHoveredStartDate",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,a=(this.state||{}).hoverDate;return!!n&&!r&&!this.isBlocked(e)&&(0,b.default)(a,e)&&o>0&&(0,m.default)(a,n)}},{key:"isEndDate",value:function(e){var t=this.props.endDate;return(0,m.default)(e,t)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,m.default)(e,t)}},{key:"isInHoveredSpan",value:function(e){var t=this.props,n=t.startDate,r=t.endDate,o=(this.state||{}).hoverDate,a=!!n&&!r&&(e.isBetween(n,o)||(0,m.default)(o,e)),i=!!r&&!n&&(e.isBetween(o,r)||(0,m.default)(o,e)),s=o&&!this.isBlocked(o);return(a||i)&&s}},{key:"isInSelectedSpan",value:function(e){var t=this.props,n=t.startDate,r=t.endDate;return e.isBetween(n,r)}},{key:"isLastInRange",value:function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,b.default)(e,t)}},{key:"isStartDate",value:function(e){var t=this.props.startDate;return(0,m.default)(e,t)}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)||this.doesNotMeetMinimumNights(e)}},{key:"isToday",value:function(e){return(0,m.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,s=e.navNext,c=e.noNavButtons,l=e.onOutsideClick,u=e.withPortal,d=e.enableOutsideDays,h=e.firstDayOfWeek,f=e.hideKeyboardShortcutsPanel,p=e.daySize,v=e.focusedInput,b=e.renderCalendarDay,m=e.renderDayContents,y=e.renderCalendarInfo,g=e.renderMonthElement,O=e.calendarInfoPosition,k=e.onBlur,_=e.isFocused,D=e.showKeyboardShortcuts,w=e.isRTL,M=e.weekDayFormat,S=e.dayAriaLabelFormat,C=e.verticalHeight,j=e.noBorder,P=e.transitionDuration,E=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,H=I.phrases,N=I.visibleDays;return i.default.createElement(z.default,{orientation:n,enableOutsideDays:d,modifiers:N,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,onMultiplyScrollableMonths:this.onMultiplyScrollableMonths,monthFormat:r,renderMonthText:o,withPortal:u,hidden:!v,initialVisibleMonth:function(){return x},daySize:p,onOutsideClick:l,navPrev:a,navNext:s,noNavButtons:c,renderCalendarDay:b,renderDayContents:m,renderCalendarInfo:y,renderMonthElement:g,calendarInfoPosition:O,firstDayOfWeek:h,hideKeyboardShortcutsPanel:f,isFocused:_,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:k,showKeyboardShortcuts:D,phrases:H,isRTL:w,weekDayFormat:M,dayAriaLabelFormat:S,verticalHeight:C,verticalBorderSpacing:E,noBorder:j,transitionDuration:P,horizontalMonthPadding:T})}}]),t}(i.default.Component);t.default=R,R.propTypes=x,R.defaultProps=H},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!r.default.isMoment(e)||!r.default.isMoment(t))return!1;var n=(0,r.default)(e).add(1,"day");return(0,o.default)(n,t)};var r=a(n(29)),o=a(n(74));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){if(!r.default.isMoment(e))return{};for(var i={},s=a?e.clone():e.clone().subtract(1,"month"),c=0;c<(a?t:t+2);c+=1){var l=[],u=s.clone(),d=u.clone().startOf("month").hour(12),h=u.clone().endOf("month").hour(12),f=d.clone();if(n)for(var p=0;p0&&this.setState({visibleDays:(0,a.default)({},D,z)})}},{key:"componentWillUpdate",value:function(){this.today=(0,u.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:!1}),i({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(0,n+1).forEach((function(e){c[e]=s[e]}));var l=i.clone().subtract(1,"month"),u=(0,m.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(l.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,s=o.visibleDays,c={};Object.keys(s).sort().slice(1).forEach((function(e){c[e]=s[e]}));var l=i.clone().add(n,"month"),u=(0,m.default)(l,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},c,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===w.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===w.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(o&&(i=o.clone()),this.isBlocked(i)){for(var s=[],c=e.clone().add(a-1,"months").endOf("month"),l=i.clone();!(0,b.default)(l,c);)l=l.clone().add(1,"day"),s.push(l);var u=s.filter((function(e){return!t.isBlocked(e)&&(0,b.default)(e,i)}));if(u.length>0){var d=r(u,1);i=d[0]}}return i}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,m.default)(i,o,a))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===w.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,y.default)(t,d,h,i))return e;var f=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(f)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.add(n),(0,a.default)({},t,C({},r,(0,a.default)({},o,C({},f,i))))}),p);else{var v=(0,O.default)(t),b=e[v]||u[v],m=new Set(b[f]);m.add(n),p=(0,a.default)({},p,C({},v,(0,a.default)({},b,C({},f,m))))}return p}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,s=r.orientation,c=this.state,l=c.currentMonth,u=c.visibleDays,d=l,h=o;if(s===w.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,y.default)(t,d,h,i))return e;var f=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(f)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.delete(n),(0,a.default)({},t,C({},r,(0,a.default)({},o,C({},f,i))))}),p);else{var v=(0,O.default)(t),b=e[v]||u[v],m=new Set(b[f]);m.delete(n),p=(0,a.default)({},p,C({},v,(0,a.default)({},b,C({},f,m))))}return p}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,v.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,v.default)(e,t)}},{key:"isToday",value:function(e){return(0,v.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,s=e.navNext,c=e.onOutsideClick,l=e.withPortal,u=e.focused,d=e.enableOutsideDays,h=e.hideKeyboardShortcutsPanel,f=e.daySize,p=e.firstDayOfWeek,v=e.renderCalendarDay,b=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,k=e.isRTL,_=e.phrases,D=e.dayAriaLabelFormat,w=e.onBlur,S=e.showKeyboardShortcuts,C=e.weekDayFormat,j=e.verticalHeight,P=e.noBorder,E=e.transitionDuration,z=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,H=I.visibleDays;return i.default.createElement(M.default,{orientation:n,enableOutsideDays:d,modifiers:H,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:l,hidden:!u,hideKeyboardShortcutsPanel:h,initialVisibleMonth:function(){return x},firstDayOfWeek:p,onOutsideClick:c,navPrev:a,navNext:s,renderMonthText:o,renderCalendarDay:v,renderDayContents:b,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:w,phrases:_,daySize:f,isRTL:k,showKeyboardShortcuts:S,weekDayFormat:C,dayAriaLabelFormat:D,verticalHeight:j,noBorder:P,transitionDuration:E,verticalBorderSpacing:z,horizontalMonthPadding:T})}}]),t}(i.default.Component);t.default=E,E.propTypes=j,E.defaultProps=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n(34)),o=p(n(63)),a=n(46),i=n(50),s=p(n(55)),c=p(n(88)),l=p(n(167)),u=p(n(168)),d=p(n(78)),h=p(n(71)),f=p(n(89));function p(e){return e&&e.__esModule?e:{default:e}}t.default={date:o.default.momentObj,onDateChange:r.default.func.isRequired,focused:r.default.bool,onFocusChange:r.default.func.isRequired,id:r.default.string.isRequired,placeholder:r.default.string,disabled:r.default.bool,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDate:r.default.bool,customCloseIcon:r.default.node,showDefaultInputIcon:r.default.bool,inputIconPosition:c.default,customInputIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,verticalSpacing:a.nonNegativeInteger,keepFocusOnInput:r.default.bool,renderMonthText:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,a.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:l.default,anchorDirection:u.default,openDirection:d.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,initialVisibleMonth:r.default.func,firstDayOfWeek:h.default,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDate:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:f.default,hideKeyboardShortcutsPanel:r.default.bool,daySize:a.nonNegativeInteger,isRTL:r.default.bool,verticalHeight:a.nonNegativeInteger,transitionDuration:a.nonNegativeInteger,horizontalMonthPadding:a.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,onClose:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(i.SingleDatePickerPhrases)),dayAriaLabelFormat:r.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===r(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,s.default)(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(i.default);function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=l},function(e,t,n){"use strict";var r,o="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},a=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,s.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,s.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":o(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=c},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},h=1;h<20;++h)c[111+h]="f"+h;for(h=0;h<=9;++h)c[h+96]=h.toString();y.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},y.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},y.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},y.prototype.reset=function(){return this._callbacks={},this._directMap={},this},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==a&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(c[t]=e[t]);s=null},y.init=function(){var e=y(a);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),o.Mousetrap=y,e.exports&&(e.exports=y),void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function p(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return c[e.which]?c[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function v(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function b(e,t,n){return n||(n=function(){if(!s)for(var e in s={},c)e>95&&e<112||c.hasOwnProperty(e)&&(s[c[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e,t){var n,r,o,a=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o1?h(e,s,n,r):(i=m(e,r),t._callbacks[i.key]=t._callbacks[i.key]||[],l(i.key,i.modifiers,{type:i.action},o,e,a),t._callbacks[i.key][o?"unshift":"push"]({callback:n,modifiers:i.modifiers,action:i.action,seq:o,level:a,combo:e}))}t._handleKey=function(e,t,n){var r,o=l(e,t,n),a={},d=0,h=!1;for(r=0;r0&&!o.call(e,0))for(var v=0;v0)for(var b=0;b= 0");var n=this.ToLength(t);if(!this.SameValueZero(t,n))throw new RangeError("index must be >= 0 and < 2 ** 53 - 1");return n},EnumerableOwnProperties:function(e,t){var n=o.EnumerableOwnNames(e);if("key"===t)return n;if("value"===t||"key+value"===t){var r=[];return i(n,(function(n){l(e,n)&&u(r,["value"===t?e[n]:[n,e[n]]])})),r}throw new c('Assertion failed: "kind" is not "key", "value", or "key+value": '+t)}});delete d.EnumerableOwnNames,e.exports=d},function(e,t,n){"use strict";var r=n(98),o=n(295),a=n(146),i=n(107),s=i("%TypeError%"),c=i("%SyntaxError%"),l=i("%Array%"),u=i("%String%"),d=i("%Object%"),h=i("%Number%"),f=i("%Symbol%",!0),p=i("%RegExp%"),v=!!f,b=n(173),m=n(174),y=n(175),g=h.MAX_SAFE_INTEGER||Math.pow(2,53)-1,O=n(148),k=n(176),_=n(177),D=n(299),w=parseInt,M=n(77),S=M.call(Function.call,l.prototype.slice),C=M.call(Function.call,u.prototype.slice),j=M.call(Function.call,p.prototype.test,/^0b[01]+$/i),P=M.call(Function.call,p.prototype.test,/^0o[0-7]+$/i),E=M.call(Function.call,p.prototype.exec),z=new p("["+["…","​","￾"].join("")+"]","g"),T=M.call(Function.call,p.prototype.test,z),I=M.call(Function.call,p.prototype.test,/^[-+]0x[0-9a-f]+$/i),x=M.call(Function.call,u.prototype.charCodeAt),H=M.call(Function.call,Object.prototype.toString),N=M.call(Function.call,i("%NumberPrototype%").valueOf),R=M.call(Function.call,i("%BooleanPrototype%").valueOf),L=M.call(Function.call,i("%StringPrototype%").valueOf),F=M.call(Function.call,i("%DatePrototype%").valueOf),A=Math.floor,V=Math.abs,B=Object.create,K=d.getOwnPropertyDescriptor,W=d.isExtensible,U=d.defineProperty,$=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),q=new RegExp("(^["+$+"]+)|(["+$+"]+$)","g"),G=M.call(Function.call,u.prototype.replace),Y=n(300),Z=n(302),X=O(O({},Y),{Call:function(e,t){var n=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new s(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=D(e)?e:o(e,h);if("symbol"==typeof t)throw new s("Cannot convert a Symbol value to a number");if("string"==typeof t){if(j(t))return this.ToNumber(w(C(t,2),2));if(P(t))return this.ToNumber(w(C(t,2),8));if(T(t)||I(t))return NaN;var n=function(e){return G(e,q,"")}(t);if(n!==t)return this.ToNumber(n)}return h(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!y(t))return 0;var n=k(t)*A(V(t));return _(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var n=A(e);return n+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==H(e))throw new s("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:Y.CheckObjectCoercible,IsArray:l.isArray||function(e){return"[object Array]"===H(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!D(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!y(e))return!1;var t=V(e);return A(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(v){var t=e[f.match];if(void 0!==t)return Y.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new s(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Y.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new s("O.constructor is not an Object");var r=v&&f.species?n[f.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new s("no constructor found")},CompletePropertyDescriptor:function(e){return b(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");if("Boolean"!==this.Type(r))throw new s("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(v&&"symbol"==typeof f.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");var n=S(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!v)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,f.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new s("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new s("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new s("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var a=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(a))throw new s("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new s("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new s("R must be an Object");if("String"!==this.Type(t))throw new s("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new s('"exec" method must return `null` or an Object')}return E(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new s("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&v&&f.species&&null===(n=this.Get(n,f.species))&&(n=void 0)),void 0===n)return l(r);if(!this.IsConstructor(n))throw new s("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=K(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&(U(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new s("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new s("Assertion failed: proto must be null or an object");var n=arguments.length<2?[]:t;if(n.length>0)throw new c("es-abstract does not yet support internal slots");if(null===e&&!B)throw new c("native Object.create support is required to create null objects");return B(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new s("S must be a String");if(!this.IsInteger(t)||t<0||t>g)throw new s("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new s("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=x(e,t);if(r<55296||r>56319)return t+1;var o=x(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");return a(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:N(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:R(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:L(e)},thisTimeValue:function(e){return F(e)}});delete X.CheckObjectCoercible,e.exports=X},function(e,t,n){"use strict";e.exports=n(296)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(170),a=n(147),i=n(297),s=n(171),c=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,i,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(i=0;i1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=l(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(e,n);if(o(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(i(e)||s(e))&&(n="string"),c(e,"default"===n?"number":n)}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(172);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(67))},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(107),o=r("%Object%"),a=r("%TypeError%"),i=r("%String%"),s=n(173),c=n(174),l=n(175),u=n(176),d=n(177),h=n(147),f=n(301),p=n(98),v={ToPrimitive:f,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return c(t)?0:0!==t&&l(t)?u(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(c(t)||0===t||!l(t))return 0;var n=u(t)*Math.floor(Math.abs(t));return d(n,65536)},ToString:function(e){return i(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new a(t||"Cannot call method on "+e);return e},IsCallable:h,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:c(e)&&c(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(p(e,n)&&!t[n])return!1;var r=p(e,"[[Value]]"),o=p(e,"[[Get]]")||p(e,"[[Set]]");if(r&&o)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Get]]")&&!p(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Value]]")&&!p(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(s(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new a("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new a("ToPropertyDescriptor requires an object");var t={};if(p(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),p(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),p(e,"value")&&(t["[[Value]]"]=e.value),p(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),p(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(p(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new a("setter must be a function");t["[[Set]]"]=r}if((p(t,"[[Get]]")||p(t,"[[Set]]"))&&(p(t,"[[Value]]")||p(t,"[[Writable]]")))throw new a("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=v},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(170),a=n(147),i=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,i,s=t===String?["toString","valueOf"]:["valueOf","toString"];for(i=0;i1?i(e,arguments[1]):i(e)}},function(e,t,n){"use strict";var r=n(98),o=RegExp.prototype.exec,a=Object.getOwnPropertyDescriptor,i=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s)return"[object RegExp]"===i.call(e);var t=a(e,"lastIndex");return!(!t||!r(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=0;n0?String(e)+"__":"")+String(t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=!1,r={},o=0;o>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}var a=-1;e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,i,s){return r((function(r,c,l,u,d,h,f){var p=l[u],v=typeof p,b=function(e,t,n,r){var i=void 0===r,s=null===r;if(e){if(i)return o(n,t,"undefined");if(s)return o(n,t,"null")}return i||s?null:a}(r,d=d||n.anonymousMessage,f=f||u,p);if(b!==a)return b;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+u+"` of type `"+v+"` supplied to `"+d+"`, expected `"+e+"`.");if(!i(p))return new Error(n.baseInvalidMessage+h+" `"+u+"` of type `"+v+"` supplied to `"+d+"`, expected `"+s+"`.");if(c&&!c(p)){var m=c.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+h+" `"+u+"` of type `"+v+"` supplied to `"+d+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null}))},messages:n}},function(e,t,n){"use strict";function r(){return null}function o(){return r}r.isRequired=r,e.exports={and:o,between:o,booleanSome:o,childrenHavePropXorChildren:o,childrenOf:o,childrenOfType:o,childrenSequenceOf:o,componentWithName:o,disallowedIf:o,elementType:o,empty:o,explicitNull:o,forbidExtraProps:Object,integer:o,keysOf:o,mutuallyExclusiveProps:o,mutuallyExclusiveTrueProps:o,nChildren:o,nonNegativeInteger:r,nonNegativeNumber:o,numericString:o,object:o,or:o,range:o,ref:o,requiredBy:o,restrictedProp:o,sequenceOf:o,shape:o,stringEndsWith:o,stringStartsWith:o,uniqueArray:o,uniqueArrayOf:o,valuesOf:o,withShape:o}},function(e,t,n){"use strict";var r=n(317),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=f(n);o&&o!==p&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=c(t),v=c(n),b=0;b0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===r(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,s.default)(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(i.default);function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=l},function(e,t,n){"use strict";var r,o="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},a=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,s.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,s.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":o(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=c},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},h=1;h<20;++h)c[111+h]="f"+h;for(h=0;h<=9;++h)c[h+96]=h.toString();y.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},y.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},y.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},y.prototype.reset=function(){return this._callbacks={},this._directMap={},this},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==a&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(c[t]=e[t]);s=null},y.init=function(){var e=y(a);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),o.Mousetrap=y,e.exports&&(e.exports=y),void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function p(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return c[e.which]?c[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function v(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function b(e,t,n){return n||(n=function(){if(!s)for(var e in s={},c)e>95&&e<112||c.hasOwnProperty(e)&&(s[c[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e,t){var n,r,o,a=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o1?h(e,s,n,r):(i=m(e,r),t._callbacks[i.key]=t._callbacks[i.key]||[],l(i.key,i.modifiers,{type:i.action},o,e,a),t._callbacks[i.key][o?"unshift":"push"]({callback:n,modifiers:i.modifiers,action:i.action,seq:o,level:a,combo:e}))}t._handleKey=function(e,t,n){var r,o=l(e,t,n),a={},d=0,h=!1;for(r=0;r0&&!o.call(e,0))for(var v=0;v0)for(var b=0;b= 0");var n=this.ToLength(t);if(!this.SameValueZero(t,n))throw new RangeError("index must be >= 0 and < 2 ** 53 - 1");return n},EnumerableOwnProperties:function(e,t){var n=o.EnumerableOwnNames(e);if("key"===t)return n;if("value"===t||"key+value"===t){var r=[];return i(n,(function(n){l(e,n)&&u(r,["value"===t?e[n]:[n,e[n]]])})),r}throw new c('Assertion failed: "kind" is not "key", "value", or "key+value": '+t)}});delete d.EnumerableOwnNames,e.exports=d},function(e,t,n){"use strict";var r=n(87),o=n(224),a=n(123),i=n(96),s=i("%TypeError%"),c=i("%SyntaxError%"),l=i("%Array%"),u=i("%String%"),d=i("%Object%"),h=i("%Number%"),f=i("%Symbol%",!0),p=i("%RegExp%"),v=!!f,b=n(145),m=n(146),y=n(147),g=h.MAX_SAFE_INTEGER||Math.pow(2,53)-1,O=n(125),k=n(148),_=n(149),D=n(228),w=parseInt,M=n(70),S=M.call(Function.call,l.prototype.slice),C=M.call(Function.call,u.prototype.slice),j=M.call(Function.call,p.prototype.test,/^0b[01]+$/i),P=M.call(Function.call,p.prototype.test,/^0o[0-7]+$/i),E=M.call(Function.call,p.prototype.exec),z=new p("["+["…","​","￾"].join("")+"]","g"),T=M.call(Function.call,p.prototype.test,z),I=M.call(Function.call,p.prototype.test,/^[-+]0x[0-9a-f]+$/i),x=M.call(Function.call,u.prototype.charCodeAt),H=M.call(Function.call,Object.prototype.toString),N=M.call(Function.call,i("%NumberPrototype%").valueOf),R=M.call(Function.call,i("%BooleanPrototype%").valueOf),L=M.call(Function.call,i("%StringPrototype%").valueOf),F=M.call(Function.call,i("%DatePrototype%").valueOf),A=Math.floor,V=Math.abs,B=Object.create,K=d.getOwnPropertyDescriptor,W=d.isExtensible,U=d.defineProperty,$=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),q=new RegExp("(^["+$+"]+)|(["+$+"]+$)","g"),G=M.call(Function.call,u.prototype.replace),Y=n(229),Z=n(231),X=O(O({},Y),{Call:function(e,t){var n=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new s(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=D(e)?e:o(e,h);if("symbol"==typeof t)throw new s("Cannot convert a Symbol value to a number");if("string"==typeof t){if(j(t))return this.ToNumber(w(C(t,2),2));if(P(t))return this.ToNumber(w(C(t,2),8));if(T(t)||I(t))return NaN;var n=function(e){return G(e,q,"")}(t);if(n!==t)return this.ToNumber(n)}return h(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!y(t))return 0;var n=k(t)*A(V(t));return _(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var n=A(e);return n+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==H(e))throw new s("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:Y.CheckObjectCoercible,IsArray:l.isArray||function(e){return"[object Array]"===H(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!D(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!y(e))return!1;var t=V(e);return A(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(v){var t=e[f.match];if(void 0!==t)return Y.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new s(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Y.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new s("O.constructor is not an Object");var r=v&&f.species?n[f.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new s("no constructor found")},CompletePropertyDescriptor:function(e){return b(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");if("Boolean"!==this.Type(r))throw new s("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(v&&"symbol"==typeof f.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");var n=S(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!v)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,f.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new s("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new s("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new s("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var a=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(a))throw new s("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new s("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new s("R must be an Object");if("String"!==this.Type(t))throw new s("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new s('"exec" method must return `null` or an Object')}return E(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new s("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&v&&f.species&&null===(n=this.Get(n,f.species))&&(n=void 0)),void 0===n)return l(r);if(!this.IsConstructor(n))throw new s("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=K(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&(U(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new s("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new s("Assertion failed: proto must be null or an object");var n=arguments.length<2?[]:t;if(n.length>0)throw new c("es-abstract does not yet support internal slots");if(null===e&&!B)throw new c("native Object.create support is required to create null objects");return B(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new s("S must be a String");if(!this.IsInteger(t)||t<0||t>g)throw new s("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new s("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=x(e,t);if(r<55296||r>56319)return t+1;var o=x(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");return a(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:N(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:R(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:L(e)},thisTimeValue:function(e){return F(e)}});delete X.CheckObjectCoercible,e.exports=X},function(e,t,n){"use strict";e.exports=n(225)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(142),a=n(124),i=n(226),s=n(143),c=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,i,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(i=0;i1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=l(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(e,n);if(o(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(i(e)||s(e))&&(n="string"),c(e,"default"===n?"number":n)}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(144);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(61))},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(96),o=r("%Object%"),a=r("%TypeError%"),i=r("%String%"),s=n(145),c=n(146),l=n(147),u=n(148),d=n(149),h=n(124),f=n(230),p=n(87),v={ToPrimitive:f,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return c(t)?0:0!==t&&l(t)?u(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(c(t)||0===t||!l(t))return 0;var n=u(t)*Math.floor(Math.abs(t));return d(n,65536)},ToString:function(e){return i(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new a(t||"Cannot call method on "+e);return e},IsCallable:h,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:c(e)&&c(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(p(e,n)&&!t[n])return!1;var r=p(e,"[[Value]]"),o=p(e,"[[Get]]")||p(e,"[[Set]]");if(r&&o)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Get]]")&&!p(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!p(e,"[[Value]]")&&!p(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(s(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new a("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new a("ToPropertyDescriptor requires an object");var t={};if(p(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),p(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),p(e,"value")&&(t["[[Value]]"]=e.value),p(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),p(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(p(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new a("setter must be a function");t["[[Set]]"]=r}if((p(t,"[[Get]]")||p(t,"[[Set]]"))&&(p(t,"[[Value]]")||p(t,"[[Writable]]")))throw new a("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=v},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(142),a=n(124),i=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,i,s=t===String?["toString","valueOf"]:["valueOf","toString"];for(i=0;i1?i(e,arguments[1]):i(e)}},function(e,t,n){"use strict";var r=n(87),o=RegExp.prototype.exec,a=Object.getOwnPropertyDescriptor,i=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s)return"[object RegExp]"===i.call(e);var t=a(e,"lastIndex");return!(!t||!r(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=0;n0?String(e)+"__":"")+String(t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=!1,r={},o=0;o>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}var a=-1;e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,i,s){return r((function(r,c,l,u,d,h,f){var p=l[u],v=typeof p,b=function(e,t,n,r){var i=void 0===r,s=null===r;if(e){if(i)return o(n,t,"undefined");if(s)return o(n,t,"null")}return i||s?null:a}(r,d=d||n.anonymousMessage,f=f||u,p);if(b!==a)return b;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+u+"` of type `"+v+"` supplied to `"+d+"`, expected `"+e+"`.");if(!i(p))return new Error(n.baseInvalidMessage+h+" `"+u+"` of type `"+v+"` supplied to `"+d+"`, expected `"+s+"`.");if(c&&!c(p)){var m=c.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+h+" `"+u+"` of type `"+v+"` supplied to `"+d+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null}))},messages:n}},function(e,t,n){"use strict";function r(){return null}function o(){return r}r.isRequired=r,e.exports={and:o,between:o,booleanSome:o,childrenHavePropXorChildren:o,childrenOf:o,childrenOfType:o,childrenSequenceOf:o,componentWithName:o,disallowedIf:o,elementType:o,empty:o,explicitNull:o,forbidExtraProps:Object,integer:o,keysOf:o,mutuallyExclusiveProps:o,mutuallyExclusiveTrueProps:o,nChildren:o,nonNegativeInteger:r,nonNegativeNumber:o,numericString:o,object:o,or:o,range:o,ref:o,requiredBy:o,restrictedProp:o,sequenceOf:o,shape:o,stringEndsWith:o,stringStartsWith:o,uniqueArray:o,uniqueArrayOf:o,valuesOf:o,withShape:o}},function(e,t,n){"use strict";var r=n(246),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=f(n);o&&o!==p&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=c(t),v=c(n),b=0;b2&&void 0!==arguments[2]?arguments[2]:a.default.localeData().firstDayOfWeek();if(!a.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===i.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),s=(r.day()+7-n)%7,c=(n+6-o.day())%7,l=r.clone().subtract(s,"day"),u=o.clone().add(c,"day").diff(l,"days")+1,d=l.clone(),h=[],f=0;f=s&&f=t||n<0||m&&e-v>=d}function k(){var e=o();if(O(e))return _(e);f=setTimeout(k,function(e){var n=t-(e-p);return m?c(n,d-(e-v)):n}(e))}function _(e){return f=void 0,y&&l?g(e):(l=u=void 0,h)}function D(){var e=o(),n=O(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return function(e){return v=e,f=setTimeout(k,t),b?g(e):h}(p);if(m)return clearTimeout(f),f=setTimeout(k,t),g(p)}return void 0===f&&(f=setTimeout(k,t)),h}return t=a(t)||0,r(n)&&(b=!!n.leading,d=(m="maxWait"in n)?s(a(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),D.cancel=function(){void 0!==f&&clearTimeout(f),v=0,l=p=u=f=void 0},D.flush=function(){return void 0===f?h:_(o())},D}},function(e,t,n){var r=n(204);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(67))},function(e,t,n){var r=n(153),o=n(339),a=NaN,i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?a:+e}},function(e,t,n){var r=n(340),o=n(343),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==a}},function(e,t,n){var r=n(205),o=n(341),a=n(342),i="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:i:c&&c in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(205),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return e?n(e(t.clone())):t};var r=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:a.default.localeData().firstDayOfWeek(),n=function(e,t){return(e.day()-t+7)%7}(e.clone().startOf("month"),t);return Math.ceil((n+e.daysInMonth())/7)};var r,o=n(29),a=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return"undefined"!=typeof document&&document.activeElement}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureSingleDatePicker=void 0;var r=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"top",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=n.split(" "),i=Object(h.a)(a,2),s=i[0],c=i[1],l=void 0===c?"center":c,u=function(e,t,n){var r,o=t.height,a=e.top+e.height/2,i={popoverTop:a,contentHeight:(a-o/2>0?o/2:a)+(a+o/2>window.innerHeight?window.innerHeight-a:o/2)},s={popoverTop:e.top,contentHeight:e.top-N-o>0?o:e.top-N},c={popoverTop:e.bottom,contentHeight:e.bottom+N+o>window.innerHeight?window.innerHeight-N-e.bottom:o},l=null;if("middle"===n&&i.contentHeight===o)r="middle";else if("top"===n&&s.contentHeight===o)r="top";else if("bottom"===n&&c.contentHeight===o)r="bottom";else{var u="top"===(r=s.contentHeight>c.contentHeight?"top":"bottom")?s.contentHeight:c.contentHeight;l=u!==o?u:null}return{yAxis:r,popoverTop:"middle"===r?i.popoverTop:"top"===r?s.popoverTop:c.popoverTop,contentHeight:l}}(e,t,s),d=function(e,t,n,r){var o=t.width;"left"===n&&L()?n="right":"right"===n&&L()&&(n="left");var a,i=Math.round(e.left+e.width/2),s={popoverLeft:i,contentWidth:(i-o/2>0?o/2:i)+(i+o/2>window.innerWidth?window.innerWidth-i:o/2)},c="middle"===r?e.left:i,l={popoverLeft:c,contentWidth:c-o>0?o:c},u="middle"===r?e.right:i,d={popoverLeft:u,contentWidth:u+o>window.innerWidth?window.innerWidth-u:o},h=null;if("center"===n&&s.contentWidth===o)a="center";else if("left"===n&&l.contentWidth===o)a="left";else if("right"===n&&d.contentWidth===o)a="right";else{var f="left"===(a=l.contentWidth>d.contentWidth?"left":"right")?l.contentWidth:d.contentWidth;h=f!==o?f:null}return{xAxis:a,popoverLeft:"center"===a?s.popoverLeft:"left"===a?l.popoverLeft:d.popoverLeft,contentWidth:h}}(e,t,l,u.yAxis);return Object(r.a)({isMobile:R()&&o},d,u)}var A=Object(o.createContext)({focusHistory:[]}),V=A.Provider,B=A.Consumer;V.displayName="FocusReturnProvider",B.displayName="FocusReturnConsumer";var K=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onFocus=e.onFocus.bind(Object(g.a)(e)),e.state={focusHistory:[]},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"onFocus",value:function(e){var t=this.state.focusHistory,n=Object(D.uniq)([].concat(Object(_.a)(t),[e.target]).slice(-100).reverse()).reverse();this.setState({focusHistory:n})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className;return Object(o.createElement)(V,{value:this.state},Object(o.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),t}(o.Component);var W=Object(S.createHigherOrderComponent)((function e(t){if((r=t)instanceof o.Component||"function"==typeof r){var n=t;return e({})(n)}var r,a=t.onFocusReturn,i=void 0===a?D.stubTrue:a;return function(e){var t=function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).ownFocusedElements=new Set,e.activeElementOnMount=document.activeElement,e.setIsFocusedFalse=function(){return e.isFocused=!1},e.setIsFocusedTrue=function(t){e.ownFocusedElements.add(t.target),e.isFocused=!0},e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==i())for(var r,o=[].concat(Object(_.a)(D.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(_.a)(n)))),[e]);r=o.pop();)if(document.body.contains(r))return void r.focus()}},{key:"render",value:function(){return Object(o.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(o.createElement)(e,this.props.childProps))}}]),n}(o.Component);return function(e){return Object(o.createElement)(B,null,(function(n){return Object(o.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn"),U=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).focusContainRef=Object(o.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(g.a)(e)),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===w.TAB){var t=j.focus.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],r=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),r.focus()):(e.shiftKey||e.target!==r)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return Object(o.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(o.createElement)(e,this.props))}}]),n}(o.Component)}),"withConstrainedTabbing"),$=["button","submit"];var q=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(g.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(g.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(g.a)(e)),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(D.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(D.includes)($,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(o.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(o.createElement)(e,Object(z.a)({ref:this.bindNode},this.props)))}}]),n}(o.Component)}),"withFocusOutside"),G=function(e){function t(){return Object(b.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),t}(o.Component),Y=q(G);var Z=function(e){var t,n,r=e.shortcut,a=e.className;return r?(Object(D.isString)(r)&&(t=r),Object(D.isObject)(r)&&(t=r.display,n=r.ariaLabel),Object(o.createElement)("span",{className:a,"aria-label":n},t)):null},X=700,Q=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).delayedSetIsOver=Object(D.debounce)((function(t){return e.setState({isOver:t})}),X),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===o.Children.count(n)){var r=o.Children.only(n);"function"==typeof r.props[e]&&r.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var o=Object(D.includes)(["focus","mouseenter"],r.type);o!==n.state.isOver&&(t?n.delayedSetIsOver(o):n.setState({isOver:o}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,r=e.text,a=e.shortcut;if(1!==o.Children.count(t))return t;var i=o.Children.only(t),s=this.state.isOver;return Object(o.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(o.concatChildren)(i.props.children,s&&Object(o.createElement)(ye,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1},r,Object(o.createElement)(Z,{className:"components-tooltip__shortcut",shortcut:a})))})}}]),t}(o.Component),J=function(e){function t(){return Object(b.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"render",value:function(){var e,t=this.props,n=t.icon,r=t.size,a=void 0===r?20:r,i=t.className,c=(t.ariaPressed,Object(P.a)(t,["icon","size","className","ariaPressed"]));switch(n){case"admin-appearance":e="M14.48 11.06L7.41 3.99l1.5-1.5c.5-.56 2.3-.47 3.51.32 1.21.8 1.43 1.28 2.91 2.1 1.18.64 2.45 1.26 4.45.85zm-.71.71L6.7 4.7 4.93 6.47c-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39.39 1.03 0 1.42-.6.6-1.43 1.11-2.21 1.69-.35.26-.7.53-1.01.84C1.43 14.23.4 16.08 1.4 17.07c.99 1 2.84-.03 4.18-1.36.31-.31.58-.66.85-1.02.57-.78 1.08-1.61 1.69-2.21.39-.39 1.02-.39 1.41 0l1.06 1.06c.39.39 1.02.39 1.41 0z";break;case"admin-collapse":e="M10 2.16c4.33 0 7.84 3.51 7.84 7.84s-3.51 7.84-7.84 7.84S2.16 14.33 2.16 10 5.71 2.16 10 2.16zm2 11.72V6.12L6.18 9.97z";break;case"admin-comments":e="M5 2h9c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z";break;case"admin-customizer":e="M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z";break;case"admin-generic":e="M18 12h-2.18c-.17.7-.44 1.35-.81 1.93l1.54 1.54-2.1 2.1-1.54-1.54c-.58.36-1.23.63-1.91.79V19H8v-2.18c-.68-.16-1.33-.43-1.91-.79l-1.54 1.54-2.12-2.12 1.54-1.54c-.36-.58-.63-1.23-.79-1.91H1V9.03h2.17c.16-.7.44-1.35.8-1.94L2.43 5.55l2.1-2.1 1.54 1.54c.58-.37 1.24-.64 1.93-.81V2h3v2.18c.68.16 1.33.43 1.91.79l1.54-1.54 2.12 2.12-1.54 1.54c.36.59.64 1.24.8 1.94H18V12zm-8.5 1.5c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z";break;case"admin-home":e="M16 8.5l1.53 1.53-1.06 1.06L10 4.62l-6.47 6.47-1.06-1.06L10 2.5l4 4v-2h2v4zm-6-2.46l6 5.99V18H4v-5.97zM12 17v-5H8v5h4z";break;case"admin-links":e="M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z";break;case"admin-media":e="M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z";break;case"admin-multisite":e="M14.27 6.87L10 3.14 5.73 6.87 5 6.14l5-4.38 5 4.38zM14 8.42l-4.05 3.43L6 8.38v-.74l4-3.5 4 3.5v.78zM11 9.7V8H9v1.7h2zm-1.73 4.03L5 10 .73 13.73 0 13l5-4.38L10 13zm10 0L15 10l-4.27 3.73L10 13l5-4.38L20 13zM5 11l4 3.5V18H1v-3.5zm10 0l4 3.5V18h-8v-3.5zm-9 6v-2H4v2h2zm10 0v-2h-2v2h2z";break;case"admin-network":e="M16.95 2.58c1.96 1.95 1.96 5.12 0 7.07-1.51 1.51-3.75 1.84-5.59 1.01l-1.87 3.31-2.99.31L5 18H2l-1-2 7.95-7.69c-.92-1.87-.62-4.18.93-5.73 1.95-1.96 5.12-1.96 7.07 0zm-2.51 3.79c.74 0 1.33-.6 1.33-1.34 0-.73-.59-1.33-1.33-1.33-.73 0-1.33.6-1.33 1.33 0 .74.6 1.34 1.33 1.34z";break;case"admin-page":e="M6 15V2h10v13H6zm-1 1h8v2H3V5h2v11z";break;case"admin-plugins":e="M13.11 4.36L9.87 7.6 8 5.73l3.24-3.24c.35-.34 1.05-.2 1.56.32.52.51.66 1.21.31 1.55zm-8 1.77l.91-1.12 9.01 9.01-1.19.84c-.71.71-2.63 1.16-3.82 1.16H6.14L4.9 17.26c-.59.59-1.54.59-2.12 0-.59-.58-.59-1.53 0-2.12l1.24-1.24v-3.88c0-1.13.4-3.19 1.09-3.89zm7.26 3.97l3.24-3.24c.34-.35 1.04-.21 1.55.31.52.51.66 1.21.31 1.55l-3.24 3.25z";break;case"admin-post":e="M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z";break;case"admin-settings":e="M18 16V4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h13c.55 0 1-.45 1-1zM8 11h1c.55 0 1 .45 1 1s-.45 1-1 1H8v1.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V13H6c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V11zm5-2h-1c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V7h1c.55 0 1 .45 1 1s-.45 1-1 1h-1v5.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V9z";break;case"admin-site-alt":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm7.5 6.48c-.274.896-.908 1.64-1.75 2.05-.45-1.69-1.658-3.074-3.27-3.75.13-.444.41-.83.79-1.09-.43-.28-1-.42-1.34.07-.53.69 0 1.61.21 2v.14c-.555-.337-.99-.84-1.24-1.44-.966-.03-1.922.208-2.76.69-.087-.565-.032-1.142.16-1.68.733.07 1.453-.23 1.92-.8.46-.52-.13-1.18-.59-1.58h.36c1.36-.01 2.702.335 3.89 1 1.36 1.005 2.194 2.57 2.27 4.26.24 0 .7-.55.91-.92.172.34.32.69.44 1.05zM9 16.84c-2.05-2.08.25-3.75-1-5.24-.92-.85-2.29-.26-3.11-1.23-.282-1.473.267-2.982 1.43-3.93.52-.44 4-1 5.42.22.83.715 1.415 1.674 1.67 2.74.46.035.918-.066 1.32-.29.41 2.98-3.15 6.74-5.73 7.73zM5.15 2.09c.786-.3 1.676-.028 2.16.66-.42.38-.94.63-1.5.72.02-.294.085-.584.19-.86l-.85-.52z";break;case"admin-site-alt2":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm2.92 12.34c0 .35.14.63.36.66.22.03.47-.22.58-.6l.2.08c.718.384 1.07 1.22.84 2-.15.69-.743 1.198-1.45 1.24-.49-1.21-2.11.06-3.56-.22-.612-.154-1.11-.6-1.33-1.19 1.19-.11 2.85-1.73 4.36-1.97zM8 11.27c.918 0 1.695-.68 1.82-1.59.44.54.41 1.324-.07 1.83-.255.223-.594.325-.93.28-.335-.047-.635-.236-.82-.52zm3-.76c.41.39 3-.06 3.52 1.09-.95-.2-2.95.61-3.47-1.08l-.05-.01zM9.73 5.45v.27c-.65-.77-1.33-1.07-1.61-.57-.28.5 1 1.11.76 1.88-.24.77-1.27.56-1.88 1.61-.61 1.05-.49 2.42 1.24 3.67-1.192-.132-2.19-.962-2.54-2.11-.4-1.2-.09-2.26-.78-2.46C4 7.46 3 8.71 3 9.8c-1.26-1.26.05-2.86-1.2-4.18C3.5 1.998 7.644.223 11.44 1.49c-1.1 1.02-1.722 2.458-1.71 3.96z";break;case"admin-site-alt3":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z";break;case"admin-site":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm3.46 11.95c0 1.47-.8 3.3-4.06 4.7.3-4.17-2.52-3.69-3.2-5 .126-1.1.804-2.063 1.8-2.55-1.552-.266-3-.96-4.18-2 .05.47.28.904.64 1.21-.782-.295-1.458-.817-1.94-1.5.977-3.225 3.883-5.482 7.25-5.63-.84 1.38-1.5 4.13 0 5.57C7.23 7 6.26 5 5.41 5.79c-1.13 1.06.33 2.51 3.42 3.08 3.29.59 3.66 1.58 3.63 3.08zm1.34-4c-.32-1.11.62-2.23 1.69-3.14 1.356 1.955 1.67 4.45.84 6.68-.77-1.89-2.17-2.32-2.53-3.57v.03z";break;case"admin-tools":e="M16.68 9.77c-1.34 1.34-3.3 1.67-4.95.99l-5.41 6.52c-.99.99-2.59.99-3.58 0s-.99-2.59 0-3.57l6.52-5.42c-.68-1.65-.35-3.61.99-4.95 1.28-1.28 3.12-1.62 4.72-1.06l-2.89 2.89 2.82 2.82 2.86-2.87c.53 1.58.18 3.39-1.08 4.65zM3.81 16.21c.4.39 1.04.39 1.43 0 .4-.4.4-1.04 0-1.43-.39-.4-1.03-.4-1.43 0-.39.39-.39 1.03 0 1.43z";break;case"admin-users":e="M10 9.25c-2.27 0-2.73-3.44-2.73-3.44C7 4.02 7.82 2 9.97 2c2.16 0 2.98 2.02 2.71 3.81 0 0-.41 3.44-2.68 3.44zm0 2.57L12.72 10c2.39 0 4.52 2.33 4.52 4.53v2.49s-3.65 1.13-7.24 1.13c-3.65 0-7.24-1.13-7.24-1.13v-2.49c0-2.25 1.94-4.48 4.47-4.48z";break;case"album":e="M0 18h10v-.26c1.52.4 3.17.35 4.76-.24 4.14-1.52 6.27-6.12 4.75-10.26-1.43-3.89-5.58-6-9.51-4.98V2H0v16zM9 3v14H1V3h8zm5.45 8.22c-.68 1.35-2.32 1.9-3.67 1.23-.31-.15-.57-.35-.78-.59V8.13c.8-.86 2.11-1.13 3.22-.58 1.35.68 1.9 2.32 1.23 3.67zm-2.75-.82c.22.16.53.12.7-.1.16-.22.12-.53-.1-.7s-.53-.12-.7.1c-.16.21-.12.53.1.7zm3.01 3.67c-1.17.78-2.56.99-3.83.69-.27-.06-.44-.34-.37-.61s.34-.43.62-.36l.17.04c.96.17 1.98-.01 2.86-.59.47-.32.86-.72 1.14-1.18.15-.23.45-.3.69-.16.23.15.3.46.16.69-.36.57-.84 1.08-1.44 1.48zm1.05 1.57c-1.48.99-3.21 1.32-4.84 1.06-.28-.05-.47-.32-.41-.6.05-.27.32-.45.61-.39l.22.04c1.31.15 2.68-.14 3.87-.94.71-.47 1.27-1.07 1.7-1.74.14-.24.45-.31.68-.16.24.14.31.45.16.69-.49.79-1.16 1.49-1.99 2.04z";break;case"align-center":e="M3 5h14V3H3v2zm12 8V7H5v6h10zM3 17h14v-2H3v2z";break;case"align-full-width":e="M17 13V3H3v10h14zM5 17h10v-2H5v2z";break;case"align-left":e="M3 5h14V3H3v2zm9 8V7H3v6h9zm2-4h3V7h-3v2zm0 4h3v-2h-3v2zM3 17h14v-2H3v2z";break;case"align-none":e="M3 5h14V3H3v2zm10 8V7H3v6h10zM3 17h14v-2H3v2z";break;case"align-pull-left":e="M9 16V4H3v12h6zm2-7h6V7h-6v2zm0 4h6v-2h-6v2z";break;case"align-pull-right":e="M17 16V4h-6v12h6zM9 7H3v2h6V7zm0 4H3v2h6v-2z";break;case"align-right":e="M3 5h14V3H3v2zm0 4h3V7H3v2zm14 4V7H8v6h9zM3 13h3v-2H3v2zm0 4h14v-2H3v2z";break;case"align-wide":e="M5 5h10V3H5v2zm12 8V7H3v6h14zM5 17h10v-2H5v2z";break;case"analytics":e="M18 18V2H2v16h16zM16 5H4V4h12v1zM7 7v3h3c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3zm1 2V7c1.1 0 2 .9 2 2H8zm8-1h-4V7h4v1zm0 3h-4V9h4v2zm0 2h-4v-1h4v1zm0 3H4v-1h12v1z";break;case"archive":e="M19 4v2H1V4h18zM2 7h16v10H2V7zm11 3V9H7v1h6z";break;case"arrow-down-alt":e="M9 2h2v12l4-4 2 1-7 7-7-7 2-1 4 4V2z";break;case"arrow-down-alt2":e="M5 6l5 5 5-5 2 1-7 7-7-7z";break;case"arrow-down":e="M15 8l-4.03 6L7 8h8z";break;case"arrow-left-alt":e="M18 9v2H6l4 4-1 2-7-7 7-7 1 2-4 4h12z";break;case"arrow-left-alt2":e="M14 5l-5 5 5 5-1 2-7-7 7-7z";break;case"arrow-left":e="M13 14L7 9.97 13 6v8z";break;case"arrow-right-alt":e="M2 11V9h12l-4-4 1-2 7 7-7 7-1-2 4-4H2z";break;case"arrow-right-alt2":e="M6 15l5-5-5-5 1-2 7 7-7 7z";break;case"arrow-right":e="M8 6l6 4.03L8 14V6z";break;case"arrow-up-alt":e="M11 18H9V6l-4 4-2-1 7-7 7 7-2 1-4-4v12z";break;case"arrow-up-alt2":e="M15 14l-5-5-5 5-2-1 7-7 7 7z";break;case"arrow-up":e="M7 13l4.03-6L15 13H7z";break;case"art":e="M8.55 3.06c1.01.34-1.95 2.01-.1 3.13 1.04.63 3.31-2.22 4.45-2.86.97-.54 2.67-.65 3.53 1.23 1.09 2.38.14 8.57-3.79 11.06-3.97 2.5-8.97 1.23-10.7-2.66-2.01-4.53 3.12-11.09 6.61-9.9zm1.21 6.45c.73 1.64 4.7-.5 3.79-2.8-.59-1.49-4.48 1.25-3.79 2.8z";break;case"awards":e="M4.46 5.16L5 7.46l-.54 2.29 2.01 1.24L7.7 13l2.3-.54 2.3.54 1.23-2.01 2.01-1.24L15 7.46l.54-2.3-2-1.24-1.24-2.01-2.3.55-2.29-.54-1.25 2zm5.55 6.34C7.79 11.5 6 9.71 6 7.49c0-2.2 1.79-3.99 4.01-3.99 2.2 0 3.99 1.79 3.99 3.99 0 2.22-1.79 4.01-3.99 4.01zm-.02-1C8.33 10.5 7 9.16 7 7.5c0-1.65 1.33-3 2.99-3S13 5.85 13 7.5c0 1.66-1.35 3-3.01 3zm3.84 1.1l-1.28 2.24-2.08-.47L13 19.2l1.4-2.2h2.5zm-7.7.07l1.25 2.25 2.13-.51L7 19.2 5.6 17H3.1z";break;case"backup":e="M13.65 2.88c3.93 2.01 5.48 6.84 3.47 10.77s-6.83 5.48-10.77 3.47c-1.87-.96-3.2-2.56-3.86-4.4l1.64-1.03c.45 1.57 1.52 2.95 3.08 3.76 3.01 1.54 6.69.35 8.23-2.66 1.55-3.01.36-6.69-2.65-8.24C9.78 3.01 6.1 4.2 4.56 7.21l1.88.97-4.95 3.08-.39-5.82 1.78.91C4.9 2.4 9.75.89 13.65 2.88zm-4.36 7.83C9.11 10.53 9 10.28 9 10c0-.07.03-.12.04-.19h-.01L10 5l.97 4.81L14 13l-4.5-2.12.02-.02c-.08-.04-.16-.09-.23-.15z";break;case"block-default":e="M15 6V4h-3v2H8V4H5v2H4c-.6 0-1 .4-1 1v8h14V7c0-.6-.4-1-1-1h-1z";break;case"book-alt":e="M5 17h13v2H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h13v14H5c-.55 0-1 .45-1 1s.45 1 1 1zm2-3.5v-11c0-.28-.22-.5-.5-.5s-.5.22-.5.5v11c0 .28.22.5.5.5s.5-.22.5-.5z";break;case"book":e="M16 3h2v16H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h9v14H5c-.55 0-1 .45-1 1s.45 1 1 1h11V3z";break;case"buddicons-activity":e="M8 1v7h2V6c0-1.52 1.45-3 3-3v.86c.55-.52 1.26-.86 2-.86v3h1c1.1 0 2 .9 2 2s-.9 2-2 2h-1v6c0 .55-.45 1-1 1s-1-.45-1-1v-2.18c-.31.11-.65.18-1 .18v2c0 .55-.45 1-1 1s-1-.45-1-1v-2H8v2c0 .55-.45 1-1 1s-1-.45-1-1v-2c-.35 0-.69-.07-1-.18V16c0 .55-.45 1-1 1s-1-.45-1-1v-4H2v-1c0-1.66 1.34-3 3-3h2V1h1zm5 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1z";break;case"buddicons-bbpress-logo":e="M8.5 12.6c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.3 1.7c-.3 1 .3 1.5 1 1.5 1.2 0 1.9-1.1 2.2-2.4zm-4-6.4C3.7 7.3 3.3 8.6 3.3 10c0 1 .2 1.9.6 2.8l1-4.6c.3-1.7.4-2-.4-2zm9.3 6.4c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.4 1.7c-.2 1.1.4 1.6 1.1 1.6 1.1-.1 1.9-1.2 2.2-2.5zM10 3.3c-2 0-3.9.9-5.1 2.3.6-.1 1.4-.2 1.8-.3.2 0 .2.1.2.2 0 .2-1 4.8-1 4.8.5-.3 1.2-.7 1.8-.7.9 0 1.5.4 1.9.9l.5-2.4c.4-1.6.4-1.9-.4-1.9-.4 0-.4-.5 0-.6.6-.1 1.8-.2 2.3-.3.2 0 .2.1.2.2l-1 4.8c.5-.4 1.2-.7 1.9-.7 1.7 0 2.5 1.3 2.1 3-.3 1.7-2 3-3.8 3-1.3 0-2.1-.7-2.3-1.4-.7.8-1.7 1.3-2.8 1.4 1.1.7 2.4 1.1 3.7 1.1 3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zM10 2c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 15.5c-2.1 0-4-.8-5.3-2.2-.3-.4-.7-.8-1-1.2-.7-1.2-1.2-2.6-1.2-4.1 0-4.1 3.4-7.5 7.5-7.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5z";break;case"buddicons-buddypress-logo":e="M10 0c5.52 0 10 4.48 10 10s-4.48 10-10 10S0 15.52 0 10 4.48 0 10 0zm0 .5C4.75.5.5 4.75.5 10s4.25 9.5 9.5 9.5 9.5-4.25 9.5-9.5S15.25.5 10 .5zm0 1c4.7 0 8.5 3.8 8.5 8.5s-3.8 8.5-8.5 8.5-8.5-3.8-8.5-8.5S5.3 1.5 10 1.5zm1.8 1.71c-.57 0-1.1.17-1.55.45 1.56.37 2.73 1.77 2.73 3.45 0 .69-.21 1.33-.55 1.87 1.31-.29 2.29-1.45 2.29-2.85 0-1.61-1.31-2.92-2.92-2.92zm-2.38 1c-1.61 0-2.92 1.31-2.92 2.93 0 1.61 1.31 2.92 2.92 2.92 1.62 0 2.93-1.31 2.93-2.92 0-1.62-1.31-2.93-2.93-2.93zm4.25 5.01l-.51.59c2.34.69 2.45 3.61 2.45 3.61h1.28c0-4.71-3.22-4.2-3.22-4.2zm-2.1.8l-2.12 2.09-2.12-2.09C3.12 10.24 3.89 15 3.89 15h11.08c.47-4.98-3.4-4.98-3.4-4.98z";break;case"buddicons-community":e="M9 3c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zm4 0c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zM9 9V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 0V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 1c0-1.48-1.41-2.77-3.5-3.46V9c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5V6.01c-.17 0-.33-.01-.5-.01s-.33.01-.5.01V9c0 .83-.67 1.5-1.5 1.5S6.5 9.83 6.5 9V6.54C4.41 7.23 3 8.52 3 10c0 1.41.95 2.65 3.21 3.37 1.11.35 2.39 1.12 3.79 1.12s2.69-.78 3.79-1.13C16.04 12.65 17 11.41 17 10zm-7 5.43c1.43 0 2.74-.79 3.88-1.11 1.9-.53 2.49-1.34 3.12-2.32v3c0 2.21-3.13 4-7 4s-7-1.79-7-4v-3c.64.99 1.32 1.8 3.15 2.33 1.13.33 2.44 1.1 3.85 1.1z";break;case"buddicons-forums":e="M13.5 7h-7C5.67 7 5 6.33 5 5.5S5.67 4 6.5 4h1.59C8.04 3.84 8 3.68 8 3.5 8 2.67 8.67 2 9.5 2h1c.83 0 1.5.67 1.5 1.5 0 .18-.04.34-.09.5h1.59c.83 0 1.5.67 1.5 1.5S14.33 7 13.5 7zM4 8h12c.55 0 1 .45 1 1s-.45 1-1 1H4c-.55 0-1-.45-1-1s.45-1 1-1zm1 3h10c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1s.45-1 1-1zm2 3h6c.55 0 1 .45 1 1s-.45 1-1 1h-1.09c.05.16.09.32.09.5 0 .83-.67 1.5-1.5 1.5h-1c-.83 0-1.5-.67-1.5-1.5 0-.18.04-.34.09-.5H7c-.55 0-1-.45-1-1s.45-1 1-1z";break;case"buddicons-friends":e="M8.75 5.77C8.75 4.39 7 2 7 2S5.25 4.39 5.25 5.77 5.9 7.5 7 7.5s1.75-.35 1.75-1.73zm6 0C14.75 4.39 13 2 13 2s-1.75 2.39-1.75 3.77S11.9 7.5 13 7.5s1.75-.35 1.75-1.73zM9 17V9c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm6 0V9c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-9-6l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2zm-6 3l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2z";break;case"buddicons-groups":e="M15.45 6.25c1.83.94 1.98 3.18.7 4.98-.8 1.12-2.33 1.88-3.46 1.78L10.05 18H9l-2.65-4.99c-1.13.16-2.73-.63-3.55-1.79-1.28-1.8-1.13-4.04.71-4.97.48-.24.96-.33 1.43-.31-.01.4.01.8.07 1.21.26 1.69 1.41 3.53 2.86 4.37-.19.55-.49.99-.88 1.25L9 16.58v-5.66C7.64 10.55 6.26 8.76 6 7c-.4-2.65 1-5 3.5-5s3.9 2.35 3.5 5c-.26 1.76-1.64 3.55-3 3.92v5.77l2.07-3.84c-.44-.23-.77-.71-.99-1.3 1.48-.83 2.65-2.69 2.91-4.4.06-.41.08-.82.07-1.22.46-.01.92.08 1.39.32z";break;case"buddicons-pm":e="M10 2c3 0 8 5 8 5v11H2V7s5-5 8-5zm7 14.72l-3.73-2.92L17 11l-.43-.37-2.26 1.3.24-4.31-8.77-.52-.46 4.54-1.99-.95L3 11l3.73 2.8-3.44 2.85.4.43L10 13l6.53 4.15z";break;case"buddicons-replies":e="M17.54 10.29c1.17 1.17 1.17 3.08 0 4.25-1.18 1.17-3.08 1.17-4.25 0l-.34-.52c0 3.66-2 4.38-2.95 4.98-.82-.6-2.95-1.28-2.95-4.98l-.34.52c-1.17 1.17-3.07 1.17-4.25 0-1.17-1.17-1.17-3.08 0-4.25 0 0 1.02-.67 2.1-1.3C3.71 7.84 3.2 6.42 3.2 4.88c0-.34.03-.67.08-1C3.53 5.66 4.47 7.22 5.8 8.3c.67-.35 1.85-.83 2.37-.92H8c-1.1 0-2-.9-2-2s.9-2 2-2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5h2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5c1.1 0 2 .9 2 2s-.9 2-2 2h-.17c.51.09 1.78.61 2.38.92 1.33-1.08 2.27-2.64 2.52-4.42.05.33.08.66.08 1 0 1.54-.51 2.96-1.36 4.11 1.08.63 2.09 1.3 2.09 1.3zM8.5 6.38c.5 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm3-2c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-2.3 5.73c-.12.11-.19.26-.19.43.02.25.23.46.49.46h1c.26 0 .47-.21.49-.46 0-.15-.07-.29-.19-.43-.08-.06-.18-.11-.3-.11h-1c-.12 0-.22.05-.3.11zM12 12.5c0-.12-.06-.28-.19-.38-.09-.07-.19-.12-.31-.12h-3c-.12 0-.22.05-.31.12-.11.1-.19.25-.19.38 0 .28.22.5.5.5h3c.28 0 .5-.22.5-.5zM8.5 15h3c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-3c-.28 0-.5.22-.5.5s.22.5.5.5zm1 2h1c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-1c-.28 0-.5.22-.5.5s.22.5.5.5z";break;case"buddicons-topics":e="M10.44 1.66c-.59-.58-1.54-.58-2.12 0L2.66 7.32c-.58.58-.58 1.53 0 2.12.6.6 1.56.56 2.12 0l5.66-5.66c.58-.58.59-1.53 0-2.12zm2.83 2.83c-.59-.59-1.54-.59-2.12 0l-5.66 5.66c-.59.58-.59 1.53 0 2.12.6.6 1.56.55 2.12 0l5.66-5.66c.58-.58.58-1.53 0-2.12zm1.06 6.72l4.18 4.18c.59.58.59 1.53 0 2.12s-1.54.59-2.12 0l-4.18-4.18-1.77 1.77c-.59.58-1.54.58-2.12 0-.59-.59-.59-1.54 0-2.13l5.66-5.65c.58-.59 1.53-.59 2.12 0 .58.58.58 1.53 0 2.12zM5 15c0-1.59-1.66-4-1.66-4S2 13.78 2 15s.6 2 1.34 2h.32C4.4 17 5 16.59 5 15z";break;case"buddicons-tracking":e="M10.98 6.78L15.5 15c-1 2-3.5 3-5.5 3s-4.5-1-5.5-3L9 6.82c-.75-1.23-2.28-1.98-4.29-2.03l2.46-2.92c1.68 1.19 2.46 2.32 2.97 3.31.56-.87 1.2-1.68 2.7-2.12l1.83 2.86c-1.42-.34-2.64.08-3.69.86zM8.17 10.4l-.93 1.69c.49.11 1 .16 1.54.16 1.35 0 2.58-.36 3.55-.95l-1.01-1.82c-.87.53-1.96.86-3.15.92zm.86 5.38c1.99 0 3.73-.74 4.74-1.86l-.98-1.76c-1 1.12-2.74 1.87-4.74 1.87-.62 0-1.21-.08-1.76-.21l-.63 1.15c.94.5 2.1.81 3.37.81z";break;case"building":e="M3 20h14V0H3v20zM7 3H5V1h2v2zm4 0H9V1h2v2zm4 0h-2V1h2v2zM7 6H5V4h2v2zm4 0H9V4h2v2zm4 0h-2V4h2v2zM7 9H5V7h2v2zm4 0H9V7h2v2zm4 0h-2V7h2v2zm-8 3H5v-2h2v2zm4 0H9v-2h2v2zm4 0h-2v-2h2v2zm-4 7H5v-6h6v6zm4-4h-2v-2h2v2zm0 3h-2v-2h2v2z";break;case"businessman":e="M7.3 6l-.03-.19c-.04-.37-.05-.73-.03-1.08.02-.36.1-.71.25-1.04.14-.32.31-.61.52-.86s.49-.46.83-.6c.34-.15.72-.23 1.13-.23.69 0 1.26.2 1.71.59s.76.87.91 1.44.18 1.16.09 1.78l-.03.19c-.01.09-.05.25-.11.48-.05.24-.12.47-.2.69-.08.21-.19.45-.34.72-.14.27-.3.49-.47.69-.18.19-.4.34-.67.48-.27.13-.55.19-.86.19s-.59-.06-.87-.19c-.26-.13-.49-.29-.67-.5-.18-.2-.34-.42-.49-.66-.15-.25-.26-.49-.34-.73-.09-.25-.16-.47-.21-.67-.06-.21-.1-.37-.12-.5zm9.2 6.24c.41.7.5 1.41.5 2.14v2.49c0 .03-.12.08-.29.13-.18.04-.42.13-.97.27-.55.12-1.1.24-1.65.34s-1.19.19-1.95.27c-.75.08-1.46.12-2.13.12-.68 0-1.39-.04-2.14-.12-.75-.07-1.4-.17-1.98-.27-.58-.11-1.08-.23-1.56-.34-.49-.11-.8-.21-1.06-.29L3 16.87v-2.49c0-.75.07-1.46.46-2.15s.81-1.25 1.5-1.68C5.66 10.12 7.19 10 8 10l1.67 1.67L9 13v3l1.02 1.08L11 16v-3l-.68-1.33L11.97 10c.77 0 2.2.07 2.9.52.71.45 1.21 1.02 1.63 1.72z";break;case"button":e="M17 5H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm1 7c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V7c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v5z";break;case"calendar-alt":e="M15 4h3v15H2V4h3V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1h4V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1zM6 3v2.5c0 .14.05.26.15.36.09.09.21.14.35.14s.26-.05.35-.14c.1-.1.15-.22.15-.36V3c0-.14-.05-.26-.15-.35-.09-.1-.21-.15-.35-.15s-.26.05-.35.15c-.1.09-.15.21-.15.35zm7 0v2.5c0 .14.05.26.14.36.1.09.22.14.36.14s.26-.05.36-.14c.09-.1.14-.22.14-.36V3c0-.14-.05-.26-.14-.35-.1-.1-.22-.15-.36-.15s-.26.05-.36.15c-.09.09-.14.21-.14.35zm4 15V8H3v10h14zM7 9v2H5V9h2zm2 0h2v2H9V9zm4 2V9h2v2h-2zm-6 1v2H5v-2h2zm2 0h2v2H9v-2zm4 2v-2h2v2h-2zm-6 1v2H5v-2h2zm4 2H9v-2h2v2zm4 0h-2v-2h2v2z";break;case"calendar":e="M15 4h3v14H2V4h3V3c0-.83.67-1.5 1.5-1.5S8 2.17 8 3v1h4V3c0-.83.67-1.5 1.5-1.5S15 2.17 15 3v1zM6 3v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5S6 2.72 6 3zm7 0v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5s-.5.22-.5.5zm4 14V8H3v9h14zM7 16V9H5v7h2zm4 0V9H9v7h2zm4 0V9h-2v7h2z";break;case"camera":e="M6 5V3H3v2h3zm12 10V4H9L7 6H2v9h16zm-7-8c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z";break;case"carrot":e="M2 18.43c1.51 1.36 11.64-4.67 13.14-7.21.72-1.22-.13-3.01-1.52-4.44C15.2 5.73 16.59 9 17.91 8.31c.6-.32.99-1.31.7-1.92-.52-1.08-2.25-1.08-3.42-1.21.83-.2 2.82-1.05 2.86-2.25.04-.92-1.13-1.97-2.05-1.86-1.21.14-1.65 1.88-2.06 3-.05-.71-.2-2.27-.98-2.95-1.04-.91-2.29-.05-2.32 1.05-.04 1.33 2.82 2.07 1.92 3.67C11.04 4.67 9.25 4.03 8.1 4.7c-.49.31-1.05.91-1.63 1.69.89.94 2.12 2.07 3.09 2.72.2.14.26.42.11.62-.14.21-.42.26-.62.12-.99-.67-2.2-1.78-3.1-2.71-.45.67-.91 1.43-1.34 2.23.85.86 1.93 1.83 2.79 2.41.2.14.25.42.11.62-.14.21-.42.26-.63.12-.85-.58-1.86-1.48-2.71-2.32C2.4 13.69 1.1 17.63 2 18.43z";break;case"cart":e="M6 13h9c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1V4H2c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H6v1zm-.5 3c.83 0 1.5.67 1.5 1.5S6.33 19 5.5 19 4 18.33 4 17.5 4.67 16 5.5 16zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z";break;case"category":e="M5 7h13v10H2V4h7l2 2H4v9h1V7z";break;case"chart-area":e="M18 18l.01-12.28c.59-.35.99-.99.99-1.72 0-1.1-.9-2-2-2s-2 .9-2 2c0 .8.47 1.48 1.14 1.8l-4.13 6.58c-.33-.24-.73-.38-1.16-.38-.84 0-1.55.51-1.85 1.24l-2.14-1.53c.09-.22.14-.46.14-.71 0-1.11-.89-2-2-2-1.1 0-2 .89-2 2 0 .73.4 1.36.98 1.71L1 18h17zM17 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM5 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm5.85 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"chart-bar":e="M18 18V2h-4v16h4zm-6 0V7H8v11h4zm-6 0v-8H2v8h4z";break;case"chart-line":e="M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z";break;case"chart-pie":e="M10 10V3c3.87 0 7 3.13 7 7h-7zM9 4v7h7c0 3.87-3.13 7-7 7s-7-3.13-7-7 3.13-7 7-7z";break;case"clipboard":e="M11.9.39l1.4 1.4c1.61.19 3.5-.74 4.61.37s.18 3 .37 4.61l1.4 1.4c.39.39.39 1.02 0 1.41l-9.19 9.2c-.4.39-1.03.39-1.42 0L1.29 11c-.39-.39-.39-1.02 0-1.42l9.2-9.19c.39-.39 1.02-.39 1.41 0zm.58 2.25l-.58.58 4.95 4.95.58-.58c-.19-.6-.2-1.22-.15-1.82.02-.31.05-.62.09-.92.12-1 .18-1.63-.17-1.98s-.98-.29-1.98-.17c-.3.04-.61.07-.92.09-.6.05-1.22.04-1.82-.15zm4.02.93c.39.39.39 1.03 0 1.42s-1.03.39-1.42 0-.39-1.03 0-1.42 1.03-.39 1.42 0zm-6.72.36l-.71.7L15.44 11l.7-.71zM8.36 5.34l-.7.71 6.36 6.36.71-.7zM6.95 6.76l-.71.7 6.37 6.37.7-.71zM5.54 8.17l-.71.71 6.36 6.36.71-.71zM4.12 9.58l-.71.71 6.37 6.37.71-.71z";break;case"clock":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 14c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6zm-.71-5.29c.07.05.14.1.23.15l-.02.02L14 13l-3.03-3.19L10 5l-.97 4.81h.01c0 .02-.01.05-.02.09S9 9.97 9 10c0 .28.1.52.29.71z";break;case"cloud-saved":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16h10c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5zm-6.3 5.9l-3.2-3.2 1.4-1.4 1.8 1.8 3.8-3.8 1.4 1.4-5.2 5.2z";break;case"cloud-upload":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z";break;case"cloud":e="M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z";break;case"columns":e="M3 15h6V5H3v10zm8 0h6V5h-6v10z";break;case"controls-back":e="M2 10l10-6v3.6L18 4v12l-6-3.6V16z";break;case"controls-forward":e="M18 10L8 16v-3.6L2 16V4l6 3.6V4z";break;case"controls-pause":e="M5 16V4h3v12H5zm7-12h3v12h-3V4z";break;case"controls-play":e="M5 4l10 6-10 6V4z";break;case"controls-repeat":e="M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z";break;case"controls-skipback":e="M11.98 7.63l6-3.6v12l-6-3.6v3.6l-8-4.8v4.8h-2v-12h2v4.8l8-4.8v3.6z";break;case"controls-skipforward":e="M8 12.4L2 16V4l6 3.6V4l8 4.8V4h2v12h-2v-4.8L8 16v-3.6z";break;case"controls-volumeoff":e="M2 7h4l5-4v14l-5-4H2V7z";break;case"controls-volumeon":e="M2 7h4l5-4v14l-5-4H2V7zm12.69-2.46C14.82 4.59 18 5.92 18 10s-3.18 5.41-3.31 5.46c-.06.03-.13.04-.19.04-.2 0-.39-.12-.46-.31-.11-.26.02-.55.27-.65.11-.05 2.69-1.15 2.69-4.54 0-3.41-2.66-4.53-2.69-4.54-.25-.1-.38-.39-.27-.65.1-.25.39-.38.65-.27zM16 10c0 2.57-2.23 3.43-2.32 3.47-.06.02-.12.03-.18.03-.2 0-.39-.12-.47-.32-.1-.26.04-.55.29-.65.07-.02 1.68-.67 1.68-2.53s-1.61-2.51-1.68-2.53c-.25-.1-.38-.39-.29-.65.1-.25.39-.39.65-.29.09.04 2.32.9 2.32 3.47z";break;case"cover-image":e="M2.2 1h15.5c.7 0 1.3.6 1.3 1.2v11.5c0 .7-.6 1.2-1.2 1.2H2.2c-.6.1-1.2-.5-1.2-1.1V2.2C1 1.6 1.6 1 2.2 1zM17 13V3H3v10h14zm-4-4s0-5 3-5v7c0 .6-.4 1-1 1H5c-.6 0-1-.4-1-1V7c2 0 3 4 3 4s1-4 3-4 3 2 3 2zM4 17h12v2H4z";break;case"dashboard":e="M3.76 16h12.48c1.1-1.37 1.76-3.11 1.76-5 0-4.42-3.58-8-8-8s-8 3.58-8 8c0 1.89.66 3.63 1.76 5zM10 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM6 6c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5.37 5.55L12 7v6c0 1.1-.9 2-2 2s-2-.9-2-2c0-.57.24-1.08.63-1.45zM4 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm12 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 3c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1z";break;case"desktop":e="M3 2h14c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1h-5v2h2c.55 0 1 .45 1 1v1H5v-1c0-.55.45-1 1-1h2v-2H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm13 9V4H4v7h12zM5 5h9L5 9V5z";break;case"dismiss":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm5 11l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z";break;case"download":e="M14.01 4v6h2V2H4v8h2.01V4h8zm-2 2v6h3l-5 6-5-6h3V6h4z";break;case"edit":e="M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z";break;case"editor-aligncenter":e="M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z";break;case"editor-alignleft":e="M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z";break;case"editor-alignright":e="M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z";break;case"editor-bold":e="M6 4v13h4.54c1.37 0 2.46-.33 3.26-1 .8-.66 1.2-1.58 1.2-2.77 0-.84-.17-1.51-.51-2.01s-.9-.85-1.67-1.03v-.09c.57-.1 1.02-.4 1.36-.9s.51-1.13.51-1.91c0-1.14-.39-1.98-1.17-2.5C12.75 4.26 11.5 4 9.78 4H6zm2.57 5.15V6.26h1.36c.73 0 1.27.11 1.61.32.34.22.51.58.51 1.07 0 .54-.16.92-.47 1.15s-.82.35-1.51.35h-1.5zm0 2.19h1.6c1.44 0 2.16.53 2.16 1.61 0 .6-.17 1.05-.51 1.34s-.86.43-1.57.43H8.57v-3.38z";break;case"editor-break":e="M16 4h2v9H7v3l-5-4 5-4v3h9V4z";break;case"editor-code":e="M9 6l-4 4 4 4-1 2-6-6 6-6zm2 8l4-4-4-4 1-2 6 6-6 6z";break;case"editor-contract":e="M15.75 6.75L18 3v14l-2.25-3.75L17 12h-4v4l1.25-1.25L18 17H2l3.75-2.25L7 16v-4H3l1.25 1.25L2 17V3l2.25 3.75L3 8h4V4L5.75 5.25 2 3h16l-3.75 2.25L13 4v4h4z";break;case"editor-customchar":e="M10 5.4c1.27 0 2.24.36 2.91 1.08.66.71 1 1.76 1 3.13 0 1.28-.23 2.37-.69 3.27-.47.89-1.27 1.52-2.22 2.12v2h6v-2h-3.69c.92-.64 1.62-1.34 2.12-2.34.49-1.01.74-2.13.74-3.35 0-1.78-.55-3.19-1.65-4.22S11.92 3.54 10 3.54s-3.43.53-4.52 1.57c-1.1 1.04-1.65 2.44-1.65 4.2 0 1.21.24 2.31.73 3.33.48 1.01 1.19 1.71 2.1 2.36H3v2h6v-2c-.98-.64-1.8-1.28-2.24-2.17-.45-.89-.67-1.96-.67-3.22 0-1.37.33-2.41 1-3.13C7.75 5.76 8.72 5.4 10 5.4z";break;case"editor-expand":e="M7 8h6v4H7zm-5 5v4h4l-1.2-1.2L7 12l-3.8 2.2M14 17h4v-4l-1.2 1.2L13 12l2.2 3.8M14 3l1.3 1.3L13 8l3.8-2.2L18 7V3M6 3H2v4l1.2-1.2L7 8 4.7 4.3";break;case"editor-help":e="M17 10c0-3.87-3.14-7-7-7-3.87 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7zm-6.3 1.48H9.14v-.43c0-.38.08-.7.24-.98s.46-.57.88-.89c.41-.29.68-.53.81-.71.14-.18.2-.39.2-.62 0-.25-.09-.44-.28-.58-.19-.13-.45-.19-.79-.19-.58 0-1.25.19-2 .57l-.64-1.28c.87-.49 1.8-.74 2.77-.74.81 0 1.45.2 1.92.58.48.39.71.91.71 1.55 0 .43-.09.8-.29 1.11-.19.32-.57.67-1.11 1.06-.38.28-.61.49-.71.63-.1.15-.15.34-.15.57v.35zm-1.47 2.74c-.18-.17-.27-.42-.27-.73 0-.33.08-.58.26-.75s.43-.25.77-.25c.32 0 .57.09.75.26s.27.42.27.74c0 .3-.09.55-.27.72-.18.18-.43.27-.75.27-.33 0-.58-.09-.76-.26z";break;case"editor-indent":e="M3 5V3h9v2H3zm10-1V3h4v1h-4zm0 3h2V5l4 3.5-4 3.5v-2h-2V7zM3 8V6h9v2H3zm2 3V9h7v2H5zm-2 3v-2h9v2H3zm10 0v-1h4v1h-4zm-4 3v-2h3v2H9z";break;case"editor-insertmore":e="M17 7V3H3v4h14zM6 11V9H3v2h3zm6 0V9H8v2h4zm5 0V9h-3v2h3zm0 6v-4H3v4h14z";break;case"editor-italic":e="M14.78 6h-2.13l-2.8 9h2.12l-.62 2H4.6l.62-2h2.14l2.8-9H8.03l.62-2h6.75z";break;case"editor-justify":e="M2 3h16v2H2V3zm0 4h16v2H2V7zm0 4h16v2H2v-2zm0 4h16v2H2v-2z";break;case"editor-kitchensink":e="M19 2v6H1V2h18zm-1 5V3H2v4h16zM5 4v2H3V4h2zm3 0v2H6V4h2zm3 0v2H9V4h2zm3 0v2h-2V4h2zm3 0v2h-2V4h2zm2 5v9H1V9h18zm-1 8v-7H2v7h16zM5 11v2H3v-2h2zm3 0v2H6v-2h2zm3 0v2H9v-2h2zm6 0v2h-5v-2h5zm-6 3v2H3v-2h8zm3 0v2h-2v-2h2zm3 0v2h-2v-2h2z";break;case"editor-ltr":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z";break;case"editor-ol-rtl":e="M15.025 8.75a1.048 1.048 0 0 1 .45-.1.507.507 0 0 1 .35.11.455.455 0 0 1 .13.36.803.803 0 0 1-.06.3 1.448 1.448 0 0 1-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76v-.7h-1.72v-.04l.51-.48a7.276 7.276 0 0 0 .7-.71 1.75 1.75 0 0 0 .3-.49 1.254 1.254 0 0 0 .1-.51.968.968 0 0 0-.16-.56 1.007 1.007 0 0 0-.44-.37 1.512 1.512 0 0 0-.65-.14 1.98 1.98 0 0 0-.51.06 1.9 1.9 0 0 0-.42.15 3.67 3.67 0 0 0-.48.35l.45.54a2.505 2.505 0 0 1 .45-.3zM16.695 15.29a1.29 1.29 0 0 0-.74-.3v-.02a1.203 1.203 0 0 0 .65-.37.973.973 0 0 0 .23-.65.81.81 0 0 0-.37-.71 1.72 1.72 0 0 0-1-.26 2.185 2.185 0 0 0-1.33.4l.4.6a1.79 1.79 0 0 1 .46-.23 1.18 1.18 0 0 1 .41-.07c.38 0 .58.15.58.46a.447.447 0 0 1-.22.43 1.543 1.543 0 0 1-.7.12h-.31v.66h.31a1.764 1.764 0 0 1 .75.12.433.433 0 0 1 .23.41.55.55 0 0 1-.2.47 1.084 1.084 0 0 1-.63.15 2.24 2.24 0 0 1-.57-.08 2.671 2.671 0 0 1-.52-.2v.74a2.923 2.923 0 0 0 1.18.22 1.948 1.948 0 0 0 1.22-.33 1.077 1.077 0 0 0 .43-.92.836.836 0 0 0-.26-.64zM15.005 4.17c.06-.05.16-.14.3-.28l-.02.42V7h.84V3h-.69l-1.29 1.03.4.51zM4.02 5h9v1h-9zM4.02 10h9v1h-9zM4.02 15h9v1h-9z";break;case"editor-ol":e="M6 7V3h-.69L4.02 4.03l.4.51.46-.37c.06-.05.16-.14.3-.28l-.02.42V7H6zm2-2h9v1H8V5zm-1.23 6.95v-.7H5.05v-.04l.51-.48c.33-.31.57-.54.7-.71.14-.17.24-.33.3-.49.07-.16.1-.33.1-.51 0-.21-.05-.4-.16-.56-.1-.16-.25-.28-.44-.37s-.41-.14-.65-.14c-.19 0-.36.02-.51.06-.15.03-.29.09-.42.15-.12.07-.29.19-.48.35l.45.54c.16-.13.31-.23.45-.3.15-.07.3-.1.45-.1.14 0 .26.03.35.11s.13.2.13.36c0 .1-.02.2-.06.3s-.1.21-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76zM8 10h9v1H8v-1zm-1.29 3.95c0-.3-.12-.54-.37-.71-.24-.17-.58-.26-1-.26-.52 0-.96.13-1.33.4l.4.6c.17-.11.32-.19.46-.23.14-.05.27-.07.41-.07.38 0 .58.15.58.46 0 .2-.07.35-.22.43s-.38.12-.7.12h-.31v.66h.31c.34 0 .59.04.75.12.15.08.23.22.23.41 0 .22-.07.37-.2.47-.14.1-.35.15-.63.15-.19 0-.38-.03-.57-.08s-.36-.12-.52-.2v.74c.34.15.74.22 1.18.22.53 0 .94-.11 1.22-.33.29-.22.43-.52.43-.92 0-.27-.09-.48-.26-.64s-.42-.26-.74-.3v-.02c.27-.06.49-.19.65-.37.15-.18.23-.39.23-.65zM8 15h9v1H8v-1z";break;case"editor-outdent":e="M7 4V3H3v1h4zm10 1V3H8v2h9zM7 7H5V5L1 8.5 5 12v-2h2V7zm10 1V6H8v2h9zm-2 3V9H8v2h7zm2 3v-2H8v2h9zM7 14v-1H3v1h4zm4 3v-2H8v2h3z";break;case"editor-paragraph":e="M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71C15.5 2.1 15.27 2 15 2z";break;case"editor-paste-text":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.44 1-1 0-.55-.45-1-1-1s-1 .45-1 1c0 .56.45 1 1 1zm5.45-1H17c.55 0 1 .45 1 1v12c0 .56-.45 1-1 1H3c-.55 0-1-.44-1-1V5c0-.55.45-1 1-1h1.55L4 4.63V7h12V4.63zM14 11V9H6v2h3v5h2v-5h3z";break;case"editor-paste-word":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm8 12V5c0-.55-.45-1-1-1h-1.54l.54.63V7H4V4.62L4.55 4H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-3-8l-2 7h-2l-1-5-1 5H6.92L5 9h2l1 5 1-5h2l1 5 1-5h2z";break;case"editor-quote":e="M9.49 13.22c0-.74-.2-1.38-.61-1.9-.62-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L7.88 4c-2.73 1.3-5.42 4.28-4.96 8.05C3.21 14.43 4.59 16 6.54 16c.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03zm8.05 0c0-.74-.2-1.38-.61-1.9-.63-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L15.93 4c-2.73 1.3-5.41 4.28-4.95 8.05.29 2.38 1.66 3.95 3.61 3.95.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03z";break;case"editor-removeformatting":e="M14.29 4.59l1.1 1.11c.41.4.61.94.61 1.47v2.12c0 .53-.2 1.07-.61 1.47l-6.63 6.63c-.4.41-.94.61-1.47.61s-1.07-.2-1.47-.61l-1.11-1.1-1.1-1.11c-.41-.4-.61-.94-.61-1.47v-2.12c0-.54.2-1.07.61-1.48l6.63-6.62c.4-.41.94-.61 1.47-.61s1.06.2 1.47.61zm-6.21 9.7l6.42-6.42c.39-.39.39-1.03 0-1.43L12.36 4.3c-.19-.19-.45-.29-.72-.29s-.52.1-.71.29l-6.42 6.42c-.39.4-.39 1.04 0 1.43l2.14 2.14c.38.38 1.04.38 1.43 0z";break;case"editor-rtl":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM19 6l-5 4 5 4V6z";break;case"editor-spellcheck":e="M15.84 2.76c.25 0 .49.04.71.11.23.07.44.16.64.25l.35-.81c-.52-.26-1.08-.39-1.69-.39-.58 0-1.09.13-1.52.37-.43.25-.76.61-.99 1.08C13.11 3.83 13 4.38 13 5c0 .99.23 1.75.7 2.28s1.15.79 2.02.79c.6 0 1.13-.09 1.6-.26v-.84c-.26.08-.51.14-.74.19-.24.05-.49.08-.74.08-.59 0-1.04-.19-1.34-.57-.32-.37-.47-.93-.47-1.66 0-.7.16-1.25.48-1.65.33-.4.77-.6 1.33-.6zM6.5 8h1.04L5.3 2H4.24L2 8h1.03l.58-1.66H5.9zM8 2v6h2.17c.67 0 1.19-.15 1.57-.46.38-.3.56-.72.56-1.26 0-.4-.1-.72-.3-.95-.19-.24-.5-.39-.93-.47v-.04c.35-.06.6-.21.78-.44.18-.24.28-.53.28-.88 0-.52-.19-.9-.56-1.14-.36-.24-.96-.36-1.79-.36H8zm.98 2.48V2.82h.85c.44 0 .77.06.97.19.21.12.31.33.31.61 0 .31-.1.53-.29.66-.18.13-.48.2-.89.2h-.95zM5.64 5.5H3.9l.54-1.56c.14-.4.25-.76.32-1.1l.15.52c.07.23.13.4.17.51zm3.34-.23h.99c.44 0 .76.08.98.23.21.15.32.38.32.69 0 .34-.11.59-.32.75s-.52.24-.93.24H8.98V5.27zM4 13l5 5 9-8-1-1-8 6-4-3z";break;case"editor-strikethrough":e="M15.82 12.25c.26 0 .5-.02.74-.07.23-.05.48-.12.73-.2v.84c-.46.17-.99.26-1.58.26-.88 0-1.54-.26-2.01-.79-.39-.44-.62-1.04-.68-1.79h-.94c.12.21.18.48.18.79 0 .54-.18.95-.55 1.26-.38.3-.9.45-1.56.45H8v-2.5H6.59l.93 2.5H6.49l-.59-1.67H3.62L3.04 13H2l.93-2.5H2v-1h1.31l.93-2.49H5.3l.92 2.49H8V7h1.77c1 0 1.41.17 1.77.41.37.24.55.62.55 1.13 0 .35-.09.64-.27.87l-.08.09h1.29c.05-.4.15-.77.31-1.1.23-.46.55-.82.98-1.06.43-.25.93-.37 1.51-.37.61 0 1.17.12 1.69.38l-.35.81c-.2-.1-.42-.18-.64-.25s-.46-.11-.71-.11c-.55 0-.99.2-1.31.59-.23.29-.38.66-.44 1.11H17v1h-2.95c.06.5.2.9.44 1.19.3.37.75.56 1.33.56zM4.44 8.96l-.18.54H5.3l-.22-.61c-.04-.11-.09-.28-.17-.51-.07-.24-.12-.41-.14-.51-.08.33-.18.69-.33 1.09zm4.53-1.09V9.5h1.19c.28-.02.49-.09.64-.18.19-.13.28-.35.28-.66 0-.28-.1-.48-.3-.61-.2-.12-.53-.18-.97-.18h-.84zm-3.33 2.64v-.01H3.91v.01h1.73zm5.28.01l-.03-.02H8.97v1.68h1.04c.4 0 .71-.08.92-.23.21-.16.31-.4.31-.74 0-.31-.11-.54-.32-.69z";break;case"editor-table":e="M18 17V3H2v14h16zM16 7H4V5h12v2zm-7 4H4V9h5v2zm7 0h-5V9h5v2zm-7 4H4v-2h5v2zm7 0h-5v-2h5v2z";break;case"editor-textcolor":e="M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z";break;case"editor-ul":e="M5.5 7C4.67 7 4 6.33 4 5.5 4 4.68 4.67 4 5.5 4 6.32 4 7 4.68 7 5.5 7 6.33 6.32 7 5.5 7zM8 5h9v1H8V5zm-2.5 7c-.83 0-1.5-.67-1.5-1.5C4 9.68 4.67 9 5.5 9c.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 10h9v1H8v-1zm-2.5 7c-.83 0-1.5-.67-1.5-1.5 0-.82.67-1.5 1.5-1.5.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 15h9v1H8v-1z";break;case"editor-underline":e="M14 5h-2v5.71c0 1.99-1.12 2.98-2.45 2.98-1.32 0-2.55-1-2.55-2.96V5H5v5.87c0 1.91 1 4.54 4.48 4.54 3.49 0 4.52-2.58 4.52-4.5V5zm0 13v-2H5v2h9z";break;case"editor-unlink":e="M17.74 2.26c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-.32.33-.69.58-1.08.77L13 10l1.69-1.64.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-.76.76L10 7l-.65-2.14c.19-.38.44-.75.77-1.07l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM2 4l8 6-6-8zm4-2l4 8-2-8H6zM2 6l8 4-8-2V6zm7.36 7.69L10 13l.74 2.35-1.38 1.39c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.39-1.38L7 10l-.69.64-1.52 1.53c-.85.84-.85 2.2 0 3.04.84.85 2.2.85 3.04 0zM18 16l-8-6 6 8zm-4 2l-4-8 2 8h2zm4-4l-8-4 8 2v2z";break;case"editor-video":e="M16 2h-3v1H7V2H4v15h3v-1h6v1h3V2zM6 3v1H5V3h1zm9 0v1h-1V3h1zm-2 1v5H7V4h6zM6 5v1H5V5h1zm9 0v1h-1V5h1zM6 7v1H5V7h1zm9 0v1h-1V7h1zM6 9v1H5V9h1zm9 0v1h-1V9h1zm-2 1v5H7v-5h6zm-7 1v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1z";break;case"ellipsis":e="M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z";break;case"email-alt":e="M19 14.5v-9c0-.83-.67-1.5-1.5-1.5H3.49c-.83 0-1.5.67-1.5 1.5v9c0 .83.67 1.5 1.5 1.5H17.5c.83 0 1.5-.67 1.5-1.5zm-1.31-9.11c.33.33.15.67-.03.84L13.6 9.95l3.9 4.06c.12.14.2.36.06.51-.13.16-.43.15-.56.05l-4.37-3.73-2.14 1.95-2.13-1.95-4.37 3.73c-.13.1-.43.11-.56-.05-.14-.15-.06-.37.06-.51l3.9-4.06-4.06-3.72c-.18-.17-.36-.51-.03-.84s.67-.17.95.07l6.24 5.04 6.25-5.04c.28-.24.62-.4.95-.07z";break;case"email-alt2":e="M18.01 11.18V2.51c0-1.19-.9-1.81-2-1.37L4 5.91c-1.1.44-2 1.77-2 2.97v8.66c0 1.2.9 1.81 2 1.37l12.01-4.77c1.1-.44 2-1.76 2-2.96zm-1.43-7.46l-6.04 9.33-6.65-4.6c-.1-.07-.36-.32-.17-.64.21-.36.65-.21.65-.21l6.3 2.32s4.83-6.34 5.11-6.7c.13-.17.43-.34.73-.13.29.2.16.49.07.63z";break;case"email":e="M3.87 4h13.25C18.37 4 19 4.59 19 5.79v8.42c0 1.19-.63 1.79-1.88 1.79H3.87c-1.25 0-1.88-.6-1.88-1.79V5.79c0-1.2.63-1.79 1.88-1.79zm6.62 8.6l6.74-5.53c.24-.2.43-.66.13-1.07-.29-.41-.82-.42-1.17-.17l-5.7 3.86L4.8 5.83c-.35-.25-.88-.24-1.17.17-.3.41-.11.87.13 1.07z";break;case"embed-audio":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 3H7v4c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.4 0 .7.1 1 .3V5h4v2zm4 3.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-generic":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3 6.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-photo":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 8H3V6h7v6zm4-1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3zm-6-4V8.5L7.2 10 6 9.2 4 11h5zM4.6 8.6c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1z";break;case"embed-post":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.6 9l-.4.3c-.4.4-.5 1.1-.2 1.6l-.8.8-1.1-1.1-1.3 1.3c-.2.2-1.6 1.3-1.8 1.1-.2-.2.9-1.6 1.1-1.8l1.3-1.3-1.1-1.1.8-.8c.5.3 1.2.3 1.6-.2l.3-.3c.5-.5.5-1.2.2-1.7L8 5l3 2.9-.8.8c-.5-.2-1.2-.2-1.6.3zm5.4 1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-video":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 6.5L8 9.1V11H3V6h5v1.8l2-1.3v4zm4 0L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"excerpt-view":e="M19 18V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6V3h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6v-6h11z";break;case"exit":e="M13 3v2h2v10h-2v2h4V3h-4zm0 8V9H5.4l4.3-4.3-1.4-1.4L1.6 10l6.7 6.7 1.4-1.4L5.4 11H13z";break;case"external":e="M9 3h8v8l-2-1V6.92l-5.6 5.59-1.41-1.41L14.08 5H10zm3 12v-3l2-2v7H3V6h8L9 8H5v7h7z";break;case"facebook-alt":e="M8.46 18h2.93v-7.3h2.45l.37-2.84h-2.82V6.04c0-.82.23-1.38 1.41-1.38h1.51V2.11c-.26-.03-1.15-.11-2.19-.11-2.18 0-3.66 1.33-3.66 3.76v2.1H6v2.84h2.46V18z";break;case"facebook":e="M2.89 2h14.23c.49 0 .88.39.88.88v14.24c0 .48-.39.88-.88.88h-4.08v-6.2h2.08l.31-2.41h-2.39V7.85c0-.7.2-1.18 1.2-1.18h1.28V4.51c-.22-.03-.98-.09-1.86-.09-1.85 0-3.11 1.12-3.11 3.19v1.78H8.46v2.41h2.09V18H2.89c-.49 0-.89-.4-.89-.88V2.88c0-.49.4-.88.89-.88z";break;case"feedback":e="M2 2h16c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm15 14V7H3v9h14zM4 8v1h3V8H4zm4 0v3h8V8H8zm-4 4v1h3v-1H4zm4 0v3h8v-3H8z";break;case"filter":e="M3 4.5v-2s3.34-1 7-1 7 1 7 1v2l-5 7.03v6.97s-1.22-.09-2.25-.59S8 16.5 8 16.5v-4.97z";break;case"flag":e="M5 18V3H3v15h2zm1-6V4c3-1 7 1 11 0v8c-3 1.27-8-1-11 0z";break;case"format-aside":e="M1 1h18v12l-6 6H1V1zm3 3v1h12V4H4zm0 4v1h12V8H4zm6 5v-1H4v1h6zm2 4l5-5h-5v5z";break;case"format-audio":e="M6.99 3.08l11.02-2c.55-.08.99.45.99 1V14.5c0 1.94-1.57 3.5-3.5 3.5S12 16.44 12 14.5c0-1.93 1.57-3.5 3.5-3.5.54 0 1.04.14 1.5.35V5.08l-9 2V16c-.24 1.7-1.74 3-3.5 3C2.57 19 1 17.44 1 15.5 1 13.57 2.57 12 4.5 12c.54 0 1.04.14 1.5.35V4.08c0-.55.44-.91.99-1z";break;case"format-chat":e="M11 6h-.82C9.07 6 8 7.2 8 8.16V10l-3 3v-3H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v3zm0 1h6c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2h-2v3l-3-3h-1c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2z";break;case"format-gallery":e="M16 4h1.96c.57 0 1.04.47 1.04 1.04v12.92c0 .57-.47 1.04-1.04 1.04H5.04C4.47 19 4 18.53 4 17.96V16H2.04C1.47 16 1 15.53 1 14.96V2.04C1 1.47 1.47 1 2.04 1h12.92c.57 0 1.04.47 1.04 1.04V4zM3 14h11V3H3v11zm5-8.5C8 4.67 7.33 4 6.5 4S5 4.67 5 5.5 5.67 7 6.5 7 8 6.33 8 5.5zm2 4.5s1-5 3-5v8H4V7c2 0 2 3 2 3s.33-2 2-2 2 2 2 2zm7 7V6h-1v8.96c0 .57-.47 1.04-1.04 1.04H6v1h11z";break;case"format-image":e="M2.25 1h15.5c.69 0 1.25.56 1.25 1.25v15.5c0 .69-.56 1.25-1.25 1.25H2.25C1.56 19 1 18.44 1 17.75V2.25C1 1.56 1.56 1 2.25 1zM17 17V3H3v14h14zM10 6c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm3 5s0-6 3-6v10c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1V8c2 0 3 4 3 4s1-3 3-3 3 2 3 2z";break;case"format-quote":e="M8.54 12.74c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45L6.65 1.94C3.45 3.46.31 6.96.85 11.37 1.19 14.16 2.8 16 5.08 16c1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38zm9.43 0c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45l-1.63-2.28c-3.2 1.52-6.34 5.02-5.8 9.43.34 2.79 1.95 4.63 4.23 4.63 1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38z";break;case"format-status":e="M10 1c7 0 9 2.91 9 6.5S17 14 10 14s-9-2.91-9-6.5S3 1 10 1zM5.5 9C6.33 9 7 8.33 7 7.5S6.33 6 5.5 6 4 6.67 4 7.5 4.67 9 5.5 9zM10 9c.83 0 1.5-.67 1.5-1.5S10.83 6 10 6s-1.5.67-1.5 1.5S9.17 9 10 9zm4.5 0c.83 0 1.5-.67 1.5-1.5S15.33 6 14.5 6 13 6.67 13 7.5 13.67 9 14.5 9zM6 14.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm-3 2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"format-video":e="M2 1h16c.55 0 1 .45 1 1v16l-18-.02V2c0-.55.45-1 1-1zm4 1L4 5h1l2-3H6zm4 0H9L7 5h1zm3 0h-1l-2 3h1zm3 0h-1l-2 3h1zm1 14V6H3v10h14zM8 7l6 4-6 4V7z";break;case"forms":e="M2 2h7v7H2V2zm9 0v7h7V2h-7zM5.5 4.5L7 3H4zM12 8V3h5v5h-5zM4.5 5.5L3 4v3zM8 4L6.5 5.5 8 7V4zM5.5 6.5L4 8h3zM9 18v-7H2v7h7zm9 0h-7v-7h7v7zM8 12v5H3v-5h5zm6.5 1.5L16 12h-3zM12 16l1.5-1.5L12 13v3zm3.5-1.5L17 16v-3zm-1 1L13 17h3z";break;case"googleplus":e="M6.73 10h5.4c.05.29.09.57.09.95 0 3.27-2.19 5.6-5.49 5.6-3.17 0-5.73-2.57-5.73-5.73 0-3.17 2.56-5.73 5.73-5.73 1.54 0 2.84.57 3.83 1.5l-1.55 1.5c-.43-.41-1.17-.89-2.28-.89-1.96 0-3.55 1.62-3.55 3.62 0 1.99 1.59 3.61 3.55 3.61 2.26 0 3.11-1.62 3.24-2.47H6.73V10zM19 10v1.64h-1.64v1.63h-1.63v-1.63h-1.64V10h1.64V8.36h1.63V10H19z";break;case"grid-view":e="M2 1h16c.55 0 1 .45 1 1v16c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1zm7.01 7.99v-6H3v6h6.01zm8 0v-6h-6v6h6zm-8 8.01v-6H3v6h6.01zm8 0v-6h-6v6h6z";break;case"groups":e="M8.03 4.46c-.29 1.28.55 3.46 1.97 3.46 1.41 0 2.25-2.18 1.96-3.46-.22-.98-1.08-1.63-1.96-1.63-.89 0-1.74.65-1.97 1.63zm-4.13.9c-.25 1.08.47 2.93 1.67 2.93s1.92-1.85 1.67-2.93c-.19-.83-.92-1.39-1.67-1.39s-1.48.56-1.67 1.39zm8.86 0c-.25 1.08.47 2.93 1.66 2.93 1.2 0 1.92-1.85 1.67-2.93-.19-.83-.92-1.39-1.67-1.39-.74 0-1.47.56-1.66 1.39zm-.59 11.43l1.25-4.3C14.2 10 12.71 8.47 10 8.47c-2.72 0-4.21 1.53-3.44 4.02l1.26 4.3C8.05 17.51 9 18 10 18c.98 0 1.94-.49 2.17-1.21zm-6.1-7.63c-.49.67-.96 1.83-.42 3.59l1.12 3.79c-.34.2-.77.31-1.2.31-.85 0-1.65-.41-1.85-1.03l-1.07-3.65c-.65-2.11.61-3.4 2.92-3.4.27 0 .54.02.79.06-.1.1-.2.22-.29.33zm8.35-.39c2.31 0 3.58 1.29 2.92 3.4l-1.07 3.65c-.2.62-1 1.03-1.85 1.03-.43 0-.86-.11-1.2-.31l1.11-3.77c.55-1.78.08-2.94-.42-3.61-.08-.11-.18-.23-.28-.33.25-.04.51-.06.79-.06z";break;case"hammer":e="M17.7 6.32l1.41 1.42-3.47 3.41-1.42-1.42.84-.82c-.32-.76-.81-1.57-1.51-2.31l-4.61 6.59-5.26 4.7c-.39.39-1.02.39-1.42 0l-1.2-1.21c-.39-.39-.39-1.02 0-1.41l10.97-9.92c-1.37-.86-3.21-1.46-5.67-1.48 2.7-.82 4.95-.93 6.58-.3 1.7.66 2.82 2.2 3.91 3.58z";break;case"heading":e="M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4";break;case"heart":e="M10 17.12c3.33-1.4 5.74-3.79 7.04-6.21 1.28-2.41 1.46-4.81.32-6.25-1.03-1.29-2.37-1.78-3.73-1.74s-2.68.63-3.63 1.46c-.95-.83-2.27-1.42-3.63-1.46s-2.7.45-3.73 1.74c-1.14 1.44-.96 3.84.34 6.25 1.28 2.42 3.69 4.81 7.02 6.21z";break;case"hidden":e="M17.2 3.3l.16.17c.39.39.39 1.02 0 1.41L4.55 17.7c-.39.39-1.03.39-1.41 0l-.17-.17c-.39-.39-.39-1.02 0-1.41l1.59-1.6c-1.57-1-2.76-2.3-3.56-3.93.81-1.65 2.03-2.98 3.64-3.99S8.04 5.09 10 5.09c1.2 0 2.33.21 3.4.6l2.38-2.39c.39-.39 1.03-.39 1.42 0zm-7.09 4.01c-.23.25-.34.54-.34.88 0 .31.12.58.31.81l1.8-1.79c-.13-.12-.28-.21-.45-.26-.11-.01-.28-.03-.49-.04-.33.03-.6.16-.83.4zM2.4 10.59c.69 1.23 1.71 2.25 3.05 3.05l1.28-1.28c-.51-.69-.77-1.47-.77-2.36 0-1.06.36-1.98 1.09-2.76-1.04.27-1.96.7-2.76 1.26-.8.58-1.43 1.27-1.89 2.09zm13.22-2.13l.96-.96c1.02.86 1.83 1.89 2.42 3.09-.81 1.65-2.03 2.98-3.64 3.99s-3.4 1.51-5.36 1.51c-.63 0-1.24-.07-1.83-.18l1.07-1.07c.25.02.5.05.76.05 1.63 0 3.13-.4 4.5-1.21s2.4-1.84 3.1-3.09c-.46-.82-1.09-1.51-1.89-2.09-.03-.01-.06-.03-.09-.04zm-5.58 5.58l4-4c-.01 1.1-.41 2.04-1.18 2.81-.78.78-1.72 1.18-2.82 1.19z";break;case"html":e="M4 16v-2H2v2H1v-5h1v2h2v-2h1v5H4zM7 16v-4H5.6v-1h3.7v1H8v4H7zM10 16v-5h1l1.4 3.4h.1L14 11h1v5h-1v-3.1h-.1l-1.1 2.5h-.6l-1.1-2.5H11V16h-1zM19 16h-3v-5h1v4h2v1zM9.4 4.2L7.1 6.5l2.3 2.3-.6 1.2-3.5-3.5L8.8 3l.6 1.2zm1.2 4.6l2.3-2.3-2.3-2.3.6-1.2 3.5 3.5-3.5 3.5-.6-1.2z";break;case"id-alt":e="M18 18H2V2h16v16zM8.05 7.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L8.95 6c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C8.23 4.1 7.95 4 7.6 4c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM16 5V4h-5v1h5zm0 2V6h-5v1h5zM7.62 8.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM16 9V8h-3v1h3zm0 2v-1h-3v1h3zm0 3v-1H4v1h12zm0 2v-1H4v1h12z";break;case"id":e="M18 16H2V4h16v12zM7.05 8.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L7.95 7c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C7.23 5.1 6.95 5 6.6 5c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM17 9V5h-5v4h5zm-10.38.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM17 11v-1h-5v1h5zm0 2v-1h-5v1h5zm0 2v-1H3v1h14z";break;case"image-crop":e="M19 12v3h-4v4h-3v-4H4V7H0V4h4V0h3v4h7l3-3 1 1-3 3v7h4zm-8-5H7v4zm-3 5h4V8z";break;case"image-filter":e="M14 5.87c0-2.2-1.79-4-4-4s-4 1.8-4 4c0 2.21 1.79 4 4 4s4-1.79 4-4zM3.24 10.66c-1.92 1.1-2.57 3.55-1.47 5.46 1.11 1.92 3.55 2.57 5.47 1.47 1.91-1.11 2.57-3.55 1.46-5.47-1.1-1.91-3.55-2.56-5.46-1.46zm9.52 6.93c1.92 1.1 4.36.45 5.47-1.46 1.1-1.92.45-4.36-1.47-5.47-1.91-1.1-4.36-.45-5.46 1.46-1.11 1.92-.45 4.36 1.46 5.47z";break;case"image-flip-horizontal":e="M19 3v14h-8v3H9v-3H1V3h8V0h2v3h8zm-8.5 14V3h-1v14h1zM7 6.5L3 10l4 3.5v-7zM17 10l-4-3.5v7z";break;case"image-flip-vertical":e="M20 9v2h-3v8H3v-8H0V9h3V1h14v8h3zM6.5 7h7L10 3zM17 9.5H3v1h14v-1zM13.5 13h-7l3.5 4z";break;case"image-rotate-left":e="M7 5H5.05c0-1.74.85-2.9 2.95-2.9V0C4.85 0 2.96 2.11 2.96 5H1.18L3.8 8.39zm13-4v14h-5v5H1V10h9V1h10zm-2 2h-6v7h3v3h3V3zm-5 9H3v6h10v-6z";break;case"image-rotate-right":e="M15.95 5H14l3.2 3.39L19.82 5h-1.78c0-2.89-1.89-5-5.04-5v2.1c2.1 0 2.95 1.16 2.95 2.9zM1 1h10v9h9v10H6v-5H1V1zm2 2v10h3v-3h3V3H3zm5 9v6h10v-6H8z";break;case"image-rotate":e="M10.25 1.02c5.1 0 8.75 4.04 8.75 9s-3.65 9-8.75 9c-3.2 0-6.02-1.59-7.68-3.99l2.59-1.52c1.1 1.5 2.86 2.51 4.84 2.51 3.3 0 6-2.79 6-6s-2.7-6-6-6c-1.97 0-3.72 1-4.82 2.49L7 8.02l-6 2v-7L2.89 4.6c1.69-2.17 4.36-3.58 7.36-3.58z";break;case"images-alt":e="M4 15v-3H2V2h12v3h2v3h2v10H6v-3H4zm7-12c-1.1 0-2 .9-2 2h4c0-1.1-.89-2-2-2zm-7 8V6H3v5h1zm7-3h4c0-1.1-.89-2-2-2-1.1 0-2 .9-2 2zm-5 6V9H5v5h1zm9-1c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2s-2 .9-2 2c0 1.11.9 2 2 2zm2 4v-2c-5 0-5-3-10-3v5h10z";break;case"images-alt2":e="M5 3h14v11h-2v2h-2v2H1V7h2V5h2V3zm13 10V4H6v9h12zm-3-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm1 6v-1H5V6H4v9h12zM7 6l10 6H7V6zm7 11v-1H3V8H2v9h12z";break;case"index-card":e="M1 3.17V18h18V4H8v-.83c0-.32-.12-.6-.35-.83S7.14 2 6.82 2H2.18c-.33 0-.6.11-.83.34-.24.23-.35.51-.35.83zM10 6v2H3V6h7zm7 0v10h-5V6h5zm-7 4v2H3v-2h7zm0 4v2H3v-2h7z";break;case"info-outline":e="M9 15h2V9H9v6zm1-10c-.5 0-1 .5-1 1s.5 1 1 1 1-.5 1-1-.5-1-1-1zm0-4c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7z";break;case"info":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1 4c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1zm0 9V9H9v6h2z";break;case"insert-after":e="M9 12h2v-2h2V8h-2V6H9v2H7v2h2v2zm1 4c3.9 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm0-12c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5zM3 19h14v-2H3v2z";break;case"insert-before":e="M11 8H9v2H7v2h2v2h2v-2h2v-2h-2V8zm-1-4c-3.9 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm0 12c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zM3 1v2h14V1H3z";break;case"insert":e="M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z";break;case"instagram":e="M12.67 10A2.67 2.67 0 1 0 10 12.67 2.68 2.68 0 0 0 12.67 10zm1.43 0A4.1 4.1 0 1 1 10 5.9a4.09 4.09 0 0 1 4.1 4.1zm1.13-4.27a1 1 0 1 1-1-1 1 1 0 0 1 1 1zM10 3.44c-1.17 0-3.67-.1-4.72.32a2.67 2.67 0 0 0-1.52 1.52c-.42 1-.32 3.55-.32 4.72s-.1 3.67.32 4.72a2.74 2.74 0 0 0 1.52 1.52c1 .42 3.55.32 4.72.32s3.67.1 4.72-.32a2.83 2.83 0 0 0 1.52-1.52c.42-1.05.32-3.55.32-4.72s.1-3.67-.32-4.72a2.74 2.74 0 0 0-1.52-1.52c-1.05-.42-3.55-.32-4.72-.32zM18 10c0 1.1 0 2.2-.05 3.3a4.84 4.84 0 0 1-1.29 3.36A4.8 4.8 0 0 1 13.3 18H6.7a4.84 4.84 0 0 1-3.36-1.29 4.84 4.84 0 0 1-1.29-3.41C2 12.2 2 11.1 2 10V6.7a4.84 4.84 0 0 1 1.34-3.36A4.8 4.8 0 0 1 6.7 2.05C7.8 2 8.9 2 10 2h3.3a4.84 4.84 0 0 1 3.36 1.29A4.8 4.8 0 0 1 18 6.7V10z";break;case"keyboard-hide":e="M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z";break;case"laptop":e="M3 3h14c.6 0 1 .4 1 1v10c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V4c0-.6.4-1 1-1zm13 2H4v8h12V5zm-3 1H5v4zm6 11v-1H1v1c0 .6.5 1 1.1 1h15.8c.6 0 1.1-.4 1.1-1z";break;case"layout":e="M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z";break;case"leftright":e="M3 10.03L9 6v8zM11 6l6 4.03L11 14V6z";break;case"lightbulb":e="M10 1c3.11 0 5.63 2.52 5.63 5.62 0 1.84-2.03 4.58-2.03 4.58-.33.44-.6 1.25-.6 1.8v1c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-1c0-.55-.27-1.36-.6-1.8 0 0-2.02-2.74-2.02-4.58C4.38 3.52 6.89 1 10 1zM7 16.87V16h6v.87c0 .62-.13 1.13-.75 1.13H12c0 .62-.4 1-1.02 1h-2c-.61 0-.98-.38-.98-1h-.25c-.62 0-.75-.51-.75-1.13z";break;case"list-view":e="M2 19h16c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V3h11zM4 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V7h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11zM4 15c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11z";break;case"location-alt":e="M13 13.14l1.17-5.94c.79-.43 1.33-1.25 1.33-2.2 0-1.38-1.12-2.5-2.5-2.5S10.5 3.62 10.5 5c0 .95.54 1.77 1.33 2.2zm0-9.64c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm1.72 4.8L18 6.97v9L13.12 18 7 15.97l-5 2v-9l5-2 4.27 1.41 1.73 7.3z";break;case"location":e="M10 2C6.69 2 4 4.69 4 8c0 2.02 1.17 3.71 2.53 4.89.43.37 1.18.96 1.85 1.83.74.97 1.41 2.01 1.62 2.71.21-.7.88-1.74 1.62-2.71.67-.87 1.42-1.46 1.85-1.83C14.83 11.71 16 10.02 16 8c0-3.31-2.69-6-6-6zm0 2.56c1.9 0 3.44 1.54 3.44 3.44S11.9 11.44 10 11.44 6.56 9.9 6.56 8 8.1 4.56 10 4.56z";break;case"lock":e="M14 9h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h1V6c0-2.21 1.79-4 4-4s4 1.79 4 4v3zm-2 0V6c0-1.1-.9-2-2-2s-2 .9-2 2v3h4zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"marker":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z";break;case"media-archive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zM8 3.5v2l1.8-1zM11 5L9.2 6 11 7V5zM8 6.5v2l1.8-1zM11 8L9.2 9l1.8 1V8zM8 9.5v2l1.8-1zm3 1.5l-1.8 1 1.8 1v-2zm-1.5 6c.83 0 1.62-.72 1.5-1.63-.05-.38-.49-1.61-.49-1.61l-1.99-1.1s-.45 1.95-.52 2.71c-.07.77.67 1.63 1.5 1.63zm0-2.39c.42 0 .76.34.76.76 0 .43-.34.77-.76.77s-.76-.34-.76-.77c0-.42.34-.76.76-.76z";break;case"media-audio":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm1 7.26V8.09c0-.11-.04-.21-.12-.29-.07-.08-.16-.11-.27-.1 0 0-3.97.71-4.25.78C8.07 8.54 8 8.8 8 9v3.37c-.2-.09-.42-.07-.6-.07-.38 0-.7.13-.96.39-.26.27-.4.58-.4.96 0 .37.14.69.4.95.26.27.58.4.96.4.34 0 .7-.04.96-.26.26-.23.64-.65.64-1.12V10.3l3-.6V12c-.67-.2-1.17.04-1.44.31-.26.26-.39.58-.39.95 0 .38.13.69.39.96.27.26.71.39 1.08.39.38 0 .7-.13.96-.39.26-.27.4-.58.4-.96z";break;case"media-code":e="M12 2l4 4v12H4V2h8zM9 13l-2-2 2-2-1-1-3 3 3 3zm3 1l3-3-3-3-1 1 2 2-2 2z";break;case"media-default":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3z";break;case"media-document":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zM5 9v1h4V9H5zm10 3V9h-5v3h5zM5 11v1h4v-1H5zm10 3v-1H5v1h10zm-3 2v-1H5v1h7z";break;case"media-interactive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm2 8V8H6v6h3l-1 2h1l1-2 1 2h1l-1-2h3zm-6-3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm5-2v2h-3V9h3zm0 3v1H7v-1h6z";break;case"media-spreadsheet":e="M12 2l4 4v12H4V2h8zm-1 4V3H5v3h6zM8 8V7H5v1h3zm3 0V7H9v1h2zm4 0V7h-3v1h3zm-7 2V9H5v1h3zm3 0V9H9v1h2zm4 0V9h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2z";break;case"media-text":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zm0 2V9H5v1h10zm0 2v-1H5v1h10zm-4 2v-1H5v1h6z";break;case"media-video":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm-1 8v-3c0-.27-.1-.51-.29-.71-.2-.19-.44-.29-.71-.29H7c-.27 0-.51.1-.71.29-.19.2-.29.44-.29.71v3c0 .27.1.51.29.71.2.19.44.29.71.29h3c.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71zm3 1v-5l-2 2v1z";break;case"megaphone":e="M18.15 5.94c.46 1.62.38 3.22-.02 4.48-.42 1.28-1.26 2.18-2.3 2.48-.16.06-.26.06-.4.06-.06.02-.12.02-.18.02-.06.02-.14.02-.22.02h-6.8l2.22 5.5c.02.14-.06.26-.14.34-.08.1-.24.16-.34.16H6.95c-.1 0-.26-.06-.34-.16-.08-.08-.16-.2-.14-.34l-1-5.5H4.25l-.02-.02c-.5.06-1.08-.18-1.54-.62s-.88-1.08-1.06-1.88c-.24-.8-.2-1.56-.02-2.2.18-.62.58-1.08 1.06-1.3l.02-.02 9-5.4c.1-.06.18-.1.24-.16.06-.04.14-.08.24-.12.16-.08.28-.12.5-.18 1.04-.3 2.24.1 3.22.98s1.84 2.24 2.26 3.86zm-2.58 5.98h-.02c.4-.1.74-.34 1.04-.7.58-.7.86-1.76.86-3.04 0-.64-.1-1.3-.28-1.98-.34-1.36-1.02-2.5-1.78-3.24s-1.68-1.1-2.46-.88c-.82.22-1.4.96-1.7 2-.32 1.04-.28 2.36.06 3.72.38 1.36 1 2.5 1.8 3.24.78.74 1.62 1.1 2.48.88zm-2.54-7.08c.22-.04.42-.02.62.04.38.16.76.48 1.02 1s.42 1.2.42 1.78c0 .3-.04.56-.12.8-.18.48-.44.84-.86.94-.34.1-.8-.06-1.14-.4s-.64-.86-.78-1.5c-.18-.62-.12-1.24.02-1.72s.48-.84.82-.94z";break;case"menu-alt":e="M3 4h14v2H3V4zm0 5h14v2H3V9zm0 5h14v2H3v-2z";break;case"menu":e="M17 7V5H3v2h14zm0 4V9H3v2h14zm0 4v-2H3v2h14z";break;case"microphone":e="M12 9V3c0-1.1-.89-2-2-2-1.12 0-2 .94-2 2v6c0 1.1.9 2 2 2 1.13 0 2-.94 2-2zm4 0c0 2.97-2.16 5.43-5 5.91V17h2c.56 0 1 .45 1 1s-.44 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1h2v-2.09C6.17 14.43 4 11.97 4 9c0-.55.45-1 1-1 .56 0 1 .45 1 1 0 2.21 1.8 4 4 4 2.21 0 4-1.79 4-4 0-.55.45-1 1-1 .56 0 1 .45 1 1z";break;case"migrate":e="M4 6h6V4H2v12.01h8V14H4V6zm2 2h6V5l6 5-6 5v-3H6V8z";break;case"minus":e="M4 9h12v2H4V9z";break;case"money":e="M0 3h20v12h-.75c0-1.79-1.46-3.25-3.25-3.25-1.31 0-2.42.79-2.94 1.91-.25-.1-.52-.16-.81-.16-.98 0-1.8.63-2.11 1.5H0V3zm8.37 3.11c-.06.15-.1.31-.11.47s-.01.33.01.5l.02.08c.01.06.02.14.05.23.02.1.06.2.1.31.03.11.09.22.15.33.07.12.15.22.23.31s.18.17.31.23c.12.06.25.09.4.09.14 0 .27-.03.39-.09s.22-.14.3-.22c.09-.09.16-.2.22-.32.07-.12.12-.23.16-.33s.07-.2.09-.31c.03-.11.04-.18.05-.22s.01-.07.01-.09c.05-.29.03-.56-.04-.82s-.21-.48-.41-.66c-.21-.18-.47-.27-.79-.27-.19 0-.36.03-.52.1-.15.07-.28.16-.38.28-.09.11-.17.25-.24.4zm4.48 6.04v-1.14c0-.33-.1-.66-.29-.98s-.45-.59-.77-.79c-.32-.21-.66-.31-1.02-.31l-1.24.84-1.28-.82c-.37 0-.72.1-1.04.3-.31.2-.56.46-.74.77-.18.32-.27.65-.27.99v1.14l.18.05c.12.04.29.08.51.14.23.05.47.1.74.15.26.05.57.09.91.13.34.03.67.05.99.05.3 0 .63-.02.98-.05.34-.04.64-.08.89-.13.25-.04.5-.1.76-.16l.5-.12c.08-.02.14-.04.19-.06zm3.15.1c1.52 0 2.75 1.23 2.75 2.75s-1.23 2.75-2.75 2.75c-.73 0-1.38-.3-1.87-.77.23-.35.37-.78.37-1.23 0-.77-.39-1.46-.99-1.86.43-.96 1.37-1.64 2.49-1.64zm-5.5 3.5c0-.96.79-1.75 1.75-1.75s1.75.79 1.75 1.75-.79 1.75-1.75 1.75-1.75-.79-1.75-1.75z";break;case"move":e="M19 10l-4 4v-3h-4v4h3l-4 4-4-4h3v-4H5v3l-4-4 4-4v3h4V5H6l4-4 4 4h-3v4h4V6z";break;case"nametag":e="M12 5V2c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-2-3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 13V7c0-1.1-.9-2-2-2h-3v.33C13 6.25 12.25 7 11.33 7H8.67C7.75 7 7 6.25 7 5.33V5H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-1-6v6H3V9h14zm-8 2c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm3 0c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm-5.96 1.21c.92.48 2.34.79 3.96.79s3.04-.31 3.96-.79c-.21 1-1.89 1.79-3.96 1.79s-3.75-.79-3.96-1.79z";break;case"networking":e="M18 13h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01h-4c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2h-5v2h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01H8c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2H4v2h1c.55 0 1 .45 1 1.01v2.98C6 17.55 5.55 18 5 18H1c-.55 0-1-.45-1-1.01v-2.98C0 13.45.45 13 1 13h1v-2c0-1.1.9-2 2-2h5V7H8c-.55 0-1-.45-1-1.01V3.01C7 2.45 7.45 2 8 2h4c.55 0 1 .45 1 1.01v2.98C13 6.55 12.55 7 12 7h-1v2h5c1.1 0 2 .9 2 2v2z";break;case"no-alt":e="M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z";break;case"no":e="M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z";break;case"palmtree":e="M8.58 2.39c.32 0 .59.05.81.14 1.25.55 1.69 2.24 1.7 3.97.59-.82 2.15-2.29 3.41-2.29s2.94.73 3.53 3.55c-1.13-.65-2.42-.94-3.65-.94-1.26 0-2.45.32-3.29.89.4-.11.86-.16 1.33-.16 1.39 0 2.9.45 3.4 1.31.68 1.16.47 3.38-.76 4.14-.14-2.1-1.69-4.12-3.47-4.12-.44 0-.88.12-1.33.38C8 10.62 7 14.56 7 19H2c0-5.53 4.21-9.65 7.68-10.79-.56-.09-1.17-.15-1.82-.15C6.1 8.06 4.05 8.5 2 10c.76-2.96 2.78-4.1 4.69-4.1 1.25 0 2.45.5 3.2 1.29-.66-2.24-2.49-2.86-4.08-2.86-.8 0-1.55.16-2.05.35.91-1.29 3.31-2.29 4.82-2.29zM13 11.5c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5.67 1.5 1.5 1.5 1.5-.67 1.5-1.5z";break;case"paperclip":e="M17.05 2.7c1.93 1.94 1.93 5.13 0 7.07L10 16.84c-1.88 1.89-4.91 1.93-6.86.15-.06-.05-.13-.09-.19-.15-1.93-1.94-1.93-5.12 0-7.07l4.94-4.95c.91-.92 2.28-1.1 3.39-.58.3.15.59.33.83.58 1.17 1.17 1.17 3.07 0 4.24l-4.93 4.95c-.39.39-1.02.39-1.41 0s-.39-1.02 0-1.41l4.93-4.95c.39-.39.39-1.02 0-1.41-.38-.39-1.02-.39-1.4 0l-4.94 4.95c-.91.92-1.1 2.29-.57 3.4.14.3.32.59.57.84s.54.43.84.57c1.11.53 2.47.35 3.39-.57l7.05-7.07c1.16-1.17 1.16-3.08 0-4.25-.56-.55-1.28-.83-2-.86-.08.01-.16.01-.24 0-.22-.03-.43-.11-.6-.27-.39-.4-.38-1.05.02-1.45.16-.16.36-.24.56-.28.14-.02.27-.01.4.02 1.19.06 2.36.52 3.27 1.43z";break;case"performance":e="M3.76 17.01h12.48C17.34 15.63 18 13.9 18 12c0-4.41-3.58-8-8-8s-8 3.59-8 8c0 1.9.66 3.63 1.76 5.01zM9 6c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zM4 8c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm4.52 3.4c.84-.83 6.51-3.5 6.51-3.5s-2.66 5.68-3.49 6.51c-.84.84-2.18.84-3.02 0-.83-.83-.83-2.18 0-3.01zM3 13c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1z";break;case"phone":e="M12.06 6l-.21-.2c-.52-.54-.43-.79.08-1.3l2.72-2.75c.81-.82.96-1.21 1.73-.48l.21.2zm.53.45l4.4-4.4c.7.94 2.34 3.47 1.53 5.34-.73 1.67-1.09 1.75-2 3-1.85 2.11-4.18 4.37-6 6.07-1.26.91-1.31 1.33-3 2-1.8.71-4.4-.89-5.38-1.56l4.4-4.4 1.18 1.62c.34.46 1.2-.06 1.8-.66 1.04-1.05 3.18-3.18 4-4.07.59-.59 1.12-1.45.66-1.8zM1.57 16.5l-.21-.21c-.68-.74-.29-.9.52-1.7l2.74-2.72c.51-.49.75-.6 1.27-.11l.2.21z";break;case"playlist-audio":e="M17 3V1H2v2h15zm0 4V5H2v2h15zm-7 4V9H2v2h8zm7.45-1.96l-6 1.12c-.16.02-.19.03-.29.13-.11.09-.16.22-.16.37v4.59c-.29-.13-.66-.14-.93-.14-.54 0-1 .19-1.38.57s-.56.84-.56 1.38c0 .53.18.99.56 1.37s.84.57 1.38.57c.49 0 .92-.16 1.29-.48s.59-.71.65-1.19v-4.95L17 11.27v3.48c-.29-.13-.56-.19-.83-.19-.54 0-1.11.19-1.49.57-.38.37-.57.83-.57 1.37s.19.99.57 1.37.84.57 1.38.57c.53 0 .99-.19 1.37-.57s.57-.83.57-1.37V9.6c0-.16-.05-.3-.16-.41-.11-.12-.24-.17-.39-.15zM8 15v-2H2v2h6zm-2 4v-2H2v2h4z";break;case"playlist-video":e="M17 3V1H2v2h15zm0 4V5H2v2h15zM6 11V9H2v2h4zm2-2h9c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1zm3 7l3.33-2L11 12v4zm-5-1v-2H2v2h4zm0 4v-2H2v2h4z";break;case"plus-alt":e="M15.8 4.2c3.2 3.21 3.2 8.39 0 11.6-3.21 3.2-8.39 3.2-11.6 0C1 12.59 1 7.41 4.2 4.2 7.41 1 12.59 1 15.8 4.2zm-4.3 11.3v-4h4v-3h-4v-4h-3v4h-4v3h4v4h3z";break;case"plus-light":e="M17 9v2h-6v6H9v-6H3V9h6V3h2v6h6z";break;case"plus":e="M17 7v3h-5v5H9v-5H4V7h5V2h3v5h5z";break;case"portfolio":e="M4 5H.78c-.37 0-.74.32-.69.84l1.56 9.99S3.5 8.47 3.86 6.7c.11-.53.61-.7.98-.7H10s-.7-2.08-.77-2.31C9.11 3.25 8.89 3 8.45 3H5.14c-.36 0-.7.23-.8.64C4.25 4.04 4 5 4 5zm4.88 0h-4s.42-1 .87-1h2.13c.48 0 1 1 1 1zM2.67 16.25c-.31.47-.76.75-1.26.75h15.73c.54 0 .92-.31 1.03-.83.44-2.19 1.68-8.44 1.68-8.44.07-.5-.3-.73-.62-.73H16V5.53c0-.16-.26-.53-.66-.53h-3.76c-.52 0-.87.58-.87.58L10 7H5.59c-.32 0-.63.19-.69.5 0 0-1.59 6.7-1.72 7.33-.07.37-.22.99-.51 1.42zM15.38 7H11s.58-1 1.13-1h2.29c.71 0 .96 1 .96 1z";break;case"post-status":e="M14 6c0 1.86-1.28 3.41-3 3.86V16c0 1-2 2-2 2V9.86c-1.72-.45-3-2-3-3.86 0-2.21 1.79-4 4-4s4 1.79 4 4zM8 5c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1z";break;case"pressthis":e="M14.76 1C16.55 1 18 2.46 18 4.25c0 1.78-1.45 3.24-3.24 3.24-.23 0-.47-.03-.7-.08L13 8.47V19H2V4h9.54c.13-2 1.52-3 3.22-3zm0 5.49C16 6.49 17 5.48 17 4.25 17 3.01 16 2 14.76 2s-2.24 1.01-2.24 2.25c0 .37.1.72.27 1.03L9.57 8.5c-.28.28-1.77 2.22-1.5 2.49.02.03.06.04.1.04.49 0 2.14-1.28 2.39-1.53l3.24-3.24c.29.14.61.23.96.23z";break;case"products":e="M17 8h1v11H2V8h1V6c0-2.76 2.24-5 5-5 .71 0 1.39.15 2 .42.61-.27 1.29-.42 2-.42 2.76 0 5 2.24 5 5v2zM5 6v2h2V6c0-1.13.39-2.16 1.02-3H8C6.35 3 5 4.35 5 6zm10 2V6c0-1.65-1.35-3-3-3h-.02c.63.84 1.02 1.87 1.02 3v2h2zm-5-4.22C9.39 4.33 9 5.12 9 6v2h2V6c0-.88-.39-1.67-1-2.22z";break;case"randomize":e="M18 6.01L14 9V7h-4l-5 8H2v-2h2l5-8h5V3zM2 5h3l1.15 2.17-1.12 1.8L4 7H2V5zm16 9.01L14 17v-2H9l-1.15-2.17 1.12-1.8L10 13h4v-2z";break;case"redo":e="M8 5h5V2l6 4-6 4V7H8c-2.2 0-4 1.8-4 4s1.8 4 4 4h5v2H8c-3.3 0-6-2.7-6-6s2.7-6 6-6z";break;case"rest-api":e="M3 4h2v12H3z";break;case"rss":e="M14.92 18H18C18 9.32 10.82 2.25 2 2.25v3.02c7.12 0 12.92 5.71 12.92 12.73zm-5.44 0h3.08C12.56 12.27 7.82 7.6 2 7.6v3.02c2 0 3.87.77 5.29 2.16C8.7 14.17 9.48 16.03 9.48 18zm-5.35-.02c1.17 0 2.13-.93 2.13-2.09 0-1.15-.96-2.09-2.13-2.09-1.18 0-2.13.94-2.13 2.09 0 1.16.95 2.09 2.13 2.09z";break;case"saved":e="M15.3 5.3l-6.8 6.8-2.8-2.8-1.4 1.4 4.2 4.2 8.2-8.2";break;case"schedule":e="M2 2h16v4H2V2zm0 10V8h4v4H2zm6-2V8h4v2H8zm6 3V8h4v5h-4zm-6 5v-6h4v6H8zm-6 0v-4h4v4H2zm12 0v-3h4v3h-4z";break;case"screenoptions":e="M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z";break;case"search":e="M12.14 4.18c1.87 1.87 2.11 4.75.72 6.89.12.1.22.21.36.31.2.16.47.36.81.59.34.24.56.39.66.47.42.31.73.57.94.78.32.32.6.65.84 1 .25.35.44.69.59 1.04.14.35.21.68.18 1-.02.32-.14.59-.36.81s-.49.34-.81.36c-.31.02-.65-.04-.99-.19-.35-.14-.7-.34-1.04-.59-.35-.24-.68-.52-1-.84-.21-.21-.47-.52-.77-.93-.1-.13-.25-.35-.47-.66-.22-.32-.4-.57-.56-.78-.16-.2-.29-.35-.44-.5-2.07 1.09-4.69.76-6.44-.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zm-1.41 6.36c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z";break;case"share-alt":e="M16.22 5.8c.47.69.29 1.62-.4 2.08-.69.47-1.62.29-2.08-.4-.16-.24-.35-.46-.55-.67-.21-.2-.43-.39-.67-.55s-.5-.3-.77-.41c-.27-.12-.55-.21-.84-.26-.59-.13-1.23-.13-1.82-.01-.29.06-.57.15-.84.27-.27.11-.53.25-.77.41s-.46.35-.66.55c-.21.21-.4.43-.56.67s-.3.5-.41.76c-.01.02-.01.03-.01.04-.1.24-.17.48-.23.72H1V6h2.66c.04-.07.07-.13.12-.2.27-.4.57-.77.91-1.11s.72-.65 1.11-.91c.4-.27.83-.51 1.28-.7s.93-.34 1.41-.43c.99-.21 2.03-.21 3.02 0 .48.09.96.24 1.41.43s.88.43 1.28.7c.39.26.77.57 1.11.91s.64.71.91 1.11zM12.5 10c0-1.38-1.12-2.5-2.5-2.5S7.5 8.62 7.5 10s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5zm-8.72 4.2c-.47-.69-.29-1.62.4-2.09.69-.46 1.62-.28 2.08.41.16.24.35.46.55.67.21.2.43.39.67.55s.5.3.77.41c.27.12.55.2.84.26.59.13 1.23.12 1.82 0 .29-.06.57-.14.84-.26.27-.11.53-.25.77-.41s.46-.35.66-.55c.21-.21.4-.44.56-.67.16-.25.3-.5.41-.76.01-.02.01-.03.01-.04.1-.24.17-.48.23-.72H19v3h-2.66c-.04.06-.07.13-.12.2-.27.4-.57.77-.91 1.11s-.72.65-1.11.91c-.4.27-.83.51-1.28.7s-.93.33-1.41.43c-.99.21-2.03.21-3.02 0-.48-.1-.96-.24-1.41-.43s-.88-.43-1.28-.7c-.39-.26-.77-.57-1.11-.91s-.64-.71-.91-1.11z";break;case"share-alt2":e="M18 8l-5 4V9.01c-2.58.06-4.88.45-7 2.99.29-3.57 2.66-5.66 7-5.94V3zM4 14h11v-2l2-1.6V16H2V5h9.43c-1.83.32-3.31 1-4.41 2H4v7z";break;case"share":e="M14.5 12c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.24.03-.46.09-.69l-4.38-2.3c-.55.61-1.33.99-2.21.99-1.66 0-3-1.34-3-3s1.34-3 3-3c.88 0 1.66.39 2.21.99l4.38-2.3c-.06-.23-.09-.45-.09-.69 0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-.88 0-1.66-.39-2.21-.99l-4.38 2.3c.06.23.09.45.09.69s-.03.46-.09.69l4.38 2.3c.55-.61 1.33-.99 2.21-.99z";break;case"shield-alt":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2z";break;case"shield":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2zm0 8h5s1-1 1-5c0 0-5-1-6-2v7H5c1 4 5 7 5 7v-7z";break;case"shortcode":e="M6 14H4V6h2V4H2v12h4M7.1 17h2.1l3.7-14h-2.1M14 4v2h2v8h-2v2h4V4";break;case"slides":e="M5 14V6h10v8H5zm-3-1V7h2v6H2zm4-6v6h8V7H6zm10 0h2v6h-2V7zm-3 2V8H7v1h6zm0 3v-2H7v2h6z";break;case"smartphone":e="M6 2h8c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H6c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm7 12V4H7v10h6zM8 5h4l-4 5V5z";break;case"smiley":e="M7 5.2c1.1 0 2 .89 2 2 0 .37-.11.71-.28 1C8.72 8.2 8 8 7 8s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.9-2 2-2zm6 0c1.11 0 2 .89 2 2 0 .37-.11.71-.28 1 0 0-.72-.2-1.72-.2s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.89-2 2-2zm-3 13.7c3.72 0 7.03-2.36 8.23-5.88l-1.32-.46C15.9 15.52 13.12 17.5 10 17.5s-5.9-1.98-6.91-4.94l-1.32.46c1.2 3.52 4.51 5.88 8.23 5.88z";break;case"sort":e="M11 7H1l5 7zm-2 7h10l-5-7z";break;case"sos":e="M18 10c0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8 8-3.58 8-8zM7.23 3.57L8.72 7.3c-.62.29-1.13.8-1.42 1.42L3.57 7.23c.71-1.64 2.02-2.95 3.66-3.66zm9.2 3.66L12.7 8.72c-.29-.62-.8-1.13-1.42-1.42l1.49-3.73c1.64.71 2.95 2.02 3.66 3.66zM10 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm-6.43.77l3.73-1.49c.29.62.8 1.13 1.42 1.42l-1.49 3.73c-1.64-.71-2.95-2.02-3.66-3.66zm9.2 3.66l-1.49-3.73c.62-.29 1.13-.8 1.42-1.42l3.73 1.49c-.71 1.64-2.02 2.95-3.66 3.66z";break;case"star-empty":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88l-4.68 2.34.87-5.15-3.18-3.56 4.65-.58z";break;case"star-filled":e="M10 1l3 6 6 .75-4.12 4.62L16 19l-6-3-6 3 1.13-6.63L1 7.75 7 7z";break;case"star-half":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88V3.24z";break;case"sticky":e="M5 3.61V1.04l8.99-.01-.01 2.58c-1.22.26-2.16 1.35-2.16 2.67v.5c.01 1.31.93 2.4 2.17 2.66l-.01 2.58h-3.41l-.01 2.57c0 .6-.47 4.41-1.06 4.41-.6 0-1.08-3.81-1.08-4.41v-2.56L5 12.02l.01-2.58c1.23-.25 2.15-1.35 2.15-2.66v-.5c0-1.31-.92-2.41-2.16-2.67z";break;case"store":e="M1 10c.41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.51.43.54 0 1.08-.14 1.49-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.63-.46 1-1.17 1-2V7l-3-7H4L0 7v1c0 .83.37 1.54 1 2zm2 8.99h5v-5h4v5h5v-7c-.37-.05-.72-.22-1-.43-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.49.44-.55 0-1.1-.14-1.51-.44-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.5.44-.54 0-1.09-.14-1.5-.44-.63-.45-1-.73-1-1.57 0 .84-.38 1.12-1 1.57-.29.21-.63.38-1 .44v6.99z";break;case"table-col-after":e="M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z";break;case"table-col-before":e="M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z";break;case"table-col-delete":e="M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z";break;case"table-row-after":e="M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z";break;case"table-row-before":e="M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z";break;case"table-row-delete":e="M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z";break;case"tablet":e="M4 2h12c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm11 14V4H5v12h10zM6 5h6l-6 5V5z";break;case"tag":e="M11 2h7v7L8 19l-7-7zm3 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z";break;case"tagcloud":e="M11 3v4H1V3h10zm8 0v4h-7V3h7zM7 8v3H1V8h6zm12 0v3H8V8h11zM9 12v2H1v-2h8zm10 0v2h-9v-2h9zM6 15v1H1v-1h5zm5 0v1H7v-1h4zm3 0v1h-2v-1h2zm5 0v1h-4v-1h4z";break;case"testimonial":e="M4 3h12c.55 0 1.02.2 1.41.59S18 4.45 18 5v7c0 .55-.2 1.02-.59 1.41S16.55 14 16 14h-1l-5 5v-5H4c-.55 0-1.02-.2-1.41-.59S2 12.55 2 12V5c0-.55.2-1.02.59-1.41S3.45 3 4 3zm11 2H4v1h11V5zm1 3H4v1h12V8zm-3 3H4v1h9v-1z";break;case"text":e="M18 3v2H2V3h16zm-6 4v2H2V7h10zm6 0v2h-4V7h4zM8 11v2H2v-2h6zm10 0v2h-8v-2h8zm-4 4v2H2v-2h12z";break;case"thumbs-down":e="M7.28 18c-.15.02-.26-.02-.41-.07-.56-.19-.83-.79-.66-1.35.17-.55 1-3.04 1-3.58 0-.53-.75-1-1.35-1h-3c-.6 0-1-.4-1-1s2-7 2-7c.17-.39.55-1 1-1H14v9h-2.14c-.41.41-3.3 4.71-3.58 5.27-.21.41-.6.68-1 .73zM18 12h-2V3h2v9z";break;case"thumbs-up":e="M12.72 2c.15-.02.26.02.41.07.56.19.83.79.66 1.35-.17.55-1 3.04-1 3.58 0 .53.75 1 1.35 1h3c.6 0 1 .4 1 1s-2 7-2 7c-.17.39-.55 1-1 1H6V8h2.14c.41-.41 3.3-4.71 3.58-5.27.21-.41.6-.68 1-.73zM2 8h2v9H2V8z";break;case"tickets-alt":e="M20 6.38L18.99 9.2v-.01c-.52-.19-1.03-.16-1.53.08s-.85.62-1.04 1.14-.16 1.03.07 1.53c.24.5.62.84 1.15 1.03v.01l-1.01 2.82-15.06-5.38.99-2.79c.52.19 1.03.16 1.53-.08.5-.23.84-.61 1.03-1.13s.16-1.03-.08-1.53c-.23-.49-.61-.83-1.13-1.02L4.93 1zm-4.97 5.69l1.37-3.76c.12-.31.1-.65-.04-.95s-.39-.53-.7-.65L8.14 3.98c-.64-.23-1.37.12-1.6.74L5.17 8.48c-.24.65.1 1.37.74 1.6l7.52 2.74c.14.05.28.08.43.08.52 0 1-.33 1.17-.83zM7.97 4.45l7.51 2.73c.19.07.34.21.43.39.08.18.09.38.02.57l-1.37 3.76c-.13.38-.58.59-.96.45L6.09 9.61c-.39-.14-.59-.57-.45-.96l1.37-3.76c.1-.29.39-.49.7-.49.09 0 .17.02.26.05zm6.82 12.14c.35.27.75.41 1.2.41H16v3H0v-2.96c.55 0 1.03-.2 1.41-.59.39-.38.59-.86.59-1.41s-.2-1.02-.59-1.41-.86-.59-1.41-.59V10h1.05l-.28.8 2.87 1.02c-.51.16-.89.62-.89 1.18v4c0 .69.56 1.25 1.25 1.25h8c.69 0 1.25-.56 1.25-1.25v-1.75l.83.3c.12.43.36.78.71 1.04zM3.25 17v-4c0-.41.34-.75.75-.75h.83l7.92 2.83V17c0 .41-.34.75-.75.75H4c-.41 0-.75-.34-.75-.75z";break;case"tickets":e="M20 5.38L18.99 8.2v-.01c-1.04-.37-2.19.18-2.57 1.22-.37 1.04.17 2.19 1.22 2.56v.01l-1.01 2.82L1.57 9.42l.99-2.79c1.04.38 2.19-.17 2.56-1.21s-.17-2.18-1.21-2.55L4.93 0zm-5.45 3.37c.74-2.08-.34-4.37-2.42-5.12-2.08-.74-4.37.35-5.11 2.42-.74 2.08.34 4.38 2.42 5.12 2.07.74 4.37-.35 5.11-2.42zm-2.56-4.74c.89.32 1.57.94 1.97 1.71-.01-.01-.02-.01-.04-.02-.33-.12-.67.09-.78.4-.1.28-.03.57.05.91.04.27.09.62-.06 1.04-.1.29-.33.58-.65 1l-.74 1.01.08-4.08.4.11c.19.04.26-.24.08-.29 0 0-.57-.15-.92-.28-.34-.12-.88-.36-.88-.36-.18-.08-.3.19-.12.27 0 0 .16.08.34.16l.01 1.63L9.2 9.18l.08-4.11c.2.06.4.11.4.11.19.04.26-.23.07-.29 0 0-.56-.15-.91-.28-.07-.02-.14-.05-.22-.08.93-.7 2.19-.94 3.37-.52zM7.4 6.19c.17-.49.44-.92.78-1.27l.04 5c-.94-.95-1.3-2.39-.82-3.73zm4.04 4.75l2.1-2.63c.37-.41.57-.77.69-1.12.05-.12.08-.24.11-.35.09.57.04 1.18-.17 1.77-.45 1.25-1.51 2.1-2.73 2.33zm-.7-3.22l.02 3.22c0 .02 0 .04.01.06-.4 0-.8-.07-1.2-.21-.33-.12-.63-.28-.9-.48zm1.24 6.08l2.1.75c.24.84 1 1.45 1.91 1.45H16v3H0v-2.96c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2V9h1.05l-.28.8 4.28 1.52C4.4 12.03 4 12.97 4 14c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.07-.02-.13-.02-.2zm-6.53-2.33l1.48.53c-.14.04-.15.27.03.28 0 0 .18.02.37.03l.56 1.54-.78 2.36-1.31-3.9c.21-.01.41-.03.41-.03.19-.02.17-.31-.02-.3 0 0-.59.05-.96.05-.07 0-.15 0-.23-.01.13-.2.28-.38.45-.55zM4.4 14c0-.52.12-1.02.32-1.46l1.71 4.7C5.23 16.65 4.4 15.42 4.4 14zm4.19-1.41l1.72.62c.07.17.12.37.12.61 0 .31-.12.66-.28 1.16l-.35 1.2zM11.6 14c0 1.33-.72 2.49-1.79 3.11l1.1-3.18c.06-.17.1-.31.14-.46l.52.19c.02.11.03.22.03.34zm-4.62 3.45l1.08-3.14 1.11 3.03c.01.02.01.04.02.05-.37.13-.77.21-1.19.21-.35 0-.69-.06-1.02-.15z";break;case"tide":e="M17 7.2V3H3v7.1c2.6-.5 4.5-1.5 6.4-2.6.2-.2.4-.3.6-.5v3c-1.9 1.1-4 2.2-7 2.8V17h14V9.9c-2.6.5-4.4 1.5-6.2 2.6-.3.1-.5.3-.8.4V10c2-1.1 4-2.2 7-2.8z";break;case"translation":e="M11 7H9.49c-.63 0-1.25.3-1.59.7L7 5H4.13l-2.39 7h1.69l.74-2H7v4H2c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v2zM6.51 9H4.49l1-2.93zM10 8h7c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2zm7.25 5v-1.08h-3.17V9.75h-1.16v2.17H9.75V13h1.28c.11.85.56 1.85 1.28 2.62-.87.36-1.89.62-2.31.62-.01.02.22.97.2 1.46.84 0 2.21-.5 3.28-1.15 1.09.65 2.48 1.15 3.34 1.15-.02-.49.2-1.44.2-1.46-.43 0-1.49-.27-2.38-.63.7-.77 1.14-1.77 1.25-2.61h1.36zm-3.81 1.93c-.5-.46-.85-1.13-1.01-1.93h2.09c-.17.8-.51 1.47-1 1.93l-.04.03s-.03-.02-.04-.03z";break;case"trash":e="M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z";break;case"twitter":e="M18.94 4.46c-.49.73-1.11 1.38-1.83 1.9.01.15.01.31.01.47 0 4.85-3.69 10.44-10.43 10.44-2.07 0-4-.61-5.63-1.65.29.03.58.05.88.05 1.72 0 3.3-.59 4.55-1.57-1.6-.03-2.95-1.09-3.42-2.55.22.04.45.07.69.07.33 0 .66-.05.96-.13-1.67-.34-2.94-1.82-2.94-3.6v-.04c.5.27 1.06.44 1.66.46-.98-.66-1.63-1.78-1.63-3.06 0-.67.18-1.3.5-1.84 1.81 2.22 4.51 3.68 7.56 3.83-.06-.27-.1-.55-.1-.84 0-2.02 1.65-3.66 3.67-3.66 1.06 0 2.01.44 2.68 1.16.83-.17 1.62-.47 2.33-.89-.28.85-.86 1.57-1.62 2.02.75-.08 1.45-.28 2.11-.57z";break;case"undo":e="M12 5H7V2L1 6l6 4V7h5c2.2 0 4 1.8 4 4s-1.8 4-4 4H7v2h5c3.3 0 6-2.7 6-6s-2.7-6-6-6z";break;case"universal-access-alt":e="M19 10c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9 9-4.03 9-9zm-9-7.4c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"universal-access":e="M10 2.6c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"unlock":e="M12 9V6c0-1.1-.9-2-2-2s-2 .9-2 2H6c0-2.21 1.79-4 4-4s4 1.79 4 4v3h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h7zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"update":e="M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z";break;case"upload":e="M8 14V8H5l5-6 5 6h-3v6H8zm-2 2v-6H4v8h12.01v-8H14v6H6z";break;case"vault":e="M18 17V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-1 0H3V3h14v14zM4.75 4h10.5c.41 0 .75.34.75.75V6h-1v3h1v2h-1v3h1v1.25c0 .41-.34.75-.75.75H4.75c-.41 0-.75-.34-.75-.75V4.75c0-.41.34-.75.75-.75zM13 10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zM9 7l.77 1.15C10.49 8.46 11 9.17 11 10c0 1.1-.9 2-2 2s-2-.9-2-2c0-.83.51-1.54 1.23-1.85z";break;case"video-alt":e="M8 5c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1 0 .57.49 1 1 1h5c.55 0 1-.45 1-1zm6 5l4-4v10l-4-4v-2zm-1 4V8c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h8c.55 0 1-.45 1-1z";break;case"video-alt2":e="M12 13V7c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2zm1-2.5l6 4.5V5l-6 4.5v1z";break;case"video-alt3":e="M19 15V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2zM8 14V6l6 4z";break;case"visibility":e="M19.7 9.4C17.7 6 14 3.9 10 3.9S2.3 6 .3 9.4L0 10l.3.6c2 3.4 5.7 5.5 9.7 5.5s7.7-2.1 9.7-5.5l.3-.6-.3-.6zM10 14.1c-3.1 0-6-1.6-7.7-4.1C3.6 8 5.7 6.6 8 6.1c-.9.6-1.5 1.7-1.5 2.9 0 1.9 1.6 3.5 3.5 3.5s3.5-1.6 3.5-3.5c0-1.2-.6-2.3-1.5-2.9 2.3.5 4.4 1.9 5.7 3.9-1.7 2.5-4.6 4.1-7.7 4.1z";break;case"warning":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z";break;case"welcome-add-page":e="M17 7V4h-2V2h-3v1H3v15h11V9h1V7h2zm-1-2v1h-2v2h-1V6h-2V5h2V3h1v2h2z";break;case"welcome-comments":e="M5 2h10c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm8.5 8.5L11 8l2.5-2.5-1-1L10 7 7.5 4.5l-1 1L9 8l-2.5 2.5 1 1L10 9l2.5 2.5z";break;case"welcome-learn-more":e="M10 10L2.54 7.02 3 18H1l.48-11.41L0 6l10-4 10 4zm0-5c-.55 0-1 .22-1 .5s.45.5 1 .5 1-.22 1-.5-.45-.5-1-.5zm0 6l5.57-2.23c.71.94 1.2 2.07 1.36 3.3-.3-.04-.61-.07-.93-.07-2.55 0-4.78 1.37-6 3.41C8.78 13.37 6.55 12 4 12c-.32 0-.63.03-.93.07.16-1.23.65-2.36 1.36-3.3z";break;case"welcome-view-site":e="M18 14V4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-8-8c2.3 0 4.4 1.14 6 3-1.6 1.86-3.7 3-6 3s-4.4-1.14-6-3c1.6-1.86 3.7-3 6-3zm2 3c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm2 8h3v1H3v-1h3v-1h8v1z";break;case"welcome-widgets-menus":e="M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z";break;case"welcome-write-blog":e="M16.89 1.2l1.41 1.41c.39.39.39 1.02 0 1.41L14 8.33V18H3V3h10.67l1.8-1.8c.4-.39 1.03-.4 1.42 0zm-5.66 8.48l5.37-5.36-1.42-1.42-5.36 5.37-.71 2.12z";break;case"wordpress-alt":e="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";break;case"wordpress":e="M20 10c0-5.52-4.48-10-10-10S0 4.48 0 10s4.48 10 10 10 10-4.48 10-10zM10 1.01c4.97 0 8.99 4.02 8.99 8.99s-4.02 8.99-8.99 8.99S1.01 14.97 1.01 10 5.03 1.01 10 1.01zM8.01 14.82L4.96 6.61c.49-.03 1.05-.08 1.05-.08.43-.05.38-1.01-.06-.99 0 0-1.29.1-2.13.1-.15 0-.33 0-.52-.01 1.44-2.17 3.9-3.6 6.7-3.6 2.09 0 3.99.79 5.41 2.09-.6-.08-1.45.35-1.45 1.42 0 .66.38 1.22.79 1.88.31.54.5 1.22.5 2.21 0 1.34-1.27 4.48-1.27 4.48l-2.71-7.5c.48-.03.75-.16.75-.16.43-.05.38-1.1-.05-1.08 0 0-1.3.11-2.14.11-.78 0-2.11-.11-2.11-.11-.43-.02-.48 1.06-.05 1.08l.84.08 1.12 3.04zm6.02 2.15L16.64 10s.67-1.69.39-3.81c.63 1.14.94 2.42.94 3.81 0 2.96-1.56 5.58-3.94 6.97zM2.68 6.77L6.5 17.25c-2.67-1.3-4.47-4.08-4.47-7.25 0-1.16.2-2.23.65-3.23zm7.45 4.53l2.29 6.25c-.75.27-1.57.42-2.42.42-.72 0-1.41-.11-2.06-.3z";break;case"yes-alt":e="M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm-.615 12.66h-1.34l-3.24-4.54 1.34-1.25 2.57 2.4 5.14-5.93 1.34.94-5.81 8.38z";break;case"yes":e="M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z"}if(!e)return null;var l=function(e,t){return["dashicon","dashicons-"+e,t].filter(Boolean).join(" ")}(n,i);return Object(o.createElement)(u,Object(z.a)({"aria-hidden":!0,role:"img",focusable:"false",className:l,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 20 20"},c),Object(o.createElement)(s,{d:e}))}}]),t}(o.Component);var ee=Object(o.forwardRef)((function(e,t){var n=e.icon,r=e.children,a=e.label,i=e.className,s=e.tooltip,c=e.shortcut,l=e.labelPosition,u=Object(P.a)(e,["icon","children","label","className","tooltip","shortcut","labelPosition"]),d=u["aria-pressed"],h=p()("components-icon-button",i,{"has-text":r}),f=s||a,v=!u.disabled&&(s||c||!!a&&(!r||Object(D.isArray)(r)&&!r.length)&&!1!==s),b=Object(o.createElement)(E,Object(z.a)({"aria-label":a},u,{className:h,ref:t}),Object(D.isString)(n)?Object(o.createElement)(J,{icon:n,ariaPressed:d}):n,r);return v&&(b=Object(o.createElement)(Q,{text:f,shortcut:c,position:l},b)),b}));var te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,r=e.className,a=void 0===r?"lockscroll":r,i=0,s=0;function c(e){var t=n.scrollingElement||n.body;e&&(s=t.scrollTop);var r=e?"add":"remove";t.classList[r](a),n.documentElement.classList[r](a),e||(t.scrollTop=s)}return function(e){function t(){return Object(b.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){0===i&&c(!0),++i}},{key:"componentWillUnmount",value:function(){1===i&&c(!1),--i}},{key:"render",value:function(){return null}}]),t}(o.Component)}(),ne=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).stopEventPropagationOutsideContainer=n.stopEventPropagationOutsideContainer.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"stopEventPropagationOutsideContainer",value:function(e){e.stopPropagation()}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(P.a)(e,["children"]);return Object(o.createElement)("div",Object(z.a)({},n,{onMouseDown:this.stopEventPropagationOutsideContainer}),t)}}]),t}(o.Component),re=Object(o.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),oe=re.Provider,ae=re.Consumer,ie=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).registerSlot=e.registerSlot.bind(Object(g.a)(e)),e.registerFill=e.registerFill.bind(Object(g.a)(e)),e.unregisterSlot=e.unregisterSlot.bind(Object(g.a)(e)),e.unregisterFill=e.unregisterFill.bind(Object(g.a)(e)),e.getSlot=e.getSlot.bind(Object(g.a)(e)),e.getFills=e.getFills.bind(Object(g.a)(e)),e.subscribe=e.subscribe.bind(Object(g.a)(e)),e.slots={},e.fills={},e.listeners=[],e.contextValue={registerSlot:e.registerSlot,unregisterSlot:e.unregisterSlot,registerFill:e.registerFill,unregisterFill:e.unregisterFill,getSlot:e.getSlot,getFills:e.getFills,subscribe:e.subscribe},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"registerSlot",value:function(e,t){var n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}},{key:"registerFill",value:function(e,t){this.fills[e]=[].concat(Object(_.a)(this.fills[e]||[]),[t]),this.forceUpdateSlot(e)}},{key:"unregisterSlot",value:function(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}},{key:"unregisterFill",value:function(e,t){this.fills[e]=Object(D.without)(this.fills[e],t),this.resetFillOccurrence(e),this.forceUpdateSlot(e)}},{key:"getSlot",value:function(e){return this.slots[e]}},{key:"getFills",value:function(e,t){return this.slots[e]!==t?[]:Object(D.sortBy)(this.fills[e],"occurrence")}},{key:"resetFillOccurrence",value:function(e){Object(D.forEach)(this.fills[e],(function(e){e.occurrence=void 0}))}},{key:"forceUpdateSlot",value:function(e){var t=this.getSlot(e);t&&t.forceUpdate()}},{key:"triggerListeners",value:function(){this.listeners.forEach((function(e){return e()}))}},{key:"subscribe",value:function(e){var t=this;return this.listeners.push(e),function(){t.listeners=Object(D.without)(t.listeners,e)}}},{key:"render",value:function(){return Object(o.createElement)(oe,{value:this.contextValue},this.props.children)}}]),t}(o.Component),se=function(e){var t=Object(o.useContext)(re),n=t.getSlot,r=t.subscribe,a=Object(o.useState)(n(e)),i=Object(h.a)(a,2),s=i[0],c=i[1];return Object(o.useEffect)((function(){return c(n(e)),r((function(){c(n(e))}))}),[e]),s},ce=ie,le=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterSlot)(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.bubblesVirtually,a=void 0!==r&&r,i=e.fillProps,s=void 0===i?{}:i,c=e.getFills,l=e.className;if(a)return Object(o.createElement)("div",{ref:this.bindNode,className:l});var u=Object(D.map)(c(n,this),(function(e){var t=e.occurrence,n=Object(D.isFunction)(e.children)?e.children(s):e.children;return o.Children.map(n,(function(e,n){if(!e||Object(D.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return Object(o.cloneElement)(e,{key:r})}))})).filter(Object(D.negate)(o.isEmptyElement));return Object(o.createElement)(o.Fragment,null,Object(D.isFunction)(t)?t(u):u)}}]),t}(o.Component),ue=function(e){return Object(o.createElement)(ae,null,(function(t){var n=t.registerSlot,r=t.unregisterSlot,a=t.getFills;return Object(o.createElement)(le,Object(z.a)({},e,{registerSlot:n,unregisterSlot:r,getFills:a}))}))},de=0;function he(e){var t=e.name,n=e.children,r=e.registerFill,a=e.unregisterFill,i=se(t),s=Object(o.useRef)({name:t,children:n});return s.current.occurrence||(s.current.occurrence=++de),Object(o.useLayoutEffect)((function(){return r(t,s.current),function(){return a(t,s.current)}}),[]),Object(o.useLayoutEffect)((function(){s.current.children=n,i&&!i.props.bubblesVirtually&&i.forceUpdate()}),[n]),Object(o.useLayoutEffect)((function(){t!==s.current.name&&(a(s.current.name,s.current),s.current.name=t,r(t,s.current))}),[t]),i&&i.node&&i.props.bubblesVirtually?(Object(D.isFunction)(n)&&(n=n(i.props.fillProps)),Object(o.createPortal)(n,i.node)):null}var fe=function(e){return Object(o.createElement)(ae,null,(function(t){var n=t.registerFill,r=t.unregisterFill;return Object(o.createElement)(he,Object(z.a)({},e,{registerFill:n,unregisterFill:r}))}))};function pe(e){var t=function(t){return Object(o.createElement)(fe,Object(z.a)({name:e},t))};t.displayName=e+"Fill";var n=function(t){return Object(o.createElement)(ue,Object(z.a)({name:e},t))};return n.displayName=e+"Slot",{Fill:t,Slot:n}}var ve=U(W((function(e){return e.children})));function be(e,t){Object(o.useEffect)((function(){var n,r=function(r){window.cancelAnimationFrame(n),t&&r&&"scroll"===r.type&&t.current.contains(r.target)||(n=window.requestAnimationFrame(e))};return window.addEventListener("resize",r),window.addEventListener("scroll",r),function(){window.removeEventListener("resize",r),window.removeEventListener("scroll",r)}}),[])}var me=function(e){var t=e.headerTitle,n=e.onClose,r=e.onKeyDown,a=e.children,i=e.className,s=e.noArrow,c=void 0!==s&&s,l=e.position,u=void 0===l?"top":l,d=(e.range,e.focusOnMount),f=void 0===d?"firstElement":d,b=e.anchorRect,m=e.getAnchorRect,y=e.expandOnMobile,g=e.animate,O=void 0===g||g,k=e.onClickOutside,_=e.onFocusOutside,D=Object(P.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","position","range","focusOnMount","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside"]),M=Object(o.useRef)(null),S=Object(o.useRef)(null),C=Object(o.useState)(!1),E=Object(h.a)(C,2),T=E[0],x=E[1],N=function(e,t,n,r){var a=Object(o.useState)(null),i=Object(h.a)(a,2),s=i[0],c=i[1],l=function(){if(e.current){var t;if(n)t=n;else if(r)t=r(e.current);else{var o=e.current.parentNode.getBoundingClientRect(),a=window.getComputedStyle(e.current.parentNode),i=a.paddingTop,l=a.paddingBottom,u=parseInt(i,10),d=parseInt(l,10);t={x:o.left,y:o.top+u,width:o.width,height:o.height-u-d,left:o.left,right:o.right,top:o.top+u,bottom:o.bottom-d}}!I()(t,s)&&c(t)}};return Object(o.useEffect)(l,[n,r]),Object(o.useEffect)((function(){if(!n){var e=setInterval(l,500);return function(){return clearInterval(e)}}}),[n]),be(l,t),s}(M,S,b,m),R=function(e){var t=Object(o.useState)(null),n=Object(h.a)(t,2),r=n[0],a=n[1];return Object(o.useEffect)((function(){var t=e.current.getBoundingClientRect();a({width:t.width,height:t.height})}),[]),r}(S);Object(o.useEffect)((function(){R&&x(!0)}),[R]);var L=function(e,t,n,r,a){var i=Object(o.useState)({popoverLeft:null,popoverTop:null,yAxis:"top",xAxis:"center",contentHeight:null,contentWidth:null,isMobile:!1}),s=Object(h.a)(i,2),c=s[0],l=s[1],u=function(){if(e&&t){var o=F(e,t,n,r);c.yAxis===o.yAxis&&c.xAxis===o.xAxis&&c.popoverLeft===o.popoverLeft&&c.popoverTop===o.popoverTop&&c.contentHeight===o.contentHeight&&c.contentWidth===o.contentWidth&&c.isMobile===o.isMobile||l(o)}};return Object(o.useEffect)(u,[e,t]),be(u,a),c}(N,R,u,y,S);!function(e,t){Object(o.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=j.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(f,S);var A=function(e){e.keyCode===w.ESCAPE&&n&&(e.stopPropagation(),n()),r&&r(e)};var V={top:"bottom",bottom:"top"}[L.yAxis]||"middle",B={left:"right",right:"left"}[L.xAxis]||"center",K=p()("components-popover",i,"is-"+L.yAxis,"is-"+L.xAxis,{"is-mobile":L.isMobile,"is-without-arrow":c||"center"===L.xAxis&&"middle"===L.yAxis}),W=Object(o.createElement)(Y,{onFocusOutside:function(e){if(_)_(e);else if(k){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),H()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),k(t)}else n&&n()}},Object(o.createElement)(v,{type:O&&T?"appear":null,options:{origin:V+" "+B}},(function(e){var r=e.className;return Object(o.createElement)(ne,Object(z.a)({className:p()(K,r),style:{top:!L.isMobile&&L.popoverTop?L.popoverTop+"px":void 0,left:!L.isMobile&&L.popoverLeft?L.popoverLeft+"px":void 0,visibility:R?void 0:"hidden"}},D,{onKeyDown:A}),L.isMobile&&Object(o.createElement)("div",{className:"components-popover__header"},Object(o.createElement)("span",{className:"components-popover__header-title"},t),Object(o.createElement)(ee,{className:"components-popover__close",icon:"no-alt",onClick:n})),Object(o.createElement)("div",{ref:S,className:"components-popover__content",style:{maxHeight:!L.isMobile&&L.contentHeight?L.contentHeight+"px":void 0,maxWidth:!L.isMobile&&L.contentWidth?L.contentWidth+"px":void 0},tabIndex:"-1"},a))})));return f&&(W=Object(o.createElement)(ve,null,W)),Object(o.createElement)(ae,null,(function(e){var t=e.getSlot;return t&&t("Popover")&&(W=Object(o.createElement)(fe,{name:"Popover"},W)),Object(o.createElement)("span",{ref:M},W,L.isMobile&&y&&Object(o.createElement)(te,null))}))};me.Slot=function(){return Object(o.createElement)(ue,{bubblesVirtually:!0,name:"Popover"})};var ye=me,ge=n(46),Oe=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).debouncedSpeak=Object(D.debounce)(e.speak.bind(Object(g.a)(e)),500),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"speak",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"polite";Object(ge.speak)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(o.createElement)(e,Object(z.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),n}(o.Component)}),"withSpokenMessages");function ke(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=[],o=0;o0,m=b?"components-autocomplete-listbox-".concat(r):null,y=b?"components-autocomplete-item-".concat(r,"-").concat(h):null;return Object(o.createElement)(o.Fragment,null,n({isExpanded:b,listBoxId:m,activeId:y,onKeyDown:this.handleKeyDown}),b&&a&&Object(o.createElement)(ye,{focusOnMount:!1,onClose:this.reset,position:"top right",className:"components-autocomplete__popover",getAnchorRect:_e},Object(o.createElement)("div",{id:m,role:"listbox",className:"components-autocomplete__results"},b&&Object(D.map)(u,(function(t,n){return Object(o.createElement)(E,{key:t.key,id:"components-autocomplete-item-".concat(r,"-").concat(t.key),role:"option","aria-selected":n===l,disabled:t.isDisabled,className:p()("components-autocomplete__result",v,{"is-selected":n===l}),onClick:function(){return e.select(t)}},t.label)})))))}}]),t}(o.Component),we=Object(S.compose)([Oe,S.withInstanceId])(De);function Me(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,a=e.help,i=e.className,s=e.children;return Object(o.createElement)("div",{className:p()("components-base-control",i)},Object(o.createElement)("div",{className:"components-base-control__field"},n&&t&&Object(o.createElement)("label",{className:p()("components-base-control__label",{"screen-reader-text":r}),htmlFor:t},n),n&&!t&&Object(o.createElement)(Me.VisualLabel,null,n),s),!!a&&Object(o.createElement)("p",{id:t+"__help",className:"components-base-control__help"},a))}Me.VisualLabel=function(e){var t=e.className,n=e.children;return t=p()("components-base-control__label",t),Object(o.createElement)("span",{className:t},n)};var Se=Me;var Ce=function(e){var t=e.className,n=Object(P.a)(e,["className"]),r=p()("components-button-group",t);return Object(o.createElement)("div",Object(z.a)({},n,{className:r,role:"group"}))};var je=Object(S.withInstanceId)((function(e){var t=e.label,n=e.className,r=e.heading,a=e.checked,i=e.help,s=e.instanceId,c=e.onChange,l=Object(P.a)(e,["label","className","heading","checked","help","instanceId","onChange"]),u="inspector-checkbox-control-".concat(s);return Object(o.createElement)(Se,{label:r,id:u,help:i,className:n},Object(o.createElement)("span",{className:"components-checkbox-control__input-container"},Object(o.createElement)("input",Object(z.a)({id:u,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return c(e.target.checked)},checked:a,"aria-describedby":i?u+"__help":void 0},l)),a?Object(o.createElement)(J,{icon:"yes",className:"components-checkbox-control__checked",role:"presentation"}):null),Object(o.createElement)("label",{className:"components-checkbox-control__label",htmlFor:u},t))})),Pe=n(232),Ee=n.n(Pe),ze=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(g.a)(e)),e.onCopy=e.onCopy.bind(Object(g.a)(e)),e.getText=e.getText.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){var e=this.container,t=this.getText,n=this.onCopy,r=e.firstChild;this.clipboard=new Ee.a(r,{text:t,container:e}),this.clipboard.on("success",n)}},{key:"componentWillUnmount",value:function(){this.clipboard.destroy(),delete this.clipboard,clearTimeout(this.onCopyTimeout)}},{key:"bindContainer",value:function(e){this.container=e}},{key:"onCopy",value:function(e){e.clearSelection();var t=this.props,n=t.onCopy,r=t.onFinishCopy;n&&(n(),r&&(clearTimeout(this.onCopyTimeout),this.onCopyTimeout=setTimeout(r,4e3)))}},{key:"getText",value:function(){var e=this.props.text;return"function"==typeof e&&(e=e()),e}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=(e.onCopy,e.onFinishCopy,e.text,Object(P.a)(e,["className","children","onCopy","onFinishCopy","text"])),a=r.icon,i=p()("components-clipboard-button",t),s=a?ee:E;return Object(o.createElement)("span",{ref:this.bindContainer,onCopy:function(e){e.target.focus()}},Object(o.createElement)(s,Object(z.a)({},r,{className:i}),n))}}]),t}(o.Component),Te=function(e){var t=e.className,n=e.colorValue,r=Object(P.a)(e,["className","colorValue"]);return Object(o.createElement)("span",Object(z.a)({className:p()("component-color-indicator",t),style:{background:n}},r))},Ie=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(g.a)(e)),e.close=e.close.bind(Object(g.a)(e)),e.closeIfFocusOutside=e.closeIfFocusOutside.bind(Object(g.a)(e)),e.containerRef=Object(o.createRef)(),e.state={isOpen:!1},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){var e=this.state.isOpen,t=this.props.onToggle;e&&t&&t(!1)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.isOpen,r=this.props.onToggle;t.isOpen!==n&&r&&r(n)}},{key:"toggle",value:function(){this.setState((function(e){return{isOpen:!e.isOpen}}))}},{key:"closeIfFocusOutside",value:function(){this.containerRef.current.contains(document.activeElement)||document.activeElement.closest('[role="dialog"]')||this.close()}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"render",value:function(){var e=this.state.isOpen,t=this.props,n=t.renderContent,r=t.renderToggle,a=t.position,i=void 0===a?"bottom":a,s=t.className,c=t.contentClassName,l=t.expandOnMobile,u=t.headerTitle,d=t.focusOnMount,h=t.popoverProps,f={isOpen:e,onToggle:this.toggle,onClose:this.close};return Object(o.createElement)("div",{className:s,ref:this.containerRef},r(f),e&&Object(o.createElement)(ye,Object(z.a)({className:c,position:i,onClose:this.close,onFocusOutside:this.closeIfFocusOutside,expandOnMobile:l,headerTitle:u,focusOnMount:d},h),n(f)))}}]),t}(o.Component),xe=n(49),He=n.n(xe);function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?He()(e.hex):He()(e),r=n.toHsl();r.h=Math.round(r.h),r.s=Math.round(100*r.s),r.l=Math.round(100*r.l);var o=n.toHsv();o.h=Math.round(o.h),o.s=Math.round(100*o.s),o.v=Math.round(100*o.v);var a=n.toRgb(),i=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{color:n,hex:"000000"===i&&0===a.a?"transparent":"#".concat(i),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:a,source:e.source}}function Re(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,a=n.width,i=n.height,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,c="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(r+window.pageXOffset),u=c-(o+window.pageYOffset);return l<0?l=0:l>a?l=a:u<0?u=0:u>i&&(u=i),{top:u,left:l,width:a,height:i}}function Le(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&He()(e).isValid()}var Fe=n(233),Ae=n.n(Fe);n(284);var Ve=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindKeyTarget=e.bindKeyTarget.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.keyTarget,n=void 0===t?document:t;this.mousetrap=new Ae.a(n),Object(D.forEach)(this.props.shortcuts,(function(t,n){var r=e.props,o=r.bindGlobal,a=r.eventName,i=o?"bindGlobal":"bind";e.mousetrap[i](n,t,a)}))}},{key:"componentWillUnmount",value:function(){this.mousetrap.reset()}},{key:"bindKeyTarget",value:function(e){this.keyTarget=e}},{key:"render",value:function(){var e=this.props.children;return o.Children.count(e)?Object(o.createElement)("div",{ref:this.bindKeyTarget},e):null}}]),t}(o.Component),Be=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).container=Object(o.createRef)(),e.increase=e.increase.bind(Object(g.a)(e)),e.decrease=e.decrease.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?D.noop:r;e=parseInt(100*e,10);var a={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?D.noop:r,a=parseInt(100*n.a,10)-parseInt(100*e,10),i={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:a/100,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.left,a=r.width,i=o<0?0:Math.round(100*o/a)/100;return t.hsl.a!==i?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:i,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==w.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.rgb,n="".concat(t.r,",").concat(t.g,",").concat(t.b),r={background:"linear-gradient(to right, rgba(".concat(n,", 0) 0%, rgba(").concat(n,", 1) 100%)")},a={left:"".concat(100*t.a,"%")},i={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(.1)},"shift+right":function(){return e.increase(.1)},pageup:function(){return e.increase(.1)},end:function(){return e.increase(1)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(.1)},"shift+left":function(){return e.decrease(.1)},pagedown:function(){return e.decrease(.1)},home:function(){return e.decrease(1)}};return Object(o.createElement)(Ve,{shortcuts:i},Object(o.createElement)("div",{className:"components-color-picker__alpha"},Object(o.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(o.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(o.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(M.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:a,onKeyDown:this.preventKeyEvents}))))}}]),t}(o.Component),Ke=Object(S.pure)(Be),We=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).container=Object(o.createRef)(),e.increase=e.increase.bind(Object(g.a)(e)),e.decrease=e.decrease.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?D.noop:r,a={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?D.noop:r,a={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.left,a=r.width,i=o>=a?359:360*(100*o/a)/100;return t.hsl.h!==i?{h:i,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==w.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsl,r=void 0===n?{}:n,a=t.instanceId,i={left:"".concat(100*r.h/360,"%")},s={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(10)},"shift+right":function(){return e.increase(10)},pageup:function(){return e.increase(10)},end:function(){return e.increase(359)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(10)},"shift+left":function(){return e.decrease(10)},pagedown:function(){return e.decrease(10)},home:function(){return e.decrease(359)}};return Object(o.createElement)(Ve,{shortcuts:s},Object(o.createElement)("div",{className:"components-color-picker__hue"},Object(o.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(o.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(o.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.h,"aria-orientation":"horizontal","aria-label":Object(M.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(a),className:"components-color-picker__hue-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(o.createElement)("p",{className:"components-color-picker__hue-description screen-reader-text",id:"components-color-picker__hue-description-".concat(a)},Object(M.__)("Move the arrow left or right to change hue.")))))}}]),t}(o.Component),Ue=Object(S.compose)(S.pure,S.withInstanceId)(We);var $e=Object(S.withInstanceId)((function(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,i=e.className,s=e.instanceId,c=e.onChange,l=e.type,u=void 0===l?"text":l,d=Object(P.a)(e,["label","hideLabelFromVision","value","help","className","instanceId","onChange","type"]),h="inspector-text-control-".concat(s);return Object(o.createElement)(Se,{label:t,hideLabelFromVision:n,id:h,help:a,className:i},Object(o.createElement)("input",Object(z.a)({className:"components-text-control__input",type:u,id:h,value:r,onChange:function(e){return c(e.target.value)},"aria-describedby":a?h+"__help":void 0},d)))})),qe=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).handleBlur=e.handleBlur.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleBlur",value:function(){var e=this.props,t=e.value,n=e.valueKey;(0,e.onChange)({source:e.source,state:"commit",value:t,valueKey:n})}},{key:"handleChange",value:function(e){var t=this.props,n=t.valueKey,r=t.onChange,o=t.source;e.length>4&&Le(e)?r({source:o,state:"commit",value:e,valueKey:n}):r({source:o,state:"draft",value:e,valueKey:n})}},{key:"handleKeyDown",value:function(e){var t=e.keyCode;if(t===w.ENTER||t===w.UP||t===w.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,a=Object(P.a)(t,["label","value"]);return Object(o.createElement)($e,Object(z.a)({className:"components-color-picker__inputs-field",label:n,value:r,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(D.omit)(a,["onChange","valueKey","source"])))}}]),t}(o.Component),Ge=Object(S.pure)(ee),Ye=function(e){function t(e){var n,r=e.hsl;Object(b.a)(this,t),n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments));var o=1===r.a?"hex":"rgb";return n.state={view:o},n.toggleViews=n.toggleViews.bind(Object(g.a)(n)),n.resetDraftValues=n.resetDraftValues.bind(Object(g.a)(n)),n.handleChange=n.handleChange.bind(Object(g.a)(n)),n.normalizeValue=n.normalizeValue.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(ge.speak)(Object(M.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(ge.speak)(Object(M.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(ge.speak)(Object(M.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(ge.speak)(Object(M.__)("RGB mode active"))))}},{key:"resetDraftValues",value:function(){return this.props.onChange({state:"reset"})}},{key:"normalizeValue",value:function(e,t){return"a"!==e?t:t>0?0:t>1?1:Math.round(100*t)/100}},{key:"handleChange",value:function(e){var t=e.source,n=e.state,r=e.value,o=e.valueKey;this.props.onChange({source:t,state:n,valueKey:o,value:this.normalizeValue(o,r)})}},{key:"renderFields",value:function(){var e=this.props.disableAlpha,t=void 0!==e&&e;return"hex"===this.state.view?Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:Object(M.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange})):"rgb"===this.state.view?Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"screen-reader-text"},Object(M.__)("Color value in RGB")),Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(o.createElement)(qe,{source:this.state.view,label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(o.createElement)(qe,{source:this.state.view,label:"b",valueKey:"b",value:this.props.rgb.b,onChange:this.handleChange,type:"number",min:"0",max:"255"}),t?null:Object(o.createElement)(qe,{source:this.state.view,label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"}))):"hsl"===this.state.view?Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"screen-reader-text"},Object(M.__)("Color value in HSL")),Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(o.createElement)(qe,{source:this.state.view,label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(o.createElement)(qe,{source:this.state.view,label:"l",valueKey:"l",value:this.props.hsl.l,onChange:this.handleChange,type:"number",min:"0",max:"100"}),t?null:Object(o.createElement)(qe,{source:this.state.view,label:"a",valueKey:"a",value:this.props.hsl.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"}))):void 0}},{key:"render",value:function(){return Object(o.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(o.createElement)("div",{className:"components-color-picker__inputs-toggle"},Object(o.createElement)(Ge,{icon:"arrow-down-alt2",label:Object(M.__)("Change color format"),onClick:this.toggleViews})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(o.Component),Ze=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).throttle=Object(D.throttle)((function(e,t,n){e(t,n)}),50),n.container=Object(o.createRef)(),n.saturate=n.saturate.bind(Object(g.a)(n)),n.brighten=n.brighten.bind(Object(g.a)(n)),n.handleChange=n.handleChange.bind(Object(g.a)(n)),n.handleMouseDown=n.handleMouseDown.bind(Object(g.a)(n)),n.handleMouseUp=n.handleMouseUp.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"saturate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?D.noop:r,a=Object(D.clamp)(n.s+Math.round(100*e),0,100),i={h:n.h,s:a,v:n.v,a:n.a,source:"rgb"};o(i)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?D.noop:r,a=Object(D.clamp)(n.v+Math.round(100*e),0,100),i={h:n.h,s:n.s,v:a,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.top,a=r.left,i=r.width,s=r.height,c=a<0?0:100*a/i,l=o>=s?0:-100*o/s+100;return l<1&&(l=0),{h:t.hsl.h,s:c,v:l,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==w.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsv,r=t.hsl,a=t.instanceId,i={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},s={up:function(){return e.brighten()},"shift+up":function(){return e.brighten(.1)},pageup:function(){return e.brighten(1)},down:function(){return e.brighten(-.01)},"shift+down":function(){return e.brighten(-.1)},pagedown:function(){return e.brighten(-1)},right:function(){return e.saturate()},"shift+right":function(){return e.saturate(.1)},end:function(){return e.saturate(1)},left:function(){return e.saturate(-.01)},"shift+left":function(){return e.saturate(-.1)},home:function(){return e.saturate(-1)}};return Object(o.createElement)(Ve,{shortcuts:s},Object(o.createElement)("div",{style:{background:"hsl(".concat(r.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(o.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(o.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(o.createElement)("button",{"aria-label":Object(M.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(a),className:"components-color-picker__saturation-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(o.createElement)("div",{className:"screen-reader-text",id:"color-picker-saturation-".concat(a)},Object(M.__)("Use your arrow keys to change the base color. Move up to lighten the color, down to darken, left to decrease saturation, and right to increase saturation."))))}}]),t}(o.Component),Xe=Object(S.compose)(S.pure,S.withInstanceId)(Ze),Qe=function(e){return String(e).toLowerCase()},Je=function(e){return e.hex?Le(e.hex):(t=e,n=0,r=0,Object(D.each)(["r","g","b","a","h","s","l","v"],(function(e){t[e]&&(n+=1,isNaN(t[e])||(r+=1))})),n===r&&t);var t,n,r},et=function(e,t){var n=t.source,o=t.valueKey,a=t.value;return"hex"===n?Object(d.a)({source:n},n,a):Object(r.a)({source:n},Object(r.a)({},e[n],Object(d.a)({},o,a)))},tt=function(e){function t(e){var n,o=e.color,a=void 0===o?"0071a1":o;Object(b.a)(this,t),n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments));var i=Ne(a);return n.state=Object(r.a)({},i,{draftHex:Qe(i.hex),draftRgb:i.rgb,draftHsl:i.hsl}),n.commitValues=n.commitValues.bind(Object(g.a)(n)),n.setDraftValues=n.setDraftValues.bind(Object(g.a)(n)),n.resetDraftValues=n.resetDraftValues.bind(Object(g.a)(n)),n.handleInputChange=n.handleInputChange.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"commitValues",value:function(e){var t=this.props,n=t.oldHue,o=t.onChangeComplete,a=void 0===o?D.noop:o;if(Je(e)){var i=Ne(e,e.h||n);this.setState(Object(r.a)({},i,{draftHex:Qe(i.hex),draftHsl:i.hsl,draftRgb:i.rgb}),Object(D.debounce)(Object(D.partial)(a,i),100))}}},{key:"resetDraftValues",value:function(){this.setState({draftHex:this.state.hex,draftHsl:this.state.hsl,draftRgb:this.state.rgb})}},{key:"setDraftValues",value:function(e){switch(e.source){case"hex":this.setState({draftHex:Qe(e.hex)});break;case"rgb":this.setState({draftRgb:e});break;case"hsl":this.setState({draftHsl:e})}}},{key:"handleInputChange",value:function(e){switch(e.state){case"reset":this.resetDraftValues();break;case"commit":var t=et(this.state,e);(function(e){return"hex"===e.source&&!e.hex||(!("hsl"!==e.source||e.h&&e.s&&e.l)||!("rgb"!==e.source||e.r&&e.g&&e.b||e.h&&e.s&&e.v&&e.a||e.h&&e.s&&e.l&&e.a))})(t)||this.commitValues(t);break;case"draft":this.setDraftValues(et(this.state,e))}}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.disableAlpha,r=this.state,a=r.color,i=r.hsl,s=r.hsv,c=r.rgb,l=r.draftHex,u=r.draftHsl,d=r.draftRgb,h=p()(t,{"components-color-picker":!0,"is-alpha-disabled":n,"is-alpha-enabled":!n});return Object(o.createElement)("div",{className:h},Object(o.createElement)("div",{className:"components-color-picker__saturation"},Object(o.createElement)(Xe,{hsl:i,hsv:s,onChange:this.commitValues})),Object(o.createElement)("div",{className:"components-color-picker__body"},Object(o.createElement)("div",{className:"components-color-picker__controls"},Object(o.createElement)("div",{className:"components-color-picker__swatch"},Object(o.createElement)("div",{className:"components-color-picker__active",style:{backgroundColor:a&&a.toRgbString()}})),Object(o.createElement)("div",{className:"components-color-picker__toggles"},Object(o.createElement)(Ue,{hsl:i,onChange:this.commitValues}),n?null:Object(o.createElement)(Ke,{rgb:c,hsl:i,onChange:this.commitValues}))),Object(o.createElement)(Ye,{rgb:d,hsl:u,hex:l,onChange:this.handleInputChange,disableAlpha:n})))}}]),t}(o.Component);function nt(e){var t=e.colors,n=e.disableCustomColors,r=void 0!==n&&n,a=e.value,i=e.onChange,s=e.className,c=e.clearable,l=void 0===c||c;function u(e){return function(){return i(a===e?void 0:e)}}var d=Object(M.__)("Custom color picker"),h=p()("components-color-palette",s);return Object(o.createElement)("div",{className:h},Object(D.map)(t,(function(e){var t=e.color,n=e.name,r={color:t},i=p()("components-color-palette__item",{"is-active":a===t});return Object(o.createElement)("div",{key:t,className:"components-color-palette__item-wrapper"},Object(o.createElement)(Q,{text:n||Object(M.sprintf)(Object(M.__)("Color code: %s"),t)},Object(o.createElement)("button",{type:"button",className:i,style:r,onClick:u(t),"aria-label":n?Object(M.sprintf)(Object(M.__)("Color: %s"),n):Object(M.sprintf)(Object(M.__)("Color code: %s"),t),"aria-pressed":a===t})),a===t&&Object(o.createElement)(J,{icon:"saved"}))})),Object(o.createElement)("div",{className:"components-color-palette__custom-clear-wrapper"},!r&&Object(o.createElement)(Ie,{className:"components-color-palette__custom-color",contentClassName:"components-color-palette__picker",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(o.createElement)(E,{"aria-expanded":t,onClick:n,"aria-label":d,isLink:!0},Object(M.__)("Custom Color"))},renderContent:function(){return Object(o.createElement)(tt,{color:a,onChangeComplete:function(e){return i(e.hex)},disableAlpha:!0})}}),!!l&&Object(o.createElement)(E,{className:"components-color-palette__clear",type:"button",onClick:function(){return i(void 0)},isSmall:!0,isDefault:!0},Object(M.__)("Clear"))))}n(285);var rt=n(29),ot=n.n(rt),at=n(234),it=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChangeMoment=e.onChangeMoment.bind(Object(g.a)(e)),e.nodeRef=Object(o.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"keepFocusInside",value:function(){if(this.nodeRef.current&&(!document.activeElement||!this.nodeRef.current.contains(document.activeElement))){var e=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!e)return;e.focus()}}},{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,r=t.onChange,o=n?ot()(n):ot()(),a={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(a).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?ot()(e):ot()()}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(o.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(o.createElement)(at.DayPickerSingleDateController,{date:r,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(r?r.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",isRTL:"rtl"===document.documentElement.dir,isOutsideRange:function(e){return n&&n(e.toDate())},onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),t}(o.Component),st=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={day:"",month:"",year:"",hours:"",minutes:"",am:!0,date:null},e.changeDate=e.changeDate.bind(Object(g.a)(e)),e.updateMonth=e.updateMonth.bind(Object(g.a)(e)),e.onChangeMonth=e.onChangeMonth.bind(Object(g.a)(e)),e.updateDay=e.updateDay.bind(Object(g.a)(e)),e.onChangeDay=e.onChangeDay.bind(Object(g.a)(e)),e.updateYear=e.updateYear.bind(Object(g.a)(e)),e.onChangeYear=e.onChangeYear.bind(Object(g.a)(e)),e.updateHours=e.updateHours.bind(Object(g.a)(e)),e.updateMinutes=e.updateMinutes.bind(Object(g.a)(e)),e.onChangeHours=e.onChangeHours.bind(Object(g.a)(e)),e.onChangeMinutes=e.onChangeMinutes.bind(Object(g.a)(e)),e.renderMonth=e.renderMonth.bind(Object(g.a)(e)),e.renderDay=e.renderDay.bind(Object(g.a)(e)),e.renderDayMonthFormat=e.renderDayMonthFormat.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.syncState(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.currentTime,r=t.is12Hour;n===e.currentTime&&r===e.is12Hour||this.syncState(this.props)}},{key:"changeDate",value:function(e){var t=e.clone().startOf("minute");this.setState({date:t}),this.props.onChange(e.format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMaxHours",value:function(){return this.props.is12Hour?12:23}},{key:"getMinHours",value:function(){return this.props.is12Hour?1:0}},{key:"syncState",value:function(e){var t=e.currentTime,n=e.is12Hour,r=t?ot()(t):ot()(),o=r.format("DD"),a=r.format("MM"),i=r.format("YYYY"),s=r.format("mm"),c=r.format("A"),l=r.format(n?"hh":"HH"),u=t?ot()(t):ot()();this.setState({day:o,month:a,year:i,minutes:s,hours:l,am:c,date:u})}},{key:"updateHours",value:function(){var e=this.props.is12Hour,t=this.state,n=t.am,r=t.hours,o=t.date,a=parseInt(r,10);if(!Object(D.isInteger)(a)||e&&(a<1||a>12)||!e&&(a<0||a>23))this.syncState(this.props);else{var i=e?o.clone().hours("AM"===n?a%12:(a%12+12)%24):o.clone().hours(a);this.changeDate(i)}}},{key:"updateMinutes",value:function(){var e=this.state,t=e.minutes,n=e.date,r=parseInt(t,10);if(!Object(D.isInteger)(r)||r<0||r>59)this.syncState(this.props);else{var o=n.clone().minutes(r);this.changeDate(o)}}},{key:"updateDay",value:function(){var e=this.state,t=e.day,n=e.date,r=parseInt(t,10);if(!Object(D.isInteger)(r)||r<1||r>31)this.syncState(this.props);else{var o=n.clone().date(r);this.changeDate(o)}}},{key:"updateMonth",value:function(){var e=this.state,t=e.month,n=e.date,r=parseInt(t,10);if(!Object(D.isInteger)(r)||r<1||r>12)this.syncState(this.props);else{var o=n.clone().month(r-1);this.changeDate(o)}}},{key:"updateYear",value:function(){var e=this.state,t=e.year,n=e.date,r=parseInt(t,10);if(!Object(D.isInteger)(r)||r<0||r>9999)this.syncState(this.props);else{var o=n.clone().year(r);this.changeDate(o)}}},{key:"updateAmPm",value:function(e){var t=this;return function(){var n,r=t.state,o=r.am,a=r.date,i=r.hours;o!==e&&(n="PM"===e?a.clone().hours((parseInt(i,10)%12+12)%24):a.clone().hours(parseInt(i,10)%12),t.changeDate(n))}}},{key:"onChangeDay",value:function(e){this.setState({day:e.target.value})}},{key:"onChangeMonth",value:function(e){this.setState({month:e.target.value})}},{key:"onChangeYear",value:function(e){this.setState({year:e.target.value})}},{key:"onChangeHours",value:function(e){this.setState({hours:e.target.value})}},{key:"onChangeMinutes",value:function(e){var t=e.target.value;this.setState({minutes:""===t?"":("0"+t).slice(-2)})}},{key:"renderMonth",value:function(e){return Object(o.createElement)("div",{key:"render-month",className:"components-datetime__time-field components-datetime__time-field-month"},Object(o.createElement)("select",{"aria-label":Object(M.__)("Month"),className:"components-datetime__time-field-month-select",value:e,onChange:this.onChangeMonth,onBlur:this.updateMonth},Object(o.createElement)("option",{value:"01"},Object(M.__)("January")),Object(o.createElement)("option",{value:"02"},Object(M.__)("February")),Object(o.createElement)("option",{value:"03"},Object(M.__)("March")),Object(o.createElement)("option",{value:"04"},Object(M.__)("April")),Object(o.createElement)("option",{value:"05"},Object(M.__)("May")),Object(o.createElement)("option",{value:"06"},Object(M.__)("June")),Object(o.createElement)("option",{value:"07"},Object(M.__)("July")),Object(o.createElement)("option",{value:"08"},Object(M.__)("August")),Object(o.createElement)("option",{value:"09"},Object(M.__)("September")),Object(o.createElement)("option",{value:"10"},Object(M.__)("October")),Object(o.createElement)("option",{value:"11"},Object(M.__)("November")),Object(o.createElement)("option",{value:"12"},Object(M.__)("December"))))}},{key:"renderDay",value:function(e){return Object(o.createElement)("div",{key:"render-day",className:"components-datetime__time-field components-datetime__time-field-day"},Object(o.createElement)("input",{"aria-label":Object(M.__)("Day"),className:"components-datetime__time-field-day-input",type:"number",value:e,step:1,min:1,onChange:this.onChangeDay,onBlur:this.updateDay}))}},{key:"renderDayMonthFormat",value:function(e){var t=this.state,n=t.day,r=t.month,o=[this.renderDay(n),this.renderMonth(r)];return e?o:o.reverse()}},{key:"render",value:function(){var e=this.props.is12Hour,t=this.state,n=t.year,r=t.minutes,a=t.hours,i=t.am;return Object(o.createElement)("div",{className:p()("components-datetime__time")},Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(M.__)("Date")),Object(o.createElement)("div",{className:"components-datetime__time-wrapper"},this.renderDayMonthFormat(e),Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(o.createElement)("input",{"aria-label":Object(M.__)("Year"),className:"components-datetime__time-field-year-input",type:"number",step:1,value:n,onChange:this.onChangeYear,onBlur:this.updateYear})))),Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(M.__)("Time")),Object(o.createElement)("div",{className:"components-datetime__time-wrapper"},Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-time"},Object(o.createElement)("input",{"aria-label":Object(M.__)("Hours"),className:"components-datetime__time-field-hours-input",type:"number",step:1,min:this.getMinHours(),max:this.getMaxHours(),value:a,onChange:this.onChangeHours,onBlur:this.updateHours}),Object(o.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(o.createElement)("input",{"aria-label":Object(M.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",min:0,max:59,value:r,onChange:this.onChangeMinutes,onBlur:this.updateMinutes})),e&&Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(o.createElement)(E,{"aria-pressed":"AM"===i,isDefault:!0,className:"components-datetime__time-am-button",isToggled:"AM"===i,onClick:this.updateAmPm("AM")},Object(M.__)("AM")),Object(o.createElement)(E,{"aria-pressed":"PM"===i,isDefault:!0,className:"components-datetime__time-pm-button",isToggled:"PM"===i,onClick:this.updateAmPm("PM")},Object(M.__)("PM"))))))}}]),t}(o.Component),ct=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={calendarHelpIsVisible:!1},e.onClickDescriptionToggle=e.onClickDescriptionToggle.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"onClickDescriptionToggle",value:function(){this.setState({calendarHelpIsVisible:!this.state.calendarHelpIsVisible})}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.is12Hour,r=e.onChange;return Object(o.createElement)("div",{className:"components-datetime"},!this.state.calendarHelpIsVisible&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(st,{currentTime:t,onChange:r,is12Hour:n}),Object(o.createElement)(it,{currentDate:t,onChange:r})),this.state.calendarHelpIsVisible&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"components-datetime__calendar-help"},Object(o.createElement)("h4",null,Object(M.__)("Click to Select")),Object(o.createElement)("ul",null,Object(o.createElement)("li",null,Object(M.__)("Click the right or left arrows to select other months in the past or the future.")),Object(o.createElement)("li",null,Object(M.__)("Click the desired day to select it."))),Object(o.createElement)("h4",null,Object(M.__)("Navigating with a keyboard")),Object(o.createElement)("ul",null,Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(M._x)("Enter","keyboard button")},"↵")," ",Object(o.createElement)("span",null,Object(M.__)("Select the date in focus."))),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(M.__)("Left and Right Arrows")},"←/→")," ",Object(M.__)("Move backward (left) or forward (right) by one day.")),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(M.__)("Up and Down Arrows")},"↑/↓")," ",Object(M.__)("Move backward (up) or forward (down) by one week.")),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(M.__)("Page Up and Page Down")},Object(M.__)("PgUp/PgDn"))," ",Object(M.__)("Move backward (PgUp) or forward (PgDn) by one month.")),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(M.__)("Home and End")},Object(M.__)("Home/End"))," ",Object(M.__)("Go to the first (home) or last (end) day of a week."))),Object(o.createElement)(E,{isSmall:!0,onClick:this.onClickDescriptionToggle},Object(M.__)("Close")))),!this.state.calendarHelpIsVisible&&Object(o.createElement)(E,{className:"components-datetime__date-help-button",isLink:!0,onClick:this.onClickDescriptionToggle},Object(M.__)("Calendar Help")))}}]),t}(o.Component),lt=Object(o.createContext)(!1),ut=lt.Consumer,dt=lt.Provider,ht=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"],ft=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e.disable=e.disable.bind(Object(g.a)(e)),e.debouncedDisable=Object(D.debounce)(e.disable,{leading:!0}),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.disable(),this.observer=new window.MutationObserver(this.debouncedDisable),this.observer.observe(this.node,{childList:!0,attributes:!0,subtree:!0})}},{key:"componentWillUnmount",value:function(){this.observer.disconnect(),this.debouncedDisable.cancel()}},{key:"bindNode",value:function(e){this.node=e}},{key:"disable",value:function(){j.focus.focusable.find(this.node).forEach((function(e){Object(D.includes)(ht,e.nodeName)&&e.setAttribute("disabled",""),e.hasAttribute("tabindex")&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=Object(P.a)(e,["className"]);return Object(o.createElement)(dt,{value:!0},Object(o.createElement)("div",Object(z.a)({ref:this.bindNode,className:p()(t,"components-disabled")},n),this.props.children))}}]),t}(o.Component);ft.Consumer=ut;var pt=ft,vt=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onDragStart=e.onDragStart.bind(Object(g.a)(e)),e.onDragOver=e.onDragOver.bind(Object(g.a)(e)),e.onDragEnd=e.onDragEnd.bind(Object(g.a)(e)),e.resetDragState=e.resetDragState.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.resetDragState()}},{key:"onDragEnd",value:function(e){var t=this.props.onDragEnd,n=void 0===t?D.noop:t;e.preventDefault(),this.resetDragState(),this.props.setTimeout(n)}},{key:"onDragOver",value:function(e){this.cloneWrapper.style.top="".concat(parseInt(this.cloneWrapper.style.top,10)+e.clientY-this.cursorTop,"px"),this.cloneWrapper.style.left="".concat(parseInt(this.cloneWrapper.style.left,10)+e.clientX-this.cursorLeft,"px"),this.cursorLeft=e.clientX,this.cursorTop=e.clientY}},{key:"onDragStart",value:function(e){var t=this.props,n=t.elementId,r=t.transferData,o=t.onDragStart,a=void 0===o?D.noop:o,i=document.getElementById(n);if(i){if("function"==typeof e.dataTransfer.setDragImage){var s=document.createElement("div");s.id="drag-image-".concat(n),s.classList.add("components-draggable__invisible-drag-image"),document.body.appendChild(s),e.dataTransfer.setDragImage(s,0,0),this.props.setTimeout((function(){document.body.removeChild(s)}))}e.dataTransfer.setData("text",JSON.stringify(r));var c=i.getBoundingClientRect(),l=i.parentNode,u=parseInt(c.top,10),d=parseInt(c.left,10),h=i.cloneNode(!0);h.id="clone-".concat(n),this.cloneWrapper=document.createElement("div"),this.cloneWrapper.classList.add("components-draggable__clone"),this.cloneWrapper.style.width="".concat(c.width+40,"px"),c.height>700?(this.cloneWrapper.style.transform="scale(0.5)",this.cloneWrapper.style.transformOrigin="top left",this.cloneWrapper.style.top="".concat(e.clientY-100,"px"),this.cloneWrapper.style.left="".concat(e.clientX,"px")):(this.cloneWrapper.style.top="".concat(u-20,"px"),this.cloneWrapper.style.left="".concat(d-20,"px")),Object(_.a)(h.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),this.cloneWrapper.appendChild(h),l.appendChild(this.cloneWrapper),this.cursorLeft=e.clientX,this.cursorTop=e.clientY,document.body.classList.add("is-dragging-components-draggable"),document.addEventListener("dragover",this.onDragOver),this.props.setTimeout(a)}else e.preventDefault()}},{key:"resetDragState",value:function(){document.removeEventListener("dragover",this.onDragOver),this.cloneWrapper&&this.cloneWrapper.parentNode&&(this.cloneWrapper.parentNode.removeChild(this.cloneWrapper),this.cloneWrapper=null),document.body.classList.remove("is-dragging-components-draggable")}},{key:"render",value:function(){return(0,this.props.children)({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd})}}]),t}(o.Component),bt=Object(S.withSafeTimeout)(vt),mt=Object(o.createContext)({addDropZone:function(){},removeDropZone:function(){}}),yt=mt.Provider,gt=mt.Consumer,Ot=function(e){var t=e.dataTransfer;if(t){if(Object(D.includes)(t.types,"Files"))return"file";if(Object(D.includes)(t.types,"text/html"))return"html"}return"default"},kt=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},_t=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onDragOver=e.onDragOver.bind(Object(g.a)(e)),e.onDrop=e.onDrop.bind(Object(g.a)(e)),e.addDropZone=e.addDropZone.bind(Object(g.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(g.a)(e)),e.resetDragState=e.resetDragState.bind(Object(g.a)(e)),e.toggleDraggingOverDocument=Object(D.throttle)(e.toggleDraggingOverDocument.bind(Object(g.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("dragover",this.onDragOver),window.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragover",this.onDragOver),window.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(D.filter)(this.dropZones,(function(t){return t!==e}))}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,position:null}),this.dropZones.forEach((function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})})))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,r=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,o=Object(D.filter)(this.dropZones,(function(e){return kt(t,e)&&function(e,t,n){var r=e.getBoundingClientRect();return r.bottom!==r.top&&r.left!==r.right&&(t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom)}(e.element,r.clientX,r.clientY)})),a=Object(D.find)(o,(function(e){return!Object(D.some)(o,(function(t){return t!==e&&e.element.parentElement.contains(t.element)}))})),i=this.dropZones.indexOf(a),s=null;if(a){var c=a.element.getBoundingClientRect();s={x:r.clientX-c.left-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,a=n.eventToOffset,i=n.onNavigate,s=void 0===i?D.noop:i,c=n.stopNavigationEvents,l=a(e);if(void 0!==l&&c&&(e.stopImmediatePropagation(),"menuitem"===e.target.getAttribute("role")&&e.preventDefault()),l){var u=t(document.activeElement);if(u){var d=u.index,h=u.focusables,f=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(d,h.length,l):d+l;f>=0&&f0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(r.a)({},e,t);return t.className&&e.className&&(n.className=p()(t.className,e.className)),n}var zt=function(e){var t,n=e.children,r=e.className,a=e.controls,i=e.hasArrowIndicator,s=void 0!==i&&i,c=e.icon,l=void 0===c?"menu":c,u=e.label,d=e.popoverProps,h=e.toggleProps,f=e.menuProps,v=e.menuLabel,b=e.position;if(v&&H()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),b&&H()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(D.isEmpty)(a)&&!Object(D.isFunction)(n))return null;Object(D.isEmpty)(a)||(t=a,Array.isArray(t[0])||(t=[t]));var m=Et({className:"components-dropdown-menu__popover",position:b},d);return Object(o.createElement)(Ie,{className:p()("components-dropdown-menu",r),popoverProps:m,renderToggle:function(e){var t=e.isOpen,n=e.onToggle,r=Et({className:p()("components-dropdown-menu__toggle",{"is-opened":t}),tooltip:u},h);return Object(o.createElement)(ee,Object(z.a)({},r,{icon:l,onClick:n,onKeyDown:function(e){t||e.keyCode!==w.DOWN||(e.preventDefault(),e.stopPropagation(),n())},"aria-haspopup":"true","aria-expanded":t,label:u}),(!l||s)&&Object(o.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(e){var r=Et({"aria-label":v||u,className:"components-dropdown-menu__menu"},f);return Object(o.createElement)(jt,Object(z.a)({},r,{role:"menu"}),Object(D.isFunction)(n)?n(e):null,Object(D.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(o.createElement)(ee,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:p()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})};var Tt=Object(o.forwardRef)((function(e,t){var n=e.href,r=e.children,a=e.className,i=e.rel,s=void 0===i?"":i,c=Object(P.a)(e,["href","children","className","rel"]);s=Object(D.uniq)(Object(D.compact)([].concat(Object(_.a)(s.split(" ")),["external","noreferrer","noopener"]))).join(" ");var l=p()("components-external-link",a);return(Object(o.createElement)("a",Object(z.a)({},c,{className:l,href:n,target:"_blank",rel:s,ref:t}),r,Object(o.createElement)("span",{className:"screen-reader-text"},Object(M.__)("(opens in a new tab)")),Object(o.createElement)(J,{icon:"external",className:"components-external-link__icon"})))})),It=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).onMouseMove=n.onMouseMove.bind(Object(g.a)(n)),n.state={isDragging:!1,bounds:{},percentages:e.value},n.containerRef=Object(o.createRef)(),n.imageRef=Object(o.createRef)(),n.horizontalPositionChanged=n.horizontalPositionChanged.bind(Object(g.a)(n)),n.verticalPositionChanged=n.verticalPositionChanged.bind(Object(g.a)(n)),n.onLoad=n.onLoad.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1})}},{key:"calculateBounds",value:function(){var e={top:0,left:0,bottom:0,right:0,width:0,height:0};if(!this.imageRef.current)return e;var t=this.imageRef.current.clientWidth,n=this.imageRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,a=r.height/n;return a>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*a,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"onLoad",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds,o=this.props.onChange;if(n){var a=this.pickerDimensions(),i={left:e.pageX-a.left,top:e.pageY-a.top},s=Math.max(r.left,Math.min(i.left,r.right)),c=Math.max(r.top,Math.min(i.top,r.bottom)),l={x:(s-r.left)/(a.width-2*r.left),y:(c-r.top)/(a.height-2*r.top)};this.setState({percentages:l},(function(){o({x:this.state.percentages.x,y:this.state.percentages.y})}))}}},{key:"fractionToPercentage",value:function(e){return Math.round(100*e)}},{key:"horizontalPositionChanged",value:function(e){this.positionChangeFromTextControl("x",e.target.value)}},{key:"verticalPositionChanged",value:function(e){this.positionChangeFromTextControl("y",e.target.value)}},{key:"positionChangeFromTextControl",value:function(e,t){var n=this.props.onChange,r=this.state.percentages,o=Math.max(Math.min(parseInt(t),100),0);r[e]=o?o/100:0,this.setState({percentages:r},(function(){n({x:this.state.percentages.x,y:this.state.percentages.y})}))}},{key:"pickerDimensions",value:function(){return this.containerRef.current?{width:this.containerRef.current.clientWidth,height:this.containerRef.current.clientHeight,top:this.containerRef.current.getBoundingClientRect().top+document.body.scrollTop,left:this.containerRef.current.getBoundingClientRect().left}:{width:0,height:0,left:0,top:0}}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.url,a=t.value,i=t.label,c=t.help,l=t.className,d=this.state,h=d.bounds,f=d.isDragging,v=d.percentages,b=this.pickerDimensions(),m={left:a.x*(b.width-2*h.left)+h.left,top:a.y*(b.height-2*h.top)+h.top},y={left:"".concat(m.left,"px"),top:"".concat(m.top,"px")},g=p()("components-focal-point-picker__icon_container",f?"is-dragging":null),O="inspector-focal-point-picker-control-".concat(n),k="inspector-focal-point-picker-control-horizontal-position-".concat(n),_="inspector-focal-point-picker-control-vertical-position-".concat(n);return Object(o.createElement)(Se,{label:i,id:O,help:c,className:l},Object(o.createElement)("div",{className:"components-focal-point-picker-wrapper"},Object(o.createElement)("div",{className:"components-focal-point-picker",onMouseDown:function(){return e.setState({isDragging:!0})},onDragStart:function(){return e.setState({isDragging:!0})},onMouseUp:function(){return e.setState({isDragging:!1})},onDrop:function(){return e.setState({isDragging:!1})},onMouseMove:this.onMouseMove,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(o.createElement)("img",{alt:"Dimensions helper",onLoad:this.onLoad,ref:this.imageRef,src:r,draggable:"false"}),Object(o.createElement)("div",{className:g,style:y},Object(o.createElement)(u,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(o.createElement)(s,{className:"components-focal-point-picker__icon-outline",d:"M15 1C7.3 1 1 7.3 1 15s6.3 14 14 14 14-6.3 14-14S22.7 1 15 1zm0 22c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"}),Object(o.createElement)(s,{className:"components-focal-point-picker__icon-fill",d:"M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"}))))),Object(o.createElement)("div",{className:"components-focal-point-picker_position-display-container"},Object(o.createElement)(Se,{label:Object(M.__)("Horizontal Pos."),id:k},Object(o.createElement)("input",{className:"components-text-control__input",id:k,max:100,min:0,onChange:this.horizontalPositionChanged,type:"number",value:this.fractionToPercentage(v.x)}),Object(o.createElement)("span",null,"%")),Object(o.createElement)(Se,{label:Object(M.__)("Vertical Pos."),id:_},Object(o.createElement)("input",{className:"components-text-control__input",id:_,max:100,min:0,onChange:this.verticalPositionChanged,type:"number",value:this.fractionToPercentage(v.y)}),Object(o.createElement)("span",null,"%"))))}}]),t}(o.Component);It.defaultProps={url:null,value:{x:.5,y:.5},onChange:function(){}};var xt=Object(S.compose)([S.withInstanceId,q])(It),Ht=window.FocusEvent,Nt=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).checkFocus=n.checkFocus.bind(Object(g.a)(n)),n.node=e.iframeRef||Object(o.createRef)(),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"checkFocus",value:function(){var e=this.node.current;if(document.activeElement===e){var t=new Ht("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(o.createElement)("iframe",Object(z.a)({ref:this.node},Object(D.omit)(this.props,["iframeRef","onFocus"])))}}]),t}(o.Component),Rt=Object(S.withGlobalEvents)({blur:"checkFocus"})(Nt);var Lt=Object(S.compose)([S.withInstanceId,Object(S.withState)({currentInput:null})])((function(e){var t=e.className,n=e.currentInput,r=e.label,a=e.value,i=e.instanceId,s=e.onChange,c=e.beforeIcon,l=e.afterIcon,u=e.help,d=e.allowReset,h=e.initialPosition,f=e.min,v=e.max,b=e.setState,m=Object(P.a)(e,["className","currentInput","label","value","instanceId","onChange","beforeIcon","afterIcon","help","allowReset","initialPosition","min","max","setState"]),y="inspector-range-control-".concat(i),g=null===n?a:n,O=function(){null!==n&&b({currentInput:null})},k=function(e){var t=e.target.value;e.target.checkValidity()?(O(),s(""===t?void 0:parseFloat(t))):b({currentInput:t})},_=Object(D.isFinite)(g)?g:h||"";return Object(o.createElement)(Se,{label:r,id:y,help:u,className:p()("components-range-control",t)},c&&Object(o.createElement)(J,{icon:c}),Object(o.createElement)("input",Object(z.a)({className:"components-range-control__slider",id:y,type:"range",value:_,onChange:k,"aria-describedby":u?y+"__help":void 0,min:f,max:v},m)),l&&Object(o.createElement)(J,{icon:l}),Object(o.createElement)("input",Object(z.a)({className:"components-range-control__number",type:"number",onChange:k,"aria-label":r,value:g,min:f,max:v,onBlur:O},m)),d&&Object(o.createElement)(E,{onClick:function(){O(),s()},disabled:void 0===a,isSmall:!0,isDefault:!0,className:"components-range-control__reset"},Object(M.__)("Reset")))}));var Ft=Object(S.withInstanceId)((function(e){var t=e.help,n=e.instanceId,r=e.label,a=e.multiple,i=void 0!==a&&a,s=e.onChange,c=e.options,l=void 0===c?[]:c,u=e.className,d=e.hideLabelFromVision,h=Object(P.a)(e,["help","instanceId","label","multiple","onChange","options","className","hideLabelFromVision"]),f="inspector-select-control-".concat(n);return!Object(D.isEmpty)(l)&&Object(o.createElement)(Se,{label:r,hideLabelFromVision:d,id:f,help:t,className:u},Object(o.createElement)("select",Object(z.a)({id:f,className:"components-select-control__input",onChange:function(e){if(i){var t=Object(_.a)(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value}));s(t)}else s(e.target.value)},"aria-describedby":t?"".concat(f,"__help"):void 0,multiple:i},h),l.map((function(e,t){return Object(o.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value,disabled:e.disabled},e.label)}))))}));function At(e,t){if(t){var n=e.find((function(e){return e.size===t}));return n?n.slug:"custom"}return"normal"}var Vt=function(e){var t,n=e.fallbackFontSize,r=e.fontSizes,a=void 0===r?[]:r,i=e.disableCustomFontSizes,s=void 0!==i&&i,c=e.onChange,l=e.value,u=e.withSlider,d=void 0!==u&&u,f=Object(o.useState)(At(a,l)),p=Object(h.a)(f,2),v=p[0],b=p[1];return s&&!a.length?null:Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",null,Object(M.__)("Font Size")),Object(o.createElement)("div",{className:"components-font-size-picker__controls"},a.length>0&&Object(o.createElement)(Ft,{className:"components-font-size-picker__select",label:"Choose preset",hideLabelFromVision:!0,value:v,onChange:function(e){b(e);var t=a.find((function(t){return t.slug===e}));t&&c(t.size)},options:(t=a,[].concat(Object(_.a)(t.map((function(e){return{value:e.slug,label:e.name}}))),[{value:"custom",label:Object(M.__)("Custom")}]))}),!d&&!s&&Object(o.createElement)("input",{className:"components-range-control__number",type:"number",onChange:function(e){var t=e.target.value;b(At(a,Number(t))),c(""!==t?Number(t):void 0)},"aria-label":Object(M.__)("Custom"),value:l||""}),Object(o.createElement)(E,{className:"components-color-palette__clear",type:"button",disabled:void 0===l,onClick:function(){c(void 0),b(At(a,void 0))},isSmall:!0,isDefault:!0},Object(M.__)("Reset"))),d&&Object(o.createElement)(Lt,{className:"components-font-size-picker__custom-input",label:Object(M.__)("Custom Size"),value:l||"",initialPosition:n,onChange:c,min:12,max:100,beforeIcon:"editor-textcolor",afterIcon:"editor-textcolor"}))},Bt=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).openFileDialog=e.openFileDialog.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"openFileDialog",value:function(){this.input.click()}},{key:"bindInput",value:function(e){this.input=e}},{key:"render",value:function(){var e=this.props,t=e.accept,n=e.children,r=e.icon,a=void 0===r?"upload":r,i=e.multiple,s=void 0!==i&&i,c=e.onChange,l=e.render,u=Object(P.a)(e,["accept","children","icon","multiple","onChange","render"]),d=l?l({openFileDialog:this.openFileDialog}):Object(o.createElement)(ee,Object(z.a)({icon:a,onClick:this.openFileDialog},u),n);return Object(o.createElement)("div",{className:"components-form-file-upload"},d,Object(o.createElement)("input",{type:"file",ref:this.bindInput,multiple:s,style:{display:"none"},accept:t,onChange:c}))}}]),t}(o.Component);var Kt=function(e){var t=e.className,n=e.checked,r=e.id,a=e.onChange,i=void 0===a?D.noop:a,c=Object(P.a)(e,["className","checked","id","onChange"]),l=p()("components-form-toggle",t,{"is-checked":n});return Object(o.createElement)("span",{className:l},Object(o.createElement)("input",Object(z.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i},c)),Object(o.createElement)("span",{className:"components-form-toggle__track"}),Object(o.createElement)("span",{className:"components-form-toggle__thumb"}),n?Object(o.createElement)(u,{className:"components-form-toggle__on",width:"2",height:"6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 6"},Object(o.createElement)(s,{d:"M0 0h2v6H0z"})):Object(o.createElement)(u,{className:"components-form-toggle__off",width:"6",height:"6","aria-hidden":"true",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 6"},Object(o.createElement)(s,{d:"M3 1.5c.8 0 1.5.7 1.5 1.5S3.8 4.5 3 4.5 1.5 3.8 1.5 3 2.2 1.5 3 1.5M3 0C1.3 0 0 1.3 0 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3z"})))},Wt=n(31);var Ut=Object(S.withInstanceId)((function(e){var t=e.value,n=e.status,r=e.title,a=e.displayTransform,i=e.isBorderless,s=void 0!==i&&i,c=e.disabled,l=void 0!==c&&c,u=e.onClickRemove,d=void 0===u?D.noop:u,h=e.onMouseEnter,f=e.onMouseLeave,v=e.messages,b=e.termPosition,m=e.termsCount,y=e.instanceId,g=p()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":s,"is-disabled":l}),O=a(t),k=Object(M.sprintf)(Object(M.__)("%1$s (%2$s of %3$s)"),O,b,m);return Object(o.createElement)("span",{className:g,onMouseEnter:h,onMouseLeave:f,title:r},Object(o.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(y)},Object(o.createElement)("span",{className:"screen-reader-text"},k),Object(o.createElement)("span",{"aria-hidden":"true"},O)),Object(o.createElement)(ee,{className:"components-form-token-field__remove-token",icon:"dismiss",onClick:!l&&function(){return d({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(y)}))})),$t=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"hasFocus",value:function(){return this.input===document.activeElement}},{key:"bindInput",value:function(e){this.input=e}},{key:"onChange",value:function(e){this.props.onChange({value:e.target.value})}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.isExpanded,r=e.instanceId,a=e.selectedSuggestionIndex,i=Object(P.a)(e,["value","isExpanded","instanceId","selectedSuggestionIndex"]),s=t.length+1;return Object(o.createElement)("input",Object(z.a)({ref:this.bindInput,id:"components-form-token-input-".concat(r),type:"text"},i,{value:t,onChange:this.onChange,size:s,className:"components-form-token-field__input",role:"combobox","aria-expanded":n,"aria-autocomplete":"list","aria-owns":n?"components-form-token-suggestions-".concat(r):void 0,"aria-activedescendant":-1!==a?"components-form-token-suggestions-".concat(r,"-").concat(a):void 0,"aria-describedby":"components-form-token-suggestions-howto-".concat(r)}))}}]),t}(o.Component),qt=n(71),Gt=n.n(qt),Yt=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.bindList=e.bindList.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidUpdate",value:function(){var e=this;this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Gt()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"bindList",value:function(e){this.list=e}},{key:"handleHover",value:function(e){var t=this;return function(){t.scrollingIntoView||t.props.onHover(e)}}},{key:"handleClick",value:function(e){var t=this;return function(){t.props.onSelect(e)}}},{key:"handleMouseDown",value:function(e){e.preventDefault()}},{key:"computeSuggestionMatch",value:function(e){var t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;var n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}},{key:"render",value:function(){var e=this;return Object(o.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(D.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),a=p()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(o.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:a,key:t,onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},r?Object(o.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(o.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),t}(o.Component);Yt.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var Zt=Object(S.withSafeTimeout)(Yt),Xt={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1},Qt=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state=Xt,e.onKeyDown=e.onKeyDown.bind(Object(g.a)(e)),e.onKeyPress=e.onKeyPress.bind(Object(g.a)(e)),e.onFocus=e.onFocus.bind(Object(g.a)(e)),e.onBlur=e.onBlur.bind(Object(g.a)(e)),e.deleteTokenBeforeInput=e.deleteTokenBeforeInput.bind(Object(g.a)(e)),e.deleteTokenAfterInput=e.deleteTokenAfterInput.bind(Object(g.a)(e)),e.addCurrentToken=e.addCurrentToken.bind(Object(g.a)(e)),e.onContainerTouched=e.onContainerTouched.bind(Object(g.a)(e)),e.renderToken=e.renderToken.bind(Object(g.a)(e)),e.onTokenClickRemove=e.onTokenClickRemove.bind(Object(g.a)(e)),e.onSuggestionHovered=e.onSuggestionHovered.bind(Object(g.a)(e)),e.onSuggestionSelected=e.onSuggestionSelected.bind(Object(g.a)(e)),e.onInputChange=e.onInputChange.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e.bindTokensAndInput=e.bindTokensAndInput.bind(Object(g.a)(e)),e.updateSuggestions=e.updateSuggestions.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidUpdate",value:function(e){this.state.isActive&&!this.input.hasFocus()&&this.input.focus();var t=this.props,n=t.suggestions,r=t.value,o=!I()(n,e.suggestions);(o||r!==e.value)&&this.updateSuggestions(o)}},{key:"bindInput",value:function(e){this.input=e}},{key:"bindTokensAndInput",value:function(e){this.tokensAndInput=e}},{key:"onFocus",value:function(e){this.input.hasFocus()||e.target===this.tokensAndInput?this.setState({isActive:!0}):this.setState({isActive:!1}),"function"==typeof this.props.onFocus&&this.props.onFocus(e)}},{key:"onBlur",value:function(){this.inputHasValidValue()?this.setState({isActive:!1}):this.setState(Xt)}},{key:"onKeyDown",value:function(e){var t=!1;switch(e.keyCode){case w.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case w.ENTER:t=this.addCurrentToken();break;case w.LEFT:t=this.handleLeftArrowKey();break;case w.UP:t=this.handleUpArrowKey();break;case w.RIGHT:t=this.handleRightArrowKey();break;case w.DOWN:t=this.handleDownArrowKey();break;case w.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case w.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case w.ESCAPE:t=this.handleEscapeKey(e),e.stopPropagation()}t&&e.preventDefault()}},{key:"onKeyPress",value:function(e){var t=!1;switch(e.charCode){case 44:t=this.handleCommaKey()}t&&e.preventDefault()}},{key:"onContainerTouched",value:function(e){e.target===this.tokensAndInput&&this.state.isActive&&e.preventDefault()}},{key:"onTokenClickRemove",value:function(e){this.deleteToken(e.value),this.input.focus()}},{key:"onSuggestionHovered",value:function(e){var t=this.getMatchingSuggestions().indexOf(e);t>=0&&this.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}},{key:"onSuggestionSelected",value:function(e){this.addNewToken(e)}},{key:"onInputChange",value:function(e){var t=e.value,n=this.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=Object(D.last)(r)||"";r.length>1&&this.addNewTokens(r.slice(0,-1)),this.setState({incompleteTokenValue:o},this.updateSuggestions),this.props.onInputChange(o)}},{key:"handleDeleteKey",value:function(e){var t=!1;return this.input.hasFocus()&&this.isInputEmpty()&&(e(),t=!0),t}},{key:"handleLeftArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputBeforePreviousToken(),e=!0),e}},{key:"handleRightArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputAfterNextToken(),e=!0),e}},{key:"handleUpArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(0===t.selectedSuggestionIndex?e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length:t.selectedSuggestionIndex)-1,selectedSuggestionScroll:!0}})),!0}},{key:"handleDownArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(t.selectedSuggestionIndex+1)%e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length,selectedSuggestionScroll:!0}})),!0}},{key:"handleEscapeKey",value:function(e){return this.setState({incompleteTokenValue:e.target.value,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),!0}},{key:"handleCommaKey",value:function(){return this.inputHasValidValue()&&this.addNewToken(this.state.incompleteTokenValue),!0}},{key:"moveInputToIndex",value:function(e){this.setState((function(t,n){return{inputOffsetFromEnd:n.value.length-Math.max(e,-1)-1}}))}},{key:"moveInputBeforePreviousToken",value:function(){this.setState((function(e,t){return{inputOffsetFromEnd:Math.min(e.inputOffsetFromEnd+1,t.value.length)}}))}},{key:"moveInputAfterNextToken",value:function(){this.setState((function(e){return{inputOffsetFromEnd:Math.max(e.inputOffsetFromEnd-1,0)}}))}},{key:"deleteTokenBeforeInput",value:function(){var e=this.getIndexOfInput()-1;e>-1&&this.deleteToken(this.props.value[e])}},{key:"deleteTokenAfterInput",value:function(){var e=this.getIndexOfInput();e0){var r=Object(D.clone)(this.props.value);r.splice.apply(r,[this.getIndexOfInput(),0].concat(n)),this.props.onChange(r)}}},{key:"addNewToken",value:function(e){this.addNewTokens([e]),this.props.speak(this.props.messages.added,"assertive"),this.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!1}),this.state.isActive&&this.input.focus()}},{key:"deleteToken",value:function(e){var t=this,n=this.props.value.filter((function(n){return t.getTokenValue(n)!==t.getTokenValue(e)}));this.props.onChange(n),this.props.speak(this.props.messages.removed,"assertive")}},{key:"getTokenValue",value:function(e){return"object"===Object(Wt.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,a=o(e),i=[],s=[];return 0===a.length?t=Object(D.difference)(t,n):(a=a.toLocaleLowerCase(),Object(D.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(a);-1===n.indexOf(e)&&(0===t?i.push(e):t>0&&s.push(e))})),t=i.concat(s)),Object(D.take)(t,r)}},{key:"getSelectedSuggestion",value:function(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}},{key:"valueContainsToken",value:function(e){var t=this;return Object(D.some)(this.props.value,(function(n){return t.getTokenValue(e)===t.getTokenValue(n)}))}},{key:"getIndexOfInput",value:function(){return this.props.value.length-this.state.inputOffsetFromEnd}},{key:"isInputEmpty",value:function(){return 0===this.state.incompleteTokenValue.length}},{key:"inputHasValidValue",value:function(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}},{key:"updateSuggestions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.incompleteTokenValue,n=t.trim().length>1,r=this.getMatchingSuggestions(t),o=r.length>0,a={isExpanded:n&&o};if(e&&(a.selectedSuggestionIndex=-1,a.selectedSuggestionScroll=!1),this.setState(a),n){var i=this.props.debouncedSpeak,s=o?Object(M.sprintf)(Object(M._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",r.length),r.length):Object(M.__)("No results.");i(s,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(D.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var r=this.getTokenValue(e),a=e.status?e.status:void 0,i=t+1,s=n.length;return Object(o.createElement)(Ut,{key:"token-"+r,value:r,status:a,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==a&&this.props.disabled,messages:this.props.messages,termsCount:s,termPosition:i})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,a=e.maxLength,i=e.value,s={instanceId:e.instanceId,autoCapitalize:t,autoComplete:n,ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return a&&i.length>=a||(s=Object(r.a)({},s,{onChange:this.onInputChange})),Object(o.createElement)($t,s)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(M.__)("Add item"):n,a=e.instanceId,i=e.className,s=this.state.isExpanded,c=p()(i,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),l={className:"components-form-token-field",tabIndex:"-1"},u=this.getMatchingSuggestions();return t||(l=Object.assign({},l,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(o.createElement)("div",l,Object(o.createElement)("label",{htmlFor:"components-form-token-input-".concat(a),className:"components-form-token-field__label"},r),Object(o.createElement)("div",{ref:this.bindTokensAndInput,className:c,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),s&&Object(o.createElement)(Zt,{instanceId:a,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:u,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(o.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(a),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(M.__)("Separate with commas, spaces, or the Enter key."):Object(M.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),t}(o.Component);Qt.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:D.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(M.__)("Item added."),removed:Object(M.__)("Item removed."),remove:Object(M.__)("Remove item")}};var Jt=Oe(Object(S.withInstanceId)(Qt));var en=function(e){var t,n=e.icon,a=void 0===n?null:n,i=e.size,s=Object(P.a)(e,["icon","size"]);if("string"==typeof a)return t=i||20,Object(o.createElement)(J,Object(z.a)({icon:a,size:t},s));if(t=i||24,"function"==typeof a)return a.prototype instanceof o.Component?Object(o.createElement)(a,Object(r.a)({size:t},s)):a(Object(r.a)({size:t},s));if(a&&("svg"===a.type||a.type===u)){var c=Object(r.a)({width:t,height:t},a.props,s);return Object(o.createElement)(u,c)}return Object(o.isValidElement)(a)?Object(o.cloneElement)(a,Object(r.a)({size:t},s)):a};var tn=Object(S.withInstanceId)((function(e){var t=e.children,n=e.className,r=void 0===n?"":n,a=e.instanceId,i=e.label;if(!o.Children.count(t))return null;var s="components-menu-group-label-".concat(a),c=p()(r,"components-menu-group");return Object(o.createElement)("div",{className:c},i&&Object(o.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},i),Object(o.createElement)("div",{role:"group","aria-labelledby":i?s:null},t))}));var nn=function(e){var t=e.children,n=e.info,r=e.className,a=e.icon,i=e.shortcut,s=e.isSelected,c=e.role,l=void 0===c?"menuitem":c,u=Object(P.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return r=p()("components-menu-item__button",r,{"has-icon":a}),n&&(t=Object(o.createElement)("span",{className:"components-menu-item__info-wrapper"},t,Object(o.createElement)("span",{className:"components-menu-item__info"},n))),a&&!Object(D.isString)(a)&&(a=Object(o.cloneElement)(a,{className:"components-menu-items__item-icon",height:20,width:20})),Object(o.createElement)(ee,Object(z.a)({icon:a,"aria-checked":"menuitemcheckbox"===l||"menuitemradio"===l?s:void 0,role:l,className:r},u),t,Object(o.createElement)(Z,{className:"components-menu-item__shortcut",shortcut:i}))};function rn(e){var t=e.choices,n=void 0===t?[]:t,r=e.onSelect,a=e.value;return n.map((function(e){var t=a===e.value;return Object(o.createElement)(nn,{key:e.value,role:"menuitemradio",icon:t&&"yes",isSelected:t,shortcut:e.shortcut,onClick:function(){t||r(e.value)}},e.label)}))}var on=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).containerRef=Object(o.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(g.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(g.a)(e)),e.focusFirstTabbable=e.focusFirstTabbable.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusFirstTabbable()}},{key:"focusFirstTabbable",value:function(){var e=j.focus.tabbable.find(this.containerRef.current);e.length&&e[0].focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===w.ESCAPE&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.contentLabel,r=e.aria,a=r.describedby,i=r.labelledby,s=e.children,c=e.className,l=e.role,u=e.style;return Object(o.createElement)(ne,{className:p()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(o.createElement)("div",{className:p()("components-modal__frame",c),style:u,ref:this.containerRef,role:l,"aria-label":n,"aria-labelledby":n?null:i,"aria-describedby":a,tabIndex:"-1"},s))}}]),t}(o.Component),an=Object(S.compose)([W,U,q])(on),sn=function(e){var t=e.icon,n=e.title,r=e.onClose,a=e.closeLabel,i=e.headingId,s=e.isDismissable,c=a||Object(M.__)("Close dialog");return Object(o.createElement)("div",{className:"components-modal__header"},Object(o.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(o.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(o.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),s&&Object(o.createElement)(ee,{onClick:r,icon:"no-alt",label:c}))},cn=new Set(["alert","status","log","marquee","timer"]),ln=[],un=!1;function dn(e){if(!un){var t=document.body.children;Object(D.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||cn.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),ln.push(t))})),un=!0}}var hn,fn=0,pn=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).prepareDOM(),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){1===++fn&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--fn&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){hn||(hn=document.createElement("div"),document.body.appendChild(hn)),this.node=document.createElement("div"),hn.appendChild(this.node)}},{key:"cleanDOM",value:function(){hn.removeChild(this.node)}},{key:"openFirstModal",value:function(){dn(hn),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),un&&(Object(D.forEach)(ln,(function(e){e.removeAttribute("aria-hidden")})),ln=[],un=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,a=e.closeButtonLabel,i=e.children,s=e.aria,c=e.instanceId,l=e.isDismissable,u=Object(P.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissable"]),d=s.labelledby||"components-modal-header-".concat(c);return Object(o.createPortal)(Object(o.createElement)(an,Object(z.a)({onRequestClose:t,aria:{labelledby:n?d:null,describedby:s.describedby}},u),Object(o.createElement)("div",{className:"components-modal__content",tabIndex:"0"},Object(o.createElement)(sn,{closeLabel:a,headingId:d,icon:r,isDismissable:l,onClose:t,title:n}),i)),this.node)}}]),t}(o.Component);pn.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissable:!0,aria:{labelledby:null,describedby:null}};var vn=Object(S.withInstanceId)(pn);var bn=function(e){var t=e.className,n=e.status,r=e.children,a=e.onRemove,i=void 0===a?D.noop:a,s=e.isDismissible,c=void 0===s||s,l=e.actions,u=void 0===l?[]:l,d=e.__unstableHTML,h=p()(t,"components-notice","is-"+n,{"is-dismissible":c});return d&&(r=Object(o.createElement)(o.RawHTML,null,r)),Object(o.createElement)("div",{className:h},Object(o.createElement)("div",{className:"components-notice__content"},r,u.map((function(e,t){var n=e.className,r=e.label,a=e.noDefaultClasses,i=void 0!==a&&a,s=e.onClick,c=e.url;return Object(o.createElement)(E,{key:t,href:c,isDefault:!i&&!c,isLink:!i&&!!c,onClick:c?void 0:s,className:p()("components-notice__action",n)},r)}))),c&&Object(o.createElement)(ee,{className:"components-notice__dismiss",icon:"no-alt",label:Object(M.__)("Dismiss this notice"),onClick:i,tooltip:!1}))};var mn=function(e){var t=e.notices,n=e.onRemove,r=void 0===n?D.noop:n,a=e.className,i=e.children;return a=p()("components-notice-list",a),Object(o.createElement)("div",{className:a},i,Object(_.a)(t).reverse().map((function(e){return Object(o.createElement)(bn,Object(z.a)({},Object(D.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,function(){return r(t)})}),e.content);var t})))};var yn=function(e){var t=e.label,n=e.children;return Object(o.createElement)("div",{className:"components-panel__header"},t&&Object(o.createElement)("h2",null,t),n)};var gn=function(e){var t=e.header,n=e.className,r=e.children,a=p()(n,"components-panel");return Object(o.createElement)("div",{className:a},t&&Object(o.createElement)(yn,{label:t}),r)},On=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={opened:void 0===e.initialOpen||e.initialOpen},n.toggle=n.toggle.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"toggle",value:function(e){e.preventDefault(),void 0===this.props.opened&&this.setState((function(e){return{opened:!e.opened}})),this.props.onToggle&&this.props.onToggle()}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,r=e.opened,a=e.className,c=e.icon,l=e.forwardedRef,d=void 0===r?this.state.opened:r,h=p()("components-panel__body",a,{"is-opened":d});return Object(o.createElement)("div",{className:h,ref:l},!!t&&Object(o.createElement)("h2",{className:"components-panel__body-title"},Object(o.createElement)(E,{className:"components-panel__body-toggle",onClick:this.toggle,"aria-expanded":d},Object(o.createElement)("span",{"aria-hidden":"true"},d?Object(o.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(i,null,Object(o.createElement)(s,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(o.createElement)(i,null,Object(o.createElement)(s,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"}))):Object(o.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(i,null,Object(o.createElement)(s,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(o.createElement)(i,null,Object(o.createElement)(s,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})))),t,c&&Object(o.createElement)(en,{icon:c,className:"components-panel__icon",size:20}))),d&&n)}}]),t}(o.Component),kn=function(e,t){return Object(o.createElement)(On,Object(z.a)({},e,{forwardedRef:t}))};kn.displayName="PanelBody";var _n=Object(o.forwardRef)(kn);var Dn=function(e){var t=e.className,n=e.children,r=p()("components-panel__row",t);return Object(o.createElement)("div",{className:r},n)};var wn=function(e){var t=e.icon,n=e.children,r=e.label,a=e.instructions,i=e.className,s=e.notices,c=e.preview,l=e.isColumnLayout,u=Object(P.a)(e,["icon","children","label","instructions","className","notices","preview","isColumnLayout"]),d=p()("components-placeholder",i),h=p()("components-placeholder__fieldset",{"is-column-layout":l});return Object(o.createElement)("div",Object(z.a)({},u,{className:d}),s,c&&Object(o.createElement)("div",{className:"components-placeholder__preview"},c),Object(o.createElement)("div",{className:"components-placeholder__label"},Object(D.isString)(t)?Object(o.createElement)(J,{icon:t}):t,r),!!a&&Object(o.createElement)("div",{className:"components-placeholder__instructions"},a),Object(o.createElement)("div",{className:h},n))};function Mn(e){var t=e.label,n=e.noOptionLabel,r=e.onChange,a=e.selectedId,i=e.tree,s=Object(P.a)(e,["label","noOptionLabel","onChange","selectedId","tree"]),c=Object(D.compact)([n&&{value:"",label:n}].concat(Object(_.a)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(D.flatMap)(t,(function(t){return[{value:t.id,label:Object(D.repeat)(" ",3*n)+Object(D.unescape)(t.name)}].concat(Object(_.a)(e(t.children||[],n+1)))}))}(i))));return Object(o.createElement)(Ft,Object(z.a)({label:t,options:c,onChange:r},{value:a},s))}function Sn(e){var t,n,a=e.label,i=e.noOptionLabel,s=e.categoriesList,c=e.selectedCategoryId,l=e.onChange,u=(t=s.map((function(e){return Object(r.a)({children:[],parent:null},e)})),(n=Object(D.groupBy)(t,"parent")).null&&n.null.length?t:function e(t){return t.map((function(t){var o=n[t.id];return Object(r.a)({},t,{children:o&&o.length?e(o):[]})}))}(n[0]||[]));return Object(o.createElement)(Mn,Object(z.a)({label:a,noOptionLabel:i,onChange:l},{tree:u,selectedId:c}))}var Cn=1,jn=100;function Pn(e){var t=e.categoriesList,n=e.selectedCategoryId,r=e.numberOfItems,a=e.order,i=e.orderBy,s=e.maxItems,c=void 0===s?jn:s,l=e.minItems,u=void 0===l?Cn:l,d=e.onCategoryChange,f=e.onNumberOfItemsChange,p=e.onOrderChange,v=e.onOrderByChange;return[p&&v&&Object(o.createElement)(Ft,{key:"query-controls-order-select",label:Object(M.__)("Order by"),value:"".concat(i,"/").concat(a),options:[{label:Object(M.__)("Newest to Oldest"),value:"date/desc"},{label:Object(M.__)("Oldest to Newest"),value:"date/asc"},{label:Object(M.__)("A → Z"),value:"title/asc"},{label:Object(M.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(h.a)(t,2),r=n[0],o=n[1];o!==a&&p(o),r!==i&&v(r)}}),d&&Object(o.createElement)(Sn,{key:"query-controls-category-select",categoriesList:t,label:Object(M.__)("Category"),noOptionLabel:Object(M.__)("All"),selectedCategoryId:n,onChange:d}),f&&Object(o.createElement)(Lt,{key:"query-controls-range-control",label:Object(M.__)("Number of items"),value:r,onChange:f,min:u,max:c,required:!0})]}var En=Object(S.withInstanceId)((function(e){var t=e.label,n=e.className,r=e.selected,a=e.help,i=e.instanceId,s=e.onChange,c=e.options,l=void 0===c?[]:c,u="inspector-radio-control-".concat(i),d=function(e){return s(e.target.value)};return!Object(D.isEmpty)(l)&&Object(o.createElement)(Se,{label:t,id:u,help:a,className:p()(n,"components-radio-control")},l.map((function(e,t){return Object(o.createElement)("div",{key:"".concat(u,"-").concat(t),className:"components-radio-control__option"},Object(o.createElement)("input",{id:"".concat(u,"-").concat(t),className:"components-radio-control__input",type:"radio",name:u,value:e.value,onChange:d,checked:e.value===r,"aria-describedby":a?"".concat(u,"__help"):void 0}),Object(o.createElement)("label",{htmlFor:"".concat(u,"-").concat(t)},e.label))})))})),zn=n(235);var Tn=function(e){var t=e.className,n=Object(P.a)(e,["className"]),r={width:null,height:null,top:null,right:null,bottom:null,left:null},a="components-resizable-box__handle",i="components-resizable-box__side-handle",s="components-resizable-box__corner-handle";return Object(o.createElement)(zn.Resizable,Object(z.a)({className:p()("components-resizable-box__container",t),handleClasses:{top:p()(a,i,"components-resizable-box__handle-top"),right:p()(a,i,"components-resizable-box__handle-right"),bottom:p()(a,i,"components-resizable-box__handle-bottom"),left:p()(a,i,"components-resizable-box__handle-left"),topLeft:p()(a,s,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:p()(a,s,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:p()(a,s,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:p()(a,s,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},handleStyles:{top:r,right:r,bottom:r,left:r,topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}},n))};var In=function(e){var t=e.naturalWidth,n=e.naturalHeight,r=e.children;if(1!==o.Children.count(r))return null;var a={paddingBottom:n/t*100+"%"};return Object(o.createElement)("div",{className:"components-responsive-wrapper"},Object(o.createElement)("div",{style:a}),Object(o.cloneElement)(r,{className:p()("components-responsive-wrapper__content",r.props.className)}))},xn=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).trySandbox=e.trySandbox.bind(Object(g.a)(e)),e.checkMessageForResize=e.checkMessageForResize.bind(Object(g.a)(e)),e.iframe=Object(o.createRef)(),e.state={width:0,height:0},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.trySandbox()}},{key:"componentDidUpdate",value:function(){this.trySandbox()}},{key:"isFrameAccessible",value:function(){try{return!!this.iframe.current.contentDocument.body}catch(e){return!1}}},{key:"checkMessageForResize",value:function(e){var t=this.iframe.current,n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}if(t&&t.contentWindow===e.source){var r=n,o=r.action,a=r.width,i=r.height,s=this.state,c=s.width,l=s.height;"resize"!==o||c===a&&l===i||this.setState({width:a,height:i})}}},{key:"trySandbox",value:function(){if(this.isFrameAccessible()&&null===this.iframe.current.contentDocument.body.getAttribute("data-resizable-iframe-connected")){var e=Object(o.createElement)("html",{lang:document.documentElement.lang,className:this.props.type},Object(o.createElement)("head",null,Object(o.createElement)("title",null,this.props.title),Object(o.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\thtml,\n\t\t\tbody,\n\t\t\tbody > div,\n\t\t\tbody > div > iframe {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\thtml.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio > div,\n\t\t\tbody.wp-has-aspect-ratio > div > iframe {\n\t\t\t\theight: 100%;\n\t\t\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t\t\t}\n\t\t\tbody > div > * {\n\t\t\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\t\t\tmargin-bottom: 0 !important;\n\t\t\t}\n\t\t"}}),this.props.styles&&this.props.styles.map((function(e,t){return Object(o.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),Object(o.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:this.props.type},Object(o.createElement)("div",{dangerouslySetInnerHTML:{__html:this.props.html}}),Object(o.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:"\n\t\t\t( function() {\n\t\t\t\tvar observer;\n\n\t\t\t\tif ( ! window.MutationObserver || ! document.body || ! window.parent ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfunction sendResize() {\n\t\t\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\t\t\twindow.parent.postMessage( {\n\t\t\t\t\t\taction: 'resize',\n\t\t\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\t\t\theight: clientBoundingRect.height,\n\t\t\t\t\t}, '*' );\n\t\t\t\t}\n\n\t\t\t\tobserver = new MutationObserver( sendResize );\n\t\t\t\tobserver.observe( document.body, {\n\t\t\t\t\tattributes: true,\n\t\t\t\t\tattributeOldValue: false,\n\t\t\t\t\tcharacterData: true,\n\t\t\t\t\tcharacterDataOldValue: false,\n\t\t\t\t\tchildList: true,\n\t\t\t\t\tsubtree: true\n\t\t\t\t} );\n\n\t\t\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t\t\t// the iframe root and interfere with our mechanism for\n\t\t\t\t// determining the unconstrained page bounds.\n\t\t\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\t\t\tif( ruleOrNode.style ) {\n\t\t\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function( style ) {\n\t\t\t\t\t\t\tif ( /^\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] ) ) {\n\t\t\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tArray.prototype.forEach.call( document.querySelectorAll( '[style]' ), removeViewportStyles );\n\t\t\t\tArray.prototype.forEach.call( document.styleSheets, function( stylesheet ) {\n\t\t\t\t\tArray.prototype.forEach.call( stylesheet.cssRules || stylesheet.rules, removeViewportStyles );\n\t\t\t\t} );\n\n\t\t\t\tdocument.body.style.position = 'absolute';\n\t\t\t\tdocument.body.style.width = '100%';\n\t\t\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\t\t\tsendResize();\n\n\t\t\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\t\t\twindow.addEventListener( 'resize', sendResize, true );\n\t\t} )();"}}),this.props.scripts&&this.props.scripts.map((function(e){return Object(o.createElement)("script",{key:e,src:e})})))),t=this.iframe.current.contentWindow.document;t.open(),t.write(""+Object(o.renderToString)(e)),t.close()}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(o.createElement)(Rt,{iframeRef:this.iframe,title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onLoad:this.trySandbox,onFocus:n,width:Math.ceil(this.state.width),height:Math.ceil(this.state.height)})}}],[{key:"defaultProps",get:function(){return{html:"",title:""}}}]),t}(o.Component),Hn=xn=Object(S.withGlobalEvents)({message:"checkMessageForResize"})(xn),Nn=1e4;var Rn=Object(o.forwardRef)((function(e,t){var n=e.className,r=e.children,a=e.actions,i=void 0===a?[]:a,s=e.onRemove,c=void 0===s?D.noop:s;Object(o.useEffect)((function(){var e=setTimeout((function(){c()}),Nn);return function(){return clearTimeout(e)}}),[]);var l=p()(n,"components-snackbar");return i&&i.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),i=[i[0]]),Object(o.createElement)("div",{ref:t,className:l,onClick:c,tabIndex:"0",role:"button",onKeyPress:c,label:Object(M.__)("Dismiss this notice")},Object(o.createElement)("div",{className:"components-snackbar__content"},r,i.map((function(e,t){var n=e.label,r=e.onClick,a=e.url;return Object(o.createElement)(E,{key:t,href:a,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))})),Ln=n(20),Fn=n.n(Ln),An=n(44),Vn=n(66);var Bn=function(e){var t=e.notices,n=e.className,r=e.children,a=e.onRemove,i=void 0===a?D.noop:a,s=Object(S.useReducedMotion)(),c=Object(o.useState)((function(){return new WeakMap})),l=Object(h.a)(c,1)[0],u=Object(Vn.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(An.a)(Fn.a.mark((function t(n){return Fn.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:l.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=Object(An.a)(Fn.a.mark((function e(t){return Fn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:s});n=p()("components-snackbar-list",n);var d=function(e){return function(){return i(e.id)}};return Object(o.createElement)("div",{className:n},r,u.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(o.createElement)(Vn.animated.div,{key:n,style:r},Object(o.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&l.set(t,e)}},Object(o.createElement)(Rn,Object(z.a)({},Object(D.omit)(t,["content"]),{onRemove:d(t)}),t.content)))})))};function Kn(){return Object(o.createElement)("span",{className:"components-spinner"})}var Wn=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=Object(P.a)(e,["tabId","onClick","children","selected"]);return Object(o.createElement)(E,Object(z.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},Un=function(e){function t(){var e;Object(b.a)(this,t);var n=(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).props,r=n.tabs,o=n.initialTabName;return e.handleClick=e.handleClick.bind(Object(g.a)(e)),e.onNavigate=e.onNavigate.bind(Object(g.a)(e)),e.state={selected:o||(r.length>0?r[0].name:null)},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleClick",value:function(e){var t=this.props.onSelect,n=void 0===t?D.noop:t;this.setState({selected:e}),n(e)}},{key:"onNavigate",value:function(e,t){t.click()}},{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,s=n.instanceId,c=n.orientation,l=void 0===c?"horizontal":c,u=n.tabs,h=Object(D.find)(u,{name:t}),f=s+"-"+h.name;return Object(o.createElement)("div",{className:i},Object(o.createElement)(jt,{role:"tablist",orientation:l,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},u.map((function(n){return Object(o.createElement)(Wn,{className:p()(n.className,Object(d.a)({},a,n.name===t)),tabId:s+"-"+n.name,"aria-controls":s+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(D.partial)(e.handleClick,n.name)},n.title)}))),h&&Object(o.createElement)("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content",tabIndex:"0"},this.props.children(h)))}}]),t}(o.Component),$n=Object(S.withInstanceId)(Un);var qn=Object(S.withInstanceId)((function(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,i=e.instanceId,s=e.onChange,c=e.rows,l=void 0===c?4:c,u=e.className,d=Object(P.a)(e,["label","hideLabelFromVision","value","help","instanceId","onChange","rows","className"]),h="inspector-textarea-control-".concat(i);return Object(o.createElement)(Se,{label:t,hideLabelFromVision:n,id:h,help:a,className:u},Object(o.createElement)("textarea",Object(z.a)({className:"components-textarea-control__input",id:h,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":a?h+"__help":void 0,value:r},d)))}));var Gn=function(e){return Object(o.createElement)("div",{className:"components-tip"},Object(o.createElement)(u,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(s,{d:"M20.45 4.91L19.04 3.5l-1.79 1.8 1.41 1.41 1.79-1.8zM13 4h-2V1h2v3zm10 9h-3v-2h3v2zm-12 6.95v-3.96l-1-.58c-1.24-.72-2-2.04-2-3.46 0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.42-.77 2.74-2 3.46l-1 .58v3.96h-2zm-2 2h6v-4.81c1.79-1.04 3-2.97 3-5.19 0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19v4.81zM4 13H1v-2h3v2zm2.76-7.71l-1.79-1.8L3.56 4.9l1.8 1.79 1.4-1.4z"})),Object(o.createElement)("p",null,e.children))},Yn=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"onChange",value:function(e){this.props.onChange&&this.props.onChange(e.target.checked)}},{key:"render",value:function(){var e,t,n=this.props,r=n.label,a=n.checked,i=n.help,s=n.instanceId,c=n.className,l="inspector-toggle-control-".concat(s);return i&&(e=l+"__help",t=Object(D.isFunction)(i)?i(a):i),Object(o.createElement)(Se,{id:l,help:t,className:p()("components-toggle-control",c)},Object(o.createElement)(Kt,{id:l,checked:a,onChange:this.onChange,"aria-describedby":e}),Object(o.createElement)("label",{htmlFor:l,className:"components-toggle-control__label"},r))}}]),t}(o.Component),Zn=Object(S.withInstanceId)(Yn),Xn=function(e){return Object(o.createElement)("div",{className:e.className},e.children)};var Qn=function(e){var t=e.containerClassName,n=e.icon,r=e.title,a=e.shortcut,i=e.subscript,s=e.onClick,c=e.className,l=e.isActive,u=e.isDisabled,d=e.extraProps,h=e.children;return Object(o.createElement)(Xn,{className:t},Object(o.createElement)(ee,Object(z.a)({icon:n,label:r,shortcut:a,"data-subscript":i,onClick:function(e){e.stopPropagation(),s()},className:p()("components-toolbar__control",c,{"is-active":l}),"aria-pressed":l,disabled:u},d)),h)},Jn=function(e){return Object(o.createElement)("div",{className:e.className},e.children)};var er=function(e){var t=e.controls,n=void 0===t?[]:t,r=e.children,a=e.className,i=e.isCollapsed,s=e.icon,c=e.label,l=Object(P.a)(e,["controls","children","className","isCollapsed","icon","label"]);if(!(n&&n.length||r))return null;var u=n;return Array.isArray(u[0])||(u=[u]),i?Object(o.createElement)(zt,{hasArrowIndicator:!0,icon:s,label:c,controls:u,className:p()("components-toolbar",a)}):Object(o.createElement)(Jn,Object(z.a)({className:p()("components-toolbar",a)},l),Object(D.flatMap)(u,(function(e,t){return e.map((function(e,n){return Object(o.createElement)(Qn,Object(z.a)({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e))}))})),r)},tr=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(g.a)(e)),e.focusNextRegion=e.focusRegion.bind(Object(g.a)(e),1),e.focusPreviousRegion=e.focusRegion.bind(Object(g.a)(e),-1),e.onClick=e.onClick.bind(Object(g.a)(e)),e.state={isFocusingRegions:!1},e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"bindContainer",value:function(e){this.container=e}},{key:"focusRegion",value:function(e){var t=Object(_.a)(this.container.querySelectorAll('[role="region"]'));if(t.length){var n=t[0],r=t.indexOf(document.activeElement);if(-1!==r){var o=r+e;n=t[o=(o=-1===o?t.length-1:o)===t.length?0:o]}n.focus(),this.setState({isFocusingRegions:!0})}}},{key:"onClick",value:function(){this.setState({isFocusingRegions:!1})}},{key:"render",value:function(){var t,n=p()("components-navigate-regions",{"is-focusing-regions":this.state.isFocusingRegions});return Object(o.createElement)("div",{ref:this.bindContainer,className:n,onClick:this.onClick},Object(o.createElement)(Ve,{bindGlobal:!0,shortcuts:(t={"ctrl+`":this.focusNextRegion},Object(d.a)(t,w.rawShortcut.access("n"),this.focusNextRegion),Object(d.a)(t,"ctrl+shift+`",this.focusPreviousRegion),Object(d.a)(t,w.rawShortcut.access("p"),this.focusPreviousRegion),t)}),Object(o.createElement)(e,this.props))}}]),n}(o.Component)}),"navigateRegions"),nr=function(e){return Object(S.createHigherOrderComponent)((function(t){return function(n){function r(){var e;return Object(b.a)(this,r),(e=Object(m.a)(this,Object(y.a)(r).apply(this,arguments))).nodeRef=e.props.node,e.state={fallbackStyles:void 0,grabStylesCompleted:!1},e.bindRef=e.bindRef.bind(Object(g.a)(e)),e}return Object(k.a)(r,n),Object(O.a)(r,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"componentDidMount",value:function(){this.grabFallbackStyles()}},{key:"componentDidUpdate",value:function(){this.grabFallbackStyles()}},{key:"grabFallbackStyles",value:function(){var t=this.state,n=t.grabStylesCompleted,r=t.fallbackStyles;if(this.nodeRef&&!n){var o=e(this.nodeRef,this.props);Object(D.isEqual)(o,r)||this.setState({fallbackStyles:o,grabStylesCompleted:!!Object(D.every)(o)})}}},{key:"render",value:function(){var e=Object(o.createElement)(t,Object(z.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(o.createElement)("div",{ref:this.bindRef}," ",e," ")}}]),r}(o.Component)}),"withFallbackStyles")},rr=n(27),or=16;function ar(e){return Object(S.createHigherOrderComponent)((function(t){var n,r="core/with-filters/"+e;var a=function(a){function i(){var r;return Object(b.a)(this,i),r=Object(m.a)(this,Object(y.a)(i).apply(this,arguments)),void 0===n&&(n=Object(rr.applyFilters)(e,t)),r}return Object(k.a)(i,a),Object(O.a)(i,[{key:"componentDidMount",value:function(){i.instances.push(this),1===i.instances.length&&(Object(rr.addAction)("hookRemoved",r,s),Object(rr.addAction)("hookAdded",r,s))}},{key:"componentWillUnmount",value:function(){i.instances=Object(D.without)(i.instances,this),0===i.instances.length&&(Object(rr.removeAction)("hookRemoved",r),Object(rr.removeAction)("hookAdded",r))}},{key:"render",value:function(){return Object(o.createElement)(n,this.props)}}]),i}(o.Component);a.instances=[];var i=Object(D.debounce)((function(){n=Object(rr.applyFilters)(e,t),a.instances.forEach((function(e){e.forceUpdate()}))}),or);function s(t){t===e&&i()}return a}),"withFilters")}var ir=n(70),sr=n.n(ir),cr=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).createNotice=e.createNotice.bind(Object(g.a)(e)),e.createErrorNotice=e.createErrorNotice.bind(Object(g.a)(e)),e.removeNotice=e.removeNotice.bind(Object(g.a)(e)),e.removeAllNotices=e.removeAllNotices.bind(Object(g.a)(e)),e.state={noticeList:[]},e.noticeOperations={createNotice:e.createNotice,createErrorNotice:e.createErrorNotice,removeAllNotices:e.removeAllNotices,removeNotice:e.removeNotice},e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"createNotice",value:function(e){var t=e.id?e:Object(r.a)({},e,{id:sr()()});this.setState((function(e){return{noticeList:[].concat(Object(_.a)(e.noticeList),[t])}}))}},{key:"createErrorNotice",value:function(e){this.createNotice({status:"error",content:e})}},{key:"removeNotice",value:function(e){this.setState((function(t){return{noticeList:t.noticeList.filter((function(t){return t.id!==e}))}}))}},{key:"removeAllNotices",value:function(){this.setState({noticeList:[]})}},{key:"render",value:function(){return Object(o.createElement)(e,Object(z.a)({noticeList:this.state.noticeList,noticeOperations:this.noticeOperations,noticeUI:this.state.noticeList.length>0&&Object(o.createElement)(mn,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),n}(o.Component)}));n.d(t,"Circle",(function(){return a})),n.d(t,"G",(function(){return i})),n.d(t,"Path",(function(){return s})),n.d(t,"Polygon",(function(){return c})),n.d(t,"Rect",(function(){return l})),n.d(t,"SVG",(function(){return u})),n.d(t,"HorizontalRule",(function(){return"hr"})),n.d(t,"BlockQuotation",(function(){return"blockquote"})),n.d(t,"Animate",(function(){return v})),n.d(t,"Autocomplete",(function(){return we})),n.d(t,"BaseControl",(function(){return Se})),n.d(t,"Button",(function(){return E})),n.d(t,"ButtonGroup",(function(){return Ce})),n.d(t,"CheckboxControl",(function(){return je})),n.d(t,"ClipboardButton",(function(){return ze})),n.d(t,"ColorIndicator",(function(){return Te})),n.d(t,"ColorPalette",(function(){return nt})),n.d(t,"ColorPicker",(function(){return tt})),n.d(t,"Dashicon",(function(){return J})),n.d(t,"DateTimePicker",(function(){return ct})),n.d(t,"DatePicker",(function(){return it})),n.d(t,"TimePicker",(function(){return st})),n.d(t,"Disabled",(function(){return pt})),n.d(t,"Draggable",(function(){return bt})),n.d(t,"DropZone",(function(){return wt})),n.d(t,"DropZoneProvider",(function(){return _t})),n.d(t,"Dropdown",(function(){return Ie})),n.d(t,"DropdownMenu",(function(){return zt})),n.d(t,"ExternalLink",(function(){return Tt})),n.d(t,"FocalPointPicker",(function(){return xt})),n.d(t,"FocusableIframe",(function(){return Rt})),n.d(t,"FontSizePicker",(function(){return Vt})),n.d(t,"FormFileUpload",(function(){return Bt})),n.d(t,"FormToggle",(function(){return Kt})),n.d(t,"FormTokenField",(function(){return Jt})),n.d(t,"Icon",(function(){return en})),n.d(t,"IconButton",(function(){return ee})),n.d(t,"KeyboardShortcuts",(function(){return Ve})),n.d(t,"MenuGroup",(function(){return tn})),n.d(t,"MenuItem",(function(){return nn})),n.d(t,"MenuItemsChoice",(function(){return rn})),n.d(t,"Modal",(function(){return vn})),n.d(t,"ScrollLock",(function(){return te})),n.d(t,"NavigableMenu",(function(){return jt})),n.d(t,"TabbableContainer",(function(){return Pt})),n.d(t,"Notice",(function(){return bn})),n.d(t,"NoticeList",(function(){return mn})),n.d(t,"Panel",(function(){return gn})),n.d(t,"PanelBody",(function(){return _n})),n.d(t,"PanelHeader",(function(){return yn})),n.d(t,"PanelRow",(function(){return Dn})),n.d(t,"Placeholder",(function(){return wn})),n.d(t,"Popover",(function(){return ye})),n.d(t,"QueryControls",(function(){return Pn})),n.d(t,"RadioControl",(function(){return En})),n.d(t,"RangeControl",(function(){return Lt})),n.d(t,"ResizableBox",(function(){return Tn})),n.d(t,"ResponsiveWrapper",(function(){return In})),n.d(t,"SandBox",(function(){return Hn})),n.d(t,"SelectControl",(function(){return Ft})),n.d(t,"Snackbar",(function(){return Rn})),n.d(t,"SnackbarList",(function(){return Bn})),n.d(t,"Spinner",(function(){return Kn})),n.d(t,"TabPanel",(function(){return $n})),n.d(t,"TextControl",(function(){return $e})),n.d(t,"TextareaControl",(function(){return qn})),n.d(t,"Tip",(function(){return Gn})),n.d(t,"ToggleControl",(function(){return Zn})),n.d(t,"Toolbar",(function(){return er})),n.d(t,"ToolbarButton",(function(){return Qn})),n.d(t,"Tooltip",(function(){return Q})),n.d(t,"TreeSelect",(function(){return Mn})),n.d(t,"IsolatedEventContainer",(function(){return ne})),n.d(t,"createSlotFill",(function(){return pe})),n.d(t,"Slot",(function(){return ue})),n.d(t,"Fill",(function(){return fe})),n.d(t,"SlotFillProvider",(function(){return ce})),n.d(t,"navigateRegions",(function(){return tr})),n.d(t,"withConstrainedTabbing",(function(){return U})),n.d(t,"withFallbackStyles",(function(){return nr})),n.d(t,"withFilters",(function(){return ar})),n.d(t,"withFocusOutside",(function(){return q})),n.d(t,"withFocusReturn",(function(){return W})),n.d(t,"FocusReturnProvider",(function(){return K})),n.d(t,"withNotices",(function(){return cr})),n.d(t,"withSpokenMessages",(function(){return Oe}))}]); \ No newline at end of file + */Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116;function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case h:case i:case c:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case l:return e;default:return t}}case b:case v:case a:return t}}}function y(e){return m(e)===h}t.typeOf=m,t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=f,t.Fragment=i,t.Lazy=b,t.Memo=v,t.Portal=a,t.Profiler=c,t.StrictMode=s,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===h||e===c||e===s||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f)},t.isAsyncMode=function(e){return y(e)||m(e)===d},t.isConcurrentMode=y,t.isContextConsumer=function(e){return m(e)===u},t.isContextProvider=function(e){return m(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return m(e)===f},t.isFragment=function(e){return m(e)===i},t.isLazy=function(e){return m(e)===b},t.isMemo=function(e){return m(e)===v},t.isPortal=function(e){return m(e)===a},t.isProfiler=function(e){return m(e)===c},t.isStrictMode=function(e){return m(e)===s},t.isSuspense=function(e){return m(e)===p}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CHANNEL="__direction__",t.DIRECTIONS={LTR:"ltr",RTL:"rtl"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(34),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default.shape({getState:a.default.func,setState:a.default.func,subscribe:a.default.func})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof e)return e;if("function"==typeof e)return e(t);return""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(28)),o=n(46),a=s(n(126)),i=s(n(252));function s(e){return e&&e.__esModule?e:{default:e}}var c=(0,o.forbidExtraProps)({children:(0,o.or)([(0,o.childrenOfType)(a.default),(0,o.childrenOfType)(i.default)]).isRequired});function l(e){var t=e.children;return r.default.createElement("tr",null,t)}l.propTypes=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCustomizableCalendarDay=t.selectedStyles=t.lastInRangeStyles=t.selectedSpanStyles=t.hoveredSpanStyles=t.blockedOutOfRangeStyles=t.blockedCalendarStyles=t.blockedMinNightsStyles=t.highlightedCalendarStyles=t.outsideStyles=t.defaultStyles=void 0;var r=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:a.default.localeData().firstDayOfWeek();if(!a.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===i.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),s=(r.day()+7-n)%7,c=(n+6-o.day())%7,l=r.clone().subtract(s,"day"),u=o.clone().add(c,"day").diff(l,"days")+1,d=l.clone(),h=[],f=0;f=s&&f=t||n<0||m&&e-v>=d}function k(){var e=o();if(O(e))return _(e);f=setTimeout(k,function(e){var n=t-(e-p);return m?c(n,d-(e-v)):n}(e))}function _(e){return f=void 0,y&&l?g(e):(l=u=void 0,h)}function D(){var e=o(),n=O(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return function(e){return v=e,f=setTimeout(k,t),b?g(e):h}(p);if(m)return clearTimeout(f),f=setTimeout(k,t),g(p)}return void 0===f&&(f=setTimeout(k,t)),h}return t=a(t)||0,r(n)&&(b=!!n.leading,d=(m="maxWait"in n)?s(a(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),D.cancel=function(){void 0!==f&&clearTimeout(f),v=0,l=p=u=f=void 0},D.flush=function(){return void 0===f?h:_(o())},D}},function(e,t,n){var r=n(176);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(61))},function(e,t,n){var r=n(130),o=n(268),a=NaN,i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?a:+e}},function(e,t,n){var r=n(269),o=n(272),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==a}},function(e,t,n){var r=n(177),o=n(270),a=n(271),i="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:i:c&&c in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(177),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return e?n(e(t.clone())):t};var r=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:a.default.localeData().firstDayOfWeek(),n=function(e,t){return(e.day()-t+7)%7}(e.clone().startOf("month"),t);return Math.ceil((n+e.daysInMonth())/7)};var r,o=n(29),a=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return"undefined"!=typeof document&&document.activeElement}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureSingleDatePicker=void 0;var r=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"top",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=n.split(" "),i=Object(h.a)(a,2),s=i[0],c=i[1],l=void 0===c?"center":c,u=function(e,t,n){var r,o=t.height,a=e.top+e.height/2,i={popoverTop:a,contentHeight:(a-o/2>0?o/2:a)+(a+o/2>window.innerHeight?window.innerHeight-a:o/2)},s={popoverTop:e.top,contentHeight:e.top-N-o>0?o:e.top-N},c={popoverTop:e.bottom,contentHeight:e.bottom+N+o>window.innerHeight?window.innerHeight-N-e.bottom:o},l=null;if("middle"===n&&i.contentHeight===o)r="middle";else if("top"===n&&s.contentHeight===o)r="top";else if("bottom"===n&&c.contentHeight===o)r="bottom";else{var u="top"===(r=s.contentHeight>c.contentHeight?"top":"bottom")?s.contentHeight:c.contentHeight;l=u!==o?u:null}return{yAxis:r,popoverTop:"middle"===r?i.popoverTop:"top"===r?s.popoverTop:c.popoverTop,contentHeight:l}}(e,t,s),d=function(e,t,n,r){var o=t.width;"left"===n&&L()?n="right":"right"===n&&L()&&(n="left");var a,i=Math.round(e.left+e.width/2),s={popoverLeft:i,contentWidth:(i-o/2>0?o/2:i)+(i+o/2>window.innerWidth?window.innerWidth-i:o/2)},c="middle"===r?e.left:i,l={popoverLeft:c,contentWidth:c-o>0?o:c},u="middle"===r?e.right:i,d={popoverLeft:u,contentWidth:u+o>window.innerWidth?window.innerWidth-u:o},h=null;if("center"===n&&s.contentWidth===o)a="center";else if("left"===n&&l.contentWidth===o)a="left";else if("right"===n&&d.contentWidth===o)a="right";else{var f="left"===(a=l.contentWidth>d.contentWidth?"left":"right")?l.contentWidth:d.contentWidth;h=f!==o?f:null}return{xAxis:a,popoverLeft:"center"===a?s.popoverLeft:"left"===a?l.popoverLeft:d.popoverLeft,contentWidth:h}}(e,t,l,u.yAxis);return Object(r.a)({isMobile:R()&&o},d,u)}var A=Object(o.createContext)({focusHistory:[]}),V=A.Provider,B=A.Consumer;V.displayName="FocusReturnProvider",B.displayName="FocusReturnConsumer";var K=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onFocus=e.onFocus.bind(Object(g.a)(e)),e.state={focusHistory:[]},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"onFocus",value:function(e){var t=this.state.focusHistory,n=Object(D.uniq)([].concat(Object(_.a)(t),[e.target]).slice(-100).reverse()).reverse();this.setState({focusHistory:n})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className;return Object(o.createElement)(V,{value:this.state},Object(o.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),t}(o.Component);var W=Object(S.createHigherOrderComponent)((function e(t){if((r=t)instanceof o.Component||"function"==typeof r){var n=t;return e({})(n)}var r,a=t.onFocusReturn,i=void 0===a?D.stubTrue:a;return function(e){var t=function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).ownFocusedElements=new Set,e.activeElementOnMount=document.activeElement,e.setIsFocusedFalse=function(){return e.isFocused=!1},e.setIsFocusedTrue=function(t){e.ownFocusedElements.add(t.target),e.isFocused=!0},e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==i())for(var r,o=[].concat(Object(_.a)(D.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(_.a)(n)))),[e]);r=o.pop();)if(document.body.contains(r))return void r.focus()}},{key:"render",value:function(){return Object(o.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(o.createElement)(e,this.props.childProps))}}]),n}(o.Component);return function(e){return Object(o.createElement)(B,null,(function(n){return Object(o.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn"),U=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).focusContainRef=Object(o.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(g.a)(e)),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===w.TAB){var t=j.focus.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],r=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),r.focus()):(e.shiftKey||e.target!==r)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return Object(o.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(o.createElement)(e,this.props))}}]),n}(o.Component)}),"withConstrainedTabbing"),$=["button","submit"];var q=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(g.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(g.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(g.a)(e)),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(D.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(D.includes)($,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(o.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(o.createElement)(e,Object(z.a)({ref:this.bindNode},this.props)))}}]),n}(o.Component)}),"withFocusOutside"),G=function(e){function t(){return Object(b.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),t}(o.Component),Y=q(G);var Z=function(e){var t,n,r=e.shortcut,a=e.className;return r?(Object(D.isString)(r)&&(t=r),Object(D.isObject)(r)&&(t=r.display,n=r.ariaLabel),Object(o.createElement)("span",{className:a,"aria-label":n},t)):null},X=700,Q=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).delayedSetIsOver=Object(D.debounce)((function(t){return e.setState({isOver:t})}),X),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===o.Children.count(n)){var r=o.Children.only(n);"function"==typeof r.props[e]&&r.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var o=Object(D.includes)(["focus","mouseenter"],r.type);o!==n.state.isOver&&(t?n.delayedSetIsOver(o):n.setState({isOver:o}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,r=e.text,a=e.shortcut;if(1!==o.Children.count(t))return t;var i=o.Children.only(t),s=this.state.isOver;return Object(o.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(o.concatChildren)(i.props.children,s&&Object(o.createElement)(ye,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1},r,Object(o.createElement)(Z,{className:"components-tooltip__shortcut",shortcut:a})))})}}]),t}(o.Component),J=function(e){function t(){return Object(b.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"render",value:function(){var e,t=this.props,n=t.icon,r=t.size,a=void 0===r?20:r,i=t.className,c=(t.ariaPressed,Object(P.a)(t,["icon","size","className","ariaPressed"]));switch(n){case"admin-appearance":e="M14.48 11.06L7.41 3.99l1.5-1.5c.5-.56 2.3-.47 3.51.32 1.21.8 1.43 1.28 2.91 2.1 1.18.64 2.45 1.26 4.45.85zm-.71.71L6.7 4.7 4.93 6.47c-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39.39 1.03 0 1.42-.6.6-1.43 1.11-2.21 1.69-.35.26-.7.53-1.01.84C1.43 14.23.4 16.08 1.4 17.07c.99 1 2.84-.03 4.18-1.36.31-.31.58-.66.85-1.02.57-.78 1.08-1.61 1.69-2.21.39-.39 1.02-.39 1.41 0l1.06 1.06c.39.39 1.02.39 1.41 0z";break;case"admin-collapse":e="M10 2.16c4.33 0 7.84 3.51 7.84 7.84s-3.51 7.84-7.84 7.84S2.16 14.33 2.16 10 5.71 2.16 10 2.16zm2 11.72V6.12L6.18 9.97z";break;case"admin-comments":e="M5 2h9c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z";break;case"admin-customizer":e="M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z";break;case"admin-generic":e="M18 12h-2.18c-.17.7-.44 1.35-.81 1.93l1.54 1.54-2.1 2.1-1.54-1.54c-.58.36-1.23.63-1.91.79V19H8v-2.18c-.68-.16-1.33-.43-1.91-.79l-1.54 1.54-2.12-2.12 1.54-1.54c-.36-.58-.63-1.23-.79-1.91H1V9.03h2.17c.16-.7.44-1.35.8-1.94L2.43 5.55l2.1-2.1 1.54 1.54c.58-.37 1.24-.64 1.93-.81V2h3v2.18c.68.16 1.33.43 1.91.79l1.54-1.54 2.12 2.12-1.54 1.54c.36.59.64 1.24.8 1.94H18V12zm-8.5 1.5c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z";break;case"admin-home":e="M16 8.5l1.53 1.53-1.06 1.06L10 4.62l-6.47 6.47-1.06-1.06L10 2.5l4 4v-2h2v4zm-6-2.46l6 5.99V18H4v-5.97zM12 17v-5H8v5h4z";break;case"admin-links":e="M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z";break;case"admin-media":e="M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z";break;case"admin-multisite":e="M14.27 6.87L10 3.14 5.73 6.87 5 6.14l5-4.38 5 4.38zM14 8.42l-4.05 3.43L6 8.38v-.74l4-3.5 4 3.5v.78zM11 9.7V8H9v1.7h2zm-1.73 4.03L5 10 .73 13.73 0 13l5-4.38L10 13zm10 0L15 10l-4.27 3.73L10 13l5-4.38L20 13zM5 11l4 3.5V18H1v-3.5zm10 0l4 3.5V18h-8v-3.5zm-9 6v-2H4v2h2zm10 0v-2h-2v2h2z";break;case"admin-network":e="M16.95 2.58c1.96 1.95 1.96 5.12 0 7.07-1.51 1.51-3.75 1.84-5.59 1.01l-1.87 3.31-2.99.31L5 18H2l-1-2 7.95-7.69c-.92-1.87-.62-4.18.93-5.73 1.95-1.96 5.12-1.96 7.07 0zm-2.51 3.79c.74 0 1.33-.6 1.33-1.34 0-.73-.59-1.33-1.33-1.33-.73 0-1.33.6-1.33 1.33 0 .74.6 1.34 1.33 1.34z";break;case"admin-page":e="M6 15V2h10v13H6zm-1 1h8v2H3V5h2v11z";break;case"admin-plugins":e="M13.11 4.36L9.87 7.6 8 5.73l3.24-3.24c.35-.34 1.05-.2 1.56.32.52.51.66 1.21.31 1.55zm-8 1.77l.91-1.12 9.01 9.01-1.19.84c-.71.71-2.63 1.16-3.82 1.16H6.14L4.9 17.26c-.59.59-1.54.59-2.12 0-.59-.58-.59-1.53 0-2.12l1.24-1.24v-3.88c0-1.13.4-3.19 1.09-3.89zm7.26 3.97l3.24-3.24c.34-.35 1.04-.21 1.55.31.52.51.66 1.21.31 1.55l-3.24 3.25z";break;case"admin-post":e="M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z";break;case"admin-settings":e="M18 16V4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h13c.55 0 1-.45 1-1zM8 11h1c.55 0 1 .45 1 1s-.45 1-1 1H8v1.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V13H6c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V11zm5-2h-1c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V7h1c.55 0 1 .45 1 1s-.45 1-1 1h-1v5.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V9z";break;case"admin-site-alt":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm7.5 6.48c-.274.896-.908 1.64-1.75 2.05-.45-1.69-1.658-3.074-3.27-3.75.13-.444.41-.83.79-1.09-.43-.28-1-.42-1.34.07-.53.69 0 1.61.21 2v.14c-.555-.337-.99-.84-1.24-1.44-.966-.03-1.922.208-2.76.69-.087-.565-.032-1.142.16-1.68.733.07 1.453-.23 1.92-.8.46-.52-.13-1.18-.59-1.58h.36c1.36-.01 2.702.335 3.89 1 1.36 1.005 2.194 2.57 2.27 4.26.24 0 .7-.55.91-.92.172.34.32.69.44 1.05zM9 16.84c-2.05-2.08.25-3.75-1-5.24-.92-.85-2.29-.26-3.11-1.23-.282-1.473.267-2.982 1.43-3.93.52-.44 4-1 5.42.22.83.715 1.415 1.674 1.67 2.74.46.035.918-.066 1.32-.29.41 2.98-3.15 6.74-5.73 7.73zM5.15 2.09c.786-.3 1.676-.028 2.16.66-.42.38-.94.63-1.5.72.02-.294.085-.584.19-.86l-.85-.52z";break;case"admin-site-alt2":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm2.92 12.34c0 .35.14.63.36.66.22.03.47-.22.58-.6l.2.08c.718.384 1.07 1.22.84 2-.15.69-.743 1.198-1.45 1.24-.49-1.21-2.11.06-3.56-.22-.612-.154-1.11-.6-1.33-1.19 1.19-.11 2.85-1.73 4.36-1.97zM8 11.27c.918 0 1.695-.68 1.82-1.59.44.54.41 1.324-.07 1.83-.255.223-.594.325-.93.28-.335-.047-.635-.236-.82-.52zm3-.76c.41.39 3-.06 3.52 1.09-.95-.2-2.95.61-3.47-1.08l-.05-.01zM9.73 5.45v.27c-.65-.77-1.33-1.07-1.61-.57-.28.5 1 1.11.76 1.88-.24.77-1.27.56-1.88 1.61-.61 1.05-.49 2.42 1.24 3.67-1.192-.132-2.19-.962-2.54-2.11-.4-1.2-.09-2.26-.78-2.46C4 7.46 3 8.71 3 9.8c-1.26-1.26.05-2.86-1.2-4.18C3.5 1.998 7.644.223 11.44 1.49c-1.1 1.02-1.722 2.458-1.71 3.96z";break;case"admin-site-alt3":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z";break;case"admin-site":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm3.46 11.95c0 1.47-.8 3.3-4.06 4.7.3-4.17-2.52-3.69-3.2-5 .126-1.1.804-2.063 1.8-2.55-1.552-.266-3-.96-4.18-2 .05.47.28.904.64 1.21-.782-.295-1.458-.817-1.94-1.5.977-3.225 3.883-5.482 7.25-5.63-.84 1.38-1.5 4.13 0 5.57C7.23 7 6.26 5 5.41 5.79c-1.13 1.06.33 2.51 3.42 3.08 3.29.59 3.66 1.58 3.63 3.08zm1.34-4c-.32-1.11.62-2.23 1.69-3.14 1.356 1.955 1.67 4.45.84 6.68-.77-1.89-2.17-2.32-2.53-3.57v.03z";break;case"admin-tools":e="M16.68 9.77c-1.34 1.34-3.3 1.67-4.95.99l-5.41 6.52c-.99.99-2.59.99-3.58 0s-.99-2.59 0-3.57l6.52-5.42c-.68-1.65-.35-3.61.99-4.95 1.28-1.28 3.12-1.62 4.72-1.06l-2.89 2.89 2.82 2.82 2.86-2.87c.53 1.58.18 3.39-1.08 4.65zM3.81 16.21c.4.39 1.04.39 1.43 0 .4-.4.4-1.04 0-1.43-.39-.4-1.03-.4-1.43 0-.39.39-.39 1.03 0 1.43z";break;case"admin-users":e="M10 9.25c-2.27 0-2.73-3.44-2.73-3.44C7 4.02 7.82 2 9.97 2c2.16 0 2.98 2.02 2.71 3.81 0 0-.41 3.44-2.68 3.44zm0 2.57L12.72 10c2.39 0 4.52 2.33 4.52 4.53v2.49s-3.65 1.13-7.24 1.13c-3.65 0-7.24-1.13-7.24-1.13v-2.49c0-2.25 1.94-4.48 4.47-4.48z";break;case"album":e="M0 18h10v-.26c1.52.4 3.17.35 4.76-.24 4.14-1.52 6.27-6.12 4.75-10.26-1.43-3.89-5.58-6-9.51-4.98V2H0v16zM9 3v14H1V3h8zm5.45 8.22c-.68 1.35-2.32 1.9-3.67 1.23-.31-.15-.57-.35-.78-.59V8.13c.8-.86 2.11-1.13 3.22-.58 1.35.68 1.9 2.32 1.23 3.67zm-2.75-.82c.22.16.53.12.7-.1.16-.22.12-.53-.1-.7s-.53-.12-.7.1c-.16.21-.12.53.1.7zm3.01 3.67c-1.17.78-2.56.99-3.83.69-.27-.06-.44-.34-.37-.61s.34-.43.62-.36l.17.04c.96.17 1.98-.01 2.86-.59.47-.32.86-.72 1.14-1.18.15-.23.45-.3.69-.16.23.15.3.46.16.69-.36.57-.84 1.08-1.44 1.48zm1.05 1.57c-1.48.99-3.21 1.32-4.84 1.06-.28-.05-.47-.32-.41-.6.05-.27.32-.45.61-.39l.22.04c1.31.15 2.68-.14 3.87-.94.71-.47 1.27-1.07 1.7-1.74.14-.24.45-.31.68-.16.24.14.31.45.16.69-.49.79-1.16 1.49-1.99 2.04z";break;case"align-center":e="M3 5h14V3H3v2zm12 8V7H5v6h10zM3 17h14v-2H3v2z";break;case"align-full-width":e="M17 13V3H3v10h14zM5 17h10v-2H5v2z";break;case"align-left":e="M3 5h14V3H3v2zm9 8V7H3v6h9zm2-4h3V7h-3v2zm0 4h3v-2h-3v2zM3 17h14v-2H3v2z";break;case"align-none":e="M3 5h14V3H3v2zm10 8V7H3v6h10zM3 17h14v-2H3v2z";break;case"align-pull-left":e="M9 16V4H3v12h6zm2-7h6V7h-6v2zm0 4h6v-2h-6v2z";break;case"align-pull-right":e="M17 16V4h-6v12h6zM9 7H3v2h6V7zm0 4H3v2h6v-2z";break;case"align-right":e="M3 5h14V3H3v2zm0 4h3V7H3v2zm14 4V7H8v6h9zM3 13h3v-2H3v2zm0 4h14v-2H3v2z";break;case"align-wide":e="M5 5h10V3H5v2zm12 8V7H3v6h14zM5 17h10v-2H5v2z";break;case"analytics":e="M18 18V2H2v16h16zM16 5H4V4h12v1zM7 7v3h3c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3zm1 2V7c1.1 0 2 .9 2 2H8zm8-1h-4V7h4v1zm0 3h-4V9h4v2zm0 2h-4v-1h4v1zm0 3H4v-1h12v1z";break;case"archive":e="M19 4v2H1V4h18zM2 7h16v10H2V7zm11 3V9H7v1h6z";break;case"arrow-down-alt":e="M9 2h2v12l4-4 2 1-7 7-7-7 2-1 4 4V2z";break;case"arrow-down-alt2":e="M5 6l5 5 5-5 2 1-7 7-7-7z";break;case"arrow-down":e="M15 8l-4.03 6L7 8h8z";break;case"arrow-left-alt":e="M18 9v2H6l4 4-1 2-7-7 7-7 1 2-4 4h12z";break;case"arrow-left-alt2":e="M14 5l-5 5 5 5-1 2-7-7 7-7z";break;case"arrow-left":e="M13 14L7 9.97 13 6v8z";break;case"arrow-right-alt":e="M2 11V9h12l-4-4 1-2 7 7-7 7-1-2 4-4H2z";break;case"arrow-right-alt2":e="M6 15l5-5-5-5 1-2 7 7-7 7z";break;case"arrow-right":e="M8 6l6 4.03L8 14V6z";break;case"arrow-up-alt":e="M11 18H9V6l-4 4-2-1 7-7 7 7-2 1-4-4v12z";break;case"arrow-up-alt2":e="M15 14l-5-5-5 5-2-1 7-7 7 7z";break;case"arrow-up":e="M7 13l4.03-6L15 13H7z";break;case"art":e="M8.55 3.06c1.01.34-1.95 2.01-.1 3.13 1.04.63 3.31-2.22 4.45-2.86.97-.54 2.67-.65 3.53 1.23 1.09 2.38.14 8.57-3.79 11.06-3.97 2.5-8.97 1.23-10.7-2.66-2.01-4.53 3.12-11.09 6.61-9.9zm1.21 6.45c.73 1.64 4.7-.5 3.79-2.8-.59-1.49-4.48 1.25-3.79 2.8z";break;case"awards":e="M4.46 5.16L5 7.46l-.54 2.29 2.01 1.24L7.7 13l2.3-.54 2.3.54 1.23-2.01 2.01-1.24L15 7.46l.54-2.3-2-1.24-1.24-2.01-2.3.55-2.29-.54-1.25 2zm5.55 6.34C7.79 11.5 6 9.71 6 7.49c0-2.2 1.79-3.99 4.01-3.99 2.2 0 3.99 1.79 3.99 3.99 0 2.22-1.79 4.01-3.99 4.01zm-.02-1C8.33 10.5 7 9.16 7 7.5c0-1.65 1.33-3 2.99-3S13 5.85 13 7.5c0 1.66-1.35 3-3.01 3zm3.84 1.1l-1.28 2.24-2.08-.47L13 19.2l1.4-2.2h2.5zm-7.7.07l1.25 2.25 2.13-.51L7 19.2 5.6 17H3.1z";break;case"backup":e="M13.65 2.88c3.93 2.01 5.48 6.84 3.47 10.77s-6.83 5.48-10.77 3.47c-1.87-.96-3.2-2.56-3.86-4.4l1.64-1.03c.45 1.57 1.52 2.95 3.08 3.76 3.01 1.54 6.69.35 8.23-2.66 1.55-3.01.36-6.69-2.65-8.24C9.78 3.01 6.1 4.2 4.56 7.21l1.88.97-4.95 3.08-.39-5.82 1.78.91C4.9 2.4 9.75.89 13.65 2.88zm-4.36 7.83C9.11 10.53 9 10.28 9 10c0-.07.03-.12.04-.19h-.01L10 5l.97 4.81L14 13l-4.5-2.12.02-.02c-.08-.04-.16-.09-.23-.15z";break;case"block-default":e="M15 6V4h-3v2H8V4H5v2H4c-.6 0-1 .4-1 1v8h14V7c0-.6-.4-1-1-1h-1z";break;case"book-alt":e="M5 17h13v2H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h13v14H5c-.55 0-1 .45-1 1s.45 1 1 1zm2-3.5v-11c0-.28-.22-.5-.5-.5s-.5.22-.5.5v11c0 .28.22.5.5.5s.5-.22.5-.5z";break;case"book":e="M16 3h2v16H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h9v14H5c-.55 0-1 .45-1 1s.45 1 1 1h11V3z";break;case"buddicons-activity":e="M8 1v7h2V6c0-1.52 1.45-3 3-3v.86c.55-.52 1.26-.86 2-.86v3h1c1.1 0 2 .9 2 2s-.9 2-2 2h-1v6c0 .55-.45 1-1 1s-1-.45-1-1v-2.18c-.31.11-.65.18-1 .18v2c0 .55-.45 1-1 1s-1-.45-1-1v-2H8v2c0 .55-.45 1-1 1s-1-.45-1-1v-2c-.35 0-.69-.07-1-.18V16c0 .55-.45 1-1 1s-1-.45-1-1v-4H2v-1c0-1.66 1.34-3 3-3h2V1h1zm5 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1z";break;case"buddicons-bbpress-logo":e="M8.5 12.6c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.3 1.7c-.3 1 .3 1.5 1 1.5 1.2 0 1.9-1.1 2.2-2.4zm-4-6.4C3.7 7.3 3.3 8.6 3.3 10c0 1 .2 1.9.6 2.8l1-4.6c.3-1.7.4-2-.4-2zm9.3 6.4c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.4 1.7c-.2 1.1.4 1.6 1.1 1.6 1.1-.1 1.9-1.2 2.2-2.5zM10 3.3c-2 0-3.9.9-5.1 2.3.6-.1 1.4-.2 1.8-.3.2 0 .2.1.2.2 0 .2-1 4.8-1 4.8.5-.3 1.2-.7 1.8-.7.9 0 1.5.4 1.9.9l.5-2.4c.4-1.6.4-1.9-.4-1.9-.4 0-.4-.5 0-.6.6-.1 1.8-.2 2.3-.3.2 0 .2.1.2.2l-1 4.8c.5-.4 1.2-.7 1.9-.7 1.7 0 2.5 1.3 2.1 3-.3 1.7-2 3-3.8 3-1.3 0-2.1-.7-2.3-1.4-.7.8-1.7 1.3-2.8 1.4 1.1.7 2.4 1.1 3.7 1.1 3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zM10 2c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 15.5c-2.1 0-4-.8-5.3-2.2-.3-.4-.7-.8-1-1.2-.7-1.2-1.2-2.6-1.2-4.1 0-4.1 3.4-7.5 7.5-7.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5z";break;case"buddicons-buddypress-logo":e="M10 0c5.52 0 10 4.48 10 10s-4.48 10-10 10S0 15.52 0 10 4.48 0 10 0zm0 .5C4.75.5.5 4.75.5 10s4.25 9.5 9.5 9.5 9.5-4.25 9.5-9.5S15.25.5 10 .5zm0 1c4.7 0 8.5 3.8 8.5 8.5s-3.8 8.5-8.5 8.5-8.5-3.8-8.5-8.5S5.3 1.5 10 1.5zm1.8 1.71c-.57 0-1.1.17-1.55.45 1.56.37 2.73 1.77 2.73 3.45 0 .69-.21 1.33-.55 1.87 1.31-.29 2.29-1.45 2.29-2.85 0-1.61-1.31-2.92-2.92-2.92zm-2.38 1c-1.61 0-2.92 1.31-2.92 2.93 0 1.61 1.31 2.92 2.92 2.92 1.62 0 2.93-1.31 2.93-2.92 0-1.62-1.31-2.93-2.93-2.93zm4.25 5.01l-.51.59c2.34.69 2.45 3.61 2.45 3.61h1.28c0-4.71-3.22-4.2-3.22-4.2zm-2.1.8l-2.12 2.09-2.12-2.09C3.12 10.24 3.89 15 3.89 15h11.08c.47-4.98-3.4-4.98-3.4-4.98z";break;case"buddicons-community":e="M9 3c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zm4 0c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zM9 9V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 0V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 1c0-1.48-1.41-2.77-3.5-3.46V9c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5V6.01c-.17 0-.33-.01-.5-.01s-.33.01-.5.01V9c0 .83-.67 1.5-1.5 1.5S6.5 9.83 6.5 9V6.54C4.41 7.23 3 8.52 3 10c0 1.41.95 2.65 3.21 3.37 1.11.35 2.39 1.12 3.79 1.12s2.69-.78 3.79-1.13C16.04 12.65 17 11.41 17 10zm-7 5.43c1.43 0 2.74-.79 3.88-1.11 1.9-.53 2.49-1.34 3.12-2.32v3c0 2.21-3.13 4-7 4s-7-1.79-7-4v-3c.64.99 1.32 1.8 3.15 2.33 1.13.33 2.44 1.1 3.85 1.1z";break;case"buddicons-forums":e="M13.5 7h-7C5.67 7 5 6.33 5 5.5S5.67 4 6.5 4h1.59C8.04 3.84 8 3.68 8 3.5 8 2.67 8.67 2 9.5 2h1c.83 0 1.5.67 1.5 1.5 0 .18-.04.34-.09.5h1.59c.83 0 1.5.67 1.5 1.5S14.33 7 13.5 7zM4 8h12c.55 0 1 .45 1 1s-.45 1-1 1H4c-.55 0-1-.45-1-1s.45-1 1-1zm1 3h10c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1s.45-1 1-1zm2 3h6c.55 0 1 .45 1 1s-.45 1-1 1h-1.09c.05.16.09.32.09.5 0 .83-.67 1.5-1.5 1.5h-1c-.83 0-1.5-.67-1.5-1.5 0-.18.04-.34.09-.5H7c-.55 0-1-.45-1-1s.45-1 1-1z";break;case"buddicons-friends":e="M8.75 5.77C8.75 4.39 7 2 7 2S5.25 4.39 5.25 5.77 5.9 7.5 7 7.5s1.75-.35 1.75-1.73zm6 0C14.75 4.39 13 2 13 2s-1.75 2.39-1.75 3.77S11.9 7.5 13 7.5s1.75-.35 1.75-1.73zM9 17V9c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm6 0V9c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-9-6l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2zm-6 3l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2z";break;case"buddicons-groups":e="M15.45 6.25c1.83.94 1.98 3.18.7 4.98-.8 1.12-2.33 1.88-3.46 1.78L10.05 18H9l-2.65-4.99c-1.13.16-2.73-.63-3.55-1.79-1.28-1.8-1.13-4.04.71-4.97.48-.24.96-.33 1.43-.31-.01.4.01.8.07 1.21.26 1.69 1.41 3.53 2.86 4.37-.19.55-.49.99-.88 1.25L9 16.58v-5.66C7.64 10.55 6.26 8.76 6 7c-.4-2.65 1-5 3.5-5s3.9 2.35 3.5 5c-.26 1.76-1.64 3.55-3 3.92v5.77l2.07-3.84c-.44-.23-.77-.71-.99-1.3 1.48-.83 2.65-2.69 2.91-4.4.06-.41.08-.82.07-1.22.46-.01.92.08 1.39.32z";break;case"buddicons-pm":e="M10 2c3 0 8 5 8 5v11H2V7s5-5 8-5zm7 14.72l-3.73-2.92L17 11l-.43-.37-2.26 1.3.24-4.31-8.77-.52-.46 4.54-1.99-.95L3 11l3.73 2.8-3.44 2.85.4.43L10 13l6.53 4.15z";break;case"buddicons-replies":e="M17.54 10.29c1.17 1.17 1.17 3.08 0 4.25-1.18 1.17-3.08 1.17-4.25 0l-.34-.52c0 3.66-2 4.38-2.95 4.98-.82-.6-2.95-1.28-2.95-4.98l-.34.52c-1.17 1.17-3.07 1.17-4.25 0-1.17-1.17-1.17-3.08 0-4.25 0 0 1.02-.67 2.1-1.3C3.71 7.84 3.2 6.42 3.2 4.88c0-.34.03-.67.08-1C3.53 5.66 4.47 7.22 5.8 8.3c.67-.35 1.85-.83 2.37-.92H8c-1.1 0-2-.9-2-2s.9-2 2-2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5h2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5c1.1 0 2 .9 2 2s-.9 2-2 2h-.17c.51.09 1.78.61 2.38.92 1.33-1.08 2.27-2.64 2.52-4.42.05.33.08.66.08 1 0 1.54-.51 2.96-1.36 4.11 1.08.63 2.09 1.3 2.09 1.3zM8.5 6.38c.5 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm3-2c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-2.3 5.73c-.12.11-.19.26-.19.43.02.25.23.46.49.46h1c.26 0 .47-.21.49-.46 0-.15-.07-.29-.19-.43-.08-.06-.18-.11-.3-.11h-1c-.12 0-.22.05-.3.11zM12 12.5c0-.12-.06-.28-.19-.38-.09-.07-.19-.12-.31-.12h-3c-.12 0-.22.05-.31.12-.11.1-.19.25-.19.38 0 .28.22.5.5.5h3c.28 0 .5-.22.5-.5zM8.5 15h3c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-3c-.28 0-.5.22-.5.5s.22.5.5.5zm1 2h1c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-1c-.28 0-.5.22-.5.5s.22.5.5.5z";break;case"buddicons-topics":e="M10.44 1.66c-.59-.58-1.54-.58-2.12 0L2.66 7.32c-.58.58-.58 1.53 0 2.12.6.6 1.56.56 2.12 0l5.66-5.66c.58-.58.59-1.53 0-2.12zm2.83 2.83c-.59-.59-1.54-.59-2.12 0l-5.66 5.66c-.59.58-.59 1.53 0 2.12.6.6 1.56.55 2.12 0l5.66-5.66c.58-.58.58-1.53 0-2.12zm1.06 6.72l4.18 4.18c.59.58.59 1.53 0 2.12s-1.54.59-2.12 0l-4.18-4.18-1.77 1.77c-.59.58-1.54.58-2.12 0-.59-.59-.59-1.54 0-2.13l5.66-5.65c.58-.59 1.53-.59 2.12 0 .58.58.58 1.53 0 2.12zM5 15c0-1.59-1.66-4-1.66-4S2 13.78 2 15s.6 2 1.34 2h.32C4.4 17 5 16.59 5 15z";break;case"buddicons-tracking":e="M10.98 6.78L15.5 15c-1 2-3.5 3-5.5 3s-4.5-1-5.5-3L9 6.82c-.75-1.23-2.28-1.98-4.29-2.03l2.46-2.92c1.68 1.19 2.46 2.32 2.97 3.31.56-.87 1.2-1.68 2.7-2.12l1.83 2.86c-1.42-.34-2.64.08-3.69.86zM8.17 10.4l-.93 1.69c.49.11 1 .16 1.54.16 1.35 0 2.58-.36 3.55-.95l-1.01-1.82c-.87.53-1.96.86-3.15.92zm.86 5.38c1.99 0 3.73-.74 4.74-1.86l-.98-1.76c-1 1.12-2.74 1.87-4.74 1.87-.62 0-1.21-.08-1.76-.21l-.63 1.15c.94.5 2.1.81 3.37.81z";break;case"building":e="M3 20h14V0H3v20zM7 3H5V1h2v2zm4 0H9V1h2v2zm4 0h-2V1h2v2zM7 6H5V4h2v2zm4 0H9V4h2v2zm4 0h-2V4h2v2zM7 9H5V7h2v2zm4 0H9V7h2v2zm4 0h-2V7h2v2zm-8 3H5v-2h2v2zm4 0H9v-2h2v2zm4 0h-2v-2h2v2zm-4 7H5v-6h6v6zm4-4h-2v-2h2v2zm0 3h-2v-2h2v2z";break;case"businessman":e="M7.3 6l-.03-.19c-.04-.37-.05-.73-.03-1.08.02-.36.1-.71.25-1.04.14-.32.31-.61.52-.86s.49-.46.83-.6c.34-.15.72-.23 1.13-.23.69 0 1.26.2 1.71.59s.76.87.91 1.44.18 1.16.09 1.78l-.03.19c-.01.09-.05.25-.11.48-.05.24-.12.47-.2.69-.08.21-.19.45-.34.72-.14.27-.3.49-.47.69-.18.19-.4.34-.67.48-.27.13-.55.19-.86.19s-.59-.06-.87-.19c-.26-.13-.49-.29-.67-.5-.18-.2-.34-.42-.49-.66-.15-.25-.26-.49-.34-.73-.09-.25-.16-.47-.21-.67-.06-.21-.1-.37-.12-.5zm9.2 6.24c.41.7.5 1.41.5 2.14v2.49c0 .03-.12.08-.29.13-.18.04-.42.13-.97.27-.55.12-1.1.24-1.65.34s-1.19.19-1.95.27c-.75.08-1.46.12-2.13.12-.68 0-1.39-.04-2.14-.12-.75-.07-1.4-.17-1.98-.27-.58-.11-1.08-.23-1.56-.34-.49-.11-.8-.21-1.06-.29L3 16.87v-2.49c0-.75.07-1.46.46-2.15s.81-1.25 1.5-1.68C5.66 10.12 7.19 10 8 10l1.67 1.67L9 13v3l1.02 1.08L11 16v-3l-.68-1.33L11.97 10c.77 0 2.2.07 2.9.52.71.45 1.21 1.02 1.63 1.72z";break;case"button":e="M17 5H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm1 7c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V7c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v5z";break;case"calendar-alt":e="M15 4h3v15H2V4h3V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1h4V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1zM6 3v2.5c0 .14.05.26.15.36.09.09.21.14.35.14s.26-.05.35-.14c.1-.1.15-.22.15-.36V3c0-.14-.05-.26-.15-.35-.09-.1-.21-.15-.35-.15s-.26.05-.35.15c-.1.09-.15.21-.15.35zm7 0v2.5c0 .14.05.26.14.36.1.09.22.14.36.14s.26-.05.36-.14c.09-.1.14-.22.14-.36V3c0-.14-.05-.26-.14-.35-.1-.1-.22-.15-.36-.15s-.26.05-.36.15c-.09.09-.14.21-.14.35zm4 15V8H3v10h14zM7 9v2H5V9h2zm2 0h2v2H9V9zm4 2V9h2v2h-2zm-6 1v2H5v-2h2zm2 0h2v2H9v-2zm4 2v-2h2v2h-2zm-6 1v2H5v-2h2zm4 2H9v-2h2v2zm4 0h-2v-2h2v2z";break;case"calendar":e="M15 4h3v14H2V4h3V3c0-.83.67-1.5 1.5-1.5S8 2.17 8 3v1h4V3c0-.83.67-1.5 1.5-1.5S15 2.17 15 3v1zM6 3v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5S6 2.72 6 3zm7 0v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5s-.5.22-.5.5zm4 14V8H3v9h14zM7 16V9H5v7h2zm4 0V9H9v7h2zm4 0V9h-2v7h2z";break;case"camera":e="M6 5V3H3v2h3zm12 10V4H9L7 6H2v9h16zm-7-8c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z";break;case"carrot":e="M2 18.43c1.51 1.36 11.64-4.67 13.14-7.21.72-1.22-.13-3.01-1.52-4.44C15.2 5.73 16.59 9 17.91 8.31c.6-.32.99-1.31.7-1.92-.52-1.08-2.25-1.08-3.42-1.21.83-.2 2.82-1.05 2.86-2.25.04-.92-1.13-1.97-2.05-1.86-1.21.14-1.65 1.88-2.06 3-.05-.71-.2-2.27-.98-2.95-1.04-.91-2.29-.05-2.32 1.05-.04 1.33 2.82 2.07 1.92 3.67C11.04 4.67 9.25 4.03 8.1 4.7c-.49.31-1.05.91-1.63 1.69.89.94 2.12 2.07 3.09 2.72.2.14.26.42.11.62-.14.21-.42.26-.62.12-.99-.67-2.2-1.78-3.1-2.71-.45.67-.91 1.43-1.34 2.23.85.86 1.93 1.83 2.79 2.41.2.14.25.42.11.62-.14.21-.42.26-.63.12-.85-.58-1.86-1.48-2.71-2.32C2.4 13.69 1.1 17.63 2 18.43z";break;case"cart":e="M6 13h9c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1V4H2c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H6v1zm-.5 3c.83 0 1.5.67 1.5 1.5S6.33 19 5.5 19 4 18.33 4 17.5 4.67 16 5.5 16zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z";break;case"category":e="M5 7h13v10H2V4h7l2 2H4v9h1V7z";break;case"chart-area":e="M18 18l.01-12.28c.59-.35.99-.99.99-1.72 0-1.1-.9-2-2-2s-2 .9-2 2c0 .8.47 1.48 1.14 1.8l-4.13 6.58c-.33-.24-.73-.38-1.16-.38-.84 0-1.55.51-1.85 1.24l-2.14-1.53c.09-.22.14-.46.14-.71 0-1.11-.89-2-2-2-1.1 0-2 .89-2 2 0 .73.4 1.36.98 1.71L1 18h17zM17 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM5 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm5.85 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"chart-bar":e="M18 18V2h-4v16h4zm-6 0V7H8v11h4zm-6 0v-8H2v8h4z";break;case"chart-line":e="M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z";break;case"chart-pie":e="M10 10V3c3.87 0 7 3.13 7 7h-7zM9 4v7h7c0 3.87-3.13 7-7 7s-7-3.13-7-7 3.13-7 7-7z";break;case"clipboard":e="M11.9.39l1.4 1.4c1.61.19 3.5-.74 4.61.37s.18 3 .37 4.61l1.4 1.4c.39.39.39 1.02 0 1.41l-9.19 9.2c-.4.39-1.03.39-1.42 0L1.29 11c-.39-.39-.39-1.02 0-1.42l9.2-9.19c.39-.39 1.02-.39 1.41 0zm.58 2.25l-.58.58 4.95 4.95.58-.58c-.19-.6-.2-1.22-.15-1.82.02-.31.05-.62.09-.92.12-1 .18-1.63-.17-1.98s-.98-.29-1.98-.17c-.3.04-.61.07-.92.09-.6.05-1.22.04-1.82-.15zm4.02.93c.39.39.39 1.03 0 1.42s-1.03.39-1.42 0-.39-1.03 0-1.42 1.03-.39 1.42 0zm-6.72.36l-.71.7L15.44 11l.7-.71zM8.36 5.34l-.7.71 6.36 6.36.71-.7zM6.95 6.76l-.71.7 6.37 6.37.7-.71zM5.54 8.17l-.71.71 6.36 6.36.71-.71zM4.12 9.58l-.71.71 6.37 6.37.71-.71z";break;case"clock":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 14c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6zm-.71-5.29c.07.05.14.1.23.15l-.02.02L14 13l-3.03-3.19L10 5l-.97 4.81h.01c0 .02-.01.05-.02.09S9 9.97 9 10c0 .28.1.52.29.71z";break;case"cloud-saved":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16h10c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5zm-6.3 5.9l-3.2-3.2 1.4-1.4 1.8 1.8 3.8-3.8 1.4 1.4-5.2 5.2z";break;case"cloud-upload":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z";break;case"cloud":e="M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z";break;case"columns":e="M3 15h6V5H3v10zm8 0h6V5h-6v10z";break;case"controls-back":e="M2 10l10-6v3.6L18 4v12l-6-3.6V16z";break;case"controls-forward":e="M18 10L8 16v-3.6L2 16V4l6 3.6V4z";break;case"controls-pause":e="M5 16V4h3v12H5zm7-12h3v12h-3V4z";break;case"controls-play":e="M5 4l10 6-10 6V4z";break;case"controls-repeat":e="M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z";break;case"controls-skipback":e="M11.98 7.63l6-3.6v12l-6-3.6v3.6l-8-4.8v4.8h-2v-12h2v4.8l8-4.8v3.6z";break;case"controls-skipforward":e="M8 12.4L2 16V4l6 3.6V4l8 4.8V4h2v12h-2v-4.8L8 16v-3.6z";break;case"controls-volumeoff":e="M2 7h4l5-4v14l-5-4H2V7z";break;case"controls-volumeon":e="M2 7h4l5-4v14l-5-4H2V7zm12.69-2.46C14.82 4.59 18 5.92 18 10s-3.18 5.41-3.31 5.46c-.06.03-.13.04-.19.04-.2 0-.39-.12-.46-.31-.11-.26.02-.55.27-.65.11-.05 2.69-1.15 2.69-4.54 0-3.41-2.66-4.53-2.69-4.54-.25-.1-.38-.39-.27-.65.1-.25.39-.38.65-.27zM16 10c0 2.57-2.23 3.43-2.32 3.47-.06.02-.12.03-.18.03-.2 0-.39-.12-.47-.32-.1-.26.04-.55.29-.65.07-.02 1.68-.67 1.68-2.53s-1.61-2.51-1.68-2.53c-.25-.1-.38-.39-.29-.65.1-.25.39-.39.65-.29.09.04 2.32.9 2.32 3.47z";break;case"cover-image":e="M2.2 1h15.5c.7 0 1.3.6 1.3 1.2v11.5c0 .7-.6 1.2-1.2 1.2H2.2c-.6.1-1.2-.5-1.2-1.1V2.2C1 1.6 1.6 1 2.2 1zM17 13V3H3v10h14zm-4-4s0-5 3-5v7c0 .6-.4 1-1 1H5c-.6 0-1-.4-1-1V7c2 0 3 4 3 4s1-4 3-4 3 2 3 2zM4 17h12v2H4z";break;case"dashboard":e="M3.76 16h12.48c1.1-1.37 1.76-3.11 1.76-5 0-4.42-3.58-8-8-8s-8 3.58-8 8c0 1.89.66 3.63 1.76 5zM10 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM6 6c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5.37 5.55L12 7v6c0 1.1-.9 2-2 2s-2-.9-2-2c0-.57.24-1.08.63-1.45zM4 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm12 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 3c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1z";break;case"desktop":e="M3 2h14c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1h-5v2h2c.55 0 1 .45 1 1v1H5v-1c0-.55.45-1 1-1h2v-2H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm13 9V4H4v7h12zM5 5h9L5 9V5z";break;case"dismiss":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm5 11l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z";break;case"download":e="M14.01 4v6h2V2H4v8h2.01V4h8zm-2 2v6h3l-5 6-5-6h3V6h4z";break;case"edit":e="M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z";break;case"editor-aligncenter":e="M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z";break;case"editor-alignleft":e="M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z";break;case"editor-alignright":e="M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z";break;case"editor-bold":e="M6 4v13h4.54c1.37 0 2.46-.33 3.26-1 .8-.66 1.2-1.58 1.2-2.77 0-.84-.17-1.51-.51-2.01s-.9-.85-1.67-1.03v-.09c.57-.1 1.02-.4 1.36-.9s.51-1.13.51-1.91c0-1.14-.39-1.98-1.17-2.5C12.75 4.26 11.5 4 9.78 4H6zm2.57 5.15V6.26h1.36c.73 0 1.27.11 1.61.32.34.22.51.58.51 1.07 0 .54-.16.92-.47 1.15s-.82.35-1.51.35h-1.5zm0 2.19h1.6c1.44 0 2.16.53 2.16 1.61 0 .6-.17 1.05-.51 1.34s-.86.43-1.57.43H8.57v-3.38z";break;case"editor-break":e="M16 4h2v9H7v3l-5-4 5-4v3h9V4z";break;case"editor-code":e="M9 6l-4 4 4 4-1 2-6-6 6-6zm2 8l4-4-4-4 1-2 6 6-6 6z";break;case"editor-contract":e="M15.75 6.75L18 3v14l-2.25-3.75L17 12h-4v4l1.25-1.25L18 17H2l3.75-2.25L7 16v-4H3l1.25 1.25L2 17V3l2.25 3.75L3 8h4V4L5.75 5.25 2 3h16l-3.75 2.25L13 4v4h4z";break;case"editor-customchar":e="M10 5.4c1.27 0 2.24.36 2.91 1.08.66.71 1 1.76 1 3.13 0 1.28-.23 2.37-.69 3.27-.47.89-1.27 1.52-2.22 2.12v2h6v-2h-3.69c.92-.64 1.62-1.34 2.12-2.34.49-1.01.74-2.13.74-3.35 0-1.78-.55-3.19-1.65-4.22S11.92 3.54 10 3.54s-3.43.53-4.52 1.57c-1.1 1.04-1.65 2.44-1.65 4.2 0 1.21.24 2.31.73 3.33.48 1.01 1.19 1.71 2.1 2.36H3v2h6v-2c-.98-.64-1.8-1.28-2.24-2.17-.45-.89-.67-1.96-.67-3.22 0-1.37.33-2.41 1-3.13C7.75 5.76 8.72 5.4 10 5.4z";break;case"editor-expand":e="M7 8h6v4H7zm-5 5v4h4l-1.2-1.2L7 12l-3.8 2.2M14 17h4v-4l-1.2 1.2L13 12l2.2 3.8M14 3l1.3 1.3L13 8l3.8-2.2L18 7V3M6 3H2v4l1.2-1.2L7 8 4.7 4.3";break;case"editor-help":e="M17 10c0-3.87-3.14-7-7-7-3.87 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7zm-6.3 1.48H9.14v-.43c0-.38.08-.7.24-.98s.46-.57.88-.89c.41-.29.68-.53.81-.71.14-.18.2-.39.2-.62 0-.25-.09-.44-.28-.58-.19-.13-.45-.19-.79-.19-.58 0-1.25.19-2 .57l-.64-1.28c.87-.49 1.8-.74 2.77-.74.81 0 1.45.2 1.92.58.48.39.71.91.71 1.55 0 .43-.09.8-.29 1.11-.19.32-.57.67-1.11 1.06-.38.28-.61.49-.71.63-.1.15-.15.34-.15.57v.35zm-1.47 2.74c-.18-.17-.27-.42-.27-.73 0-.33.08-.58.26-.75s.43-.25.77-.25c.32 0 .57.09.75.26s.27.42.27.74c0 .3-.09.55-.27.72-.18.18-.43.27-.75.27-.33 0-.58-.09-.76-.26z";break;case"editor-indent":e="M3 5V3h9v2H3zm10-1V3h4v1h-4zm0 3h2V5l4 3.5-4 3.5v-2h-2V7zM3 8V6h9v2H3zm2 3V9h7v2H5zm-2 3v-2h9v2H3zm10 0v-1h4v1h-4zm-4 3v-2h3v2H9z";break;case"editor-insertmore":e="M17 7V3H3v4h14zM6 11V9H3v2h3zm6 0V9H8v2h4zm5 0V9h-3v2h3zm0 6v-4H3v4h14z";break;case"editor-italic":e="M14.78 6h-2.13l-2.8 9h2.12l-.62 2H4.6l.62-2h2.14l2.8-9H8.03l.62-2h6.75z";break;case"editor-justify":e="M2 3h16v2H2V3zm0 4h16v2H2V7zm0 4h16v2H2v-2zm0 4h16v2H2v-2z";break;case"editor-kitchensink":e="M19 2v6H1V2h18zm-1 5V3H2v4h16zM5 4v2H3V4h2zm3 0v2H6V4h2zm3 0v2H9V4h2zm3 0v2h-2V4h2zm3 0v2h-2V4h2zm2 5v9H1V9h18zm-1 8v-7H2v7h16zM5 11v2H3v-2h2zm3 0v2H6v-2h2zm3 0v2H9v-2h2zm6 0v2h-5v-2h5zm-6 3v2H3v-2h8zm3 0v2h-2v-2h2zm3 0v2h-2v-2h2z";break;case"editor-ltr":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z";break;case"editor-ol-rtl":e="M15.025 8.75a1.048 1.048 0 0 1 .45-.1.507.507 0 0 1 .35.11.455.455 0 0 1 .13.36.803.803 0 0 1-.06.3 1.448 1.448 0 0 1-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76v-.7h-1.72v-.04l.51-.48a7.276 7.276 0 0 0 .7-.71 1.75 1.75 0 0 0 .3-.49 1.254 1.254 0 0 0 .1-.51.968.968 0 0 0-.16-.56 1.007 1.007 0 0 0-.44-.37 1.512 1.512 0 0 0-.65-.14 1.98 1.98 0 0 0-.51.06 1.9 1.9 0 0 0-.42.15 3.67 3.67 0 0 0-.48.35l.45.54a2.505 2.505 0 0 1 .45-.3zM16.695 15.29a1.29 1.29 0 0 0-.74-.3v-.02a1.203 1.203 0 0 0 .65-.37.973.973 0 0 0 .23-.65.81.81 0 0 0-.37-.71 1.72 1.72 0 0 0-1-.26 2.185 2.185 0 0 0-1.33.4l.4.6a1.79 1.79 0 0 1 .46-.23 1.18 1.18 0 0 1 .41-.07c.38 0 .58.15.58.46a.447.447 0 0 1-.22.43 1.543 1.543 0 0 1-.7.12h-.31v.66h.31a1.764 1.764 0 0 1 .75.12.433.433 0 0 1 .23.41.55.55 0 0 1-.2.47 1.084 1.084 0 0 1-.63.15 2.24 2.24 0 0 1-.57-.08 2.671 2.671 0 0 1-.52-.2v.74a2.923 2.923 0 0 0 1.18.22 1.948 1.948 0 0 0 1.22-.33 1.077 1.077 0 0 0 .43-.92.836.836 0 0 0-.26-.64zM15.005 4.17c.06-.05.16-.14.3-.28l-.02.42V7h.84V3h-.69l-1.29 1.03.4.51zM4.02 5h9v1h-9zM4.02 10h9v1h-9zM4.02 15h9v1h-9z";break;case"editor-ol":e="M6 7V3h-.69L4.02 4.03l.4.51.46-.37c.06-.05.16-.14.3-.28l-.02.42V7H6zm2-2h9v1H8V5zm-1.23 6.95v-.7H5.05v-.04l.51-.48c.33-.31.57-.54.7-.71.14-.17.24-.33.3-.49.07-.16.1-.33.1-.51 0-.21-.05-.4-.16-.56-.1-.16-.25-.28-.44-.37s-.41-.14-.65-.14c-.19 0-.36.02-.51.06-.15.03-.29.09-.42.15-.12.07-.29.19-.48.35l.45.54c.16-.13.31-.23.45-.3.15-.07.3-.1.45-.1.14 0 .26.03.35.11s.13.2.13.36c0 .1-.02.2-.06.3s-.1.21-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76zM8 10h9v1H8v-1zm-1.29 3.95c0-.3-.12-.54-.37-.71-.24-.17-.58-.26-1-.26-.52 0-.96.13-1.33.4l.4.6c.17-.11.32-.19.46-.23.14-.05.27-.07.41-.07.38 0 .58.15.58.46 0 .2-.07.35-.22.43s-.38.12-.7.12h-.31v.66h.31c.34 0 .59.04.75.12.15.08.23.22.23.41 0 .22-.07.37-.2.47-.14.1-.35.15-.63.15-.19 0-.38-.03-.57-.08s-.36-.12-.52-.2v.74c.34.15.74.22 1.18.22.53 0 .94-.11 1.22-.33.29-.22.43-.52.43-.92 0-.27-.09-.48-.26-.64s-.42-.26-.74-.3v-.02c.27-.06.49-.19.65-.37.15-.18.23-.39.23-.65zM8 15h9v1H8v-1z";break;case"editor-outdent":e="M7 4V3H3v1h4zm10 1V3H8v2h9zM7 7H5V5L1 8.5 5 12v-2h2V7zm10 1V6H8v2h9zm-2 3V9H8v2h7zm2 3v-2H8v2h9zM7 14v-1H3v1h4zm4 3v-2H8v2h3z";break;case"editor-paragraph":e="M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71C15.5 2.1 15.27 2 15 2z";break;case"editor-paste-text":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.44 1-1 0-.55-.45-1-1-1s-1 .45-1 1c0 .56.45 1 1 1zm5.45-1H17c.55 0 1 .45 1 1v12c0 .56-.45 1-1 1H3c-.55 0-1-.44-1-1V5c0-.55.45-1 1-1h1.55L4 4.63V7h12V4.63zM14 11V9H6v2h3v5h2v-5h3z";break;case"editor-paste-word":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm8 12V5c0-.55-.45-1-1-1h-1.54l.54.63V7H4V4.62L4.55 4H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-3-8l-2 7h-2l-1-5-1 5H6.92L5 9h2l1 5 1-5h2l1 5 1-5h2z";break;case"editor-quote":e="M9.49 13.22c0-.74-.2-1.38-.61-1.9-.62-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L7.88 4c-2.73 1.3-5.42 4.28-4.96 8.05C3.21 14.43 4.59 16 6.54 16c.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03zm8.05 0c0-.74-.2-1.38-.61-1.9-.63-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L15.93 4c-2.73 1.3-5.41 4.28-4.95 8.05.29 2.38 1.66 3.95 3.61 3.95.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03z";break;case"editor-removeformatting":e="M14.29 4.59l1.1 1.11c.41.4.61.94.61 1.47v2.12c0 .53-.2 1.07-.61 1.47l-6.63 6.63c-.4.41-.94.61-1.47.61s-1.07-.2-1.47-.61l-1.11-1.1-1.1-1.11c-.41-.4-.61-.94-.61-1.47v-2.12c0-.54.2-1.07.61-1.48l6.63-6.62c.4-.41.94-.61 1.47-.61s1.06.2 1.47.61zm-6.21 9.7l6.42-6.42c.39-.39.39-1.03 0-1.43L12.36 4.3c-.19-.19-.45-.29-.72-.29s-.52.1-.71.29l-6.42 6.42c-.39.4-.39 1.04 0 1.43l2.14 2.14c.38.38 1.04.38 1.43 0z";break;case"editor-rtl":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM19 6l-5 4 5 4V6z";break;case"editor-spellcheck":e="M15.84 2.76c.25 0 .49.04.71.11.23.07.44.16.64.25l.35-.81c-.52-.26-1.08-.39-1.69-.39-.58 0-1.09.13-1.52.37-.43.25-.76.61-.99 1.08C13.11 3.83 13 4.38 13 5c0 .99.23 1.75.7 2.28s1.15.79 2.02.79c.6 0 1.13-.09 1.6-.26v-.84c-.26.08-.51.14-.74.19-.24.05-.49.08-.74.08-.59 0-1.04-.19-1.34-.57-.32-.37-.47-.93-.47-1.66 0-.7.16-1.25.48-1.65.33-.4.77-.6 1.33-.6zM6.5 8h1.04L5.3 2H4.24L2 8h1.03l.58-1.66H5.9zM8 2v6h2.17c.67 0 1.19-.15 1.57-.46.38-.3.56-.72.56-1.26 0-.4-.1-.72-.3-.95-.19-.24-.5-.39-.93-.47v-.04c.35-.06.6-.21.78-.44.18-.24.28-.53.28-.88 0-.52-.19-.9-.56-1.14-.36-.24-.96-.36-1.79-.36H8zm.98 2.48V2.82h.85c.44 0 .77.06.97.19.21.12.31.33.31.61 0 .31-.1.53-.29.66-.18.13-.48.2-.89.2h-.95zM5.64 5.5H3.9l.54-1.56c.14-.4.25-.76.32-1.1l.15.52c.07.23.13.4.17.51zm3.34-.23h.99c.44 0 .76.08.98.23.21.15.32.38.32.69 0 .34-.11.59-.32.75s-.52.24-.93.24H8.98V5.27zM4 13l5 5 9-8-1-1-8 6-4-3z";break;case"editor-strikethrough":e="M15.82 12.25c.26 0 .5-.02.74-.07.23-.05.48-.12.73-.2v.84c-.46.17-.99.26-1.58.26-.88 0-1.54-.26-2.01-.79-.39-.44-.62-1.04-.68-1.79h-.94c.12.21.18.48.18.79 0 .54-.18.95-.55 1.26-.38.3-.9.45-1.56.45H8v-2.5H6.59l.93 2.5H6.49l-.59-1.67H3.62L3.04 13H2l.93-2.5H2v-1h1.31l.93-2.49H5.3l.92 2.49H8V7h1.77c1 0 1.41.17 1.77.41.37.24.55.62.55 1.13 0 .35-.09.64-.27.87l-.08.09h1.29c.05-.4.15-.77.31-1.1.23-.46.55-.82.98-1.06.43-.25.93-.37 1.51-.37.61 0 1.17.12 1.69.38l-.35.81c-.2-.1-.42-.18-.64-.25s-.46-.11-.71-.11c-.55 0-.99.2-1.31.59-.23.29-.38.66-.44 1.11H17v1h-2.95c.06.5.2.9.44 1.19.3.37.75.56 1.33.56zM4.44 8.96l-.18.54H5.3l-.22-.61c-.04-.11-.09-.28-.17-.51-.07-.24-.12-.41-.14-.51-.08.33-.18.69-.33 1.09zm4.53-1.09V9.5h1.19c.28-.02.49-.09.64-.18.19-.13.28-.35.28-.66 0-.28-.1-.48-.3-.61-.2-.12-.53-.18-.97-.18h-.84zm-3.33 2.64v-.01H3.91v.01h1.73zm5.28.01l-.03-.02H8.97v1.68h1.04c.4 0 .71-.08.92-.23.21-.16.31-.4.31-.74 0-.31-.11-.54-.32-.69z";break;case"editor-table":e="M18 17V3H2v14h16zM16 7H4V5h12v2zm-7 4H4V9h5v2zm7 0h-5V9h5v2zm-7 4H4v-2h5v2zm7 0h-5v-2h5v2z";break;case"editor-textcolor":e="M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z";break;case"editor-ul":e="M5.5 7C4.67 7 4 6.33 4 5.5 4 4.68 4.67 4 5.5 4 6.32 4 7 4.68 7 5.5 7 6.33 6.32 7 5.5 7zM8 5h9v1H8V5zm-2.5 7c-.83 0-1.5-.67-1.5-1.5C4 9.68 4.67 9 5.5 9c.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 10h9v1H8v-1zm-2.5 7c-.83 0-1.5-.67-1.5-1.5 0-.82.67-1.5 1.5-1.5.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 15h9v1H8v-1z";break;case"editor-underline":e="M14 5h-2v5.71c0 1.99-1.12 2.98-2.45 2.98-1.32 0-2.55-1-2.55-2.96V5H5v5.87c0 1.91 1 4.54 4.48 4.54 3.49 0 4.52-2.58 4.52-4.5V5zm0 13v-2H5v2h9z";break;case"editor-unlink":e="M17.74 2.26c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-.32.33-.69.58-1.08.77L13 10l1.69-1.64.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-.76.76L10 7l-.65-2.14c.19-.38.44-.75.77-1.07l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM2 4l8 6-6-8zm4-2l4 8-2-8H6zM2 6l8 4-8-2V6zm7.36 7.69L10 13l.74 2.35-1.38 1.39c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.39-1.38L7 10l-.69.64-1.52 1.53c-.85.84-.85 2.2 0 3.04.84.85 2.2.85 3.04 0zM18 16l-8-6 6 8zm-4 2l-4-8 2 8h2zm4-4l-8-4 8 2v2z";break;case"editor-video":e="M16 2h-3v1H7V2H4v15h3v-1h6v1h3V2zM6 3v1H5V3h1zm9 0v1h-1V3h1zm-2 1v5H7V4h6zM6 5v1H5V5h1zm9 0v1h-1V5h1zM6 7v1H5V7h1zm9 0v1h-1V7h1zM6 9v1H5V9h1zm9 0v1h-1V9h1zm-2 1v5H7v-5h6zm-7 1v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1z";break;case"ellipsis":e="M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z";break;case"email-alt":e="M19 14.5v-9c0-.83-.67-1.5-1.5-1.5H3.49c-.83 0-1.5.67-1.5 1.5v9c0 .83.67 1.5 1.5 1.5H17.5c.83 0 1.5-.67 1.5-1.5zm-1.31-9.11c.33.33.15.67-.03.84L13.6 9.95l3.9 4.06c.12.14.2.36.06.51-.13.16-.43.15-.56.05l-4.37-3.73-2.14 1.95-2.13-1.95-4.37 3.73c-.13.1-.43.11-.56-.05-.14-.15-.06-.37.06-.51l3.9-4.06-4.06-3.72c-.18-.17-.36-.51-.03-.84s.67-.17.95.07l6.24 5.04 6.25-5.04c.28-.24.62-.4.95-.07z";break;case"email-alt2":e="M18.01 11.18V2.51c0-1.19-.9-1.81-2-1.37L4 5.91c-1.1.44-2 1.77-2 2.97v8.66c0 1.2.9 1.81 2 1.37l12.01-4.77c1.1-.44 2-1.76 2-2.96zm-1.43-7.46l-6.04 9.33-6.65-4.6c-.1-.07-.36-.32-.17-.64.21-.36.65-.21.65-.21l6.3 2.32s4.83-6.34 5.11-6.7c.13-.17.43-.34.73-.13.29.2.16.49.07.63z";break;case"email":e="M3.87 4h13.25C18.37 4 19 4.59 19 5.79v8.42c0 1.19-.63 1.79-1.88 1.79H3.87c-1.25 0-1.88-.6-1.88-1.79V5.79c0-1.2.63-1.79 1.88-1.79zm6.62 8.6l6.74-5.53c.24-.2.43-.66.13-1.07-.29-.41-.82-.42-1.17-.17l-5.7 3.86L4.8 5.83c-.35-.25-.88-.24-1.17.17-.3.41-.11.87.13 1.07z";break;case"embed-audio":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 3H7v4c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.4 0 .7.1 1 .3V5h4v2zm4 3.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-generic":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3 6.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-photo":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 8H3V6h7v6zm4-1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3zm-6-4V8.5L7.2 10 6 9.2 4 11h5zM4.6 8.6c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1z";break;case"embed-post":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.6 9l-.4.3c-.4.4-.5 1.1-.2 1.6l-.8.8-1.1-1.1-1.3 1.3c-.2.2-1.6 1.3-1.8 1.1-.2-.2.9-1.6 1.1-1.8l1.3-1.3-1.1-1.1.8-.8c.5.3 1.2.3 1.6-.2l.3-.3c.5-.5.5-1.2.2-1.7L8 5l3 2.9-.8.8c-.5-.2-1.2-.2-1.6.3zm5.4 1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-video":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 6.5L8 9.1V11H3V6h5v1.8l2-1.3v4zm4 0L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"excerpt-view":e="M19 18V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6V3h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6v-6h11z";break;case"exit":e="M13 3v2h2v10h-2v2h4V3h-4zm0 8V9H5.4l4.3-4.3-1.4-1.4L1.6 10l6.7 6.7 1.4-1.4L5.4 11H13z";break;case"external":e="M9 3h8v8l-2-1V6.92l-5.6 5.59-1.41-1.41L14.08 5H10zm3 12v-3l2-2v7H3V6h8L9 8H5v7h7z";break;case"facebook-alt":e="M8.46 18h2.93v-7.3h2.45l.37-2.84h-2.82V6.04c0-.82.23-1.38 1.41-1.38h1.51V2.11c-.26-.03-1.15-.11-2.19-.11-2.18 0-3.66 1.33-3.66 3.76v2.1H6v2.84h2.46V18z";break;case"facebook":e="M2.89 2h14.23c.49 0 .88.39.88.88v14.24c0 .48-.39.88-.88.88h-4.08v-6.2h2.08l.31-2.41h-2.39V7.85c0-.7.2-1.18 1.2-1.18h1.28V4.51c-.22-.03-.98-.09-1.86-.09-1.85 0-3.11 1.12-3.11 3.19v1.78H8.46v2.41h2.09V18H2.89c-.49 0-.89-.4-.89-.88V2.88c0-.49.4-.88.89-.88z";break;case"feedback":e="M2 2h16c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm15 14V7H3v9h14zM4 8v1h3V8H4zm4 0v3h8V8H8zm-4 4v1h3v-1H4zm4 0v3h8v-3H8z";break;case"filter":e="M3 4.5v-2s3.34-1 7-1 7 1 7 1v2l-5 7.03v6.97s-1.22-.09-2.25-.59S8 16.5 8 16.5v-4.97z";break;case"flag":e="M5 18V3H3v15h2zm1-6V4c3-1 7 1 11 0v8c-3 1.27-8-1-11 0z";break;case"format-aside":e="M1 1h18v12l-6 6H1V1zm3 3v1h12V4H4zm0 4v1h12V8H4zm6 5v-1H4v1h6zm2 4l5-5h-5v5z";break;case"format-audio":e="M6.99 3.08l11.02-2c.55-.08.99.45.99 1V14.5c0 1.94-1.57 3.5-3.5 3.5S12 16.44 12 14.5c0-1.93 1.57-3.5 3.5-3.5.54 0 1.04.14 1.5.35V5.08l-9 2V16c-.24 1.7-1.74 3-3.5 3C2.57 19 1 17.44 1 15.5 1 13.57 2.57 12 4.5 12c.54 0 1.04.14 1.5.35V4.08c0-.55.44-.91.99-1z";break;case"format-chat":e="M11 6h-.82C9.07 6 8 7.2 8 8.16V10l-3 3v-3H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v3zm0 1h6c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2h-2v3l-3-3h-1c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2z";break;case"format-gallery":e="M16 4h1.96c.57 0 1.04.47 1.04 1.04v12.92c0 .57-.47 1.04-1.04 1.04H5.04C4.47 19 4 18.53 4 17.96V16H2.04C1.47 16 1 15.53 1 14.96V2.04C1 1.47 1.47 1 2.04 1h12.92c.57 0 1.04.47 1.04 1.04V4zM3 14h11V3H3v11zm5-8.5C8 4.67 7.33 4 6.5 4S5 4.67 5 5.5 5.67 7 6.5 7 8 6.33 8 5.5zm2 4.5s1-5 3-5v8H4V7c2 0 2 3 2 3s.33-2 2-2 2 2 2 2zm7 7V6h-1v8.96c0 .57-.47 1.04-1.04 1.04H6v1h11z";break;case"format-image":e="M2.25 1h15.5c.69 0 1.25.56 1.25 1.25v15.5c0 .69-.56 1.25-1.25 1.25H2.25C1.56 19 1 18.44 1 17.75V2.25C1 1.56 1.56 1 2.25 1zM17 17V3H3v14h14zM10 6c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm3 5s0-6 3-6v10c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1V8c2 0 3 4 3 4s1-3 3-3 3 2 3 2z";break;case"format-quote":e="M8.54 12.74c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45L6.65 1.94C3.45 3.46.31 6.96.85 11.37 1.19 14.16 2.8 16 5.08 16c1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38zm9.43 0c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45l-1.63-2.28c-3.2 1.52-6.34 5.02-5.8 9.43.34 2.79 1.95 4.63 4.23 4.63 1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38z";break;case"format-status":e="M10 1c7 0 9 2.91 9 6.5S17 14 10 14s-9-2.91-9-6.5S3 1 10 1zM5.5 9C6.33 9 7 8.33 7 7.5S6.33 6 5.5 6 4 6.67 4 7.5 4.67 9 5.5 9zM10 9c.83 0 1.5-.67 1.5-1.5S10.83 6 10 6s-1.5.67-1.5 1.5S9.17 9 10 9zm4.5 0c.83 0 1.5-.67 1.5-1.5S15.33 6 14.5 6 13 6.67 13 7.5 13.67 9 14.5 9zM6 14.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm-3 2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"format-video":e="M2 1h16c.55 0 1 .45 1 1v16l-18-.02V2c0-.55.45-1 1-1zm4 1L4 5h1l2-3H6zm4 0H9L7 5h1zm3 0h-1l-2 3h1zm3 0h-1l-2 3h1zm1 14V6H3v10h14zM8 7l6 4-6 4V7z";break;case"forms":e="M2 2h7v7H2V2zm9 0v7h7V2h-7zM5.5 4.5L7 3H4zM12 8V3h5v5h-5zM4.5 5.5L3 4v3zM8 4L6.5 5.5 8 7V4zM5.5 6.5L4 8h3zM9 18v-7H2v7h7zm9 0h-7v-7h7v7zM8 12v5H3v-5h5zm6.5 1.5L16 12h-3zM12 16l1.5-1.5L12 13v3zm3.5-1.5L17 16v-3zm-1 1L13 17h3z";break;case"googleplus":e="M6.73 10h5.4c.05.29.09.57.09.95 0 3.27-2.19 5.6-5.49 5.6-3.17 0-5.73-2.57-5.73-5.73 0-3.17 2.56-5.73 5.73-5.73 1.54 0 2.84.57 3.83 1.5l-1.55 1.5c-.43-.41-1.17-.89-2.28-.89-1.96 0-3.55 1.62-3.55 3.62 0 1.99 1.59 3.61 3.55 3.61 2.26 0 3.11-1.62 3.24-2.47H6.73V10zM19 10v1.64h-1.64v1.63h-1.63v-1.63h-1.64V10h1.64V8.36h1.63V10H19z";break;case"grid-view":e="M2 1h16c.55 0 1 .45 1 1v16c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1zm7.01 7.99v-6H3v6h6.01zm8 0v-6h-6v6h6zm-8 8.01v-6H3v6h6.01zm8 0v-6h-6v6h6z";break;case"groups":e="M8.03 4.46c-.29 1.28.55 3.46 1.97 3.46 1.41 0 2.25-2.18 1.96-3.46-.22-.98-1.08-1.63-1.96-1.63-.89 0-1.74.65-1.97 1.63zm-4.13.9c-.25 1.08.47 2.93 1.67 2.93s1.92-1.85 1.67-2.93c-.19-.83-.92-1.39-1.67-1.39s-1.48.56-1.67 1.39zm8.86 0c-.25 1.08.47 2.93 1.66 2.93 1.2 0 1.92-1.85 1.67-2.93-.19-.83-.92-1.39-1.67-1.39-.74 0-1.47.56-1.66 1.39zm-.59 11.43l1.25-4.3C14.2 10 12.71 8.47 10 8.47c-2.72 0-4.21 1.53-3.44 4.02l1.26 4.3C8.05 17.51 9 18 10 18c.98 0 1.94-.49 2.17-1.21zm-6.1-7.63c-.49.67-.96 1.83-.42 3.59l1.12 3.79c-.34.2-.77.31-1.2.31-.85 0-1.65-.41-1.85-1.03l-1.07-3.65c-.65-2.11.61-3.4 2.92-3.4.27 0 .54.02.79.06-.1.1-.2.22-.29.33zm8.35-.39c2.31 0 3.58 1.29 2.92 3.4l-1.07 3.65c-.2.62-1 1.03-1.85 1.03-.43 0-.86-.11-1.2-.31l1.11-3.77c.55-1.78.08-2.94-.42-3.61-.08-.11-.18-.23-.28-.33.25-.04.51-.06.79-.06z";break;case"hammer":e="M17.7 6.32l1.41 1.42-3.47 3.41-1.42-1.42.84-.82c-.32-.76-.81-1.57-1.51-2.31l-4.61 6.59-5.26 4.7c-.39.39-1.02.39-1.42 0l-1.2-1.21c-.39-.39-.39-1.02 0-1.41l10.97-9.92c-1.37-.86-3.21-1.46-5.67-1.48 2.7-.82 4.95-.93 6.58-.3 1.7.66 2.82 2.2 3.91 3.58z";break;case"heading":e="M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4";break;case"heart":e="M10 17.12c3.33-1.4 5.74-3.79 7.04-6.21 1.28-2.41 1.46-4.81.32-6.25-1.03-1.29-2.37-1.78-3.73-1.74s-2.68.63-3.63 1.46c-.95-.83-2.27-1.42-3.63-1.46s-2.7.45-3.73 1.74c-1.14 1.44-.96 3.84.34 6.25 1.28 2.42 3.69 4.81 7.02 6.21z";break;case"hidden":e="M17.2 3.3l.16.17c.39.39.39 1.02 0 1.41L4.55 17.7c-.39.39-1.03.39-1.41 0l-.17-.17c-.39-.39-.39-1.02 0-1.41l1.59-1.6c-1.57-1-2.76-2.3-3.56-3.93.81-1.65 2.03-2.98 3.64-3.99S8.04 5.09 10 5.09c1.2 0 2.33.21 3.4.6l2.38-2.39c.39-.39 1.03-.39 1.42 0zm-7.09 4.01c-.23.25-.34.54-.34.88 0 .31.12.58.31.81l1.8-1.79c-.13-.12-.28-.21-.45-.26-.11-.01-.28-.03-.49-.04-.33.03-.6.16-.83.4zM2.4 10.59c.69 1.23 1.71 2.25 3.05 3.05l1.28-1.28c-.51-.69-.77-1.47-.77-2.36 0-1.06.36-1.98 1.09-2.76-1.04.27-1.96.7-2.76 1.26-.8.58-1.43 1.27-1.89 2.09zm13.22-2.13l.96-.96c1.02.86 1.83 1.89 2.42 3.09-.81 1.65-2.03 2.98-3.64 3.99s-3.4 1.51-5.36 1.51c-.63 0-1.24-.07-1.83-.18l1.07-1.07c.25.02.5.05.76.05 1.63 0 3.13-.4 4.5-1.21s2.4-1.84 3.1-3.09c-.46-.82-1.09-1.51-1.89-2.09-.03-.01-.06-.03-.09-.04zm-5.58 5.58l4-4c-.01 1.1-.41 2.04-1.18 2.81-.78.78-1.72 1.18-2.82 1.19z";break;case"html":e="M4 16v-2H2v2H1v-5h1v2h2v-2h1v5H4zM7 16v-4H5.6v-1h3.7v1H8v4H7zM10 16v-5h1l1.4 3.4h.1L14 11h1v5h-1v-3.1h-.1l-1.1 2.5h-.6l-1.1-2.5H11V16h-1zM19 16h-3v-5h1v4h2v1zM9.4 4.2L7.1 6.5l2.3 2.3-.6 1.2-3.5-3.5L8.8 3l.6 1.2zm1.2 4.6l2.3-2.3-2.3-2.3.6-1.2 3.5 3.5-3.5 3.5-.6-1.2z";break;case"id-alt":e="M18 18H2V2h16v16zM8.05 7.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L8.95 6c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C8.23 4.1 7.95 4 7.6 4c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM16 5V4h-5v1h5zm0 2V6h-5v1h5zM7.62 8.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM16 9V8h-3v1h3zm0 2v-1h-3v1h3zm0 3v-1H4v1h12zm0 2v-1H4v1h12z";break;case"id":e="M18 16H2V4h16v12zM7.05 8.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L7.95 7c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C7.23 5.1 6.95 5 6.6 5c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM17 9V5h-5v4h5zm-10.38.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM17 11v-1h-5v1h5zm0 2v-1h-5v1h5zm0 2v-1H3v1h14z";break;case"image-crop":e="M19 12v3h-4v4h-3v-4H4V7H0V4h4V0h3v4h7l3-3 1 1-3 3v7h4zm-8-5H7v4zm-3 5h4V8z";break;case"image-filter":e="M14 5.87c0-2.2-1.79-4-4-4s-4 1.8-4 4c0 2.21 1.79 4 4 4s4-1.79 4-4zM3.24 10.66c-1.92 1.1-2.57 3.55-1.47 5.46 1.11 1.92 3.55 2.57 5.47 1.47 1.91-1.11 2.57-3.55 1.46-5.47-1.1-1.91-3.55-2.56-5.46-1.46zm9.52 6.93c1.92 1.1 4.36.45 5.47-1.46 1.1-1.92.45-4.36-1.47-5.47-1.91-1.1-4.36-.45-5.46 1.46-1.11 1.92-.45 4.36 1.46 5.47z";break;case"image-flip-horizontal":e="M19 3v14h-8v3H9v-3H1V3h8V0h2v3h8zm-8.5 14V3h-1v14h1zM7 6.5L3 10l4 3.5v-7zM17 10l-4-3.5v7z";break;case"image-flip-vertical":e="M20 9v2h-3v8H3v-8H0V9h3V1h14v8h3zM6.5 7h7L10 3zM17 9.5H3v1h14v-1zM13.5 13h-7l3.5 4z";break;case"image-rotate-left":e="M7 5H5.05c0-1.74.85-2.9 2.95-2.9V0C4.85 0 2.96 2.11 2.96 5H1.18L3.8 8.39zm13-4v14h-5v5H1V10h9V1h10zm-2 2h-6v7h3v3h3V3zm-5 9H3v6h10v-6z";break;case"image-rotate-right":e="M15.95 5H14l3.2 3.39L19.82 5h-1.78c0-2.89-1.89-5-5.04-5v2.1c2.1 0 2.95 1.16 2.95 2.9zM1 1h10v9h9v10H6v-5H1V1zm2 2v10h3v-3h3V3H3zm5 9v6h10v-6H8z";break;case"image-rotate":e="M10.25 1.02c5.1 0 8.75 4.04 8.75 9s-3.65 9-8.75 9c-3.2 0-6.02-1.59-7.68-3.99l2.59-1.52c1.1 1.5 2.86 2.51 4.84 2.51 3.3 0 6-2.79 6-6s-2.7-6-6-6c-1.97 0-3.72 1-4.82 2.49L7 8.02l-6 2v-7L2.89 4.6c1.69-2.17 4.36-3.58 7.36-3.58z";break;case"images-alt":e="M4 15v-3H2V2h12v3h2v3h2v10H6v-3H4zm7-12c-1.1 0-2 .9-2 2h4c0-1.1-.89-2-2-2zm-7 8V6H3v5h1zm7-3h4c0-1.1-.89-2-2-2-1.1 0-2 .9-2 2zm-5 6V9H5v5h1zm9-1c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2s-2 .9-2 2c0 1.11.9 2 2 2zm2 4v-2c-5 0-5-3-10-3v5h10z";break;case"images-alt2":e="M5 3h14v11h-2v2h-2v2H1V7h2V5h2V3zm13 10V4H6v9h12zm-3-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm1 6v-1H5V6H4v9h12zM7 6l10 6H7V6zm7 11v-1H3V8H2v9h12z";break;case"index-card":e="M1 3.17V18h18V4H8v-.83c0-.32-.12-.6-.35-.83S7.14 2 6.82 2H2.18c-.33 0-.6.11-.83.34-.24.23-.35.51-.35.83zM10 6v2H3V6h7zm7 0v10h-5V6h5zm-7 4v2H3v-2h7zm0 4v2H3v-2h7z";break;case"info-outline":e="M9 15h2V9H9v6zm1-10c-.5 0-1 .5-1 1s.5 1 1 1 1-.5 1-1-.5-1-1-1zm0-4c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7z";break;case"info":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1 4c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1zm0 9V9H9v6h2z";break;case"insert-after":e="M9 12h2v-2h2V8h-2V6H9v2H7v2h2v2zm1 4c3.9 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm0-12c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5zM3 19h14v-2H3v2z";break;case"insert-before":e="M11 8H9v2H7v2h2v2h2v-2h2v-2h-2V8zm-1-4c-3.9 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm0 12c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zM3 1v2h14V1H3z";break;case"insert":e="M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z";break;case"instagram":e="M12.67 10A2.67 2.67 0 1 0 10 12.67 2.68 2.68 0 0 0 12.67 10zm1.43 0A4.1 4.1 0 1 1 10 5.9a4.09 4.09 0 0 1 4.1 4.1zm1.13-4.27a1 1 0 1 1-1-1 1 1 0 0 1 1 1zM10 3.44c-1.17 0-3.67-.1-4.72.32a2.67 2.67 0 0 0-1.52 1.52c-.42 1-.32 3.55-.32 4.72s-.1 3.67.32 4.72a2.74 2.74 0 0 0 1.52 1.52c1 .42 3.55.32 4.72.32s3.67.1 4.72-.32a2.83 2.83 0 0 0 1.52-1.52c.42-1.05.32-3.55.32-4.72s.1-3.67-.32-4.72a2.74 2.74 0 0 0-1.52-1.52c-1.05-.42-3.55-.32-4.72-.32zM18 10c0 1.1 0 2.2-.05 3.3a4.84 4.84 0 0 1-1.29 3.36A4.8 4.8 0 0 1 13.3 18H6.7a4.84 4.84 0 0 1-3.36-1.29 4.84 4.84 0 0 1-1.29-3.41C2 12.2 2 11.1 2 10V6.7a4.84 4.84 0 0 1 1.34-3.36A4.8 4.8 0 0 1 6.7 2.05C7.8 2 8.9 2 10 2h3.3a4.84 4.84 0 0 1 3.36 1.29A4.8 4.8 0 0 1 18 6.7V10z";break;case"keyboard-hide":e="M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z";break;case"laptop":e="M3 3h14c.6 0 1 .4 1 1v10c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V4c0-.6.4-1 1-1zm13 2H4v8h12V5zm-3 1H5v4zm6 11v-1H1v1c0 .6.5 1 1.1 1h15.8c.6 0 1.1-.4 1.1-1z";break;case"layout":e="M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z";break;case"leftright":e="M3 10.03L9 6v8zM11 6l6 4.03L11 14V6z";break;case"lightbulb":e="M10 1c3.11 0 5.63 2.52 5.63 5.62 0 1.84-2.03 4.58-2.03 4.58-.33.44-.6 1.25-.6 1.8v1c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-1c0-.55-.27-1.36-.6-1.8 0 0-2.02-2.74-2.02-4.58C4.38 3.52 6.89 1 10 1zM7 16.87V16h6v.87c0 .62-.13 1.13-.75 1.13H12c0 .62-.4 1-1.02 1h-2c-.61 0-.98-.38-.98-1h-.25c-.62 0-.75-.51-.75-1.13z";break;case"list-view":e="M2 19h16c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V3h11zM4 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V7h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11zM4 15c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11z";break;case"location-alt":e="M13 13.14l1.17-5.94c.79-.43 1.33-1.25 1.33-2.2 0-1.38-1.12-2.5-2.5-2.5S10.5 3.62 10.5 5c0 .95.54 1.77 1.33 2.2zm0-9.64c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm1.72 4.8L18 6.97v9L13.12 18 7 15.97l-5 2v-9l5-2 4.27 1.41 1.73 7.3z";break;case"location":e="M10 2C6.69 2 4 4.69 4 8c0 2.02 1.17 3.71 2.53 4.89.43.37 1.18.96 1.85 1.83.74.97 1.41 2.01 1.62 2.71.21-.7.88-1.74 1.62-2.71.67-.87 1.42-1.46 1.85-1.83C14.83 11.71 16 10.02 16 8c0-3.31-2.69-6-6-6zm0 2.56c1.9 0 3.44 1.54 3.44 3.44S11.9 11.44 10 11.44 6.56 9.9 6.56 8 8.1 4.56 10 4.56z";break;case"lock":e="M14 9h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h1V6c0-2.21 1.79-4 4-4s4 1.79 4 4v3zm-2 0V6c0-1.1-.9-2-2-2s-2 .9-2 2v3h4zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"marker":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z";break;case"media-archive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zM8 3.5v2l1.8-1zM11 5L9.2 6 11 7V5zM8 6.5v2l1.8-1zM11 8L9.2 9l1.8 1V8zM8 9.5v2l1.8-1zm3 1.5l-1.8 1 1.8 1v-2zm-1.5 6c.83 0 1.62-.72 1.5-1.63-.05-.38-.49-1.61-.49-1.61l-1.99-1.1s-.45 1.95-.52 2.71c-.07.77.67 1.63 1.5 1.63zm0-2.39c.42 0 .76.34.76.76 0 .43-.34.77-.76.77s-.76-.34-.76-.77c0-.42.34-.76.76-.76z";break;case"media-audio":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm1 7.26V8.09c0-.11-.04-.21-.12-.29-.07-.08-.16-.11-.27-.1 0 0-3.97.71-4.25.78C8.07 8.54 8 8.8 8 9v3.37c-.2-.09-.42-.07-.6-.07-.38 0-.7.13-.96.39-.26.27-.4.58-.4.96 0 .37.14.69.4.95.26.27.58.4.96.4.34 0 .7-.04.96-.26.26-.23.64-.65.64-1.12V10.3l3-.6V12c-.67-.2-1.17.04-1.44.31-.26.26-.39.58-.39.95 0 .38.13.69.39.96.27.26.71.39 1.08.39.38 0 .7-.13.96-.39.26-.27.4-.58.4-.96z";break;case"media-code":e="M12 2l4 4v12H4V2h8zM9 13l-2-2 2-2-1-1-3 3 3 3zm3 1l3-3-3-3-1 1 2 2-2 2z";break;case"media-default":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3z";break;case"media-document":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zM5 9v1h4V9H5zm10 3V9h-5v3h5zM5 11v1h4v-1H5zm10 3v-1H5v1h10zm-3 2v-1H5v1h7z";break;case"media-interactive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm2 8V8H6v6h3l-1 2h1l1-2 1 2h1l-1-2h3zm-6-3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm5-2v2h-3V9h3zm0 3v1H7v-1h6z";break;case"media-spreadsheet":e="M12 2l4 4v12H4V2h8zm-1 4V3H5v3h6zM8 8V7H5v1h3zm3 0V7H9v1h2zm4 0V7h-3v1h3zm-7 2V9H5v1h3zm3 0V9H9v1h2zm4 0V9h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2z";break;case"media-text":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zm0 2V9H5v1h10zm0 2v-1H5v1h10zm-4 2v-1H5v1h6z";break;case"media-video":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm-1 8v-3c0-.27-.1-.51-.29-.71-.2-.19-.44-.29-.71-.29H7c-.27 0-.51.1-.71.29-.19.2-.29.44-.29.71v3c0 .27.1.51.29.71.2.19.44.29.71.29h3c.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71zm3 1v-5l-2 2v1z";break;case"megaphone":e="M18.15 5.94c.46 1.62.38 3.22-.02 4.48-.42 1.28-1.26 2.18-2.3 2.48-.16.06-.26.06-.4.06-.06.02-.12.02-.18.02-.06.02-.14.02-.22.02h-6.8l2.22 5.5c.02.14-.06.26-.14.34-.08.1-.24.16-.34.16H6.95c-.1 0-.26-.06-.34-.16-.08-.08-.16-.2-.14-.34l-1-5.5H4.25l-.02-.02c-.5.06-1.08-.18-1.54-.62s-.88-1.08-1.06-1.88c-.24-.8-.2-1.56-.02-2.2.18-.62.58-1.08 1.06-1.3l.02-.02 9-5.4c.1-.06.18-.1.24-.16.06-.04.14-.08.24-.12.16-.08.28-.12.5-.18 1.04-.3 2.24.1 3.22.98s1.84 2.24 2.26 3.86zm-2.58 5.98h-.02c.4-.1.74-.34 1.04-.7.58-.7.86-1.76.86-3.04 0-.64-.1-1.3-.28-1.98-.34-1.36-1.02-2.5-1.78-3.24s-1.68-1.1-2.46-.88c-.82.22-1.4.96-1.7 2-.32 1.04-.28 2.36.06 3.72.38 1.36 1 2.5 1.8 3.24.78.74 1.62 1.1 2.48.88zm-2.54-7.08c.22-.04.42-.02.62.04.38.16.76.48 1.02 1s.42 1.2.42 1.78c0 .3-.04.56-.12.8-.18.48-.44.84-.86.94-.34.1-.8-.06-1.14-.4s-.64-.86-.78-1.5c-.18-.62-.12-1.24.02-1.72s.48-.84.82-.94z";break;case"menu-alt":e="M3 4h14v2H3V4zm0 5h14v2H3V9zm0 5h14v2H3v-2z";break;case"menu":e="M17 7V5H3v2h14zm0 4V9H3v2h14zm0 4v-2H3v2h14z";break;case"microphone":e="M12 9V3c0-1.1-.89-2-2-2-1.12 0-2 .94-2 2v6c0 1.1.9 2 2 2 1.13 0 2-.94 2-2zm4 0c0 2.97-2.16 5.43-5 5.91V17h2c.56 0 1 .45 1 1s-.44 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1h2v-2.09C6.17 14.43 4 11.97 4 9c0-.55.45-1 1-1 .56 0 1 .45 1 1 0 2.21 1.8 4 4 4 2.21 0 4-1.79 4-4 0-.55.45-1 1-1 .56 0 1 .45 1 1z";break;case"migrate":e="M4 6h6V4H2v12.01h8V14H4V6zm2 2h6V5l6 5-6 5v-3H6V8z";break;case"minus":e="M4 9h12v2H4V9z";break;case"money":e="M0 3h20v12h-.75c0-1.79-1.46-3.25-3.25-3.25-1.31 0-2.42.79-2.94 1.91-.25-.1-.52-.16-.81-.16-.98 0-1.8.63-2.11 1.5H0V3zm8.37 3.11c-.06.15-.1.31-.11.47s-.01.33.01.5l.02.08c.01.06.02.14.05.23.02.1.06.2.1.31.03.11.09.22.15.33.07.12.15.22.23.31s.18.17.31.23c.12.06.25.09.4.09.14 0 .27-.03.39-.09s.22-.14.3-.22c.09-.09.16-.2.22-.32.07-.12.12-.23.16-.33s.07-.2.09-.31c.03-.11.04-.18.05-.22s.01-.07.01-.09c.05-.29.03-.56-.04-.82s-.21-.48-.41-.66c-.21-.18-.47-.27-.79-.27-.19 0-.36.03-.52.1-.15.07-.28.16-.38.28-.09.11-.17.25-.24.4zm4.48 6.04v-1.14c0-.33-.1-.66-.29-.98s-.45-.59-.77-.79c-.32-.21-.66-.31-1.02-.31l-1.24.84-1.28-.82c-.37 0-.72.1-1.04.3-.31.2-.56.46-.74.77-.18.32-.27.65-.27.99v1.14l.18.05c.12.04.29.08.51.14.23.05.47.1.74.15.26.05.57.09.91.13.34.03.67.05.99.05.3 0 .63-.02.98-.05.34-.04.64-.08.89-.13.25-.04.5-.1.76-.16l.5-.12c.08-.02.14-.04.19-.06zm3.15.1c1.52 0 2.75 1.23 2.75 2.75s-1.23 2.75-2.75 2.75c-.73 0-1.38-.3-1.87-.77.23-.35.37-.78.37-1.23 0-.77-.39-1.46-.99-1.86.43-.96 1.37-1.64 2.49-1.64zm-5.5 3.5c0-.96.79-1.75 1.75-1.75s1.75.79 1.75 1.75-.79 1.75-1.75 1.75-1.75-.79-1.75-1.75z";break;case"move":e="M19 10l-4 4v-3h-4v4h3l-4 4-4-4h3v-4H5v3l-4-4 4-4v3h4V5H6l4-4 4 4h-3v4h4V6z";break;case"nametag":e="M12 5V2c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-2-3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 13V7c0-1.1-.9-2-2-2h-3v.33C13 6.25 12.25 7 11.33 7H8.67C7.75 7 7 6.25 7 5.33V5H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-1-6v6H3V9h14zm-8 2c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm3 0c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm-5.96 1.21c.92.48 2.34.79 3.96.79s3.04-.31 3.96-.79c-.21 1-1.89 1.79-3.96 1.79s-3.75-.79-3.96-1.79z";break;case"networking":e="M18 13h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01h-4c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2h-5v2h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01H8c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2H4v2h1c.55 0 1 .45 1 1.01v2.98C6 17.55 5.55 18 5 18H1c-.55 0-1-.45-1-1.01v-2.98C0 13.45.45 13 1 13h1v-2c0-1.1.9-2 2-2h5V7H8c-.55 0-1-.45-1-1.01V3.01C7 2.45 7.45 2 8 2h4c.55 0 1 .45 1 1.01v2.98C13 6.55 12.55 7 12 7h-1v2h5c1.1 0 2 .9 2 2v2z";break;case"no-alt":e="M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z";break;case"no":e="M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z";break;case"palmtree":e="M8.58 2.39c.32 0 .59.05.81.14 1.25.55 1.69 2.24 1.7 3.97.59-.82 2.15-2.29 3.41-2.29s2.94.73 3.53 3.55c-1.13-.65-2.42-.94-3.65-.94-1.26 0-2.45.32-3.29.89.4-.11.86-.16 1.33-.16 1.39 0 2.9.45 3.4 1.31.68 1.16.47 3.38-.76 4.14-.14-2.1-1.69-4.12-3.47-4.12-.44 0-.88.12-1.33.38C8 10.62 7 14.56 7 19H2c0-5.53 4.21-9.65 7.68-10.79-.56-.09-1.17-.15-1.82-.15C6.1 8.06 4.05 8.5 2 10c.76-2.96 2.78-4.1 4.69-4.1 1.25 0 2.45.5 3.2 1.29-.66-2.24-2.49-2.86-4.08-2.86-.8 0-1.55.16-2.05.35.91-1.29 3.31-2.29 4.82-2.29zM13 11.5c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5.67 1.5 1.5 1.5 1.5-.67 1.5-1.5z";break;case"paperclip":e="M17.05 2.7c1.93 1.94 1.93 5.13 0 7.07L10 16.84c-1.88 1.89-4.91 1.93-6.86.15-.06-.05-.13-.09-.19-.15-1.93-1.94-1.93-5.12 0-7.07l4.94-4.95c.91-.92 2.28-1.1 3.39-.58.3.15.59.33.83.58 1.17 1.17 1.17 3.07 0 4.24l-4.93 4.95c-.39.39-1.02.39-1.41 0s-.39-1.02 0-1.41l4.93-4.95c.39-.39.39-1.02 0-1.41-.38-.39-1.02-.39-1.4 0l-4.94 4.95c-.91.92-1.1 2.29-.57 3.4.14.3.32.59.57.84s.54.43.84.57c1.11.53 2.47.35 3.39-.57l7.05-7.07c1.16-1.17 1.16-3.08 0-4.25-.56-.55-1.28-.83-2-.86-.08.01-.16.01-.24 0-.22-.03-.43-.11-.6-.27-.39-.4-.38-1.05.02-1.45.16-.16.36-.24.56-.28.14-.02.27-.01.4.02 1.19.06 2.36.52 3.27 1.43z";break;case"performance":e="M3.76 17.01h12.48C17.34 15.63 18 13.9 18 12c0-4.41-3.58-8-8-8s-8 3.59-8 8c0 1.9.66 3.63 1.76 5.01zM9 6c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zM4 8c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm4.52 3.4c.84-.83 6.51-3.5 6.51-3.5s-2.66 5.68-3.49 6.51c-.84.84-2.18.84-3.02 0-.83-.83-.83-2.18 0-3.01zM3 13c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1z";break;case"phone":e="M12.06 6l-.21-.2c-.52-.54-.43-.79.08-1.3l2.72-2.75c.81-.82.96-1.21 1.73-.48l.21.2zm.53.45l4.4-4.4c.7.94 2.34 3.47 1.53 5.34-.73 1.67-1.09 1.75-2 3-1.85 2.11-4.18 4.37-6 6.07-1.26.91-1.31 1.33-3 2-1.8.71-4.4-.89-5.38-1.56l4.4-4.4 1.18 1.62c.34.46 1.2-.06 1.8-.66 1.04-1.05 3.18-3.18 4-4.07.59-.59 1.12-1.45.66-1.8zM1.57 16.5l-.21-.21c-.68-.74-.29-.9.52-1.7l2.74-2.72c.51-.49.75-.6 1.27-.11l.2.21z";break;case"playlist-audio":e="M17 3V1H2v2h15zm0 4V5H2v2h15zm-7 4V9H2v2h8zm7.45-1.96l-6 1.12c-.16.02-.19.03-.29.13-.11.09-.16.22-.16.37v4.59c-.29-.13-.66-.14-.93-.14-.54 0-1 .19-1.38.57s-.56.84-.56 1.38c0 .53.18.99.56 1.37s.84.57 1.38.57c.49 0 .92-.16 1.29-.48s.59-.71.65-1.19v-4.95L17 11.27v3.48c-.29-.13-.56-.19-.83-.19-.54 0-1.11.19-1.49.57-.38.37-.57.83-.57 1.37s.19.99.57 1.37.84.57 1.38.57c.53 0 .99-.19 1.37-.57s.57-.83.57-1.37V9.6c0-.16-.05-.3-.16-.41-.11-.12-.24-.17-.39-.15zM8 15v-2H2v2h6zm-2 4v-2H2v2h4z";break;case"playlist-video":e="M17 3V1H2v2h15zm0 4V5H2v2h15zM6 11V9H2v2h4zm2-2h9c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1zm3 7l3.33-2L11 12v4zm-5-1v-2H2v2h4zm0 4v-2H2v2h4z";break;case"plus-alt":e="M15.8 4.2c3.2 3.21 3.2 8.39 0 11.6-3.21 3.2-8.39 3.2-11.6 0C1 12.59 1 7.41 4.2 4.2 7.41 1 12.59 1 15.8 4.2zm-4.3 11.3v-4h4v-3h-4v-4h-3v4h-4v3h4v4h3z";break;case"plus-light":e="M17 9v2h-6v6H9v-6H3V9h6V3h2v6h6z";break;case"plus":e="M17 7v3h-5v5H9v-5H4V7h5V2h3v5h5z";break;case"portfolio":e="M4 5H.78c-.37 0-.74.32-.69.84l1.56 9.99S3.5 8.47 3.86 6.7c.11-.53.61-.7.98-.7H10s-.7-2.08-.77-2.31C9.11 3.25 8.89 3 8.45 3H5.14c-.36 0-.7.23-.8.64C4.25 4.04 4 5 4 5zm4.88 0h-4s.42-1 .87-1h2.13c.48 0 1 1 1 1zM2.67 16.25c-.31.47-.76.75-1.26.75h15.73c.54 0 .92-.31 1.03-.83.44-2.19 1.68-8.44 1.68-8.44.07-.5-.3-.73-.62-.73H16V5.53c0-.16-.26-.53-.66-.53h-3.76c-.52 0-.87.58-.87.58L10 7H5.59c-.32 0-.63.19-.69.5 0 0-1.59 6.7-1.72 7.33-.07.37-.22.99-.51 1.42zM15.38 7H11s.58-1 1.13-1h2.29c.71 0 .96 1 .96 1z";break;case"post-status":e="M14 6c0 1.86-1.28 3.41-3 3.86V16c0 1-2 2-2 2V9.86c-1.72-.45-3-2-3-3.86 0-2.21 1.79-4 4-4s4 1.79 4 4zM8 5c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1z";break;case"pressthis":e="M14.76 1C16.55 1 18 2.46 18 4.25c0 1.78-1.45 3.24-3.24 3.24-.23 0-.47-.03-.7-.08L13 8.47V19H2V4h9.54c.13-2 1.52-3 3.22-3zm0 5.49C16 6.49 17 5.48 17 4.25 17 3.01 16 2 14.76 2s-2.24 1.01-2.24 2.25c0 .37.1.72.27 1.03L9.57 8.5c-.28.28-1.77 2.22-1.5 2.49.02.03.06.04.1.04.49 0 2.14-1.28 2.39-1.53l3.24-3.24c.29.14.61.23.96.23z";break;case"products":e="M17 8h1v11H2V8h1V6c0-2.76 2.24-5 5-5 .71 0 1.39.15 2 .42.61-.27 1.29-.42 2-.42 2.76 0 5 2.24 5 5v2zM5 6v2h2V6c0-1.13.39-2.16 1.02-3H8C6.35 3 5 4.35 5 6zm10 2V6c0-1.65-1.35-3-3-3h-.02c.63.84 1.02 1.87 1.02 3v2h2zm-5-4.22C9.39 4.33 9 5.12 9 6v2h2V6c0-.88-.39-1.67-1-2.22z";break;case"randomize":e="M18 6.01L14 9V7h-4l-5 8H2v-2h2l5-8h5V3zM2 5h3l1.15 2.17-1.12 1.8L4 7H2V5zm16 9.01L14 17v-2H9l-1.15-2.17 1.12-1.8L10 13h4v-2z";break;case"redo":e="M8 5h5V2l6 4-6 4V7H8c-2.2 0-4 1.8-4 4s1.8 4 4 4h5v2H8c-3.3 0-6-2.7-6-6s2.7-6 6-6z";break;case"rest-api":e="M3 4h2v12H3z";break;case"rss":e="M14.92 18H18C18 9.32 10.82 2.25 2 2.25v3.02c7.12 0 12.92 5.71 12.92 12.73zm-5.44 0h3.08C12.56 12.27 7.82 7.6 2 7.6v3.02c2 0 3.87.77 5.29 2.16C8.7 14.17 9.48 16.03 9.48 18zm-5.35-.02c1.17 0 2.13-.93 2.13-2.09 0-1.15-.96-2.09-2.13-2.09-1.18 0-2.13.94-2.13 2.09 0 1.16.95 2.09 2.13 2.09z";break;case"saved":e="M15.3 5.3l-6.8 6.8-2.8-2.8-1.4 1.4 4.2 4.2 8.2-8.2";break;case"schedule":e="M2 2h16v4H2V2zm0 10V8h4v4H2zm6-2V8h4v2H8zm6 3V8h4v5h-4zm-6 5v-6h4v6H8zm-6 0v-4h4v4H2zm12 0v-3h4v3h-4z";break;case"screenoptions":e="M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z";break;case"search":e="M12.14 4.18c1.87 1.87 2.11 4.75.72 6.89.12.1.22.21.36.31.2.16.47.36.81.59.34.24.56.39.66.47.42.31.73.57.94.78.32.32.6.65.84 1 .25.35.44.69.59 1.04.14.35.21.68.18 1-.02.32-.14.59-.36.81s-.49.34-.81.36c-.31.02-.65-.04-.99-.19-.35-.14-.7-.34-1.04-.59-.35-.24-.68-.52-1-.84-.21-.21-.47-.52-.77-.93-.1-.13-.25-.35-.47-.66-.22-.32-.4-.57-.56-.78-.16-.2-.29-.35-.44-.5-2.07 1.09-4.69.76-6.44-.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zm-1.41 6.36c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z";break;case"share-alt":e="M16.22 5.8c.47.69.29 1.62-.4 2.08-.69.47-1.62.29-2.08-.4-.16-.24-.35-.46-.55-.67-.21-.2-.43-.39-.67-.55s-.5-.3-.77-.41c-.27-.12-.55-.21-.84-.26-.59-.13-1.23-.13-1.82-.01-.29.06-.57.15-.84.27-.27.11-.53.25-.77.41s-.46.35-.66.55c-.21.21-.4.43-.56.67s-.3.5-.41.76c-.01.02-.01.03-.01.04-.1.24-.17.48-.23.72H1V6h2.66c.04-.07.07-.13.12-.2.27-.4.57-.77.91-1.11s.72-.65 1.11-.91c.4-.27.83-.51 1.28-.7s.93-.34 1.41-.43c.99-.21 2.03-.21 3.02 0 .48.09.96.24 1.41.43s.88.43 1.28.7c.39.26.77.57 1.11.91s.64.71.91 1.11zM12.5 10c0-1.38-1.12-2.5-2.5-2.5S7.5 8.62 7.5 10s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5zm-8.72 4.2c-.47-.69-.29-1.62.4-2.09.69-.46 1.62-.28 2.08.41.16.24.35.46.55.67.21.2.43.39.67.55s.5.3.77.41c.27.12.55.2.84.26.59.13 1.23.12 1.82 0 .29-.06.57-.14.84-.26.27-.11.53-.25.77-.41s.46-.35.66-.55c.21-.21.4-.44.56-.67.16-.25.3-.5.41-.76.01-.02.01-.03.01-.04.1-.24.17-.48.23-.72H19v3h-2.66c-.04.06-.07.13-.12.2-.27.4-.57.77-.91 1.11s-.72.65-1.11.91c-.4.27-.83.51-1.28.7s-.93.33-1.41.43c-.99.21-2.03.21-3.02 0-.48-.1-.96-.24-1.41-.43s-.88-.43-1.28-.7c-.39-.26-.77-.57-1.11-.91s-.64-.71-.91-1.11z";break;case"share-alt2":e="M18 8l-5 4V9.01c-2.58.06-4.88.45-7 2.99.29-3.57 2.66-5.66 7-5.94V3zM4 14h11v-2l2-1.6V16H2V5h9.43c-1.83.32-3.31 1-4.41 2H4v7z";break;case"share":e="M14.5 12c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.24.03-.46.09-.69l-4.38-2.3c-.55.61-1.33.99-2.21.99-1.66 0-3-1.34-3-3s1.34-3 3-3c.88 0 1.66.39 2.21.99l4.38-2.3c-.06-.23-.09-.45-.09-.69 0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-.88 0-1.66-.39-2.21-.99l-4.38 2.3c.06.23.09.45.09.69s-.03.46-.09.69l4.38 2.3c.55-.61 1.33-.99 2.21-.99z";break;case"shield-alt":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2z";break;case"shield":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2zm0 8h5s1-1 1-5c0 0-5-1-6-2v7H5c1 4 5 7 5 7v-7z";break;case"shortcode":e="M6 14H4V6h2V4H2v12h4M7.1 17h2.1l3.7-14h-2.1M14 4v2h2v8h-2v2h4V4";break;case"slides":e="M5 14V6h10v8H5zm-3-1V7h2v6H2zm4-6v6h8V7H6zm10 0h2v6h-2V7zm-3 2V8H7v1h6zm0 3v-2H7v2h6z";break;case"smartphone":e="M6 2h8c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H6c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm7 12V4H7v10h6zM8 5h4l-4 5V5z";break;case"smiley":e="M7 5.2c1.1 0 2 .89 2 2 0 .37-.11.71-.28 1C8.72 8.2 8 8 7 8s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.9-2 2-2zm6 0c1.11 0 2 .89 2 2 0 .37-.11.71-.28 1 0 0-.72-.2-1.72-.2s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.89-2 2-2zm-3 13.7c3.72 0 7.03-2.36 8.23-5.88l-1.32-.46C15.9 15.52 13.12 17.5 10 17.5s-5.9-1.98-6.91-4.94l-1.32.46c1.2 3.52 4.51 5.88 8.23 5.88z";break;case"sort":e="M11 7H1l5 7zm-2 7h10l-5-7z";break;case"sos":e="M18 10c0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8 8-3.58 8-8zM7.23 3.57L8.72 7.3c-.62.29-1.13.8-1.42 1.42L3.57 7.23c.71-1.64 2.02-2.95 3.66-3.66zm9.2 3.66L12.7 8.72c-.29-.62-.8-1.13-1.42-1.42l1.49-3.73c1.64.71 2.95 2.02 3.66 3.66zM10 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm-6.43.77l3.73-1.49c.29.62.8 1.13 1.42 1.42l-1.49 3.73c-1.64-.71-2.95-2.02-3.66-3.66zm9.2 3.66l-1.49-3.73c.62-.29 1.13-.8 1.42-1.42l3.73 1.49c-.71 1.64-2.02 2.95-3.66 3.66z";break;case"star-empty":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88l-4.68 2.34.87-5.15-3.18-3.56 4.65-.58z";break;case"star-filled":e="M10 1l3 6 6 .75-4.12 4.62L16 19l-6-3-6 3 1.13-6.63L1 7.75 7 7z";break;case"star-half":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88V3.24z";break;case"sticky":e="M5 3.61V1.04l8.99-.01-.01 2.58c-1.22.26-2.16 1.35-2.16 2.67v.5c.01 1.31.93 2.4 2.17 2.66l-.01 2.58h-3.41l-.01 2.57c0 .6-.47 4.41-1.06 4.41-.6 0-1.08-3.81-1.08-4.41v-2.56L5 12.02l.01-2.58c1.23-.25 2.15-1.35 2.15-2.66v-.5c0-1.31-.92-2.41-2.16-2.67z";break;case"store":e="M1 10c.41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.51.43.54 0 1.08-.14 1.49-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.63-.46 1-1.17 1-2V7l-3-7H4L0 7v1c0 .83.37 1.54 1 2zm2 8.99h5v-5h4v5h5v-7c-.37-.05-.72-.22-1-.43-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.49.44-.55 0-1.1-.14-1.51-.44-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.5.44-.54 0-1.09-.14-1.5-.44-.63-.45-1-.73-1-1.57 0 .84-.38 1.12-1 1.57-.29.21-.63.38-1 .44v6.99z";break;case"table-col-after":e="M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z";break;case"table-col-before":e="M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z";break;case"table-col-delete":e="M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z";break;case"table-row-after":e="M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z";break;case"table-row-before":e="M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z";break;case"table-row-delete":e="M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z";break;case"tablet":e="M4 2h12c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm11 14V4H5v12h10zM6 5h6l-6 5V5z";break;case"tag":e="M11 2h7v7L8 19l-7-7zm3 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z";break;case"tagcloud":e="M11 3v4H1V3h10zm8 0v4h-7V3h7zM7 8v3H1V8h6zm12 0v3H8V8h11zM9 12v2H1v-2h8zm10 0v2h-9v-2h9zM6 15v1H1v-1h5zm5 0v1H7v-1h4zm3 0v1h-2v-1h2zm5 0v1h-4v-1h4z";break;case"testimonial":e="M4 3h12c.55 0 1.02.2 1.41.59S18 4.45 18 5v7c0 .55-.2 1.02-.59 1.41S16.55 14 16 14h-1l-5 5v-5H4c-.55 0-1.02-.2-1.41-.59S2 12.55 2 12V5c0-.55.2-1.02.59-1.41S3.45 3 4 3zm11 2H4v1h11V5zm1 3H4v1h12V8zm-3 3H4v1h9v-1z";break;case"text":e="M18 3v2H2V3h16zm-6 4v2H2V7h10zm6 0v2h-4V7h4zM8 11v2H2v-2h6zm10 0v2h-8v-2h8zm-4 4v2H2v-2h12z";break;case"thumbs-down":e="M7.28 18c-.15.02-.26-.02-.41-.07-.56-.19-.83-.79-.66-1.35.17-.55 1-3.04 1-3.58 0-.53-.75-1-1.35-1h-3c-.6 0-1-.4-1-1s2-7 2-7c.17-.39.55-1 1-1H14v9h-2.14c-.41.41-3.3 4.71-3.58 5.27-.21.41-.6.68-1 .73zM18 12h-2V3h2v9z";break;case"thumbs-up":e="M12.72 2c.15-.02.26.02.41.07.56.19.83.79.66 1.35-.17.55-1 3.04-1 3.58 0 .53.75 1 1.35 1h3c.6 0 1 .4 1 1s-2 7-2 7c-.17.39-.55 1-1 1H6V8h2.14c.41-.41 3.3-4.71 3.58-5.27.21-.41.6-.68 1-.73zM2 8h2v9H2V8z";break;case"tickets-alt":e="M20 6.38L18.99 9.2v-.01c-.52-.19-1.03-.16-1.53.08s-.85.62-1.04 1.14-.16 1.03.07 1.53c.24.5.62.84 1.15 1.03v.01l-1.01 2.82-15.06-5.38.99-2.79c.52.19 1.03.16 1.53-.08.5-.23.84-.61 1.03-1.13s.16-1.03-.08-1.53c-.23-.49-.61-.83-1.13-1.02L4.93 1zm-4.97 5.69l1.37-3.76c.12-.31.1-.65-.04-.95s-.39-.53-.7-.65L8.14 3.98c-.64-.23-1.37.12-1.6.74L5.17 8.48c-.24.65.1 1.37.74 1.6l7.52 2.74c.14.05.28.08.43.08.52 0 1-.33 1.17-.83zM7.97 4.45l7.51 2.73c.19.07.34.21.43.39.08.18.09.38.02.57l-1.37 3.76c-.13.38-.58.59-.96.45L6.09 9.61c-.39-.14-.59-.57-.45-.96l1.37-3.76c.1-.29.39-.49.7-.49.09 0 .17.02.26.05zm6.82 12.14c.35.27.75.41 1.2.41H16v3H0v-2.96c.55 0 1.03-.2 1.41-.59.39-.38.59-.86.59-1.41s-.2-1.02-.59-1.41-.86-.59-1.41-.59V10h1.05l-.28.8 2.87 1.02c-.51.16-.89.62-.89 1.18v4c0 .69.56 1.25 1.25 1.25h8c.69 0 1.25-.56 1.25-1.25v-1.75l.83.3c.12.43.36.78.71 1.04zM3.25 17v-4c0-.41.34-.75.75-.75h.83l7.92 2.83V17c0 .41-.34.75-.75.75H4c-.41 0-.75-.34-.75-.75z";break;case"tickets":e="M20 5.38L18.99 8.2v-.01c-1.04-.37-2.19.18-2.57 1.22-.37 1.04.17 2.19 1.22 2.56v.01l-1.01 2.82L1.57 9.42l.99-2.79c1.04.38 2.19-.17 2.56-1.21s-.17-2.18-1.21-2.55L4.93 0zm-5.45 3.37c.74-2.08-.34-4.37-2.42-5.12-2.08-.74-4.37.35-5.11 2.42-.74 2.08.34 4.38 2.42 5.12 2.07.74 4.37-.35 5.11-2.42zm-2.56-4.74c.89.32 1.57.94 1.97 1.71-.01-.01-.02-.01-.04-.02-.33-.12-.67.09-.78.4-.1.28-.03.57.05.91.04.27.09.62-.06 1.04-.1.29-.33.58-.65 1l-.74 1.01.08-4.08.4.11c.19.04.26-.24.08-.29 0 0-.57-.15-.92-.28-.34-.12-.88-.36-.88-.36-.18-.08-.3.19-.12.27 0 0 .16.08.34.16l.01 1.63L9.2 9.18l.08-4.11c.2.06.4.11.4.11.19.04.26-.23.07-.29 0 0-.56-.15-.91-.28-.07-.02-.14-.05-.22-.08.93-.7 2.19-.94 3.37-.52zM7.4 6.19c.17-.49.44-.92.78-1.27l.04 5c-.94-.95-1.3-2.39-.82-3.73zm4.04 4.75l2.1-2.63c.37-.41.57-.77.69-1.12.05-.12.08-.24.11-.35.09.57.04 1.18-.17 1.77-.45 1.25-1.51 2.1-2.73 2.33zm-.7-3.22l.02 3.22c0 .02 0 .04.01.06-.4 0-.8-.07-1.2-.21-.33-.12-.63-.28-.9-.48zm1.24 6.08l2.1.75c.24.84 1 1.45 1.91 1.45H16v3H0v-2.96c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2V9h1.05l-.28.8 4.28 1.52C4.4 12.03 4 12.97 4 14c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.07-.02-.13-.02-.2zm-6.53-2.33l1.48.53c-.14.04-.15.27.03.28 0 0 .18.02.37.03l.56 1.54-.78 2.36-1.31-3.9c.21-.01.41-.03.41-.03.19-.02.17-.31-.02-.3 0 0-.59.05-.96.05-.07 0-.15 0-.23-.01.13-.2.28-.38.45-.55zM4.4 14c0-.52.12-1.02.32-1.46l1.71 4.7C5.23 16.65 4.4 15.42 4.4 14zm4.19-1.41l1.72.62c.07.17.12.37.12.61 0 .31-.12.66-.28 1.16l-.35 1.2zM11.6 14c0 1.33-.72 2.49-1.79 3.11l1.1-3.18c.06-.17.1-.31.14-.46l.52.19c.02.11.03.22.03.34zm-4.62 3.45l1.08-3.14 1.11 3.03c.01.02.01.04.02.05-.37.13-.77.21-1.19.21-.35 0-.69-.06-1.02-.15z";break;case"tide":e="M17 7.2V3H3v7.1c2.6-.5 4.5-1.5 6.4-2.6.2-.2.4-.3.6-.5v3c-1.9 1.1-4 2.2-7 2.8V17h14V9.9c-2.6.5-4.4 1.5-6.2 2.6-.3.1-.5.3-.8.4V10c2-1.1 4-2.2 7-2.8z";break;case"translation":e="M11 7H9.49c-.63 0-1.25.3-1.59.7L7 5H4.13l-2.39 7h1.69l.74-2H7v4H2c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v2zM6.51 9H4.49l1-2.93zM10 8h7c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2zm7.25 5v-1.08h-3.17V9.75h-1.16v2.17H9.75V13h1.28c.11.85.56 1.85 1.28 2.62-.87.36-1.89.62-2.31.62-.01.02.22.97.2 1.46.84 0 2.21-.5 3.28-1.15 1.09.65 2.48 1.15 3.34 1.15-.02-.49.2-1.44.2-1.46-.43 0-1.49-.27-2.38-.63.7-.77 1.14-1.77 1.25-2.61h1.36zm-3.81 1.93c-.5-.46-.85-1.13-1.01-1.93h2.09c-.17.8-.51 1.47-1 1.93l-.04.03s-.03-.02-.04-.03z";break;case"trash":e="M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z";break;case"twitter":e="M18.94 4.46c-.49.73-1.11 1.38-1.83 1.9.01.15.01.31.01.47 0 4.85-3.69 10.44-10.43 10.44-2.07 0-4-.61-5.63-1.65.29.03.58.05.88.05 1.72 0 3.3-.59 4.55-1.57-1.6-.03-2.95-1.09-3.42-2.55.22.04.45.07.69.07.33 0 .66-.05.96-.13-1.67-.34-2.94-1.82-2.94-3.6v-.04c.5.27 1.06.44 1.66.46-.98-.66-1.63-1.78-1.63-3.06 0-.67.18-1.3.5-1.84 1.81 2.22 4.51 3.68 7.56 3.83-.06-.27-.1-.55-.1-.84 0-2.02 1.65-3.66 3.67-3.66 1.06 0 2.01.44 2.68 1.16.83-.17 1.62-.47 2.33-.89-.28.85-.86 1.57-1.62 2.02.75-.08 1.45-.28 2.11-.57z";break;case"undo":e="M12 5H7V2L1 6l6 4V7h5c2.2 0 4 1.8 4 4s-1.8 4-4 4H7v2h5c3.3 0 6-2.7 6-6s-2.7-6-6-6z";break;case"universal-access-alt":e="M19 10c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9 9-4.03 9-9zm-9-7.4c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"universal-access":e="M10 2.6c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"unlock":e="M12 9V6c0-1.1-.9-2-2-2s-2 .9-2 2H6c0-2.21 1.79-4 4-4s4 1.79 4 4v3h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h7zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"update":e="M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z";break;case"upload":e="M8 14V8H5l5-6 5 6h-3v6H8zm-2 2v-6H4v8h12.01v-8H14v6H6z";break;case"vault":e="M18 17V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-1 0H3V3h14v14zM4.75 4h10.5c.41 0 .75.34.75.75V6h-1v3h1v2h-1v3h1v1.25c0 .41-.34.75-.75.75H4.75c-.41 0-.75-.34-.75-.75V4.75c0-.41.34-.75.75-.75zM13 10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zM9 7l.77 1.15C10.49 8.46 11 9.17 11 10c0 1.1-.9 2-2 2s-2-.9-2-2c0-.83.51-1.54 1.23-1.85z";break;case"video-alt":e="M8 5c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1 0 .57.49 1 1 1h5c.55 0 1-.45 1-1zm6 5l4-4v10l-4-4v-2zm-1 4V8c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h8c.55 0 1-.45 1-1z";break;case"video-alt2":e="M12 13V7c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2zm1-2.5l6 4.5V5l-6 4.5v1z";break;case"video-alt3":e="M19 15V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2zM8 14V6l6 4z";break;case"visibility":e="M19.7 9.4C17.7 6 14 3.9 10 3.9S2.3 6 .3 9.4L0 10l.3.6c2 3.4 5.7 5.5 9.7 5.5s7.7-2.1 9.7-5.5l.3-.6-.3-.6zM10 14.1c-3.1 0-6-1.6-7.7-4.1C3.6 8 5.7 6.6 8 6.1c-.9.6-1.5 1.7-1.5 2.9 0 1.9 1.6 3.5 3.5 3.5s3.5-1.6 3.5-3.5c0-1.2-.6-2.3-1.5-2.9 2.3.5 4.4 1.9 5.7 3.9-1.7 2.5-4.6 4.1-7.7 4.1z";break;case"warning":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z";break;case"welcome-add-page":e="M17 7V4h-2V2h-3v1H3v15h11V9h1V7h2zm-1-2v1h-2v2h-1V6h-2V5h2V3h1v2h2z";break;case"welcome-comments":e="M5 2h10c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm8.5 8.5L11 8l2.5-2.5-1-1L10 7 7.5 4.5l-1 1L9 8l-2.5 2.5 1 1L10 9l2.5 2.5z";break;case"welcome-learn-more":e="M10 10L2.54 7.02 3 18H1l.48-11.41L0 6l10-4 10 4zm0-5c-.55 0-1 .22-1 .5s.45.5 1 .5 1-.22 1-.5-.45-.5-1-.5zm0 6l5.57-2.23c.71.94 1.2 2.07 1.36 3.3-.3-.04-.61-.07-.93-.07-2.55 0-4.78 1.37-6 3.41C8.78 13.37 6.55 12 4 12c-.32 0-.63.03-.93.07.16-1.23.65-2.36 1.36-3.3z";break;case"welcome-view-site":e="M18 14V4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-8-8c2.3 0 4.4 1.14 6 3-1.6 1.86-3.7 3-6 3s-4.4-1.14-6-3c1.6-1.86 3.7-3 6-3zm2 3c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm2 8h3v1H3v-1h3v-1h8v1z";break;case"welcome-widgets-menus":e="M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z";break;case"welcome-write-blog":e="M16.89 1.2l1.41 1.41c.39.39.39 1.02 0 1.41L14 8.33V18H3V3h10.67l1.8-1.8c.4-.39 1.03-.4 1.42 0zm-5.66 8.48l5.37-5.36-1.42-1.42-5.36 5.37-.71 2.12z";break;case"wordpress-alt":e="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";break;case"wordpress":e="M20 10c0-5.52-4.48-10-10-10S0 4.48 0 10s4.48 10 10 10 10-4.48 10-10zM10 1.01c4.97 0 8.99 4.02 8.99 8.99s-4.02 8.99-8.99 8.99S1.01 14.97 1.01 10 5.03 1.01 10 1.01zM8.01 14.82L4.96 6.61c.49-.03 1.05-.08 1.05-.08.43-.05.38-1.01-.06-.99 0 0-1.29.1-2.13.1-.15 0-.33 0-.52-.01 1.44-2.17 3.9-3.6 6.7-3.6 2.09 0 3.99.79 5.41 2.09-.6-.08-1.45.35-1.45 1.42 0 .66.38 1.22.79 1.88.31.54.5 1.22.5 2.21 0 1.34-1.27 4.48-1.27 4.48l-2.71-7.5c.48-.03.75-.16.75-.16.43-.05.38-1.1-.05-1.08 0 0-1.3.11-2.14.11-.78 0-2.11-.11-2.11-.11-.43-.02-.48 1.06-.05 1.08l.84.08 1.12 3.04zm6.02 2.15L16.64 10s.67-1.69.39-3.81c.63 1.14.94 2.42.94 3.81 0 2.96-1.56 5.58-3.94 6.97zM2.68 6.77L6.5 17.25c-2.67-1.3-4.47-4.08-4.47-7.25 0-1.16.2-2.23.65-3.23zm7.45 4.53l2.29 6.25c-.75.27-1.57.42-2.42.42-.72 0-1.41-.11-2.06-.3z";break;case"yes-alt":e="M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm-.615 12.66h-1.34l-3.24-4.54 1.34-1.25 2.57 2.4 5.14-5.93 1.34.94-5.81 8.38z";break;case"yes":e="M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z"}if(!e)return null;var l=function(e,t){return["dashicon","dashicons-"+e,t].filter(Boolean).join(" ")}(n,i);return Object(o.createElement)(u,Object(z.a)({"aria-hidden":!0,role:"img",focusable:"false",className:l,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 20 20"},c),Object(o.createElement)(s,{d:e}))}}]),t}(o.Component);var ee=Object(o.forwardRef)((function(e,t){var n=e.icon,r=e.children,a=e.label,i=e.className,s=e.tooltip,c=e.shortcut,l=e.labelPosition,u=Object(P.a)(e,["icon","children","label","className","tooltip","shortcut","labelPosition"]),d=u["aria-pressed"],h=p()("components-icon-button",i,{"has-text":r}),f=s||a,v=!u.disabled&&(s||c||!!a&&(!r||Object(D.isArray)(r)&&!r.length)&&!1!==s),b=Object(o.createElement)(E,Object(z.a)({"aria-label":a},u,{className:h,ref:t}),Object(D.isString)(n)?Object(o.createElement)(J,{icon:n,ariaPressed:d}):n,r);return v&&(b=Object(o.createElement)(Q,{text:f,shortcut:c,position:l},b)),b}));var te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,r=e.className,a=void 0===r?"lockscroll":r,i=0,s=0;function c(e){var t=n.scrollingElement||n.body;e&&(s=t.scrollTop);var r=e?"add":"remove";t.classList[r](a),n.documentElement.classList[r](a),e||(t.scrollTop=s)}return function(e){function t(){return Object(b.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){0===i&&c(!0),++i}},{key:"componentWillUnmount",value:function(){1===i&&c(!1),--i}},{key:"render",value:function(){return null}}]),t}(o.Component)}(),ne=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).stopEventPropagationOutsideContainer=n.stopEventPropagationOutsideContainer.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"stopEventPropagationOutsideContainer",value:function(e){e.stopPropagation()}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(P.a)(e,["children"]);return Object(o.createElement)("div",Object(z.a)({},n,{onMouseDown:this.stopEventPropagationOutsideContainer}),t)}}]),t}(o.Component),re=Object(o.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),oe=re.Provider,ae=re.Consumer,ie=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).registerSlot=e.registerSlot.bind(Object(g.a)(e)),e.registerFill=e.registerFill.bind(Object(g.a)(e)),e.unregisterSlot=e.unregisterSlot.bind(Object(g.a)(e)),e.unregisterFill=e.unregisterFill.bind(Object(g.a)(e)),e.getSlot=e.getSlot.bind(Object(g.a)(e)),e.getFills=e.getFills.bind(Object(g.a)(e)),e.subscribe=e.subscribe.bind(Object(g.a)(e)),e.slots={},e.fills={},e.listeners=[],e.contextValue={registerSlot:e.registerSlot,unregisterSlot:e.unregisterSlot,registerFill:e.registerFill,unregisterFill:e.unregisterFill,getSlot:e.getSlot,getFills:e.getFills,subscribe:e.subscribe},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"registerSlot",value:function(e,t){var n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}},{key:"registerFill",value:function(e,t){this.fills[e]=[].concat(Object(_.a)(this.fills[e]||[]),[t]),this.forceUpdateSlot(e)}},{key:"unregisterSlot",value:function(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}},{key:"unregisterFill",value:function(e,t){this.fills[e]=Object(D.without)(this.fills[e],t),this.resetFillOccurrence(e),this.forceUpdateSlot(e)}},{key:"getSlot",value:function(e){return this.slots[e]}},{key:"getFills",value:function(e,t){return this.slots[e]!==t?[]:Object(D.sortBy)(this.fills[e],"occurrence")}},{key:"resetFillOccurrence",value:function(e){Object(D.forEach)(this.fills[e],(function(e){e.occurrence=void 0}))}},{key:"forceUpdateSlot",value:function(e){var t=this.getSlot(e);t&&t.forceUpdate()}},{key:"triggerListeners",value:function(){this.listeners.forEach((function(e){return e()}))}},{key:"subscribe",value:function(e){var t=this;return this.listeners.push(e),function(){t.listeners=Object(D.without)(t.listeners,e)}}},{key:"render",value:function(){return Object(o.createElement)(oe,{value:this.contextValue},this.props.children)}}]),t}(o.Component),se=function(e){var t=Object(o.useContext)(re),n=t.getSlot,r=t.subscribe,a=Object(o.useState)(n(e)),i=Object(h.a)(a,2),s=i[0],c=i[1];return Object(o.useEffect)((function(){return c(n(e)),r((function(){c(n(e))}))}),[e]),s},ce=ie,le=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterSlot)(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.bubblesVirtually,a=void 0!==r&&r,i=e.fillProps,s=void 0===i?{}:i,c=e.getFills,l=e.className;if(a)return Object(o.createElement)("div",{ref:this.bindNode,className:l});var u=Object(D.map)(c(n,this),(function(e){var t=e.occurrence,n=Object(D.isFunction)(e.children)?e.children(s):e.children;return o.Children.map(n,(function(e,n){if(!e||Object(D.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return Object(o.cloneElement)(e,{key:r})}))})).filter(Object(D.negate)(o.isEmptyElement));return Object(o.createElement)(o.Fragment,null,Object(D.isFunction)(t)?t(u):u)}}]),t}(o.Component),ue=function(e){return Object(o.createElement)(ae,null,(function(t){var n=t.registerSlot,r=t.unregisterSlot,a=t.getFills;return Object(o.createElement)(le,Object(z.a)({},e,{registerSlot:n,unregisterSlot:r,getFills:a}))}))},de=0;function he(e){var t=e.name,n=e.children,r=e.registerFill,a=e.unregisterFill,i=se(t),s=Object(o.useRef)({name:t,children:n});return s.current.occurrence||(s.current.occurrence=++de),Object(o.useLayoutEffect)((function(){return r(t,s.current),function(){return a(t,s.current)}}),[]),Object(o.useLayoutEffect)((function(){s.current.children=n,i&&!i.props.bubblesVirtually&&i.forceUpdate()}),[n]),Object(o.useLayoutEffect)((function(){t!==s.current.name&&(a(s.current.name,s.current),s.current.name=t,r(t,s.current))}),[t]),i&&i.node&&i.props.bubblesVirtually?(Object(D.isFunction)(n)&&(n=n(i.props.fillProps)),Object(o.createPortal)(n,i.node)):null}var fe=function(e){return Object(o.createElement)(ae,null,(function(t){var n=t.registerFill,r=t.unregisterFill;return Object(o.createElement)(he,Object(z.a)({},e,{registerFill:n,unregisterFill:r}))}))};function pe(e){var t=function(t){return Object(o.createElement)(fe,Object(z.a)({name:e},t))};t.displayName=e+"Fill";var n=function(t){return Object(o.createElement)(ue,Object(z.a)({name:e},t))};return n.displayName=e+"Slot",{Fill:t,Slot:n}}var ve=U(W((function(e){return e.children})));function be(e,t){Object(o.useEffect)((function(){var n,r=function(r){window.cancelAnimationFrame(n),t&&r&&"scroll"===r.type&&t.current.contains(r.target)||(n=window.requestAnimationFrame(e))};return window.addEventListener("resize",r),window.addEventListener("scroll",r),function(){window.removeEventListener("resize",r),window.removeEventListener("scroll",r)}}),[])}var me=function(e){var t=e.headerTitle,n=e.onClose,r=e.onKeyDown,a=e.children,i=e.className,s=e.noArrow,c=void 0!==s&&s,l=e.position,u=void 0===l?"top":l,d=(e.range,e.focusOnMount),f=void 0===d?"firstElement":d,b=e.anchorRect,m=e.getAnchorRect,y=e.expandOnMobile,g=e.animate,O=void 0===g||g,k=e.onClickOutside,_=e.onFocusOutside,D=Object(P.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","position","range","focusOnMount","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside"]),M=Object(o.useRef)(null),S=Object(o.useRef)(null),C=Object(o.useState)(!1),E=Object(h.a)(C,2),T=E[0],x=E[1],N=function(e,t,n,r){var a=Object(o.useState)(null),i=Object(h.a)(a,2),s=i[0],c=i[1],l=function(){if(e.current){var t;if(n)t=n;else if(r)t=r(e.current);else{var o=e.current.parentNode.getBoundingClientRect(),a=window.getComputedStyle(e.current.parentNode),i=a.paddingTop,l=a.paddingBottom,u=parseInt(i,10),d=parseInt(l,10);t={x:o.left,y:o.top+u,width:o.width,height:o.height-u-d,left:o.left,right:o.right,top:o.top+u,bottom:o.bottom-d}}!I()(t,s)&&c(t)}};return Object(o.useEffect)(l,[n,r]),Object(o.useEffect)((function(){if(!n){var e=setInterval(l,500);return function(){return clearInterval(e)}}}),[n]),be(l,t),s}(M,S,b,m),R=function(e){var t=Object(o.useState)(null),n=Object(h.a)(t,2),r=n[0],a=n[1];return Object(o.useEffect)((function(){var t=e.current.getBoundingClientRect();a({width:t.width,height:t.height})}),[]),r}(S);Object(o.useEffect)((function(){R&&x(!0)}),[R]);var L=function(e,t,n,r,a){var i=Object(o.useState)({popoverLeft:null,popoverTop:null,yAxis:"top",xAxis:"center",contentHeight:null,contentWidth:null,isMobile:!1}),s=Object(h.a)(i,2),c=s[0],l=s[1],u=function(){if(e&&t){var o=F(e,t,n,r);c.yAxis===o.yAxis&&c.xAxis===o.xAxis&&c.popoverLeft===o.popoverLeft&&c.popoverTop===o.popoverTop&&c.contentHeight===o.contentHeight&&c.contentWidth===o.contentWidth&&c.isMobile===o.isMobile||l(o)}};return Object(o.useEffect)(u,[e,t]),be(u,a),c}(N,R,u,y,S);!function(e,t){Object(o.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=j.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(f,S);var A=function(e){e.keyCode===w.ESCAPE&&n&&(e.stopPropagation(),n()),r&&r(e)};var V={top:"bottom",bottom:"top"}[L.yAxis]||"middle",B={left:"right",right:"left"}[L.xAxis]||"center",K=p()("components-popover",i,"is-"+L.yAxis,"is-"+L.xAxis,{"is-mobile":L.isMobile,"is-without-arrow":c||"center"===L.xAxis&&"middle"===L.yAxis}),W=Object(o.createElement)(Y,{onFocusOutside:function(e){if(_)_(e);else if(k){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),H()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),k(t)}else n&&n()}},Object(o.createElement)(v,{type:O&&T?"appear":null,options:{origin:V+" "+B}},(function(e){var r=e.className;return Object(o.createElement)(ne,Object(z.a)({className:p()(K,r),style:{top:!L.isMobile&&L.popoverTop?L.popoverTop+"px":void 0,left:!L.isMobile&&L.popoverLeft?L.popoverLeft+"px":void 0,visibility:R?void 0:"hidden"}},D,{onKeyDown:A}),L.isMobile&&Object(o.createElement)("div",{className:"components-popover__header"},Object(o.createElement)("span",{className:"components-popover__header-title"},t),Object(o.createElement)(ee,{className:"components-popover__close",icon:"no-alt",onClick:n})),Object(o.createElement)("div",{ref:S,className:"components-popover__content",style:{maxHeight:!L.isMobile&&L.contentHeight?L.contentHeight+"px":void 0,maxWidth:!L.isMobile&&L.contentWidth?L.contentWidth+"px":void 0},tabIndex:"-1"},a))})));return f&&(W=Object(o.createElement)(ve,null,W)),Object(o.createElement)(ae,null,(function(e){var t=e.getSlot;return t&&t("Popover")&&(W=Object(o.createElement)(fe,{name:"Popover"},W)),Object(o.createElement)("span",{ref:M},W,L.isMobile&&y&&Object(o.createElement)(te,null))}))};me.Slot=function(){return Object(o.createElement)(ue,{bubblesVirtually:!0,name:"Popover"})};var ye=me,ge=n(45),Oe=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).debouncedSpeak=Object(D.debounce)(e.speak.bind(Object(g.a)(e)),500),e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"speak",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"polite";Object(ge.speak)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(o.createElement)(e,Object(z.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),n}(o.Component)}),"withSpokenMessages");function ke(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=[],o=0;o0,m=b?"components-autocomplete-listbox-".concat(r):null,y=b?"components-autocomplete-item-".concat(r,"-").concat(h):null;return Object(o.createElement)(o.Fragment,null,n({isExpanded:b,listBoxId:m,activeId:y,onKeyDown:this.handleKeyDown}),b&&a&&Object(o.createElement)(ye,{focusOnMount:!1,onClose:this.reset,position:"top right",className:"components-autocomplete__popover",getAnchorRect:_e},Object(o.createElement)("div",{id:m,role:"listbox",className:"components-autocomplete__results"},b&&Object(D.map)(u,(function(t,n){return Object(o.createElement)(E,{key:t.key,id:"components-autocomplete-item-".concat(r,"-").concat(t.key),role:"option","aria-selected":n===l,disabled:t.isDisabled,className:p()("components-autocomplete__result",v,{"is-selected":n===l}),onClick:function(){return e.select(t)}},t.label)})))))}}]),t}(o.Component),we=Object(S.compose)([Oe,S.withInstanceId])(De);function Me(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,a=e.help,i=e.className,s=e.children;return Object(o.createElement)("div",{className:p()("components-base-control",i)},Object(o.createElement)("div",{className:"components-base-control__field"},n&&t&&Object(o.createElement)("label",{className:p()("components-base-control__label",{"screen-reader-text":r}),htmlFor:t},n),n&&!t&&Object(o.createElement)(Me.VisualLabel,null,n),s),!!a&&Object(o.createElement)("p",{id:t+"__help",className:"components-base-control__help"},a))}Me.VisualLabel=function(e){var t=e.className,n=e.children;return t=p()("components-base-control__label",t),Object(o.createElement)("span",{className:t},n)};var Se=Me;var Ce=function(e){var t=e.className,n=Object(P.a)(e,["className"]),r=p()("components-button-group",t);return Object(o.createElement)("div",Object(z.a)({},n,{className:r,role:"group"}))};var je=Object(S.withInstanceId)((function(e){var t=e.label,n=e.className,r=e.heading,a=e.checked,i=e.help,s=e.instanceId,c=e.onChange,l=Object(P.a)(e,["label","className","heading","checked","help","instanceId","onChange"]),u="inspector-checkbox-control-".concat(s);return Object(o.createElement)(Se,{label:r,id:u,help:i,className:n},Object(o.createElement)("span",{className:"components-checkbox-control__input-container"},Object(o.createElement)("input",Object(z.a)({id:u,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return c(e.target.checked)},checked:a,"aria-describedby":i?u+"__help":void 0},l)),a?Object(o.createElement)(J,{icon:"yes",className:"components-checkbox-control__checked",role:"presentation"}):null),Object(o.createElement)("label",{className:"components-checkbox-control__label",htmlFor:u},t))})),Pe=n(201),Ee=n.n(Pe),ze=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(g.a)(e)),e.onCopy=e.onCopy.bind(Object(g.a)(e)),e.getText=e.getText.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){var e=this.container,t=this.getText,n=this.onCopy,r=e.firstChild;this.clipboard=new Ee.a(r,{text:t,container:e}),this.clipboard.on("success",n)}},{key:"componentWillUnmount",value:function(){this.clipboard.destroy(),delete this.clipboard,clearTimeout(this.onCopyTimeout)}},{key:"bindContainer",value:function(e){this.container=e}},{key:"onCopy",value:function(e){e.clearSelection();var t=this.props,n=t.onCopy,r=t.onFinishCopy;n&&(n(),r&&(clearTimeout(this.onCopyTimeout),this.onCopyTimeout=setTimeout(r,4e3)))}},{key:"getText",value:function(){var e=this.props.text;return"function"==typeof e&&(e=e()),e}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=(e.onCopy,e.onFinishCopy,e.text,Object(P.a)(e,["className","children","onCopy","onFinishCopy","text"])),a=r.icon,i=p()("components-clipboard-button",t),s=a?ee:E;return Object(o.createElement)("span",{ref:this.bindContainer,onCopy:function(e){e.target.focus()}},Object(o.createElement)(s,Object(z.a)({},r,{className:i}),n))}}]),t}(o.Component),Te=function(e){var t=e.className,n=e.colorValue,r=Object(P.a)(e,["className","colorValue"]);return Object(o.createElement)("span",Object(z.a)({className:p()("component-color-indicator",t),style:{background:n}},r))},Ie=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(g.a)(e)),e.close=e.close.bind(Object(g.a)(e)),e.closeIfFocusOutside=e.closeIfFocusOutside.bind(Object(g.a)(e)),e.containerRef=Object(o.createRef)(),e.state={isOpen:!1},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){var e=this.state.isOpen,t=this.props.onToggle;e&&t&&t(!1)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.isOpen,r=this.props.onToggle;t.isOpen!==n&&r&&r(n)}},{key:"toggle",value:function(){this.setState((function(e){return{isOpen:!e.isOpen}}))}},{key:"closeIfFocusOutside",value:function(){this.containerRef.current.contains(document.activeElement)||document.activeElement.closest('[role="dialog"]')||this.close()}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"render",value:function(){var e=this.state.isOpen,t=this.props,n=t.renderContent,r=t.renderToggle,a=t.position,i=void 0===a?"bottom":a,s=t.className,c=t.contentClassName,l=t.expandOnMobile,u=t.headerTitle,d=t.focusOnMount,h=t.popoverProps,f={isOpen:e,onToggle:this.toggle,onClose:this.close};return Object(o.createElement)("div",{className:s,ref:this.containerRef},r(f),e&&Object(o.createElement)(ye,Object(z.a)({className:c,position:i,onClose:this.close,onFocusOutside:this.closeIfFocusOutside,expandOnMobile:l,headerTitle:u,focusOnMount:d},h),n(f)))}}]),t}(o.Component),xe=n(48),He=n.n(xe);function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?He()(e.hex):He()(e),r=n.toHsl();r.h=Math.round(r.h),r.s=Math.round(100*r.s),r.l=Math.round(100*r.l);var o=n.toHsv();o.h=Math.round(o.h),o.s=Math.round(100*o.s),o.v=Math.round(100*o.v);var a=n.toRgb(),i=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{color:n,hex:"000000"===i&&0===a.a?"transparent":"#".concat(i),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:a,source:e.source}}function Re(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,a=n.width,i=n.height,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,c="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(r+window.pageXOffset),u=c-(o+window.pageYOffset);return l<0?l=0:l>a?l=a:u<0?u=0:u>i&&(u=i),{top:u,left:l,width:a,height:i}}function Le(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&He()(e).isValid()}var Fe=n(202),Ae=n.n(Fe);n(213);var Ve=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindKeyTarget=e.bindKeyTarget.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.keyTarget,n=void 0===t?document:t;this.mousetrap=new Ae.a(n),Object(D.forEach)(this.props.shortcuts,(function(t,n){var r=e.props,o=r.bindGlobal,a=r.eventName,i=o?"bindGlobal":"bind";e.mousetrap[i](n,t,a)}))}},{key:"componentWillUnmount",value:function(){this.mousetrap.reset()}},{key:"bindKeyTarget",value:function(e){this.keyTarget=e}},{key:"render",value:function(){var e=this.props.children;return o.Children.count(e)?Object(o.createElement)("div",{ref:this.bindKeyTarget},e):null}}]),t}(o.Component),Be=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).container=Object(o.createRef)(),e.increase=e.increase.bind(Object(g.a)(e)),e.decrease=e.decrease.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?D.noop:r;e=parseInt(100*e,10);var a={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?D.noop:r,a=parseInt(100*n.a,10)-parseInt(100*e,10),i={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:a/100,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.left,a=r.width,i=o<0?0:Math.round(100*o/a)/100;return t.hsl.a!==i?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:i,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==w.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.rgb,n="".concat(t.r,",").concat(t.g,",").concat(t.b),r={background:"linear-gradient(to right, rgba(".concat(n,", 0) 0%, rgba(").concat(n,", 1) 100%)")},a={left:"".concat(100*t.a,"%")},i={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(.1)},"shift+right":function(){return e.increase(.1)},pageup:function(){return e.increase(.1)},end:function(){return e.increase(1)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(.1)},"shift+left":function(){return e.decrease(.1)},pagedown:function(){return e.decrease(.1)},home:function(){return e.decrease(1)}};return Object(o.createElement)(Ve,{shortcuts:i},Object(o.createElement)("div",{className:"components-color-picker__alpha"},Object(o.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(o.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(o.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(M.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:a,onKeyDown:this.preventKeyEvents}))))}}]),t}(o.Component),Ke=Object(S.pure)(Be),We=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).container=Object(o.createRef)(),e.increase=e.increase.bind(Object(g.a)(e)),e.decrease=e.decrease.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?D.noop:r,a={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?D.noop:r,a={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.left,a=r.width,i=o>=a?359:360*(100*o/a)/100;return t.hsl.h!==i?{h:i,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==w.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsl,r=void 0===n?{}:n,a=t.instanceId,i={left:"".concat(100*r.h/360,"%")},s={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(10)},"shift+right":function(){return e.increase(10)},pageup:function(){return e.increase(10)},end:function(){return e.increase(359)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(10)},"shift+left":function(){return e.decrease(10)},pagedown:function(){return e.decrease(10)},home:function(){return e.decrease(359)}};return Object(o.createElement)(Ve,{shortcuts:s},Object(o.createElement)("div",{className:"components-color-picker__hue"},Object(o.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(o.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(o.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.h,"aria-orientation":"horizontal","aria-label":Object(M.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(a),className:"components-color-picker__hue-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(o.createElement)("p",{className:"components-color-picker__hue-description screen-reader-text",id:"components-color-picker__hue-description-".concat(a)},Object(M.__)("Move the arrow left or right to change hue.")))))}}]),t}(o.Component),Ue=Object(S.compose)(S.pure,S.withInstanceId)(We);var $e=Object(S.withInstanceId)((function(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,i=e.className,s=e.instanceId,c=e.onChange,l=e.type,u=void 0===l?"text":l,d=Object(P.a)(e,["label","hideLabelFromVision","value","help","className","instanceId","onChange","type"]),h="inspector-text-control-".concat(s);return Object(o.createElement)(Se,{label:t,hideLabelFromVision:n,id:h,help:a,className:i},Object(o.createElement)("input",Object(z.a)({className:"components-text-control__input",type:u,id:h,value:r,onChange:function(e){return c(e.target.value)},"aria-describedby":a?h+"__help":void 0},d)))})),qe=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).handleBlur=e.handleBlur.bind(Object(g.a)(e)),e.handleChange=e.handleChange.bind(Object(g.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleBlur",value:function(){var e=this.props,t=e.value,n=e.valueKey;(0,e.onChange)({source:e.source,state:"commit",value:t,valueKey:n})}},{key:"handleChange",value:function(e){var t=this.props,n=t.valueKey,r=t.onChange,o=t.source;e.length>4&&Le(e)?r({source:o,state:"commit",value:e,valueKey:n}):r({source:o,state:"draft",value:e,valueKey:n})}},{key:"handleKeyDown",value:function(e){var t=e.keyCode;if(t===w.ENTER||t===w.UP||t===w.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,a=Object(P.a)(t,["label","value"]);return Object(o.createElement)($e,Object(z.a)({className:"components-color-picker__inputs-field",label:n,value:r,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(D.omit)(a,["onChange","valueKey","source"])))}}]),t}(o.Component),Ge=Object(S.pure)(ee),Ye=function(e){function t(e){var n,r=e.hsl;Object(b.a)(this,t),n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments));var o=1===r.a?"hex":"rgb";return n.state={view:o},n.toggleViews=n.toggleViews.bind(Object(g.a)(n)),n.resetDraftValues=n.resetDraftValues.bind(Object(g.a)(n)),n.handleChange=n.handleChange.bind(Object(g.a)(n)),n.normalizeValue=n.normalizeValue.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(ge.speak)(Object(M.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(ge.speak)(Object(M.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(ge.speak)(Object(M.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(ge.speak)(Object(M.__)("RGB mode active"))))}},{key:"resetDraftValues",value:function(){return this.props.onChange({state:"reset"})}},{key:"normalizeValue",value:function(e,t){return"a"!==e?t:t>0?0:t>1?1:Math.round(100*t)/100}},{key:"handleChange",value:function(e){var t=e.source,n=e.state,r=e.value,o=e.valueKey;this.props.onChange({source:t,state:n,valueKey:o,value:this.normalizeValue(o,r)})}},{key:"renderFields",value:function(){var e=this.props.disableAlpha,t=void 0!==e&&e;return"hex"===this.state.view?Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:Object(M.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange})):"rgb"===this.state.view?Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"screen-reader-text"},Object(M.__)("Color value in RGB")),Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(o.createElement)(qe,{source:this.state.view,label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(o.createElement)(qe,{source:this.state.view,label:"b",valueKey:"b",value:this.props.rgb.b,onChange:this.handleChange,type:"number",min:"0",max:"255"}),t?null:Object(o.createElement)(qe,{source:this.state.view,label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"}))):"hsl"===this.state.view?Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"screen-reader-text"},Object(M.__)("Color value in HSL")),Object(o.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(o.createElement)(qe,{source:this.state.view,label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(o.createElement)(qe,{source:this.state.view,label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(o.createElement)(qe,{source:this.state.view,label:"l",valueKey:"l",value:this.props.hsl.l,onChange:this.handleChange,type:"number",min:"0",max:"100"}),t?null:Object(o.createElement)(qe,{source:this.state.view,label:"a",valueKey:"a",value:this.props.hsl.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"}))):void 0}},{key:"render",value:function(){return Object(o.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(o.createElement)("div",{className:"components-color-picker__inputs-toggle"},Object(o.createElement)(Ge,{icon:"arrow-down-alt2",label:Object(M.__)("Change color format"),onClick:this.toggleViews})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(o.Component),Ze=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).throttle=Object(D.throttle)((function(e,t,n){e(t,n)}),50),n.container=Object(o.createRef)(),n.saturate=n.saturate.bind(Object(g.a)(n)),n.brighten=n.brighten.bind(Object(g.a)(n)),n.handleChange=n.handleChange.bind(Object(g.a)(n)),n.handleMouseDown=n.handleMouseDown.bind(Object(g.a)(n)),n.handleMouseUp=n.handleMouseUp.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"saturate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?D.noop:r,a=Object(D.clamp)(n.s+Math.round(100*e),0,100),i={h:n.h,s:a,v:n.v,a:n.a,source:"rgb"};o(i)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?D.noop:r,a=Object(D.clamp)(n.v+Math.round(100*e),0,100),i={h:n.h,s:n.s,v:a,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,r=function(e,t,n){var r=Re(e,n),o=r.top,a=r.left,i=r.width,s=r.height,c=a<0?0:100*a/i,l=o>=s?0:-100*o/s+100;return l<1&&(l=0),{h:t.hsl.h,s:c,v:l,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==w.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsv,r=t.hsl,a=t.instanceId,i={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},s={up:function(){return e.brighten()},"shift+up":function(){return e.brighten(.1)},pageup:function(){return e.brighten(1)},down:function(){return e.brighten(-.01)},"shift+down":function(){return e.brighten(-.1)},pagedown:function(){return e.brighten(-1)},right:function(){return e.saturate()},"shift+right":function(){return e.saturate(.1)},end:function(){return e.saturate(1)},left:function(){return e.saturate(-.01)},"shift+left":function(){return e.saturate(-.1)},home:function(){return e.saturate(-1)}};return Object(o.createElement)(Ve,{shortcuts:s},Object(o.createElement)("div",{style:{background:"hsl(".concat(r.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(o.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(o.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(o.createElement)("button",{"aria-label":Object(M.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(a),className:"components-color-picker__saturation-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(o.createElement)("div",{className:"screen-reader-text",id:"color-picker-saturation-".concat(a)},Object(M.__)("Use your arrow keys to change the base color. Move up to lighten the color, down to darken, left to decrease saturation, and right to increase saturation."))))}}]),t}(o.Component),Xe=Object(S.compose)(S.pure,S.withInstanceId)(Ze),Qe=function(e){return String(e).toLowerCase()},Je=function(e){return e.hex?Le(e.hex):(t=e,n=0,r=0,Object(D.each)(["r","g","b","a","h","s","l","v"],(function(e){t[e]&&(n+=1,isNaN(t[e])||(r+=1))})),n===r&&t);var t,n,r},et=function(e,t){var n=t.source,o=t.valueKey,a=t.value;return"hex"===n?Object(d.a)({source:n},n,a):Object(r.a)({source:n},Object(r.a)({},e[n],Object(d.a)({},o,a)))},tt=function(e){function t(e){var n,o=e.color,a=void 0===o?"0071a1":o;Object(b.a)(this,t),n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments));var i=Ne(a);return n.state=Object(r.a)({},i,{draftHex:Qe(i.hex),draftRgb:i.rgb,draftHsl:i.hsl}),n.commitValues=n.commitValues.bind(Object(g.a)(n)),n.setDraftValues=n.setDraftValues.bind(Object(g.a)(n)),n.resetDraftValues=n.resetDraftValues.bind(Object(g.a)(n)),n.handleInputChange=n.handleInputChange.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"commitValues",value:function(e){var t=this.props,n=t.oldHue,o=t.onChangeComplete,a=void 0===o?D.noop:o;if(Je(e)){var i=Ne(e,e.h||n);this.setState(Object(r.a)({},i,{draftHex:Qe(i.hex),draftHsl:i.hsl,draftRgb:i.rgb}),Object(D.debounce)(Object(D.partial)(a,i),100))}}},{key:"resetDraftValues",value:function(){this.setState({draftHex:this.state.hex,draftHsl:this.state.hsl,draftRgb:this.state.rgb})}},{key:"setDraftValues",value:function(e){switch(e.source){case"hex":this.setState({draftHex:Qe(e.hex)});break;case"rgb":this.setState({draftRgb:e});break;case"hsl":this.setState({draftHsl:e})}}},{key:"handleInputChange",value:function(e){switch(e.state){case"reset":this.resetDraftValues();break;case"commit":var t=et(this.state,e);(function(e){return"hex"===e.source&&!e.hex||(!("hsl"!==e.source||e.h&&e.s&&e.l)||!("rgb"!==e.source||e.r&&e.g&&e.b||e.h&&e.s&&e.v&&e.a||e.h&&e.s&&e.l&&e.a))})(t)||this.commitValues(t);break;case"draft":this.setDraftValues(et(this.state,e))}}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.disableAlpha,r=this.state,a=r.color,i=r.hsl,s=r.hsv,c=r.rgb,l=r.draftHex,u=r.draftHsl,d=r.draftRgb,h=p()(t,{"components-color-picker":!0,"is-alpha-disabled":n,"is-alpha-enabled":!n});return Object(o.createElement)("div",{className:h},Object(o.createElement)("div",{className:"components-color-picker__saturation"},Object(o.createElement)(Xe,{hsl:i,hsv:s,onChange:this.commitValues})),Object(o.createElement)("div",{className:"components-color-picker__body"},Object(o.createElement)("div",{className:"components-color-picker__controls"},Object(o.createElement)("div",{className:"components-color-picker__swatch"},Object(o.createElement)("div",{className:"components-color-picker__active",style:{backgroundColor:a&&a.toRgbString()}})),Object(o.createElement)("div",{className:"components-color-picker__toggles"},Object(o.createElement)(Ue,{hsl:i,onChange:this.commitValues}),n?null:Object(o.createElement)(Ke,{rgb:c,hsl:i,onChange:this.commitValues}))),Object(o.createElement)(Ye,{rgb:d,hsl:u,hex:l,onChange:this.handleInputChange,disableAlpha:n})))}}]),t}(o.Component);function nt(e){var t=e.colors,n=e.disableCustomColors,r=void 0!==n&&n,a=e.value,i=e.onChange,s=e.className,c=e.clearable,l=void 0===c||c;function u(e){return function(){return i(a===e?void 0:e)}}var d=Object(M.__)("Custom color picker"),h=p()("components-color-palette",s);return Object(o.createElement)("div",{className:h},Object(D.map)(t,(function(e){var t=e.color,n=e.name,r={color:t},i=p()("components-color-palette__item",{"is-active":a===t});return Object(o.createElement)("div",{key:t,className:"components-color-palette__item-wrapper"},Object(o.createElement)(Q,{text:n||Object(M.sprintf)(Object(M.__)("Color code: %s"),t)},Object(o.createElement)("button",{type:"button",className:i,style:r,onClick:u(t),"aria-label":n?Object(M.sprintf)(Object(M.__)("Color: %s"),n):Object(M.sprintf)(Object(M.__)("Color code: %s"),t),"aria-pressed":a===t})),a===t&&Object(o.createElement)(J,{icon:"saved"}))})),Object(o.createElement)("div",{className:"components-color-palette__custom-clear-wrapper"},!r&&Object(o.createElement)(Ie,{className:"components-color-palette__custom-color",contentClassName:"components-color-palette__picker",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(o.createElement)(E,{"aria-expanded":t,onClick:n,"aria-label":d,isLink:!0},Object(M.__)("Custom Color"))},renderContent:function(){return Object(o.createElement)(tt,{color:a,onChangeComplete:function(e){return i(e.hex)},disableAlpha:!0})}}),!!l&&Object(o.createElement)(E,{className:"components-color-palette__clear",type:"button",onClick:function(){return i(void 0)},isSmall:!0,isDefault:!0},Object(M.__)("Clear"))))}n(214);var rt=n(29),ot=n.n(rt),at=n(203),it=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChangeMoment=e.onChangeMoment.bind(Object(g.a)(e)),e.nodeRef=Object(o.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"keepFocusInside",value:function(){if(this.nodeRef.current&&(!document.activeElement||!this.nodeRef.current.contains(document.activeElement))){var e=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!e)return;e.focus()}}},{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,r=t.onChange,o=n?ot()(n):ot()(),a={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(a).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?ot()(e):ot()()}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(o.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(o.createElement)(at.DayPickerSingleDateController,{date:r,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(r?r.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",isRTL:"rtl"===document.documentElement.dir,isOutsideRange:function(e){return n&&n(e.toDate())},onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),t}(o.Component),st=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={day:"",month:"",year:"",hours:"",minutes:"",am:!0,date:null},e.changeDate=e.changeDate.bind(Object(g.a)(e)),e.updateMonth=e.updateMonth.bind(Object(g.a)(e)),e.onChangeMonth=e.onChangeMonth.bind(Object(g.a)(e)),e.updateDay=e.updateDay.bind(Object(g.a)(e)),e.onChangeDay=e.onChangeDay.bind(Object(g.a)(e)),e.updateYear=e.updateYear.bind(Object(g.a)(e)),e.onChangeYear=e.onChangeYear.bind(Object(g.a)(e)),e.updateHours=e.updateHours.bind(Object(g.a)(e)),e.updateMinutes=e.updateMinutes.bind(Object(g.a)(e)),e.onChangeHours=e.onChangeHours.bind(Object(g.a)(e)),e.onChangeMinutes=e.onChangeMinutes.bind(Object(g.a)(e)),e.renderMonth=e.renderMonth.bind(Object(g.a)(e)),e.renderDay=e.renderDay.bind(Object(g.a)(e)),e.renderDayMonthFormat=e.renderDayMonthFormat.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.syncState(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.currentTime,r=t.is12Hour;n===e.currentTime&&r===e.is12Hour||this.syncState(this.props)}},{key:"changeDate",value:function(e){var t=e.clone().startOf("minute");this.setState({date:t}),this.props.onChange(e.format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMaxHours",value:function(){return this.props.is12Hour?12:23}},{key:"getMinHours",value:function(){return this.props.is12Hour?1:0}},{key:"syncState",value:function(e){var t=e.currentTime,n=e.is12Hour,r=t?ot()(t):ot()(),o=r.format("DD"),a=r.format("MM"),i=r.format("YYYY"),s=r.format("mm"),c=r.format("A"),l=r.format(n?"hh":"HH"),u=t?ot()(t):ot()();this.setState({day:o,month:a,year:i,minutes:s,hours:l,am:c,date:u})}},{key:"updateHours",value:function(){var e=this.props.is12Hour,t=this.state,n=t.am,r=t.hours,o=t.date,a=parseInt(r,10);if(!Object(D.isInteger)(a)||e&&(a<1||a>12)||!e&&(a<0||a>23))this.syncState(this.props);else{var i=e?o.clone().hours("AM"===n?a%12:(a%12+12)%24):o.clone().hours(a);this.changeDate(i)}}},{key:"updateMinutes",value:function(){var e=this.state,t=e.minutes,n=e.date,r=parseInt(t,10);if(!Object(D.isInteger)(r)||r<0||r>59)this.syncState(this.props);else{var o=n.clone().minutes(r);this.changeDate(o)}}},{key:"updateDay",value:function(){var e=this.state,t=e.day,n=e.date,r=parseInt(t,10);if(!Object(D.isInteger)(r)||r<1||r>31)this.syncState(this.props);else{var o=n.clone().date(r);this.changeDate(o)}}},{key:"updateMonth",value:function(){var e=this.state,t=e.month,n=e.date,r=parseInt(t,10);if(!Object(D.isInteger)(r)||r<1||r>12)this.syncState(this.props);else{var o=n.clone().month(r-1);this.changeDate(o)}}},{key:"updateYear",value:function(){var e=this.state,t=e.year,n=e.date,r=parseInt(t,10);if(!Object(D.isInteger)(r)||r<0||r>9999)this.syncState(this.props);else{var o=n.clone().year(r);this.changeDate(o)}}},{key:"updateAmPm",value:function(e){var t=this;return function(){var n,r=t.state,o=r.am,a=r.date,i=r.hours;o!==e&&(n="PM"===e?a.clone().hours((parseInt(i,10)%12+12)%24):a.clone().hours(parseInt(i,10)%12),t.changeDate(n))}}},{key:"onChangeDay",value:function(e){this.setState({day:e.target.value})}},{key:"onChangeMonth",value:function(e){this.setState({month:e.target.value})}},{key:"onChangeYear",value:function(e){this.setState({year:e.target.value})}},{key:"onChangeHours",value:function(e){this.setState({hours:e.target.value})}},{key:"onChangeMinutes",value:function(e){var t=e.target.value;this.setState({minutes:""===t?"":("0"+t).slice(-2)})}},{key:"renderMonth",value:function(e){return Object(o.createElement)("div",{key:"render-month",className:"components-datetime__time-field components-datetime__time-field-month"},Object(o.createElement)("select",{"aria-label":Object(M.__)("Month"),className:"components-datetime__time-field-month-select",value:e,onChange:this.onChangeMonth,onBlur:this.updateMonth},Object(o.createElement)("option",{value:"01"},Object(M.__)("January")),Object(o.createElement)("option",{value:"02"},Object(M.__)("February")),Object(o.createElement)("option",{value:"03"},Object(M.__)("March")),Object(o.createElement)("option",{value:"04"},Object(M.__)("April")),Object(o.createElement)("option",{value:"05"},Object(M.__)("May")),Object(o.createElement)("option",{value:"06"},Object(M.__)("June")),Object(o.createElement)("option",{value:"07"},Object(M.__)("July")),Object(o.createElement)("option",{value:"08"},Object(M.__)("August")),Object(o.createElement)("option",{value:"09"},Object(M.__)("September")),Object(o.createElement)("option",{value:"10"},Object(M.__)("October")),Object(o.createElement)("option",{value:"11"},Object(M.__)("November")),Object(o.createElement)("option",{value:"12"},Object(M.__)("December"))))}},{key:"renderDay",value:function(e){return Object(o.createElement)("div",{key:"render-day",className:"components-datetime__time-field components-datetime__time-field-day"},Object(o.createElement)("input",{"aria-label":Object(M.__)("Day"),className:"components-datetime__time-field-day-input",type:"number",value:e,step:1,min:1,onChange:this.onChangeDay,onBlur:this.updateDay}))}},{key:"renderDayMonthFormat",value:function(e){var t=this.state,n=t.day,r=t.month,o=[this.renderDay(n),this.renderMonth(r)];return e?o:o.reverse()}},{key:"render",value:function(){var e=this.props.is12Hour,t=this.state,n=t.year,r=t.minutes,a=t.hours,i=t.am;return Object(o.createElement)("div",{className:p()("components-datetime__time")},Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(M.__)("Date")),Object(o.createElement)("div",{className:"components-datetime__time-wrapper"},this.renderDayMonthFormat(e),Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(o.createElement)("input",{"aria-label":Object(M.__)("Year"),className:"components-datetime__time-field-year-input",type:"number",step:1,value:n,onChange:this.onChangeYear,onBlur:this.updateYear})))),Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(M.__)("Time")),Object(o.createElement)("div",{className:"components-datetime__time-wrapper"},Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-time"},Object(o.createElement)("input",{"aria-label":Object(M.__)("Hours"),className:"components-datetime__time-field-hours-input",type:"number",step:1,min:this.getMinHours(),max:this.getMaxHours(),value:a,onChange:this.onChangeHours,onBlur:this.updateHours}),Object(o.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(o.createElement)("input",{"aria-label":Object(M.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",min:0,max:59,value:r,onChange:this.onChangeMinutes,onBlur:this.updateMinutes})),e&&Object(o.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(o.createElement)(E,{"aria-pressed":"AM"===i,isDefault:!0,className:"components-datetime__time-am-button",isToggled:"AM"===i,onClick:this.updateAmPm("AM")},Object(M.__)("AM")),Object(o.createElement)(E,{"aria-pressed":"PM"===i,isDefault:!0,className:"components-datetime__time-pm-button",isToggled:"PM"===i,onClick:this.updateAmPm("PM")},Object(M.__)("PM"))))))}}]),t}(o.Component),ct=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={calendarHelpIsVisible:!1},e.onClickDescriptionToggle=e.onClickDescriptionToggle.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"onClickDescriptionToggle",value:function(){this.setState({calendarHelpIsVisible:!this.state.calendarHelpIsVisible})}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.is12Hour,r=e.onChange;return Object(o.createElement)("div",{className:"components-datetime"},!this.state.calendarHelpIsVisible&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(st,{currentTime:t,onChange:r,is12Hour:n}),Object(o.createElement)(it,{currentDate:t,onChange:r})),this.state.calendarHelpIsVisible&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"components-datetime__calendar-help"},Object(o.createElement)("h4",null,Object(M.__)("Click to Select")),Object(o.createElement)("ul",null,Object(o.createElement)("li",null,Object(M.__)("Click the right or left arrows to select other months in the past or the future.")),Object(o.createElement)("li",null,Object(M.__)("Click the desired day to select it."))),Object(o.createElement)("h4",null,Object(M.__)("Navigating with a keyboard")),Object(o.createElement)("ul",null,Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(M._x)("Enter","keyboard button")},"↵")," ",Object(o.createElement)("span",null,Object(M.__)("Select the date in focus."))),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(M.__)("Left and Right Arrows")},"←/→")," ",Object(M.__)("Move backward (left) or forward (right) by one day.")),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(M.__)("Up and Down Arrows")},"↑/↓")," ",Object(M.__)("Move backward (up) or forward (down) by one week.")),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(M.__)("Page Up and Page Down")},Object(M.__)("PgUp/PgDn"))," ",Object(M.__)("Move backward (PgUp) or forward (PgDn) by one month.")),Object(o.createElement)("li",null,Object(o.createElement)("abbr",{"aria-label":Object(M.__)("Home and End")},Object(M.__)("Home/End"))," ",Object(M.__)("Go to the first (home) or last (end) day of a week."))),Object(o.createElement)(E,{isSmall:!0,onClick:this.onClickDescriptionToggle},Object(M.__)("Close")))),!this.state.calendarHelpIsVisible&&Object(o.createElement)(E,{className:"components-datetime__date-help-button",isLink:!0,onClick:this.onClickDescriptionToggle},Object(M.__)("Calendar Help")))}}]),t}(o.Component),lt=Object(o.createContext)(!1),ut=lt.Consumer,dt=lt.Provider,ht=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"],ft=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(g.a)(e)),e.disable=e.disable.bind(Object(g.a)(e)),e.debouncedDisable=Object(D.debounce)(e.disable,{leading:!0}),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.disable(),this.observer=new window.MutationObserver(this.debouncedDisable),this.observer.observe(this.node,{childList:!0,attributes:!0,subtree:!0})}},{key:"componentWillUnmount",value:function(){this.observer.disconnect(),this.debouncedDisable.cancel()}},{key:"bindNode",value:function(e){this.node=e}},{key:"disable",value:function(){j.focus.focusable.find(this.node).forEach((function(e){Object(D.includes)(ht,e.nodeName)&&e.setAttribute("disabled",""),e.hasAttribute("tabindex")&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=Object(P.a)(e,["className"]);return Object(o.createElement)(dt,{value:!0},Object(o.createElement)("div",Object(z.a)({ref:this.bindNode,className:p()(t,"components-disabled")},n),this.props.children))}}]),t}(o.Component);ft.Consumer=ut;var pt=ft,vt=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onDragStart=e.onDragStart.bind(Object(g.a)(e)),e.onDragOver=e.onDragOver.bind(Object(g.a)(e)),e.onDragEnd=e.onDragEnd.bind(Object(g.a)(e)),e.resetDragState=e.resetDragState.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentWillUnmount",value:function(){this.resetDragState()}},{key:"onDragEnd",value:function(e){var t=this.props.onDragEnd,n=void 0===t?D.noop:t;e.preventDefault(),this.resetDragState(),this.props.setTimeout(n)}},{key:"onDragOver",value:function(e){this.cloneWrapper.style.top="".concat(parseInt(this.cloneWrapper.style.top,10)+e.clientY-this.cursorTop,"px"),this.cloneWrapper.style.left="".concat(parseInt(this.cloneWrapper.style.left,10)+e.clientX-this.cursorLeft,"px"),this.cursorLeft=e.clientX,this.cursorTop=e.clientY}},{key:"onDragStart",value:function(e){var t=this.props,n=t.elementId,r=t.transferData,o=t.onDragStart,a=void 0===o?D.noop:o,i=document.getElementById(n);if(i){if("function"==typeof e.dataTransfer.setDragImage){var s=document.createElement("div");s.id="drag-image-".concat(n),s.classList.add("components-draggable__invisible-drag-image"),document.body.appendChild(s),e.dataTransfer.setDragImage(s,0,0),this.props.setTimeout((function(){document.body.removeChild(s)}))}e.dataTransfer.setData("text",JSON.stringify(r));var c=i.getBoundingClientRect(),l=i.parentNode,u=parseInt(c.top,10),d=parseInt(c.left,10),h=i.cloneNode(!0);h.id="clone-".concat(n),this.cloneWrapper=document.createElement("div"),this.cloneWrapper.classList.add("components-draggable__clone"),this.cloneWrapper.style.width="".concat(c.width+40,"px"),c.height>700?(this.cloneWrapper.style.transform="scale(0.5)",this.cloneWrapper.style.transformOrigin="top left",this.cloneWrapper.style.top="".concat(e.clientY-100,"px"),this.cloneWrapper.style.left="".concat(e.clientX,"px")):(this.cloneWrapper.style.top="".concat(u-20,"px"),this.cloneWrapper.style.left="".concat(d-20,"px")),Object(_.a)(h.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),this.cloneWrapper.appendChild(h),l.appendChild(this.cloneWrapper),this.cursorLeft=e.clientX,this.cursorTop=e.clientY,document.body.classList.add("is-dragging-components-draggable"),document.addEventListener("dragover",this.onDragOver),this.props.setTimeout(a)}else e.preventDefault()}},{key:"resetDragState",value:function(){document.removeEventListener("dragover",this.onDragOver),this.cloneWrapper&&this.cloneWrapper.parentNode&&(this.cloneWrapper.parentNode.removeChild(this.cloneWrapper),this.cloneWrapper=null),document.body.classList.remove("is-dragging-components-draggable")}},{key:"render",value:function(){return(0,this.props.children)({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd})}}]),t}(o.Component),bt=Object(S.withSafeTimeout)(vt),mt=Object(o.createContext)({addDropZone:function(){},removeDropZone:function(){}}),yt=mt.Provider,gt=mt.Consumer,Ot=function(e){var t=e.dataTransfer;if(t){if(Object(D.includes)(t.types,"Files"))return"file";if(Object(D.includes)(t.types,"text/html"))return"html"}return"default"},kt=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},_t=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onDragOver=e.onDragOver.bind(Object(g.a)(e)),e.onDrop=e.onDrop.bind(Object(g.a)(e)),e.addDropZone=e.addDropZone.bind(Object(g.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(g.a)(e)),e.resetDragState=e.resetDragState.bind(Object(g.a)(e)),e.toggleDraggingOverDocument=Object(D.throttle)(e.toggleDraggingOverDocument.bind(Object(g.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("dragover",this.onDragOver),window.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragover",this.onDragOver),window.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(D.filter)(this.dropZones,(function(t){return t!==e}))}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,position:null}),this.dropZones.forEach((function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})})))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,r=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,o=Object(D.filter)(this.dropZones,(function(e){return kt(t,e)&&function(e,t,n){var r=e.getBoundingClientRect();return r.bottom!==r.top&&r.left!==r.right&&(t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom)}(e.element,r.clientX,r.clientY)})),a=Object(D.find)(o,(function(e){return!Object(D.some)(o,(function(t){return t!==e&&e.element.parentElement.contains(t.element)}))})),i=this.dropZones.indexOf(a),s=null;if(a){var c=a.element.getBoundingClientRect();s={x:r.clientX-c.left-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,a=n.eventToOffset,i=n.onNavigate,s=void 0===i?D.noop:i,c=n.stopNavigationEvents,l=a(e);if(void 0!==l&&c&&(e.stopImmediatePropagation(),"menuitem"===e.target.getAttribute("role")&&e.preventDefault()),l){var u=t(document.activeElement);if(u){var d=u.index,h=u.focusables,f=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(d,h.length,l):d+l;f>=0&&f0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(r.a)({},e,t);return t.className&&e.className&&(n.className=p()(t.className,e.className)),n}var zt=function(e){var t,n=e.children,r=e.className,a=e.controls,i=e.hasArrowIndicator,s=void 0!==i&&i,c=e.icon,l=void 0===c?"menu":c,u=e.label,d=e.popoverProps,h=e.toggleProps,f=e.menuProps,v=e.menuLabel,b=e.position;if(v&&H()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),b&&H()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(D.isEmpty)(a)&&!Object(D.isFunction)(n))return null;Object(D.isEmpty)(a)||(t=a,Array.isArray(t[0])||(t=[t]));var m=Et({className:"components-dropdown-menu__popover",position:b},d);return Object(o.createElement)(Ie,{className:p()("components-dropdown-menu",r),popoverProps:m,renderToggle:function(e){var t=e.isOpen,n=e.onToggle,r=Et({className:p()("components-dropdown-menu__toggle",{"is-opened":t}),tooltip:u},h);return Object(o.createElement)(ee,Object(z.a)({},r,{icon:l,onClick:n,onKeyDown:function(e){t||e.keyCode!==w.DOWN||(e.preventDefault(),e.stopPropagation(),n())},"aria-haspopup":"true","aria-expanded":t,label:u}),(!l||s)&&Object(o.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(e){var r=Et({"aria-label":v||u,className:"components-dropdown-menu__menu"},f);return Object(o.createElement)(jt,Object(z.a)({},r,{role:"menu"}),Object(D.isFunction)(n)?n(e):null,Object(D.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(o.createElement)(ee,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:p()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})};var Tt=Object(o.forwardRef)((function(e,t){var n=e.href,r=e.children,a=e.className,i=e.rel,s=void 0===i?"":i,c=Object(P.a)(e,["href","children","className","rel"]);s=Object(D.uniq)(Object(D.compact)([].concat(Object(_.a)(s.split(" ")),["external","noreferrer","noopener"]))).join(" ");var l=p()("components-external-link",a);return(Object(o.createElement)("a",Object(z.a)({},c,{className:l,href:n,target:"_blank",rel:s,ref:t}),r,Object(o.createElement)("span",{className:"screen-reader-text"},Object(M.__)("(opens in a new tab)")),Object(o.createElement)(J,{icon:"external",className:"components-external-link__icon"})))})),It=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).onMouseMove=n.onMouseMove.bind(Object(g.a)(n)),n.state={isDragging:!1,bounds:{},percentages:e.value},n.containerRef=Object(o.createRef)(),n.imageRef=Object(o.createRef)(),n.horizontalPositionChanged=n.horizontalPositionChanged.bind(Object(g.a)(n)),n.verticalPositionChanged=n.verticalPositionChanged.bind(Object(g.a)(n)),n.onLoad=n.onLoad.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1})}},{key:"calculateBounds",value:function(){var e={top:0,left:0,bottom:0,right:0,width:0,height:0};if(!this.imageRef.current)return e;var t=this.imageRef.current.clientWidth,n=this.imageRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,a=r.height/n;return a>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*a,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"onLoad",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds,o=this.props.onChange;if(n){var a=this.pickerDimensions(),i={left:e.pageX-a.left,top:e.pageY-a.top},s=Math.max(r.left,Math.min(i.left,r.right)),c=Math.max(r.top,Math.min(i.top,r.bottom)),l={x:(s-r.left)/(a.width-2*r.left),y:(c-r.top)/(a.height-2*r.top)};this.setState({percentages:l},(function(){o({x:this.state.percentages.x,y:this.state.percentages.y})}))}}},{key:"fractionToPercentage",value:function(e){return Math.round(100*e)}},{key:"horizontalPositionChanged",value:function(e){this.positionChangeFromTextControl("x",e.target.value)}},{key:"verticalPositionChanged",value:function(e){this.positionChangeFromTextControl("y",e.target.value)}},{key:"positionChangeFromTextControl",value:function(e,t){var n=this.props.onChange,r=this.state.percentages,o=Math.max(Math.min(parseInt(t),100),0);r[e]=o?o/100:0,this.setState({percentages:r},(function(){n({x:this.state.percentages.x,y:this.state.percentages.y})}))}},{key:"pickerDimensions",value:function(){return this.containerRef.current?{width:this.containerRef.current.clientWidth,height:this.containerRef.current.clientHeight,top:this.containerRef.current.getBoundingClientRect().top+document.body.scrollTop,left:this.containerRef.current.getBoundingClientRect().left}:{width:0,height:0,left:0,top:0}}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.url,a=t.value,i=t.label,c=t.help,l=t.className,d=this.state,h=d.bounds,f=d.isDragging,v=d.percentages,b=this.pickerDimensions(),m={left:a.x*(b.width-2*h.left)+h.left,top:a.y*(b.height-2*h.top)+h.top},y={left:"".concat(m.left,"px"),top:"".concat(m.top,"px")},g=p()("components-focal-point-picker__icon_container",f?"is-dragging":null),O="inspector-focal-point-picker-control-".concat(n),k="inspector-focal-point-picker-control-horizontal-position-".concat(n),_="inspector-focal-point-picker-control-vertical-position-".concat(n);return Object(o.createElement)(Se,{label:i,id:O,help:c,className:l},Object(o.createElement)("div",{className:"components-focal-point-picker-wrapper"},Object(o.createElement)("div",{className:"components-focal-point-picker",onMouseDown:function(){return e.setState({isDragging:!0})},onDragStart:function(){return e.setState({isDragging:!0})},onMouseUp:function(){return e.setState({isDragging:!1})},onDrop:function(){return e.setState({isDragging:!1})},onMouseMove:this.onMouseMove,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(o.createElement)("img",{alt:"Dimensions helper",onLoad:this.onLoad,ref:this.imageRef,src:r,draggable:"false"}),Object(o.createElement)("div",{className:g,style:y},Object(o.createElement)(u,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(o.createElement)(s,{className:"components-focal-point-picker__icon-outline",d:"M15 1C7.3 1 1 7.3 1 15s6.3 14 14 14 14-6.3 14-14S22.7 1 15 1zm0 22c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"}),Object(o.createElement)(s,{className:"components-focal-point-picker__icon-fill",d:"M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"}))))),Object(o.createElement)("div",{className:"components-focal-point-picker_position-display-container"},Object(o.createElement)(Se,{label:Object(M.__)("Horizontal Pos."),id:k},Object(o.createElement)("input",{className:"components-text-control__input",id:k,max:100,min:0,onChange:this.horizontalPositionChanged,type:"number",value:this.fractionToPercentage(v.x)}),Object(o.createElement)("span",null,"%")),Object(o.createElement)(Se,{label:Object(M.__)("Vertical Pos."),id:_},Object(o.createElement)("input",{className:"components-text-control__input",id:_,max:100,min:0,onChange:this.verticalPositionChanged,type:"number",value:this.fractionToPercentage(v.y)}),Object(o.createElement)("span",null,"%"))))}}]),t}(o.Component);It.defaultProps={url:null,value:{x:.5,y:.5},onChange:function(){}};var xt=Object(S.compose)([S.withInstanceId,q])(It),Ht=window.FocusEvent,Nt=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).checkFocus=n.checkFocus.bind(Object(g.a)(n)),n.node=e.iframeRef||Object(o.createRef)(),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"checkFocus",value:function(){var e=this.node.current;if(document.activeElement===e){var t=new Ht("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(o.createElement)("iframe",Object(z.a)({ref:this.node},Object(D.omit)(this.props,["iframeRef","onFocus"])))}}]),t}(o.Component),Rt=Object(S.withGlobalEvents)({blur:"checkFocus"})(Nt);var Lt=Object(S.compose)([S.withInstanceId,Object(S.withState)({currentInput:null})])((function(e){var t=e.className,n=e.currentInput,r=e.label,a=e.value,i=e.instanceId,s=e.onChange,c=e.beforeIcon,l=e.afterIcon,u=e.help,d=e.allowReset,h=e.initialPosition,f=e.min,v=e.max,b=e.setState,m=Object(P.a)(e,["className","currentInput","label","value","instanceId","onChange","beforeIcon","afterIcon","help","allowReset","initialPosition","min","max","setState"]),y="inspector-range-control-".concat(i),g=null===n?a:n,O=function(){null!==n&&b({currentInput:null})},k=function(e){var t=e.target.value;e.target.checkValidity()?(O(),s(""===t?void 0:parseFloat(t))):b({currentInput:t})},_=Object(D.isFinite)(g)?g:h||"";return Object(o.createElement)(Se,{label:r,id:y,help:u,className:p()("components-range-control",t)},c&&Object(o.createElement)(J,{icon:c}),Object(o.createElement)("input",Object(z.a)({className:"components-range-control__slider",id:y,type:"range",value:_,onChange:k,"aria-describedby":u?y+"__help":void 0,min:f,max:v},m)),l&&Object(o.createElement)(J,{icon:l}),Object(o.createElement)("input",Object(z.a)({className:"components-range-control__number",type:"number",onChange:k,"aria-label":r,value:g,min:f,max:v,onBlur:O},m)),d&&Object(o.createElement)(E,{onClick:function(){O(),s()},disabled:void 0===a,isSmall:!0,isDefault:!0,className:"components-range-control__reset"},Object(M.__)("Reset")))}));var Ft=Object(S.withInstanceId)((function(e){var t=e.help,n=e.instanceId,r=e.label,a=e.multiple,i=void 0!==a&&a,s=e.onChange,c=e.options,l=void 0===c?[]:c,u=e.className,d=e.hideLabelFromVision,h=Object(P.a)(e,["help","instanceId","label","multiple","onChange","options","className","hideLabelFromVision"]),f="inspector-select-control-".concat(n);return!Object(D.isEmpty)(l)&&Object(o.createElement)(Se,{label:r,hideLabelFromVision:d,id:f,help:t,className:u},Object(o.createElement)("select",Object(z.a)({id:f,className:"components-select-control__input",onChange:function(e){if(i){var t=Object(_.a)(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value}));s(t)}else s(e.target.value)},"aria-describedby":t?"".concat(f,"__help"):void 0,multiple:i},h),l.map((function(e,t){return Object(o.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value,disabled:e.disabled},e.label)}))))}));function At(e,t){if(t){var n=e.find((function(e){return e.size===t}));return n?n.slug:"custom"}return"normal"}var Vt=function(e){var t,n=e.fallbackFontSize,r=e.fontSizes,a=void 0===r?[]:r,i=e.disableCustomFontSizes,s=void 0!==i&&i,c=e.onChange,l=e.value,u=e.withSlider,d=void 0!==u&&u,f=Object(o.useState)(At(a,l)),p=Object(h.a)(f,2),v=p[0],b=p[1];return s&&!a.length?null:Object(o.createElement)("fieldset",null,Object(o.createElement)("legend",null,Object(M.__)("Font Size")),Object(o.createElement)("div",{className:"components-font-size-picker__controls"},a.length>0&&Object(o.createElement)(Ft,{className:"components-font-size-picker__select",label:"Choose preset",hideLabelFromVision:!0,value:v,onChange:function(e){b(e);var t=a.find((function(t){return t.slug===e}));t&&c(t.size)},options:(t=a,[].concat(Object(_.a)(t.map((function(e){return{value:e.slug,label:e.name}}))),[{value:"custom",label:Object(M.__)("Custom")}]))}),!d&&!s&&Object(o.createElement)("input",{className:"components-range-control__number",type:"number",onChange:function(e){var t=e.target.value;b(At(a,Number(t))),c(""!==t?Number(t):void 0)},"aria-label":Object(M.__)("Custom"),value:l||""}),Object(o.createElement)(E,{className:"components-color-palette__clear",type:"button",disabled:void 0===l,onClick:function(){c(void 0),b(At(a,void 0))},isSmall:!0,isDefault:!0},Object(M.__)("Reset"))),d&&Object(o.createElement)(Lt,{className:"components-font-size-picker__custom-input",label:Object(M.__)("Custom Size"),value:l||"",initialPosition:n,onChange:c,min:12,max:100,beforeIcon:"editor-textcolor",afterIcon:"editor-textcolor"}))},Bt=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).openFileDialog=e.openFileDialog.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"openFileDialog",value:function(){this.input.click()}},{key:"bindInput",value:function(e){this.input=e}},{key:"render",value:function(){var e=this.props,t=e.accept,n=e.children,r=e.icon,a=void 0===r?"upload":r,i=e.multiple,s=void 0!==i&&i,c=e.onChange,l=e.render,u=Object(P.a)(e,["accept","children","icon","multiple","onChange","render"]),d=l?l({openFileDialog:this.openFileDialog}):Object(o.createElement)(ee,Object(z.a)({icon:a,onClick:this.openFileDialog},u),n);return Object(o.createElement)("div",{className:"components-form-file-upload"},d,Object(o.createElement)("input",{type:"file",ref:this.bindInput,multiple:s,style:{display:"none"},accept:t,onChange:c}))}}]),t}(o.Component);var Kt=function(e){var t=e.className,n=e.checked,r=e.id,a=e.onChange,i=void 0===a?D.noop:a,c=Object(P.a)(e,["className","checked","id","onChange"]),l=p()("components-form-toggle",t,{"is-checked":n});return Object(o.createElement)("span",{className:l},Object(o.createElement)("input",Object(z.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i},c)),Object(o.createElement)("span",{className:"components-form-toggle__track"}),Object(o.createElement)("span",{className:"components-form-toggle__thumb"}),n?Object(o.createElement)(u,{className:"components-form-toggle__on",width:"2",height:"6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 6"},Object(o.createElement)(s,{d:"M0 0h2v6H0z"})):Object(o.createElement)(u,{className:"components-form-toggle__off",width:"6",height:"6","aria-hidden":"true",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 6"},Object(o.createElement)(s,{d:"M3 1.5c.8 0 1.5.7 1.5 1.5S3.8 4.5 3 4.5 1.5 3.8 1.5 3 2.2 1.5 3 1.5M3 0C1.3 0 0 1.3 0 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3z"})))},Wt=n(31);var Ut=Object(S.withInstanceId)((function(e){var t=e.value,n=e.status,r=e.title,a=e.displayTransform,i=e.isBorderless,s=void 0!==i&&i,c=e.disabled,l=void 0!==c&&c,u=e.onClickRemove,d=void 0===u?D.noop:u,h=e.onMouseEnter,f=e.onMouseLeave,v=e.messages,b=e.termPosition,m=e.termsCount,y=e.instanceId,g=p()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":s,"is-disabled":l}),O=a(t),k=Object(M.sprintf)(Object(M.__)("%1$s (%2$s of %3$s)"),O,b,m);return Object(o.createElement)("span",{className:g,onMouseEnter:h,onMouseLeave:f,title:r},Object(o.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(y)},Object(o.createElement)("span",{className:"screen-reader-text"},k),Object(o.createElement)("span",{"aria-hidden":"true"},O)),Object(o.createElement)(ee,{className:"components-form-token-field__remove-token",icon:"dismiss",onClick:!l&&function(){return d({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(y)}))})),$t=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"hasFocus",value:function(){return this.input===document.activeElement}},{key:"bindInput",value:function(e){this.input=e}},{key:"onChange",value:function(e){this.props.onChange({value:e.target.value})}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.isExpanded,r=e.instanceId,a=e.selectedSuggestionIndex,i=Object(P.a)(e,["value","isExpanded","instanceId","selectedSuggestionIndex"]),s=t.length+1;return Object(o.createElement)("input",Object(z.a)({ref:this.bindInput,id:"components-form-token-input-".concat(r),type:"text"},i,{value:t,onChange:this.onChange,size:s,className:"components-form-token-field__input",role:"combobox","aria-expanded":n,"aria-autocomplete":"list","aria-owns":n?"components-form-token-suggestions-".concat(r):void 0,"aria-activedescendant":-1!==a?"components-form-token-suggestions-".concat(r,"-").concat(a):void 0,"aria-describedby":"components-form-token-suggestions-howto-".concat(r)}))}}]),t}(o.Component),qt=n(65),Gt=n.n(qt),Yt=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).handleMouseDown=e.handleMouseDown.bind(Object(g.a)(e)),e.bindList=e.bindList.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidUpdate",value:function(){var e=this;this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Gt()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"bindList",value:function(e){this.list=e}},{key:"handleHover",value:function(e){var t=this;return function(){t.scrollingIntoView||t.props.onHover(e)}}},{key:"handleClick",value:function(e){var t=this;return function(){t.props.onSelect(e)}}},{key:"handleMouseDown",value:function(e){e.preventDefault()}},{key:"computeSuggestionMatch",value:function(e){var t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;var n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}},{key:"render",value:function(){var e=this;return Object(o.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(D.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),a=p()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(o.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:a,key:t,onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},r?Object(o.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(o.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),t}(o.Component);Yt.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var Zt=Object(S.withSafeTimeout)(Yt),Xt={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1},Qt=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state=Xt,e.onKeyDown=e.onKeyDown.bind(Object(g.a)(e)),e.onKeyPress=e.onKeyPress.bind(Object(g.a)(e)),e.onFocus=e.onFocus.bind(Object(g.a)(e)),e.onBlur=e.onBlur.bind(Object(g.a)(e)),e.deleteTokenBeforeInput=e.deleteTokenBeforeInput.bind(Object(g.a)(e)),e.deleteTokenAfterInput=e.deleteTokenAfterInput.bind(Object(g.a)(e)),e.addCurrentToken=e.addCurrentToken.bind(Object(g.a)(e)),e.onContainerTouched=e.onContainerTouched.bind(Object(g.a)(e)),e.renderToken=e.renderToken.bind(Object(g.a)(e)),e.onTokenClickRemove=e.onTokenClickRemove.bind(Object(g.a)(e)),e.onSuggestionHovered=e.onSuggestionHovered.bind(Object(g.a)(e)),e.onSuggestionSelected=e.onSuggestionSelected.bind(Object(g.a)(e)),e.onInputChange=e.onInputChange.bind(Object(g.a)(e)),e.bindInput=e.bindInput.bind(Object(g.a)(e)),e.bindTokensAndInput=e.bindTokensAndInput.bind(Object(g.a)(e)),e.updateSuggestions=e.updateSuggestions.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidUpdate",value:function(e){this.state.isActive&&!this.input.hasFocus()&&this.input.focus();var t=this.props,n=t.suggestions,r=t.value,o=!I()(n,e.suggestions);(o||r!==e.value)&&this.updateSuggestions(o)}},{key:"bindInput",value:function(e){this.input=e}},{key:"bindTokensAndInput",value:function(e){this.tokensAndInput=e}},{key:"onFocus",value:function(e){this.input.hasFocus()||e.target===this.tokensAndInput?this.setState({isActive:!0}):this.setState({isActive:!1}),"function"==typeof this.props.onFocus&&this.props.onFocus(e)}},{key:"onBlur",value:function(){this.inputHasValidValue()?this.setState({isActive:!1}):this.setState(Xt)}},{key:"onKeyDown",value:function(e){var t=!1;switch(e.keyCode){case w.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case w.ENTER:t=this.addCurrentToken();break;case w.LEFT:t=this.handleLeftArrowKey();break;case w.UP:t=this.handleUpArrowKey();break;case w.RIGHT:t=this.handleRightArrowKey();break;case w.DOWN:t=this.handleDownArrowKey();break;case w.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case w.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case w.ESCAPE:t=this.handleEscapeKey(e),e.stopPropagation()}t&&e.preventDefault()}},{key:"onKeyPress",value:function(e){var t=!1;switch(e.charCode){case 44:t=this.handleCommaKey()}t&&e.preventDefault()}},{key:"onContainerTouched",value:function(e){e.target===this.tokensAndInput&&this.state.isActive&&e.preventDefault()}},{key:"onTokenClickRemove",value:function(e){this.deleteToken(e.value),this.input.focus()}},{key:"onSuggestionHovered",value:function(e){var t=this.getMatchingSuggestions().indexOf(e);t>=0&&this.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}},{key:"onSuggestionSelected",value:function(e){this.addNewToken(e)}},{key:"onInputChange",value:function(e){var t=e.value,n=this.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=Object(D.last)(r)||"";r.length>1&&this.addNewTokens(r.slice(0,-1)),this.setState({incompleteTokenValue:o},this.updateSuggestions),this.props.onInputChange(o)}},{key:"handleDeleteKey",value:function(e){var t=!1;return this.input.hasFocus()&&this.isInputEmpty()&&(e(),t=!0),t}},{key:"handleLeftArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputBeforePreviousToken(),e=!0),e}},{key:"handleRightArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputAfterNextToken(),e=!0),e}},{key:"handleUpArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(0===t.selectedSuggestionIndex?e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length:t.selectedSuggestionIndex)-1,selectedSuggestionScroll:!0}})),!0}},{key:"handleDownArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(t.selectedSuggestionIndex+1)%e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length,selectedSuggestionScroll:!0}})),!0}},{key:"handleEscapeKey",value:function(e){return this.setState({incompleteTokenValue:e.target.value,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),!0}},{key:"handleCommaKey",value:function(){return this.inputHasValidValue()&&this.addNewToken(this.state.incompleteTokenValue),!0}},{key:"moveInputToIndex",value:function(e){this.setState((function(t,n){return{inputOffsetFromEnd:n.value.length-Math.max(e,-1)-1}}))}},{key:"moveInputBeforePreviousToken",value:function(){this.setState((function(e,t){return{inputOffsetFromEnd:Math.min(e.inputOffsetFromEnd+1,t.value.length)}}))}},{key:"moveInputAfterNextToken",value:function(){this.setState((function(e){return{inputOffsetFromEnd:Math.max(e.inputOffsetFromEnd-1,0)}}))}},{key:"deleteTokenBeforeInput",value:function(){var e=this.getIndexOfInput()-1;e>-1&&this.deleteToken(this.props.value[e])}},{key:"deleteTokenAfterInput",value:function(){var e=this.getIndexOfInput();e0){var r=Object(D.clone)(this.props.value);r.splice.apply(r,[this.getIndexOfInput(),0].concat(n)),this.props.onChange(r)}}},{key:"addNewToken",value:function(e){this.addNewTokens([e]),this.props.speak(this.props.messages.added,"assertive"),this.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!1}),this.state.isActive&&this.input.focus()}},{key:"deleteToken",value:function(e){var t=this,n=this.props.value.filter((function(n){return t.getTokenValue(n)!==t.getTokenValue(e)}));this.props.onChange(n),this.props.speak(this.props.messages.removed,"assertive")}},{key:"getTokenValue",value:function(e){return"object"===Object(Wt.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,a=o(e),i=[],s=[];return 0===a.length?t=Object(D.difference)(t,n):(a=a.toLocaleLowerCase(),Object(D.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(a);-1===n.indexOf(e)&&(0===t?i.push(e):t>0&&s.push(e))})),t=i.concat(s)),Object(D.take)(t,r)}},{key:"getSelectedSuggestion",value:function(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}},{key:"valueContainsToken",value:function(e){var t=this;return Object(D.some)(this.props.value,(function(n){return t.getTokenValue(e)===t.getTokenValue(n)}))}},{key:"getIndexOfInput",value:function(){return this.props.value.length-this.state.inputOffsetFromEnd}},{key:"isInputEmpty",value:function(){return 0===this.state.incompleteTokenValue.length}},{key:"inputHasValidValue",value:function(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}},{key:"updateSuggestions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.incompleteTokenValue,n=t.trim().length>1,r=this.getMatchingSuggestions(t),o=r.length>0,a={isExpanded:n&&o};if(e&&(a.selectedSuggestionIndex=-1,a.selectedSuggestionScroll=!1),this.setState(a),n){var i=this.props.debouncedSpeak,s=o?Object(M.sprintf)(Object(M._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",r.length),r.length):Object(M.__)("No results.");i(s,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(D.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var r=this.getTokenValue(e),a=e.status?e.status:void 0,i=t+1,s=n.length;return Object(o.createElement)(Ut,{key:"token-"+r,value:r,status:a,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==a&&this.props.disabled,messages:this.props.messages,termsCount:s,termPosition:i})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,a=e.maxLength,i=e.value,s={instanceId:e.instanceId,autoCapitalize:t,autoComplete:n,ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return a&&i.length>=a||(s=Object(r.a)({},s,{onChange:this.onInputChange})),Object(o.createElement)($t,s)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(M.__)("Add item"):n,a=e.instanceId,i=e.className,s=this.state.isExpanded,c=p()(i,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),l={className:"components-form-token-field",tabIndex:"-1"},u=this.getMatchingSuggestions();return t||(l=Object.assign({},l,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(o.createElement)("div",l,Object(o.createElement)("label",{htmlFor:"components-form-token-input-".concat(a),className:"components-form-token-field__label"},r),Object(o.createElement)("div",{ref:this.bindTokensAndInput,className:c,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),s&&Object(o.createElement)(Zt,{instanceId:a,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:u,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(o.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(a),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(M.__)("Separate with commas, spaces, or the Enter key."):Object(M.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),t}(o.Component);Qt.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:D.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(M.__)("Item added."),removed:Object(M.__)("Item removed."),remove:Object(M.__)("Remove item")}};var Jt=Oe(Object(S.withInstanceId)(Qt));var en=function(e){var t,n=e.icon,a=void 0===n?null:n,i=e.size,s=Object(P.a)(e,["icon","size"]);if("string"==typeof a)return t=i||20,Object(o.createElement)(J,Object(z.a)({icon:a,size:t},s));if(t=i||24,"function"==typeof a)return a.prototype instanceof o.Component?Object(o.createElement)(a,Object(r.a)({size:t},s)):a(Object(r.a)({size:t},s));if(a&&("svg"===a.type||a.type===u)){var c=Object(r.a)({width:t,height:t},a.props,s);return Object(o.createElement)(u,c)}return Object(o.isValidElement)(a)?Object(o.cloneElement)(a,Object(r.a)({size:t},s)):a};var tn=Object(S.withInstanceId)((function(e){var t=e.children,n=e.className,r=void 0===n?"":n,a=e.instanceId,i=e.label;if(!o.Children.count(t))return null;var s="components-menu-group-label-".concat(a),c=p()(r,"components-menu-group");return Object(o.createElement)("div",{className:c},i&&Object(o.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},i),Object(o.createElement)("div",{role:"group","aria-labelledby":i?s:null},t))}));var nn=function(e){var t=e.children,n=e.info,r=e.className,a=e.icon,i=e.shortcut,s=e.isSelected,c=e.role,l=void 0===c?"menuitem":c,u=Object(P.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return r=p()("components-menu-item__button",r,{"has-icon":a}),n&&(t=Object(o.createElement)("span",{className:"components-menu-item__info-wrapper"},t,Object(o.createElement)("span",{className:"components-menu-item__info"},n))),a&&!Object(D.isString)(a)&&(a=Object(o.cloneElement)(a,{className:"components-menu-items__item-icon",height:20,width:20})),Object(o.createElement)(ee,Object(z.a)({icon:a,"aria-checked":"menuitemcheckbox"===l||"menuitemradio"===l?s:void 0,role:l,className:r},u),t,Object(o.createElement)(Z,{className:"components-menu-item__shortcut",shortcut:i}))};function rn(e){var t=e.choices,n=void 0===t?[]:t,r=e.onSelect,a=e.value;return n.map((function(e){var t=a===e.value;return Object(o.createElement)(nn,{key:e.value,role:"menuitemradio",icon:t&&"yes",isSelected:t,shortcut:e.shortcut,onClick:function(){t||r(e.value)}},e.label)}))}var on=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).containerRef=Object(o.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(g.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(g.a)(e)),e.focusFirstTabbable=e.focusFirstTabbable.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusFirstTabbable()}},{key:"focusFirstTabbable",value:function(){var e=j.focus.tabbable.find(this.containerRef.current);e.length&&e[0].focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===w.ESCAPE&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.contentLabel,r=e.aria,a=r.describedby,i=r.labelledby,s=e.children,c=e.className,l=e.role,u=e.style;return Object(o.createElement)(ne,{className:p()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(o.createElement)("div",{className:p()("components-modal__frame",c),style:u,ref:this.containerRef,role:l,"aria-label":n,"aria-labelledby":n?null:i,"aria-describedby":a,tabIndex:"-1"},s))}}]),t}(o.Component),an=Object(S.compose)([W,U,q])(on),sn=function(e){var t=e.icon,n=e.title,r=e.onClose,a=e.closeLabel,i=e.headingId,s=e.isDismissable,c=a||Object(M.__)("Close dialog");return Object(o.createElement)("div",{className:"components-modal__header"},Object(o.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(o.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(o.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),s&&Object(o.createElement)(ee,{onClick:r,icon:"no-alt",label:c}))},cn=new Set(["alert","status","log","marquee","timer"]),ln=[],un=!1;function dn(e){if(!un){var t=document.body.children;Object(D.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||cn.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),ln.push(t))})),un=!0}}var hn,fn=0,pn=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).prepareDOM(),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){1===++fn&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--fn&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){hn||(hn=document.createElement("div"),document.body.appendChild(hn)),this.node=document.createElement("div"),hn.appendChild(this.node)}},{key:"cleanDOM",value:function(){hn.removeChild(this.node)}},{key:"openFirstModal",value:function(){dn(hn),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),un&&(Object(D.forEach)(ln,(function(e){e.removeAttribute("aria-hidden")})),ln=[],un=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,a=e.closeButtonLabel,i=e.children,s=e.aria,c=e.instanceId,l=e.isDismissable,u=Object(P.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissable"]),d=s.labelledby||"components-modal-header-".concat(c);return Object(o.createPortal)(Object(o.createElement)(an,Object(z.a)({onRequestClose:t,aria:{labelledby:n?d:null,describedby:s.describedby}},u),Object(o.createElement)("div",{className:"components-modal__content",tabIndex:"0"},Object(o.createElement)(sn,{closeLabel:a,headingId:d,icon:r,isDismissable:l,onClose:t,title:n}),i)),this.node)}}]),t}(o.Component);pn.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissable:!0,aria:{labelledby:null,describedby:null}};var vn=Object(S.withInstanceId)(pn);var bn=function(e){var t=e.className,n=e.status,r=e.children,a=e.onRemove,i=void 0===a?D.noop:a,s=e.isDismissible,c=void 0===s||s,l=e.actions,u=void 0===l?[]:l,d=e.__unstableHTML,h=p()(t,"components-notice","is-"+n,{"is-dismissible":c});return d&&(r=Object(o.createElement)(o.RawHTML,null,r)),Object(o.createElement)("div",{className:h},Object(o.createElement)("div",{className:"components-notice__content"},r,u.map((function(e,t){var n=e.className,r=e.label,a=e.noDefaultClasses,i=void 0!==a&&a,s=e.onClick,c=e.url;return Object(o.createElement)(E,{key:t,href:c,isDefault:!i&&!c,isLink:!i&&!!c,onClick:c?void 0:s,className:p()("components-notice__action",n)},r)}))),c&&Object(o.createElement)(ee,{className:"components-notice__dismiss",icon:"no-alt",label:Object(M.__)("Dismiss this notice"),onClick:i,tooltip:!1}))};var mn=function(e){var t=e.notices,n=e.onRemove,r=void 0===n?D.noop:n,a=e.className,i=e.children;return a=p()("components-notice-list",a),Object(o.createElement)("div",{className:a},i,Object(_.a)(t).reverse().map((function(e){return Object(o.createElement)(bn,Object(z.a)({},Object(D.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,function(){return r(t)})}),e.content);var t})))};var yn=function(e){var t=e.label,n=e.children;return Object(o.createElement)("div",{className:"components-panel__header"},t&&Object(o.createElement)("h2",null,t),n)};var gn=function(e){var t=e.header,n=e.className,r=e.children,a=p()(n,"components-panel");return Object(o.createElement)("div",{className:a},t&&Object(o.createElement)(yn,{label:t}),r)},On=function(e){function t(e){var n;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={opened:void 0===e.initialOpen||e.initialOpen},n.toggle=n.toggle.bind(Object(g.a)(n)),n}return Object(k.a)(t,e),Object(O.a)(t,[{key:"toggle",value:function(e){e.preventDefault(),void 0===this.props.opened&&this.setState((function(e){return{opened:!e.opened}})),this.props.onToggle&&this.props.onToggle()}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,r=e.opened,a=e.className,c=e.icon,l=e.forwardedRef,d=void 0===r?this.state.opened:r,h=p()("components-panel__body",a,{"is-opened":d});return Object(o.createElement)("div",{className:h,ref:l},!!t&&Object(o.createElement)("h2",{className:"components-panel__body-title"},Object(o.createElement)(E,{className:"components-panel__body-toggle",onClick:this.toggle,"aria-expanded":d},Object(o.createElement)("span",{"aria-hidden":"true"},d?Object(o.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(i,null,Object(o.createElement)(s,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(o.createElement)(i,null,Object(o.createElement)(s,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"}))):Object(o.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(i,null,Object(o.createElement)(s,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(o.createElement)(i,null,Object(o.createElement)(s,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})))),t,c&&Object(o.createElement)(en,{icon:c,className:"components-panel__icon",size:20}))),d&&n)}}]),t}(o.Component),kn=function(e,t){return Object(o.createElement)(On,Object(z.a)({},e,{forwardedRef:t}))};kn.displayName="PanelBody";var _n=Object(o.forwardRef)(kn);var Dn=function(e){var t=e.className,n=e.children,r=p()("components-panel__row",t);return Object(o.createElement)("div",{className:r},n)};var wn=function(e){var t=e.icon,n=e.children,r=e.label,a=e.instructions,i=e.className,s=e.notices,c=e.preview,l=e.isColumnLayout,u=Object(P.a)(e,["icon","children","label","instructions","className","notices","preview","isColumnLayout"]),d=p()("components-placeholder",i),h=p()("components-placeholder__fieldset",{"is-column-layout":l});return Object(o.createElement)("div",Object(z.a)({},u,{className:d}),s,c&&Object(o.createElement)("div",{className:"components-placeholder__preview"},c),Object(o.createElement)("div",{className:"components-placeholder__label"},Object(D.isString)(t)?Object(o.createElement)(J,{icon:t}):t,r),!!a&&Object(o.createElement)("div",{className:"components-placeholder__instructions"},a),Object(o.createElement)("div",{className:h},n))};function Mn(e){var t=e.label,n=e.noOptionLabel,r=e.onChange,a=e.selectedId,i=e.tree,s=Object(P.a)(e,["label","noOptionLabel","onChange","selectedId","tree"]),c=Object(D.compact)([n&&{value:"",label:n}].concat(Object(_.a)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(D.flatMap)(t,(function(t){return[{value:t.id,label:Object(D.repeat)(" ",3*n)+Object(D.unescape)(t.name)}].concat(Object(_.a)(e(t.children||[],n+1)))}))}(i))));return Object(o.createElement)(Ft,Object(z.a)({label:t,options:c,onChange:r},{value:a},s))}function Sn(e){var t,n,a=e.label,i=e.noOptionLabel,s=e.categoriesList,c=e.selectedCategoryId,l=e.onChange,u=(t=s.map((function(e){return Object(r.a)({children:[],parent:null},e)})),(n=Object(D.groupBy)(t,"parent")).null&&n.null.length?t:function e(t){return t.map((function(t){var o=n[t.id];return Object(r.a)({},t,{children:o&&o.length?e(o):[]})}))}(n[0]||[]));return Object(o.createElement)(Mn,Object(z.a)({label:a,noOptionLabel:i,onChange:l},{tree:u,selectedId:c}))}var Cn=1,jn=100;function Pn(e){var t=e.categoriesList,n=e.selectedCategoryId,r=e.numberOfItems,a=e.order,i=e.orderBy,s=e.maxItems,c=void 0===s?jn:s,l=e.minItems,u=void 0===l?Cn:l,d=e.onCategoryChange,f=e.onNumberOfItemsChange,p=e.onOrderChange,v=e.onOrderByChange;return[p&&v&&Object(o.createElement)(Ft,{key:"query-controls-order-select",label:Object(M.__)("Order by"),value:"".concat(i,"/").concat(a),options:[{label:Object(M.__)("Newest to Oldest"),value:"date/desc"},{label:Object(M.__)("Oldest to Newest"),value:"date/asc"},{label:Object(M.__)("A → Z"),value:"title/asc"},{label:Object(M.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(h.a)(t,2),r=n[0],o=n[1];o!==a&&p(o),r!==i&&v(r)}}),d&&Object(o.createElement)(Sn,{key:"query-controls-category-select",categoriesList:t,label:Object(M.__)("Category"),noOptionLabel:Object(M.__)("All"),selectedCategoryId:n,onChange:d}),f&&Object(o.createElement)(Lt,{key:"query-controls-range-control",label:Object(M.__)("Number of items"),value:r,onChange:f,min:u,max:c,required:!0})]}var En=Object(S.withInstanceId)((function(e){var t=e.label,n=e.className,r=e.selected,a=e.help,i=e.instanceId,s=e.onChange,c=e.options,l=void 0===c?[]:c,u="inspector-radio-control-".concat(i),d=function(e){return s(e.target.value)};return!Object(D.isEmpty)(l)&&Object(o.createElement)(Se,{label:t,id:u,help:a,className:p()(n,"components-radio-control")},l.map((function(e,t){return Object(o.createElement)("div",{key:"".concat(u,"-").concat(t),className:"components-radio-control__option"},Object(o.createElement)("input",{id:"".concat(u,"-").concat(t),className:"components-radio-control__input",type:"radio",name:u,value:e.value,onChange:d,checked:e.value===r,"aria-describedby":a?"".concat(u,"__help"):void 0}),Object(o.createElement)("label",{htmlFor:"".concat(u,"-").concat(t)},e.label))})))})),zn=n(204);var Tn=function(e){var t=e.className,n=Object(P.a)(e,["className"]),r={width:null,height:null,top:null,right:null,bottom:null,left:null},a="components-resizable-box__handle",i="components-resizable-box__side-handle",s="components-resizable-box__corner-handle";return Object(o.createElement)(zn.Resizable,Object(z.a)({className:p()("components-resizable-box__container",t),handleClasses:{top:p()(a,i,"components-resizable-box__handle-top"),right:p()(a,i,"components-resizable-box__handle-right"),bottom:p()(a,i,"components-resizable-box__handle-bottom"),left:p()(a,i,"components-resizable-box__handle-left"),topLeft:p()(a,s,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:p()(a,s,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:p()(a,s,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:p()(a,s,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},handleStyles:{top:r,right:r,bottom:r,left:r,topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}},n))};var In=function(e){var t=e.naturalWidth,n=e.naturalHeight,r=e.children;if(1!==o.Children.count(r))return null;var a={paddingBottom:n/t*100+"%"};return Object(o.createElement)("div",{className:"components-responsive-wrapper"},Object(o.createElement)("div",{style:a}),Object(o.cloneElement)(r,{className:p()("components-responsive-wrapper__content",r.props.className)}))},xn=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).trySandbox=e.trySandbox.bind(Object(g.a)(e)),e.checkMessageForResize=e.checkMessageForResize.bind(Object(g.a)(e)),e.iframe=Object(o.createRef)(),e.state={width:0,height:0},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"componentDidMount",value:function(){this.trySandbox()}},{key:"componentDidUpdate",value:function(){this.trySandbox()}},{key:"isFrameAccessible",value:function(){try{return!!this.iframe.current.contentDocument.body}catch(e){return!1}}},{key:"checkMessageForResize",value:function(e){var t=this.iframe.current,n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}if(t&&t.contentWindow===e.source){var r=n,o=r.action,a=r.width,i=r.height,s=this.state,c=s.width,l=s.height;"resize"!==o||c===a&&l===i||this.setState({width:a,height:i})}}},{key:"trySandbox",value:function(){if(this.isFrameAccessible()&&null===this.iframe.current.contentDocument.body.getAttribute("data-resizable-iframe-connected")){var e=Object(o.createElement)("html",{lang:document.documentElement.lang,className:this.props.type},Object(o.createElement)("head",null,Object(o.createElement)("title",null,this.props.title),Object(o.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\thtml,\n\t\t\tbody,\n\t\t\tbody > div,\n\t\t\tbody > div > iframe {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\thtml.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio > div,\n\t\t\tbody.wp-has-aspect-ratio > div > iframe {\n\t\t\t\theight: 100%;\n\t\t\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t\t\t}\n\t\t\tbody > div > * {\n\t\t\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\t\t\tmargin-bottom: 0 !important;\n\t\t\t}\n\t\t"}}),this.props.styles&&this.props.styles.map((function(e,t){return Object(o.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),Object(o.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:this.props.type},Object(o.createElement)("div",{dangerouslySetInnerHTML:{__html:this.props.html}}),Object(o.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:"\n\t\t\t( function() {\n\t\t\t\tvar observer;\n\n\t\t\t\tif ( ! window.MutationObserver || ! document.body || ! window.parent ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfunction sendResize() {\n\t\t\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\t\t\twindow.parent.postMessage( {\n\t\t\t\t\t\taction: 'resize',\n\t\t\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\t\t\theight: clientBoundingRect.height,\n\t\t\t\t\t}, '*' );\n\t\t\t\t}\n\n\t\t\t\tobserver = new MutationObserver( sendResize );\n\t\t\t\tobserver.observe( document.body, {\n\t\t\t\t\tattributes: true,\n\t\t\t\t\tattributeOldValue: false,\n\t\t\t\t\tcharacterData: true,\n\t\t\t\t\tcharacterDataOldValue: false,\n\t\t\t\t\tchildList: true,\n\t\t\t\t\tsubtree: true\n\t\t\t\t} );\n\n\t\t\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t\t\t// the iframe root and interfere with our mechanism for\n\t\t\t\t// determining the unconstrained page bounds.\n\t\t\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\t\t\tif( ruleOrNode.style ) {\n\t\t\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function( style ) {\n\t\t\t\t\t\t\tif ( /^\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] ) ) {\n\t\t\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tArray.prototype.forEach.call( document.querySelectorAll( '[style]' ), removeViewportStyles );\n\t\t\t\tArray.prototype.forEach.call( document.styleSheets, function( stylesheet ) {\n\t\t\t\t\tArray.prototype.forEach.call( stylesheet.cssRules || stylesheet.rules, removeViewportStyles );\n\t\t\t\t} );\n\n\t\t\t\tdocument.body.style.position = 'absolute';\n\t\t\t\tdocument.body.style.width = '100%';\n\t\t\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\t\t\tsendResize();\n\n\t\t\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\t\t\twindow.addEventListener( 'resize', sendResize, true );\n\t\t} )();"}}),this.props.scripts&&this.props.scripts.map((function(e){return Object(o.createElement)("script",{key:e,src:e})})))),t=this.iframe.current.contentWindow.document;t.open(),t.write(""+Object(o.renderToString)(e)),t.close()}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(o.createElement)(Rt,{iframeRef:this.iframe,title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onLoad:this.trySandbox,onFocus:n,width:Math.ceil(this.state.width),height:Math.ceil(this.state.height)})}}],[{key:"defaultProps",get:function(){return{html:"",title:""}}}]),t}(o.Component),Hn=xn=Object(S.withGlobalEvents)({message:"checkMessageForResize"})(xn),Nn=1e4;var Rn=Object(o.forwardRef)((function(e,t){var n=e.className,r=e.children,a=e.actions,i=void 0===a?[]:a,s=e.onRemove,c=void 0===s?D.noop:s;Object(o.useEffect)((function(){var e=setTimeout((function(){c()}),Nn);return function(){return clearTimeout(e)}}),[]);var l=p()(n,"components-snackbar");return i&&i.length>1&&(console.warn("Snackbar can only have 1 action, use Notice if your message require many messages"),i=[i[0]]),Object(o.createElement)("div",{ref:t,className:l,onClick:c,tabIndex:"0",role:"button",onKeyPress:c,label:Object(M.__)("Dismiss this notice")},Object(o.createElement)("div",{className:"components-snackbar__content"},r,i.map((function(e,t){var n=e.label,r=e.onClick,a=e.url;return Object(o.createElement)(E,{key:t,href:a,isTertiary:!0,onClick:function(e){e.stopPropagation(),r&&r(e)},className:"components-snackbar__action"},n)}))))})),Ln=n(20),Fn=n.n(Ln),An=n(43),Vn=n(60);var Bn=function(e){var t=e.notices,n=e.className,r=e.children,a=e.onRemove,i=void 0===a?D.noop:a,s=Object(S.useReducedMotion)(),c=Object(o.useState)((function(){return new WeakMap})),l=Object(h.a)(c,1)[0],u=Object(Vn.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(An.a)(Fn.a.mark((function t(n){return Fn.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:l.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=Object(An.a)(Fn.a.mark((function e(t){return Fn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:s});n=p()("components-snackbar-list",n);var d=function(e){return function(){return i(e.id)}};return Object(o.createElement)("div",{className:n},r,u.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(o.createElement)(Vn.animated.div,{key:n,style:r},Object(o.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&l.set(t,e)}},Object(o.createElement)(Rn,Object(z.a)({},Object(D.omit)(t,["content"]),{onRemove:d(t)}),t.content)))})))};function Kn(){return Object(o.createElement)("span",{className:"components-spinner"})}var Wn=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=Object(P.a)(e,["tabId","onClick","children","selected"]);return Object(o.createElement)(E,Object(z.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},Un=function(e){function t(){var e;Object(b.a)(this,t);var n=(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).props,r=n.tabs,o=n.initialTabName;return e.handleClick=e.handleClick.bind(Object(g.a)(e)),e.onNavigate=e.onNavigate.bind(Object(g.a)(e)),e.state={selected:o||(r.length>0?r[0].name:null)},e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"handleClick",value:function(e){var t=this.props.onSelect,n=void 0===t?D.noop:t;this.setState({selected:e}),n(e)}},{key:"onNavigate",value:function(e,t){t.click()}},{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,s=n.instanceId,c=n.orientation,l=void 0===c?"horizontal":c,u=n.tabs,h=Object(D.find)(u,{name:t}),f=s+"-"+h.name;return Object(o.createElement)("div",{className:i},Object(o.createElement)(jt,{role:"tablist",orientation:l,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},u.map((function(n){return Object(o.createElement)(Wn,{className:p()(n.className,Object(d.a)({},a,n.name===t)),tabId:s+"-"+n.name,"aria-controls":s+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(D.partial)(e.handleClick,n.name)},n.title)}))),h&&Object(o.createElement)("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content",tabIndex:"0"},this.props.children(h)))}}]),t}(o.Component),$n=Object(S.withInstanceId)(Un);var qn=Object(S.withInstanceId)((function(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,i=e.instanceId,s=e.onChange,c=e.rows,l=void 0===c?4:c,u=e.className,d=Object(P.a)(e,["label","hideLabelFromVision","value","help","instanceId","onChange","rows","className"]),h="inspector-textarea-control-".concat(i);return Object(o.createElement)(Se,{label:t,hideLabelFromVision:n,id:h,help:a,className:u},Object(o.createElement)("textarea",Object(z.a)({className:"components-textarea-control__input",id:h,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":a?h+"__help":void 0,value:r},d)))}));var Gn=function(e){return Object(o.createElement)("div",{className:"components-tip"},Object(o.createElement)(u,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(s,{d:"M20.45 4.91L19.04 3.5l-1.79 1.8 1.41 1.41 1.79-1.8zM13 4h-2V1h2v3zm10 9h-3v-2h3v2zm-12 6.95v-3.96l-1-.58c-1.24-.72-2-2.04-2-3.46 0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.42-.77 2.74-2 3.46l-1 .58v3.96h-2zm-2 2h6v-4.81c1.79-1.04 3-2.97 3-5.19 0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19v4.81zM4 13H1v-2h3v2zm2.76-7.71l-1.79-1.8L3.56 4.9l1.8 1.79 1.4-1.4z"})),Object(o.createElement)("p",null,e.children))},Yn=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(g.a)(e)),e}return Object(k.a)(t,e),Object(O.a)(t,[{key:"onChange",value:function(e){this.props.onChange&&this.props.onChange(e.target.checked)}},{key:"render",value:function(){var e,t,n=this.props,r=n.label,a=n.checked,i=n.help,s=n.instanceId,c=n.className,l="inspector-toggle-control-".concat(s);return i&&(e=l+"__help",t=Object(D.isFunction)(i)?i(a):i),Object(o.createElement)(Se,{id:l,help:t,className:p()("components-toggle-control",c)},Object(o.createElement)(Kt,{id:l,checked:a,onChange:this.onChange,"aria-describedby":e}),Object(o.createElement)("label",{htmlFor:l,className:"components-toggle-control__label"},r))}}]),t}(o.Component),Zn=Object(S.withInstanceId)(Yn),Xn=function(e){return Object(o.createElement)("div",{className:e.className},e.children)};var Qn=function(e){var t=e.containerClassName,n=e.icon,r=e.title,a=e.shortcut,i=e.subscript,s=e.onClick,c=e.className,l=e.isActive,u=e.isDisabled,d=e.extraProps,h=e.children;return Object(o.createElement)(Xn,{className:t},Object(o.createElement)(ee,Object(z.a)({icon:n,label:r,shortcut:a,"data-subscript":i,onClick:function(e){e.stopPropagation(),s()},className:p()("components-toolbar__control",c,{"is-active":l}),"aria-pressed":l,disabled:u},d)),h)},Jn=function(e){return Object(o.createElement)("div",{className:e.className},e.children)};var er=function(e){var t=e.controls,n=void 0===t?[]:t,r=e.children,a=e.className,i=e.isCollapsed,s=e.icon,c=e.label,l=Object(P.a)(e,["controls","children","className","isCollapsed","icon","label"]);if(!(n&&n.length||r))return null;var u=n;return Array.isArray(u[0])||(u=[u]),i?Object(o.createElement)(zt,{hasArrowIndicator:!0,icon:s,label:c,controls:u,className:p()("components-toolbar",a)}):Object(o.createElement)(Jn,Object(z.a)({className:p()("components-toolbar",a)},l),Object(D.flatMap)(u,(function(e,t){return e.map((function(e,n){return Object(o.createElement)(Qn,Object(z.a)({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e))}))})),r)},tr=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(g.a)(e)),e.focusNextRegion=e.focusRegion.bind(Object(g.a)(e),1),e.focusPreviousRegion=e.focusRegion.bind(Object(g.a)(e),-1),e.onClick=e.onClick.bind(Object(g.a)(e)),e.state={isFocusingRegions:!1},e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"bindContainer",value:function(e){this.container=e}},{key:"focusRegion",value:function(e){var t=Object(_.a)(this.container.querySelectorAll('[role="region"]'));if(t.length){var n=t[0],r=t.indexOf(document.activeElement);if(-1!==r){var o=r+e;n=t[o=(o=-1===o?t.length-1:o)===t.length?0:o]}n.focus(),this.setState({isFocusingRegions:!0})}}},{key:"onClick",value:function(){this.setState({isFocusingRegions:!1})}},{key:"render",value:function(){var t,n=p()("components-navigate-regions",{"is-focusing-regions":this.state.isFocusingRegions});return Object(o.createElement)("div",{ref:this.bindContainer,className:n,onClick:this.onClick},Object(o.createElement)(Ve,{bindGlobal:!0,shortcuts:(t={"ctrl+`":this.focusNextRegion},Object(d.a)(t,w.rawShortcut.access("n"),this.focusNextRegion),Object(d.a)(t,"ctrl+shift+`",this.focusPreviousRegion),Object(d.a)(t,w.rawShortcut.access("p"),this.focusPreviousRegion),t)}),Object(o.createElement)(e,this.props))}}]),n}(o.Component)}),"navigateRegions"),nr=function(e){return Object(S.createHigherOrderComponent)((function(t){return function(n){function r(){var e;return Object(b.a)(this,r),(e=Object(m.a)(this,Object(y.a)(r).apply(this,arguments))).nodeRef=e.props.node,e.state={fallbackStyles:void 0,grabStylesCompleted:!1},e.bindRef=e.bindRef.bind(Object(g.a)(e)),e}return Object(k.a)(r,n),Object(O.a)(r,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"componentDidMount",value:function(){this.grabFallbackStyles()}},{key:"componentDidUpdate",value:function(){this.grabFallbackStyles()}},{key:"grabFallbackStyles",value:function(){var t=this.state,n=t.grabStylesCompleted,r=t.fallbackStyles;if(this.nodeRef&&!n){var o=e(this.nodeRef,this.props);Object(D.isEqual)(o,r)||this.setState({fallbackStyles:o,grabStylesCompleted:!!Object(D.every)(o)})}}},{key:"render",value:function(){var e=Object(o.createElement)(t,Object(z.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(o.createElement)("div",{ref:this.bindRef}," ",e," ")}}]),r}(o.Component)}),"withFallbackStyles")},rr=n(27),or=16;function ar(e){return Object(S.createHigherOrderComponent)((function(t){var n,r="core/with-filters/"+e;var a=function(a){function i(){var r;return Object(b.a)(this,i),r=Object(m.a)(this,Object(y.a)(i).apply(this,arguments)),void 0===n&&(n=Object(rr.applyFilters)(e,t)),r}return Object(k.a)(i,a),Object(O.a)(i,[{key:"componentDidMount",value:function(){i.instances.push(this),1===i.instances.length&&(Object(rr.addAction)("hookRemoved",r,s),Object(rr.addAction)("hookAdded",r,s))}},{key:"componentWillUnmount",value:function(){i.instances=Object(D.without)(i.instances,this),0===i.instances.length&&(Object(rr.removeAction)("hookRemoved",r),Object(rr.removeAction)("hookAdded",r))}},{key:"render",value:function(){return Object(o.createElement)(n,this.props)}}]),i}(o.Component);a.instances=[];var i=Object(D.debounce)((function(){n=Object(rr.applyFilters)(e,t),a.instances.forEach((function(e){e.forceUpdate()}))}),or);function s(t){t===e&&i()}return a}),"withFilters")}var ir=n(64),sr=n.n(ir),cr=Object(S.createHigherOrderComponent)((function(e){return function(t){function n(){var e;return Object(b.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).createNotice=e.createNotice.bind(Object(g.a)(e)),e.createErrorNotice=e.createErrorNotice.bind(Object(g.a)(e)),e.removeNotice=e.removeNotice.bind(Object(g.a)(e)),e.removeAllNotices=e.removeAllNotices.bind(Object(g.a)(e)),e.state={noticeList:[]},e.noticeOperations={createNotice:e.createNotice,createErrorNotice:e.createErrorNotice,removeAllNotices:e.removeAllNotices,removeNotice:e.removeNotice},e}return Object(k.a)(n,t),Object(O.a)(n,[{key:"createNotice",value:function(e){var t=e.id?e:Object(r.a)({},e,{id:sr()()});this.setState((function(e){return{noticeList:[].concat(Object(_.a)(e.noticeList),[t])}}))}},{key:"createErrorNotice",value:function(e){this.createNotice({status:"error",content:e})}},{key:"removeNotice",value:function(e){this.setState((function(t){return{noticeList:t.noticeList.filter((function(t){return t.id!==e}))}}))}},{key:"removeAllNotices",value:function(){this.setState({noticeList:[]})}},{key:"render",value:function(){return Object(o.createElement)(e,Object(z.a)({noticeList:this.state.noticeList,noticeOperations:this.noticeOperations,noticeUI:this.state.noticeList.length>0&&Object(o.createElement)(mn,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),n}(o.Component)}));n.d(t,"Circle",(function(){return a})),n.d(t,"G",(function(){return i})),n.d(t,"Path",(function(){return s})),n.d(t,"Polygon",(function(){return c})),n.d(t,"Rect",(function(){return l})),n.d(t,"SVG",(function(){return u})),n.d(t,"HorizontalRule",(function(){return"hr"})),n.d(t,"BlockQuotation",(function(){return"blockquote"})),n.d(t,"Animate",(function(){return v})),n.d(t,"Autocomplete",(function(){return we})),n.d(t,"BaseControl",(function(){return Se})),n.d(t,"Button",(function(){return E})),n.d(t,"ButtonGroup",(function(){return Ce})),n.d(t,"CheckboxControl",(function(){return je})),n.d(t,"ClipboardButton",(function(){return ze})),n.d(t,"ColorIndicator",(function(){return Te})),n.d(t,"ColorPalette",(function(){return nt})),n.d(t,"ColorPicker",(function(){return tt})),n.d(t,"Dashicon",(function(){return J})),n.d(t,"DateTimePicker",(function(){return ct})),n.d(t,"DatePicker",(function(){return it})),n.d(t,"TimePicker",(function(){return st})),n.d(t,"Disabled",(function(){return pt})),n.d(t,"Draggable",(function(){return bt})),n.d(t,"DropZone",(function(){return wt})),n.d(t,"DropZoneProvider",(function(){return _t})),n.d(t,"Dropdown",(function(){return Ie})),n.d(t,"DropdownMenu",(function(){return zt})),n.d(t,"ExternalLink",(function(){return Tt})),n.d(t,"FocalPointPicker",(function(){return xt})),n.d(t,"FocusableIframe",(function(){return Rt})),n.d(t,"FontSizePicker",(function(){return Vt})),n.d(t,"FormFileUpload",(function(){return Bt})),n.d(t,"FormToggle",(function(){return Kt})),n.d(t,"FormTokenField",(function(){return Jt})),n.d(t,"Icon",(function(){return en})),n.d(t,"IconButton",(function(){return ee})),n.d(t,"KeyboardShortcuts",(function(){return Ve})),n.d(t,"MenuGroup",(function(){return tn})),n.d(t,"MenuItem",(function(){return nn})),n.d(t,"MenuItemsChoice",(function(){return rn})),n.d(t,"Modal",(function(){return vn})),n.d(t,"ScrollLock",(function(){return te})),n.d(t,"NavigableMenu",(function(){return jt})),n.d(t,"TabbableContainer",(function(){return Pt})),n.d(t,"Notice",(function(){return bn})),n.d(t,"NoticeList",(function(){return mn})),n.d(t,"Panel",(function(){return gn})),n.d(t,"PanelBody",(function(){return _n})),n.d(t,"PanelHeader",(function(){return yn})),n.d(t,"PanelRow",(function(){return Dn})),n.d(t,"Placeholder",(function(){return wn})),n.d(t,"Popover",(function(){return ye})),n.d(t,"QueryControls",(function(){return Pn})),n.d(t,"RadioControl",(function(){return En})),n.d(t,"RangeControl",(function(){return Lt})),n.d(t,"ResizableBox",(function(){return Tn})),n.d(t,"ResponsiveWrapper",(function(){return In})),n.d(t,"SandBox",(function(){return Hn})),n.d(t,"SelectControl",(function(){return Ft})),n.d(t,"Snackbar",(function(){return Rn})),n.d(t,"SnackbarList",(function(){return Bn})),n.d(t,"Spinner",(function(){return Kn})),n.d(t,"TabPanel",(function(){return $n})),n.d(t,"TextControl",(function(){return $e})),n.d(t,"TextareaControl",(function(){return qn})),n.d(t,"Tip",(function(){return Gn})),n.d(t,"ToggleControl",(function(){return Zn})),n.d(t,"Toolbar",(function(){return er})),n.d(t,"ToolbarButton",(function(){return Qn})),n.d(t,"Tooltip",(function(){return Q})),n.d(t,"TreeSelect",(function(){return Mn})),n.d(t,"IsolatedEventContainer",(function(){return ne})),n.d(t,"createSlotFill",(function(){return pe})),n.d(t,"Slot",(function(){return ue})),n.d(t,"Fill",(function(){return fe})),n.d(t,"SlotFillProvider",(function(){return ce})),n.d(t,"navigateRegions",(function(){return tr})),n.d(t,"withConstrainedTabbing",(function(){return U})),n.d(t,"withFallbackStyles",(function(){return nr})),n.d(t,"withFilters",(function(){return ar})),n.d(t,"withFocusOutside",(function(){return q})),n.d(t,"withFocusReturn",(function(){return W})),n.d(t,"FocusReturnProvider",(function(){return K})),n.d(t,"withNotices",(function(){return cr})),n.d(t,"withSpokenMessages",(function(){return Oe}))}]); \ No newline at end of file diff --git a/wp-includes/js/dist/compose.js b/wp-includes/js/dist/compose.js index dc2fc7a08b..6ccc79073f 100644 --- a/wp-includes/js/dist/compose.js +++ b/wp-includes/js/dist/compose.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["compose"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 391); +/******/ return __webpack_require__(__webpack_require__.s = 322); /******/ }) /************************************************************************/ /******/ ({ @@ -94,30 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["compose"] = /***/ }), -/***/ 11: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} - -/***/ }), - -/***/ 115: +/***/ 104: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -160,6 +137,29 @@ function useMediaQuery(query) { } +/***/ }), + +/***/ 11: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + /***/ }), /***/ 12: @@ -267,18 +267,11 @@ function _extends() { /***/ }), -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 215: +/***/ 187: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _use_media_query__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(115); +/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _use_media_query__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(104); /** * Internal dependencies */ @@ -303,7 +296,14 @@ var useReducedMotion = process.env.FORCE_REDUCED_MOTION || IS_IE ? function () { }; /* harmony default export */ __webpack_exports__["a"] = (useReducedMotion); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(96))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(285))) + +/***/ }), + +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); /***/ }), @@ -353,6 +353,197 @@ function _slicedToArray(arr, i) { return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])(); } +/***/ }), + +/***/ 285: +/***/ (function(module, exports) { + +// shim for using process in browser +var process = module.exports = {}; + +// cached from whatever global is present so that test runners that stub it +// don't break things. But we need to wrap it in a try catch in case it is +// wrapped in strict mode code which doesn't define any globals. It's inside a +// function because try/catches deoptimize in certain engines. + +var cachedSetTimeout; +var cachedClearTimeout; + +function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); +} +function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); +} +(function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } +} ()) +function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + + +} +function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + + + +} +var queue = []; +var draining = false; +var currentQueue; +var queueIndex = -1; + +function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } +} + +function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); +} + +process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + + /***/ }), /***/ 31: @@ -378,29 +569,7 @@ function _typeof(obj) { /***/ }), -/***/ 38: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -/***/ }), - -/***/ 39: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); -} - -/***/ }), - -/***/ 391: +/***/ 322: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -487,7 +656,7 @@ var getPrototypeOf = __webpack_require__(14); var inherits = __webpack_require__(15); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(41); +var external_this_wp_isShallowEqual_ = __webpack_require__(40); var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/pure/index.js @@ -1001,10 +1170,10 @@ function withState() { } // EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-media-query/index.js -var use_media_query = __webpack_require__(115); +var use_media_query = __webpack_require__(104); // EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-reduced-motion/index.js -var use_reduced_motion = __webpack_require__(215); +var use_reduced_motion = __webpack_require__(187); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/index.js /* concated harmony reexport createHigherOrderComponent */__webpack_require__.d(__webpack_exports__, "createHigherOrderComponent", function() { return create_higher_order_component; }); @@ -1047,7 +1216,29 @@ var use_reduced_motion = __webpack_require__(215); /***/ }), -/***/ 41: +/***/ 38: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + +/***/ }), + +/***/ 39: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); +} + +/***/ }), + +/***/ 40: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["isShallowEqual"]; }()); @@ -1067,197 +1258,6 @@ function _assertThisInitialized(self) { return self; } -/***/ }), - -/***/ 96: -/***/ (function(module, exports) { - -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - - /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/compose.min.js b/wp-includes/js/dist/compose.min.js index 335e0e43b7..adb5f1ebbd 100644 --- a/wp-includes/js/dist/compose.min.js +++ b/wp-includes/js/dist/compose.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.compose=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));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=391)}({0:function(t,e){!function(){t.exports=this.wp.element}()},11:function(t,e,n){"use strict";function r(t,e){for(var n=0;n=0,i=t.env.FORCE_REDUCED_MOTION||o?function(){return!0}:function(){return Object(r.a)("(prefers-reduced-motion: reduce)")};e.a=i}).call(this,n(96))},23:function(t,e,n){"use strict";var r=n(38);var o=n(39);function i(t,e){return Object(r.a)(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||Object(o.a)()}n.d(e,"a",(function(){return i}))},31:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}n.d(e,"a",(function(){return o}))},38:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},39:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(e,"a",(function(){return r}))},391:function(t,e,n){"use strict";n.r(e);var r=n(2);var o=function(t,e){return function(n){var o=t(n),i=n.displayName,u=void 0===i?n.name||"Component":i;return o.displayName="".concat(Object(r.upperFirst)(Object(r.camelCase)(e)),"(").concat(u,")"),o}},i=n(0),u=function(t){return o((function(e){return function(n){return t(n)?Object(i.createElement)(e,n):null}}),"ifCondition")},c=n(12),a=n(11),f=n(13),s=n(14),l=n(15),p=n(41),h=n.n(p),d=o((function(t){return t.prototype instanceof i.Component?function(t){function e(){return Object(c.a)(this,e),Object(f.a)(this,Object(s.a)(e).apply(this,arguments))}return Object(l.a)(e,t),Object(a.a)(e,[{key:"shouldComponentUpdate",value:function(t,e){return!h()(t,this.props)||!h()(e,this.state)}}]),e}(t):function(e){function n(){return Object(c.a)(this,n),Object(f.a)(this,Object(s.a)(n).apply(this,arguments))}return Object(l.a)(n,e),Object(a.a)(n,[{key:"shouldComponentUpdate",value:function(t){return!h()(t,this.props)}},{key:"render",value:function(){return Object(i.createElement)(t,this.props)}}]),n}(i.Component)}),"pure"),b=n(18),y=n(5),m=new(function(){function t(){Object(c.a)(this,t),this.listeners={},this.handleEvent=this.handleEvent.bind(this)}return Object(a.a)(t,[{key:"add",value:function(t,e){this.listeners[t]||(window.addEventListener(t,this.handleEvent),this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"remove",value:function(t,e){this.listeners[t]=Object(r.without)(this.listeners[t],e),this.listeners[t].length||(window.removeEventListener(t,this.handleEvent),delete this.listeners[t])}},{key:"handleEvent",value:function(t){Object(r.forEach)(this.listeners[t.type],(function(e){e.handleEvent(t)}))}}]),t}());var v=function(t){return o((function(e){var n=function(n){function o(){var t;return Object(c.a)(this,o),(t=Object(f.a)(this,Object(s.a)(o).apply(this,arguments))).handleEvent=t.handleEvent.bind(Object(y.a)(t)),t.handleRef=t.handleRef.bind(Object(y.a)(t)),t}return Object(l.a)(o,n),Object(a.a)(o,[{key:"componentDidMount",value:function(){var e=this;Object(r.forEach)(t,(function(t,n){m.add(n,e)}))}},{key:"componentWillUnmount",value:function(){var e=this;Object(r.forEach)(t,(function(t,n){m.remove(n,e)}))}},{key:"handleEvent",value:function(e){var n=t[e.type];"function"==typeof this.wrappedRef[n]&&this.wrappedRef[n](e)}},{key:"handleRef",value:function(t){this.wrappedRef=t,this.props.forwardedRef&&this.props.forwardedRef(t)}},{key:"render",value:function(){return Object(i.createElement)(e,Object(b.a)({},this.props.ownProps,{ref:this.handleRef}))}}]),o}(i.Component);return Object(i.forwardRef)((function(t,e){return Object(i.createElement)(n,{ownProps:t,forwardedRef:e})}))}),"withGlobalEvents")},O=o((function(t){var e=0;return(function(n){function r(){var t;return Object(c.a)(this,r),(t=Object(f.a)(this,Object(s.a)(r).apply(this,arguments))).instanceId=e++,t}return Object(l.a)(r,n),Object(a.a)(r,[{key:"render",value:function(){return Object(i.createElement)(t,Object(b.a)({},this.props,{instanceId:this.instanceId}))}}]),r}(i.Component))}),"withInstanceId"),j=o((function(t){return function(e){function n(){var t;return Object(c.a)(this,n),(t=Object(f.a)(this,Object(s.a)(n).apply(this,arguments))).timeouts=[],t.setTimeout=t.setTimeout.bind(Object(y.a)(t)),t.clearTimeout=t.clearTimeout.bind(Object(y.a)(t)),t}return Object(l.a)(n,e),Object(a.a)(n,[{key:"componentWillUnmount",value:function(){this.timeouts.forEach(clearTimeout)}},{key:"setTimeout",value:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){var n=this,r=setTimeout((function(){t(),n.clearTimeout(r)}),e);return this.timeouts.push(r),r}))},{key:"clearTimeout",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){clearTimeout(t),this.timeouts=Object(r.without)(this.timeouts,t)}))},{key:"render",value:function(){return Object(i.createElement)(t,Object(b.a)({},this.props,{setTimeout:this.setTimeout,clearTimeout:this.clearTimeout}))}}]),n}(i.Component)}),"withSafeTimeout");function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o((function(e){return function(n){function r(){var e;return Object(c.a)(this,r),(e=Object(f.a)(this,Object(s.a)(r).apply(this,arguments))).setState=e.setState.bind(Object(y.a)(e)),e.state=t,e}return Object(l.a)(r,n),Object(a.a)(r,[{key:"render",value:function(){return Object(i.createElement)(e,Object(b.a)({},this.props,this.state,{setState:this.setState}))}}]),r}(i.Component)}),"withState")}var T=n(115),E=n(215);n.d(e,"createHigherOrderComponent",(function(){return o})),n.d(e,"compose",(function(){return r.flowRight})),n.d(e,"ifCondition",(function(){return u})),n.d(e,"pure",(function(){return d})),n.d(e,"withGlobalEvents",(function(){return v})),n.d(e,"withInstanceId",(function(){return O})),n.d(e,"withSafeTimeout",(function(){return j})),n.d(e,"withState",(function(){return w})),n.d(e,"useMediaQuery",(function(){return T.a})),n.d(e,"useReducedMotion",(function(){return E.a}))},41:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},5:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},96:function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var a,f=[],s=!1,l=-1;function p(){s&&a&&(s=!1,a.length?f=a.concat(f):l=-1,f.length&&h())}function h(){if(!s){var t=c(p);s=!0;for(var e=f.length;e;){for(a=f,f=[];++l1)for(var n=1;n=0,i=t.env.FORCE_REDUCED_MOTION||o?function(){return!0}:function(){return Object(r.a)("(prefers-reduced-motion: reduce)")};e.a=i}).call(this,n(285))},2:function(t,e){!function(){t.exports=this.lodash}()},23:function(t,e,n){"use strict";var r=n(38);var o=n(39);function i(t,e){return Object(r.a)(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||Object(o.a)()}n.d(e,"a",(function(){return i}))},285:function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var a,f=[],s=!1,l=-1;function p(){s&&a&&(s=!1,a.length?f=a.concat(f):l=-1,f.length&&h())}function h(){if(!s){var t=c(p);s=!0;for(var e=f.length;e;){for(a=f,f=[];++l1)for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return o((function(e){return function(n){function r(){var e;return Object(c.a)(this,r),(e=Object(f.a)(this,Object(s.a)(r).apply(this,arguments))).setState=e.setState.bind(Object(y.a)(e)),e.state=t,e}return Object(l.a)(r,n),Object(a.a)(r,[{key:"render",value:function(){return Object(i.createElement)(e,Object(b.a)({},this.props,this.state,{setState:this.setState}))}}]),r}(i.Component)}),"withState")}var T=n(104),E=n(187);n.d(e,"createHigherOrderComponent",(function(){return o})),n.d(e,"compose",(function(){return r.flowRight})),n.d(e,"ifCondition",(function(){return u})),n.d(e,"pure",(function(){return d})),n.d(e,"withGlobalEvents",(function(){return v})),n.d(e,"withInstanceId",(function(){return O})),n.d(e,"withSafeTimeout",(function(){return j})),n.d(e,"withState",(function(){return w})),n.d(e,"useMediaQuery",(function(){return T.a})),n.d(e,"useReducedMotion",(function(){return E.a}))},38:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},39:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(e,"a",(function(){return r}))},40:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},5:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/core-data.js b/wp-includes/js/dist/core-data.js index 7e5d40754b..a4153a67d3 100644 --- a/wp-includes/js/dist/core-data.js +++ b/wp-includes/js/dist/core-data.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["coreData"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 387); +/******/ return __webpack_require__(__webpack_require__.s = 318); /******/ }) /************************************************************************/ /******/ ({ @@ -152,7 +152,7 @@ function _toConsumableArray(arr) { /***/ 20: /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(48); +module.exports = __webpack_require__(47); /***/ }), @@ -223,314 +223,7 @@ function _iterableToArray(iter) { /***/ }), -/***/ 32: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["apiFetch"]; }()); - -/***/ }), - -/***/ 36: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - - -var LEAF_KEY, hasWeakMap; - -/** - * Arbitrary value used as key for referencing cache object in WeakMap tree. - * - * @type {Object} - */ -LEAF_KEY = {}; - -/** - * Whether environment supports WeakMap. - * - * @type {boolean} - */ -hasWeakMap = typeof WeakMap !== 'undefined'; - -/** - * Returns the first argument as the sole entry in an array. - * - * @param {*} value Value to return. - * - * @return {Array} Value returned as entry in array. - */ -function arrayOf( value ) { - return [ value ]; -} - -/** - * Returns true if the value passed is object-like, or false otherwise. A value - * is object-like if it can support property assignment, e.g. object or array. - * - * @param {*} value Value to test. - * - * @return {boolean} Whether value is object-like. - */ -function isObjectLike( value ) { - return !! value && 'object' === typeof value; -} - -/** - * Creates and returns a new cache object. - * - * @return {Object} Cache object. - */ -function createCache() { - var cache = { - clear: function() { - cache.head = null; - }, - }; - - return cache; -} - -/** - * Returns true if entries within the two arrays are strictly equal by - * reference from a starting index. - * - * @param {Array} a First array. - * @param {Array} b Second array. - * @param {number} fromIndex Index from which to start comparison. - * - * @return {boolean} Whether arrays are shallowly equal. - */ -function isShallowEqual( a, b, fromIndex ) { - var i; - - if ( a.length !== b.length ) { - return false; - } - - for ( i = fromIndex; i < a.length; i++ ) { - if ( a[ i ] !== b[ i ] ) { - return false; - } - } - - return true; -} - -/** - * Returns a memoized selector function. The getDependants function argument is - * called before the memoized selector and is expected to return an immutable - * reference or array of references on which the selector depends for computing - * its own return value. The memoize cache is preserved only as long as those - * dependant references remain the same. If getDependants returns a different - * reference(s), the cache is cleared and the selector value regenerated. - * - * @param {Function} selector Selector function. - * @param {Function} getDependants Dependant getter returning an immutable - * reference or array of reference used in - * cache bust consideration. - * - * @return {Function} Memoized selector. - */ -/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { - var rootCache, getCache; - - // Use object source as dependant if getter not provided - if ( ! getDependants ) { - getDependants = arrayOf; - } - - /** - * Returns the root cache. If WeakMap is supported, this is assigned to the - * root WeakMap cache set, otherwise it is a shared instance of the default - * cache object. - * - * @return {(WeakMap|Object)} Root cache object. - */ - function getRootCache() { - return rootCache; - } - - /** - * Returns the cache for a given dependants array. When possible, a WeakMap - * will be used to create a unique cache for each set of dependants. This - * is feasible due to the nature of WeakMap in allowing garbage collection - * to occur on entries where the key object is no longer referenced. Since - * WeakMap requires the key to be an object, this is only possible when the - * dependant is object-like. The root cache is created as a hierarchy where - * each top-level key is the first entry in a dependants set, the value a - * WeakMap where each key is the next dependant, and so on. This continues - * so long as the dependants are object-like. If no dependants are object- - * like, then the cache is shared across all invocations. - * - * @see isObjectLike - * - * @param {Array} dependants Selector dependants. - * - * @return {Object} Cache object. - */ - function getWeakMapCache( dependants ) { - var caches = rootCache, - isUniqueByDependants = true, - i, dependant, map, cache; - - for ( i = 0; i < dependants.length; i++ ) { - dependant = dependants[ i ]; - - // Can only compose WeakMap from object-like key. - if ( ! isObjectLike( dependant ) ) { - isUniqueByDependants = false; - break; - } - - // Does current segment of cache already have a WeakMap? - if ( caches.has( dependant ) ) { - // Traverse into nested WeakMap. - caches = caches.get( dependant ); - } else { - // Create, set, and traverse into a new one. - map = new WeakMap(); - caches.set( dependant, map ); - caches = map; - } - } - - // We use an arbitrary (but consistent) object as key for the last item - // in the WeakMap to serve as our running cache. - if ( ! caches.has( LEAF_KEY ) ) { - cache = createCache(); - cache.isUniqueByDependants = isUniqueByDependants; - caches.set( LEAF_KEY, cache ); - } - - return caches.get( LEAF_KEY ); - } - - // Assign cache handler by availability of WeakMap - getCache = hasWeakMap ? getWeakMapCache : getRootCache; - - /** - * Resets root memoization cache. - */ - function clear() { - rootCache = hasWeakMap ? new WeakMap() : createCache(); - } - - // eslint-disable-next-line jsdoc/check-param-names - /** - * The augmented selector call, considering first whether dependants have - * changed before passing it to underlying memoize function. - * - * @param {Object} source Source object for derivation. - * @param {...*} extraArgs Additional arguments to pass to selector. - * - * @return {*} Selector result. - */ - function callSelector( /* source, ...extraArgs */ ) { - var len = arguments.length, - cache, node, i, args, dependants; - - // Create copy of arguments (avoid leaking deoptimization). - args = new Array( len ); - for ( i = 0; i < len; i++ ) { - args[ i ] = arguments[ i ]; - } - - dependants = getDependants.apply( null, args ); - cache = getCache( dependants ); - - // If not guaranteed uniqueness by dependants (primitive type or lack - // of WeakMap support), shallow compare against last dependants and, if - // references have changed, destroy cache to recalculate result. - if ( ! cache.isUniqueByDependants ) { - if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { - cache.clear(); - } - - cache.lastDependants = dependants; - } - - node = cache.head; - while ( node ) { - // Check whether node arguments match arguments - if ( ! isShallowEqual( node.args, args, 1 ) ) { - node = node.next; - continue; - } - - // At this point we can assume we've found a match - - // Surface matched node to head if not already - if ( node !== cache.head ) { - // Adjust siblings to point to each other. - node.prev.next = node.next; - if ( node.next ) { - node.next.prev = node.prev; - } - - node.next = cache.head; - node.prev = null; - cache.head.prev = node; - cache.head = node; - } - - // Return immediately - return node.val; - } - - // No cached value found. Continue to insertion phase: - - node = { - // Generate the result from original function - val: selector.apply( null, args ), - }; - - // Avoid including the source object in the cache. - args[ 0 ] = null; - node.args = args; - - // Don't need to check whether node is already head, since it would - // have been returned above already if it was - - // Shift existing head down list - if ( cache.head ) { - cache.head.prev = node; - node.next = cache.head; - } - - cache.head = node; - - return node.val; - } - - callSelector.getDependants = getDependants; - callSelector.clear = clear; - clear(); - - return callSelector; -}); - - -/***/ }), - -/***/ 37: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["deprecated"]; }()); - -/***/ }), - -/***/ 38: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -/***/ }), - -/***/ 387: +/***/ 318: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -615,7 +308,7 @@ var defineProperty = __webpack_require__(10); var external_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(41); +var external_this_wp_isShallowEqual_ = __webpack_require__(40); var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); // CONCATENATED MODULE: ./node_modules/@wordpress/core-data/build-module/utils/conservative-map-item.js @@ -828,7 +521,7 @@ function receiveQueriedItems(items) { var rememo = __webpack_require__(36); // EXTERNAL MODULE: ./node_modules/equivalent-key-map/equivalent-key-map.js -var equivalent_key_map = __webpack_require__(79); +var equivalent_key_map = __webpack_require__(72); var equivalent_key_map_default = /*#__PURE__*/__webpack_require__.n(equivalent_key_map); // EXTERNAL MODULE: external {"this":["wp","url"]} @@ -3685,6 +3378,313 @@ Object(external_this_wp_data_["registerStore"])(REDUCER_KEY, { }); +/***/ }), + +/***/ 32: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 36: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + + +var LEAF_KEY, hasWeakMap; + +/** + * Arbitrary value used as key for referencing cache object in WeakMap tree. + * + * @type {Object} + */ +LEAF_KEY = {}; + +/** + * Whether environment supports WeakMap. + * + * @type {boolean} + */ +hasWeakMap = typeof WeakMap !== 'undefined'; + +/** + * Returns the first argument as the sole entry in an array. + * + * @param {*} value Value to return. + * + * @return {Array} Value returned as entry in array. + */ +function arrayOf( value ) { + return [ value ]; +} + +/** + * Returns true if the value passed is object-like, or false otherwise. A value + * is object-like if it can support property assignment, e.g. object or array. + * + * @param {*} value Value to test. + * + * @return {boolean} Whether value is object-like. + */ +function isObjectLike( value ) { + return !! value && 'object' === typeof value; +} + +/** + * Creates and returns a new cache object. + * + * @return {Object} Cache object. + */ +function createCache() { + var cache = { + clear: function() { + cache.head = null; + }, + }; + + return cache; +} + +/** + * Returns true if entries within the two arrays are strictly equal by + * reference from a starting index. + * + * @param {Array} a First array. + * @param {Array} b Second array. + * @param {number} fromIndex Index from which to start comparison. + * + * @return {boolean} Whether arrays are shallowly equal. + */ +function isShallowEqual( a, b, fromIndex ) { + var i; + + if ( a.length !== b.length ) { + return false; + } + + for ( i = fromIndex; i < a.length; i++ ) { + if ( a[ i ] !== b[ i ] ) { + return false; + } + } + + return true; +} + +/** + * Returns a memoized selector function. The getDependants function argument is + * called before the memoized selector and is expected to return an immutable + * reference or array of references on which the selector depends for computing + * its own return value. The memoize cache is preserved only as long as those + * dependant references remain the same. If getDependants returns a different + * reference(s), the cache is cleared and the selector value regenerated. + * + * @param {Function} selector Selector function. + * @param {Function} getDependants Dependant getter returning an immutable + * reference or array of reference used in + * cache bust consideration. + * + * @return {Function} Memoized selector. + */ +/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { + var rootCache, getCache; + + // Use object source as dependant if getter not provided + if ( ! getDependants ) { + getDependants = arrayOf; + } + + /** + * Returns the root cache. If WeakMap is supported, this is assigned to the + * root WeakMap cache set, otherwise it is a shared instance of the default + * cache object. + * + * @return {(WeakMap|Object)} Root cache object. + */ + function getRootCache() { + return rootCache; + } + + /** + * Returns the cache for a given dependants array. When possible, a WeakMap + * will be used to create a unique cache for each set of dependants. This + * is feasible due to the nature of WeakMap in allowing garbage collection + * to occur on entries where the key object is no longer referenced. Since + * WeakMap requires the key to be an object, this is only possible when the + * dependant is object-like. The root cache is created as a hierarchy where + * each top-level key is the first entry in a dependants set, the value a + * WeakMap where each key is the next dependant, and so on. This continues + * so long as the dependants are object-like. If no dependants are object- + * like, then the cache is shared across all invocations. + * + * @see isObjectLike + * + * @param {Array} dependants Selector dependants. + * + * @return {Object} Cache object. + */ + function getWeakMapCache( dependants ) { + var caches = rootCache, + isUniqueByDependants = true, + i, dependant, map, cache; + + for ( i = 0; i < dependants.length; i++ ) { + dependant = dependants[ i ]; + + // Can only compose WeakMap from object-like key. + if ( ! isObjectLike( dependant ) ) { + isUniqueByDependants = false; + break; + } + + // Does current segment of cache already have a WeakMap? + if ( caches.has( dependant ) ) { + // Traverse into nested WeakMap. + caches = caches.get( dependant ); + } else { + // Create, set, and traverse into a new one. + map = new WeakMap(); + caches.set( dependant, map ); + caches = map; + } + } + + // We use an arbitrary (but consistent) object as key for the last item + // in the WeakMap to serve as our running cache. + if ( ! caches.has( LEAF_KEY ) ) { + cache = createCache(); + cache.isUniqueByDependants = isUniqueByDependants; + caches.set( LEAF_KEY, cache ); + } + + return caches.get( LEAF_KEY ); + } + + // Assign cache handler by availability of WeakMap + getCache = hasWeakMap ? getWeakMapCache : getRootCache; + + /** + * Resets root memoization cache. + */ + function clear() { + rootCache = hasWeakMap ? new WeakMap() : createCache(); + } + + // eslint-disable-next-line jsdoc/check-param-names + /** + * The augmented selector call, considering first whether dependants have + * changed before passing it to underlying memoize function. + * + * @param {Object} source Source object for derivation. + * @param {...*} extraArgs Additional arguments to pass to selector. + * + * @return {*} Selector result. + */ + function callSelector( /* source, ...extraArgs */ ) { + var len = arguments.length, + cache, node, i, args, dependants; + + // Create copy of arguments (avoid leaking deoptimization). + args = new Array( len ); + for ( i = 0; i < len; i++ ) { + args[ i ] = arguments[ i ]; + } + + dependants = getDependants.apply( null, args ); + cache = getCache( dependants ); + + // If not guaranteed uniqueness by dependants (primitive type or lack + // of WeakMap support), shallow compare against last dependants and, if + // references have changed, destroy cache to recalculate result. + if ( ! cache.isUniqueByDependants ) { + if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { + cache.clear(); + } + + cache.lastDependants = dependants; + } + + node = cache.head; + while ( node ) { + // Check whether node arguments match arguments + if ( ! isShallowEqual( node.args, args, 1 ) ) { + node = node.next; + continue; + } + + // At this point we can assume we've found a match + + // Surface matched node to head if not already + if ( node !== cache.head ) { + // Adjust siblings to point to each other. + node.prev.next = node.next; + if ( node.next ) { + node.next.prev = node.prev; + } + + node.next = cache.head; + node.prev = null; + cache.head.prev = node; + cache.head = node; + } + + // Return immediately + return node.val; + } + + // No cached value found. Continue to insertion phase: + + node = { + // Generate the result from original function + val: selector.apply( null, args ), + }; + + // Avoid including the source object in the cache. + args[ 0 ] = null; + node.args = args; + + // Don't need to check whether node is already head, since it would + // have been returned above already if it was + + // Shift existing head down list + if ( cache.head ) { + cache.head.prev = node; + node.next = cache.head; + } + + cache.head = node; + + return node.val; + } + + callSelector.getDependants = getDependants; + callSelector.clear = clear; + clear(); + + return callSelector; +}); + + +/***/ }), + +/***/ 37: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["deprecated"]; }()); + +/***/ }), + +/***/ 38: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + /***/ }), /***/ 39: @@ -3705,14 +3705,14 @@ function _nonIterableRest() { /***/ }), -/***/ 41: +/***/ 40: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["isShallowEqual"]; }()); /***/ }), -/***/ 48: +/***/ 47: /***/ (function(module, exports, __webpack_require__) { /** @@ -4473,7 +4473,7 @@ function _objectSpread(target) { /***/ }), -/***/ 79: +/***/ 72: /***/ (function(module, exports, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/core-data.min.js b/wp-includes/js/dist/core-data.min.js index f19bdfff93..b879131acf 100644 --- a/wp-includes/js/dist/core-data.min.js +++ b/wp-includes/js/dist/core-data.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.coreData=function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=387)}({10:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))},17:function(t,e,r){"use strict";var n=r(30);function a(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,a=n[t];if(void 0===a)return r;var i=e(r[a],n);return i===r[a]?r:Object(o.a)({},r,Object(f.a)({},a,i))}}},y=function(t){return function(e){return function(r,n){return e(r,t(n))}}};var b=function(t){var e=new WeakMap;return function(r){var n;return e.has(r)?n=e.get(r):(n=t(r),Object(d.isObjectLike)(r)&&e.set(r,n)),n}};function g(t){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(t)}}var E=r(36),m=r(79),O=r.n(m),j=r(26);var w=b((function(t){for(var e={stableKey:"",page:1,perPage:10},r=Object.keys(t).sort(),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=x.get(t);if(r){var n=r.get(e);if(void 0!==n)return n}else r=new O.a,x.set(t,r);var a=R(t,e);return r.set(e,a),a})),_=r(20),T=r.n(_),I=r(32),S=r.n(I);function A(t){return{type:"API_FETCH",request:t}}function U(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n1?e-1:0),n=1;n4&&void 0!==arguments[4]&&arguments[4];return"postType"===t&&(r=Object(d.castArray)(r).map((function(t){return"auto-draft"===t.status?Object(o.a)({},t,{title:""}):t}))),a=n?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)({},g(t),{query:e})}(r,n):g(r),Object(o.a)({},a,{kind:t,name:e,invalidateCache:i})}function G(t){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:t}}function K(t,e){return{type:"RECEIVE_EMBED_PREVIEW",url:t,preview:e}}function Q(t,e,r,n){var a,i,u,c,s,f,l,p,v,h=arguments;return T.a.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return a=h.length>4&&void 0!==h[4]?h[4]:{},y.next=3,U("getEntity",t,e);case 3:return i=y.sent,u=i.transientEdits,c=void 0===u?{}:u,s=i.mergedEdits,f=void 0===s?{}:s,y.next=10,U("getRawEntityRecord",t,e,r);case 10:return l=y.sent,y.next=13,U("getEditedEntityRecord",t,e,r);case 13:return p=y.sent,v={kind:t,name:e,recordId:r,edits:Object.keys(n).reduce((function(t,e){var r=l[e],a=p[e],i=f[e]?Object(d.merge)({},a,n[e]):n[e];return t[e]=Object(d.isEqual)(r,i)?void 0:i,t}),{}),transientEdits:c},y.abrupt("return",Object(o.a)({type:"EDIT_ENTITY_RECORD"},v,{meta:{undo:!a.undoIgnore&&Object(o.a)({},v,{edits:Object.keys(n).reduce((function(t,e){return t[e]=p[e],t}),{})})}}));case 16:case"end":return y.stop()}}),L)}function W(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U("getUndoEdit");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,Object(o.a)({type:"EDIT_ENTITY_RECORD"},t,{meta:{isUndo:!0}});case 7:case"end":return e.stop()}}),D)}function H(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U("getRedoEdit");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,Object(o.a)({type:"EDIT_ENTITY_RECORD"},t,{meta:{isRedo:!0}});case 7:case"end":return e.stop()}}),N)}function z(){return{type:"CREATE_UNDO_LEVEL"}}function X(t,e,r){var n,a,i,u,c,s,f,l,p,v,h,y,b,g,E,m,O,j,w,x=arguments;return T.a.wrap((function(R){for(;;)switch(R.prev=R.next){case 0:return n=x.length>3&&void 0!==x[3]?x[3]:{isAutosave:!1},a=n.isAutosave,i=void 0!==a&&a,R.next=3,ft(t);case 3:if(u=R.sent,c=Object(d.find)(u,{kind:t,name:e})){R.next=7;break}return R.abrupt("return");case 7:return s=c.key||at,f=r[s],R.next=11,{type:"SAVE_ENTITY_RECORD_START",kind:t,name:e,recordId:f,isAutosave:i};case 11:return R.prev=11,y="".concat(c.baseURL).concat(f?"/"+f:""),R.next=15,U("getRawEntityRecord",t,e,f);case 15:if(b=R.sent,!i){R.next=40;break}return R.next=19,U("getCurrentUser");case 19:return g=R.sent,E=g?g.id:void 0,R.next=23,U("getAutosave",b.type,b.id,E);case 23:return m=R.sent,O=Object(o.a)({},b,m,r),O=Object.keys(O).reduce((function(t,e){return["title","excerpt","content"].includes(e)&&(t[e]=Object(d.get)(O[e],"raw",O[e])),t}),{status:"auto-draft"===O.status?"draft":O.status}),R.next=28,A({path:"".concat(y,"/autosaves"),method:"POST",data:O});case 28:if(l=R.sent,b.id!==l.id){R.next=36;break}return j=Object(o.a)({},b,O,l),j=Object.keys(j).reduce((function(t,e){return["title","excerpt","content"].includes(e)?t[e]=Object(d.get)(j[e],"raw",j[e]):t[e]="status"===e?"auto-draft"===b.status&&"draft"===j.status?j.status:b.status:Object(d.get)(b[e],"raw",b[e]),t}),{}),R.next=34,B(t,e,j,void 0,!0);case 34:R.next=38;break;case 36:return R.next=38,tt(b.id,l);case 38:R.next=55;break;case 40:return w=r,"postType"===t&&b&&"auto-draft"===b.status&&(w.status||(w=Object(o.a)({},w,{status:"draft"})),w.title&&"Auto Draft"!==w.title||(w=Object(o.a)({},w,{title:""}))),R.next=44,U("getEntityRecord",t,e,f);case 44:return v=R.sent,R.next=47,U("getEntityRecordEdits",t,e,f);case 47:return h=R.sent,R.next=50,B(t,e,Object(o.a)({},v,w),void 0,!0);case 50:return R.next=52,A({path:y,method:f?"PUT":"POST",data:w});case 52:return l=R.sent,R.next=55,B(t,e,l,void 0,!0);case 55:R.next=77;break;case 57:if(R.prev=57,R.t0=R.catch(11),p=R.t0,!v||!h){R.next=77;break}return R.next=63,B(t,e,v,void 0,!0);case 63:return R.t1=Q,R.t2=t,R.t3=e,R.t4=f,R.t5=o.a,R.t6={},R.t7=h,R.next=72,U("getEntityRecordEdits",t,e,f);case 72:return R.t8=R.sent,R.t9=(0,R.t5)(R.t6,R.t7,R.t8),R.t10={undoIgnore:!0},R.next=77,(0,R.t1)(R.t2,R.t3,R.t4,R.t9,R.t10);case 77:return R.next=79,{type:"SAVE_ENTITY_RECORD_FINISH",kind:t,name:e,recordId:f,error:p,isAutosave:i};case 79:return R.abrupt("return",l);case 80:case"end":return R.stop()}}),M,null,[[11,57]])}function J(t,e,r,n){var a,i;return T.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,U("hasEditsForEntityRecord",t,e,r);case 2:if(u.sent){u.next=4;break}return u.abrupt("return");case 4:return u.next=6,U("getEntityRecordNonTransientEdits",t,e,r);case 6:return a=u.sent,i=Object(o.a)({id:r},a),u.delegateYield(X(t,e,i,n),"t0",9);case 9:case"end":return u.stop()}}),V)}function Z(t){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:t}}function $(t,e){return{type:"RECEIVE_USER_PERMISSION",key:t,isAllowed:e}}function tt(t,e){return{type:"RECEIVE_AUTOSAVES",postId:t,autosaves:Object(d.castArray)(e)}}var et=T.a.mark(ut),rt=T.a.mark(ct),nt=T.a.mark(ft),at="id",it=[{name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems"},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies"},{name:"widgetArea",kind:"root",baseURL:"/__experimental/widget-areas",plural:"widgetAreas"}],ot=[{name:"postType",loadEntities:ut},{name:"taxonomy",loadEntities:ct}];function ut(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/types?context=edit"});case 2:return t=e.sent,e.abrupt("return",Object(d.map)(t,(function(t,e){return{kind:"postType",baseURL:"/wp/v2/"+t.rest_base,name:e,transientEdits:{blocks:!0},mergedEdits:{meta:!0}}})));case 4:case"end":return e.stop()}}),et)}function ct(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/taxonomies?context=edit"});case 2:return t=e.sent,e.abrupt("return",Object(d.map)(t,(function(t,e){return{kind:"taxonomy",baseURL:"/wp/v2/"+t.rest_base,name:e}})));case 4:case"end":return e.stop()}}),rt)}var st=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=Object(d.find)(it,{kind:t,name:e}),i="root"===t?"":Object(d.upperFirst)(Object(d.camelCase)(t)),o=Object(d.upperFirst)(Object(d.camelCase)(e))+(n?"s":""),u=n&&a.plural?Object(d.upperFirst)(Object(d.camelCase)(a.plural)):o;return"".concat(r).concat(i).concat(u)};function ft(t){var e,r;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,U("getEntitiesByKind",t);case 2:if(!(e=n.sent)||0===e.length){n.next=5;break}return n.abrupt("return",e);case 5:if(r=Object(d.find)(ot,{name:t})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return e=n.sent,n.next=13,Y(e);case 13:return n.abrupt("return",e);case 14:case"end":return n.stop()}}),nt)}function dt(t,e,r,n){for(var a=(r-1)*n,i=Math.max(t.length,a+e.length),o=new Array(i),u=0;u=a&&u0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0,r=e.type,n=e.page,a=e.perPage,i=e.key,o=void 0===i?at:i;return"RECEIVE_ITEMS"!==r?t:dt(t||[],Object(d.map)(e.items,o),n,a)})),pt=Object(u.combineReducers)({items:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_ITEMS":var r=e.key||at;return Object(o.a)({},t,e.items.reduce((function(e,n){var a=n[r];return e[a]=function(t,e){if(!t)return e;var r=!1,n={};for(var a in e)Object(d.isEqual)(t[a],e[a])?n[a]=t[a]:(r=!0,n[a]=e[a]);return r?n:t}(t[a],n),e}),{}))}return t},queries:lt});function vt(t){return Object(d.flowRight)([v((function(e){return e.name&&e.kind&&e.name===t.name&&e.kind===t.kind})),y((function(e){return Object(o.a)({},e,{key:t.key||at})}))])(Object(u.combineReducers)({queriedData:pt,edits:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_ITEMS":var r=Object(o.a)({},t),n=!0,a=!1,i=void 0;try{for(var u,c=function(){var t=u.value,n=t[e.key],a=r[n];if(!a)return"continue";var i=Object.keys(a).reduce((function(e,r){return Object(d.isEqual)(a[r],Object(d.get)(t[r],"raw",t[r]))||(e[r]=a[r]),e}),{});Object.keys(i).length?r[n]=i:delete r[n]},s=e.items[Symbol.iterator]();!(n=(u=s.next()).done);n=!0)c()}catch(t){a=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r;case"EDIT_ENTITY_RECORD":var l=Object(o.a)({},t[e.recordId],e.edits);return Object.keys(l).forEach((function(t){void 0===l[t]&&delete l[t]})),Object(o.a)({},t,Object(f.a)({},e.recordId,l))}return t},saving:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return Object(o.a)({},t,Object(f.a)({},e.recordId,{pending:"SAVE_ENTITY_RECORD_START"===e.type,error:e.error,isAutosave:e.isAutosave}))}return t}}))}function ht(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:it,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(t),Object(s.a)(e.entities))}return t}var yt,bt=[];bt.offset=0;var gt=Object(u.combineReducers)({terms:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_TERMS":return Object(o.a)({},t,Object(f.a)({},e.taxonomy,e.terms))}return t},users:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_USER_QUERY":return{byId:Object(o.a)({},t.byId,Object(d.keyBy)(e.users,"id")),queries:Object(o.a)({},t.queries,Object(f.a)({},e.queryID,Object(d.map)(e.users,(function(t){return t.id}))))}}return t},currentUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_CURRENT_USER":return e.currentUser}return t},taxonomies:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_TAXONOMIES":return e.taxonomies}return t},themeSupports:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_THEME_SUPPORTS":return Object(o.a)({},t,e.themeSupports)}return t},entities:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=ht(t.config,e),n=t.reducer;if(!n||r!==t.config){var a=Object(d.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(a).reduce((function(t,e){var r=Object(c.a)(e,2),n=r[0],a=r[1],i=Object(u.combineReducers)(a.reduce((function(t,e){return Object(o.a)({},t,Object(f.a)({},e.name,vt(e)))}),{}));return t[n]=i,t}),{}))}var i=n(t.data,e);return i===t.data&&r===t.config&&n===t.reducer?t:{reducer:n,data:i,config:r}},undo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":if("CREATE_UNDO_LEVEL"===e.type?e=yt:yt=e,e.meta.isUndo||e.meta.isRedo){var r=Object(s.a)(t);return r.offset=t.offset+(e.meta.isUndo?-1:1),r}if(!e.meta.undo)return t;if(!Object.keys(e.edits).some((function(t){return!e.transientEdits[t]}))){var n=Object(s.a)(t);return n.flattenedUndo=Object(o.a)({},t.flattenedUndo,e.edits),n.offset=t.offset,n}var a=t.slice(0,t.offset||void 0);a.offset=0,a.pop(),a.push({kind:e.meta.undo.kind,name:e.meta.undo.name,recordId:e.meta.undo.recordId,edits:Object(o.a)({},t.flattenedUndo,e.meta.undo.edits)});var i=Object.values(e.meta.undo.edits).filter((function(t){return"function"!=typeof t})),u=Object.values(e.edits).filter((function(t){return"function"!=typeof t}));return p()(i,u)||a.push({kind:e.kind,name:e.name,recordId:e.recordId,edits:e.edits}),a}return t},embedPreviews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_EMBED_PREVIEW":var r=e.url,n=e.preview;return Object(o.a)({},t,Object(f.a)({},r,n))}return t},userPermissions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_USER_PERMISSION":return Object(o.a)({},t,Object(f.a)({},e.key,e.isAllowed))}return t},autosaves:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_AUTOSAVES":var r=e.postId,n=e.autosaves;return Object(o.a)({},t,Object(f.a)({},r,n))}return t}}),Et=r(37),mt=r.n(Et),Ot=Object(u.createRegistrySelector)((function(t){return function(e,r){return t("core/data").isResolving("core","getEmbedPreview",[r])}}));function jt(t){return xt(t,"authors")}function wt(t){return t.currentUser}var xt=Object(E.a)((function(t,e){var r=t.users.queries[e];return Object(d.map)(r,(function(e){return t.users.byId[e]}))}),(function(t,e){return[t.users.queries[e],t.users.byId]}));function Rt(t,e){return Object(d.filter)(t.entities.config,{kind:e})}function kt(t,e,r){return Object(d.find)(t.entities.config,{kind:e,name:r})}function _t(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"queriedData","items",n])}var Tt=Object(E.a)((function(t,e,r,n){var a=_t(t,e,r,n);return a&&Object.keys(a).reduce((function(t,e){return t[e]=Object(d.get)(a[e],"raw",a[e]),t}),{})}),(function(t){return[t.entities.data]}));function It(t,e,r,n){var a=Object(d.get)(t.entities.data,[e,r,"queriedData"]);return a?k(a,n):[]}function St(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"edits",n])}var At=Object(E.a)((function(t,e,r,n){var a=kt(t,e,r).transientEdits,i=void 0===a?{}:a,o=St(t,e,r,n)||[];return Object.keys(o).reduce((function(t,e){return i[e]||(t[e]=o[e]),t}),{})}),(function(t){return[t.entities.config,t.entities.data]}));function Ut(t,e,r,n){return Lt(t,e,r,n)||Object.keys(At(t,e,r,n)).length>0}var Pt=Object(E.a)((function(t,e,r,n){return Object(o.a)({},Tt(t,e,r,n),St(t,e,r,n))}),(function(t){return[t.entities.data]}));function Ct(t,e,r,n){var a=Object(d.get)(t.entities.data,[e,r,"saving",n],{}),i=a.pending,o=a.isAutosave;return Boolean(i&&o)}function Lt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"pending"],!1)}function Dt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"error"])}function Nt(t){return t.undo.offset}function Mt(t){return t.undo[t.undo.length-2+Nt(t)]}function Vt(t){return t.undo[t.undo.length+Nt(t)]}function qt(t){return Boolean(Mt(t))}function Ft(t){return Boolean(Vt(t))}function Yt(t){return t.themeSupports}function Bt(t,e){return t.embedPreviews[e]}function Gt(t,e){var r=t.embedPreviews[e],n=''+e+"";return!!r&&r.html===n}function Kt(t){return mt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(Qt(t,"create","media"),!0)}function Qt(t,e,r,n){var a=Object(d.compact)([e,r,n]).join("/");return Object(d.get)(t,["userPermissions",a])}function Wt(t,e,r){return t.autosaves[r]}function Ht(t,e,r,n){if(void 0!==n){var a=t.autosaves[r];return Object(d.find)(a,{author:n})}}var zt=Object(u.createRegistrySelector)((function(t){return function(e,r,n){return t("core").hasFinishedResolution("getAutosaves",[r,n])}})),Xt=Object(E.a)((function(){return[]}),(function(t){return[t.undo.length,t.undo.offset]})),Jt=T.a.mark(ue),Zt=T.a.mark(ce),$t=T.a.mark(se),te=T.a.mark(fe),ee=T.a.mark(de),re=T.a.mark(le),ne=T.a.mark(pe),ae=T.a.mark(ve),ie=T.a.mark(he),oe=T.a.mark(ye);function ue(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return t=e.sent,e.next=5,q("authors",t);case 5:case"end":return e.stop()}}),Jt)}function ce(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/users/me"});case 2:return t=e.sent,e.next=5,F(t);case 5:case"end":return e.stop()}}),Zt)}function se(t,e,r){var n,a,i;return T.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,ft(t);case 2:if(n=o.sent,a=Object(d.find)(n,{kind:t,name:e})){o.next=6;break}return o.abrupt("return");case 6:return o.next=8,A({path:"".concat(a.baseURL,"/").concat(r,"?context=edit")});case 8:return i=o.sent,o.next=11,B(t,e,i);case 11:case"end":return o.stop()}}),$t)}function fe(t,e){var r,n,a,i,u,c=arguments;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,ft(t);case 3:if(n=s.sent,a=Object(d.find)(n,{kind:t,name:e})){s.next=7;break}return s.abrupt("return");case 7:return i=Object(j.addQueryArgs)(a.baseURL,Object(o.a)({},r,{context:"edit"})),s.next=10,A({path:i});case 10:return u=s.sent,s.next=13,B(t,e,Object.values(u),r);case 13:case"end":return s.stop()}}),te)}function de(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/themes?status=active"});case 2:return t=e.sent,e.next=5,G(t[0].theme_supports);case 5:case"end":return e.stop()}}),ee)}function le(t){var e;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,A({path:Object(j.addQueryArgs)("/oembed/1.0/proxy",{url:t})});case 3:return e=r.sent,r.next=6,K(t,e);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,K(t,!1);case 12:case"end":return r.stop()}}),re,null,[[0,8]])}function pe(){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return mt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),t.delegateYield(ve("create","media"),"t0",2);case 2:case"end":return t.stop()}}),ne)}function ve(t,e,r){var n,a,i,o,u,c;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[t]){s.next=4;break}throw new Error("'".concat(t,"' is not a valid action."));case 4:return a=r?"/wp/v2/".concat(e,"/").concat(r):"/wp/v2/".concat(e),s.prev=5,s.next=8,A({path:a,method:r?"GET":"OPTIONS",parse:!1});case 8:i=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return o=Object(d.hasIn)(i,["headers","get"])?i.headers.get("allow"):Object(d.get)(i,["headers","Allow"],""),u=Object(d.compact)([t,e,r]).join("/"),c=Object(d.includes)(o,n),s.next=19,$(u,c);case 19:case"end":return s.stop()}}),ae,null,[[5,11]])}function he(t,e){var r,n,a;return T.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,P("getPostType",t);case 2:return r=i.sent,n=r.rest_base,i.next=6,A({path:"/wp/v2/".concat(n,"/").concat(e,"/autosaves?context=edit")});case 6:if(!(a=i.sent)||!a.length){i.next=10;break}return i.next=10,tt(e,a);case 10:case"end":return i.stop()}}),ie)}function ye(t,e){return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,P("getAutosaves",t,e);case 2:case"end":return r.stop()}}),oe)}fe.shouldInvalidate=function(t,e,r){return"RECEIVE_ITEMS"===t.type&&t.invalidateCache&&e===t.kind&&r===t.name};var be=it.reduce((function(t,e){var r=e.kind,n=e.name;return t[st(r,n)]=function(t,e){return _t(t,r,n,e)},t[st(r,n,"get",!0)]=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o1?a-1:0),o=1;o=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(10);function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(a,i){null!==i&&"object"===n(i)&&(a=a[1]),t.call(r,a,i,e)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&a(e.prototype,r),o&&a(e,o),t}();t.exports=o}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.coreData=function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=318)}({10:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))},17:function(t,e,r){"use strict";var n=r(30);function a(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,a=n[t];if(void 0===a)return r;var i=e(r[a],n);return i===r[a]?r:Object(o.a)({},r,Object(f.a)({},a,i))}}},y=function(t){return function(e){return function(r,n){return e(r,t(n))}}};var b=function(t){var e=new WeakMap;return function(r){var n;return e.has(r)?n=e.get(r):(n=t(r),Object(d.isObjectLike)(r)&&e.set(r,n)),n}};function g(t){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(t)}}var E=r(36),m=r(72),O=r.n(m),j=r(26);var w=b((function(t){for(var e={stableKey:"",page:1,perPage:10},r=Object.keys(t).sort(),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=x.get(t);if(r){var n=r.get(e);if(void 0!==n)return n}else r=new O.a,x.set(t,r);var a=R(t,e);return r.set(e,a),a})),_=r(20),T=r.n(_),I=r(32),S=r.n(I);function A(t){return{type:"API_FETCH",request:t}}function U(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n1?e-1:0),n=1;n4&&void 0!==arguments[4]&&arguments[4];return"postType"===t&&(r=Object(d.castArray)(r).map((function(t){return"auto-draft"===t.status?Object(o.a)({},t,{title:""}):t}))),a=n?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)({},g(t),{query:e})}(r,n):g(r),Object(o.a)({},a,{kind:t,name:e,invalidateCache:i})}function G(t){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:t}}function K(t,e){return{type:"RECEIVE_EMBED_PREVIEW",url:t,preview:e}}function Q(t,e,r,n){var a,i,u,c,s,f,l,p,v,h=arguments;return T.a.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return a=h.length>4&&void 0!==h[4]?h[4]:{},y.next=3,U("getEntity",t,e);case 3:return i=y.sent,u=i.transientEdits,c=void 0===u?{}:u,s=i.mergedEdits,f=void 0===s?{}:s,y.next=10,U("getRawEntityRecord",t,e,r);case 10:return l=y.sent,y.next=13,U("getEditedEntityRecord",t,e,r);case 13:return p=y.sent,v={kind:t,name:e,recordId:r,edits:Object.keys(n).reduce((function(t,e){var r=l[e],a=p[e],i=f[e]?Object(d.merge)({},a,n[e]):n[e];return t[e]=Object(d.isEqual)(r,i)?void 0:i,t}),{}),transientEdits:c},y.abrupt("return",Object(o.a)({type:"EDIT_ENTITY_RECORD"},v,{meta:{undo:!a.undoIgnore&&Object(o.a)({},v,{edits:Object.keys(n).reduce((function(t,e){return t[e]=p[e],t}),{})})}}));case 16:case"end":return y.stop()}}),L)}function W(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U("getUndoEdit");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,Object(o.a)({type:"EDIT_ENTITY_RECORD"},t,{meta:{isUndo:!0}});case 7:case"end":return e.stop()}}),D)}function H(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U("getRedoEdit");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,Object(o.a)({type:"EDIT_ENTITY_RECORD"},t,{meta:{isRedo:!0}});case 7:case"end":return e.stop()}}),N)}function z(){return{type:"CREATE_UNDO_LEVEL"}}function X(t,e,r){var n,a,i,u,c,s,f,l,p,v,h,y,b,g,E,m,O,j,w,x=arguments;return T.a.wrap((function(R){for(;;)switch(R.prev=R.next){case 0:return n=x.length>3&&void 0!==x[3]?x[3]:{isAutosave:!1},a=n.isAutosave,i=void 0!==a&&a,R.next=3,ft(t);case 3:if(u=R.sent,c=Object(d.find)(u,{kind:t,name:e})){R.next=7;break}return R.abrupt("return");case 7:return s=c.key||at,f=r[s],R.next=11,{type:"SAVE_ENTITY_RECORD_START",kind:t,name:e,recordId:f,isAutosave:i};case 11:return R.prev=11,y="".concat(c.baseURL).concat(f?"/"+f:""),R.next=15,U("getRawEntityRecord",t,e,f);case 15:if(b=R.sent,!i){R.next=40;break}return R.next=19,U("getCurrentUser");case 19:return g=R.sent,E=g?g.id:void 0,R.next=23,U("getAutosave",b.type,b.id,E);case 23:return m=R.sent,O=Object(o.a)({},b,m,r),O=Object.keys(O).reduce((function(t,e){return["title","excerpt","content"].includes(e)&&(t[e]=Object(d.get)(O[e],"raw",O[e])),t}),{status:"auto-draft"===O.status?"draft":O.status}),R.next=28,A({path:"".concat(y,"/autosaves"),method:"POST",data:O});case 28:if(l=R.sent,b.id!==l.id){R.next=36;break}return j=Object(o.a)({},b,O,l),j=Object.keys(j).reduce((function(t,e){return["title","excerpt","content"].includes(e)?t[e]=Object(d.get)(j[e],"raw",j[e]):t[e]="status"===e?"auto-draft"===b.status&&"draft"===j.status?j.status:b.status:Object(d.get)(b[e],"raw",b[e]),t}),{}),R.next=34,B(t,e,j,void 0,!0);case 34:R.next=38;break;case 36:return R.next=38,tt(b.id,l);case 38:R.next=55;break;case 40:return w=r,"postType"===t&&b&&"auto-draft"===b.status&&(w.status||(w=Object(o.a)({},w,{status:"draft"})),w.title&&"Auto Draft"!==w.title||(w=Object(o.a)({},w,{title:""}))),R.next=44,U("getEntityRecord",t,e,f);case 44:return v=R.sent,R.next=47,U("getEntityRecordEdits",t,e,f);case 47:return h=R.sent,R.next=50,B(t,e,Object(o.a)({},v,w),void 0,!0);case 50:return R.next=52,A({path:y,method:f?"PUT":"POST",data:w});case 52:return l=R.sent,R.next=55,B(t,e,l,void 0,!0);case 55:R.next=77;break;case 57:if(R.prev=57,R.t0=R.catch(11),p=R.t0,!v||!h){R.next=77;break}return R.next=63,B(t,e,v,void 0,!0);case 63:return R.t1=Q,R.t2=t,R.t3=e,R.t4=f,R.t5=o.a,R.t6={},R.t7=h,R.next=72,U("getEntityRecordEdits",t,e,f);case 72:return R.t8=R.sent,R.t9=(0,R.t5)(R.t6,R.t7,R.t8),R.t10={undoIgnore:!0},R.next=77,(0,R.t1)(R.t2,R.t3,R.t4,R.t9,R.t10);case 77:return R.next=79,{type:"SAVE_ENTITY_RECORD_FINISH",kind:t,name:e,recordId:f,error:p,isAutosave:i};case 79:return R.abrupt("return",l);case 80:case"end":return R.stop()}}),M,null,[[11,57]])}function J(t,e,r,n){var a,i;return T.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,U("hasEditsForEntityRecord",t,e,r);case 2:if(u.sent){u.next=4;break}return u.abrupt("return");case 4:return u.next=6,U("getEntityRecordNonTransientEdits",t,e,r);case 6:return a=u.sent,i=Object(o.a)({id:r},a),u.delegateYield(X(t,e,i,n),"t0",9);case 9:case"end":return u.stop()}}),V)}function Z(t){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:t}}function $(t,e){return{type:"RECEIVE_USER_PERMISSION",key:t,isAllowed:e}}function tt(t,e){return{type:"RECEIVE_AUTOSAVES",postId:t,autosaves:Object(d.castArray)(e)}}var et=T.a.mark(ut),rt=T.a.mark(ct),nt=T.a.mark(ft),at="id",it=[{name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems"},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies"},{name:"widgetArea",kind:"root",baseURL:"/__experimental/widget-areas",plural:"widgetAreas"}],ot=[{name:"postType",loadEntities:ut},{name:"taxonomy",loadEntities:ct}];function ut(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/types?context=edit"});case 2:return t=e.sent,e.abrupt("return",Object(d.map)(t,(function(t,e){return{kind:"postType",baseURL:"/wp/v2/"+t.rest_base,name:e,transientEdits:{blocks:!0},mergedEdits:{meta:!0}}})));case 4:case"end":return e.stop()}}),et)}function ct(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/taxonomies?context=edit"});case 2:return t=e.sent,e.abrupt("return",Object(d.map)(t,(function(t,e){return{kind:"taxonomy",baseURL:"/wp/v2/"+t.rest_base,name:e}})));case 4:case"end":return e.stop()}}),rt)}var st=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=Object(d.find)(it,{kind:t,name:e}),i="root"===t?"":Object(d.upperFirst)(Object(d.camelCase)(t)),o=Object(d.upperFirst)(Object(d.camelCase)(e))+(n?"s":""),u=n&&a.plural?Object(d.upperFirst)(Object(d.camelCase)(a.plural)):o;return"".concat(r).concat(i).concat(u)};function ft(t){var e,r;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,U("getEntitiesByKind",t);case 2:if(!(e=n.sent)||0===e.length){n.next=5;break}return n.abrupt("return",e);case 5:if(r=Object(d.find)(ot,{name:t})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return e=n.sent,n.next=13,Y(e);case 13:return n.abrupt("return",e);case 14:case"end":return n.stop()}}),nt)}function dt(t,e,r,n){for(var a=(r-1)*n,i=Math.max(t.length,a+e.length),o=new Array(i),u=0;u=a&&u0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0,r=e.type,n=e.page,a=e.perPage,i=e.key,o=void 0===i?at:i;return"RECEIVE_ITEMS"!==r?t:dt(t||[],Object(d.map)(e.items,o),n,a)})),pt=Object(u.combineReducers)({items:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_ITEMS":var r=e.key||at;return Object(o.a)({},t,e.items.reduce((function(e,n){var a=n[r];return e[a]=function(t,e){if(!t)return e;var r=!1,n={};for(var a in e)Object(d.isEqual)(t[a],e[a])?n[a]=t[a]:(r=!0,n[a]=e[a]);return r?n:t}(t[a],n),e}),{}))}return t},queries:lt});function vt(t){return Object(d.flowRight)([v((function(e){return e.name&&e.kind&&e.name===t.name&&e.kind===t.kind})),y((function(e){return Object(o.a)({},e,{key:t.key||at})}))])(Object(u.combineReducers)({queriedData:pt,edits:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_ITEMS":var r=Object(o.a)({},t),n=!0,a=!1,i=void 0;try{for(var u,c=function(){var t=u.value,n=t[e.key],a=r[n];if(!a)return"continue";var i=Object.keys(a).reduce((function(e,r){return Object(d.isEqual)(a[r],Object(d.get)(t[r],"raw",t[r]))||(e[r]=a[r]),e}),{});Object.keys(i).length?r[n]=i:delete r[n]},s=e.items[Symbol.iterator]();!(n=(u=s.next()).done);n=!0)c()}catch(t){a=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r;case"EDIT_ENTITY_RECORD":var l=Object(o.a)({},t[e.recordId],e.edits);return Object.keys(l).forEach((function(t){void 0===l[t]&&delete l[t]})),Object(o.a)({},t,Object(f.a)({},e.recordId,l))}return t},saving:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return Object(o.a)({},t,Object(f.a)({},e.recordId,{pending:"SAVE_ENTITY_RECORD_START"===e.type,error:e.error,isAutosave:e.isAutosave}))}return t}}))}function ht(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:it,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(t),Object(s.a)(e.entities))}return t}var yt,bt=[];bt.offset=0;var gt=Object(u.combineReducers)({terms:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_TERMS":return Object(o.a)({},t,Object(f.a)({},e.taxonomy,e.terms))}return t},users:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_USER_QUERY":return{byId:Object(o.a)({},t.byId,Object(d.keyBy)(e.users,"id")),queries:Object(o.a)({},t.queries,Object(f.a)({},e.queryID,Object(d.map)(e.users,(function(t){return t.id}))))}}return t},currentUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_CURRENT_USER":return e.currentUser}return t},taxonomies:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_TAXONOMIES":return e.taxonomies}return t},themeSupports:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_THEME_SUPPORTS":return Object(o.a)({},t,e.themeSupports)}return t},entities:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=ht(t.config,e),n=t.reducer;if(!n||r!==t.config){var a=Object(d.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(a).reduce((function(t,e){var r=Object(c.a)(e,2),n=r[0],a=r[1],i=Object(u.combineReducers)(a.reduce((function(t,e){return Object(o.a)({},t,Object(f.a)({},e.name,vt(e)))}),{}));return t[n]=i,t}),{}))}var i=n(t.data,e);return i===t.data&&r===t.config&&n===t.reducer?t:{reducer:n,data:i,config:r}},undo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":if("CREATE_UNDO_LEVEL"===e.type?e=yt:yt=e,e.meta.isUndo||e.meta.isRedo){var r=Object(s.a)(t);return r.offset=t.offset+(e.meta.isUndo?-1:1),r}if(!e.meta.undo)return t;if(!Object.keys(e.edits).some((function(t){return!e.transientEdits[t]}))){var n=Object(s.a)(t);return n.flattenedUndo=Object(o.a)({},t.flattenedUndo,e.edits),n.offset=t.offset,n}var a=t.slice(0,t.offset||void 0);a.offset=0,a.pop(),a.push({kind:e.meta.undo.kind,name:e.meta.undo.name,recordId:e.meta.undo.recordId,edits:Object(o.a)({},t.flattenedUndo,e.meta.undo.edits)});var i=Object.values(e.meta.undo.edits).filter((function(t){return"function"!=typeof t})),u=Object.values(e.edits).filter((function(t){return"function"!=typeof t}));return p()(i,u)||a.push({kind:e.kind,name:e.name,recordId:e.recordId,edits:e.edits}),a}return t},embedPreviews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_EMBED_PREVIEW":var r=e.url,n=e.preview;return Object(o.a)({},t,Object(f.a)({},r,n))}return t},userPermissions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_USER_PERMISSION":return Object(o.a)({},t,Object(f.a)({},e.key,e.isAllowed))}return t},autosaves:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_AUTOSAVES":var r=e.postId,n=e.autosaves;return Object(o.a)({},t,Object(f.a)({},r,n))}return t}}),Et=r(37),mt=r.n(Et),Ot=Object(u.createRegistrySelector)((function(t){return function(e,r){return t("core/data").isResolving("core","getEmbedPreview",[r])}}));function jt(t){return xt(t,"authors")}function wt(t){return t.currentUser}var xt=Object(E.a)((function(t,e){var r=t.users.queries[e];return Object(d.map)(r,(function(e){return t.users.byId[e]}))}),(function(t,e){return[t.users.queries[e],t.users.byId]}));function Rt(t,e){return Object(d.filter)(t.entities.config,{kind:e})}function kt(t,e,r){return Object(d.find)(t.entities.config,{kind:e,name:r})}function _t(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"queriedData","items",n])}var Tt=Object(E.a)((function(t,e,r,n){var a=_t(t,e,r,n);return a&&Object.keys(a).reduce((function(t,e){return t[e]=Object(d.get)(a[e],"raw",a[e]),t}),{})}),(function(t){return[t.entities.data]}));function It(t,e,r,n){var a=Object(d.get)(t.entities.data,[e,r,"queriedData"]);return a?k(a,n):[]}function St(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"edits",n])}var At=Object(E.a)((function(t,e,r,n){var a=kt(t,e,r).transientEdits,i=void 0===a?{}:a,o=St(t,e,r,n)||[];return Object.keys(o).reduce((function(t,e){return i[e]||(t[e]=o[e]),t}),{})}),(function(t){return[t.entities.config,t.entities.data]}));function Ut(t,e,r,n){return Lt(t,e,r,n)||Object.keys(At(t,e,r,n)).length>0}var Pt=Object(E.a)((function(t,e,r,n){return Object(o.a)({},Tt(t,e,r,n),St(t,e,r,n))}),(function(t){return[t.entities.data]}));function Ct(t,e,r,n){var a=Object(d.get)(t.entities.data,[e,r,"saving",n],{}),i=a.pending,o=a.isAutosave;return Boolean(i&&o)}function Lt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"pending"],!1)}function Dt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"error"])}function Nt(t){return t.undo.offset}function Mt(t){return t.undo[t.undo.length-2+Nt(t)]}function Vt(t){return t.undo[t.undo.length+Nt(t)]}function qt(t){return Boolean(Mt(t))}function Ft(t){return Boolean(Vt(t))}function Yt(t){return t.themeSupports}function Bt(t,e){return t.embedPreviews[e]}function Gt(t,e){var r=t.embedPreviews[e],n=''+e+"";return!!r&&r.html===n}function Kt(t){return mt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(Qt(t,"create","media"),!0)}function Qt(t,e,r,n){var a=Object(d.compact)([e,r,n]).join("/");return Object(d.get)(t,["userPermissions",a])}function Wt(t,e,r){return t.autosaves[r]}function Ht(t,e,r,n){if(void 0!==n){var a=t.autosaves[r];return Object(d.find)(a,{author:n})}}var zt=Object(u.createRegistrySelector)((function(t){return function(e,r,n){return t("core").hasFinishedResolution("getAutosaves",[r,n])}})),Xt=Object(E.a)((function(){return[]}),(function(t){return[t.undo.length,t.undo.offset]})),Jt=T.a.mark(ue),Zt=T.a.mark(ce),$t=T.a.mark(se),te=T.a.mark(fe),ee=T.a.mark(de),re=T.a.mark(le),ne=T.a.mark(pe),ae=T.a.mark(ve),ie=T.a.mark(he),oe=T.a.mark(ye);function ue(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return t=e.sent,e.next=5,q("authors",t);case 5:case"end":return e.stop()}}),Jt)}function ce(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/users/me"});case 2:return t=e.sent,e.next=5,F(t);case 5:case"end":return e.stop()}}),Zt)}function se(t,e,r){var n,a,i;return T.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,ft(t);case 2:if(n=o.sent,a=Object(d.find)(n,{kind:t,name:e})){o.next=6;break}return o.abrupt("return");case 6:return o.next=8,A({path:"".concat(a.baseURL,"/").concat(r,"?context=edit")});case 8:return i=o.sent,o.next=11,B(t,e,i);case 11:case"end":return o.stop()}}),$t)}function fe(t,e){var r,n,a,i,u,c=arguments;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,ft(t);case 3:if(n=s.sent,a=Object(d.find)(n,{kind:t,name:e})){s.next=7;break}return s.abrupt("return");case 7:return i=Object(j.addQueryArgs)(a.baseURL,Object(o.a)({},r,{context:"edit"})),s.next=10,A({path:i});case 10:return u=s.sent,s.next=13,B(t,e,Object.values(u),r);case 13:case"end":return s.stop()}}),te)}function de(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/themes?status=active"});case 2:return t=e.sent,e.next=5,G(t[0].theme_supports);case 5:case"end":return e.stop()}}),ee)}function le(t){var e;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,A({path:Object(j.addQueryArgs)("/oembed/1.0/proxy",{url:t})});case 3:return e=r.sent,r.next=6,K(t,e);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,K(t,!1);case 12:case"end":return r.stop()}}),re,null,[[0,8]])}function pe(){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return mt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),t.delegateYield(ve("create","media"),"t0",2);case 2:case"end":return t.stop()}}),ne)}function ve(t,e,r){var n,a,i,o,u,c;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[t]){s.next=4;break}throw new Error("'".concat(t,"' is not a valid action."));case 4:return a=r?"/wp/v2/".concat(e,"/").concat(r):"/wp/v2/".concat(e),s.prev=5,s.next=8,A({path:a,method:r?"GET":"OPTIONS",parse:!1});case 8:i=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return o=Object(d.hasIn)(i,["headers","get"])?i.headers.get("allow"):Object(d.get)(i,["headers","Allow"],""),u=Object(d.compact)([t,e,r]).join("/"),c=Object(d.includes)(o,n),s.next=19,$(u,c);case 19:case"end":return s.stop()}}),ae,null,[[5,11]])}function he(t,e){var r,n,a;return T.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,P("getPostType",t);case 2:return r=i.sent,n=r.rest_base,i.next=6,A({path:"/wp/v2/".concat(n,"/").concat(e,"/autosaves?context=edit")});case 6:if(!(a=i.sent)||!a.length){i.next=10;break}return i.next=10,tt(e,a);case 10:case"end":return i.stop()}}),ie)}function ye(t,e){return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,P("getAutosaves",t,e);case 2:case"end":return r.stop()}}),oe)}fe.shouldInvalidate=function(t,e,r){return"RECEIVE_ITEMS"===t.type&&t.invalidateCache&&e===t.kind&&r===t.name};var be=it.reduce((function(t,e){var r=e.kind,n=e.name;return t[st(r,n)]=function(t,e){return _t(t,r,n,e)},t[st(r,n,"get",!0)]=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o1?a-1:0),o=1;o=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(10);function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(a,i){null!==i&&"object"===n(i)&&(a=a[1]),t.call(r,a,i,e)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&a(e.prototype,r),o&&a(e,o),t}();t.exports=o}}); \ No newline at end of file diff --git a/wp-includes/js/dist/data-controls.js b/wp-includes/js/dist/data-controls.js index b81830fb42..5bb7a15d14 100644 --- a/wp-includes/js/dist/data-controls.js +++ b/wp-includes/js/dist/data-controls.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dataControls"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 357); +/******/ return __webpack_require__(__webpack_require__.s = 287); /******/ }) /************************************************************************/ /******/ ({ @@ -120,25 +120,7 @@ function _toConsumableArray(arr) { /***/ }), -/***/ 30: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); -} - -/***/ }), - -/***/ 32: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["apiFetch"]; }()); - -/***/ }), - -/***/ 357: +/***/ 287: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -357,6 +339,24 @@ var controls = { }; +/***/ }), + +/***/ 30: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); +} + +/***/ }), + +/***/ 32: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + /***/ }), /***/ 4: diff --git a/wp-includes/js/dist/data-controls.min.js b/wp-includes/js/dist/data-controls.min.js index af68552778..56c9357f70 100644 --- a/wp-includes/js/dist/data-controls.min.js +++ b/wp-includes/js/dist/data-controls.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.dataControls=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=357)}({17:function(t,e,r){"use strict";var n=r(30);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=r[E];if(void 0===n)return e;var o=t(e[n],r);return o===e[n]?e:Object(s.a)({},e,Object(k.a)({},n,o))}})])((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new P.a,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":var r="START_RESOLUTION"===e.type,n=new P.a(t);return n.set(e.args,r),n;case"INVALIDATE_RESOLUTION":var o=new P.a(t);return o.delete(e.args),o}return t})),D=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":return Object(f.has)(t,[e.selectorName])?Object(f.omit)(t,[e.selectorName]):t;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"INVALIDATE_RESOLUTION":return C(t,e)}return t};function F(t,e,r){var n=Object(f.get)(t,[e]);if(n)return n.get(r)}function M(t,e){return void 0!==F(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function U(t,e){return!1===F(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function V(t,e){return!0===F(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function G(t){return t}function H(t,e){return{type:"START_RESOLUTION",selectorName:t,args:e}}function W(t,e){return{type:"FINISH_RESOLUTION",selectorName:t,args:e}}function Y(t,e){return{type:"INVALIDATE_RESOLUTION",selectorName:t,args:e}}function X(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function J(t){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:t}}function K(t,e,r){var i,u=e.reducer,a=function(t,e,r){var n=[A(r,t),I];if(e.controls){var o=Object(f.mapValues)(e.controls,(function(t){return t.isRegistryControl?t(r):t}));n.push(R()(o))}var i=[S.apply(void 0,n)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&i.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:t,instanceId:t}));var u=e.reducer,a=e.initialState;return g(c()({metadata:D,root:u}),{root:a},Object(f.flowRight)(i))}(t,e,r),l=function(t,e){return Object(f.mapValues)(t,(function(t){return function(){return Promise.resolve(e.dispatch(t.apply(void 0,arguments)))}}))}(Object(s.a)({},o,e.actions),a),d=function(t,e){return Object(f.mapValues)(t,(function(t){var r=function(){var r=arguments.length,n=new Array(r+1);n[0]=e.__unstableOriginalGetState();for(var o=0;o1?r-1:0),o=1;o1?r-1:0),o=1;o3?i-3:0),c=3;c1?o-1:0),u=1;u1?o-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={},n=[];function o(){n.forEach((function(t){return t()}))}function i(t,e){if("function"!=typeof e.getSelectors)throw new TypeError("config.getSelectors must be a function");if("function"!=typeof e.getActions)throw new TypeError("config.getActions must be a function");if("function"!=typeof e.subscribe)throw new TypeError("config.subscribe must be a function");r[t]=e,e.subscribe(o)}var u,c={registerGenericStore:i,stores:r,namespaces:r,subscribe:function(t){return n.push(t),function(){n=Object(f.without)(n,t)}},select:function(t){var n=r[t];return n?n.getSelectors():e&&e.select(t)},dispatch:function(t){var n=r[t];return n?n.getActions():e&&e.dispatch(t)},use:function(t,e){return c=Object(s.a)({},c,t(c,e))}};return c.registerStore=function(t,e){if(!e.reducer)throw new TypeError("Must specify store reducer");var r=K(t,e,c);return i(t,r),r.store},i("core/data",B(c)),Object.entries(t).forEach((function(t){var e=Object(a.a)(t,2),r=e[0],n=e[1];return c.registerStore(r,n)})),e&&e.subscribe(o),u=c,Object(f.mapValues)(u,(function(t,e){return"function"!=typeof t?t:function(){return c[e].apply(null,arguments)}}))}var Z,$,tt=Q(),et=r(37),rt=r.n(et),nt=function(t){return rt()("wp.data.plugins.controls",{hint:"The controls plugins is now baked-in."}),t},ot={getItem:function(t){return Z&&Z[t]?Z[t]:null},setItem:function(t,e){Z||ot.clear(),Z[t]=String(e)},clear:function(){Z=Object.create(null)}},it=ot;try{($=window.localStorage).setItem("__wpDataTestLocalStorage",""),$.removeItem("__wpDataTestLocalStorage")}catch(t){$=it}var ut=$,ct="WP_DATA",at=function(t){return function(e,r){return r.nextState===e?e:t(e,r)}};function st(t){var e,r=t.storage,n=void 0===r?ut:r,o=t.storageKey,i=void 0===o?ct:o;return{get:function(){if(void 0===e){var t=n.getItem(i);if(null===t)e={};else try{e=JSON.parse(t)}catch(t){e={}}}return e},set:function(t,r){e=Object(s.a)({},e,Object(k.a)({},t,r)),n.setItem(i,JSON.stringify(e))}}}var ft=function(t,e){var r=st(e);return{registerStore:function(e,n){if(!n.persist)return t.registerStore(e,n);var o=r.get()[e];if(void 0!==o){var i=n.reducer(void 0,{type:"@@WP/PERSISTENCE_RESTORE"});i=Object(f.isPlainObject)(i)&&Object(f.isPlainObject)(o)?Object(f.merge)({},i,o):o,n=Object(s.a)({},n,{initialState:i})}var u=t.registerStore(e,n);return u.subscribe(function(t,e,n){var o;if(Array.isArray(n)){var i=n.reduce((function(t,e){return Object.assign(t,Object(k.a)({},e,(function(t,r){return r.nextState[e]})))}),{});o=at(c()(i))}else o=function(t,e){return e.nextState};var u=o(void 0,{nextState:t()});return function(){var n=o(u,{nextState:t()});n!==u&&(r.set(e,n),u=n)}}(u.getState,e,n.persist)),u}}};ft.__unstableMigrate=function(t){var e=st(t),r=Object(f.get)(e.get(),["core/editor","preferences","insertUsage"]);r&&e.set("core/block-editor",{preferences:{insertUsage:r}})};var lt=ft,pt=r(18),ht=r(0),dt=r(8),vt=r(238),yt=r(41),bt=r.n(yt),gt=Object(ht.createContext)(tt),Ot=gt.Consumer,wt=gt.Provider,mt=Ot,jt=wt;function St(){return Object(ht.useContext)(gt)}var Et=Object(ht.createContext)(!1),_t=(Et.Consumer,Et.Provider);var Rt="undefined"!=typeof window?ht.useLayoutEffect:ht.useEffect,xt=Object(vt.createQueue)();function Tt(t,e){var r,n=Object(ht.useCallback)(t,e),o=St(),i=Object(ht.useContext)(Et),u=Object(ht.useMemo)((function(){return{queue:!0}}),[o]),c=Object(ht.useReducer)((function(t){return t+1}),0),s=Object(a.a)(c,2)[1],f=Object(ht.useRef)(),l=Object(ht.useRef)(i),p=Object(ht.useRef)(),h=Object(ht.useRef)(),d=Object(ht.useRef)();try{r=f.current!==n||h.current?n(o.select,o):p.current}catch(t){var v="An error occurred while running 'mapSelect': ".concat(t.message);if(h.current)throw v+="\nThe error may be correlated with this previous error:\n",v+="".concat(h.current.stack,"\n\n"),v+="Original stack trace:",new Error(v)}return Rt((function(){f.current=n,l.current!==i&&(l.current=i,xt.flush(u)),p.current=r,h.current=void 0,d.current=!0})),Rt((function(){var t=function(){if(d.current){try{var t=f.current(o.select,o);if(bt()(p.current,t))return;p.current=t}catch(t){h.current=t}s({})}};l.current?xt.add(u,t):t();var e=o.subscribe((function(){l.current?xt.add(u,t):t()}));return function(){d.current=!1,e(),xt.flush(u)}}),[o]),r}var It=function(t){return Object(dt.createHigherOrderComponent)((function(e){return Object(dt.pure)((function(r){var n=Tt((function(e,n){return t(e,r,n)}));return Object(ht.createElement)(e,Object(pt.a)({},r,n))}))}),"withSelect")},Lt=function(t){var e=St().dispatch;return void 0===t?e:e(t)},At="undefined"!=typeof window?ht.useLayoutEffect:ht.useEffect,Nt=function(t,e){var r=St(),n=Object(ht.useRef)(t);return At((function(){n.current=t})),Object(ht.useMemo)((function(){var t=n.current(r.dispatch,r);return Object(f.mapValues)(t,(function(t,e){return"function"!=typeof t&&console.warn("Property ".concat(e," returned from dispatchMap in useDispatchWithMap must be a function.")),function(){var t;return(t=n.current(r.dispatch,r))[e].apply(t,arguments)}}))}),[r].concat(Object(L.a)(e)))},Pt=function(t){return Object(dt.createHigherOrderComponent)((function(e){return function(r){var n=Nt((function(e,n){return t(e,r,n)}),[]);return Object(ht.createElement)(e,Object(pt.a)({},r,n))}}),"withDispatch")},kt=Object(dt.createHigherOrderComponent)((function(t){return function(e){return Object(ht.createElement)(mt,null,(function(r){return Object(ht.createElement)(t,Object(pt.a)({},e,{registry:r}))}))}}),"withRegistry");function Ct(t){var e=function e(){return t(e.registry.select).apply(void 0,arguments)};return e.isRegistrySelector=!0,e.registry=tt,e}function Dt(t){return t.isRegistryControl=!0,t}r.d(e,"select",(function(){return Ft})),r.d(e,"dispatch",(function(){return Mt})),r.d(e,"subscribe",(function(){return Ut})),r.d(e,"registerGenericStore",(function(){return Vt})),r.d(e,"registerStore",(function(){return Gt})),r.d(e,"use",(function(){return Ht})),r.d(e,"withSelect",(function(){return It})),r.d(e,"withDispatch",(function(){return Pt})),r.d(e,"withRegistry",(function(){return kt})),r.d(e,"RegistryProvider",(function(){return jt})),r.d(e,"RegistryConsumer",(function(){return mt})),r.d(e,"useRegistry",(function(){return St})),r.d(e,"useSelect",(function(){return Tt})),r.d(e,"useDispatch",(function(){return Lt})),r.d(e,"__experimentalAsyncModeProvider",(function(){return _t})),r.d(e,"createRegistry",(function(){return Q})),r.d(e,"createRegistrySelector",(function(){return Ct})),r.d(e,"createRegistryControl",(function(){return Dt})),r.d(e,"plugins",(function(){return i})),r.d(e,"combineReducers",(function(){return c.a}));var Ft=tt.select,Mt=tt.dispatch,Ut=tt.subscribe,Vt=tt.registerGenericStore,Gt=tt.registerStore,Ht=tt.use},39:function(t,e,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(e,"a",(function(){return n}))},41:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},44:function(t,e,r){"use strict";function n(t,e,r,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void r(t)}c.done?e(a):Promise.resolve(a).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var u=t.apply(e,r);function c(t){n(u,o,i,c,a,"next",t)}function a(t){n(u,o,i,c,a,"throw",t)}c(void 0)}))}}r.d(e,"a",(function(){return o}))},48:function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function a(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),u=new x(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var c=E(u,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var a=s(t,e,r);if("normal"===a.type){if(n=r.done?h:l,a.arg===d)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(n=h,r.method="throw",r.arg=a.arg)}}}(t,r,u),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var f="suspendedStart",l="suspendedYield",p="executing",h="completed",d={};function v(){}function y(){}function b(){}var g={};g[i]=function(){return this};var O=Object.getPrototypeOf,w=O&&O(O(T([])));w&&w!==r&&n.call(w,i)&&(g=w);var m=b.prototype=v.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,u){var c=s(t[r],t,o);if("throw"!==c.type){var a=c.arg,f=a.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then((function(t){e("next",t,i,u)}),(function(t){e("throw",t,i,u)})):Promise.resolve(f).then((function(t){a.value=t,i(a)}),(function(t){return e("throw",t,i,u)}))}u(c.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,u=function r(){for(;++o=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var a=n.call(u,"catchLoc"),s=n.call(u,"finallyLoc");if(a&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},67:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(10);function o(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,i){null!==i&&"object"===n(i)&&(o=o[1]),t.call(r,o,i,e)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(e.prototype,r),u&&o(e,u),t}();t.exports=u},8:function(t,e){!function(){t.exports=this.wp.compose}()}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.data=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=317)}({0:function(t,e){!function(){t.exports=this.wp.element}()},10:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))},105:function(t,e){t.exports=function(t){var e,r=Object.keys(t);return e=function(){var t,e,n;for(t="return {",e=0;e0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=r[E];if(void 0===n)return e;var o=t(e[n],r);return o===e[n]?e:Object(s.a)({},e,Object(k.a)({},n,o))}})])((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new P.a,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":var r="START_RESOLUTION"===e.type,n=new P.a(t);return n.set(e.args,r),n;case"INVALIDATE_RESOLUTION":var o=new P.a(t);return o.delete(e.args),o}return t})),D=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":return Object(f.has)(t,[e.selectorName])?Object(f.omit)(t,[e.selectorName]):t;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"INVALIDATE_RESOLUTION":return C(t,e)}return t};function F(t,e,r){var n=Object(f.get)(t,[e]);if(n)return n.get(r)}function M(t,e){return void 0!==F(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function U(t,e){return!1===F(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function V(t,e){return!0===F(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function G(t){return t}function H(t,e){return{type:"START_RESOLUTION",selectorName:t,args:e}}function W(t,e){return{type:"FINISH_RESOLUTION",selectorName:t,args:e}}function Y(t,e){return{type:"INVALIDATE_RESOLUTION",selectorName:t,args:e}}function X(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function J(t){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:t}}function K(t,e,r){var i,u=e.reducer,a=function(t,e,r){var n=[A(r,t),I];if(e.controls){var o=Object(f.mapValues)(e.controls,(function(t){return t.isRegistryControl?t(r):t}));n.push(R()(o))}var i=[S.apply(void 0,n)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&i.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:t,instanceId:t}));var u=e.reducer,a=e.initialState;return g(c()({metadata:D,root:u}),{root:a},Object(f.flowRight)(i))}(t,e,r),l=function(t,e){return Object(f.mapValues)(t,(function(t){return function(){return Promise.resolve(e.dispatch(t.apply(void 0,arguments)))}}))}(Object(s.a)({},o,e.actions),a),d=function(t,e){return Object(f.mapValues)(t,(function(t){var r=function(){var r=arguments.length,n=new Array(r+1);n[0]=e.__unstableOriginalGetState();for(var o=0;o1?r-1:0),o=1;o1?r-1:0),o=1;o3?i-3:0),c=3;c1?o-1:0),u=1;u1?o-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={},n=[];function o(){n.forEach((function(t){return t()}))}function i(t,e){if("function"!=typeof e.getSelectors)throw new TypeError("config.getSelectors must be a function");if("function"!=typeof e.getActions)throw new TypeError("config.getActions must be a function");if("function"!=typeof e.subscribe)throw new TypeError("config.subscribe must be a function");r[t]=e,e.subscribe(o)}var u,c={registerGenericStore:i,stores:r,namespaces:r,subscribe:function(t){return n.push(t),function(){n=Object(f.without)(n,t)}},select:function(t){var n=r[t];return n?n.getSelectors():e&&e.select(t)},dispatch:function(t){var n=r[t];return n?n.getActions():e&&e.dispatch(t)},use:function(t,e){return c=Object(s.a)({},c,t(c,e))}};return c.registerStore=function(t,e){if(!e.reducer)throw new TypeError("Must specify store reducer");var r=K(t,e,c);return i(t,r),r.store},i("core/data",B(c)),Object.entries(t).forEach((function(t){var e=Object(a.a)(t,2),r=e[0],n=e[1];return c.registerStore(r,n)})),e&&e.subscribe(o),u=c,Object(f.mapValues)(u,(function(t,e){return"function"!=typeof t?t:function(){return c[e].apply(null,arguments)}}))}var Z,$,tt=Q(),et=r(37),rt=r.n(et),nt=function(t){return rt()("wp.data.plugins.controls",{hint:"The controls plugins is now baked-in."}),t},ot={getItem:function(t){return Z&&Z[t]?Z[t]:null},setItem:function(t,e){Z||ot.clear(),Z[t]=String(e)},clear:function(){Z=Object.create(null)}},it=ot;try{($=window.localStorage).setItem("__wpDataTestLocalStorage",""),$.removeItem("__wpDataTestLocalStorage")}catch(t){$=it}var ut=$,ct="WP_DATA",at=function(t){return function(e,r){return r.nextState===e?e:t(e,r)}};function st(t){var e,r=t.storage,n=void 0===r?ut:r,o=t.storageKey,i=void 0===o?ct:o;return{get:function(){if(void 0===e){var t=n.getItem(i);if(null===t)e={};else try{e=JSON.parse(t)}catch(t){e={}}}return e},set:function(t,r){e=Object(s.a)({},e,Object(k.a)({},t,r)),n.setItem(i,JSON.stringify(e))}}}var ft=function(t,e){var r=st(e);return{registerStore:function(e,n){if(!n.persist)return t.registerStore(e,n);var o=r.get()[e];if(void 0!==o){var i=n.reducer(void 0,{type:"@@WP/PERSISTENCE_RESTORE"});i=Object(f.isPlainObject)(i)&&Object(f.isPlainObject)(o)?Object(f.merge)({},i,o):o,n=Object(s.a)({},n,{initialState:i})}var u=t.registerStore(e,n);return u.subscribe(function(t,e,n){var o;if(Array.isArray(n)){var i=n.reduce((function(t,e){return Object.assign(t,Object(k.a)({},e,(function(t,r){return r.nextState[e]})))}),{});o=at(c()(i))}else o=function(t,e){return e.nextState};var u=o(void 0,{nextState:t()});return function(){var n=o(u,{nextState:t()});n!==u&&(r.set(e,n),u=n)}}(u.getState,e,n.persist)),u}}};ft.__unstableMigrate=function(t){var e=st(t),r=Object(f.get)(e.get(),["core/editor","preferences","insertUsage"]);r&&e.set("core/block-editor",{preferences:{insertUsage:r}})};var lt=ft,pt=r(18),ht=r(0),dt=r(8),vt=r(207),yt=r(40),bt=r.n(yt),gt=Object(ht.createContext)(tt),Ot=gt.Consumer,wt=gt.Provider,mt=Ot,jt=wt;function St(){return Object(ht.useContext)(gt)}var Et=Object(ht.createContext)(!1),_t=(Et.Consumer,Et.Provider);var Rt="undefined"!=typeof window?ht.useLayoutEffect:ht.useEffect,xt=Object(vt.createQueue)();function Tt(t,e){var r,n=Object(ht.useCallback)(t,e),o=St(),i=Object(ht.useContext)(Et),u=Object(ht.useMemo)((function(){return{queue:!0}}),[o]),c=Object(ht.useReducer)((function(t){return t+1}),0),s=Object(a.a)(c,2)[1],f=Object(ht.useRef)(),l=Object(ht.useRef)(i),p=Object(ht.useRef)(),h=Object(ht.useRef)(),d=Object(ht.useRef)();try{r=f.current!==n||h.current?n(o.select,o):p.current}catch(t){var v="An error occurred while running 'mapSelect': ".concat(t.message);if(h.current)throw v+="\nThe error may be correlated with this previous error:\n",v+="".concat(h.current.stack,"\n\n"),v+="Original stack trace:",new Error(v)}return Rt((function(){f.current=n,l.current!==i&&(l.current=i,xt.flush(u)),p.current=r,h.current=void 0,d.current=!0})),Rt((function(){var t=function(){if(d.current){try{var t=f.current(o.select,o);if(bt()(p.current,t))return;p.current=t}catch(t){h.current=t}s({})}};l.current?xt.add(u,t):t();var e=o.subscribe((function(){l.current?xt.add(u,t):t()}));return function(){d.current=!1,e(),xt.flush(u)}}),[o]),r}var It=function(t){return Object(dt.createHigherOrderComponent)((function(e){return Object(dt.pure)((function(r){var n=Tt((function(e,n){return t(e,r,n)}));return Object(ht.createElement)(e,Object(pt.a)({},r,n))}))}),"withSelect")},Lt=function(t){var e=St().dispatch;return void 0===t?e:e(t)},At="undefined"!=typeof window?ht.useLayoutEffect:ht.useEffect,Nt=function(t,e){var r=St(),n=Object(ht.useRef)(t);return At((function(){n.current=t})),Object(ht.useMemo)((function(){var t=n.current(r.dispatch,r);return Object(f.mapValues)(t,(function(t,e){return"function"!=typeof t&&console.warn("Property ".concat(e," returned from dispatchMap in useDispatchWithMap must be a function.")),function(){var t;return(t=n.current(r.dispatch,r))[e].apply(t,arguments)}}))}),[r].concat(Object(L.a)(e)))},Pt=function(t){return Object(dt.createHigherOrderComponent)((function(e){return function(r){var n=Nt((function(e,n){return t(e,r,n)}),[]);return Object(ht.createElement)(e,Object(pt.a)({},r,n))}}),"withDispatch")},kt=Object(dt.createHigherOrderComponent)((function(t){return function(e){return Object(ht.createElement)(mt,null,(function(r){return Object(ht.createElement)(t,Object(pt.a)({},e,{registry:r}))}))}}),"withRegistry");function Ct(t){var e=function e(){return t(e.registry.select).apply(void 0,arguments)};return e.isRegistrySelector=!0,e.registry=tt,e}function Dt(t){return t.isRegistryControl=!0,t}r.d(e,"select",(function(){return Ft})),r.d(e,"dispatch",(function(){return Mt})),r.d(e,"subscribe",(function(){return Ut})),r.d(e,"registerGenericStore",(function(){return Vt})),r.d(e,"registerStore",(function(){return Gt})),r.d(e,"use",(function(){return Ht})),r.d(e,"withSelect",(function(){return It})),r.d(e,"withDispatch",(function(){return Pt})),r.d(e,"withRegistry",(function(){return kt})),r.d(e,"RegistryProvider",(function(){return jt})),r.d(e,"RegistryConsumer",(function(){return mt})),r.d(e,"useRegistry",(function(){return St})),r.d(e,"useSelect",(function(){return Tt})),r.d(e,"useDispatch",(function(){return Lt})),r.d(e,"__experimentalAsyncModeProvider",(function(){return _t})),r.d(e,"createRegistry",(function(){return Q})),r.d(e,"createRegistrySelector",(function(){return Ct})),r.d(e,"createRegistryControl",(function(){return Dt})),r.d(e,"plugins",(function(){return i})),r.d(e,"combineReducers",(function(){return c.a}));var Ft=tt.select,Mt=tt.dispatch,Ut=tt.subscribe,Vt=tt.registerGenericStore,Gt=tt.registerStore,Ht=tt.use},37:function(t,e){!function(){t.exports=this.wp.deprecated}()},38:function(t,e,r){"use strict";function n(t){if(Array.isArray(t))return t}r.d(e,"a",(function(){return n}))},39:function(t,e,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(e,"a",(function(){return n}))},40:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},43:function(t,e,r){"use strict";function n(t,e,r,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void r(t)}c.done?e(a):Promise.resolve(a).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var u=t.apply(e,r);function c(t){n(u,o,i,c,a,"next",t)}function a(t){n(u,o,i,c,a,"throw",t)}c(void 0)}))}}r.d(e,"a",(function(){return o}))},47:function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function a(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),u=new x(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var c=E(u,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var a=s(t,e,r);if("normal"===a.type){if(n=r.done?h:l,a.arg===d)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(n=h,r.method="throw",r.arg=a.arg)}}}(t,r,u),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var f="suspendedStart",l="suspendedYield",p="executing",h="completed",d={};function v(){}function y(){}function b(){}var g={};g[i]=function(){return this};var O=Object.getPrototypeOf,w=O&&O(O(T([])));w&&w!==r&&n.call(w,i)&&(g=w);var m=b.prototype=v.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,u){var c=s(t[r],t,o);if("throw"!==c.type){var a=c.arg,f=a.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then((function(t){e("next",t,i,u)}),(function(t){e("throw",t,i,u)})):Promise.resolve(f).then((function(t){a.value=t,i(a)}),(function(t){return e("throw",t,i,u)}))}u(c.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,u=function r(){for(;++o=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var a=n.call(u,"catchLoc"),s=n.call(u,"finallyLoc");if(a&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},61:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(10);function o(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,i){null!==i&&"object"===n(i)&&(o=o[1]),t.call(r,o,i,e)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(e.prototype,r),u&&o(e,u),t}();t.exports=u},8:function(t,e){!function(){t.exports=this.wp.compose}()},94:function(t,e){t.exports=function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/date.js b/wp-includes/js/dist/date.js index 8b213c3213..fe903540e3 100644 --- a/wp-includes/js/dist/date.js +++ b/wp-includes/js/dist/date.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["date"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 358); +/******/ return __webpack_require__(__webpack_require__.s = 288); /******/ }) /************************************************************************/ /******/ ({ -/***/ 216: +/***/ 188: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;//! moment-timezone.js @@ -722,14 +722,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/***/ 29: -/***/ (function(module, exports) { - -(function() { module.exports = this["moment"]; }()); - -/***/ }), - -/***/ 358: +/***/ 288: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -744,9 +737,9 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDate", function() { return getDate; }); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var moment_timezone_moment_timezone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(216); +/* harmony import */ var moment_timezone_moment_timezone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(188); /* harmony import */ var moment_timezone_moment_timezone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment_timezone_moment_timezone__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var moment_timezone_moment_timezone_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(359); +/* harmony import */ var moment_timezone_moment_timezone_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(289); /* harmony import */ var moment_timezone_moment_timezone_utils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment_timezone_moment_timezone_utils__WEBPACK_IMPORTED_MODULE_2__); /** * External dependencies @@ -1158,7 +1151,7 @@ setupWPTimezone(); /***/ }), -/***/ 359: +/***/ 289: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;//! moment-timezone-utils.js @@ -1172,7 +1165,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /*global define*/ if ( true && module.exports) { - module.exports = factory(__webpack_require__(360)); // Node + module.exports = factory(__webpack_require__(290)); // Node } else if (true) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(29)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? @@ -1484,16 +1477,23 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/***/ 360: +/***/ 29: +/***/ (function(module, exports) { + +(function() { module.exports = this["moment"]; }()); + +/***/ }), + +/***/ 290: /***/ (function(module, exports, __webpack_require__) { -var moment = module.exports = __webpack_require__(216); -moment.tz.load(__webpack_require__(361)); +var moment = module.exports = __webpack_require__(188); +moment.tz.load(__webpack_require__(291)); /***/ }), -/***/ 361: +/***/ 291: /***/ (function(module) { module.exports = JSON.parse("{\"version\":\"2019b\",\"zones\":[\"Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5\",\"Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5\",\"Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|47e5\",\"Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5\",\"Africa/Lagos|LMT WAT|-d.A -10|01|-22y0d.A|17e6\",\"Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4\",\"Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5\",\"Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6\",\"Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|32e5\",\"Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3\",\"Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|20e4\",\"Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5\",\"Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|01212121212121212121212121212121213|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0\",\"Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5\",\"Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5\",\"Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5\",\"Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00\",\"Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5\",\"Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5\",\"Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4\",\"America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326\",\"America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4\",\"America/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3\",\"America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4\",\"America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0\",\"America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0\",\"America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0\",\"America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0\",\"America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0\",\"America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0\",\"America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0\",\"America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0\",\"America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0\",\"America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0\",\"America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0\",\"America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0\",\"America/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4\",\"America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5\",\"America/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2\",\"America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3\",\"America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5\",\"America/Barbados|LMT BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4\",\"America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5\",\"America/Belize|LMT CST -0530 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3\",\"America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2\",\"America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2\",\"America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5\",\"America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4\",\"America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2\",\"America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4\",\"America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4\",\"America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5\",\"America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3\",\"America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5\",\"America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5\",\"America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4\",\"America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5\",\"America/Creston|MST PST|70 80|010|-29DR0 43B0|53e2\",\"America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4\",\"America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8\",\"America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3\",\"America/Dawson|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|13e2\",\"America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5\",\"America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|012342525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 XQp0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5\",\"America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|01212121212121341212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 LFB0 1cL0 3Cp0 1cL0 66N0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5\",\"America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3\",\"America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5\",\"America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5\",\"America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2\",\"America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5\",\"America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3\",\"America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3\",\"America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2\",\"America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 5Ip0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2\",\"America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5\",\"America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5\",\"America/Guyana|LMT -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|80e4\",\"America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4\",\"America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5\",\"America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4\",\"America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2\",\"America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2\",\"America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4\",\"America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3\",\"America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 Bb0 10N0 2bB0 8in0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5\",\"America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6\",\"America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6\",\"America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4\",\"America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5\",\"America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5\",\"America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4\",\"America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4\",\"America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4\",\"America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2\",\"America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5\",\"America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2\",\"America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6\",\"America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2\",\"America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3\",\"America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5\",\"America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5\",\"America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5\",\"America/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|24e4\",\"America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6\",\"America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2\",\"America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2\",\"America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2\",\"America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3\",\"America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2\",\"America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4\",\"America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5\",\"America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5\",\"America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4\",\"America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4\",\"America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5\",\"America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0\",\"America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842\",\"America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2\",\"America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5\",\"America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4\",\"America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229\",\"America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4\",\"America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5\",\"America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5\",\"America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6\",\"America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452\",\"America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2\",\"America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4\",\"America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3\",\"America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5\",\"America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656\",\"America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4\",\"America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5\",\"America/Whitehorse|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3\",\"America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4\",\"America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642\",\"America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3\",\"Antarctica/Casey|-00 +08 +11|0 -80 -b0|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10\",\"Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70\",\"Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80\",\"Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0|1\",\"Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60\",\"Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5\",\"Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40\",\"Antarctica/Rothera|-00 -03|0 30|01|gOo0|130\",\"Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20\",\"Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40\",\"Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25\",\"Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4\",\"Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5\",\"Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5\",\"Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|25e5\",\"Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3\",\"Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4\",\"Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4\",\"Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4\",\"Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0\",\"Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5\",\"Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4\",\"Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5\",\"Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6\",\"Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0\",\"Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5\",\"Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4\",\"Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4\",\"Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6\",\"Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4\",\"Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3\",\"Asia/Shanghai|CST CDT|-80 -90|010101010101010101010101010|-1c2w0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6\",\"Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5\",\"Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6\",\"Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5\",\"Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4\",\"Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5\",\"Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4\",\"Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00\",\"Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5\",\"Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|25e4\",\"Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5\",\"Asia/Hong_Kong|LMT HKT HKST HKT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5\",\"Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3\",\"Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4\",\"Europe/Istanbul|IMT EET EEST +04 +03|-1U.U -20 -30 -40 -30|012121212121212121212121212121212121212121212121212121234343434342121212121212121212121212121212121212121212121212121212121212124|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSp0 CL0 mN0 1Vz0 1gN0 1pz0 5Rd0 1fz0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1jB0 18L0 1ip0 17z0 qdd0 xX0 3S10 Tz0 dA10 11z0 1o10 11z0 1qN0 11z0 1ze0 11B0 WM0 1qO0 WI0 1nX0 1rB0 10L0 11B0 1in0 17d0 1in0 2pX0 19E0 1fU0 16Q0 1iI0 16Q0 1iI0 1Vd0 pb0 3Kp0 14o0 1de0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6\",\"Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6\",\"Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4\",\"Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4\",\"Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5\",\"Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4\",\"Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6\",\"Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5\",\"Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5\",\"Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2\",\"Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5\",\"Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5\",\"Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4\",\"Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4\",\"Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3\",\"Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5\",\"Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6\",\"Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4\",\"Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4\",\"Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5\",\"Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5\",\"Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4\",\"Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4\",\"Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5\",\"Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0\",\"Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4\",\"Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5\",\"Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4\",\"Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4\",\"Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -9u -a0|0123141414141414135353|-2um8r.Q 97XV.Q 1m1zu kKo0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6\",\"Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2\",\"Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5\",\"Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5\",\"Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5\",\"Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6\",\"Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3\",\"Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rb0 1ld0 14n0 1zd0 On0 1zd0 On0|38e6\",\"Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5\",\"Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5\",\"Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2\",\"Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4\",\"Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4\",\"Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5\",\"Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5\",\"Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4\",\"Atlantic/Bermuda|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3\",\"Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4\",\"Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4\",\"Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3\",\"Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4\",\"Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4\",\"Atlantic/South_Georgia|-02|20|0||30\",\"Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2\",\"Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5\",\"Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5\",\"Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5\",\"Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3\",\"Australia/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|746\",\"Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4\",\"Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368\",\"Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4\",\"Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347\",\"Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10\",\"Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5\",\"Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5\",\"CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00\",\"Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2\",\"CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00\",\"Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\"EST|EST|50|0|\",\"EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"Etc/GMT-0|GMT|0|0|\",\"Etc/GMT-1|+01|-10|0|\",\"Pacific/Port_Moresby|+10|-a0|0||25e4\",\"Etc/GMT-11|+11|-b0|0|\",\"Pacific/Tarawa|+12|-c0|0||29e3\",\"Etc/GMT-13|+13|-d0|0|\",\"Etc/GMT-14|+14|-e0|0|\",\"Etc/GMT-2|+02|-20|0|\",\"Etc/GMT-3|+03|-30|0|\",\"Etc/GMT-4|+04|-40|0|\",\"Etc/GMT-5|+05|-50|0|\",\"Etc/GMT-6|+06|-60|0|\",\"Indian/Christmas|+07|-70|0||21e2\",\"Etc/GMT-8|+08|-80|0|\",\"Pacific/Palau|+09|-90|0||21e3\",\"Etc/GMT+1|-01|10|0|\",\"Etc/GMT+10|-10|a0|0|\",\"Etc/GMT+11|-11|b0|0|\",\"Etc/GMT+12|-12|c0|0|\",\"Etc/GMT+3|-03|30|0|\",\"Etc/GMT+4|-04|40|0|\",\"Etc/GMT+5|-05|50|0|\",\"Etc/GMT+6|-06|60|0|\",\"Etc/GMT+7|-07|70|0|\",\"Etc/GMT+8|-08|80|0|\",\"Etc/GMT+9|-09|90|0|\",\"Etc/UTC|UTC|0|0|\",\"Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5\",\"Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3\",\"Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5\",\"Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5\",\"Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6\",\"Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\"Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5\",\"Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5\",\"Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5\",\"Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5\",\"Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5\",\"Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4\",\"Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4\",\"Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\"Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3\",\"Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\"Europe/Kaliningrad|CET CEST CET CEST MSK MSD EEST EET +03|-10 -20 -20 -30 -30 -40 -30 -20 -30|0101010101010232454545454545454546767676767676767676767676767676767676767676787|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 Am0 Lb0 1en0 op0 1pNz0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4\",\"Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5\",\"Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4\",\"Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5\",\"Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4\",\"Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5\",\"Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4\",\"Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5\",\"Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3\",\"Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6\",\"Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco8.l cNb8.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6\",\"Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4\",\"Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5\",\"Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5\",\"Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810\",\"Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4\",\"Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5\",\"Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5\",\"Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4\",\"Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4\",\"Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5\",\"Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4\",\"Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1a00 1cM0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5\",\"Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4\",\"Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0|10e5\",\"Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5\",\"Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4\",\"HST|HST|a0|0|\",\"Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2\",\"Indian/Cocos|+0630|-6u|0||596\",\"Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130\",\"Indian/Mahe|LMT +04|-3F.M -40|01|-2yO3F.M|79e3\",\"Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4\",\"Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4\",\"Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4\",\"Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3\",\"MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00\",\"MST|MST|70|0|\",\"MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600\",\"Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545454545454545454545454545454545454|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|37e3\",\"Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4\",\"Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3\",\"Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3\",\"Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1\",\"Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483\",\"Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0|88e4\",\"Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3\",\"Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125\",\"Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4\",\"Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4\",\"Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4\",\"Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2\",\"Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2\",\"Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3\",\"Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2\",\"Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2\",\"Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3\",\"Pacific/Niue|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|12e2\",\"Pacific/Norfolk|+1112 +1130 +1230 +11|-bc -bu -cu -b0|01213|-Kgbc W01G On0 1COp0|25e4\",\"Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3\",\"Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56\",\"Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3\",\"Pacific/Rarotonga|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3\",\"Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4\",\"Pacific/Tongatapu|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3\",\"PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0\",\"WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00\"],\"links\":[\"Africa/Abidjan|Africa/Bamako\",\"Africa/Abidjan|Africa/Banjul\",\"Africa/Abidjan|Africa/Conakry\",\"Africa/Abidjan|Africa/Dakar\",\"Africa/Abidjan|Africa/Freetown\",\"Africa/Abidjan|Africa/Lome\",\"Africa/Abidjan|Africa/Nouakchott\",\"Africa/Abidjan|Africa/Ouagadougou\",\"Africa/Abidjan|Africa/Timbuktu\",\"Africa/Abidjan|Atlantic/St_Helena\",\"Africa/Cairo|Egypt\",\"Africa/Johannesburg|Africa/Maseru\",\"Africa/Johannesburg|Africa/Mbabane\",\"Africa/Lagos|Africa/Bangui\",\"Africa/Lagos|Africa/Brazzaville\",\"Africa/Lagos|Africa/Douala\",\"Africa/Lagos|Africa/Kinshasa\",\"Africa/Lagos|Africa/Libreville\",\"Africa/Lagos|Africa/Luanda\",\"Africa/Lagos|Africa/Malabo\",\"Africa/Lagos|Africa/Niamey\",\"Africa/Lagos|Africa/Porto-Novo\",\"Africa/Maputo|Africa/Blantyre\",\"Africa/Maputo|Africa/Bujumbura\",\"Africa/Maputo|Africa/Gaborone\",\"Africa/Maputo|Africa/Harare\",\"Africa/Maputo|Africa/Kigali\",\"Africa/Maputo|Africa/Lubumbashi\",\"Africa/Maputo|Africa/Lusaka\",\"Africa/Nairobi|Africa/Addis_Ababa\",\"Africa/Nairobi|Africa/Asmara\",\"Africa/Nairobi|Africa/Asmera\",\"Africa/Nairobi|Africa/Dar_es_Salaam\",\"Africa/Nairobi|Africa/Djibouti\",\"Africa/Nairobi|Africa/Kampala\",\"Africa/Nairobi|Africa/Mogadishu\",\"Africa/Nairobi|Indian/Antananarivo\",\"Africa/Nairobi|Indian/Comoro\",\"Africa/Nairobi|Indian/Mayotte\",\"Africa/Tripoli|Libya\",\"America/Adak|America/Atka\",\"America/Adak|US/Aleutian\",\"America/Anchorage|US/Alaska\",\"America/Argentina/Buenos_Aires|America/Buenos_Aires\",\"America/Argentina/Catamarca|America/Argentina/ComodRivadavia\",\"America/Argentina/Catamarca|America/Catamarca\",\"America/Argentina/Cordoba|America/Cordoba\",\"America/Argentina/Cordoba|America/Rosario\",\"America/Argentina/Jujuy|America/Jujuy\",\"America/Argentina/Mendoza|America/Mendoza\",\"America/Atikokan|America/Coral_Harbour\",\"America/Chicago|US/Central\",\"America/Curacao|America/Aruba\",\"America/Curacao|America/Kralendijk\",\"America/Curacao|America/Lower_Princes\",\"America/Denver|America/Shiprock\",\"America/Denver|Navajo\",\"America/Denver|US/Mountain\",\"America/Detroit|US/Michigan\",\"America/Edmonton|Canada/Mountain\",\"America/Fort_Wayne|America/Indiana/Indianapolis\",\"America/Fort_Wayne|America/Indianapolis\",\"America/Fort_Wayne|US/East-Indiana\",\"America/Halifax|Canada/Atlantic\",\"America/Havana|Cuba\",\"America/Indiana/Knox|America/Knox_IN\",\"America/Indiana/Knox|US/Indiana-Starke\",\"America/Jamaica|Jamaica\",\"America/Kentucky/Louisville|America/Louisville\",\"America/Los_Angeles|US/Pacific\",\"America/Los_Angeles|US/Pacific-New\",\"America/Manaus|Brazil/West\",\"America/Mazatlan|Mexico/BajaSur\",\"America/Mexico_City|Mexico/General\",\"America/New_York|US/Eastern\",\"America/Noronha|Brazil/DeNoronha\",\"America/Panama|America/Cayman\",\"America/Phoenix|US/Arizona\",\"America/Port_of_Spain|America/Anguilla\",\"America/Port_of_Spain|America/Antigua\",\"America/Port_of_Spain|America/Dominica\",\"America/Port_of_Spain|America/Grenada\",\"America/Port_of_Spain|America/Guadeloupe\",\"America/Port_of_Spain|America/Marigot\",\"America/Port_of_Spain|America/Montserrat\",\"America/Port_of_Spain|America/St_Barthelemy\",\"America/Port_of_Spain|America/St_Kitts\",\"America/Port_of_Spain|America/St_Lucia\",\"America/Port_of_Spain|America/St_Thomas\",\"America/Port_of_Spain|America/St_Vincent\",\"America/Port_of_Spain|America/Tortola\",\"America/Port_of_Spain|America/Virgin\",\"America/Regina|Canada/Saskatchewan\",\"America/Rio_Branco|America/Porto_Acre\",\"America/Rio_Branco|Brazil/Acre\",\"America/Santiago|Chile/Continental\",\"America/Sao_Paulo|Brazil/East\",\"America/St_Johns|Canada/Newfoundland\",\"America/Tijuana|America/Ensenada\",\"America/Tijuana|America/Santa_Isabel\",\"America/Tijuana|Mexico/BajaNorte\",\"America/Toronto|America/Montreal\",\"America/Toronto|Canada/Eastern\",\"America/Vancouver|Canada/Pacific\",\"America/Whitehorse|Canada/Yukon\",\"America/Winnipeg|Canada/Central\",\"Asia/Ashgabat|Asia/Ashkhabad\",\"Asia/Bangkok|Asia/Phnom_Penh\",\"Asia/Bangkok|Asia/Vientiane\",\"Asia/Dhaka|Asia/Dacca\",\"Asia/Dubai|Asia/Muscat\",\"Asia/Ho_Chi_Minh|Asia/Saigon\",\"Asia/Hong_Kong|Hongkong\",\"Asia/Jerusalem|Asia/Tel_Aviv\",\"Asia/Jerusalem|Israel\",\"Asia/Kathmandu|Asia/Katmandu\",\"Asia/Kolkata|Asia/Calcutta\",\"Asia/Kuala_Lumpur|Asia/Singapore\",\"Asia/Kuala_Lumpur|Singapore\",\"Asia/Macau|Asia/Macao\",\"Asia/Makassar|Asia/Ujung_Pandang\",\"Asia/Nicosia|Europe/Nicosia\",\"Asia/Qatar|Asia/Bahrain\",\"Asia/Rangoon|Asia/Yangon\",\"Asia/Riyadh|Asia/Aden\",\"Asia/Riyadh|Asia/Kuwait\",\"Asia/Seoul|ROK\",\"Asia/Shanghai|Asia/Chongqing\",\"Asia/Shanghai|Asia/Chungking\",\"Asia/Shanghai|Asia/Harbin\",\"Asia/Shanghai|PRC\",\"Asia/Taipei|ROC\",\"Asia/Tehran|Iran\",\"Asia/Thimphu|Asia/Thimbu\",\"Asia/Tokyo|Japan\",\"Asia/Ulaanbaatar|Asia/Ulan_Bator\",\"Asia/Urumqi|Asia/Kashgar\",\"Atlantic/Faroe|Atlantic/Faeroe\",\"Atlantic/Reykjavik|Iceland\",\"Atlantic/South_Georgia|Etc/GMT+2\",\"Australia/Adelaide|Australia/South\",\"Australia/Brisbane|Australia/Queensland\",\"Australia/Broken_Hill|Australia/Yancowinna\",\"Australia/Darwin|Australia/North\",\"Australia/Hobart|Australia/Tasmania\",\"Australia/Lord_Howe|Australia/LHI\",\"Australia/Melbourne|Australia/Victoria\",\"Australia/Perth|Australia/West\",\"Australia/Sydney|Australia/ACT\",\"Australia/Sydney|Australia/Canberra\",\"Australia/Sydney|Australia/NSW\",\"Etc/GMT-0|Etc/GMT\",\"Etc/GMT-0|Etc/GMT+0\",\"Etc/GMT-0|Etc/GMT0\",\"Etc/GMT-0|Etc/Greenwich\",\"Etc/GMT-0|GMT\",\"Etc/GMT-0|GMT+0\",\"Etc/GMT-0|GMT-0\",\"Etc/GMT-0|GMT0\",\"Etc/GMT-0|Greenwich\",\"Etc/UTC|Etc/UCT\",\"Etc/UTC|Etc/Universal\",\"Etc/UTC|Etc/Zulu\",\"Etc/UTC|UCT\",\"Etc/UTC|UTC\",\"Etc/UTC|Universal\",\"Etc/UTC|Zulu\",\"Europe/Belgrade|Europe/Ljubljana\",\"Europe/Belgrade|Europe/Podgorica\",\"Europe/Belgrade|Europe/Sarajevo\",\"Europe/Belgrade|Europe/Skopje\",\"Europe/Belgrade|Europe/Zagreb\",\"Europe/Chisinau|Europe/Tiraspol\",\"Europe/Dublin|Eire\",\"Europe/Helsinki|Europe/Mariehamn\",\"Europe/Istanbul|Asia/Istanbul\",\"Europe/Istanbul|Turkey\",\"Europe/Lisbon|Portugal\",\"Europe/London|Europe/Belfast\",\"Europe/London|Europe/Guernsey\",\"Europe/London|Europe/Isle_of_Man\",\"Europe/London|Europe/Jersey\",\"Europe/London|GB\",\"Europe/London|GB-Eire\",\"Europe/Moscow|W-SU\",\"Europe/Oslo|Arctic/Longyearbyen\",\"Europe/Oslo|Atlantic/Jan_Mayen\",\"Europe/Prague|Europe/Bratislava\",\"Europe/Rome|Europe/San_Marino\",\"Europe/Rome|Europe/Vatican\",\"Europe/Warsaw|Poland\",\"Europe/Zurich|Europe/Busingen\",\"Europe/Zurich|Europe/Vaduz\",\"Indian/Christmas|Etc/GMT-7\",\"Pacific/Auckland|Antarctica/McMurdo\",\"Pacific/Auckland|Antarctica/South_Pole\",\"Pacific/Auckland|NZ\",\"Pacific/Chatham|NZ-CHAT\",\"Pacific/Chuuk|Pacific/Truk\",\"Pacific/Chuuk|Pacific/Yap\",\"Pacific/Easter|Chile/EasterIsland\",\"Pacific/Guam|Pacific/Saipan\",\"Pacific/Honolulu|Pacific/Johnston\",\"Pacific/Honolulu|US/Hawaii\",\"Pacific/Kwajalein|Kwajalein\",\"Pacific/Pago_Pago|Pacific/Midway\",\"Pacific/Pago_Pago|Pacific/Samoa\",\"Pacific/Pago_Pago|US/Samoa\",\"Pacific/Palau|Etc/GMT-9\",\"Pacific/Pohnpei|Pacific/Ponape\",\"Pacific/Port_Moresby|Etc/GMT-10\",\"Pacific/Tarawa|Etc/GMT-12\",\"Pacific/Tarawa|Pacific/Funafuti\",\"Pacific/Tarawa|Pacific/Wake\",\"Pacific/Tarawa|Pacific/Wallis\"]}"); diff --git a/wp-includes/js/dist/date.min.js b/wp-includes/js/dist/date.min.js index a0b35ddd0f..4db5b82c49 100644 --- a/wp-includes/js/dist/date.min.js +++ b/wp-includes/js/dist/date.min.js @@ -1,11 +1,11 @@ -this.wp=this.wp||{},this.wp.date=function(c){var M={};function o(z){if(M[z])return M[z].exports;var A=M[z]={i:z,l:!1,exports:{}};return c[z].call(A.exports,A,A.exports,o),A.l=!0,A.exports}return o.m=c,o.c=M,o.d=function(c,M,z){o.o(c,M)||Object.defineProperty(c,M,{enumerable:!0,get:z})},o.r=function(c){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},o.t=function(c,M){if(1&M&&(c=o(c)),8&M)return c;if(4&M&&"object"==typeof c&&c&&c.__esModule)return c;var z=Object.create(null);if(o.r(z),Object.defineProperty(z,"default",{enumerable:!0,value:c}),2&M&&"string"!=typeof c)for(var A in c)o.d(z,A,function(M){return c[M]}.bind(null,A));return z},o.n=function(c){var M=c&&c.__esModule?function(){return c.default}:function(){return c};return o.d(M,"a",M),M},o.o=function(c,M){return Object.prototype.hasOwnProperty.call(c,M)},o.p="",o(o.s=358)}({216:function(c,M,o){var z,A,b;//! moment-timezone.js +this.wp=this.wp||{},this.wp.date=function(c){var M={};function o(z){if(M[z])return M[z].exports;var A=M[z]={i:z,l:!1,exports:{}};return c[z].call(A.exports,A,A.exports,o),A.l=!0,A.exports}return o.m=c,o.c=M,o.d=function(c,M,z){o.o(c,M)||Object.defineProperty(c,M,{enumerable:!0,get:z})},o.r=function(c){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},o.t=function(c,M){if(1&M&&(c=o(c)),8&M)return c;if(4&M&&"object"==typeof c&&c&&c.__esModule)return c;var z=Object.create(null);if(o.r(z),Object.defineProperty(z,"default",{enumerable:!0,value:c}),2&M&&"string"!=typeof c)for(var A in c)o.d(z,A,function(M){return c[M]}.bind(null,A));return z},o.n=function(c){var M=c&&c.__esModule?function(){return c.default}:function(){return c};return o.d(M,"a",M),M},o.o=function(c,M){return Object.prototype.hasOwnProperty.call(c,M)},o.p="",o(o.s=288)}({188:function(c,M,o){var z,A,b;//! moment-timezone.js //! version : 0.5.26 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone -!function(p,n){"use strict";c.exports?c.exports=n(o(29)):(A=[o(29)],void 0===(b="function"==typeof(z=n)?z.apply(M,A):z)||(c.exports=b))}(0,(function(c){"use strict";var M,o={},z={},A={},b={};c&&"string"==typeof c.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var p=c.version.split("."),n=+p[0],a=+p[1];function O(c){return c>96?c-87:c>64?c-29:c-48}function L(c){var M=0,o=c.split("."),z=o[0],A=o[1]||"",b=1,p=0,n=1;for(45===c.charCodeAt(0)&&(M=1,n=-1);M3){var M=A[l(c)];if(M)return M;E("Moment Timezone found "+c+" from the Intl api, but did not have that data loaded.")}}catch(c){}var o,z,b,p=function(){var c,M,o,z=(new Date).getFullYear()-2,A=new d(new Date(z,0,1)),b=[A];for(o=1;o<48;o++)(M=new d(new Date(z,o,1))).offset!==A.offset&&(c=f(A,M),b.push(c),b.push(new d(new Date(c.at+6e4)))),A=M;for(o=0;o<4;o++)b.push(new d(new Date(z+o,0,1))),b.push(new d(new Date(z+o,6,1)));return b}(),n=p.length,a=t(p),O=[];for(z=0;z0?O[0].zone.name:void 0}function l(c){return(c||"").toLowerCase().replace(/\//g,"_")}function u(c){var M,z,b,p;for("string"==typeof c&&(c=[c]),M=0;M= 2.6.0. You are using Moment.js "+c.version+". See momentjs.com"),N.prototype={_set:function(c){this.name=c.name,this.abbrs=c.abbrs,this.untils=c.untils,this.offsets=c.offsets,this.population=c.population},_index:function(c){var M,o=+c,z=this.untils;for(M=0;Mz&&S.moveInvalidForward&&(M=z),b0&&(this._z=null),R.apply(this,arguments)}),c.tz.setDefault=function(M){return(n<2||2===n&&a<9)&&E("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+c.version+"."),c.defaultZone=M?T(M):null,c};var h=c.momentProperties;return"[object Array]"===Object.prototype.toString.call(h)?(h.push("_z"),h.push("_a")):h&&(h._z=null),c}))},29:function(c,M){!function(){c.exports=this.moment}()},358:function(c,M,o){"use strict";o.r(M),o.d(M,"setSettings",(function(){return n})),o.d(M,"__experimentalGetSettings",(function(){return a})),o.d(M,"format",(function(){return e})),o.d(M,"date",(function(){return i})),o.d(M,"gmdate",(function(){return N})),o.d(M,"dateI18n",(function(){return d})),o.d(M,"isInTheFuture",(function(){return W})),o.d(M,"getDate",(function(){return f}));var z=o(29),A=o.n(z),b=(o(216),o(359),"WP"),p={l10n:{locale:"en",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:"%s from now",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a",datetimeAbbreviated:"M j, Y g: i a"},timezone:{offset:"0",string:""}};function n(c){p=c;var M=A.a.locale();A.a.updateLocale(c.l10n.locale,{parentLocale:M,months:c.l10n.months,monthsShort:c.l10n.monthsShort,weekdays:c.l10n.weekdays,weekdaysShort:c.l10n.weekdaysShort,meridiem:function(M,o,z){return M<12?z?c.l10n.meridiem.am:c.l10n.meridiem.AM:z?c.l10n.meridiem.pm:c.l10n.meridiem.PM},longDateFormat:{LT:c.formats.time,LTS:null,L:null,LL:c.formats.date,LLL:c.formats.datetime,LLLL:null},relativeTime:c.l10n.relative}),A.a.locale(M),O()}function a(){return p}function O(){A.a.tz.add(A.a.tz.pack({name:b,abbrs:[b],untils:[null],offsets:[60*-p.timezone.offset||0]}))}var L=60,q={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:function(c){var M=c.format("D");return c.format("Do").replace(M,"")},w:"d",z:function(c){return""+parseInt(c.format("DDD"),10)-1},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:function(c){return c.daysInMonth()},L:function(c){return c.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B:function(c){var M=A()(c).utcOffset(60),o=parseInt(M.format("s"),10),z=parseInt(M.format("m"),10),b=parseInt(M.format("H"),10);return parseInt((o+60*z+3600*b)/86.4,10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:function(c){return c.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z:function(c){var M=c.format("Z"),o="-"===M[0]?-1:1,z=M.substring(1).split(":");return o*(z[0]*L+z[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function e(c){var M,o,z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,b=[],p=A()(z);for(M=0;M1&&void 0!==arguments[1]?arguments[1]:new Date,o=p.timezone.offset*L;return e(c,A()(M).utcOffset(o,!0))}function N(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return e(c,A()(M).utc())}function d(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?0:p.timezone.offset*L,z=A()(M).utcOffset(o,!0);return z.locale(p.l10n.locale),e(c,z)}function W(c){var M=A.a.tz(b);return A.a.tz(c,b).isAfter(M)}function f(c){return c?A.a.tz(c,b).toDate():A.a.tz(b).toDate()}O()},359:function(c,M,o){var z,A,b;//! moment-timezone-utils.js +!function(p,n){"use strict";c.exports?c.exports=n(o(29)):(A=[o(29)],void 0===(b="function"==typeof(z=n)?z.apply(M,A):z)||(c.exports=b))}(0,(function(c){"use strict";var M,o={},z={},A={},b={};c&&"string"==typeof c.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var p=c.version.split("."),n=+p[0],a=+p[1];function O(c){return c>96?c-87:c>64?c-29:c-48}function L(c){var M=0,o=c.split("."),z=o[0],A=o[1]||"",b=1,p=0,n=1;for(45===c.charCodeAt(0)&&(M=1,n=-1);M3){var M=A[l(c)];if(M)return M;E("Moment Timezone found "+c+" from the Intl api, but did not have that data loaded.")}}catch(c){}var o,z,b,p=function(){var c,M,o,z=(new Date).getFullYear()-2,A=new d(new Date(z,0,1)),b=[A];for(o=1;o<48;o++)(M=new d(new Date(z,o,1))).offset!==A.offset&&(c=f(A,M),b.push(c),b.push(new d(new Date(c.at+6e4)))),A=M;for(o=0;o<4;o++)b.push(new d(new Date(z+o,0,1))),b.push(new d(new Date(z+o,6,1)));return b}(),n=p.length,a=t(p),O=[];for(z=0;z0?O[0].zone.name:void 0}function l(c){return(c||"").toLowerCase().replace(/\//g,"_")}function u(c){var M,z,b,p;for("string"==typeof c&&(c=[c]),M=0;M= 2.6.0. You are using Moment.js "+c.version+". See momentjs.com"),N.prototype={_set:function(c){this.name=c.name,this.abbrs=c.abbrs,this.untils=c.untils,this.offsets=c.offsets,this.population=c.population},_index:function(c){var M,o=+c,z=this.untils;for(M=0;Mz&&S.moveInvalidForward&&(M=z),b0&&(this._z=null),R.apply(this,arguments)}),c.tz.setDefault=function(M){return(n<2||2===n&&a<9)&&E("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+c.version+"."),c.defaultZone=M?T(M):null,c};var h=c.momentProperties;return"[object Array]"===Object.prototype.toString.call(h)?(h.push("_z"),h.push("_a")):h&&(h._z=null),c}))},288:function(c,M,o){"use strict";o.r(M),o.d(M,"setSettings",(function(){return n})),o.d(M,"__experimentalGetSettings",(function(){return a})),o.d(M,"format",(function(){return e})),o.d(M,"date",(function(){return i})),o.d(M,"gmdate",(function(){return N})),o.d(M,"dateI18n",(function(){return d})),o.d(M,"isInTheFuture",(function(){return W})),o.d(M,"getDate",(function(){return f}));var z=o(29),A=o.n(z),b=(o(188),o(289),"WP"),p={l10n:{locale:"en",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:"%s from now",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a",datetimeAbbreviated:"M j, Y g: i a"},timezone:{offset:"0",string:""}};function n(c){p=c;var M=A.a.locale();A.a.updateLocale(c.l10n.locale,{parentLocale:M,months:c.l10n.months,monthsShort:c.l10n.monthsShort,weekdays:c.l10n.weekdays,weekdaysShort:c.l10n.weekdaysShort,meridiem:function(M,o,z){return M<12?z?c.l10n.meridiem.am:c.l10n.meridiem.AM:z?c.l10n.meridiem.pm:c.l10n.meridiem.PM},longDateFormat:{LT:c.formats.time,LTS:null,L:null,LL:c.formats.date,LLL:c.formats.datetime,LLLL:null},relativeTime:c.l10n.relative}),A.a.locale(M),O()}function a(){return p}function O(){A.a.tz.add(A.a.tz.pack({name:b,abbrs:[b],untils:[null],offsets:[60*-p.timezone.offset||0]}))}var L=60,q={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:function(c){var M=c.format("D");return c.format("Do").replace(M,"")},w:"d",z:function(c){return""+parseInt(c.format("DDD"),10)-1},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:function(c){return c.daysInMonth()},L:function(c){return c.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B:function(c){var M=A()(c).utcOffset(60),o=parseInt(M.format("s"),10),z=parseInt(M.format("m"),10),b=parseInt(M.format("H"),10);return parseInt((o+60*z+3600*b)/86.4,10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:function(c){return c.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z:function(c){var M=c.format("Z"),o="-"===M[0]?-1:1,z=M.substring(1).split(":");return o*(z[0]*L+z[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function e(c){var M,o,z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,b=[],p=A()(z);for(M=0;M1&&void 0!==arguments[1]?arguments[1]:new Date,o=p.timezone.offset*L;return e(c,A()(M).utcOffset(o,!0))}function N(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return e(c,A()(M).utc())}function d(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?0:p.timezone.offset*L,z=A()(M).utcOffset(o,!0);return z.locale(p.l10n.locale),e(c,z)}function W(c){var M=A.a.tz(b);return A.a.tz(c,b).isAfter(M)}function f(c){return c?A.a.tz(c,b).toDate():A.a.tz(b).toDate()}O()},289:function(c,M,o){var z,A,b;//! moment-timezone-utils.js //! version : 0.5.26 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone -!function(p,n){"use strict";c.exports?c.exports=n(o(360)):(A=[o(29)],void 0===(b="function"==typeof(z=n)?z.apply(M,A):z)||(c.exports=b))}(0,(function(c){"use strict";if(!c.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var M="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX",o=1e-6;function z(c,z){for(var A="",b=Math.abs(c),p=Math.floor(b),n=function(c,z){for(var A,b=".",p="";z>0;)z-=1,c*=60,A=Math.floor(c+o),b+=M[A],c-=A,A&&(p+=b,b="");return p}(b-p,Math.min(~~z,10));p>0;)A=M[p%60]+A,p=Math.floor(p/60);return c<0&&(A="-"+A),A&&n?A+n:(n||"-"!==A)&&(A||n)||"0"}function A(c){var M,o=[],A=0;for(M=0;Mn.population?a.unshift(p):p.population===n.population&&z&&z[p.name]?a.unshift(p):a.push(p),L=!0);L||q.push([p])}for(A=0;Ao&&(A=M,M=o,o=A),A=0;Ao&&(p=Math.min(p,A+1)));return[b,p]}(c.untils,M,o),b=z.apply(c.untils,A);return b[b.length-1]=null,{name:c.name,abbrs:z.apply(c.abbrs,A),untils:b,offsets:z.apply(c.offsets,A),population:c.population}}return c.tz.pack=n,c.tz.packBase60=z,c.tz.createLinks=L,c.tz.filterYears=q,c.tz.filterLinkPack=function(c,M,o,z){var A,b,p=c.zones,a=[];for(A=0;A0;)z-=1,c*=60,A=Math.floor(c+o),b+=M[A],c-=A,A&&(p+=b,b="");return p}(b-p,Math.min(~~z,10));p>0;)A=M[p%60]+A,p=Math.floor(p/60);return c<0&&(A="-"+A),A&&n?A+n:(n||"-"!==A)&&(A||n)||"0"}function A(c){var M,o=[],A=0;for(M=0;Mn.population?a.unshift(p):p.population===n.population&&z&&z[p.name]?a.unshift(p):a.push(p),L=!0);L||q.push([p])}for(A=0;Ao&&(A=M,M=o,o=A),A=0;Ao&&(p=Math.min(p,A+1)));return[b,p]}(c.untils,M,o),b=z.apply(c.untils,A);return b[b.length-1]=null,{name:c.name,abbrs:z.apply(c.abbrs,A),untils:b,offsets:z.apply(c.offsets,A),population:c.population}}return c.tz.pack=n,c.tz.packBase60=z,c.tz.createLinks=L,c.tz.filterYears=q,c.tz.filterLinkPack=function(c,M,o,z){var A,b,p=c.zones,a=[];for(A=0;A1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,i=t.plugin,u=t.link,a=t.hint,l=i?" from ".concat(i):"",f=n?" and will be removed".concat(l," in version ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",s=u?" See: ".concat(u):"",p=a?" Note: ".concat(a):"",b="".concat(e," is deprecated").concat(f,".").concat(d).concat(s).concat(p);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.deprecated=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=292)}({27:function(e,t){!function(){e.exports=this.wp.hooks}()},292:function(e,t,n){"use strict";n.r(t),n.d(t,"logged",(function(){return o})),n.d(t,"default",(function(){return c}));var r=n(27),o=Object.create(null);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,i=t.plugin,u=t.link,a=t.hint,l=i?" from ".concat(i):"",f=n?" and will be removed".concat(l," in version ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",s=u?" See: ".concat(u):"",p=a?" Note: ".concat(a):"",b="".concat(e," is deprecated").concat(f,".").concat(d).concat(s).concat(p);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/dom-ready.js b/wp-includes/js/dist/dom-ready.js index b8f10323cd..3a1418b433 100644 --- a/wp-includes/js/dist/dom-ready.js +++ b/wp-includes/js/dist/dom-ready.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["domReady"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 363); +/******/ return __webpack_require__(__webpack_require__.s = 293); /******/ }) /************************************************************************/ /******/ ({ -/***/ 363: +/***/ 293: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/dom-ready.min.js b/wp-includes/js/dist/dom-ready.min.js index fdda565411..5510eaaeca 100644 --- a/wp-includes/js/dist/dom-ready.min.js +++ b/wp-includes/js/dist/dom-ready.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.domReady=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=363)}({363:function(e,t,n){"use strict";n.r(t);t.default=function(e){if("complete"===document.readyState||"interactive"===document.readyState)return e();document.addEventListener("DOMContentLoaded",e)}}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.domReady=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=293)}({293:function(e,t,n){"use strict";n.r(t);t.default=function(e){if("complete"===document.readyState||"interactive"===document.readyState)return e();document.addEventListener("DOMContentLoaded",e)}}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/dom.js b/wp-includes/js/dist/dom.js index ba128a11d4..9823b549f9 100644 --- a/wp-includes/js/dist/dom.js +++ b/wp-includes/js/dist/dom.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dom"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 404); +/******/ return __webpack_require__(__webpack_require__.s = 333); /******/ }) /************************************************************************/ /******/ ({ @@ -138,7 +138,7 @@ function _iterableToArray(iter) { /***/ }), -/***/ 404: +/***/ 333: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/dom.min.js b/wp-includes/js/dist/dom.min.js index c0340a05f0..60571cadb5 100644 --- a/wp-includes/js/dist/dom.min.js +++ b/wp-includes/js/dist/dom.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.dom=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=404)}({17:function(e,t,n){"use strict";var r=n(30);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0||e.offsetHeight>0||e.getClientRects().length>0}function c(e){var t=e.querySelectorAll(a);return Object(i.a)(t).filter((function(e){return!!u(e)&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=document.querySelector('img[usemap="#'+t.name+'"]');return!!n&&u(n)}(e))}))}var l=n(2);function d(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function f(e){return-1!==d(e)}function s(e,t){return{element:e,index:t}}function g(e){return e.element}function p(e,t){var n=d(e.element),r=d(t.element);return n===r?e.index-t.index:n-r}function v(e){return c(e).filter(f).map(s).sort(p).map(g).reduce((t={},function(e,n){var r=n.nodeName,o=n.type,i=n.checked,a=n.name;if("INPUT"!==r||"radio"!==o||!a)return e.concat(n);var u=t.hasOwnProperty(a);if(!i&&u)return e;if(u){var c=t[a];e=Object(l.without)(e,c)}return t[a]=n,e.concat(n)}),[]);var t}var m=window.getComputedStyle,h=window.Node,b=h.TEXT_NODE,C=h.ELEMENT_NODE,N=h.DOCUMENT_POSITION_PRECEDING,y=h.DOCUMENT_POSITION_FOLLOWING;function E(e,t,n){if(Object(l.includes)(["INPUT","TEXTAREA"],e.tagName))return e.selectionStart===e.selectionEnd&&(t?0===e.selectionStart:e.value.length===e.selectionStart);if(!e.isContentEditable)return!0;var r=window.getSelection();if(!r.rangeCount)return!1;var o=r.getRangeAt(0).cloneRange(),i=function(e){var t=e.anchorNode,n=e.focusNode,r=e.anchorOffset,o=e.focusOffset,i=t.compareDocumentPosition(n);return!(i&N)&&(!!(i&y)||(0!==i||r<=o))}(r),a=r.isCollapsed;a||o.collapse(!i);var u=S(o);if(!u)return!1;var c=window.getComputedStyle(e),d=parseInt(c.lineHeight,10)||0;if(!a&&u.height>d&&i===t)return!1;var f=parseInt(c["padding".concat(t?"Top":"Bottom")],10)||0,s=3*parseInt(d,10)/4,g=e.getBoundingClientRect();if(!(t?g.top+f>u.top-s:g.bottom-f3&&void 0!==arguments[3])||arguments[3];if(e)if(n&&e.isContentEditable){var o=n.height/2,i=e.getBoundingClientRect(),a=n.left,u=t?i.bottom-o:i.top+o,c=A(document,a,u,e);if(!c||!e.contains(c.startContainer))return!r||c&&c.startContainer&&c.startContainer.contains(e)?void T(e,t):(e.scrollIntoView(t),void P(e,t,n,!1));var l=window.getSelection();l.removeAllRanges(),l.addRange(c),e.focus(),l.removeAllRanges(),l.addRange(c)}else T(e,t)}function I(e){try{var t=e.nodeName,n=e.selectionStart,r=e.contentEditable;return"INPUT"===t&&null!==n||"TEXTAREA"===t||"true"===r}catch(e){return!1}}function x(){if(I(document.activeElement))return!0;var e=window.getSelection(),t=e.rangeCount?e.getRangeAt(0):null;return t&&!t.collapsed}function j(e){if(Object(l.includes)(["INPUT","TEXTAREA"],e.nodeName))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;var t=window.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;if(!n)return!0;var r=n.startContainer,o=n.endContainer,i=n.startOffset,a=n.endOffset;if(r===e&&o===e&&0===i&&a===e.childNodes.length)return!0;var u=e.lastChild,c=u.nodeType===b?u.data.length:u.childNodes.length;return r===e.firstChild&&o===e.lastChild&&0===i&&a===c}function _(e){if(e){if(e.scrollHeight>e.clientHeight){var t=window.getComputedStyle(e).overflowY;if(/(auto|scroll)/.test(t))return e}return _(e.parentNode)}}function B(e){for(var t;(t=e.parentNode)&&t.nodeType!==C;);return t?"static"!==m(t).position?t:t.offsetParent:null}function M(e,t){F(t,e.parentNode),D(e)}function D(e){e.parentNode.removeChild(e)}function F(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function H(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function U(e,t){for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);return e.parentNode.replaceChild(n,e),n}function z(e,t){t.parentNode.insertBefore(e,t),e.appendChild(t)}n.d(t,"focus",(function(){return X})),n.d(t,"isHorizontalEdge",(function(){return w})),n.d(t,"isVerticalEdge",(function(){return R})),n.d(t,"getRectangleFromRange",(function(){return S})),n.d(t,"computeCaretRect",(function(){return O})),n.d(t,"placeCaretAtHorizontalEdge",(function(){return T})),n.d(t,"placeCaretAtVerticalEdge",(function(){return P})),n.d(t,"isTextField",(function(){return I})),n.d(t,"documentHasSelection",(function(){return x})),n.d(t,"isEntirelySelected",(function(){return j})),n.d(t,"getScrollContainer",(function(){return _})),n.d(t,"getOffsetParent",(function(){return B})),n.d(t,"replace",(function(){return M})),n.d(t,"remove",(function(){return D})),n.d(t,"insertAfter",(function(){return F})),n.d(t,"unwrap",(function(){return H})),n.d(t,"replaceTag",(function(){return U})),n.d(t,"wrap",(function(){return z}));var X={focusable:r,tabbable:o}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.dom=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=333)}({17:function(e,t,n){"use strict";var r=n(30);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0||e.offsetHeight>0||e.getClientRects().length>0}function c(e){var t=e.querySelectorAll(a);return Object(i.a)(t).filter((function(e){return!!u(e)&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=document.querySelector('img[usemap="#'+t.name+'"]');return!!n&&u(n)}(e))}))}var l=n(2);function d(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function f(e){return-1!==d(e)}function s(e,t){return{element:e,index:t}}function g(e){return e.element}function p(e,t){var n=d(e.element),r=d(t.element);return n===r?e.index-t.index:n-r}function v(e){return c(e).filter(f).map(s).sort(p).map(g).reduce((t={},function(e,n){var r=n.nodeName,o=n.type,i=n.checked,a=n.name;if("INPUT"!==r||"radio"!==o||!a)return e.concat(n);var u=t.hasOwnProperty(a);if(!i&&u)return e;if(u){var c=t[a];e=Object(l.without)(e,c)}return t[a]=n,e.concat(n)}),[]);var t}var m=window.getComputedStyle,h=window.Node,b=h.TEXT_NODE,C=h.ELEMENT_NODE,N=h.DOCUMENT_POSITION_PRECEDING,y=h.DOCUMENT_POSITION_FOLLOWING;function E(e,t,n){if(Object(l.includes)(["INPUT","TEXTAREA"],e.tagName))return e.selectionStart===e.selectionEnd&&(t?0===e.selectionStart:e.value.length===e.selectionStart);if(!e.isContentEditable)return!0;var r=window.getSelection();if(!r.rangeCount)return!1;var o=r.getRangeAt(0).cloneRange(),i=function(e){var t=e.anchorNode,n=e.focusNode,r=e.anchorOffset,o=e.focusOffset,i=t.compareDocumentPosition(n);return!(i&N)&&(!!(i&y)||(0!==i||r<=o))}(r),a=r.isCollapsed;a||o.collapse(!i);var u=S(o);if(!u)return!1;var c=window.getComputedStyle(e),d=parseInt(c.lineHeight,10)||0;if(!a&&u.height>d&&i===t)return!1;var f=parseInt(c["padding".concat(t?"Top":"Bottom")],10)||0,s=3*parseInt(d,10)/4,g=e.getBoundingClientRect();if(!(t?g.top+f>u.top-s:g.bottom-f3&&void 0!==arguments[3])||arguments[3];if(e)if(n&&e.isContentEditable){var o=n.height/2,i=e.getBoundingClientRect(),a=n.left,u=t?i.bottom-o:i.top+o,c=A(document,a,u,e);if(!c||!e.contains(c.startContainer))return!r||c&&c.startContainer&&c.startContainer.contains(e)?void T(e,t):(e.scrollIntoView(t),void P(e,t,n,!1));var l=window.getSelection();l.removeAllRanges(),l.addRange(c),e.focus(),l.removeAllRanges(),l.addRange(c)}else T(e,t)}function I(e){try{var t=e.nodeName,n=e.selectionStart,r=e.contentEditable;return"INPUT"===t&&null!==n||"TEXTAREA"===t||"true"===r}catch(e){return!1}}function x(){if(I(document.activeElement))return!0;var e=window.getSelection(),t=e.rangeCount?e.getRangeAt(0):null;return t&&!t.collapsed}function j(e){if(Object(l.includes)(["INPUT","TEXTAREA"],e.nodeName))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;var t=window.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;if(!n)return!0;var r=n.startContainer,o=n.endContainer,i=n.startOffset,a=n.endOffset;if(r===e&&o===e&&0===i&&a===e.childNodes.length)return!0;var u=e.lastChild,c=u.nodeType===b?u.data.length:u.childNodes.length;return r===e.firstChild&&o===e.lastChild&&0===i&&a===c}function _(e){if(e){if(e.scrollHeight>e.clientHeight){var t=window.getComputedStyle(e).overflowY;if(/(auto|scroll)/.test(t))return e}return _(e.parentNode)}}function B(e){for(var t;(t=e.parentNode)&&t.nodeType!==C;);return t?"static"!==m(t).position?t:t.offsetParent:null}function M(e,t){F(t,e.parentNode),D(e)}function D(e){e.parentNode.removeChild(e)}function F(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function H(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function U(e,t){for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);return e.parentNode.replaceChild(n,e),n}function z(e,t){t.parentNode.insertBefore(e,t),e.appendChild(t)}n.d(t,"focus",(function(){return X})),n.d(t,"isHorizontalEdge",(function(){return w})),n.d(t,"isVerticalEdge",(function(){return R})),n.d(t,"getRectangleFromRange",(function(){return S})),n.d(t,"computeCaretRect",(function(){return O})),n.d(t,"placeCaretAtHorizontalEdge",(function(){return T})),n.d(t,"placeCaretAtVerticalEdge",(function(){return P})),n.d(t,"isTextField",(function(){return I})),n.d(t,"documentHasSelection",(function(){return x})),n.d(t,"isEntirelySelected",(function(){return j})),n.d(t,"getScrollContainer",(function(){return _})),n.d(t,"getOffsetParent",(function(){return B})),n.d(t,"replace",(function(){return M})),n.d(t,"remove",(function(){return D})),n.d(t,"insertAfter",(function(){return F})),n.d(t,"unwrap",(function(){return H})),n.d(t,"replaceTag",(function(){return U})),n.d(t,"wrap",(function(){return z}));var X={focusable:r,tabbable:o}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/edit-post.js b/wp-includes/js/dist/edit-post.js index f2f0cbef08..01ba32bcb0 100644 --- a/wp-includes/js/dist/edit-post.js +++ b/wp-includes/js/dist/edit-post.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["editPost"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 364); +/******/ return __webpack_require__(__webpack_require__.s = 314); /******/ }) /************************************************************************/ /******/ ({ @@ -123,13 +123,6 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 106: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["mediaUtils"]; }()); - -/***/ }), - /***/ 11: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -151,329 +144,6 @@ function _createClass(Constructor, protoProps, staticProps) { return Constructor; } -/***/ }), - -/***/ 117: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* unused harmony export Fill */ -/* unused harmony export Slot */ -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * Defines as extensibility slot for the Status & Visibility panel. - */ - -/** - * WordPress dependencies - */ - - -var _createSlotFill = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["createSlotFill"])('PluginPostStatusInfo'), - Fill = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; -/** - * Renders a row in the Status & Visibility panel of the Document sidebar. - * It should be noted that this is named and implemented around the function it serves - * and not its location, which may change in future iterations. - * - * @param {Object} props Component properties. - * @param {string} [props.className] An optional class name added to the row. - * - * @example ES5 - * ```js - * // Using ES5 syntax - * var __ = wp.i18n.__; - * var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo; - * - * function MyPluginPostStatusInfo() { - * return wp.element.createElement( - * PluginPostStatusInfo, - * { - * className: 'my-plugin-post-status-info', - * }, - * __( 'My post status info' ) - * ) - * } - * ``` - * - * @example ESNext - * ```jsx - * // Using ESNext syntax - * const { __ } = wp.i18n; - * const { PluginPostStatusInfo } = wp.editPost; - * - * const MyPluginPostStatusInfo = () => ( - * - * { __( 'My post status info' ) } - * - * ); - * ``` - * - * @return {WPElement} The WPElement to be rendered. - */ - - - - -var PluginPostStatusInfo = function PluginPostStatusInfo(_ref) { - var children = _ref.children, - className = _ref.className; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Fill, null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["PanelRow"], { - className: className - }, children)); -}; - -PluginPostStatusInfo.Slot = Slot; -/* harmony default export */ __webpack_exports__["a"] = (PluginPostStatusInfo); - - -/***/ }), - -/***/ 118: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* unused harmony export Fill */ -/* unused harmony export Slot */ -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(52); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _options_modal_options__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53); - - -/** - * Defines as extensibility slot for the Settings sidebar - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var _createSlotFill = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["createSlotFill"])('PluginDocumentSettingPanel'), - Fill = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; - - - -var PluginDocumentSettingFill = function PluginDocumentSettingFill(_ref) { - var isEnabled = _ref.isEnabled, - panelName = _ref.panelName, - opened = _ref.opened, - onToggle = _ref.onToggle, - className = _ref.className, - title = _ref.title, - icon = _ref.icon, - children = _ref.children; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_options_modal_options__WEBPACK_IMPORTED_MODULE_5__[/* EnablePluginDocumentSettingPanelOption */ "d"], { - label: title, - panelName: panelName - }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Fill, null, isEnabled && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["PanelBody"], { - className: className, - title: title, - icon: icon, - opened: opened, - onToggle: onToggle - }, children))); -}; -/** - * Renders items below the Status & Availability panel in the Document Sidebar. - * - * @param {Object} props Component properties. - * @param {string} [props.name] The machine-friendly name for the panel. - * @param {string} [props.className] An optional class name added to the row. - * @param {string} [props.title] The title of the panel - * @param {string|Element} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar. - * - * @example ES5 - * ```js - * // Using ES5 syntax - * var el = wp.element.createElement; - * var __ = wp.i18n.__; - * var registerPlugin = wp.plugins.registerPlugin; - * var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel; - * - * function MyDocumentSettingPlugin() { - * return el( - * PluginDocumentSettingPanel, - * { - * className: 'my-document-setting-plugin', - * title: 'My Panel', - * }, - * __( 'My Document Setting Panel' ) - * ); - * } - * - * registerPlugin( 'my-document-setting-plugin', { - * render: MyDocumentSettingPlugin - * } ); - * ``` - * - * @example ESNext - * ```jsx - * // Using ESNext syntax - * const { registerPlugin } = wp.plugins; - * const { PluginDocumentSettingPanel } = wp.editPost; - * - * const MyDocumentSettingTest = () => ( - * - *

    My Document Setting Panel

    - * - * ); - * - * registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } ); - * ``` - * - * @return {WPElement} The WPElement to be rendered. - */ - - -var PluginDocumentSettingPanel = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["compose"])(Object(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_3__["withPluginContext"])(function (context, ownProps) { - return { - icon: ownProps.icon || context.icon, - panelName: "".concat(context.name, "/").concat(ownProps.name) - }; -}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__["withSelect"])(function (select, _ref2) { - var panelName = _ref2.panelName; - return { - opened: select('core/edit-post').isEditorPanelOpened(panelName), - isEnabled: select('core/edit-post').isEditorPanelEnabled(panelName) - }; -}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__["withDispatch"])(function (dispatch, _ref3) { - var panelName = _ref3.panelName; - return { - onToggle: function onToggle() { - return dispatch('core/edit-post').toggleEditorPanelOpened(panelName); - } - }; -}))(PluginDocumentSettingFill); -PluginDocumentSettingPanel.Slot = Slot; -/* harmony default export */ __webpack_exports__["a"] = (PluginDocumentSettingPanel); - - -/***/ }), - -/***/ 119: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); - - -/** - * WordPress dependencies - */ - - - - -var _createSlotFill = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["createSlotFill"])('PluginPostPublishPanel'), - Fill = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; - -var PluginPostPublishPanelFill = function PluginPostPublishPanelFill(_ref) { - var children = _ref.children, - className = _ref.className, - title = _ref.title, - _ref$initialOpen = _ref.initialOpen, - initialOpen = _ref$initialOpen === void 0 ? false : _ref$initialOpen, - icon = _ref.icon; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Fill, null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["PanelBody"], { - className: className, - initialOpen: initialOpen || !title, - title: title, - icon: icon - }, children)); -}; -/** - * Renders provided content to the post-publish panel in the publish flow - * (side panel that opens after a user publishes the post). - * - * @param {Object} props Component properties. - * @param {string} [props.className] An optional class name added to the panel. - * @param {string} [props.title] Title displayed at the top of the panel. - * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened. - * @param {string|Element} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar. - * - * @example ES5 - * ```js - * // Using ES5 syntax - * var __ = wp.i18n.__; - * var PluginPostPublishPanel = wp.editPost.PluginPostPublishPanel; - * - * function MyPluginPostPublishPanel() { - * return wp.element.createElement( - * PluginPostPublishPanel, - * { - * className: 'my-plugin-post-publish-panel', - * title: __( 'My panel title' ), - * initialOpen: true, - * }, - * __( 'My panel content' ) - * ); - * } - * ``` - * - * @example ESNext - * ```jsx - * // Using ESNext syntax - * const { __ } = wp.i18n; - * const { PluginPostPublishPanel } = wp.editPost; - * - * const MyPluginPostPublishPanel = () => ( - * - * { __( 'My panel content' ) } - * - * ); - * ``` - * - * @return {WPElement} The WPElement to be rendered. - */ - - -var PluginPostPublishPanel = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__["compose"])(Object(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_2__["withPluginContext"])(function (context, ownProps) { - return { - icon: ownProps.icon || context.icon - }; -}))(PluginPostPublishPanelFill); -PluginPostPublishPanel.Slot = Slot; -/* harmony default export */ __webpack_exports__["a"] = (PluginPostPublishPanel); - - /***/ }), /***/ 12: @@ -487,483 +157,6 @@ function _classCallCheck(instance, Constructor) { } } -/***/ }), - -/***/ 120: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(52); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_3__); - - -/** - * WordPress dependencies - */ - - - - -var _createSlotFill = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["createSlotFill"])('PluginPrePublishPanel'), - Fill = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; - -var PluginPrePublishPanelFill = function PluginPrePublishPanelFill(_ref) { - var children = _ref.children, - className = _ref.className, - title = _ref.title, - _ref$initialOpen = _ref.initialOpen, - initialOpen = _ref$initialOpen === void 0 ? false : _ref$initialOpen, - icon = _ref.icon; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Fill, null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["PanelBody"], { - className: className, - initialOpen: initialOpen || !title, - title: title, - icon: icon - }, children)); -}; -/** - * Renders provided content to the pre-publish side panel in the publish flow - * (side panel that opens when a user first pushes "Publish" from the main editor). - * - * @param {Object} props Component props. - * @param {string} [props.className] An optional class name added to the panel. - * @param {string} [props.title] Title displayed at the top of the panel. - * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened. - * @param {string|Element} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar. - - * - * @example ES5 - * ```js - * // Using ES5 syntax - * var __ = wp.i18n.__; - * var PluginPrePublishPanel = wp.editPost.PluginPrePublishPanel; - * - * function MyPluginPrePublishPanel() { - * return wp.element.createElement( - * PluginPrePublishPanel, - * { - * className: 'my-plugin-pre-publish-panel', - * title: __( 'My panel title' ), - * initialOpen: true, - * }, - * __( 'My panel content' ) - * ); - * } - * ``` - * - * @example ESNext - * ```jsx - * // Using ESNext syntax - * const { __ } = wp.i18n; - * const { PluginPrePublishPanel } = wp.editPost; - * - * const MyPluginPrePublishPanel = () => ( - * - * { __( 'My panel content' ) } - * - * ); - * ``` - * - * @return {WPElement} The WPElement to be rendered. - */ - - -var PluginPrePublishPanel = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["compose"])(Object(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_3__["withPluginContext"])(function (context, ownProps) { - return { - icon: ownProps.icon || context.icon - }; -}))(PluginPrePublishPanelFill); -PluginPrePublishPanel.Slot = Slot; -/* harmony default export */ __webpack_exports__["a"] = (PluginPrePublishPanel); - - -/***/ }), - -/***/ 121: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(52); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _plugins_more_menu_group__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(124); - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var PluginMoreMenuItem = function PluginMoreMenuItem(_ref) { - var _ref$onClick = _ref.onClick, - onClick = _ref$onClick === void 0 ? lodash__WEBPACK_IMPORTED_MODULE_3__["noop"] : _ref$onClick, - props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["onClick"]); - - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_plugins_more_menu_group__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], null, function (fillProps) { - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["MenuItem"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, props, { - onClick: Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__["compose"])(onClick, fillProps.onClose) - })); - }); -}; -/** - * Renders a menu item in `Plugins` group in `More Menu` drop down, and can be used to as a button or link depending on the props provided. - * The text within the component appears as the menu item label. - * - * @param {Object} props Component properties. - * @param {string} [props.href] When `href` is provided then the menu item is represented as an anchor rather than button. It corresponds to the `href` attribute of the anchor. - * @param {string|Element} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label. - * @param {Function} [props.onClick=noop] The callback function to be executed when the user clicks the menu item. - * @param {...*} [props.other] Any additional props are passed through to the underlying [MenuItem](/packages/components/src/menu-item/README.md) component. - * - * @example ES5 - * ```js - * // Using ES5 syntax - * var __ = wp.i18n.__; - * var PluginMoreMenuItem = wp.editPost.PluginMoreMenuItem; - * - * function onButtonClick() { - * alert( 'Button clicked.' ); - * } - * - * function MyButtonMoreMenuItem() { - * return wp.element.createElement( - * PluginMoreMenuItem, - * { - * icon: 'smiley', - * onClick: onButtonClick - * }, - * __( 'My button title' ) - * ) - * } - * ``` - * - * @example ESNext - * ```jsx - * // Using ESNext syntax - * const { __ } = wp.i18n; - * const { PluginMoreMenuItem } = wp.editPost; - * - * function onButtonClick() { - * alert( 'Button clicked.' ); - * } - * - * const MyButtonMoreMenuItem = () => ( - * - * { __( 'My button title' ) } - * - * ); - * ``` - * - * @return {WPElement} The element to be rendered. - */ - - -/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__["compose"])(Object(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_6__["withPluginContext"])(function (context, ownProps) { - return { - icon: ownProps.icon || context.icon - }; -}))(PluginMoreMenuItem)); - - -/***/ }), - -/***/ 123: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -var _createSlotFill = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["createSlotFill"])('ToolsMoreMenuGroup'), - ToolsMoreMenuGroup = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; - -ToolsMoreMenuGroup.Slot = function (_ref) { - var fillProps = _ref.fillProps; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Slot, { - fillProps: fillProps - }, function (fills) { - return !Object(lodash__WEBPACK_IMPORTED_MODULE_1__["isEmpty"])(fills) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["MenuGroup"], { - label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Tools') - }, fills); - }); -}; - -/* harmony default export */ __webpack_exports__["a"] = (ToolsMoreMenuGroup); - - -/***/ }), - -/***/ 124: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -var _createSlotFill = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["createSlotFill"])('PluginsMoreMenuGroup'), - PluginsMoreMenuGroup = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; - -PluginsMoreMenuGroup.Slot = function (_ref) { - var fillProps = _ref.fillProps; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Slot, { - fillProps: fillProps - }, function (fills) { - return !Object(lodash__WEBPACK_IMPORTED_MODULE_1__["isEmpty"])(fills) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["MenuGroup"], { - label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Plugins') - }, fills); - }); -}; - -/* harmony default export */ __webpack_exports__["a"] = (PluginsMoreMenuGroup); - - -/***/ }), - -/***/ 125: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -var _createSlotFill = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["createSlotFill"])('PinnedPlugins'), - PinnedPlugins = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; - -PinnedPlugins.Slot = function (props) { - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Slot, props, function (fills) { - return !Object(lodash__WEBPACK_IMPORTED_MODULE_1__["isEmpty"])(fills) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", { - className: "edit-post-pinned-plugins" - }, fills); - }); -}; - -/* harmony default export */ __webpack_exports__["a"] = (PinnedPlugins); - - -/***/ }), - -/***/ 126: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__); - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -var _createSlotFill = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["createSlotFill"])('PluginBlockSettingsMenuGroup'), - PluginBlockSettingsMenuGroup = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; - -var PluginBlockSettingsMenuGroupSlot = function PluginBlockSettingsMenuGroupSlot(_ref) { - var fillProps = _ref.fillProps, - selectedBlocks = _ref.selectedBlocks; - selectedBlocks = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["map"])(selectedBlocks, function (block) { - return block.name; - }); - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(Slot, { - fillProps: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, fillProps, { - selectedBlocks: selectedBlocks - }) - }, function (fills) { - return !Object(lodash__WEBPACK_IMPORTED_MODULE_2__["isEmpty"])(fills) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", { - className: "editor-block-settings-menu__separator block-editor-block-settings-menu__separator" - }), fills); - }); -}; - -PluginBlockSettingsMenuGroup.Slot = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__["withSelect"])(function (select, _ref2) { - var clientIds = _ref2.fillProps.clientIds; - return { - selectedBlocks: select('core/block-editor').getBlocksByClientId(clientIds) - }; -})(PluginBlockSettingsMenuGroupSlot); -/* harmony default export */ __webpack_exports__["a"] = (PluginBlockSettingsMenuGroup); - - -/***/ }), - -/***/ 127: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _keyboard_shortcuts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65); - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -var SidebarHeader = function SidebarHeader(_ref) { - var children = _ref.children, - className = _ref.className, - closeLabel = _ref.closeLabel, - closeSidebar = _ref.closeSidebar, - title = _ref.title; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", { - className: "components-panel__header edit-post-sidebar-header__small" - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", { - className: "edit-post-sidebar-header__title" - }, title || Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('(no title)')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["IconButton"], { - onClick: closeSidebar, - icon: "no-alt", - label: closeLabel - })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", { - className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('components-panel__header edit-post-sidebar-header', className) - }, children, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["IconButton"], { - onClick: closeSidebar, - icon: "no-alt", - label: closeLabel, - shortcut: _keyboard_shortcuts__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].toggleSidebar - }))); -}; - -/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["compose"])(Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["withSelect"])(function (select) { - return { - title: select('core/editor').getEditedPostAttribute('title') - }; -}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["withDispatch"])(function (dispatch) { - return { - closeSidebar: dispatch('core/edit-post').closeGeneralSidebar - }; -}))(SidebarHeader)); - - /***/ }), /***/ 13: @@ -985,6 +178,13 @@ function _possibleConstructorReturn(self, call) { /***/ }), +/***/ 134: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["notices"]; }()); + +/***/ }), + /***/ 14: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -1033,13 +233,6 @@ function _inherits(subClass, superClass) { /***/ }), -/***/ 157: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["notices"]; }()); - -/***/ }), - /***/ 16: /***/ (function(module, exports, __webpack_require__) { @@ -1098,30 +291,1839 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), -/***/ 161: +/***/ 17: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { + arr2[i] = arr[i]; + } + + return arr2; + } +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js +var iterableToArray = __webpack_require__(30); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance"); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); + + + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread(); +} + +/***/ }), + +/***/ 18: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} + +/***/ }), + +/***/ 19: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["keycodes"]; }()); + +/***/ }), + +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); + +/***/ }), + +/***/ 208: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["blockLibrary"]; }()); /***/ }), -/***/ 163: +/***/ 21: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); + +function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = _objectWithoutPropertiesLoose(source, excluded); + var key, i; + + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + + return target; +} + +/***/ }), + +/***/ 23: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +var arrayWithHoles = __webpack_require__(38); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +function _iterableToArrayLimit(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +var nonIterableRest = __webpack_require__(39); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); + + + +function _slicedToArray(arr, i) { + return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])(); +} + +/***/ }), + +/***/ 24: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["editor"]; }()); + +/***/ }), + +/***/ 26: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["url"]; }()); + +/***/ }), + +/***/ 27: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["hooks"]; }()); + +/***/ }), + +/***/ 3: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["components"]; }()); + +/***/ }), + +/***/ 30: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); +} + +/***/ }), + +/***/ 31: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); +function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); } + +function _typeof(obj) { + if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") { + _typeof = function _typeof(obj) { + return _typeof2(obj); + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj); + }; + } + + return _typeof(obj); +} + +/***/ }), + +/***/ 314: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +var actions_namespaceObject = {}; +__webpack_require__.r(actions_namespaceObject); +__webpack_require__.d(actions_namespaceObject, "openGeneralSidebar", function() { return actions_openGeneralSidebar; }); +__webpack_require__.d(actions_namespaceObject, "closeGeneralSidebar", function() { return actions_closeGeneralSidebar; }); +__webpack_require__.d(actions_namespaceObject, "openModal", function() { return actions_openModal; }); +__webpack_require__.d(actions_namespaceObject, "closeModal", function() { return actions_closeModal; }); +__webpack_require__.d(actions_namespaceObject, "openPublishSidebar", function() { return openPublishSidebar; }); +__webpack_require__.d(actions_namespaceObject, "closePublishSidebar", function() { return actions_closePublishSidebar; }); +__webpack_require__.d(actions_namespaceObject, "togglePublishSidebar", function() { return actions_togglePublishSidebar; }); +__webpack_require__.d(actions_namespaceObject, "toggleEditorPanelEnabled", function() { return toggleEditorPanelEnabled; }); +__webpack_require__.d(actions_namespaceObject, "toggleEditorPanelOpened", function() { return actions_toggleEditorPanelOpened; }); +__webpack_require__.d(actions_namespaceObject, "removeEditorPanel", function() { return removeEditorPanel; }); +__webpack_require__.d(actions_namespaceObject, "toggleFeature", function() { return toggleFeature; }); +__webpack_require__.d(actions_namespaceObject, "switchEditorMode", function() { return switchEditorMode; }); +__webpack_require__.d(actions_namespaceObject, "togglePinnedPluginItem", function() { return togglePinnedPluginItem; }); +__webpack_require__.d(actions_namespaceObject, "hideBlockTypes", function() { return actions_hideBlockTypes; }); +__webpack_require__.d(actions_namespaceObject, "updatePreferredStyleVariations", function() { return actions_updatePreferredStyleVariations; }); +__webpack_require__.d(actions_namespaceObject, "__experimentalUpdateLocalAutosaveInterval", function() { return __experimentalUpdateLocalAutosaveInterval; }); +__webpack_require__.d(actions_namespaceObject, "showBlockTypes", function() { return actions_showBlockTypes; }); +__webpack_require__.d(actions_namespaceObject, "setAvailableMetaBoxesPerLocation", function() { return setAvailableMetaBoxesPerLocation; }); +__webpack_require__.d(actions_namespaceObject, "requestMetaBoxUpdates", function() { return requestMetaBoxUpdates; }); +__webpack_require__.d(actions_namespaceObject, "metaBoxUpdatesSuccess", function() { return metaBoxUpdatesSuccess; }); +var selectors_namespaceObject = {}; +__webpack_require__.r(selectors_namespaceObject); +__webpack_require__.d(selectors_namespaceObject, "getEditorMode", function() { return getEditorMode; }); +__webpack_require__.d(selectors_namespaceObject, "isEditorSidebarOpened", function() { return selectors_isEditorSidebarOpened; }); +__webpack_require__.d(selectors_namespaceObject, "isPluginSidebarOpened", function() { return isPluginSidebarOpened; }); +__webpack_require__.d(selectors_namespaceObject, "getActiveGeneralSidebarName", function() { return getActiveGeneralSidebarName; }); +__webpack_require__.d(selectors_namespaceObject, "getPreferences", function() { return getPreferences; }); +__webpack_require__.d(selectors_namespaceObject, "getPreference", function() { return selectors_getPreference; }); +__webpack_require__.d(selectors_namespaceObject, "isPublishSidebarOpened", function() { return selectors_isPublishSidebarOpened; }); +__webpack_require__.d(selectors_namespaceObject, "isEditorPanelRemoved", function() { return isEditorPanelRemoved; }); +__webpack_require__.d(selectors_namespaceObject, "isEditorPanelEnabled", function() { return selectors_isEditorPanelEnabled; }); +__webpack_require__.d(selectors_namespaceObject, "isEditorPanelOpened", function() { return selectors_isEditorPanelOpened; }); +__webpack_require__.d(selectors_namespaceObject, "isModalActive", function() { return selectors_isModalActive; }); +__webpack_require__.d(selectors_namespaceObject, "isFeatureActive", function() { return isFeatureActive; }); +__webpack_require__.d(selectors_namespaceObject, "isPluginItemPinned", function() { return isPluginItemPinned; }); +__webpack_require__.d(selectors_namespaceObject, "getActiveMetaBoxLocations", function() { return getActiveMetaBoxLocations; }); +__webpack_require__.d(selectors_namespaceObject, "isMetaBoxLocationVisible", function() { return isMetaBoxLocationVisible; }); +__webpack_require__.d(selectors_namespaceObject, "isMetaBoxLocationActive", function() { return isMetaBoxLocationActive; }); +__webpack_require__.d(selectors_namespaceObject, "getMetaBoxesPerLocation", function() { return getMetaBoxesPerLocation; }); +__webpack_require__.d(selectors_namespaceObject, "getAllMetaBoxes", function() { return getAllMetaBoxes; }); +__webpack_require__.d(selectors_namespaceObject, "hasMetaBoxes", function() { return hasMetaBoxes; }); +__webpack_require__.d(selectors_namespaceObject, "isSavingMetaBoxes", function() { return selectors_isSavingMetaBoxes; }); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","coreData"]} +var external_this_wp_coreData_ = __webpack_require__(86); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(6); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(24); + +// EXTERNAL MODULE: external {"this":["wp","nux"]} +var external_this_wp_nux_ = __webpack_require__(58); + +// EXTERNAL MODULE: external {"this":["wp","viewport"]} +var external_this_wp_viewport_ = __webpack_require__(42); + +// EXTERNAL MODULE: external {"this":["wp","notices"]} +var external_this_wp_notices_ = __webpack_require__(134); + +// EXTERNAL MODULE: external {"this":["wp","blockLibrary"]} +var external_this_wp_blockLibrary_ = __webpack_require__(208); + +// EXTERNAL MODULE: external {"this":["wp","hooks"]} +var external_this_wp_hooks_ = __webpack_require__(27); + +// EXTERNAL MODULE: external {"this":["wp","mediaUtils"]} +var external_this_wp_mediaUtils_ = __webpack_require__(95); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/components/index.js +/** + * WordPress dependencies + */ + + + +var components_replaceMediaUpload = function replaceMediaUpload() { + return external_this_wp_mediaUtils_["MediaUpload"]; +}; + +Object(external_this_wp_hooks_["addFilter"])('editor.MediaUpload', 'core/edit-post/replace-media-upload', components_replaceMediaUpload); + // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(18); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules var objectWithoutProperties = __webpack_require__(21); +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(9); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(8); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/validate-multiple-use/index.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +var enhance = Object(external_this_wp_compose_["compose"])( +/** + * For blocks whose block type doesn't support `multiple`, provides the + * wrapped component with `originalBlockClientId` -- a reference to the + * first block of the same type in the content -- if and only if that + * "original" block is not the current one. Thus, an inexisting + * `originalBlockClientId` prop signals that the block is valid. + * + * @param {Component} WrappedBlockEdit A filtered BlockEdit instance. + * + * @return {Component} Enhanced component with merged state data props. + */ +Object(external_this_wp_data_["withSelect"])(function (select, block) { + var multiple = Object(external_this_wp_blocks_["hasBlockSupport"])(block.name, 'multiple', true); // For block types with `multiple` support, there is no "original + // block" to be found in the content, as the block itself is valid. + + if (multiple) { + return {}; + } // Otherwise, only pass `originalBlockClientId` if it refers to a different + // block from the current one. + + + var blocks = select('core/block-editor').getBlocks(); + var firstOfSameType = Object(external_lodash_["find"])(blocks, function (_ref) { + var name = _ref.name; + return block.name === name; + }); + var isInvalid = firstOfSameType && firstOfSameType.clientId !== block.clientId; + return { + originalBlockClientId: isInvalid && firstOfSameType.clientId + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { + var originalBlockClientId = _ref2.originalBlockClientId; + return { + selectFirst: function selectFirst() { + return dispatch('core/block-editor').selectBlock(originalBlockClientId); + } + }; +})); +var withMultipleValidation = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { + return enhance(function (_ref3) { + var originalBlockClientId = _ref3.originalBlockClientId, + selectFirst = _ref3.selectFirst, + props = Object(objectWithoutProperties["a" /* default */])(_ref3, ["originalBlockClientId", "selectFirst"]); + + if (!originalBlockClientId) { + return Object(external_this_wp_element_["createElement"])(BlockEdit, props); + } + + var blockType = Object(external_this_wp_blocks_["getBlockType"])(props.name); + var outboundType = getOutboundType(props.name); + return [Object(external_this_wp_element_["createElement"])("div", { + key: "invalid-preview", + style: { + minHeight: '60px' + } + }, Object(external_this_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({ + key: "block-edit" + }, props))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Warning"], { + key: "multiple-use-warning", + actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: "find-original", + isLarge: true, + onClick: selectFirst + }, Object(external_this_wp_i18n_["__"])('Find original')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: "remove", + isLarge: true, + onClick: function onClick() { + return props.onReplace([]); + } + }, Object(external_this_wp_i18n_["__"])('Remove')), outboundType && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: "transform", + isLarge: true, + onClick: function onClick() { + return props.onReplace(Object(external_this_wp_blocks_["createBlock"])(outboundType.name, props.attributes)); + } + }, Object(external_this_wp_i18n_["__"])('Transform into:'), ' ', outboundType.title)] + }, Object(external_this_wp_element_["createElement"])("strong", null, blockType.title, ": "), Object(external_this_wp_i18n_["__"])('This block can only be used once.'))]; + }); +}, 'withMultipleValidation'); +/** + * Given a base block name, returns the default block type to which to offer + * transforms. + * + * @param {string} blockName Base block name. + * + * @return {?Object} The chosen default block type. + */ + +function getOutboundType(blockName) { + // Grab the first outbound transform + var transform = Object(external_this_wp_blocks_["findTransform"])(Object(external_this_wp_blocks_["getBlockTransforms"])('to', blockName), function (_ref4) { + var type = _ref4.type, + blocks = _ref4.blocks; + return type === 'block' && blocks.length === 1; + } // What about when .length > 1? + ); + + if (!transform) { + return null; + } + + return Object(external_this_wp_blocks_["getBlockType"])(transform.blocks[0]); +} + +Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-post/validate-multiple-use/with-multiple-validation', withMultipleValidation); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/index.js +/** + * Internal dependencies + */ + + + +// EXTERNAL MODULE: external {"this":["wp","plugins"]} +var external_this_wp_plugins_ = __webpack_require__(51); + +// EXTERNAL MODULE: external {"this":["wp","url"]} +var external_this_wp_url_ = __webpack_require__(26); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js + + +/** + * WordPress dependencies + */ + + + + + +function CopyContentMenuItem(_ref) { + var createNotice = _ref.createNotice, + editedPostContent = _ref.editedPostContent, + hasCopied = _ref.hasCopied, + setState = _ref.setState; + return editedPostContent.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { + text: editedPostContent, + role: "menuitem", + className: "components-menu-item__button", + onCopy: function onCopy() { + setState({ + hasCopied: true + }); + createNotice('info', 'All content copied.', { + isDismissible: true, + type: 'snackbar' + }); + }, + onFinishCopy: function onFinishCopy() { + return setState({ + hasCopied: false + }); + } + }, hasCopied ? Object(external_this_wp_i18n_["__"])('Copied!') : Object(external_this_wp_i18n_["__"])('Copy All Content')); +} + +/* harmony default export */ var copy_content_menu_item = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { + return { + editedPostContent: select('core/editor').getEditedPostAttribute('content') + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/notices'), + createNotice = _dispatch.createNotice; + + return { + createNotice: createNotice + }; +}), Object(external_this_wp_compose_["withState"])({ + hasCopied: false +}))(CopyContentMenuItem)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/manage-blocks-menu-item/index.js + + +/** + * WordPress dependencies + */ + + + +function ManageBlocksMenuItem(_ref) { + var openModal = _ref.openModal; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: function onClick() { + openModal('edit-post/manage-blocks'); + } + }, Object(external_this_wp_i18n_["__"])('Block Manager')); +} +/* harmony default export */ var manage_blocks_menu_item = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/edit-post'), + openModal = _dispatch.openModal; + + return { + openModal: openModal + }; +})(ManageBlocksMenuItem)); + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(19); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js + + +/** + * WordPress dependencies + */ + + + + +function KeyboardShortcutsHelpMenuItem(_ref) { + var openModal = _ref.openModal; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: function onClick() { + openModal('edit-post/keyboard-shortcut-help'); + }, + shortcut: external_this_wp_keycodes_["displayShortcut"].access('h') + }, Object(external_this_wp_i18n_["__"])('Keyboard Shortcuts')); +} +/* harmony default export */ var keyboard_shortcuts_help_menu_item = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/edit-post'), + openModal = _dispatch.openModal; + + return { + openModal: openModal + }; +})(KeyboardShortcutsHelpMenuItem)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var _createSlotFill = Object(external_this_wp_components_["createSlotFill"])('ToolsMoreMenuGroup'), + ToolsMoreMenuGroup = _createSlotFill.Fill, + Slot = _createSlotFill.Slot; + +ToolsMoreMenuGroup.Slot = function (_ref) { + var fillProps = _ref.fillProps; + return Object(external_this_wp_element_["createElement"])(Slot, { + fillProps: fillProps + }, function (fills) { + return !Object(external_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], { + label: Object(external_this_wp_i18n_["__"])('Tools') + }, fills); + }); +}; + +/* harmony default export */ var tools_more_menu_group = (ToolsMoreMenuGroup); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/index.js + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + + +Object(external_this_wp_plugins_["registerPlugin"])('edit-post', { + render: function render() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(tools_more_menu_group, null, function (_ref) { + var onClose = _ref.onClose; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(manage_blocks_menu_item, { + onSelect: onClose + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + role: "menuitem", + href: Object(external_this_wp_url_["addQueryArgs"])('edit.php', { + post_type: 'wp_block' + }) + }, Object(external_this_wp_i18n_["__"])('Manage All Reusable Blocks')), Object(external_this_wp_element_["createElement"])(keyboard_shortcuts_help_menu_item, { + onSelect: onClose + }), Object(external_this_wp_element_["createElement"])(copy_content_menu_item, null)); + })); + } +}); + // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules var toConsumableArray = __webpack_require__(17); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(10); + // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js var objectSpread = __webpack_require__(7); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/defaults.js +var PREFERENCES_DEFAULTS = { + editorMode: 'visual', + isGeneralSidebarDismissed: false, + panels: { + 'post-status': { + opened: true + } + }, + features: { + fixedToolbar: false, + showInserterHelpPanel: true + }, + pinnedPluginItems: {}, + hiddenBlockTypes: [], + preferredStyleVariations: {}, + localAutosaveInterval: 15 +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/reducer.js + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +/** + * The default active general sidebar: The "Document" tab. + * + * @type {string} + */ + +var DEFAULT_ACTIVE_GENERAL_SIDEBAR = 'edit-post/document'; +/** + * Higher-order reducer creator which provides the given initial state for the + * original reducer. + * + * @param {*} initialState Initial state to provide to reducer. + * + * @return {Function} Higher-order reducer. + */ + +var createWithInitialState = function createWithInitialState(initialState) { + return function (reducer) { + return function () { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState; + var action = arguments.length > 1 ? arguments[1] : undefined; + return reducer(state, action); + }; + }; +}; +/** + * Reducer returning the user preferences. + * + * @param {Object} state Current state. + * @param {string} state.mode Current editor mode, either + * "visual" or "text". + * @param {boolean} state.isGeneralSidebarDismissed Whether general sidebar is + * dismissed. False by default + * or when closing general + * sidebar, true when opening + * sidebar. + * @param {boolean} state.isSidebarOpened Whether the sidebar is + * opened or closed. + * @param {Object} state.panels The state of the different + * sidebar panels. + * @param {Object} action Dispatched action. + * + * @return {Object} Updated state. + */ + + +var preferences = Object(external_lodash_["flow"])([external_this_wp_data_["combineReducers"], createWithInitialState(PREFERENCES_DEFAULTS)])({ + isGeneralSidebarDismissed: function isGeneralSidebarDismissed(state, action) { + switch (action.type) { + case 'OPEN_GENERAL_SIDEBAR': + case 'CLOSE_GENERAL_SIDEBAR': + return action.type === 'CLOSE_GENERAL_SIDEBAR'; + } + + return state; + }, + panels: function panels(state, action) { + switch (action.type) { + case 'TOGGLE_PANEL_ENABLED': + { + var panelName = action.panelName; + return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, panelName, Object(objectSpread["a" /* default */])({}, state[panelName], { + enabled: !Object(external_lodash_["get"])(state, [panelName, 'enabled'], true) + }))); + } + + case 'TOGGLE_PANEL_OPENED': + { + var _panelName = action.panelName; + var isOpen = state[_panelName] === true || Object(external_lodash_["get"])(state, [_panelName, 'opened'], false); + return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, _panelName, Object(objectSpread["a" /* default */])({}, state[_panelName], { + opened: !isOpen + }))); + } + } + + return state; + }, + features: function features(state, action) { + if (action.type === 'TOGGLE_FEATURE') { + return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.feature, !state[action.feature])); + } + + return state; + }, + editorMode: function editorMode(state, action) { + if (action.type === 'SWITCH_MODE') { + return action.mode; + } + + return state; + }, + pinnedPluginItems: function pinnedPluginItems(state, action) { + if (action.type === 'TOGGLE_PINNED_PLUGIN_ITEM') { + return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.pluginName, !Object(external_lodash_["get"])(state, [action.pluginName], true))); + } + + return state; + }, + hiddenBlockTypes: function hiddenBlockTypes(state, action) { + switch (action.type) { + case 'SHOW_BLOCK_TYPES': + return external_lodash_["without"].apply(void 0, [state].concat(Object(toConsumableArray["a" /* default */])(action.blockNames))); + + case 'HIDE_BLOCK_TYPES': + return Object(external_lodash_["union"])(state, action.blockNames); + } + + return state; + }, + preferredStyleVariations: function preferredStyleVariations(state, action) { + switch (action.type) { + case 'UPDATE_PREFERRED_STYLE_VARIATIONS': + { + if (!action.blockName) { + return state; + } + + if (!action.blockStyle) { + return Object(external_lodash_["omit"])(state, [action.blockName]); + } + + return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.blockName, action.blockStyle)); + } + } + + return state; + }, + localAutosaveInterval: function localAutosaveInterval(state, action) { + switch (action.type) { + case 'UPDATE_LOCAL_AUTOSAVE_INTERVAL': + return action.interval; + } + + return state; + } +}); +/** + * Reducer storing the list of all programmatically removed panels. + * + * @param {Array} state Current state. + * @param {Object} action Action object. + * + * @return {Array} Updated state. + */ + +function removedPanels() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'REMOVE_PANEL': + if (!Object(external_lodash_["includes"])(state, action.panelName)) { + return [].concat(Object(toConsumableArray["a" /* default */])(state), [action.panelName]); + } + + } + + return state; +} +/** + * Reducer returning the next active general sidebar state. The active general + * sidebar is a unique name to identify either an editor or plugin sidebar. + * + * @param {?string} state Current state. + * @param {Object} action Action object. + * + * @return {?string} Updated state. + */ + +function reducer_activeGeneralSidebar() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_ACTIVE_GENERAL_SIDEBAR; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'OPEN_GENERAL_SIDEBAR': + return action.name; + } + + return state; +} +/** + * Reducer for storing the name of the open modal, or null if no modal is open. + * + * @param {Object} state Previous state. + * @param {Object} action Action object containing the `name` of the modal + * + * @return {Object} Updated state + */ + +function activeModal() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'OPEN_MODAL': + return action.name; + + case 'CLOSE_MODAL': + return null; + } + + return state; +} +function publishSidebarActive() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'OPEN_PUBLISH_SIDEBAR': + return true; + + case 'CLOSE_PUBLISH_SIDEBAR': + return false; + + case 'TOGGLE_PUBLISH_SIDEBAR': + return !state; + } + + return state; +} +/** + * Reducer keeping track of the meta boxes isSaving state. + * A "true" value means the meta boxes saving request is in-flight. + * + * + * @param {boolean} state Previous state. + * @param {Object} action Action Object. + * + * @return {Object} Updated state. + */ + +function isSavingMetaBoxes() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'REQUEST_META_BOX_UPDATES': + return true; + + case 'META_BOX_UPDATES_SUCCESS': + return false; + + default: + return state; + } +} +/** + * Reducer keeping track of the meta boxes per location. + * + * @param {boolean} state Previous state. + * @param {Object} action Action Object. + * + * @return {Object} Updated state. + */ + +function metaBoxLocations() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'SET_META_BOXES_PER_LOCATIONS': + return action.metaBoxesPerLocation; + } + + return state; +} +var reducer_metaBoxes = Object(external_this_wp_data_["combineReducers"])({ + isSaving: isSavingMetaBoxes, + locations: metaBoxLocations +}); +/* harmony default export */ var reducer = (Object(external_this_wp_data_["combineReducers"])({ + activeGeneralSidebar: reducer_activeGeneralSidebar, + activeModal: activeModal, + metaBoxes: reducer_metaBoxes, + preferences: preferences, + publishSidebarActive: publishSidebarActive, + removedPanels: removedPanels +})); + +// EXTERNAL MODULE: ./node_modules/refx/refx.js +var refx = __webpack_require__(69); +var refx_default = /*#__PURE__*/__webpack_require__.n(refx); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(23); + +// EXTERNAL MODULE: external {"this":["wp","a11y"]} +var external_this_wp_a11y_ = __webpack_require__(45); + +// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} +var external_this_wp_apiFetch_ = __webpack_require__(32); +var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js +/** + * External dependencies + */ + +/** + * Returns an action object used in signalling that the user opened an editor sidebar. + * + * @param {string} name Sidebar name to be opened. + * + * @return {Object} Action object. + */ + +function actions_openGeneralSidebar(name) { + return { + type: 'OPEN_GENERAL_SIDEBAR', + name: name + }; +} +/** + * Returns an action object signalling that the user closed the sidebar. + * + * @return {Object} Action object. + */ + +function actions_closeGeneralSidebar() { + return { + type: 'CLOSE_GENERAL_SIDEBAR' + }; +} +/** + * Returns an action object used in signalling that the user opened a modal. + * + * @param {string} name A string that uniquely identifies the modal. + * + * @return {Object} Action object. + */ + +function actions_openModal(name) { + return { + type: 'OPEN_MODAL', + name: name + }; +} +/** + * Returns an action object signalling that the user closed a modal. + * + * @return {Object} Action object. + */ + +function actions_closeModal() { + return { + type: 'CLOSE_MODAL' + }; +} +/** + * Returns an action object used in signalling that the user opened the publish + * sidebar. + * + * @return {Object} Action object + */ + +function openPublishSidebar() { + return { + type: 'OPEN_PUBLISH_SIDEBAR' + }; +} +/** + * Returns an action object used in signalling that the user closed the + * publish sidebar. + * + * @return {Object} Action object. + */ + +function actions_closePublishSidebar() { + return { + type: 'CLOSE_PUBLISH_SIDEBAR' + }; +} +/** + * Returns an action object used in signalling that the user toggles the publish sidebar. + * + * @return {Object} Action object + */ + +function actions_togglePublishSidebar() { + return { + type: 'TOGGLE_PUBLISH_SIDEBAR' + }; +} +/** + * Returns an action object used to enable or disable a panel in the editor. + * + * @param {string} panelName A string that identifies the panel to enable or disable. + * + * @return {Object} Action object. + */ + +function toggleEditorPanelEnabled(panelName) { + return { + type: 'TOGGLE_PANEL_ENABLED', + panelName: panelName + }; +} +/** + * Returns an action object used to open or close a panel in the editor. + * + * @param {string} panelName A string that identifies the panel to open or close. + * + * @return {Object} Action object. + */ + +function actions_toggleEditorPanelOpened(panelName) { + return { + type: 'TOGGLE_PANEL_OPENED', + panelName: panelName + }; +} +/** + * Returns an action object used to remove a panel from the editor. + * + * @param {string} panelName A string that identifies the panel to remove. + * + * @return {Object} Action object. + */ + +function removeEditorPanel(panelName) { + return { + type: 'REMOVE_PANEL', + panelName: panelName + }; +} +/** + * Returns an action object used to toggle a feature flag. + * + * @param {string} feature Feature name. + * + * @return {Object} Action object. + */ + +function toggleFeature(feature) { + return { + type: 'TOGGLE_FEATURE', + feature: feature + }; +} +function switchEditorMode(mode) { + return { + type: 'SWITCH_MODE', + mode: mode + }; +} +/** + * Returns an action object used to toggle a plugin name flag. + * + * @param {string} pluginName Plugin name. + * + * @return {Object} Action object. + */ + +function togglePinnedPluginItem(pluginName) { + return { + type: 'TOGGLE_PINNED_PLUGIN_ITEM', + pluginName: pluginName + }; +} +/** + * Returns an action object used in signalling that block types by the given + * name(s) should be hidden. + * + * @param {string[]} blockNames Names of block types to hide. + * + * @return {Object} Action object. + */ + +function actions_hideBlockTypes(blockNames) { + return { + type: 'HIDE_BLOCK_TYPES', + blockNames: Object(external_lodash_["castArray"])(blockNames) + }; +} +/** + * Returns an action object used in signaling that a style should be auto-applied when a block is created. + * + * @param {string} blockName Name of the block. + * @param {?string} blockStyle Name of the style that should be auto applied. If undefined, the "auto apply" setting of the block is removed. + * + * @return {Object} Action object. + */ + +function actions_updatePreferredStyleVariations(blockName, blockStyle) { + return { + type: 'UPDATE_PREFERRED_STYLE_VARIATIONS', + blockName: blockName, + blockStyle: blockStyle + }; +} +function __experimentalUpdateLocalAutosaveInterval(interval) { + return { + type: 'UPDATE_LOCAL_AUTOSAVE_INTERVAL', + interval: interval + }; +} +/** + * Returns an action object used in signalling that block types by the given + * name(s) should be shown. + * + * @param {string[]} blockNames Names of block types to show. + * + * @return {Object} Action object. + */ + +function actions_showBlockTypes(blockNames) { + return { + type: 'SHOW_BLOCK_TYPES', + blockNames: Object(external_lodash_["castArray"])(blockNames) + }; +} +/** + * Returns an action object used in signaling + * what Meta boxes are available in which location. + * + * @param {Object} metaBoxesPerLocation Meta boxes per location. + * + * @return {Object} Action object. + */ + +function setAvailableMetaBoxesPerLocation(metaBoxesPerLocation) { + return { + type: 'SET_META_BOXES_PER_LOCATIONS', + metaBoxesPerLocation: metaBoxesPerLocation + }; +} +/** + * Returns an action object used to request meta box update. + * + * @return {Object} Action object. + */ + +function requestMetaBoxUpdates() { + return { + type: 'REQUEST_META_BOX_UPDATES' + }; +} +/** + * Returns an action object used signal a successful meta box update. + * + * @return {Object} Action object. + */ + +function metaBoxUpdatesSuccess() { + return { + type: 'META_BOX_UPDATES_SUCCESS' + }; +} + +// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js +var rememo = __webpack_require__(36); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js +/** + * External dependencies + */ + + +/** + * Returns the current editing mode. + * + * @param {Object} state Global application state. + * + * @return {string} Editing mode. + */ + +function getEditorMode(state) { + return selectors_getPreference(state, 'editorMode', 'visual'); +} +/** + * Returns true if the editor sidebar is opened. + * + * @param {Object} state Global application state + * + * @return {boolean} Whether the editor sidebar is opened. + */ + +function selectors_isEditorSidebarOpened(state) { + var activeGeneralSidebar = getActiveGeneralSidebarName(state); + return Object(external_lodash_["includes"])(['edit-post/document', 'edit-post/block'], activeGeneralSidebar); +} +/** + * Returns true if the plugin sidebar is opened. + * + * @param {Object} state Global application state + * @return {boolean} Whether the plugin sidebar is opened. + */ + +function isPluginSidebarOpened(state) { + var activeGeneralSidebar = getActiveGeneralSidebarName(state); + return !!activeGeneralSidebar && !selectors_isEditorSidebarOpened(state); +} +/** + * Returns the current active general sidebar name, or null if there is no + * general sidebar active. The active general sidebar is a unique name to + * identify either an editor or plugin sidebar. + * + * Examples: + * + * - `edit-post/document` + * - `my-plugin/insert-image-sidebar` + * + * @param {Object} state Global application state. + * + * @return {?string} Active general sidebar name. + */ + +function getActiveGeneralSidebarName(state) { + // Dismissal takes precedent. + var isDismissed = selectors_getPreference(state, 'isGeneralSidebarDismissed', false); + + if (isDismissed) { + return null; + } + + return state.activeGeneralSidebar; +} +/** + * Returns the preferences (these preferences are persisted locally). + * + * @param {Object} state Global application state. + * + * @return {Object} Preferences Object. + */ + +function getPreferences(state) { + return state.preferences; +} +/** + * + * @param {Object} state Global application state. + * @param {string} preferenceKey Preference Key. + * @param {Mixed} defaultValue Default Value. + * + * @return {Mixed} Preference Value. + */ + +function selectors_getPreference(state, preferenceKey, defaultValue) { + var preferences = getPreferences(state); + var value = preferences[preferenceKey]; + return value === undefined ? defaultValue : value; +} +/** + * Returns true if the publish sidebar is opened. + * + * @param {Object} state Global application state + * + * @return {boolean} Whether the publish sidebar is open. + */ + +function selectors_isPublishSidebarOpened(state) { + return state.publishSidebarActive; +} +/** + * Returns true if the given panel was programmatically removed, or false otherwise. + * All panels are not removed by default. + * + * @param {Object} state Global application state. + * @param {string} panelName A string that identifies the panel. + * + * @return {boolean} Whether or not the panel is removed. + */ + +function isEditorPanelRemoved(state, panelName) { + return Object(external_lodash_["includes"])(state.removedPanels, panelName); +} +/** + * Returns true if the given panel is enabled, or false otherwise. Panels are + * enabled by default. + * + * @param {Object} state Global application state. + * @param {string} panelName A string that identifies the panel. + * + * @return {boolean} Whether or not the panel is enabled. + */ + +function selectors_isEditorPanelEnabled(state, panelName) { + var panels = selectors_getPreference(state, 'panels'); + return !isEditorPanelRemoved(state, panelName) && Object(external_lodash_["get"])(panels, [panelName, 'enabled'], true); +} +/** + * Returns true if the given panel is open, or false otherwise. Panels are + * closed by default. + * + * @param {Object} state Global application state. + * @param {string} panelName A string that identifies the panel. + * + * @return {boolean} Whether or not the panel is open. + */ + +function selectors_isEditorPanelOpened(state, panelName) { + var panels = selectors_getPreference(state, 'panels'); + return Object(external_lodash_["get"])(panels, [panelName]) === true || Object(external_lodash_["get"])(panels, [panelName, 'opened']) === true; +} +/** + * Returns true if a modal is active, or false otherwise. + * + * @param {Object} state Global application state. + * @param {string} modalName A string that uniquely identifies the modal. + * + * @return {boolean} Whether the modal is active. + */ + +function selectors_isModalActive(state, modalName) { + return state.activeModal === modalName; +} +/** + * Returns whether the given feature is enabled or not. + * + * @param {Object} state Global application state. + * @param {string} feature Feature slug. + * + * @return {boolean} Is active. + */ + +function isFeatureActive(state, feature) { + return Object(external_lodash_["get"])(state.preferences.features, [feature], false); +} +/** + * Returns true if the plugin item is pinned to the header. + * When the value is not set it defaults to true. + * + * @param {Object} state Global application state. + * @param {string} pluginName Plugin item name. + * + * @return {boolean} Whether the plugin item is pinned. + */ + +function isPluginItemPinned(state, pluginName) { + var pinnedPluginItems = selectors_getPreference(state, 'pinnedPluginItems', {}); + return Object(external_lodash_["get"])(pinnedPluginItems, [pluginName], true); +} +/** + * Returns an array of active meta box locations. + * + * @param {Object} state Post editor state. + * + * @return {string[]} Active meta box locations. + */ + +var getActiveMetaBoxLocations = Object(rememo["a" /* default */])(function (state) { + return Object.keys(state.metaBoxes.locations).filter(function (location) { + return isMetaBoxLocationActive(state, location); + }); +}, function (state) { + return [state.metaBoxes.locations]; +}); +/** + * Returns true if a metabox location is active and visible + * + * @param {Object} state Post editor state. + * @param {string} location Meta box location to test. + * + * @return {boolean} Whether the meta box location is active and visible. + */ + +function isMetaBoxLocationVisible(state, location) { + return isMetaBoxLocationActive(state, location) && Object(external_lodash_["some"])(getMetaBoxesPerLocation(state, location), function (_ref) { + var id = _ref.id; + return selectors_isEditorPanelEnabled(state, "meta-box-".concat(id)); + }); +} +/** + * Returns true if there is an active meta box in the given location, or false + * otherwise. + * + * @param {Object} state Post editor state. + * @param {string} location Meta box location to test. + * + * @return {boolean} Whether the meta box location is active. + */ + +function isMetaBoxLocationActive(state, location) { + var metaBoxes = getMetaBoxesPerLocation(state, location); + return !!metaBoxes && metaBoxes.length !== 0; +} +/** + * Returns the list of all the available meta boxes for a given location. + * + * @param {Object} state Global application state. + * @param {string} location Meta box location to test. + * + * @return {?Array} List of meta boxes. + */ + +function getMetaBoxesPerLocation(state, location) { + return state.metaBoxes.locations[location]; +} +/** + * Returns the list of all the available meta boxes. + * + * @param {Object} state Global application state. + * + * @return {Array} List of meta boxes. + */ + +var getAllMetaBoxes = Object(rememo["a" /* default */])(function (state) { + return Object(external_lodash_["flatten"])(Object(external_lodash_["values"])(state.metaBoxes.locations)); +}, function (state) { + return [state.metaBoxes.locations]; +}); +/** + * Returns true if the post is using Meta Boxes + * + * @param {Object} state Global application state + * + * @return {boolean} Whether there are metaboxes or not. + */ + +function hasMetaBoxes(state) { + return getActiveMetaBoxLocations(state).length > 0; +} +/** + * Returns true if the Meta Boxes are being saved. + * + * @param {Object} state Global application state. + * + * @return {boolean} Whether the metaboxes are being saved. + */ + +function selectors_isSavingMetaBoxes(state) { + return state.metaBoxes.isSaving; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/utils/meta-boxes.js +/** + * Function returning the current Meta Boxes DOM Node in the editor + * whether the meta box area is opened or not. + * If the MetaBox Area is visible returns it, and returns the original container instead. + * + * @param {string} location Meta Box location. + * @return {string} HTML content. + */ +var getMetaBoxContainer = function getMetaBoxContainer(location) { + var area = document.querySelector(".edit-post-meta-boxes-area.is-".concat(location, " .metabox-location-").concat(location)); + + if (area) { + return area; + } + + return document.querySelector('#metaboxes .metabox-location-' + location); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/effects.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + + +var saveMetaboxUnsubscribe; +var effects = { + SET_META_BOXES_PER_LOCATIONS: function SET_META_BOXES_PER_LOCATIONS(action, store) { + // Allow toggling metaboxes panels + // We need to wait for all scripts to load + // If the meta box loads the post script, it will already trigger this. + // After merge in Core, make sure to drop the timeout and update the postboxes script + // to avoid the double binding. + setTimeout(function () { + var postType = Object(external_this_wp_data_["select"])('core/editor').getCurrentPostType(); + + if (window.postboxes.page !== postType) { + window.postboxes.add_postbox_toggles(postType); + } + }); + var wasSavingPost = Object(external_this_wp_data_["select"])('core/editor').isSavingPost(); + var wasAutosavingPost = Object(external_this_wp_data_["select"])('core/editor').isAutosavingPost(); // Meta boxes are initialized once at page load. It is not necessary to + // account for updates on each state change. + // + // See: https://github.com/WordPress/WordPress/blob/5.1.1/wp-admin/includes/post.php#L2307-L2309 + + var hasActiveMetaBoxes = Object(external_this_wp_data_["select"])('core/edit-post').hasMetaBoxes(); // First remove any existing subscription in order to prevent multiple saves + + if (!!saveMetaboxUnsubscribe) { + saveMetaboxUnsubscribe(); + } // Save metaboxes when performing a full save on the post. + + + saveMetaboxUnsubscribe = Object(external_this_wp_data_["subscribe"])(function () { + var isSavingPost = Object(external_this_wp_data_["select"])('core/editor').isSavingPost(); + var isAutosavingPost = Object(external_this_wp_data_["select"])('core/editor').isAutosavingPost(); // Save metaboxes on save completion, except for autosaves that are not a post preview. + + var shouldTriggerMetaboxesSave = hasActiveMetaBoxes && wasSavingPost && !isSavingPost && !wasAutosavingPost; // Save current state for next inspection. + + wasSavingPost = isSavingPost; + wasAutosavingPost = isAutosavingPost; + + if (shouldTriggerMetaboxesSave) { + store.dispatch(requestMetaBoxUpdates()); + } + }); + }, + REQUEST_META_BOX_UPDATES: function REQUEST_META_BOX_UPDATES(action, store) { + // Saves the wp_editor fields + if (window.tinyMCE) { + window.tinyMCE.triggerSave(); + } + + var state = store.getState(); // Additional data needed for backward compatibility. + // If we do not provide this data, the post will be overridden with the default values. + + var post = Object(external_this_wp_data_["select"])('core/editor').getCurrentPost(state); + var additionalData = [post.comment_status ? ['comment_status', post.comment_status] : false, post.ping_status ? ['ping_status', post.ping_status] : false, post.sticky ? ['sticky', post.sticky] : false, post.author ? ['post_author', post.author] : false].filter(Boolean); // We gather all the metaboxes locations data and the base form data + + var baseFormData = new window.FormData(document.querySelector('.metabox-base-form')); + var formDataToMerge = [baseFormData].concat(Object(toConsumableArray["a" /* default */])(getActiveMetaBoxLocations(state).map(function (location) { + return new window.FormData(getMetaBoxContainer(location)); + }))); // Merge all form data objects into a single one. + + var formData = Object(external_lodash_["reduce"])(formDataToMerge, function (memo, currentFormData) { + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = currentFormData[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var _step$value = Object(slicedToArray["a" /* default */])(_step.value, 2), + key = _step$value[0], + value = _step$value[1]; + + memo.append(key, value); + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + + return memo; + }, new window.FormData()); + additionalData.forEach(function (_ref) { + var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 2), + key = _ref2[0], + value = _ref2[1]; + + return formData.append(key, value); + }); // Save the metaboxes + + external_this_wp_apiFetch_default()({ + url: window._wpMetaBoxUrl, + method: 'POST', + body: formData, + parse: false + }).then(function () { + return store.dispatch(metaBoxUpdatesSuccess()); + }); + }, + SWITCH_MODE: function SWITCH_MODE(action) { + // Unselect blocks when we switch to the code editor. + if (action.mode !== 'visual') { + Object(external_this_wp_data_["dispatch"])('core/block-editor').clearSelectedBlock(); + } + + var message = action.mode === 'visual' ? Object(external_this_wp_i18n_["__"])('Visual editor selected') : Object(external_this_wp_i18n_["__"])('Code editor selected'); + Object(external_this_wp_a11y_["speak"])(message, 'assertive'); + } +}; +/* harmony default export */ var store_effects = (effects); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/middlewares.js + + +/** + * External dependencies + */ + + +/** + * Internal dependencies + */ + + +/** + * Applies the custom middlewares used specifically in the editor module. + * + * @param {Object} store Store Object. + * + * @return {Object} Update Store Object. + */ + +function applyMiddlewares(store) { + var middlewares = [refx_default()(store_effects)]; + + var enhancedDispatch = function enhancedDispatch() { + throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); + }; + + var chain = []; + var middlewareAPI = { + getState: store.getState, + dispatch: function dispatch() { + return enhancedDispatch.apply(void 0, arguments); + } + }; + chain = middlewares.map(function (middleware) { + return middleware(middlewareAPI); + }); + enhancedDispatch = external_lodash_["flowRight"].apply(void 0, Object(toConsumableArray["a" /* default */])(chain))(store.dispatch); + store.dispatch = enhancedDispatch; + return store; +} + +/* harmony default export */ var store_middlewares = (applyMiddlewares); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/controls.js + + +/** + * WordPress dependencies + */ + +/** + * Calls a selector using the current state. + * + * @param {string} storeName Store name. + * @param {string} selectorName Selector name. + * @param {Array} args Selector arguments. + * + * @return {Object} control descriptor. + */ + +function controls_select(storeName, selectorName) { + for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + args[_key - 2] = arguments[_key]; + } + + return { + type: 'SELECT', + storeName: storeName, + selectorName: selectorName, + args: args + }; +} +var controls = { + SELECT: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { + return function (_ref) { + var _registry$select; + + var storeName = _ref.storeName, + selectorName = _ref.selectorName, + args = _ref.args; + return (_registry$select = registry.select(storeName))[selectorName].apply(_registry$select, Object(toConsumableArray["a" /* default */])(args)); + }; + }) +}; +/* harmony default export */ var store_controls = (controls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/constants.js +/** + * The identifier for the data store. + * + * @type {string} + */ +var STORE_KEY = 'core/edit-post'; +/** + * CSS selector string for the admin bar view post link anchor tag. + * + * @type {string} + */ + +var VIEW_AS_LINK_SELECTOR = '#wp-admin-bar-view a'; +/** + * CSS selector string for the admin bar preview post link anchor tag. + * + * @type {string} + */ + +var VIEW_AS_PREVIEW_LINK_SELECTOR = '#wp-admin-bar-preview a'; + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + + + + +var store_store = Object(external_this_wp_data_["registerStore"])(STORE_KEY, { + reducer: reducer, + actions: actions_namespaceObject, + selectors: selectors_namespaceObject, + controls: store_controls, + persist: ['preferences'] +}); +store_middlewares(store_store); +/* harmony default export */ var build_module_store = (store_store); + // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js var classCallCheck = __webpack_require__(12); @@ -1137,28 +2139,10 @@ var getPrototypeOf = __webpack_require__(14); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules var inherits = __webpack_require__(15); -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - // EXTERNAL MODULE: ./node_modules/memize/index.js -var memize = __webpack_require__(45); +var memize = __webpack_require__(44); var memize_default = /*#__PURE__*/__webpack_require__.n(memize); -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","editor"]} -var external_this_wp_editor_ = __webpack_require__(24); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/prevent-event-discovery.js /* harmony default export */ var prevent_event_discovery = ({ 't a l e s o f g u t e n b e r g': function tALESOFGUTENBERG(event) { @@ -1177,18 +2161,6 @@ var external_this_wp_compose_ = __webpack_require__(8); var classnames = __webpack_require__(16); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","plugins"]} -var external_this_wp_plugins_ = __webpack_require__(52); - -// EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(43); - -// EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(26); - // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/browser-url/index.js @@ -1326,9 +2298,6 @@ function (_Component) { }; })(browser_url_BrowserURL)); -// EXTERNAL MODULE: external {"this":["wp","nux"]} -var external_this_wp_nux_ = __webpack_require__(63); - // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/fullscreen-mode-close/index.js @@ -1380,9 +2349,6 @@ function FullscreenModeClose(_ref) { }; })(FullscreenModeClose)); -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/header-toolbar/index.js @@ -1436,8 +2402,22 @@ function HeaderToolbar(_ref) { isLargeViewport: 'medium' })])(HeaderToolbar)); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/keyboard-shortcuts.js -var keyboard_shortcuts = __webpack_require__(65); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/keyboard-shortcuts.js +/** + * WordPress dependencies + */ + +/* harmony default export */ var keyboard_shortcuts = ({ + toggleEditorMode: { + raw: external_this_wp_keycodes_["rawShortcut"].secondary('m'), + display: external_this_wp_keycodes_["displayShortcut"].secondary('m') + }, + toggleSidebar: { + raw: external_this_wp_keycodes_["rawShortcut"].primaryShift(','), + display: external_this_wp_keycodes_["displayShortcut"].primaryShift(','), + ariaLabel: external_this_wp_keycodes_["shortcutAriaLabel"].primaryShift(',') + } +}); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/mode-switcher/index.js @@ -1475,7 +2455,7 @@ function ModeSwitcher(_ref) { var choices = MODES.map(function (choice) { if (choice.value !== mode) { return Object(objectSpread["a" /* default */])({}, choice, { - shortcut: keyboard_shortcuts["a" /* default */].toggleEditorMode.display + shortcut: keyboard_shortcuts.toggleEditorMode.display }); } @@ -1508,11 +2488,36 @@ function ModeSwitcher(_ref) { }; })])(ModeSwitcher)); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/plugins-more-menu-group/index.js -var plugins_more_menu_group = __webpack_require__(124); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/plugins-more-menu-group/index.js -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js -var tools_more_menu_group = __webpack_require__(123); + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var plugins_more_menu_group_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginsMoreMenuGroup'), + PluginsMoreMenuGroup = plugins_more_menu_group_createSlotFill.Fill, + plugins_more_menu_group_Slot = plugins_more_menu_group_createSlotFill.Slot; + +PluginsMoreMenuGroup.Slot = function (_ref) { + var fillProps = _ref.fillProps; + return Object(external_this_wp_element_["createElement"])(plugins_more_menu_group_Slot, { + fillProps: fillProps + }, function (fills) { + return !Object(external_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], { + label: Object(external_this_wp_i18n_["__"])('Plugins') + }, fills); + }); +}; + +/* harmony default export */ var plugins_more_menu_group = (PluginsMoreMenuGroup); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/options-menu-item/index.js @@ -1670,11 +2675,11 @@ var more_menu_MoreMenu = function MoreMenu() { toggleProps: TOGGLE_PROPS }, function (_ref) { var onClose = _ref.onClose; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(writing_menu, null), Object(external_this_wp_element_["createElement"])(mode_switcher, null), Object(external_this_wp_element_["createElement"])(plugins_more_menu_group["a" /* default */].Slot, { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(writing_menu, null), Object(external_this_wp_element_["createElement"])(mode_switcher, null), Object(external_this_wp_element_["createElement"])(plugins_more_menu_group.Slot, { fillProps: { onClose: onClose } - }), Object(external_this_wp_element_["createElement"])(tools_more_menu_group["a" /* default */].Slot, { + }), Object(external_this_wp_element_["createElement"])(tools_more_menu_group.Slot, { fillProps: { onClose: onClose } @@ -1684,8 +2689,32 @@ var more_menu_MoreMenu = function MoreMenu() { /* harmony default export */ var more_menu = (more_menu_MoreMenu); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/pinned-plugins/index.js -var pinned_plugins = __webpack_require__(125); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/pinned-plugins/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +var pinned_plugins_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PinnedPlugins'), + PinnedPlugins = pinned_plugins_createSlotFill.Fill, + pinned_plugins_Slot = pinned_plugins_createSlotFill.Slot; + +PinnedPlugins.Slot = function (props) { + return Object(external_this_wp_element_["createElement"])(pinned_plugins_Slot, props, function (fills) { + return !Object(external_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])("div", { + className: "edit-post-pinned-plugins" + }, fills); + }); +}; + +/* harmony default export */ var pinned_plugins = (PinnedPlugins); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/post-publish-button-or-toggle.js @@ -1841,10 +2870,10 @@ function Header(_ref) { onClick: toggleGeneralSidebar, isToggled: isEditorSidebarOpened, "aria-expanded": isEditorSidebarOpened, - shortcut: keyboard_shortcuts["a" /* default */].toggleSidebar + shortcut: keyboard_shortcuts.toggleSidebar }), Object(external_this_wp_element_["createElement"])(external_this_wp_nux_["DotTip"], { tipId: "core/editor.settings" - }, Object(external_this_wp_i18n_["__"])('You’ll find more settings for your page and blocks in the sidebar. Click the cog icon to toggle the sidebar open and closed.'))), Object(external_this_wp_element_["createElement"])(pinned_plugins["a" /* default */].Slot, null), Object(external_this_wp_element_["createElement"])(more_menu, null))); + }, Object(external_this_wp_i18n_["__"])('You’ll find more settings for your page and blocks in the sidebar. Click the cog icon to toggle the sidebar open and closed.'))), Object(external_this_wp_element_["createElement"])(pinned_plugins.Slot, null), Object(external_this_wp_element_["createElement"])(more_menu, null))); } /* harmony default export */ var header = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { @@ -1872,9 +2901,6 @@ function Header(_ref) { }; }))(Header)); -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); - // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/text-editor/index.js @@ -1959,7 +2985,7 @@ function BlockInspectorButton(_ref) { className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", onClick: Object(external_lodash_["flow"])(areAdvancedSettingsOpened ? closeSidebar : openEditorSidebar, speakMessage, onClick), icon: "admin-generic", - shortcut: keyboard_shortcuts["a" /* default */].toggleSidebar + shortcut: keyboard_shortcuts.toggleSidebar }, !small && label); } /* harmony default export */ var block_inspector_button = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { @@ -1975,8 +3001,49 @@ function BlockInspectorButton(_ref) { }; }), external_this_wp_components_["withSpokenMessages"])(BlockInspectorButton)); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-group.js -var plugin_block_settings_menu_group = __webpack_require__(126); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-group.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var plugin_block_settings_menu_group_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginBlockSettingsMenuGroup'), + PluginBlockSettingsMenuGroup = plugin_block_settings_menu_group_createSlotFill.Fill, + plugin_block_settings_menu_group_Slot = plugin_block_settings_menu_group_createSlotFill.Slot; + +var plugin_block_settings_menu_group_PluginBlockSettingsMenuGroupSlot = function PluginBlockSettingsMenuGroupSlot(_ref) { + var fillProps = _ref.fillProps, + selectedBlocks = _ref.selectedBlocks; + selectedBlocks = Object(external_lodash_["map"])(selectedBlocks, function (block) { + return block.name; + }); + return Object(external_this_wp_element_["createElement"])(plugin_block_settings_menu_group_Slot, { + fillProps: Object(objectSpread["a" /* default */])({}, fillProps, { + selectedBlocks: selectedBlocks + }) + }, function (fills) { + return !Object(external_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-settings-menu__separator block-editor-block-settings-menu__separator" + }), fills); + }); +}; + +PluginBlockSettingsMenuGroup.Slot = Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientIds = _ref2.fillProps.clientIds; + return { + selectedBlocks: select('core/block-editor').getBlocksByClientId(clientIds) + }; +})(plugin_block_settings_menu_group_PluginBlockSettingsMenuGroupSlot); +/* harmony default export */ var plugin_block_settings_menu_group = (PluginBlockSettingsMenuGroup); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/visual-editor/index.js @@ -2004,7 +3071,7 @@ function VisualEditor() { }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlockSettingsMenuPluginsExtension"], null, function (_ref2) { var clientIds = _ref2.clientIds, onClose = _ref2.onClose; - return Object(external_this_wp_element_["createElement"])(plugin_block_settings_menu_group["a" /* default */].Slot, { + return Object(external_this_wp_element_["createElement"])(plugin_block_settings_menu_group.Slot, { fillProps: { clientIds: clientIds, onClose: onClose @@ -2015,9 +3082,6 @@ function VisualEditor() { /* harmony default export */ var visual_editor = (VisualEditor); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js var assertThisInitialized = __webpack_require__(5); @@ -2098,7 +3162,7 @@ function (_Component) { return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { bindGlobal: true, - shortcuts: (_ref = {}, Object(defineProperty["a" /* default */])(_ref, keyboard_shortcuts["a" /* default */].toggleEditorMode.raw, this.toggleMode), Object(defineProperty["a" /* default */])(_ref, keyboard_shortcuts["a" /* default */].toggleSidebar.raw, this.toggleSidebar), _ref) + shortcuts: (_ref = {}, Object(defineProperty["a" /* default */])(_ref, keyboard_shortcuts.toggleEditorMode.raw, this.toggleMode), Object(defineProperty["a" /* default */])(_ref, keyboard_shortcuts.toggleSidebar.raw, this.toggleSidebar), _ref) }); } }]); @@ -2686,8 +3750,315 @@ var section_Section = function Section(_ref) { /* harmony default export */ var section = (section_Section); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/index.js + 8 modules -var options = __webpack_require__(53); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/base.js + + +/** + * WordPress dependencies + */ + + +function BaseOption(_ref) { + var label = _ref.label, + isChecked = _ref.isChecked, + onChange = _ref.onChange, + children = _ref.children; + return Object(external_this_wp_element_["createElement"])("div", { + className: "edit-post-options-modal__option" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CheckboxControl"], { + label: label, + checked: isChecked, + onChange: onChange + }), children); +} + +/* harmony default export */ var base = (BaseOption); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-custom-fields.js + + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +function CustomFieldsConfirmation(_ref) { + var willEnable = _ref.willEnable; + + var _useState = Object(external_this_wp_element_["useState"])(false), + _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), + isReloading = _useState2[0], + setIsReloading = _useState2[1]; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("p", { + className: "edit-post-options-modal__custom-fields-confirmation-message" + }, Object(external_this_wp_i18n_["__"])('A page reload is required for this change. Make sure your content is saved before reloading.')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "edit-post-options-modal__custom-fields-confirmation-button", + isDefault: true, + isBusy: isReloading, + disabled: isReloading, + onClick: function onClick() { + setIsReloading(true); + document.getElementById('toggle-custom-fields-form').submit(); + } + }, willEnable ? Object(external_this_wp_i18n_["__"])('Enable & Reload') : Object(external_this_wp_i18n_["__"])('Disable & Reload'))); +} +function EnableCustomFieldsOption(_ref2) { + var label = _ref2.label, + areCustomFieldsEnabled = _ref2.areCustomFieldsEnabled; + + var _useState3 = Object(external_this_wp_element_["useState"])(areCustomFieldsEnabled), + _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), + isChecked = _useState4[0], + setIsChecked = _useState4[1]; + + return Object(external_this_wp_element_["createElement"])(base, { + label: label, + isChecked: isChecked, + onChange: setIsChecked + }, isChecked !== areCustomFieldsEnabled && Object(external_this_wp_element_["createElement"])(CustomFieldsConfirmation, { + willEnable: isChecked + })); +} +/* harmony default export */ var enable_custom_fields = (Object(external_this_wp_data_["withSelect"])(function (select) { + return { + areCustomFieldsEnabled: !!select('core/editor').getEditorSettings().enableCustomFields + }; +})(EnableCustomFieldsOption)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-panel.js +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +/* harmony default export */ var enable_panel = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { + var panelName = _ref.panelName; + + var _select = select('core/edit-post'), + isEditorPanelEnabled = _select.isEditorPanelEnabled, + isEditorPanelRemoved = _select.isEditorPanelRemoved; + + return { + isRemoved: isEditorPanelRemoved(panelName), + isChecked: isEditorPanelEnabled(panelName) + }; +}), Object(external_this_wp_compose_["ifCondition"])(function (_ref2) { + var isRemoved = _ref2.isRemoved; + return !isRemoved; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { + var panelName = _ref3.panelName; + return { + onChange: function onChange() { + return dispatch('core/edit-post').toggleEditorPanelEnabled(panelName); + } + }; +}))(base)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-plugin-document-setting-panel.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var enable_plugin_document_setting_panel_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('EnablePluginDocumentSettingPanelOption'), + Fill = enable_plugin_document_setting_panel_createSlotFill.Fill, + enable_plugin_document_setting_panel_Slot = enable_plugin_document_setting_panel_createSlotFill.Slot; + +var enable_plugin_document_setting_panel_EnablePluginDocumentSettingPanelOption = function EnablePluginDocumentSettingPanelOption(_ref) { + var label = _ref.label, + panelName = _ref.panelName; + return Object(external_this_wp_element_["createElement"])(Fill, null, Object(external_this_wp_element_["createElement"])(enable_panel, { + label: label, + panelName: panelName + })); +}; + +enable_plugin_document_setting_panel_EnablePluginDocumentSettingPanelOption.Slot = enable_plugin_document_setting_panel_Slot; +/* harmony default export */ var enable_plugin_document_setting_panel = (enable_plugin_document_setting_panel_EnablePluginDocumentSettingPanelOption); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-publish-sidebar.js +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +/* harmony default export */ var enable_publish_sidebar = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { + return { + isChecked: select('core/editor').isPublishSidebarEnabled() + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/editor'), + enablePublishSidebar = _dispatch.enablePublishSidebar, + disablePublishSidebar = _dispatch.disablePublishSidebar; + + return { + onChange: function onChange(isEnabled) { + return isEnabled ? enablePublishSidebar() : disablePublishSidebar(); + } + }; +}), // In < medium viewports we override this option and always show the publish sidebar. +// See the edit-post's header component for the specific logic. +Object(external_this_wp_viewport_["ifViewportMatches"])('medium'))(base)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/deferred.js + + + + + + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var deferred_DeferredOption = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(DeferredOption, _Component); + + function DeferredOption(_ref) { + var _this; + + var isChecked = _ref.isChecked; + + Object(classCallCheck["a" /* default */])(this, DeferredOption); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(DeferredOption).apply(this, arguments)); + _this.state = { + isChecked: isChecked + }; + return _this; + } + + Object(createClass["a" /* default */])(DeferredOption, [{ + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this.state.isChecked !== this.props.isChecked) { + this.props.onChange(this.state.isChecked); + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + return Object(external_this_wp_element_["createElement"])(base, { + label: this.props.label, + isChecked: this.state.isChecked, + onChange: function onChange(isChecked) { + return _this2.setState({ + isChecked: isChecked + }); + } + }); + } + }]); + + return DeferredOption; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var deferred = (deferred_DeferredOption); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-tips.js +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +/* harmony default export */ var enable_tips = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { + return { + isChecked: select('core/nux').areTipsEnabled() + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/nux'), + enableTips = _dispatch.enableTips, + disableTips = _dispatch.disableTips; + + return { + onChange: function onChange(isEnabled) { + return isEnabled ? enableTips() : disableTips(); + } + }; +}))( // Using DeferredOption here means enableTips() is called when the Options +// modal is dismissed. This stops the NUX guide from appearing above the +// Options modal, which looks totally weird. +deferred)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-feature.js +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +/* harmony default export */ var enable_feature = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { + var feature = _ref.feature; + return { + isChecked: select('core/edit-post').isFeatureActive(feature) + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { + var feature = _ref2.feature; + + var _dispatch = dispatch('core/edit-post'), + toggleFeature = _dispatch.toggleFeature; + + return { + onChange: function onChange() { + toggleFeature(feature); + } + }; +}))(base)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/index.js + + + + + + // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/meta-boxes-section.js @@ -2724,12 +4095,12 @@ function MetaBoxesSection(_ref) { return null; } - return Object(external_this_wp_element_["createElement"])(section, sectionProps, areCustomFieldsRegistered && Object(external_this_wp_element_["createElement"])(options["a" /* EnableCustomFieldsOption */], { + return Object(external_this_wp_element_["createElement"])(section, sectionProps, areCustomFieldsRegistered && Object(external_this_wp_element_["createElement"])(enable_custom_fields, { label: Object(external_this_wp_i18n_["__"])('Custom Fields') }), Object(external_lodash_["map"])(thirdPartyMetaBoxes, function (_ref3) { var id = _ref3.id, title = _ref3.title; - return Object(external_this_wp_element_["createElement"])(options["c" /* EnablePanelOption */], { + return Object(external_this_wp_element_["createElement"])(enable_panel, { key: id, label: title, panelName: "meta-box-".concat(id) @@ -2790,37 +4161,37 @@ function OptionsModal(_ref) { onRequestClose: closeModal }, Object(external_this_wp_element_["createElement"])(section, { title: Object(external_this_wp_i18n_["__"])('General') - }, Object(external_this_wp_element_["createElement"])(options["e" /* EnablePublishSidebarOption */], { + }, Object(external_this_wp_element_["createElement"])(enable_publish_sidebar, { label: Object(external_this_wp_i18n_["__"])('Pre-publish Checks') - }), Object(external_this_wp_element_["createElement"])(options["f" /* EnableTipsOption */], { + }), Object(external_this_wp_element_["createElement"])(enable_tips, { label: Object(external_this_wp_i18n_["__"])('Tips') - }), Object(external_this_wp_element_["createElement"])(options["b" /* EnableFeature */], { + }), Object(external_this_wp_element_["createElement"])(enable_feature, { feature: "showInserterHelpPanel", label: Object(external_this_wp_i18n_["__"])('Inserter Help Panel') })), Object(external_this_wp_element_["createElement"])(section, { title: Object(external_this_wp_i18n_["__"])('Document Panels') - }, Object(external_this_wp_element_["createElement"])(options["d" /* EnablePluginDocumentSettingPanelOption */].Slot, null), isViewable && Object(external_this_wp_element_["createElement"])(options["c" /* EnablePanelOption */], { + }, Object(external_this_wp_element_["createElement"])(enable_plugin_document_setting_panel.Slot, null), isViewable && Object(external_this_wp_element_["createElement"])(enable_panel, { label: Object(external_this_wp_i18n_["__"])('Permalink'), panelName: "post-link" }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTaxonomies"], { taxonomyWrapper: function taxonomyWrapper(content, taxonomy) { - return Object(external_this_wp_element_["createElement"])(options["c" /* EnablePanelOption */], { + return Object(external_this_wp_element_["createElement"])(enable_panel, { label: Object(external_lodash_["get"])(taxonomy, ['labels', 'menu_name']), panelName: "taxonomy-panel-".concat(taxonomy.slug) }); } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostFeaturedImageCheck"], null, Object(external_this_wp_element_["createElement"])(options["c" /* EnablePanelOption */], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostFeaturedImageCheck"], null, Object(external_this_wp_element_["createElement"])(enable_panel, { label: Object(external_this_wp_i18n_["__"])('Featured Image'), panelName: "featured-image" - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostExcerptCheck"], null, Object(external_this_wp_element_["createElement"])(options["c" /* EnablePanelOption */], { + })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostExcerptCheck"], null, Object(external_this_wp_element_["createElement"])(enable_panel, { label: Object(external_this_wp_i18n_["__"])('Excerpt'), panelName: "post-excerpt" })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTypeSupportCheck"], { supportKeys: ['comments', 'trackbacks'] - }, Object(external_this_wp_element_["createElement"])(options["c" /* EnablePanelOption */], { + }, Object(external_this_wp_element_["createElement"])(enable_panel, { label: Object(external_this_wp_i18n_["__"])('Discussion'), panelName: "discussion-panel" - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PageAttributesCheck"], null, Object(external_this_wp_element_["createElement"])(options["c" /* EnablePanelOption */], { + })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PageAttributesCheck"], null, Object(external_this_wp_element_["createElement"])(enable_panel, { label: Object(external_this_wp_i18n_["__"])('Page Attributes'), panelName: "page-attributes" }))), Object(external_this_wp_element_["createElement"])(meta_boxes_section, { @@ -3072,14 +4443,131 @@ function MetaBoxes(_ref) { }; })(MetaBoxes)); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/index.js -var sidebar = __webpack_require__(88); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/index.js -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/sidebar-header/index.js -var sidebar_header = __webpack_require__(127); +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +var sidebar_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('Sidebar'), + sidebar_Fill = sidebar_createSlotFill.Fill, + sidebar_Slot = sidebar_createSlotFill.Slot; +/** + * Renders a sidebar with its content. + * + * @return {Object} The rendered sidebar. + */ + + +function Sidebar(_ref) { + var children = _ref.children, + label = _ref.label, + className = _ref.className; + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('edit-post-sidebar', className), + role: "region", + "aria-label": label, + tabIndex: "-1" + }, children); +} + +Sidebar = Object(external_this_wp_components_["withFocusReturn"])({ + onFocusReturn: function onFocusReturn() { + var button = document.querySelector('.edit-post-header__settings [aria-label="Settings"]'); + + if (button) { + button.focus(); + return false; + } + } +})(Sidebar); + +function AnimatedSidebarFill(props) { + return Object(external_this_wp_element_["createElement"])(sidebar_Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Animate"], { + type: "slide-in", + options: { + origin: 'left' + } + }, function () { + return Object(external_this_wp_element_["createElement"])(Sidebar, props); + })); +} + +var WrappedSidebar = Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var name = _ref2.name; + return { + isActive: select('core/edit-post').getActiveGeneralSidebarName() === name + }; +}), Object(external_this_wp_compose_["ifCondition"])(function (_ref3) { + var isActive = _ref3.isActive; + return isActive; +}))(AnimatedSidebarFill); +WrappedSidebar.Slot = sidebar_Slot; +/* harmony default export */ var sidebar = (WrappedSidebar); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/sidebar-header/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +var sidebar_header_SidebarHeader = function SidebarHeader(_ref) { + var children = _ref.children, + className = _ref.className, + closeLabel = _ref.closeLabel, + closeSidebar = _ref.closeSidebar, + title = _ref.title; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "components-panel__header edit-post-sidebar-header__small" + }, Object(external_this_wp_element_["createElement"])("span", { + className: "edit-post-sidebar-header__title" + }, title || Object(external_this_wp_i18n_["__"])('(no title)')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + onClick: closeSidebar, + icon: "no-alt", + label: closeLabel + })), Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('components-panel__header edit-post-sidebar-header', className) + }, children, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + onClick: closeSidebar, + icon: "no-alt", + label: closeLabel, + shortcut: keyboard_shortcuts.toggleSidebar + }))); +}; + +/* harmony default export */ var sidebar_header = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { + return { + title: select('core/editor').getEditedPostAttribute('title') + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + return { + closeSidebar: dispatch('core/edit-post').closeGeneralSidebar + }; +}))(sidebar_header_SidebarHeader)); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-header/index.js @@ -3117,7 +4605,7 @@ var settings_header_SettingsHeader = function SettingsHeader(_ref) { blockAriaLabel = _ref5[0], blockActiveClass = _ref5[1]; - return Object(external_this_wp_element_["createElement"])(sidebar_header["a" /* default */], { + return Object(external_this_wp_element_["createElement"])(sidebar_header, { className: "edit-post-sidebar__panel-tabs", closeLabel: Object(external_this_wp_i18n_["__"])('Close settings') }, Object(external_this_wp_element_["createElement"])("ul", null, Object(external_this_wp_element_["createElement"])("li", null, Object(external_this_wp_element_["createElement"])("button", { @@ -3286,8 +4774,77 @@ function PostPendingStatus() { } /* harmony default export */ var post_pending_status = (PostPendingStatus); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-status-info/index.js -var plugin_post_status_info = __webpack_require__(117); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-status-info/index.js + + +/** + * Defines as extensibility slot for the Status & Visibility panel. + */ + +/** + * WordPress dependencies + */ + + +var plugin_post_status_info_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginPostStatusInfo'), + plugin_post_status_info_Fill = plugin_post_status_info_createSlotFill.Fill, + plugin_post_status_info_Slot = plugin_post_status_info_createSlotFill.Slot; +/** + * Renders a row in the Status & Visibility panel of the Document sidebar. + * It should be noted that this is named and implemented around the function it serves + * and not its location, which may change in future iterations. + * + * @param {Object} props Component properties. + * @param {string} [props.className] An optional class name added to the row. + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var __ = wp.i18n.__; + * var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo; + * + * function MyPluginPostStatusInfo() { + * return wp.element.createElement( + * PluginPostStatusInfo, + * { + * className: 'my-plugin-post-status-info', + * }, + * __( 'My post status info' ) + * ) + * } + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * const { __ } = wp.i18n; + * const { PluginPostStatusInfo } = wp.editPost; + * + * const MyPluginPostStatusInfo = () => ( + * + * { __( 'My post status info' ) } + * + * ); + * ``` + * + * @return {WPElement} The WPElement to be rendered. + */ + + + + +var plugin_post_status_info_PluginPostStatusInfo = function PluginPostStatusInfo(_ref) { + var children = _ref.children, + className = _ref.className; + return Object(external_this_wp_element_["createElement"])(plugin_post_status_info_Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelRow"], { + className: className + }, children)); +}; + +plugin_post_status_info_PluginPostStatusInfo.Slot = plugin_post_status_info_Slot; +/* harmony default export */ var plugin_post_status_info = (plugin_post_status_info_PluginPostStatusInfo); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/post-status/index.js @@ -3325,7 +4882,7 @@ function PostStatus(_ref) { title: Object(external_this_wp_i18n_["__"])('Status & Visibility'), opened: isOpened, onToggle: onTogglePanel - }, Object(external_this_wp_element_["createElement"])(plugin_post_status_info["a" /* default */].Slot, null, function (fills) { + }, Object(external_this_wp_element_["createElement"])(plugin_post_status_info.Slot, null, function (fills) { return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(post_visibility, null), Object(external_this_wp_element_["createElement"])(post_schedule, null), Object(external_this_wp_element_["createElement"])(post_format, null), Object(external_this_wp_element_["createElement"])(post_sticky, null), Object(external_this_wp_element_["createElement"])(post_pending_status, null), Object(external_this_wp_element_["createElement"])(post_author, null), fills, Object(external_this_wp_element_["createElement"])(PostTrash, null)); })); } @@ -3847,8 +5404,125 @@ var page_attributes_applyWithDispatch = Object(external_this_wp_data_["withDispa }); /* harmony default export */ var page_attributes = (Object(external_this_wp_compose_["compose"])(page_attributes_applyWithSelect, page_attributes_applyWithDispatch)(PageAttributes)); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-document-setting-panel/index.js -var plugin_document_setting_panel = __webpack_require__(118); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-document-setting-panel/index.js + + +/** + * Defines as extensibility slot for the Settings sidebar + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var plugin_document_setting_panel_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginDocumentSettingPanel'), + plugin_document_setting_panel_Fill = plugin_document_setting_panel_createSlotFill.Fill, + plugin_document_setting_panel_Slot = plugin_document_setting_panel_createSlotFill.Slot; + + + +var plugin_document_setting_panel_PluginDocumentSettingFill = function PluginDocumentSettingFill(_ref) { + var isEnabled = _ref.isEnabled, + panelName = _ref.panelName, + opened = _ref.opened, + onToggle = _ref.onToggle, + className = _ref.className, + title = _ref.title, + icon = _ref.icon, + children = _ref.children; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(enable_plugin_document_setting_panel, { + label: title, + panelName: panelName + }), Object(external_this_wp_element_["createElement"])(plugin_document_setting_panel_Fill, null, isEnabled && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + className: className, + title: title, + icon: icon, + opened: opened, + onToggle: onToggle + }, children))); +}; +/** + * Renders items below the Status & Availability panel in the Document Sidebar. + * + * @param {Object} props Component properties. + * @param {string} [props.name] The machine-friendly name for the panel. + * @param {string} [props.className] An optional class name added to the row. + * @param {string} [props.title] The title of the panel + * @param {string|Element} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar. + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var el = wp.element.createElement; + * var __ = wp.i18n.__; + * var registerPlugin = wp.plugins.registerPlugin; + * var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel; + * + * function MyDocumentSettingPlugin() { + * return el( + * PluginDocumentSettingPanel, + * { + * className: 'my-document-setting-plugin', + * title: 'My Panel', + * }, + * __( 'My Document Setting Panel' ) + * ); + * } + * + * registerPlugin( 'my-document-setting-plugin', { + * render: MyDocumentSettingPlugin + * } ); + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * const { registerPlugin } = wp.plugins; + * const { PluginDocumentSettingPanel } = wp.editPost; + * + * const MyDocumentSettingTest = () => ( + * + *

    My Document Setting Panel

    + *
    + * ); + * + * registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } ); + * ``` + * + * @return {WPElement} The WPElement to be rendered. + */ + + +var PluginDocumentSettingPanel = Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) { + return { + icon: ownProps.icon || context.icon, + panelName: "".concat(context.name, "/").concat(ownProps.name) + }; +}), Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var panelName = _ref2.panelName; + return { + opened: select('core/edit-post').isEditorPanelOpened(panelName), + isEnabled: select('core/edit-post').isEditorPanelEnabled(panelName) + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { + var panelName = _ref3.panelName; + return { + onToggle: function onToggle() { + return dispatch('core/edit-post').toggleEditorPanelOpened(panelName); + } + }; +}))(plugin_document_setting_panel_PluginDocumentSettingFill); +PluginDocumentSettingPanel.Slot = plugin_document_setting_panel_Slot; +/* harmony default export */ var plugin_document_setting_panel = (PluginDocumentSettingPanel); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/settings-sidebar/index.js @@ -3880,12 +5554,12 @@ var plugin_document_setting_panel = __webpack_require__(118); var settings_sidebar_SettingsSidebar = function SettingsSidebar(_ref) { var sidebarName = _ref.sidebarName; - return Object(external_this_wp_element_["createElement"])(sidebar["a" /* default */], { + return Object(external_this_wp_element_["createElement"])(sidebar, { name: sidebarName, label: Object(external_this_wp_i18n_["__"])('Editor settings') }, Object(external_this_wp_element_["createElement"])(settings_header, { sidebarName: sidebarName - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Panel"], null, sidebarName === 'edit-post/document' && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(post_status, null), Object(external_this_wp_element_["createElement"])(plugin_document_setting_panel["a" /* default */].Slot, null), Object(external_this_wp_element_["createElement"])(last_revision, null), Object(external_this_wp_element_["createElement"])(post_link, null), Object(external_this_wp_element_["createElement"])(post_taxonomies, null), Object(external_this_wp_element_["createElement"])(featured_image, null), Object(external_this_wp_element_["createElement"])(post_excerpt, null), Object(external_this_wp_element_["createElement"])(discussion_panel, null), Object(external_this_wp_element_["createElement"])(page_attributes, null), Object(external_this_wp_element_["createElement"])(meta_boxes, { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Panel"], null, sidebarName === 'edit-post/document' && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(post_status, null), Object(external_this_wp_element_["createElement"])(plugin_document_setting_panel.Slot, null), Object(external_this_wp_element_["createElement"])(last_revision, null), Object(external_this_wp_element_["createElement"])(post_link, null), Object(external_this_wp_element_["createElement"])(post_taxonomies, null), Object(external_this_wp_element_["createElement"])(featured_image, null), Object(external_this_wp_element_["createElement"])(post_excerpt, null), Object(external_this_wp_element_["createElement"])(discussion_panel, null), Object(external_this_wp_element_["createElement"])(page_attributes, null), Object(external_this_wp_element_["createElement"])(meta_boxes, { location: "side" })), sidebarName === 'edit-post/block' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { className: "edit-post-settings-sidebar__panel-block" @@ -3906,11 +5580,178 @@ var settings_sidebar_SettingsSidebar = function SettingsSidebar(_ref) { return isEditorSidebarOpened; }))(settings_sidebar_SettingsSidebar)); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-publish-panel/index.js -var plugin_post_publish_panel = __webpack_require__(119); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-post-publish-panel/index.js -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-pre-publish-panel/index.js -var plugin_pre_publish_panel = __webpack_require__(120); + +/** + * WordPress dependencies + */ + + + + +var plugin_post_publish_panel_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginPostPublishPanel'), + plugin_post_publish_panel_Fill = plugin_post_publish_panel_createSlotFill.Fill, + plugin_post_publish_panel_Slot = plugin_post_publish_panel_createSlotFill.Slot; + +var plugin_post_publish_panel_PluginPostPublishPanelFill = function PluginPostPublishPanelFill(_ref) { + var children = _ref.children, + className = _ref.className, + title = _ref.title, + _ref$initialOpen = _ref.initialOpen, + initialOpen = _ref$initialOpen === void 0 ? false : _ref$initialOpen, + icon = _ref.icon; + return Object(external_this_wp_element_["createElement"])(plugin_post_publish_panel_Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + className: className, + initialOpen: initialOpen || !title, + title: title, + icon: icon + }, children)); +}; +/** + * Renders provided content to the post-publish panel in the publish flow + * (side panel that opens after a user publishes the post). + * + * @param {Object} props Component properties. + * @param {string} [props.className] An optional class name added to the panel. + * @param {string} [props.title] Title displayed at the top of the panel. + * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened. + * @param {string|Element} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar. + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var __ = wp.i18n.__; + * var PluginPostPublishPanel = wp.editPost.PluginPostPublishPanel; + * + * function MyPluginPostPublishPanel() { + * return wp.element.createElement( + * PluginPostPublishPanel, + * { + * className: 'my-plugin-post-publish-panel', + * title: __( 'My panel title' ), + * initialOpen: true, + * }, + * __( 'My panel content' ) + * ); + * } + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * const { __ } = wp.i18n; + * const { PluginPostPublishPanel } = wp.editPost; + * + * const MyPluginPostPublishPanel = () => ( + * + * { __( 'My panel content' ) } + * + * ); + * ``` + * + * @return {WPElement} The WPElement to be rendered. + */ + + +var PluginPostPublishPanel = Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) { + return { + icon: ownProps.icon || context.icon + }; +}))(plugin_post_publish_panel_PluginPostPublishPanelFill); +PluginPostPublishPanel.Slot = plugin_post_publish_panel_Slot; +/* harmony default export */ var plugin_post_publish_panel = (PluginPostPublishPanel); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-pre-publish-panel/index.js + + +/** + * WordPress dependencies + */ + + + + +var plugin_pre_publish_panel_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginPrePublishPanel'), + plugin_pre_publish_panel_Fill = plugin_pre_publish_panel_createSlotFill.Fill, + plugin_pre_publish_panel_Slot = plugin_pre_publish_panel_createSlotFill.Slot; + +var plugin_pre_publish_panel_PluginPrePublishPanelFill = function PluginPrePublishPanelFill(_ref) { + var children = _ref.children, + className = _ref.className, + title = _ref.title, + _ref$initialOpen = _ref.initialOpen, + initialOpen = _ref$initialOpen === void 0 ? false : _ref$initialOpen, + icon = _ref.icon; + return Object(external_this_wp_element_["createElement"])(plugin_pre_publish_panel_Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + className: className, + initialOpen: initialOpen || !title, + title: title, + icon: icon + }, children)); +}; +/** + * Renders provided content to the pre-publish side panel in the publish flow + * (side panel that opens when a user first pushes "Publish" from the main editor). + * + * @param {Object} props Component props. + * @param {string} [props.className] An optional class name added to the panel. + * @param {string} [props.title] Title displayed at the top of the panel. + * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened. + * @param {string|Element} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar. + + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var __ = wp.i18n.__; + * var PluginPrePublishPanel = wp.editPost.PluginPrePublishPanel; + * + * function MyPluginPrePublishPanel() { + * return wp.element.createElement( + * PluginPrePublishPanel, + * { + * className: 'my-plugin-pre-publish-panel', + * title: __( 'My panel title' ), + * initialOpen: true, + * }, + * __( 'My panel content' ) + * ); + * } + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * const { __ } = wp.i18n; + * const { PluginPrePublishPanel } = wp.editPost; + * + * const MyPluginPrePublishPanel = () => ( + * + * { __( 'My panel content' ) } + * + * ); + * ``` + * + * @return {WPElement} The WPElement to be rendered. + */ + + +var PluginPrePublishPanel = Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) { + return { + icon: ownProps.icon || context.icon + }; +}))(plugin_pre_publish_panel_PluginPrePublishPanelFill); +PluginPrePublishPanel.Slot = plugin_pre_publish_panel_Slot; +/* harmony default export */ var plugin_pre_publish_panel = (PluginPrePublishPanel); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/fullscreen-mode/index.js @@ -4073,8 +5914,8 @@ function Layout(_ref) { onClose: closePublishSidebar, forceIsDirty: hasActiveMetaboxes, forceIsSaving: isSaving, - PrePublishExtension: plugin_pre_publish_panel["a" /* default */].Slot, - PostPublishExtension: plugin_post_publish_panel["a" /* default */].Slot + PrePublishExtension: plugin_pre_publish_panel.Slot, + PostPublishExtension: plugin_post_publish_panel.Slot })) : Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ className: "edit-post-toggle-publish-panel" }, publishLandmarkProps), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { @@ -4083,7 +5924,7 @@ function Layout(_ref) { className: "edit-post-toggle-publish-panel__button", onClick: togglePublishSidebar, "aria-expanded": false - }, Object(external_this_wp_i18n_["__"])('Open publish panel'))), Object(external_this_wp_element_["createElement"])(settings_sidebar, null), Object(external_this_wp_element_["createElement"])(sidebar["a" /* default */].Slot, null), isMobileViewport && sidebarIsOpened && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ScrollLock"], null)), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"].Slot, null), Object(external_this_wp_element_["createElement"])(external_this_wp_plugins_["PluginArea"], null)); + }, Object(external_this_wp_i18n_["__"])('Open publish panel'))), Object(external_this_wp_element_["createElement"])(settings_sidebar, null), Object(external_this_wp_element_["createElement"])(sidebar.Slot, null), isMobileViewport && sidebarIsOpened && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ScrollLock"], null)), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"].Slot, null), Object(external_this_wp_element_["createElement"])(external_this_wp_plugins_["PluginArea"], null)); } /* harmony default export */ var layout = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { @@ -4110,9 +5951,6 @@ function Layout(_ref) { isMobileViewport: '< small' }))(Layout)); -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/store/constants.js -var constants = __webpack_require__(75); - // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/editor-initialization/listener-hooks.js /** * WordPress dependencies @@ -4135,13 +5973,13 @@ var listener_hooks_useBlockSelectionListener = function useBlockSelectionListene var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { return { hasBlockSelection: !!select('core/block-editor').getBlockSelectionStart(), - isEditorSidebarOpened: select(constants["a" /* STORE_KEY */]).isEditorSidebarOpened() + isEditorSidebarOpened: select(STORE_KEY).isEditorSidebarOpened() }; }, [postId]), hasBlockSelection = _useSelect.hasBlockSelection, isEditorSidebarOpened = _useSelect.isEditorSidebarOpened; - var _useDispatch = Object(external_this_wp_data_["useDispatch"])(constants["a" /* STORE_KEY */]), + var _useDispatch = Object(external_this_wp_data_["useDispatch"])(STORE_KEY), openGeneralSidebar = _useDispatch.openGeneralSidebar; Object(external_this_wp_element_["useEffect"])(function () { @@ -4167,13 +6005,13 @@ var listener_hooks_useAdjustSidebarListener = function useAdjustSidebarListener( var _useSelect2 = Object(external_this_wp_data_["useSelect"])(function (select) { return { isSmall: select('core/viewport').isViewportMatch('< medium'), - sidebarToReOpenOnExpand: select(constants["a" /* STORE_KEY */]).getActiveGeneralSidebarName() + sidebarToReOpenOnExpand: select(STORE_KEY).getActiveGeneralSidebarName() }; }, [postId]), isSmall = _useSelect2.isSmall, sidebarToReOpenOnExpand = _useSelect2.sidebarToReOpenOnExpand; - var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])(constants["a" /* STORE_KEY */]), + var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])(STORE_KEY), openGeneralSidebar = _useDispatch2.openGeneralSidebar, closeGeneralSidebar = _useDispatch2.closeGeneralSidebar; @@ -4205,7 +6043,7 @@ var listener_hooks_useUpdatePostLinkListener = function useUpdatePostLinkListene var nodeToUpdate = Object(external_this_wp_element_["useRef"])(); Object(external_this_wp_element_["useEffect"])(function () { - nodeToUpdate.current = document.querySelector(constants["c" /* VIEW_AS_PREVIEW_LINK_SELECTOR */]) || document.querySelector(constants["b" /* VIEW_AS_LINK_SELECTOR */]); + nodeToUpdate.current = document.querySelector(VIEW_AS_PREVIEW_LINK_SELECTOR) || document.querySelector(VIEW_AS_LINK_SELECTOR); }, [postId]); Object(external_this_wp_element_["useEffect"])(function () { if (!newPermalink || !nodeToUpdate.current) { @@ -4370,7 +6208,7 @@ function (_Component) { return Editor; }(external_this_wp_element_["Component"]); -/* harmony default export */ var editor = __webpack_exports__["a"] = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref) { +/* harmony default export */ var editor = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref) { var postId = _ref.postId, postType = _ref.postType; @@ -4403,138 +6241,7 @@ function (_Component) { }; })])(editor_Editor)); - -/***/ }), - -/***/ 17: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { - arr2[i] = arr[i]; - } - - return arr2; - } -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(30); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance"); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); - - - -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread(); -} - -/***/ }), - -/***/ 18: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); -function _extends() { - _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - - return _extends.apply(this, arguments); -} - -/***/ }), - -/***/ 19: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["keycodes"]; }()); - -/***/ }), - -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 21: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); - -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = _objectWithoutPropertiesLoose(source, excluded); - var key, i; - - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - - return target; -} - -/***/ }), - -/***/ 217: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _plugin_block_settings_menu_group__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(126); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js /** @@ -4553,8 +6260,8 @@ function _objectWithoutProperties(source, excluded) { -var isEverySelectedBlockAllowed = function isEverySelectedBlockAllowed(selected, allowed) { - return Object(lodash__WEBPACK_IMPORTED_MODULE_1__["difference"])(selected, allowed).length === 0; +var plugin_block_settings_menu_item_isEverySelectedBlockAllowed = function isEverySelectedBlockAllowed(selected, allowed) { + return Object(external_lodash_["difference"])(selected, allowed).length === 0; }; /** * Plugins may want to add an item to the menu either for every block @@ -4570,7 +6277,7 @@ var isEverySelectedBlockAllowed = function isEverySelectedBlockAllowed(selected, var shouldRenderItem = function shouldRenderItem(selectedBlocks, allowedBlocks) { - return !Array.isArray(allowedBlocks) || isEverySelectedBlockAllowed(selectedBlocks, allowedBlocks); + return !Array.isArray(allowedBlocks) || plugin_block_settings_menu_item_isEverySelectedBlockAllowed(selectedBlocks, allowedBlocks); }; /** * Renders a new item in the block settings menu. @@ -4627,14 +6334,14 @@ var shouldRenderItem = function shouldRenderItem(selectedBlocks, allowedBlocks) */ -var PluginBlockSettingsMenuItem = function PluginBlockSettingsMenuItem(_ref) { +var plugin_block_settings_menu_item_PluginBlockSettingsMenuItem = function PluginBlockSettingsMenuItem(_ref) { var allowedBlocks = _ref.allowedBlocks, icon = _ref.icon, label = _ref.label, onClick = _ref.onClick, small = _ref.small, role = _ref.role; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_plugin_block_settings_menu_group__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], null, function (_ref2) { + return Object(external_this_wp_element_["createElement"])(plugin_block_settings_menu_group, null, function (_ref2) { var selectedBlocks = _ref2.selectedBlocks, onClose = _ref2.onClose; @@ -4642,9 +6349,9 @@ var PluginBlockSettingsMenuItem = function PluginBlockSettingsMenuItem(_ref) { return null; } - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["MenuItem"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", - onClick: Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_3__["compose"])(onClick, onClose), + onClick: Object(external_this_wp_compose_["compose"])(onClick, onClose), icon: icon || 'admin-plugins', label: small ? label : undefined, role: role @@ -4652,30 +6359,104 @@ var PluginBlockSettingsMenuItem = function PluginBlockSettingsMenuItem(_ref) { }); }; -/* harmony default export */ __webpack_exports__["a"] = (PluginBlockSettingsMenuItem); +/* harmony default export */ var plugin_block_settings_menu_item = (plugin_block_settings_menu_item_PluginBlockSettingsMenuItem); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/plugin-more-menu-item/index.js -/***/ }), -/***/ 218: -/***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _header_pinned_plugins__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(125); -/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88); -/* harmony import */ var _sidebar_header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(127); +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var plugin_more_menu_item_PluginMoreMenuItem = function PluginMoreMenuItem(_ref) { + var _ref$onClick = _ref.onClick, + onClick = _ref$onClick === void 0 ? external_lodash_["noop"] : _ref$onClick, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onClick"]); + + return Object(external_this_wp_element_["createElement"])(plugins_more_menu_group, null, function (fillProps) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], Object(esm_extends["a" /* default */])({}, props, { + onClick: Object(external_this_wp_compose_["compose"])(onClick, fillProps.onClose) + })); + }); +}; +/** + * Renders a menu item in `Plugins` group in `More Menu` drop down, and can be used to as a button or link depending on the props provided. + * The text within the component appears as the menu item label. + * + * @param {Object} props Component properties. + * @param {string} [props.href] When `href` is provided then the menu item is represented as an anchor rather than button. It corresponds to the `href` attribute of the anchor. + * @param {string|Element} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label. + * @param {Function} [props.onClick=noop] The callback function to be executed when the user clicks the menu item. + * @param {...*} [props.other] Any additional props are passed through to the underlying [MenuItem](/packages/components/src/menu-item/README.md) component. + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var __ = wp.i18n.__; + * var PluginMoreMenuItem = wp.editPost.PluginMoreMenuItem; + * + * function onButtonClick() { + * alert( 'Button clicked.' ); + * } + * + * function MyButtonMoreMenuItem() { + * return wp.element.createElement( + * PluginMoreMenuItem, + * { + * icon: 'smiley', + * onClick: onButtonClick + * }, + * __( 'My button title' ) + * ) + * } + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * const { __ } = wp.i18n; + * const { PluginMoreMenuItem } = wp.editPost; + * + * function onButtonClick() { + * alert( 'Button clicked.' ); + * } + * + * const MyButtonMoreMenuItem = () => ( + * + * { __( 'My button title' ) } + * + * ); + * ``` + * + * @return {WPElement} The element to be rendered. + */ + + +/* harmony default export */ var plugin_more_menu_item = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) { + return { + icon: ownProps.icon || context.icon + }; +}))(plugin_more_menu_item_PluginMoreMenuItem)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-sidebar/index.js /** @@ -4706,24 +6487,24 @@ function PluginSidebar(props) { title = props.title, togglePin = props.togglePin, toggleSidebar = props.toggleSidebar; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, isPinnable && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_header_pinned_plugins__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], null, isPinned && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["IconButton"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, isPinnable && Object(external_this_wp_element_["createElement"])(pinned_plugins, null, isPinned && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { icon: icon, label: title, onClick: toggleSidebar, isToggled: isActive, "aria-expanded": isActive - })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(___WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], { + })), Object(external_this_wp_element_["createElement"])(sidebar, { name: sidebarName, - label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Editor plugins') - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_sidebar_header__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], { - closeLabel: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Close plugin') - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("strong", null, title), isPinnable && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["IconButton"], { + label: Object(external_this_wp_i18n_["__"])('Editor plugins') + }, Object(external_this_wp_element_["createElement"])(sidebar_header, { + closeLabel: Object(external_this_wp_i18n_["__"])('Close plugin') + }, Object(external_this_wp_element_["createElement"])("strong", null, title), isPinnable && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { icon: isPinned ? 'star-filled' : 'star-empty', - label: isPinned ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Unpin from toolbar') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Pin to toolbar'), + label: isPinned ? Object(external_this_wp_i18n_["__"])('Unpin from toolbar') : Object(external_this_wp_i18n_["__"])('Pin to toolbar'), onClick: togglePin, isToggled: isPinned, "aria-expanded": isPinned - })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Panel"], { + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Panel"], { className: className }, children))); } @@ -4793,12 +6574,12 @@ function PluginSidebar(props) { */ -/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__["compose"])(Object(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_4__["withPluginContext"])(function (context, ownProps) { +/* harmony default export */ var plugin_sidebar = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) { return { icon: ownProps.icon || context.icon, sidebarName: "".concat(context.name, "/").concat(ownProps.name) }; -}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["withSelect"])(function (select, _ref) { +}), Object(external_this_wp_data_["withSelect"])(function (select, _ref) { var sidebarName = _ref.sidebarName; var _select = select('core/edit-post'), @@ -4809,7 +6590,7 @@ function PluginSidebar(props) { isActive: getActiveGeneralSidebarName() === sidebarName, isPinned: isPluginItemPinned(sidebarName) }; -}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["withDispatch"])(function (dispatch, _ref2) { +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { var isActive = _ref2.isActive, sidebarName = _ref2.sidebarName; @@ -4832,22 +6613,7 @@ function PluginSidebar(props) { }; }))(PluginSidebar)); - -/***/ }), - -/***/ 219: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(52); -/* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _plugin_more_menu_item__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(121); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/plugin-sidebar-more-menu-item/index.js /** @@ -4862,12 +6628,12 @@ function PluginSidebar(props) { -var PluginSidebarMoreMenuItem = function PluginSidebarMoreMenuItem(_ref) { +var plugin_sidebar_more_menu_item_PluginSidebarMoreMenuItem = function PluginSidebarMoreMenuItem(_ref) { var children = _ref.children, icon = _ref.icon, isSelected = _ref.isSelected, onClick = _ref.onClick; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_plugin_more_menu_item__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], { + return Object(external_this_wp_element_["createElement"])(plugin_more_menu_item, { icon: isSelected ? 'yes' : icon, isSelected: isSelected, role: "menuitemcheckbox", @@ -4921,12 +6687,12 @@ var PluginSidebarMoreMenuItem = function PluginSidebarMoreMenuItem(_ref) { */ -/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_1__["compose"])(Object(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_3__["withPluginContext"])(function (context, ownProps) { +/* harmony default export */ var plugin_sidebar_more_menu_item = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) { return { icon: ownProps.icon || context.icon, sidebarName: "".concat(context.name, "/").concat(ownProps.target) }; -}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["withSelect"])(function (select, _ref2) { +}), Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { var sidebarName = _ref2.sidebarName; var _select = select('core/edit-post'), @@ -4935,7 +6701,7 @@ var PluginSidebarMoreMenuItem = function PluginSidebarMoreMenuItem(_ref) { return { isSelected: getActiveGeneralSidebarName() === sidebarName }; -}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["withDispatch"])(function (dispatch, _ref3) { +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { var isSelected = _ref3.isSelected, sidebarName = _ref3.sidebarName; @@ -4949,118 +6715,113 @@ var PluginSidebarMoreMenuItem = function PluginSidebarMoreMenuItem(_ref) { return { onClick: onClick }; -}))(PluginSidebarMoreMenuItem)); +}))(plugin_sidebar_more_menu_item_PluginSidebarMoreMenuItem)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reinitializeEditor", function() { return reinitializeEditor; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeEditor", function() { return initializeEditor; }); +/* concated harmony reexport PluginBlockSettingsMenuItem */__webpack_require__.d(__webpack_exports__, "PluginBlockSettingsMenuItem", function() { return plugin_block_settings_menu_item; }); +/* concated harmony reexport PluginDocumentSettingPanel */__webpack_require__.d(__webpack_exports__, "PluginDocumentSettingPanel", function() { return plugin_document_setting_panel; }); +/* concated harmony reexport PluginMoreMenuItem */__webpack_require__.d(__webpack_exports__, "PluginMoreMenuItem", function() { return plugin_more_menu_item; }); +/* concated harmony reexport PluginPostPublishPanel */__webpack_require__.d(__webpack_exports__, "PluginPostPublishPanel", function() { return plugin_post_publish_panel; }); +/* concated harmony reexport PluginPostStatusInfo */__webpack_require__.d(__webpack_exports__, "PluginPostStatusInfo", function() { return plugin_post_status_info; }); +/* concated harmony reexport PluginPrePublishPanel */__webpack_require__.d(__webpack_exports__, "PluginPrePublishPanel", function() { return plugin_pre_publish_panel; }); +/* concated harmony reexport PluginSidebar */__webpack_require__.d(__webpack_exports__, "PluginSidebar", function() { return plugin_sidebar; }); +/* concated harmony reexport PluginSidebarMoreMenuItem */__webpack_require__.d(__webpack_exports__, "PluginSidebarMoreMenuItem", function() { return plugin_sidebar_more_menu_item; }); -/***/ }), +/** + * WordPress dependencies + */ -/***/ 23: -/***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js -var arrayWithHoles = __webpack_require__(38); -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js -function _iterableToArrayLimit(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } + + +/** + * Internal dependencies + */ + + + + + +/** + * Reinitializes the editor after the user chooses to reboot the editor after + * an unhandled error occurs, replacing previously mounted editor element using + * an initial state from prior to the crash. + * + * @param {Object} postType Post type of the post to edit. + * @param {Object} postId ID of the post to edit. + * @param {Element} target DOM node in which editor is rendered. + * @param {?Object} settings Editor settings object. + * @param {Object} initialEdits Programmatic edits to apply initially, to be + * considered as non-user-initiated (bypass for + * unsaved changes prompt). + */ + +function reinitializeEditor(postType, postId, target, settings, initialEdits) { + Object(external_this_wp_element_["unmountComponentAtNode"])(target); + var reboot = reinitializeEditor.bind(null, postType, postId, target, settings, initialEdits); + Object(external_this_wp_element_["render"])(Object(external_this_wp_element_["createElement"])(editor, { + settings: settings, + onError: reboot, + postId: postId, + postType: postType, + initialEdits: initialEdits, + recovery: true + }), target); +} +/** + * Initializes and returns an instance of Editor. + * + * The return value of this function is not necessary if we change where we + * call initializeEditor(). This is due to metaBox timing. + * + * @param {string} id Unique identifier for editor instance. + * @param {Object} postType Post type of the post to edit. + * @param {Object} postId ID of the post to edit. + * @param {?Object} settings Editor settings object. + * @param {Object} initialEdits Programmatic edits to apply initially, to be + * considered as non-user-initiated (bypass for + * unsaved changes prompt). + */ + +function initializeEditor(id, postType, postId, settings, initialEdits) { + var target = document.getElementById(id); + var reboot = reinitializeEditor.bind(null, postType, postId, target, settings, initialEdits); + Object(external_this_wp_blockLibrary_["registerCoreBlocks"])(); + + if (false) {} // Show a console log warning if the browser is not in Standards rendering mode. + + + var documentMode = document.compatMode === 'CSS1Compat' ? 'Standards' : 'Quirks'; + + if (documentMode !== 'Standards') { + // eslint-disable-next-line no-console + console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening . Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."); } - return _arr; -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js -var nonIterableRest = __webpack_require__(39); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); - - - -function _slicedToArray(arr, i) { - return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])(); + Object(external_this_wp_element_["render"])(Object(external_this_wp_element_["createElement"])(editor, { + settings: settings, + onError: reboot, + postId: postId, + postType: postType, + initialEdits: initialEdits + }), target); } -/***/ }), -/***/ 24: -/***/ (function(module, exports) { -(function() { module.exports = this["wp"]["editor"]; }()); -/***/ }), -/***/ 26: -/***/ (function(module, exports) { -(function() { module.exports = this["wp"]["url"]; }()); -/***/ }), -/***/ 27: -/***/ (function(module, exports) { -(function() { module.exports = this["wp"]["hooks"]; }()); - -/***/ }), - -/***/ 3: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["components"]; }()); - -/***/ }), - -/***/ 30: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); -} - -/***/ }), - -/***/ 31: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); -function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); } - -function _typeof(obj) { - if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") { - _typeof = function _typeof(obj) { - return _typeof2(obj); - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj); - }; - } - - return _typeof(obj); -} /***/ }), @@ -5351,157 +7112,6 @@ function isShallowEqual( a, b, fromIndex ) { }); -/***/ }), - -/***/ 364: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reinitializeEditor", function() { return reinitializeEditor; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeEditor", function() { return initializeEditor; }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_core_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97); -/* harmony import */ var _wordpress_core_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_core_data__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24); -/* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_nux__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63); -/* harmony import */ var _wordpress_nux__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_nux__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_viewport__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43); -/* harmony import */ var _wordpress_viewport__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_viewport__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(157); -/* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_notices__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _wordpress_block_library__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(161); -/* harmony import */ var _wordpress_block_library__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_library__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(407); -/* harmony import */ var _plugins__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(405); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(392); -/* harmony import */ var _editor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(163); -/* harmony import */ var _components_block_settings_menu_plugin_block_settings_menu_item__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(217); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginBlockSettingsMenuItem", function() { return _components_block_settings_menu_plugin_block_settings_menu_item__WEBPACK_IMPORTED_MODULE_12__["a"]; }); - -/* harmony import */ var _components_sidebar_plugin_document_setting_panel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(118); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginDocumentSettingPanel", function() { return _components_sidebar_plugin_document_setting_panel__WEBPACK_IMPORTED_MODULE_13__["a"]; }); - -/* harmony import */ var _components_header_plugin_more_menu_item__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(121); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginMoreMenuItem", function() { return _components_header_plugin_more_menu_item__WEBPACK_IMPORTED_MODULE_14__["a"]; }); - -/* harmony import */ var _components_sidebar_plugin_post_publish_panel__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(119); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginPostPublishPanel", function() { return _components_sidebar_plugin_post_publish_panel__WEBPACK_IMPORTED_MODULE_15__["a"]; }); - -/* harmony import */ var _components_sidebar_plugin_post_status_info__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(117); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginPostStatusInfo", function() { return _components_sidebar_plugin_post_status_info__WEBPACK_IMPORTED_MODULE_16__["a"]; }); - -/* harmony import */ var _components_sidebar_plugin_pre_publish_panel__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(120); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginPrePublishPanel", function() { return _components_sidebar_plugin_pre_publish_panel__WEBPACK_IMPORTED_MODULE_17__["a"]; }); - -/* harmony import */ var _components_sidebar_plugin_sidebar__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(218); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginSidebar", function() { return _components_sidebar_plugin_sidebar__WEBPACK_IMPORTED_MODULE_18__["a"]; }); - -/* harmony import */ var _components_header_plugin_sidebar_more_menu_item__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(219); -/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PluginSidebarMoreMenuItem", function() { return _components_header_plugin_sidebar_more_menu_item__WEBPACK_IMPORTED_MODULE_19__["a"]; }); - - - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - - - -/** - * Reinitializes the editor after the user chooses to reboot the editor after - * an unhandled error occurs, replacing previously mounted editor element using - * an initial state from prior to the crash. - * - * @param {Object} postType Post type of the post to edit. - * @param {Object} postId ID of the post to edit. - * @param {Element} target DOM node in which editor is rendered. - * @param {?Object} settings Editor settings object. - * @param {Object} initialEdits Programmatic edits to apply initially, to be - * considered as non-user-initiated (bypass for - * unsaved changes prompt). - */ - -function reinitializeEditor(postType, postId, target, settings, initialEdits) { - Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["unmountComponentAtNode"])(target); - var reboot = reinitializeEditor.bind(null, postType, postId, target, settings, initialEdits); - Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_editor__WEBPACK_IMPORTED_MODULE_11__[/* default */ "a"], { - settings: settings, - onError: reboot, - postId: postId, - postType: postType, - initialEdits: initialEdits, - recovery: true - }), target); -} -/** - * Initializes and returns an instance of Editor. - * - * The return value of this function is not necessary if we change where we - * call initializeEditor(). This is due to metaBox timing. - * - * @param {string} id Unique identifier for editor instance. - * @param {Object} postType Post type of the post to edit. - * @param {Object} postId ID of the post to edit. - * @param {?Object} settings Editor settings object. - * @param {Object} initialEdits Programmatic edits to apply initially, to be - * considered as non-user-initiated (bypass for - * unsaved changes prompt). - */ - -function initializeEditor(id, postType, postId, settings, initialEdits) { - var target = document.getElementById(id); - var reboot = reinitializeEditor.bind(null, postType, postId, target, settings, initialEdits); - Object(_wordpress_block_library__WEBPACK_IMPORTED_MODULE_7__["registerCoreBlocks"])(); - - if (process.env.GUTENBERG_PHASE === 2) { - Object(_wordpress_block_library__WEBPACK_IMPORTED_MODULE_7__["__experimentalRegisterExperimentalCoreBlocks"])(settings); - } // Show a console log warning if the browser is not in Standards rendering mode. - - - var documentMode = document.compatMode === 'CSS1Compat' ? 'Standards' : 'Quirks'; - - if (documentMode !== 'Standards') { - // eslint-disable-next-line no-console - console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening . Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."); - } - - Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_editor__WEBPACK_IMPORTED_MODULE_11__[/* default */ "a"], { - settings: settings, - onError: reboot, - postId: postId, - postType: postType, - initialEdits: initialEdits - }), target); -} - - - - - - - - - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(96))) - /***/ }), /***/ 38: @@ -5524,1215 +7134,6 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } -/***/ }), - -/***/ 392: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -var actions_namespaceObject = {}; -__webpack_require__.r(actions_namespaceObject); -__webpack_require__.d(actions_namespaceObject, "openGeneralSidebar", function() { return openGeneralSidebar; }); -__webpack_require__.d(actions_namespaceObject, "closeGeneralSidebar", function() { return closeGeneralSidebar; }); -__webpack_require__.d(actions_namespaceObject, "openModal", function() { return openModal; }); -__webpack_require__.d(actions_namespaceObject, "closeModal", function() { return closeModal; }); -__webpack_require__.d(actions_namespaceObject, "openPublishSidebar", function() { return openPublishSidebar; }); -__webpack_require__.d(actions_namespaceObject, "closePublishSidebar", function() { return closePublishSidebar; }); -__webpack_require__.d(actions_namespaceObject, "togglePublishSidebar", function() { return togglePublishSidebar; }); -__webpack_require__.d(actions_namespaceObject, "toggleEditorPanelEnabled", function() { return toggleEditorPanelEnabled; }); -__webpack_require__.d(actions_namespaceObject, "toggleEditorPanelOpened", function() { return toggleEditorPanelOpened; }); -__webpack_require__.d(actions_namespaceObject, "removeEditorPanel", function() { return removeEditorPanel; }); -__webpack_require__.d(actions_namespaceObject, "toggleFeature", function() { return toggleFeature; }); -__webpack_require__.d(actions_namespaceObject, "switchEditorMode", function() { return switchEditorMode; }); -__webpack_require__.d(actions_namespaceObject, "togglePinnedPluginItem", function() { return togglePinnedPluginItem; }); -__webpack_require__.d(actions_namespaceObject, "hideBlockTypes", function() { return hideBlockTypes; }); -__webpack_require__.d(actions_namespaceObject, "updatePreferredStyleVariations", function() { return updatePreferredStyleVariations; }); -__webpack_require__.d(actions_namespaceObject, "__experimentalUpdateLocalAutosaveInterval", function() { return __experimentalUpdateLocalAutosaveInterval; }); -__webpack_require__.d(actions_namespaceObject, "showBlockTypes", function() { return showBlockTypes; }); -__webpack_require__.d(actions_namespaceObject, "setAvailableMetaBoxesPerLocation", function() { return setAvailableMetaBoxesPerLocation; }); -__webpack_require__.d(actions_namespaceObject, "requestMetaBoxUpdates", function() { return requestMetaBoxUpdates; }); -__webpack_require__.d(actions_namespaceObject, "metaBoxUpdatesSuccess", function() { return metaBoxUpdatesSuccess; }); -var selectors_namespaceObject = {}; -__webpack_require__.r(selectors_namespaceObject); -__webpack_require__.d(selectors_namespaceObject, "getEditorMode", function() { return getEditorMode; }); -__webpack_require__.d(selectors_namespaceObject, "isEditorSidebarOpened", function() { return isEditorSidebarOpened; }); -__webpack_require__.d(selectors_namespaceObject, "isPluginSidebarOpened", function() { return isPluginSidebarOpened; }); -__webpack_require__.d(selectors_namespaceObject, "getActiveGeneralSidebarName", function() { return getActiveGeneralSidebarName; }); -__webpack_require__.d(selectors_namespaceObject, "getPreferences", function() { return getPreferences; }); -__webpack_require__.d(selectors_namespaceObject, "getPreference", function() { return getPreference; }); -__webpack_require__.d(selectors_namespaceObject, "isPublishSidebarOpened", function() { return isPublishSidebarOpened; }); -__webpack_require__.d(selectors_namespaceObject, "isEditorPanelRemoved", function() { return isEditorPanelRemoved; }); -__webpack_require__.d(selectors_namespaceObject, "isEditorPanelEnabled", function() { return isEditorPanelEnabled; }); -__webpack_require__.d(selectors_namespaceObject, "isEditorPanelOpened", function() { return isEditorPanelOpened; }); -__webpack_require__.d(selectors_namespaceObject, "isModalActive", function() { return isModalActive; }); -__webpack_require__.d(selectors_namespaceObject, "isFeatureActive", function() { return isFeatureActive; }); -__webpack_require__.d(selectors_namespaceObject, "isPluginItemPinned", function() { return isPluginItemPinned; }); -__webpack_require__.d(selectors_namespaceObject, "getActiveMetaBoxLocations", function() { return getActiveMetaBoxLocations; }); -__webpack_require__.d(selectors_namespaceObject, "isMetaBoxLocationVisible", function() { return isMetaBoxLocationVisible; }); -__webpack_require__.d(selectors_namespaceObject, "isMetaBoxLocationActive", function() { return isMetaBoxLocationActive; }); -__webpack_require__.d(selectors_namespaceObject, "getMetaBoxesPerLocation", function() { return getMetaBoxesPerLocation; }); -__webpack_require__.d(selectors_namespaceObject, "getAllMetaBoxes", function() { return getAllMetaBoxes; }); -__webpack_require__.d(selectors_namespaceObject, "hasMetaBoxes", function() { return hasMetaBoxes; }); -__webpack_require__.d(selectors_namespaceObject, "isSavingMetaBoxes", function() { return selectors_isSavingMetaBoxes; }); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(17); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(7); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/defaults.js -var PREFERENCES_DEFAULTS = { - editorMode: 'visual', - isGeneralSidebarDismissed: false, - panels: { - 'post-status': { - opened: true - } - }, - features: { - fixedToolbar: false, - showInserterHelpPanel: true - }, - pinnedPluginItems: {}, - hiddenBlockTypes: [], - preferredStyleVariations: {}, - localAutosaveInterval: 15 -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/reducer.js - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -/** - * The default active general sidebar: The "Document" tab. - * - * @type {string} - */ - -var DEFAULT_ACTIVE_GENERAL_SIDEBAR = 'edit-post/document'; -/** - * Higher-order reducer creator which provides the given initial state for the - * original reducer. - * - * @param {*} initialState Initial state to provide to reducer. - * - * @return {Function} Higher-order reducer. - */ - -var createWithInitialState = function createWithInitialState(initialState) { - return function (reducer) { - return function () { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState; - var action = arguments.length > 1 ? arguments[1] : undefined; - return reducer(state, action); - }; - }; -}; -/** - * Reducer returning the user preferences. - * - * @param {Object} state Current state. - * @param {string} state.mode Current editor mode, either - * "visual" or "text". - * @param {boolean} state.isGeneralSidebarDismissed Whether general sidebar is - * dismissed. False by default - * or when closing general - * sidebar, true when opening - * sidebar. - * @param {boolean} state.isSidebarOpened Whether the sidebar is - * opened or closed. - * @param {Object} state.panels The state of the different - * sidebar panels. - * @param {Object} action Dispatched action. - * - * @return {Object} Updated state. - */ - - -var preferences = Object(external_lodash_["flow"])([external_this_wp_data_["combineReducers"], createWithInitialState(PREFERENCES_DEFAULTS)])({ - isGeneralSidebarDismissed: function isGeneralSidebarDismissed(state, action) { - switch (action.type) { - case 'OPEN_GENERAL_SIDEBAR': - case 'CLOSE_GENERAL_SIDEBAR': - return action.type === 'CLOSE_GENERAL_SIDEBAR'; - } - - return state; - }, - panels: function panels(state, action) { - switch (action.type) { - case 'TOGGLE_PANEL_ENABLED': - { - var panelName = action.panelName; - return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, panelName, Object(objectSpread["a" /* default */])({}, state[panelName], { - enabled: !Object(external_lodash_["get"])(state, [panelName, 'enabled'], true) - }))); - } - - case 'TOGGLE_PANEL_OPENED': - { - var _panelName = action.panelName; - var isOpen = state[_panelName] === true || Object(external_lodash_["get"])(state, [_panelName, 'opened'], false); - return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, _panelName, Object(objectSpread["a" /* default */])({}, state[_panelName], { - opened: !isOpen - }))); - } - } - - return state; - }, - features: function features(state, action) { - if (action.type === 'TOGGLE_FEATURE') { - return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.feature, !state[action.feature])); - } - - return state; - }, - editorMode: function editorMode(state, action) { - if (action.type === 'SWITCH_MODE') { - return action.mode; - } - - return state; - }, - pinnedPluginItems: function pinnedPluginItems(state, action) { - if (action.type === 'TOGGLE_PINNED_PLUGIN_ITEM') { - return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.pluginName, !Object(external_lodash_["get"])(state, [action.pluginName], true))); - } - - return state; - }, - hiddenBlockTypes: function hiddenBlockTypes(state, action) { - switch (action.type) { - case 'SHOW_BLOCK_TYPES': - return external_lodash_["without"].apply(void 0, [state].concat(Object(toConsumableArray["a" /* default */])(action.blockNames))); - - case 'HIDE_BLOCK_TYPES': - return Object(external_lodash_["union"])(state, action.blockNames); - } - - return state; - }, - preferredStyleVariations: function preferredStyleVariations(state, action) { - switch (action.type) { - case 'UPDATE_PREFERRED_STYLE_VARIATIONS': - { - if (!action.blockName) { - return state; - } - - if (!action.blockStyle) { - return Object(external_lodash_["omit"])(state, [action.blockName]); - } - - return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.blockName, action.blockStyle)); - } - } - - return state; - }, - localAutosaveInterval: function localAutosaveInterval(state, action) { - switch (action.type) { - case 'UPDATE_LOCAL_AUTOSAVE_INTERVAL': - return action.interval; - } - - return state; - } -}); -/** - * Reducer storing the list of all programmatically removed panels. - * - * @param {Array} state Current state. - * @param {Object} action Action object. - * - * @return {Array} Updated state. - */ - -function removedPanels() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'REMOVE_PANEL': - if (!Object(external_lodash_["includes"])(state, action.panelName)) { - return [].concat(Object(toConsumableArray["a" /* default */])(state), [action.panelName]); - } - - } - - return state; -} -/** - * Reducer returning the next active general sidebar state. The active general - * sidebar is a unique name to identify either an editor or plugin sidebar. - * - * @param {?string} state Current state. - * @param {Object} action Action object. - * - * @return {?string} Updated state. - */ - -function reducer_activeGeneralSidebar() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_ACTIVE_GENERAL_SIDEBAR; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'OPEN_GENERAL_SIDEBAR': - return action.name; - } - - return state; -} -/** - * Reducer for storing the name of the open modal, or null if no modal is open. - * - * @param {Object} state Previous state. - * @param {Object} action Action object containing the `name` of the modal - * - * @return {Object} Updated state - */ - -function activeModal() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'OPEN_MODAL': - return action.name; - - case 'CLOSE_MODAL': - return null; - } - - return state; -} -function publishSidebarActive() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'OPEN_PUBLISH_SIDEBAR': - return true; - - case 'CLOSE_PUBLISH_SIDEBAR': - return false; - - case 'TOGGLE_PUBLISH_SIDEBAR': - return !state; - } - - return state; -} -/** - * Reducer keeping track of the meta boxes isSaving state. - * A "true" value means the meta boxes saving request is in-flight. - * - * - * @param {boolean} state Previous state. - * @param {Object} action Action Object. - * - * @return {Object} Updated state. - */ - -function isSavingMetaBoxes() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'REQUEST_META_BOX_UPDATES': - return true; - - case 'META_BOX_UPDATES_SUCCESS': - return false; - - default: - return state; - } -} -/** - * Reducer keeping track of the meta boxes per location. - * - * @param {boolean} state Previous state. - * @param {Object} action Action Object. - * - * @return {Object} Updated state. - */ - -function metaBoxLocations() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'SET_META_BOXES_PER_LOCATIONS': - return action.metaBoxesPerLocation; - } - - return state; -} -var metaBoxes = Object(external_this_wp_data_["combineReducers"])({ - isSaving: isSavingMetaBoxes, - locations: metaBoxLocations -}); -/* harmony default export */ var reducer = (Object(external_this_wp_data_["combineReducers"])({ - activeGeneralSidebar: reducer_activeGeneralSidebar, - activeModal: activeModal, - metaBoxes: metaBoxes, - preferences: preferences, - publishSidebarActive: publishSidebarActive, - removedPanels: removedPanels -})); - -// EXTERNAL MODULE: ./node_modules/refx/refx.js -var refx = __webpack_require__(76); -var refx_default = /*#__PURE__*/__webpack_require__.n(refx); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); - -// EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(46); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(32); -var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js -/** - * External dependencies - */ - -/** - * Returns an action object used in signalling that the user opened an editor sidebar. - * - * @param {string} name Sidebar name to be opened. - * - * @return {Object} Action object. - */ - -function openGeneralSidebar(name) { - return { - type: 'OPEN_GENERAL_SIDEBAR', - name: name - }; -} -/** - * Returns an action object signalling that the user closed the sidebar. - * - * @return {Object} Action object. - */ - -function closeGeneralSidebar() { - return { - type: 'CLOSE_GENERAL_SIDEBAR' - }; -} -/** - * Returns an action object used in signalling that the user opened a modal. - * - * @param {string} name A string that uniquely identifies the modal. - * - * @return {Object} Action object. - */ - -function openModal(name) { - return { - type: 'OPEN_MODAL', - name: name - }; -} -/** - * Returns an action object signalling that the user closed a modal. - * - * @return {Object} Action object. - */ - -function closeModal() { - return { - type: 'CLOSE_MODAL' - }; -} -/** - * Returns an action object used in signalling that the user opened the publish - * sidebar. - * - * @return {Object} Action object - */ - -function openPublishSidebar() { - return { - type: 'OPEN_PUBLISH_SIDEBAR' - }; -} -/** - * Returns an action object used in signalling that the user closed the - * publish sidebar. - * - * @return {Object} Action object. - */ - -function closePublishSidebar() { - return { - type: 'CLOSE_PUBLISH_SIDEBAR' - }; -} -/** - * Returns an action object used in signalling that the user toggles the publish sidebar. - * - * @return {Object} Action object - */ - -function togglePublishSidebar() { - return { - type: 'TOGGLE_PUBLISH_SIDEBAR' - }; -} -/** - * Returns an action object used to enable or disable a panel in the editor. - * - * @param {string} panelName A string that identifies the panel to enable or disable. - * - * @return {Object} Action object. - */ - -function toggleEditorPanelEnabled(panelName) { - return { - type: 'TOGGLE_PANEL_ENABLED', - panelName: panelName - }; -} -/** - * Returns an action object used to open or close a panel in the editor. - * - * @param {string} panelName A string that identifies the panel to open or close. - * - * @return {Object} Action object. - */ - -function toggleEditorPanelOpened(panelName) { - return { - type: 'TOGGLE_PANEL_OPENED', - panelName: panelName - }; -} -/** - * Returns an action object used to remove a panel from the editor. - * - * @param {string} panelName A string that identifies the panel to remove. - * - * @return {Object} Action object. - */ - -function removeEditorPanel(panelName) { - return { - type: 'REMOVE_PANEL', - panelName: panelName - }; -} -/** - * Returns an action object used to toggle a feature flag. - * - * @param {string} feature Feature name. - * - * @return {Object} Action object. - */ - -function toggleFeature(feature) { - return { - type: 'TOGGLE_FEATURE', - feature: feature - }; -} -function switchEditorMode(mode) { - return { - type: 'SWITCH_MODE', - mode: mode - }; -} -/** - * Returns an action object used to toggle a plugin name flag. - * - * @param {string} pluginName Plugin name. - * - * @return {Object} Action object. - */ - -function togglePinnedPluginItem(pluginName) { - return { - type: 'TOGGLE_PINNED_PLUGIN_ITEM', - pluginName: pluginName - }; -} -/** - * Returns an action object used in signalling that block types by the given - * name(s) should be hidden. - * - * @param {string[]} blockNames Names of block types to hide. - * - * @return {Object} Action object. - */ - -function hideBlockTypes(blockNames) { - return { - type: 'HIDE_BLOCK_TYPES', - blockNames: Object(external_lodash_["castArray"])(blockNames) - }; -} -/** - * Returns an action object used in signaling that a style should be auto-applied when a block is created. - * - * @param {string} blockName Name of the block. - * @param {?string} blockStyle Name of the style that should be auto applied. If undefined, the "auto apply" setting of the block is removed. - * - * @return {Object} Action object. - */ - -function updatePreferredStyleVariations(blockName, blockStyle) { - return { - type: 'UPDATE_PREFERRED_STYLE_VARIATIONS', - blockName: blockName, - blockStyle: blockStyle - }; -} -function __experimentalUpdateLocalAutosaveInterval(interval) { - return { - type: 'UPDATE_LOCAL_AUTOSAVE_INTERVAL', - interval: interval - }; -} -/** - * Returns an action object used in signalling that block types by the given - * name(s) should be shown. - * - * @param {string[]} blockNames Names of block types to show. - * - * @return {Object} Action object. - */ - -function showBlockTypes(blockNames) { - return { - type: 'SHOW_BLOCK_TYPES', - blockNames: Object(external_lodash_["castArray"])(blockNames) - }; -} -/** - * Returns an action object used in signaling - * what Meta boxes are available in which location. - * - * @param {Object} metaBoxesPerLocation Meta boxes per location. - * - * @return {Object} Action object. - */ - -function setAvailableMetaBoxesPerLocation(metaBoxesPerLocation) { - return { - type: 'SET_META_BOXES_PER_LOCATIONS', - metaBoxesPerLocation: metaBoxesPerLocation - }; -} -/** - * Returns an action object used to request meta box update. - * - * @return {Object} Action object. - */ - -function requestMetaBoxUpdates() { - return { - type: 'REQUEST_META_BOX_UPDATES' - }; -} -/** - * Returns an action object used signal a successful meta box update. - * - * @return {Object} Action object. - */ - -function metaBoxUpdatesSuccess() { - return { - type: 'META_BOX_UPDATES_SUCCESS' - }; -} - -// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(36); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js -/** - * External dependencies - */ - - -/** - * Returns the current editing mode. - * - * @param {Object} state Global application state. - * - * @return {string} Editing mode. - */ - -function getEditorMode(state) { - return getPreference(state, 'editorMode', 'visual'); -} -/** - * Returns true if the editor sidebar is opened. - * - * @param {Object} state Global application state - * - * @return {boolean} Whether the editor sidebar is opened. - */ - -function isEditorSidebarOpened(state) { - var activeGeneralSidebar = getActiveGeneralSidebarName(state); - return Object(external_lodash_["includes"])(['edit-post/document', 'edit-post/block'], activeGeneralSidebar); -} -/** - * Returns true if the plugin sidebar is opened. - * - * @param {Object} state Global application state - * @return {boolean} Whether the plugin sidebar is opened. - */ - -function isPluginSidebarOpened(state) { - var activeGeneralSidebar = getActiveGeneralSidebarName(state); - return !!activeGeneralSidebar && !isEditorSidebarOpened(state); -} -/** - * Returns the current active general sidebar name, or null if there is no - * general sidebar active. The active general sidebar is a unique name to - * identify either an editor or plugin sidebar. - * - * Examples: - * - * - `edit-post/document` - * - `my-plugin/insert-image-sidebar` - * - * @param {Object} state Global application state. - * - * @return {?string} Active general sidebar name. - */ - -function getActiveGeneralSidebarName(state) { - // Dismissal takes precedent. - var isDismissed = getPreference(state, 'isGeneralSidebarDismissed', false); - - if (isDismissed) { - return null; - } - - return state.activeGeneralSidebar; -} -/** - * Returns the preferences (these preferences are persisted locally). - * - * @param {Object} state Global application state. - * - * @return {Object} Preferences Object. - */ - -function getPreferences(state) { - return state.preferences; -} -/** - * - * @param {Object} state Global application state. - * @param {string} preferenceKey Preference Key. - * @param {Mixed} defaultValue Default Value. - * - * @return {Mixed} Preference Value. - */ - -function getPreference(state, preferenceKey, defaultValue) { - var preferences = getPreferences(state); - var value = preferences[preferenceKey]; - return value === undefined ? defaultValue : value; -} -/** - * Returns true if the publish sidebar is opened. - * - * @param {Object} state Global application state - * - * @return {boolean} Whether the publish sidebar is open. - */ - -function isPublishSidebarOpened(state) { - return state.publishSidebarActive; -} -/** - * Returns true if the given panel was programmatically removed, or false otherwise. - * All panels are not removed by default. - * - * @param {Object} state Global application state. - * @param {string} panelName A string that identifies the panel. - * - * @return {boolean} Whether or not the panel is removed. - */ - -function isEditorPanelRemoved(state, panelName) { - return Object(external_lodash_["includes"])(state.removedPanels, panelName); -} -/** - * Returns true if the given panel is enabled, or false otherwise. Panels are - * enabled by default. - * - * @param {Object} state Global application state. - * @param {string} panelName A string that identifies the panel. - * - * @return {boolean} Whether or not the panel is enabled. - */ - -function isEditorPanelEnabled(state, panelName) { - var panels = getPreference(state, 'panels'); - return !isEditorPanelRemoved(state, panelName) && Object(external_lodash_["get"])(panels, [panelName, 'enabled'], true); -} -/** - * Returns true if the given panel is open, or false otherwise. Panels are - * closed by default. - * - * @param {Object} state Global application state. - * @param {string} panelName A string that identifies the panel. - * - * @return {boolean} Whether or not the panel is open. - */ - -function isEditorPanelOpened(state, panelName) { - var panels = getPreference(state, 'panels'); - return Object(external_lodash_["get"])(panels, [panelName]) === true || Object(external_lodash_["get"])(panels, [panelName, 'opened']) === true; -} -/** - * Returns true if a modal is active, or false otherwise. - * - * @param {Object} state Global application state. - * @param {string} modalName A string that uniquely identifies the modal. - * - * @return {boolean} Whether the modal is active. - */ - -function isModalActive(state, modalName) { - return state.activeModal === modalName; -} -/** - * Returns whether the given feature is enabled or not. - * - * @param {Object} state Global application state. - * @param {string} feature Feature slug. - * - * @return {boolean} Is active. - */ - -function isFeatureActive(state, feature) { - return Object(external_lodash_["get"])(state.preferences.features, [feature], false); -} -/** - * Returns true if the plugin item is pinned to the header. - * When the value is not set it defaults to true. - * - * @param {Object} state Global application state. - * @param {string} pluginName Plugin item name. - * - * @return {boolean} Whether the plugin item is pinned. - */ - -function isPluginItemPinned(state, pluginName) { - var pinnedPluginItems = getPreference(state, 'pinnedPluginItems', {}); - return Object(external_lodash_["get"])(pinnedPluginItems, [pluginName], true); -} -/** - * Returns an array of active meta box locations. - * - * @param {Object} state Post editor state. - * - * @return {string[]} Active meta box locations. - */ - -var getActiveMetaBoxLocations = Object(rememo["a" /* default */])(function (state) { - return Object.keys(state.metaBoxes.locations).filter(function (location) { - return isMetaBoxLocationActive(state, location); - }); -}, function (state) { - return [state.metaBoxes.locations]; -}); -/** - * Returns true if a metabox location is active and visible - * - * @param {Object} state Post editor state. - * @param {string} location Meta box location to test. - * - * @return {boolean} Whether the meta box location is active and visible. - */ - -function isMetaBoxLocationVisible(state, location) { - return isMetaBoxLocationActive(state, location) && Object(external_lodash_["some"])(getMetaBoxesPerLocation(state, location), function (_ref) { - var id = _ref.id; - return isEditorPanelEnabled(state, "meta-box-".concat(id)); - }); -} -/** - * Returns true if there is an active meta box in the given location, or false - * otherwise. - * - * @param {Object} state Post editor state. - * @param {string} location Meta box location to test. - * - * @return {boolean} Whether the meta box location is active. - */ - -function isMetaBoxLocationActive(state, location) { - var metaBoxes = getMetaBoxesPerLocation(state, location); - return !!metaBoxes && metaBoxes.length !== 0; -} -/** - * Returns the list of all the available meta boxes for a given location. - * - * @param {Object} state Global application state. - * @param {string} location Meta box location to test. - * - * @return {?Array} List of meta boxes. - */ - -function getMetaBoxesPerLocation(state, location) { - return state.metaBoxes.locations[location]; -} -/** - * Returns the list of all the available meta boxes. - * - * @param {Object} state Global application state. - * - * @return {Array} List of meta boxes. - */ - -var getAllMetaBoxes = Object(rememo["a" /* default */])(function (state) { - return Object(external_lodash_["flatten"])(Object(external_lodash_["values"])(state.metaBoxes.locations)); -}, function (state) { - return [state.metaBoxes.locations]; -}); -/** - * Returns true if the post is using Meta Boxes - * - * @param {Object} state Global application state - * - * @return {boolean} Whether there are metaboxes or not. - */ - -function hasMetaBoxes(state) { - return getActiveMetaBoxLocations(state).length > 0; -} -/** - * Returns true if the Meta Boxes are being saved. - * - * @param {Object} state Global application state. - * - * @return {boolean} Whether the metaboxes are being saved. - */ - -function selectors_isSavingMetaBoxes(state) { - return state.metaBoxes.isSaving; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/utils/meta-boxes.js -/** - * Function returning the current Meta Boxes DOM Node in the editor - * whether the meta box area is opened or not. - * If the MetaBox Area is visible returns it, and returns the original container instead. - * - * @param {string} location Meta Box location. - * @return {string} HTML content. - */ -var getMetaBoxContainer = function getMetaBoxContainer(location) { - var area = document.querySelector(".edit-post-meta-boxes-area.is-".concat(location, " .metabox-location-").concat(location)); - - if (area) { - return area; - } - - return document.querySelector('#metaboxes .metabox-location-' + location); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/effects.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - - -var saveMetaboxUnsubscribe; -var effects = { - SET_META_BOXES_PER_LOCATIONS: function SET_META_BOXES_PER_LOCATIONS(action, store) { - // Allow toggling metaboxes panels - // We need to wait for all scripts to load - // If the meta box loads the post script, it will already trigger this. - // After merge in Core, make sure to drop the timeout and update the postboxes script - // to avoid the double binding. - setTimeout(function () { - var postType = Object(external_this_wp_data_["select"])('core/editor').getCurrentPostType(); - - if (window.postboxes.page !== postType) { - window.postboxes.add_postbox_toggles(postType); - } - }); - var wasSavingPost = Object(external_this_wp_data_["select"])('core/editor').isSavingPost(); - var wasAutosavingPost = Object(external_this_wp_data_["select"])('core/editor').isAutosavingPost(); // Meta boxes are initialized once at page load. It is not necessary to - // account for updates on each state change. - // - // See: https://github.com/WordPress/WordPress/blob/5.1.1/wp-admin/includes/post.php#L2307-L2309 - - var hasActiveMetaBoxes = Object(external_this_wp_data_["select"])('core/edit-post').hasMetaBoxes(); // First remove any existing subscription in order to prevent multiple saves - - if (!!saveMetaboxUnsubscribe) { - saveMetaboxUnsubscribe(); - } // Save metaboxes when performing a full save on the post. - - - saveMetaboxUnsubscribe = Object(external_this_wp_data_["subscribe"])(function () { - var isSavingPost = Object(external_this_wp_data_["select"])('core/editor').isSavingPost(); - var isAutosavingPost = Object(external_this_wp_data_["select"])('core/editor').isAutosavingPost(); // Save metaboxes on save completion, except for autosaves that are not a post preview. - - var shouldTriggerMetaboxesSave = hasActiveMetaBoxes && wasSavingPost && !isSavingPost && !wasAutosavingPost; // Save current state for next inspection. - - wasSavingPost = isSavingPost; - wasAutosavingPost = isAutosavingPost; - - if (shouldTriggerMetaboxesSave) { - store.dispatch(requestMetaBoxUpdates()); - } - }); - }, - REQUEST_META_BOX_UPDATES: function REQUEST_META_BOX_UPDATES(action, store) { - // Saves the wp_editor fields - if (window.tinyMCE) { - window.tinyMCE.triggerSave(); - } - - var state = store.getState(); // Additional data needed for backward compatibility. - // If we do not provide this data, the post will be overridden with the default values. - - var post = Object(external_this_wp_data_["select"])('core/editor').getCurrentPost(state); - var additionalData = [post.comment_status ? ['comment_status', post.comment_status] : false, post.ping_status ? ['ping_status', post.ping_status] : false, post.sticky ? ['sticky', post.sticky] : false, post.author ? ['post_author', post.author] : false].filter(Boolean); // We gather all the metaboxes locations data and the base form data - - var baseFormData = new window.FormData(document.querySelector('.metabox-base-form')); - var formDataToMerge = [baseFormData].concat(Object(toConsumableArray["a" /* default */])(getActiveMetaBoxLocations(state).map(function (location) { - return new window.FormData(getMetaBoxContainer(location)); - }))); // Merge all form data objects into a single one. - - var formData = Object(external_lodash_["reduce"])(formDataToMerge, function (memo, currentFormData) { - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = currentFormData[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var _step$value = Object(slicedToArray["a" /* default */])(_step.value, 2), - key = _step$value[0], - value = _step$value[1]; - - memo.append(key, value); - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - - return memo; - }, new window.FormData()); - additionalData.forEach(function (_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 2), - key = _ref2[0], - value = _ref2[1]; - - return formData.append(key, value); - }); // Save the metaboxes - - external_this_wp_apiFetch_default()({ - url: window._wpMetaBoxUrl, - method: 'POST', - body: formData, - parse: false - }).then(function () { - return store.dispatch(metaBoxUpdatesSuccess()); - }); - }, - SWITCH_MODE: function SWITCH_MODE(action) { - // Unselect blocks when we switch to the code editor. - if (action.mode !== 'visual') { - Object(external_this_wp_data_["dispatch"])('core/block-editor').clearSelectedBlock(); - } - - var message = action.mode === 'visual' ? Object(external_this_wp_i18n_["__"])('Visual editor selected') : Object(external_this_wp_i18n_["__"])('Code editor selected'); - Object(external_this_wp_a11y_["speak"])(message, 'assertive'); - } -}; -/* harmony default export */ var store_effects = (effects); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/middlewares.js - - -/** - * External dependencies - */ - - -/** - * Internal dependencies - */ - - -/** - * Applies the custom middlewares used specifically in the editor module. - * - * @param {Object} store Store Object. - * - * @return {Object} Update Store Object. - */ - -function applyMiddlewares(store) { - var middlewares = [refx_default()(store_effects)]; - - var enhancedDispatch = function enhancedDispatch() { - throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); - }; - - var chain = []; - var middlewareAPI = { - getState: store.getState, - dispatch: function dispatch() { - return enhancedDispatch.apply(void 0, arguments); - } - }; - chain = middlewares.map(function (middleware) { - return middleware(middlewareAPI); - }); - enhancedDispatch = external_lodash_["flowRight"].apply(void 0, Object(toConsumableArray["a" /* default */])(chain))(store.dispatch); - store.dispatch = enhancedDispatch; - return store; -} - -/* harmony default export */ var store_middlewares = (applyMiddlewares); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/controls.js - - -/** - * WordPress dependencies - */ - -/** - * Calls a selector using the current state. - * - * @param {string} storeName Store name. - * @param {string} selectorName Selector name. - * @param {Array} args Selector arguments. - * - * @return {Object} control descriptor. - */ - -function controls_select(storeName, selectorName) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - return { - type: 'SELECT', - storeName: storeName, - selectorName: selectorName, - args: args - }; -} -var controls = { - SELECT: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { - return function (_ref) { - var _registry$select; - - var storeName = _ref.storeName, - selectorName = _ref.selectorName, - args = _ref.args; - return (_registry$select = registry.select(storeName))[selectorName].apply(_registry$select, Object(toConsumableArray["a" /* default */])(args)); - }; - }) -}; -/* harmony default export */ var store_controls = (controls); - -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/store/constants.js -var constants = __webpack_require__(75); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - - - - -var store_store = Object(external_this_wp_data_["registerStore"])(constants["a" /* STORE_KEY */], { - reducer: reducer, - actions: actions_namespaceObject, - selectors: selectors_namespaceObject, - controls: store_controls, - persist: ['preferences'] -}); -store_middlewares(store_store); -/* harmony default export */ var build_module_store = (store_store); - - /***/ }), /***/ 4: @@ -6742,382 +7143,14 @@ store_middlewares(store_store); /***/ }), -/***/ 405: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","plugins"]} -var external_this_wp_plugins_ = __webpack_require__(52); - -// EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(26); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js - - -/** - * WordPress dependencies - */ - - - - - -function CopyContentMenuItem(_ref) { - var createNotice = _ref.createNotice, - editedPostContent = _ref.editedPostContent, - hasCopied = _ref.hasCopied, - setState = _ref.setState; - return editedPostContent.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { - text: editedPostContent, - role: "menuitem", - className: "components-menu-item__button", - onCopy: function onCopy() { - setState({ - hasCopied: true - }); - createNotice('info', 'All content copied.', { - isDismissible: true, - type: 'snackbar' - }); - }, - onFinishCopy: function onFinishCopy() { - return setState({ - hasCopied: false - }); - } - }, hasCopied ? Object(external_this_wp_i18n_["__"])('Copied!') : Object(external_this_wp_i18n_["__"])('Copy All Content')); -} - -/* harmony default export */ var copy_content_menu_item = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { - return { - editedPostContent: select('core/editor').getEditedPostAttribute('content') - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/notices'), - createNotice = _dispatch.createNotice; - - return { - createNotice: createNotice - }; -}), Object(external_this_wp_compose_["withState"])({ - hasCopied: false -}))(CopyContentMenuItem)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/manage-blocks-menu-item/index.js - - -/** - * WordPress dependencies - */ - - - -function ManageBlocksMenuItem(_ref) { - var openModal = _ref.openModal; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: function onClick() { - openModal('edit-post/manage-blocks'); - } - }, Object(external_this_wp_i18n_["__"])('Block Manager')); -} -/* harmony default export */ var manage_blocks_menu_item = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/edit-post'), - openModal = _dispatch.openModal; - - return { - openModal: openModal - }; -})(ManageBlocksMenuItem)); - -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(19); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js - - -/** - * WordPress dependencies - */ - - - - -function KeyboardShortcutsHelpMenuItem(_ref) { - var openModal = _ref.openModal; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: function onClick() { - openModal('edit-post/keyboard-shortcut-help'); - }, - shortcut: external_this_wp_keycodes_["displayShortcut"].access('h') - }, Object(external_this_wp_i18n_["__"])('Keyboard Shortcuts')); -} -/* harmony default export */ var keyboard_shortcuts_help_menu_item = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/edit-post'), - openModal = _dispatch.openModal; - - return { - openModal: openModal - }; -})(KeyboardShortcutsHelpMenuItem)); - -// EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js -var tools_more_menu_group = __webpack_require__(123); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/index.js - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - - -Object(external_this_wp_plugins_["registerPlugin"])('edit-post', { - render: function render() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(tools_more_menu_group["a" /* default */], null, function (_ref) { - var onClose = _ref.onClose; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(manage_blocks_menu_item, { - onSelect: onClose - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - role: "menuitem", - href: Object(external_this_wp_url_["addQueryArgs"])('edit.php', { - post_type: 'wp_block' - }) - }, Object(external_this_wp_i18n_["__"])('Manage All Reusable Blocks')), Object(external_this_wp_element_["createElement"])(keyboard_shortcuts_help_menu_item, { - onSelect: onClose - }), Object(external_this_wp_element_["createElement"])(copy_content_menu_item, null)); - })); - } -}); - - -/***/ }), - -/***/ 407: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(27); - -// EXTERNAL MODULE: external {"this":["wp","mediaUtils"]} -var external_this_wp_mediaUtils_ = __webpack_require__(106); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/components/index.js -/** - * WordPress dependencies - */ - - - -var components_replaceMediaUpload = function replaceMediaUpload() { - return external_this_wp_mediaUtils_["MediaUpload"]; -}; - -Object(external_this_wp_hooks_["addFilter"])('editor.MediaUpload', 'core/edit-post/replace-media-upload', components_replaceMediaUpload); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(18); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules -var objectWithoutProperties = __webpack_require__(21); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(9); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/validate-multiple-use/index.js - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -var enhance = Object(external_this_wp_compose_["compose"])( -/** - * For blocks whose block type doesn't support `multiple`, provides the - * wrapped component with `originalBlockClientId` -- a reference to the - * first block of the same type in the content -- if and only if that - * "original" block is not the current one. Thus, an inexisting - * `originalBlockClientId` prop signals that the block is valid. - * - * @param {Component} WrappedBlockEdit A filtered BlockEdit instance. - * - * @return {Component} Enhanced component with merged state data props. - */ -Object(external_this_wp_data_["withSelect"])(function (select, block) { - var multiple = Object(external_this_wp_blocks_["hasBlockSupport"])(block.name, 'multiple', true); // For block types with `multiple` support, there is no "original - // block" to be found in the content, as the block itself is valid. - - if (multiple) { - return {}; - } // Otherwise, only pass `originalBlockClientId` if it refers to a different - // block from the current one. - - - var blocks = select('core/block-editor').getBlocks(); - var firstOfSameType = Object(external_lodash_["find"])(blocks, function (_ref) { - var name = _ref.name; - return block.name === name; - }); - var isInvalid = firstOfSameType && firstOfSameType.clientId !== block.clientId; - return { - originalBlockClientId: isInvalid && firstOfSameType.clientId - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { - var originalBlockClientId = _ref2.originalBlockClientId; - return { - selectFirst: function selectFirst() { - return dispatch('core/block-editor').selectBlock(originalBlockClientId); - } - }; -})); -var withMultipleValidation = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { - return enhance(function (_ref3) { - var originalBlockClientId = _ref3.originalBlockClientId, - selectFirst = _ref3.selectFirst, - props = Object(objectWithoutProperties["a" /* default */])(_ref3, ["originalBlockClientId", "selectFirst"]); - - if (!originalBlockClientId) { - return Object(external_this_wp_element_["createElement"])(BlockEdit, props); - } - - var blockType = Object(external_this_wp_blocks_["getBlockType"])(props.name); - var outboundType = getOutboundType(props.name); - return [Object(external_this_wp_element_["createElement"])("div", { - key: "invalid-preview", - style: { - minHeight: '60px' - } - }, Object(external_this_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({ - key: "block-edit" - }, props))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Warning"], { - key: "multiple-use-warning", - actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "find-original", - isLarge: true, - onClick: selectFirst - }, Object(external_this_wp_i18n_["__"])('Find original')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "remove", - isLarge: true, - onClick: function onClick() { - return props.onReplace([]); - } - }, Object(external_this_wp_i18n_["__"])('Remove')), outboundType && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "transform", - isLarge: true, - onClick: function onClick() { - return props.onReplace(Object(external_this_wp_blocks_["createBlock"])(outboundType.name, props.attributes)); - } - }, Object(external_this_wp_i18n_["__"])('Transform into:'), ' ', outboundType.title)] - }, Object(external_this_wp_element_["createElement"])("strong", null, blockType.title, ": "), Object(external_this_wp_i18n_["__"])('This block can only be used once.'))]; - }); -}, 'withMultipleValidation'); -/** - * Given a base block name, returns the default block type to which to offer - * transforms. - * - * @param {string} blockName Base block name. - * - * @return {?Object} The chosen default block type. - */ - -function getOutboundType(blockName) { - // Grab the first outbound transform - var transform = Object(external_this_wp_blocks_["findTransform"])(Object(external_this_wp_blocks_["getBlockTransforms"])('to', blockName), function (_ref4) { - var type = _ref4.type, - blocks = _ref4.blocks; - return type === 'block' && blocks.length === 1; - } // What about when .length > 1? - ); - - if (!transform) { - return null; - } - - return Object(external_this_wp_blocks_["getBlockType"])(transform.blocks[0]); -} - -Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-post/validate-multiple-use/with-multiple-validation', withMultipleValidation); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/index.js -/** - * Internal dependencies - */ - - - - -/***/ }), - -/***/ 43: +/***/ 42: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["viewport"]; }()); /***/ }), -/***/ 45: +/***/ 44: /***/ (function(module, exports, __webpack_require__) { module.exports = function memize( fn, options ) { @@ -7235,7 +7268,7 @@ module.exports = function memize( fn, options ) { /***/ }), -/***/ 46: +/***/ 45: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["a11y"]; }()); @@ -7257,370 +7290,17 @@ function _assertThisInitialized(self) { /***/ }), -/***/ 52: +/***/ 51: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["plugins"]; }()); /***/ }), -/***/ 53: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(23); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/base.js - - -/** - * WordPress dependencies - */ - - -function BaseOption(_ref) { - var label = _ref.label, - isChecked = _ref.isChecked, - onChange = _ref.onChange, - children = _ref.children; - return Object(external_this_wp_element_["createElement"])("div", { - className: "edit-post-options-modal__option" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CheckboxControl"], { - label: label, - checked: isChecked, - onChange: onChange - }), children); -} - -/* harmony default export */ var base = (BaseOption); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-custom-fields.js - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -function CustomFieldsConfirmation(_ref) { - var willEnable = _ref.willEnable; - - var _useState = Object(external_this_wp_element_["useState"])(false), - _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), - isReloading = _useState2[0], - setIsReloading = _useState2[1]; - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("p", { - className: "edit-post-options-modal__custom-fields-confirmation-message" - }, Object(external_this_wp_i18n_["__"])('A page reload is required for this change. Make sure your content is saved before reloading.')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "edit-post-options-modal__custom-fields-confirmation-button", - isDefault: true, - isBusy: isReloading, - disabled: isReloading, - onClick: function onClick() { - setIsReloading(true); - document.getElementById('toggle-custom-fields-form').submit(); - } - }, willEnable ? Object(external_this_wp_i18n_["__"])('Enable & Reload') : Object(external_this_wp_i18n_["__"])('Disable & Reload'))); -} -function EnableCustomFieldsOption(_ref2) { - var label = _ref2.label, - areCustomFieldsEnabled = _ref2.areCustomFieldsEnabled; - - var _useState3 = Object(external_this_wp_element_["useState"])(areCustomFieldsEnabled), - _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2), - isChecked = _useState4[0], - setIsChecked = _useState4[1]; - - return Object(external_this_wp_element_["createElement"])(base, { - label: label, - isChecked: isChecked, - onChange: setIsChecked - }, isChecked !== areCustomFieldsEnabled && Object(external_this_wp_element_["createElement"])(CustomFieldsConfirmation, { - willEnable: isChecked - })); -} -/* harmony default export */ var enable_custom_fields = (Object(external_this_wp_data_["withSelect"])(function (select) { - return { - areCustomFieldsEnabled: !!select('core/editor').getEditorSettings().enableCustomFields - }; -})(EnableCustomFieldsOption)); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(8); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-panel.js -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -/* harmony default export */ var enable_panel = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { - var panelName = _ref.panelName; - - var _select = select('core/edit-post'), - isEditorPanelEnabled = _select.isEditorPanelEnabled, - isEditorPanelRemoved = _select.isEditorPanelRemoved; - - return { - isRemoved: isEditorPanelRemoved(panelName), - isChecked: isEditorPanelEnabled(panelName) - }; -}), Object(external_this_wp_compose_["ifCondition"])(function (_ref2) { - var isRemoved = _ref2.isRemoved; - return !isRemoved; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { - var panelName = _ref3.panelName; - return { - onChange: function onChange() { - return dispatch('core/edit-post').toggleEditorPanelEnabled(panelName); - } - }; -}))(base)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-plugin-document-setting-panel.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var _createSlotFill = Object(external_this_wp_components_["createSlotFill"])('EnablePluginDocumentSettingPanelOption'), - Fill = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; - -var enable_plugin_document_setting_panel_EnablePluginDocumentSettingPanelOption = function EnablePluginDocumentSettingPanelOption(_ref) { - var label = _ref.label, - panelName = _ref.panelName; - return Object(external_this_wp_element_["createElement"])(Fill, null, Object(external_this_wp_element_["createElement"])(enable_panel, { - label: label, - panelName: panelName - })); -}; - -enable_plugin_document_setting_panel_EnablePluginDocumentSettingPanelOption.Slot = Slot; -/* harmony default export */ var enable_plugin_document_setting_panel = (enable_plugin_document_setting_panel_EnablePluginDocumentSettingPanelOption); - -// EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(43); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-publish-sidebar.js -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/* harmony default export */ var enable_publish_sidebar = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { - return { - isChecked: select('core/editor').isPublishSidebarEnabled() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/editor'), - enablePublishSidebar = _dispatch.enablePublishSidebar, - disablePublishSidebar = _dispatch.disablePublishSidebar; - - return { - onChange: function onChange(isEnabled) { - return isEnabled ? enablePublishSidebar() : disablePublishSidebar(); - } - }; -}), // In < medium viewports we override this option and always show the publish sidebar. -// See the edit-post's header component for the specific logic. -Object(external_this_wp_viewport_["ifViewportMatches"])('medium'))(base)); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(15); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/deferred.js - - - - - - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var deferred_DeferredOption = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(DeferredOption, _Component); - - function DeferredOption(_ref) { - var _this; - - var isChecked = _ref.isChecked; - - Object(classCallCheck["a" /* default */])(this, DeferredOption); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(DeferredOption).apply(this, arguments)); - _this.state = { - isChecked: isChecked - }; - return _this; - } - - Object(createClass["a" /* default */])(DeferredOption, [{ - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.state.isChecked !== this.props.isChecked) { - this.props.onChange(this.state.isChecked); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - return Object(external_this_wp_element_["createElement"])(base, { - label: this.props.label, - isChecked: this.state.isChecked, - onChange: function onChange(isChecked) { - return _this2.setState({ - isChecked: isChecked - }); - } - }); - } - }]); - - return DeferredOption; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var deferred = (deferred_DeferredOption); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-tips.js -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -/* harmony default export */ var enable_tips = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { - return { - isChecked: select('core/nux').areTipsEnabled() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/nux'), - enableTips = _dispatch.enableTips, - disableTips = _dispatch.disableTips; - - return { - onChange: function onChange(isEnabled) { - return isEnabled ? enableTips() : disableTips(); - } - }; -}))( // Using DeferredOption here means enableTips() is called when the Options -// modal is dismissed. This stops the NUX guide from appearing above the -// Options modal, which looks totally weird. -deferred)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/enable-feature.js -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -/* harmony default export */ var enable_feature = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { - var feature = _ref.feature; - return { - isChecked: select('core/edit-post').isFeatureActive(feature) - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { - var feature = _ref2.feature; - - var _dispatch = dispatch('core/edit-post'), - toggleFeature = _dispatch.toggleFeature; - - return { - onChange: function onChange() { - toggleFeature(feature); - } - }; -}))(base)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/options/index.js -/* concated harmony reexport EnableCustomFieldsOption */__webpack_require__.d(__webpack_exports__, "a", function() { return enable_custom_fields; }); -/* concated harmony reexport EnablePanelOption */__webpack_require__.d(__webpack_exports__, "c", function() { return enable_panel; }); -/* concated harmony reexport EnablePluginDocumentSettingPanelOption */__webpack_require__.d(__webpack_exports__, "d", function() { return enable_plugin_document_setting_panel; }); -/* concated harmony reexport EnablePublishSidebarOption */__webpack_require__.d(__webpack_exports__, "e", function() { return enable_publish_sidebar; }); -/* concated harmony reexport EnableTipsOption */__webpack_require__.d(__webpack_exports__, "f", function() { return enable_tips; }); -/* concated harmony reexport EnableFeature */__webpack_require__.d(__webpack_exports__, "b", function() { return enable_feature; }); - - - - - - +/***/ 58: +/***/ (function(module, exports) { +(function() { module.exports = this["wp"]["nux"]; }()); /***/ }), @@ -7631,98 +7311,7 @@ deferred)); /***/ }), -/***/ 63: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["nux"]; }()); - -/***/ }), - -/***/ 65: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19); -/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - -/* harmony default export */ __webpack_exports__["a"] = ({ - toggleEditorMode: { - raw: _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["rawShortcut"].secondary('m'), - display: _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcut"].secondary('m') - }, - toggleSidebar: { - raw: _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["rawShortcut"].primaryShift(','), - display: _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcut"].primaryShift(','), - ariaLabel: _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["shortcutAriaLabel"].primaryShift(',') - } -}); - - -/***/ }), - -/***/ 7: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); -/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); - }); - } - - return target; -} - -/***/ }), - -/***/ 75: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return STORE_KEY; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return VIEW_AS_LINK_SELECTOR; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return VIEW_AS_PREVIEW_LINK_SELECTOR; }); -/** - * The identifier for the data store. - * - * @type {string} - */ -var STORE_KEY = 'core/edit-post'; -/** - * CSS selector string for the admin bar view post link anchor tag. - * - * @type {string} - */ - -var VIEW_AS_LINK_SELECTOR = '#wp-admin-bar-view a'; -/** - * CSS selector string for the admin bar preview post link anchor tag. - * - * @type {string} - */ - -var VIEW_AS_PREVIEW_LINK_SELECTOR = '#wp-admin-bar-preview a'; - - -/***/ }), - -/***/ 76: +/***/ 69: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7776,6 +7365,34 @@ function refx( effects ) { module.exports = refx; +/***/ }), + +/***/ 7: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); + } + + return target; +} + /***/ }), /***/ 8: @@ -7785,90 +7402,10 @@ module.exports = refx; /***/ }), -/***/ 88: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4); -/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__); - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -var _createSlotFill = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["createSlotFill"])('Sidebar'), - Fill = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; -/** - * Renders a sidebar with its content. - * - * @return {Object} The rendered sidebar. - */ - - -function Sidebar(_ref) { - var children = _ref.children, - label = _ref.label, - className = _ref.className; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", { - className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('edit-post-sidebar', className), - role: "region", - "aria-label": label, - tabIndex: "-1" - }, children); -} - -Sidebar = Object(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["withFocusReturn"])({ - onFocusReturn: function onFocusReturn() { - var button = document.querySelector('.edit-post-header__settings [aria-label="Settings"]'); - - if (button) { - button.focus(); - return false; - } - } -})(Sidebar); - -function AnimatedSidebarFill(props) { - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Fill, null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["Animate"], { - type: "slide-in", - options: { - origin: 'left' - } - }, function () { - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Sidebar, props); - })); -} - -var WrappedSidebar = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__["compose"])(Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__["withSelect"])(function (select, _ref2) { - var name = _ref2.name; - return { - isActive: select('core/edit-post').getActiveGeneralSidebarName() === name - }; -}), Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__["ifCondition"])(function (_ref3) { - var isActive = _ref3.isActive; - return isActive; -}))(AnimatedSidebarFill); -WrappedSidebar.Slot = Slot; -/* harmony default export */ __webpack_exports__["a"] = (WrappedSidebar); +/***/ 86: +/***/ (function(module, exports) { +(function() { module.exports = this["wp"]["coreData"]; }()); /***/ }), @@ -7879,201 +7416,10 @@ WrappedSidebar.Slot = Slot; /***/ }), -/***/ 96: +/***/ 95: /***/ (function(module, exports) { -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - - -/***/ }), - -/***/ 97: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["coreData"]; }()); +(function() { module.exports = this["wp"]["mediaUtils"]; }()); /***/ }) diff --git a/wp-includes/js/dist/edit-post.min.js b/wp-includes/js/dist/edit-post.min.js index c4f1a79f2f..963e831373 100644 --- a/wp-includes/js/dist/edit-post.min.js +++ b/wp-includes/js/dist/edit-post.min.js @@ -1,6 +1,6 @@ -this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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=364)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return o}))},106:function(e,t){!function(){e.exports=this.wp.mediaUtils}()},11:function(e,t,n){"use strict";function o(e,t){for(var n=0;n0?"mixed":"false",Object(b.createElement)("div",{role:"group","aria-labelledby":p,className:"edit-post-manage-blocks-modal__category"},Object(b.createElement)(h.CheckboxControl,{checked:m,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":u,label:Object(b.createElement)("span",{id:p},n.title)}),Object(b.createElement)(Oe,{blockTypes:s,value:d,onItemChange:i}))}));var he=Object(E.compose)([Object(E.withState)({search:""}),Object(f.withSelect)((function(e){var t=e("core/blocks"),n=t.getBlockTypes,o=t.getCategories,r=t.hasBlockSupport,c=t.isMatchingSearchTerm,i=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),a=Object(O.isArray)(i)&&i.length;return{blockTypes:n(),categories:o(),hasBlockSupport:r,isMatchingSearchTerm:c,numberOfHiddenBlocks:a}}))])((function(e){var t=e.search,n=e.setState,o=e.blockTypes,r=e.categories,c=e.hasBlockSupport,i=e.isMatchingSearchTerm,a=e.numberOfHiddenBlocks;return o=o.filter((function(e){return c(e,"inserter",!0)&&(!t||i(e,t))&&!e.parent})),Object(b.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(b.createElement)(h.TextControl,{type:"search",label:Object(y.__)("Search for a block"),value:t,onChange:function(e){return n({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!a&&Object(b.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(y.sprintf)(Object(y._n)("%1$d block is disabled.","%1$d blocks are disabled.",a),a)),Object(b.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(y.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===o.length&&Object(b.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(y.__)("No blocks found.")),r.map((function(e){return Object(b.createElement)(je,{key:e.slug,category:e,blockTypes:Object(O.filter)(o,{category:e.slug})})}))))}));var Ee=Object(E.compose)([Object(f.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(f.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,n=e.closeModal;return t?Object(b.createElement)(h.Modal,{className:"edit-post-manage-blocks-modal",title:Object(y.__)("Block Manager"),closeLabel:Object(y.__)("Close"),onRequestClose:n},Object(b.createElement)(he,null)):null})),ge=function(e){var t=e.title,n=e.children;return Object(b.createElement)("section",{className:"edit-post-options-modal__section"},Object(b.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),n)},ve=n(53);var _e=Object(f.withSelect)((function(e){var t=e("core/editor").getEditorSettings,n=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}}))((function(e){var t=e.areCustomFieldsRegistered,n=e.metaBoxes,o=Object(r.a)(e,["areCustomFieldsRegistered","metaBoxes"]),c=Object(O.filter)(n,(function(e){return"postcustom"!==e.id}));return t||0!==c.length?Object(b.createElement)(ge,o,t&&Object(b.createElement)(ve.a,{label:Object(y.__)("Custom Fields")}),Object(O.map)(c,(function(e){var t=e.id,n=e.title;return Object(b.createElement)(ve.c,{key:t,label:n,panelName:"meta-box-".concat(t)})}))):null}));var ye=Object(E.compose)(Object(f.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(O.get)(n,["viewable"],!1)}})),Object(f.withDispatch)((function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}})))((function(e){var t=e.isModalActive,n=e.isViewable,o=e.closeModal;return t?Object(b.createElement)(h.Modal,{className:"edit-post-options-modal",title:Object(y.__)("Options"),closeLabel:Object(y.__)("Close"),onRequestClose:o},Object(b.createElement)(ge,{title:Object(y.__)("General")},Object(b.createElement)(ve.e,{label:Object(y.__)("Pre-publish Checks")}),Object(b.createElement)(ve.f,{label:Object(y.__)("Tips")}),Object(b.createElement)(ve.b,{feature:"showInserterHelpPanel",label:Object(y.__)("Inserter Help Panel")})),Object(b.createElement)(ge,{title:Object(y.__)("Document Panels")},Object(b.createElement)(ve.d.Slot,null),n&&Object(b.createElement)(ve.c,{label:Object(y.__)("Permalink"),panelName:"post-link"}),Object(b.createElement)(j.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(b.createElement)(ve.c,{label:Object(O.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(b.createElement)(j.PostFeaturedImageCheck,null,Object(b.createElement)(ve.c,{label:Object(y.__)("Featured Image"),panelName:"featured-image"})),Object(b.createElement)(j.PostExcerptCheck,null,Object(b.createElement)(ve.c,{label:Object(y.__)("Excerpt"),panelName:"post-excerpt"})),Object(b.createElement)(j.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(b.createElement)(ve.c,{label:Object(y.__)("Discussion"),panelName:"discussion-panel"})),Object(b.createElement)(j.PageAttributesCheck,null,Object(b.createElement)(ve.c,{label:Object(y.__)("Page Attributes"),panelName:"page-attributes"}))),Object(b.createElement)(_e,{title:Object(y.__)("Advanced Panels")})):null})),Se=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(s.a)(this,Object(u.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(J.a)(e)),e}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.form=document.querySelector(".metabox-location-"+this.props.location),this.form&&this.container.appendChild(this.form)}},{key:"componentWillUnmount",value:function(){this.form&&document.querySelector("#metaboxes").appendChild(this.form)}},{key:"bindContainerNode",value:function(e){this.container=e}},{key:"render",value:function(){var e=this.props,t=e.location,n=e.isSaving,o=_()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(b.createElement)("div",{className:o},n&&Object(b.createElement)(h.Spinner,null),Object(b.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(b.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(b.Component),ke=Object(f.withSelect)((function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}}))(Se),Pe=function(e){function t(){return Object(a.a)(this,t),Object(s.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.updateDOM()}},{key:"componentDidUpdate",value:function(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}},{key:"updateDOM",value:function(){var e=this.props,t=e.id,n=e.isVisible,o=document.getElementById(t);o&&(n?o.classList.remove("is-hidden"):o.classList.add("is-hidden"))}},{key:"render",value:function(){return null}}]),t}(b.Component),we=Object(f.withSelect)((function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}}))(Pe);var Ce=Object(f.withSelect)((function(e,t){var n=t.location,o=e("core/edit-post"),r=o.isMetaBoxLocationVisible;return{metaBoxes:(0,o.getMetaBoxesPerLocation)(n),isVisible:r(n)}}))((function(e){var t=e.location,n=e.isVisible,o=e.metaBoxes;return Object(b.createElement)(b.Fragment,null,Object(O.map)(o,(function(e){var t=e.id;return Object(b.createElement)(we,{key:t,id:t})})),n&&Object(b.createElement)(ke,{location:t}))})),Te=n(88),xe=n(23),Ne=n(127),Ae=Object(f.withDispatch)((function(e){var t=e("core/edit-post").openGeneralSidebar,n=e("core/block-editor").clearSelectedBlock;return{openDocumentSettings:function(){t("edit-post/document"),n()},openBlockSettings:function(){t("edit-post/block")}}}))((function(e){var t=e.openDocumentSettings,n=e.openBlockSettings,o=e.sidebarName,r=Object(y.__)("Block"),c="edit-post/document"===o?[Object(y.__)("Document (selected)"),"is-active"]:[Object(y.__)("Document"),""],i=Object(xe.a)(c,2),a=i[0],l=i[1],s="edit-post/block"===o?[Object(y.__)("Block (selected)"),"is-active"]:[Object(y.__)("Block"),""],u=Object(xe.a)(s,2),d=u[0],p=u[1];return Object(b.createElement)(Ne.a,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(y.__)("Close settings")},Object(b.createElement)("ul",null,Object(b.createElement)("li",null,Object(b.createElement)("button",{onClick:t,className:"edit-post-sidebar__panel-tab ".concat(l),"aria-label":a,"data-label":Object(y.__)("Document")},Object(y.__)("Document"))),Object(b.createElement)("li",null,Object(b.createElement)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":d,"data-label":r},r))))}));var Me=function(){return Object(b.createElement)(j.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(b.createElement)(h.PanelRow,{className:"edit-post-post-visibility"},Object(b.createElement)("span",null,Object(y.__)("Visibility")),!t&&Object(b.createElement)("span",null,Object(b.createElement)(j.PostVisibilityLabel,null)),t&&Object(b.createElement)(h.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(h.Button,{type:"button","aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(b.createElement)(j.PostVisibilityLabel,null))},renderContent:function(){return Object(b.createElement)(j.PostVisibility,null)}}))}})};function Be(){return Object(b.createElement)(j.PostTrashCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostTrash,null)))}var Ie=function(){return Object(b.createElement)(j.PostScheduleCheck,null,Object(b.createElement)(h.PanelRow,{className:"edit-post-post-schedule"},Object(b.createElement)("span",null,Object(y.__)("Publish")),Object(b.createElement)(h.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(h.Button,{type:"button",className:"edit-post-post-schedule__toggle",onClick:t,"aria-expanded":n,isLink:!0},Object(b.createElement)(j.PostScheduleLabel,null)))},renderContent:function(){return Object(b.createElement)(j.PostSchedule,null)}})))};var Le=function(){return Object(b.createElement)(j.PostStickyCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostSticky,null)))};var De=function(){return Object(b.createElement)(j.PostAuthorCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostAuthor,null)))};var Fe=function(){return Object(b.createElement)(j.PostFormatCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostFormat,null)))};var Re=function(){return Object(b.createElement)(j.PostPendingStatusCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostPendingStatus,null)))},Ge=n(117);var Ve=Object(E.compose)([Object(f.withSelect)((function(e){var t=e("core/edit-post"),n=t.isEditorPanelRemoved,o=t.isEditorPanelOpened;return{isRemoved:n("post-status"),isOpened:o("post-status")}})),Object(E.ifCondition)((function(e){return!e.isRemoved})),Object(f.withDispatch)((function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-status")}}}))])((function(e){var t=e.isOpened,n=e.onTogglePanel;return Object(b.createElement)(h.PanelBody,{className:"edit-post-post-status",title:Object(y.__)("Status & Visibility"),opened:t,onToggle:n},Object(b.createElement)(Ge.a.Slot,null,(function(e){return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Me,null),Object(b.createElement)(Ie,null),Object(b.createElement)(Fe,null),Object(b.createElement)(Le,null),Object(b.createElement)(Re,null),Object(b.createElement)(De,null),e,Object(b.createElement)(Be,null))})))}));var Ue=function(){return Object(b.createElement)(j.PostLastRevisionCheck,null,Object(b.createElement)(h.PanelBody,{className:"edit-post-last-revision__panel"},Object(b.createElement)(j.PostLastRevision,null)))};var He=Object(E.compose)(Object(f.withSelect)((function(e,t){var n=Object(O.get)(t.taxonomy,["slug"]),o=n?"taxonomy-panel-".concat(n):"";return{panelName:o,isEnabled:!!n&&e("core/edit-post").isEditorPanelEnabled(o),isOpened:!!n&&e("core/edit-post").isEditorPanelOpened(o)}})),Object(f.withDispatch)((function(e,t){return{onTogglePanel:function(){e("core/edit-post").toggleEditorPanelOpened(t.panelName)}}})))((function(e){var t=e.isEnabled,n=e.taxonomy,o=e.isOpened,r=e.onTogglePanel,c=e.children;if(!t)return null;var i=Object(O.get)(n,["labels","menu_name"]);return i?Object(b.createElement)(h.PanelBody,{title:i,opened:o,onToggle:r},c):null}));var We=function(){return Object(b.createElement)(j.PostTaxonomiesCheck,null,Object(b.createElement)(j.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(b.createElement)(He,{taxonomy:t},e)}}))};var qe=Object(f.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getPostType,o=e("core/edit-post"),r=o.isEditorPanelEnabled,c=o.isEditorPanelOpened;return{postType:n(t("type")),isEnabled:r("featured-image"),isOpened:c("featured-image")}})),Ke=Object(f.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"featured-image")}})),Qe=Object(E.compose)(qe,Ke)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.postType,r=e.onTogglePanel;return t?Object(b.createElement)(j.PostFeaturedImageCheck,null,Object(b.createElement)(h.PanelBody,{title:Object(O.get)(o,["labels","featured_image"],Object(y.__)("Featured Image")),opened:n,onToggle:r},Object(b.createElement)(j.PostFeaturedImage,null))):null}));var Xe=Object(E.compose)([Object(f.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("post-excerpt"),isOpened:e("core/edit-post").isEditorPanelOpened("post-excerpt")}})),Object(f.withDispatch)((function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-excerpt")}}}))])((function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(b.createElement)(j.PostExcerptCheck,null,Object(b.createElement)(h.PanelBody,{title:Object(y.__)("Excerpt"),opened:n,onToggle:o},Object(b.createElement)(j.PostExcerpt,null))):null}));var ze=Object(E.compose)([Object(f.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,o=t.isPermalinkEditable,r=t.getCurrentPost,c=t.isCurrentPostPublished,i=t.getPermalinkParts,a=t.getEditedPostAttribute,l=e("core/edit-post"),s=l.isEditorPanelEnabled,u=l.isEditorPanelOpened,d=e("core").getPostType,b=r(),p=b.link,m=b.id,f=d(a("type"));return{isNew:n(),postLink:p,isEditable:o(),isPublished:c(),isOpened:u("post-link"),permalinkParts:i(),isEnabled:s("post-link"),isViewable:Object(O.get)(f,["viewable"],!1),postTitle:a("title"),postSlug:a("slug"),postID:m,postTypeLabel:Object(O.get)(f,["labels","view_item"])}})),Object(E.ifCondition)((function(e){var t=e.isEnabled,n=e.isNew,o=e.postLink,r=e.isViewable,c=e.permalinkParts;return t&&!n&&o&&r&&c})),Object(f.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened,n=e("core/editor").editPost;return{onTogglePanel:function(){return t("post-link")},editPermalink:function(e){n({slug:e})}}})),Object(E.withState)({forceEmptyField:!1})])((function(e){var t,n,o,r=e.isOpened,c=e.onTogglePanel,i=e.isEditable,a=e.postLink,l=e.permalinkParts,s=e.editPermalink,u=e.forceEmptyField,d=e.setState,p=e.postTitle,m=e.postSlug,O=e.postID,f=e.postTypeLabel,E=l.prefix,g=l.suffix,v=Object(P.safeDecodeURIComponent)(m)||Object(j.cleanForSlug)(p)||O;return i&&(t=E&&Object(b.createElement)("span",{className:"edit-post-post-link__link-prefix"},E),n=v&&Object(b.createElement)("span",{className:"edit-post-post-link__link-post-name"},v),o=g&&Object(b.createElement)("span",{className:"edit-post-post-link__link-suffix"},g)),Object(b.createElement)(h.PanelBody,{title:Object(y.__)("Permalink"),opened:r,onToggle:c},i&&Object(b.createElement)("div",{className:"editor-post-link"},Object(b.createElement)(h.TextControl,{label:Object(y.__)("URL Slug"),value:u?"":v,onChange:function(e){s(e),e?u&&d({forceEmptyField:!1}):u||d({forceEmptyField:!0})},onBlur:function(e){s(Object(j.cleanForSlug)(e.target.value)),u&&d({forceEmptyField:!1})}}),Object(b.createElement)("p",null,Object(y.__)("The last part of the URL. "),Object(b.createElement)(h.ExternalLink,{href:"https://wordpress.org/support/article/writing-posts/#post-field-descriptions"},Object(y.__)("Read about permalinks")))),Object(b.createElement)("p",{className:"edit-post-post-link__preview-label"},f||Object(y.__)("View Post")),Object(b.createElement)("div",{className:"edit-post-post-link__preview-link-container"},Object(b.createElement)(h.ExternalLink,{className:"edit-post-post-link__link",href:a,target:"_blank"},i?Object(b.createElement)(b.Fragment,null,t,n,o):a)))}));var Ye=Object(E.compose)([Object(f.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("discussion-panel"),isOpened:e("core/edit-post").isEditorPanelOpened("discussion-panel")}})),Object(f.withDispatch)((function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("discussion-panel")}}}))])((function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(b.createElement)(j.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(b.createElement)(h.PanelBody,{title:Object(y.__)("Discussion"),opened:n,onToggle:o},Object(b.createElement)(j.PostTypeSupportCheck,{supportKeys:"comments"},Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostComments,null))),Object(b.createElement)(j.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostPingbacks,null))))):null}));var $e=Object(f.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core/edit-post"),o=n.isEditorPanelEnabled,r=n.isEditorPanelOpened,c=e("core").getPostType;return{isEnabled:o("page-attributes"),isOpened:r("page-attributes"),postType:c(t("type"))}})),Ze=Object(f.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"page-attributes")}})),Je=Object(E.compose)($e,Ze)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel,r=e.postType;return t&&r?Object(b.createElement)(j.PageAttributesCheck,null,Object(b.createElement)(h.PanelBody,{title:Object(O.get)(r,["labels","attributes"],Object(y.__)("Page Attributes")),opened:n,onToggle:o},Object(b.createElement)(j.PageTemplate,null),Object(b.createElement)(j.PageAttributesParent,null),Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PageAttributesOrder,null)))):null})),et=n(118),tt=Object(E.compose)(Object(f.withSelect)((function(e){var t=e("core/edit-post"),n=t.getActiveGeneralSidebarName;return{isEditorSidebarOpened:(0,t.isEditorSidebarOpened)(),sidebarName:n()}})),Object(E.ifCondition)((function(e){return e.isEditorSidebarOpened})))((function(e){var t=e.sidebarName;return Object(b.createElement)(Te.a,{name:t,label:Object(y.__)("Editor settings")},Object(b.createElement)(Ae,{sidebarName:t}),Object(b.createElement)(h.Panel,null,"edit-post/document"===t&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Ve,null),Object(b.createElement)(et.a.Slot,null),Object(b.createElement)(Ue,null),Object(b.createElement)(ze,null),Object(b.createElement)(We,null),Object(b.createElement)(Qe,null),Object(b.createElement)(Xe,null),Object(b.createElement)(Ye,null),Object(b.createElement)(Je,null),Object(b.createElement)(Ce,{location:"side"})),"edit-post/block"===t&&Object(b.createElement)(h.PanelBody,{className:"edit-post-settings-sidebar__panel-block"},Object(b.createElement)(N.BlockInspector,null))))})),nt=n(119),ot=n(120),rt=function(e){function t(){return Object(a.a)(this,t),Object(s.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.isSticky=!1,this.sync(),document.body.classList.contains("sticky-menu")&&(this.isSticky=!0,document.body.classList.remove("sticky-menu"))}},{key:"componentWillUnmount",value:function(){this.isSticky&&document.body.classList.add("sticky-menu")}},{key:"componentDidUpdate",value:function(e){this.props.isActive!==e.isActive&&this.sync()}},{key:"sync",value:function(){this.props.isActive?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode")}},{key:"render",value:function(){return null}}]),t}(b.Component),ct=Object(f.withSelect)((function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}}))(rt);var it=Object(E.compose)(Object(f.withSelect)((function(e){return{mode:e("core/edit-post").getEditorMode(),editorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),pluginSidebarOpened:e("core/edit-post").isPluginSidebarOpened(),publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}})),Object(f.withDispatch)((function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}})),h.navigateRegions,Object(k.withViewportMatch)({isMobileViewport:"< small"}))((function(e){var t=e.mode,n=e.editorSidebarOpened,r=e.pluginSidebarOpened,c=e.publishSidebarOpened,i=e.hasFixedToolbar,a=e.closePublishSidebar,l=e.togglePublishSidebar,s=e.hasActiveMetaboxes,u=e.isSaving,d=e.isMobileViewport,p=e.isRichEditingEnabled,m=n||r||c,O=_()("edit-post-layout",{"is-sidebar-opened":m,"has-fixed-toolbar":i,"has-metaboxes":s}),f={role:"region","aria-label":Object(y.__)("Editor publish"),tabIndex:-1};return Object(b.createElement)(h.FocusReturnProvider,{className:O},Object(b.createElement)(ct,null),Object(b.createElement)(C,null),Object(b.createElement)(j.UnsavedChangesWarning,null),Object(b.createElement)(j.AutosaveMonitor,null),Object(b.createElement)(j.LocalAutosaveMonitor,null),Object(b.createElement)(K,null),Object(b.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(y.__)("Editor content"),tabIndex:"-1"},Object(b.createElement)(j.EditorNotices,null),Object(b.createElement)(te,null),Object(b.createElement)(me,null),Object(b.createElement)(Ee,null),Object(b.createElement)(ye,null),("text"===t||!p)&&Object(b.createElement)(X,null),p&&"visual"===t&&Object(b.createElement)($,null),Object(b.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(b.createElement)(Ce,{location:"normal"})),Object(b.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(b.createElement)(Ce,{location:"advanced"}))),c?Object(b.createElement)(j.PostPublishPanel,Object(o.a)({},f,{onClose:a,forceIsDirty:s,forceIsSaving:u,PrePublishExtension:ot.a.Slot,PostPublishExtension:nt.a.Slot})):Object(b.createElement)(b.Fragment,null,Object(b.createElement)("div",Object(o.a)({className:"edit-post-toggle-publish-panel"},f),Object(b.createElement)(h.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:l,"aria-expanded":!1},Object(y.__)("Open publish panel"))),Object(b.createElement)(tt,null),Object(b.createElement)(Te.a.Slot,null),d&&m&&Object(b.createElement)(h.ScrollLock,null)),Object(b.createElement)(h.Popover.Slot,null),Object(b.createElement)(S.PluginArea,null))})),at=n(75),lt=function(e){var t=e.postId;!function(e){var t=Object(f.useSelect)((function(e){return{isSmall:e("core/viewport").isViewportMatch("< medium"),sidebarToReOpenOnExpand:e(at.a).getActiveGeneralSidebarName()}}),[e]),n=t.isSmall,o=t.sidebarToReOpenOnExpand,r=Object(f.useDispatch)(at.a),c=r.openGeneralSidebar,i=r.closeGeneralSidebar,a=Object(b.useRef)("");Object(b.useEffect)((function(){n&&o?(a.current=o,i()):!n&&a.current&&(c(a.current),a.current="")}),[n,o])}(t),function(e){var t=Object(f.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(at.a).isEditorSidebarOpened()}}),[e]),n=t.hasBlockSelection,o=t.isEditorSidebarOpened,r=Object(f.useDispatch)(at.a).openGeneralSidebar;Object(b.useEffect)((function(){o&&r(n?"edit-post/block":"edit-post/document")}),[n,o])}(t),function(e){var t=Object(f.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,n=Object(b.useRef)();Object(b.useEffect)((function(){n.current=document.querySelector(at.c)||document.querySelector(at.b)}),[e]),Object(b.useEffect)((function(){t&&n.current&&n.current.setAttribute("href",t)}),[t])}(t);var n=Object(f.useDispatch)("core/nux").triggerGuide;return Object(b.useEffect)((function(){n(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"])}),[n]),null},st=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(s.a)(this,Object(u.a)(t).apply(this,arguments))).getEditorSettings=m()(e.getEditorSettings,{maxSize:1}),e}return Object(d.a)(t,e),Object(l.a)(t,[{key:"getEditorSettings",value:function(e,t,n,o,r,a,l,s,u){if(e=Object(i.a)({},e,{__experimentalPreferredStyleVariations:{value:l,onChange:u},hasFixedToolbar:t,focusMode:o,showInserterHelpPanel:n,__experimentalLocalAutosaveInterval:s}),Object(O.size)(r)>0){var d=!0===e.allowedBlockTypes?Object(O.map)(a,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=O.without.apply(void 0,[d].concat(Object(c.a)(r)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,c=e.focusMode,i=e.post,a=e.postId,l=e.initialEdits,s=e.onError,u=e.hiddenBlockTypes,d=e.blockTypes,p=e.preferredStyleVariations,m=e.__experimentalLocalAutosaveInterval,O=e.showInserterHelpPanel,f=e.updatePreferredStyleVariations,E=Object(r.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!i)return null;var v=this.getEditorSettings(t,n,O,c,u,d,p,m,f);return Object(b.createElement)(b.StrictMode,null,Object(b.createElement)(fe.Provider,{value:t},Object(b.createElement)(h.SlotFillProvider,null,Object(b.createElement)(h.DropZoneProvider,null,Object(b.createElement)(j.EditorProvider,Object(o.a)({settings:v,post:i,initialEdits:l,useSubRegistry:!1},E),Object(b.createElement)(j.ErrorBoundary,{onError:s},Object(b.createElement)(lt,{postId:a}),Object(b.createElement)(it,null),Object(b.createElement)(h.KeyboardShortcuts,{shortcuts:g})),Object(b.createElement)(j.PostLockedModal,null))))))}}]),t}(b.Component);t.a=Object(E.compose)([Object(f.withSelect)((function(e,t){var n=t.postId,o=t.postType,r=e("core/edit-post"),c=r.isFeatureActive,i=r.getPreference,a=e("core").getEntityRecord,l=e("core/blocks").getBlockTypes;return{showInserterHelpPanel:c("showInserterHelpPanel"),hasFixedToolbar:c("fixedToolbar"),focusMode:c("focusMode"),post:a("postType",o,n),preferredStyleVariations:i("preferredStyleVariations"),hiddenBlockTypes:i("hiddenBlockTypes"),blockTypes:l(),__experimentalLocalAutosaveInterval:i("localAutosaveInterval")}})),Object(f.withDispatch)((function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}}))])(st)},17:function(e,t,n){"use strict";var o=n(30);function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"a",(function(){return o}))},217:function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(3),i=n(8),a=n(126),l=function(e,t){return!Array.isArray(t)||(n=e,o=t,0===Object(r.difference)(n,o).length);var n,o};t.a=function(e){var t=e.allowedBlocks,n=e.icon,r=e.label,s=e.onClick,u=e.small,d=e.role;return Object(o.createElement)(a.a,null,(function(e){var a=e.selectedBlocks,b=e.onClose;return l(a,t)?Object(o.createElement)(c.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(i.compose)(s,b),icon:n||"admin-plugins",label:u?r:void 0,role:d},!u&&r):null}))}},218:function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(4),i=n(1),a=n(52),l=n(8),s=n(125),u=n(88),d=n(127);t.a=Object(l.compose)(Object(a.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}})),Object(c.withSelect)((function(e,t){var n=t.sidebarName,o=e("core/edit-post"),r=o.getActiveGeneralSidebarName,c=o.isPluginItemPinned;return{isActive:r()===n,isPinned:c(n)}})),Object(c.withDispatch)((function(e,t){var n=t.isActive,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar,a=r.togglePinnedPluginItem;return{togglePin:function(){a(o)},toggleSidebar:function(){n?c():i(o)}}})))((function(e){var t=e.children,n=e.className,c=e.icon,a=e.isActive,l=e.isPinnable,b=void 0===l||l,p=e.isPinned,m=e.sidebarName,O=e.title,f=e.togglePin,j=e.toggleSidebar;return Object(o.createElement)(o.Fragment,null,b&&Object(o.createElement)(s.a,null,p&&Object(o.createElement)(r.IconButton,{icon:c,label:O,onClick:j,isToggled:a,"aria-expanded":a})),Object(o.createElement)(u.a,{name:m,label:Object(i.__)("Editor plugins")},Object(o.createElement)(d.a,{closeLabel:Object(i.__)("Close plugin")},Object(o.createElement)("strong",null,O),b&&Object(o.createElement)(r.IconButton,{icon:p?"star-filled":"star-empty",label:p?Object(i.__)("Unpin from toolbar"):Object(i.__)("Pin to toolbar"),onClick:f,isToggled:p,"aria-expanded":p})),Object(o.createElement)(r.Panel,{className:n},t)))}))},219:function(e,t,n){"use strict";var o=n(0),r=n(8),c=n(4),i=n(52),a=n(121);t.a=Object(r.compose)(Object(i.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}})),Object(c.withSelect)((function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}})),Object(c.withDispatch)((function(e,t){var n=t.isSelected,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar;return{onClick:n?c:function(){return i(o)}}})))((function(e){var t=e.children,n=e.icon,r=e.isSelected,c=e.onClick;return Object(o.createElement)(a.a,{icon:r?"yes":n,isSelected:r,role:"menuitemcheckbox",onClick:c},t)}))},23:function(e,t,n){"use strict";var o=n(38);var r=n(39);function c(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,r=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(o=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,c=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw c}}return n}(e,t)||Object(r.a)()}n.d(t,"a",(function(){return c}))},24:function(e,t){!function(){e.exports=this.wp.editor}()},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,n){"use strict";function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return o}))},31:function(e,t,n){"use strict";function o(e){return(o="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})(e)}function r(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}n.d(t,"a",(function(){return r}))},32:function(e,t){!function(){e.exports=this.wp.apiFetch}()},36:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),Object(o.render)(Object(o.createElement)(c.a,{settings:a,onError:u,postId:i,postType:n,initialEdits:l}),s)}n.d(t,"PluginSidebarMoreMenuItem",(function(){return p.a}))}.call(this,n(96))},38:function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return o}))},39:function(e,t,n){"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return o}))},392:function(e,t,n){"use strict";var o={};n.r(o),n.d(o,"openGeneralSidebar",(function(){return _})),n.d(o,"closeGeneralSidebar",(function(){return y})),n.d(o,"openModal",(function(){return S})),n.d(o,"closeModal",(function(){return k})),n.d(o,"openPublishSidebar",(function(){return P})),n.d(o,"closePublishSidebar",(function(){return w})),n.d(o,"togglePublishSidebar",(function(){return C})),n.d(o,"toggleEditorPanelEnabled",(function(){return T})),n.d(o,"toggleEditorPanelOpened",(function(){return x})),n.d(o,"removeEditorPanel",(function(){return N})),n.d(o,"toggleFeature",(function(){return A})),n.d(o,"switchEditorMode",(function(){return M})),n.d(o,"togglePinnedPluginItem",(function(){return B})),n.d(o,"hideBlockTypes",(function(){return I})),n.d(o,"updatePreferredStyleVariations",(function(){return L})),n.d(o,"__experimentalUpdateLocalAutosaveInterval",(function(){return D})),n.d(o,"showBlockTypes",(function(){return F})),n.d(o,"setAvailableMetaBoxesPerLocation",(function(){return R})),n.d(o,"requestMetaBoxUpdates",(function(){return G})),n.d(o,"metaBoxUpdatesSuccess",(function(){return V}));var r={};n.r(r),n.d(r,"getEditorMode",(function(){return H})),n.d(r,"isEditorSidebarOpened",(function(){return W})),n.d(r,"isPluginSidebarOpened",(function(){return q})),n.d(r,"getActiveGeneralSidebarName",(function(){return K})),n.d(r,"getPreferences",(function(){return Q})),n.d(r,"getPreference",(function(){return X})),n.d(r,"isPublishSidebarOpened",(function(){return z})),n.d(r,"isEditorPanelRemoved",(function(){return Y})),n.d(r,"isEditorPanelEnabled",(function(){return $})),n.d(r,"isEditorPanelOpened",(function(){return Z})),n.d(r,"isModalActive",(function(){return J})),n.d(r,"isFeatureActive",(function(){return ee})),n.d(r,"isPluginItemPinned",(function(){return te})),n.d(r,"getActiveMetaBoxLocations",(function(){return ne})),n.d(r,"isMetaBoxLocationVisible",(function(){return oe})),n.d(r,"isMetaBoxLocationActive",(function(){return re})),n.d(r,"getMetaBoxesPerLocation",(function(){return ce})),n.d(r,"getAllMetaBoxes",(function(){return ie})),n.d(r,"hasMetaBoxes",(function(){return ae})),n.d(r,"isSavingMetaBoxes",(function(){return le}));var c,i=n(4),a=n(17),l=n(10),s=n(7),u=n(2),d="edit-post/document",b=Object(u.flow)([i.combineReducers,(c={editorMode:"visual",isGeneralSidebarDismissed:!1,panels:{"post-status":{opened:!0}},features:{fixedToolbar:!1,showInserterHelpPanel:!0},pinnedPluginItems:{},hiddenBlockTypes:[],preferredStyleVariations:{},localAutosaveInterval:15},function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,n=arguments.length>1?arguments[1]:void 0;return e(t,n)}})])({isGeneralSidebarDismissed:function(e,t){switch(t.type){case"OPEN_GENERAL_SIDEBAR":case"CLOSE_GENERAL_SIDEBAR":return"CLOSE_GENERAL_SIDEBAR"===t.type}return e},panels:function(e,t){switch(t.type){case"TOGGLE_PANEL_ENABLED":var n=t.panelName;return Object(s.a)({},e,Object(l.a)({},n,Object(s.a)({},e[n],{enabled:!Object(u.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,r=!0===e[o]||Object(u.get)(e,[o,"opened"],!1);return Object(s.a)({},e,Object(l.a)({},o,Object(s.a)({},e[o],{opened:!r})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?Object(s.a)({},e,Object(l.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},pinnedPluginItems:function(e,t){return"TOGGLE_PINNED_PLUGIN_ITEM"===t.type?Object(s.a)({},e,Object(l.a)({},t.pluginName,!Object(u.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return u.without.apply(void 0,[e].concat(Object(a.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(u.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?Object(s.a)({},e,Object(l.a)({},t.blockName,t.blockStyle)):Object(u.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var p=Object(i.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),m=Object(i.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":return t.name}return e},activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:p,preferences:b,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(u.includes)(e,t.panelName))return[].concat(Object(a.a)(e),[t.panelName])}return e}}),O=n(76),f=n.n(O),j=n(23),h=n(46),E=n(1),g=n(32),v=n.n(g);function _(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function y(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function S(e){return{type:"OPEN_MODAL",name:e}}function k(){return{type:"CLOSE_MODAL"}}function P(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function w(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function C(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function T(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function x(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function N(e){return{type:"REMOVE_PANEL",panelName:e}}function A(e){return{type:"TOGGLE_FEATURE",feature:e}}function M(e){return{type:"SWITCH_MODE",mode:e}}function B(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function I(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(u.castArray)(e)}}function L(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function D(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function F(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(u.castArray)(e)}}function R(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function G(){return{type:"REQUEST_META_BOX_UPDATES"}}function V(){return{type:"META_BOX_UPDATES_SUCCESS"}}var U=n(36);function H(e){return X(e,"editorMode","visual")}function W(e){var t=K(e);return Object(u.includes)(["edit-post/document","edit-post/block"],t)}function q(e){return!!K(e)&&!W(e)}function K(e){return X(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function Q(e){return e.preferences}function X(e,t,n){var o=Q(e)[t];return void 0===o?n:o}function z(e){return e.publishSidebarActive}function Y(e,t){return Object(u.includes)(e.removedPanels,t)}function $(e,t){var n=X(e,"panels");return!Y(e,t)&&Object(u.get)(n,[t,"enabled"],!0)}function Z(e,t){var n=X(e,"panels");return!0===Object(u.get)(n,[t])||!0===Object(u.get)(n,[t,"opened"])}function J(e,t){return e.activeModal===t}function ee(e,t){return Object(u.get)(e.preferences.features,[t],!1)}function te(e,t){var n=X(e,"pinnedPluginItems",{});return Object(u.get)(n,[t],!0)}var ne=Object(U.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return re(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function oe(e,t){return re(e,t)&&Object(u.some)(ce(e,t),(function(t){var n=t.id;return $(e,"meta-box-".concat(n))}))}function re(e,t){var n=ce(e,t);return!!n&&0!==n.length}function ce(e,t){return e.metaBoxes.locations[t]}var ie=Object(U.a)((function(e){return Object(u.flatten)(Object(u.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function ae(e){return ne(e).length>0}function le(e){return e.metaBoxes.isSaving}var se,ue={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout((function(){var e=Object(i.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)}));var n=Object(i.select)("core/editor").isSavingPost(),o=Object(i.select)("core/editor").isAutosavingPost(),r=Object(i.select)("core/edit-post").hasMetaBoxes();se&&se(),se=Object(i.subscribe)((function(){var e=Object(i.select)("core/editor").isSavingPost(),c=Object(i.select)("core/editor").isAutosavingPost(),a=r&&n&&!e&&!o;n=e,o=c,a&&t.dispatch({type:"REQUEST_META_BOX_UPDATES"})}))},REQUEST_META_BOX_UPDATES:function(e,t){window.tinyMCE&&window.tinyMCE.triggerSave();var n=t.getState(),o=Object(i.select)("core/editor").getCurrentPost(n),r=[!!o.comment_status&&["comment_status",o.comment_status],!!o.ping_status&&["ping_status",o.ping_status],!!o.sticky&&["sticky",o.sticky],!!o.author&&["post_author",o.author]].filter(Boolean),c=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(a.a)(ne(n).map((function(e){return new window.FormData(function(e){var t=document.querySelector(".edit-post-meta-boxes-area.is-".concat(e," .metabox-location-").concat(e));return t||document.querySelector("#metaboxes .metabox-location-"+e)}(e))})))),l=Object(u.reduce)(c,(function(e,t){var n=!0,o=!1,r=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done);n=!0){var a=Object(j.a)(c.value,2),l=a[0],s=a[1];e.append(l,s)}}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return e}),new window.FormData);r.forEach((function(e){var t=Object(j.a)(e,2),n=t[0],o=t[1];return l.append(n,o)})),v()({url:window._wpMetaBoxUrl,method:"POST",body:l,parse:!1}).then((function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})}))},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(i.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(E.__)("Visual editor selected"):Object(E.__)("Code editor selected");Object(h.speak)(t,"assertive")}};var de=function(e){var t,n=[f()(ue)],o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:e.getState,dispatch:function(){return o.apply(void 0,arguments)}};return t=n.map((function(e){return e(r)})),o=u.flowRight.apply(void 0,Object(a.a)(t))(e.dispatch),e.dispatch=o,e};var be={SELECT:Object(i.createRegistryControl)((function(e){return function(t){var n,o=t.storeName,r=t.selectorName,c=t.args;return(n=e.select(o))[r].apply(n,Object(a.a)(c))}}))},pe=n(75),me=Object(i.registerStore)(pe.a,{reducer:m,actions:o,selectors:r,controls:be,persist:["preferences"]});de(me)},4:function(e,t){!function(){e.exports=this.wp.data}()},405:function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(1),i=n(52),a=n(26),l=n(4),s=n(8);var u=Object(s.compose)(Object(l.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(l.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(s.withState)({hasCopied:!1}))((function(e){var t=e.createNotice,n=e.editedPostContent,i=e.hasCopied,a=e.setState;return n.length>0&&Object(o.createElement)(r.ClipboardButton,{text:n,role:"menuitem",className:"components-menu-item__button",onCopy:function(){a({hasCopied:!0}),t("info","All content copied.",{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return a({hasCopied:!1})}},i?Object(c.__)("Copied!"):Object(c.__)("Copy All Content"))}));var d=Object(l.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(o.createElement)(r.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(c.__)("Block Manager"))})),b=n(19);var p=Object(l.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(o.createElement)(r.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:b.displayShortcut.access("h")},Object(c.__)("Keyboard Shortcuts"))})),m=n(123);Object(i.registerPlugin)("edit-post",{render:function(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.a,null,(function(e){var t=e.onClose;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d,{onSelect:t}),Object(o.createElement)(r.MenuItem,{role:"menuitem",href:Object(a.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(c.__)("Manage All Reusable Blocks")),Object(o.createElement)(p,{onSelect:t}),Object(o.createElement)(u,null))})))}})},407:function(e,t,n){"use strict";var o=n(27),r=n(106);Object(o.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return r.MediaUpload}));var c=n(18),i=n(21),a=n(0),l=n(2),s=n(9),u=n(3),d=n(4),b=n(6),p=n(1),m=n(8),O=Object(m.compose)(Object(d.withSelect)((function(e,t){if(Object(s.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(l.find)(n,(function(e){var n=e.name;return t.name===n}));return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}})),Object(d.withDispatch)((function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(n)}}}))),f=Object(m.createHigherOrderComponent)((function(e){return O((function(t){var n=t.originalBlockClientId,o=t.selectFirst,r=Object(i.a)(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(a.createElement)(e,r);var l=Object(s.getBlockType)(r.name),d=function(e){var t=Object(s.findTransform)(Object(s.getBlockTransforms)("to",e),(function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length}));if(!t)return null;return Object(s.getBlockType)(t.blocks[0])}(r.name);return[Object(a.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(a.createElement)(e,Object(c.a)({key:"block-edit"},r))),Object(a.createElement)(b.Warning,{key:"multiple-use-warning",actions:[Object(a.createElement)(u.Button,{key:"find-original",isLarge:!0,onClick:o},Object(p.__)("Find original")),Object(a.createElement)(u.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(p.__)("Remove")),d&&Object(a.createElement)(u.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(s.createBlock)(d.name,r.attributes))}},Object(p.__)("Transform into:")," ",d.title)]},Object(a.createElement)("strong",null,l.title,": "),Object(p.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(o.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",f)},43:function(e,t){!function(){e.exports=this.wp.viewport}()},45:function(e,t,n){e.exports=function(e,t){var n,o,r,c=0;function i(){var t,i,a=o,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i1)for(var n=1;n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"a",(function(){return o}))},23:function(e,t,n){"use strict";var o=n(38);var r=n(39);function c(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,r=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(o=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,c=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw c}}return n}(e,t)||Object(r.a)()}n.d(t,"a",(function(){return c}))},24:function(e,t){!function(){e.exports=this.wp.editor}()},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,n){"use strict";function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return o}))},31:function(e,t,n){"use strict";function o(e){return(o="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})(e)}function r(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}n.d(t,"a",(function(){return r}))},314:function(e,t,n){"use strict";n.r(t);var o={};n.r(o),n.d(o,"openGeneralSidebar",(function(){return Q})),n.d(o,"closeGeneralSidebar",(function(){return X})),n.d(o,"openModal",(function(){return z})),n.d(o,"closeModal",(function(){return Y})),n.d(o,"openPublishSidebar",(function(){return $})),n.d(o,"closePublishSidebar",(function(){return Z})),n.d(o,"togglePublishSidebar",(function(){return J})),n.d(o,"toggleEditorPanelEnabled",(function(){return ee})),n.d(o,"toggleEditorPanelOpened",(function(){return te})),n.d(o,"removeEditorPanel",(function(){return ne})),n.d(o,"toggleFeature",(function(){return oe})),n.d(o,"switchEditorMode",(function(){return re})),n.d(o,"togglePinnedPluginItem",(function(){return ce})),n.d(o,"hideBlockTypes",(function(){return ie})),n.d(o,"updatePreferredStyleVariations",(function(){return ae})),n.d(o,"__experimentalUpdateLocalAutosaveInterval",(function(){return le})),n.d(o,"showBlockTypes",(function(){return se})),n.d(o,"setAvailableMetaBoxesPerLocation",(function(){return ue})),n.d(o,"requestMetaBoxUpdates",(function(){return de})),n.d(o,"metaBoxUpdatesSuccess",(function(){return be}));var r={};n.r(r),n.d(r,"getEditorMode",(function(){return me})),n.d(r,"isEditorSidebarOpened",(function(){return Oe})),n.d(r,"isPluginSidebarOpened",(function(){return fe})),n.d(r,"getActiveGeneralSidebarName",(function(){return je})),n.d(r,"getPreferences",(function(){return he})),n.d(r,"getPreference",(function(){return Ee})),n.d(r,"isPublishSidebarOpened",(function(){return ge})),n.d(r,"isEditorPanelRemoved",(function(){return ve})),n.d(r,"isEditorPanelEnabled",(function(){return _e})),n.d(r,"isEditorPanelOpened",(function(){return ye})),n.d(r,"isModalActive",(function(){return Se})),n.d(r,"isFeatureActive",(function(){return ke})),n.d(r,"isPluginItemPinned",(function(){return Pe})),n.d(r,"getActiveMetaBoxLocations",(function(){return we})),n.d(r,"isMetaBoxLocationVisible",(function(){return Ce})),n.d(r,"isMetaBoxLocationActive",(function(){return Te})),n.d(r,"getMetaBoxesPerLocation",(function(){return xe})),n.d(r,"getAllMetaBoxes",(function(){return Ne})),n.d(r,"hasMetaBoxes",(function(){return Ae})),n.d(r,"isSavingMetaBoxes",(function(){return Me}));var c=n(0),i=(n(86),n(6)),a=n(24),l=n(58),s=n(42),u=(n(134),n(208)),d=n(27),b=n(95);Object(d.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return b.MediaUpload}));var p=n(18),m=n(21),O=n(2),f=n(9),j=n(3),h=n(4),E=n(1),g=n(8),v=Object(g.compose)(Object(h.withSelect)((function(e,t){if(Object(f.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(O.find)(n,(function(e){var n=e.name;return t.name===n}));return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}})),Object(h.withDispatch)((function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(n)}}}))),_=Object(g.createHigherOrderComponent)((function(e){return v((function(t){var n=t.originalBlockClientId,o=t.selectFirst,r=Object(m.a)(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(c.createElement)(e,r);var a=Object(f.getBlockType)(r.name),l=function(e){var t=Object(f.findTransform)(Object(f.getBlockTransforms)("to",e),(function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length}));if(!t)return null;return Object(f.getBlockType)(t.blocks[0])}(r.name);return[Object(c.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(c.createElement)(e,Object(p.a)({key:"block-edit"},r))),Object(c.createElement)(i.Warning,{key:"multiple-use-warning",actions:[Object(c.createElement)(j.Button,{key:"find-original",isLarge:!0,onClick:o},Object(E.__)("Find original")),Object(c.createElement)(j.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(E.__)("Remove")),l&&Object(c.createElement)(j.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(f.createBlock)(l.name,r.attributes))}},Object(E.__)("Transform into:")," ",l.title)]},Object(c.createElement)("strong",null,a.title,": "),Object(E.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(d.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",_);var y=n(51),S=n(26);var k=Object(g.compose)(Object(h.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(h.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(g.withState)({hasCopied:!1}))((function(e){var t=e.createNotice,n=e.editedPostContent,o=e.hasCopied,r=e.setState;return n.length>0&&Object(c.createElement)(j.ClipboardButton,{text:n,role:"menuitem",className:"components-menu-item__button",onCopy:function(){r({hasCopied:!0}),t("info","All content copied.",{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return r({hasCopied:!1})}},o?Object(E.__)("Copied!"):Object(E.__)("Copy All Content"))}));var P=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(E.__)("Block Manager"))})),w=n(19);var C=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:w.displayShortcut.access("h")},Object(E.__)("Keyboard Shortcuts"))})),T=Object(j.createSlotFill)("ToolsMoreMenuGroup"),x=T.Fill,N=T.Slot;x.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(N,{fillProps:t},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Tools")},e)}))};var A=x;Object(y.registerPlugin)("edit-post",{render:function(){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(A,null,(function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(P,{onSelect:t}),Object(c.createElement)(j.MenuItem,{role:"menuitem",href:Object(S.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(E.__)("Manage All Reusable Blocks")),Object(c.createElement)(C,{onSelect:t}),Object(c.createElement)(k,null))})))}});var M,B=n(17),I=n(10),D=n(7),L="edit-post/document",F=Object(O.flow)([h.combineReducers,(M={editorMode:"visual",isGeneralSidebarDismissed:!1,panels:{"post-status":{opened:!0}},features:{fixedToolbar:!1,showInserterHelpPanel:!0},pinnedPluginItems:{},hiddenBlockTypes:[],preferredStyleVariations:{},localAutosaveInterval:15},function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,n=arguments.length>1?arguments[1]:void 0;return e(t,n)}})])({isGeneralSidebarDismissed:function(e,t){switch(t.type){case"OPEN_GENERAL_SIDEBAR":case"CLOSE_GENERAL_SIDEBAR":return"CLOSE_GENERAL_SIDEBAR"===t.type}return e},panels:function(e,t){switch(t.type){case"TOGGLE_PANEL_ENABLED":var n=t.panelName;return Object(D.a)({},e,Object(I.a)({},n,Object(D.a)({},e[n],{enabled:!Object(O.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,r=!0===e[o]||Object(O.get)(e,[o,"opened"],!1);return Object(D.a)({},e,Object(I.a)({},o,Object(D.a)({},e[o],{opened:!r})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?Object(D.a)({},e,Object(I.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},pinnedPluginItems:function(e,t){return"TOGGLE_PINNED_PLUGIN_ITEM"===t.type?Object(D.a)({},e,Object(I.a)({},t.pluginName,!Object(O.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return O.without.apply(void 0,[e].concat(Object(B.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(O.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?Object(D.a)({},e,Object(I.a)({},t.blockName,t.blockStyle)):Object(O.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var R=Object(h.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),G=Object(h.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":return t.name}return e},activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:R,preferences:F,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(O.includes)(e,t.panelName))return[].concat(Object(B.a)(e),[t.panelName])}return e}}),V=n(69),U=n.n(V),H=n(23),W=n(45),q=n(32),K=n.n(q);function Q(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function X(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function z(e){return{type:"OPEN_MODAL",name:e}}function Y(){return{type:"CLOSE_MODAL"}}function $(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function Z(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function J(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function ee(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function te(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function ne(e){return{type:"REMOVE_PANEL",panelName:e}}function oe(e){return{type:"TOGGLE_FEATURE",feature:e}}function re(e){return{type:"SWITCH_MODE",mode:e}}function ce(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function ie(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function ae(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function le(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function se(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function ue(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function de(){return{type:"REQUEST_META_BOX_UPDATES"}}function be(){return{type:"META_BOX_UPDATES_SUCCESS"}}var pe=n(36);function me(e){return Ee(e,"editorMode","visual")}function Oe(e){var t=je(e);return Object(O.includes)(["edit-post/document","edit-post/block"],t)}function fe(e){return!!je(e)&&!Oe(e)}function je(e){return Ee(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function he(e){return e.preferences}function Ee(e,t,n){var o=he(e)[t];return void 0===o?n:o}function ge(e){return e.publishSidebarActive}function ve(e,t){return Object(O.includes)(e.removedPanels,t)}function _e(e,t){var n=Ee(e,"panels");return!ve(e,t)&&Object(O.get)(n,[t,"enabled"],!0)}function ye(e,t){var n=Ee(e,"panels");return!0===Object(O.get)(n,[t])||!0===Object(O.get)(n,[t,"opened"])}function Se(e,t){return e.activeModal===t}function ke(e,t){return Object(O.get)(e.preferences.features,[t],!1)}function Pe(e,t){var n=Ee(e,"pinnedPluginItems",{});return Object(O.get)(n,[t],!0)}var we=Object(pe.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return Te(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Ce(e,t){return Te(e,t)&&Object(O.some)(xe(e,t),(function(t){var n=t.id;return _e(e,"meta-box-".concat(n))}))}function Te(e,t){var n=xe(e,t);return!!n&&0!==n.length}function xe(e,t){return e.metaBoxes.locations[t]}var Ne=Object(pe.a)((function(e){return Object(O.flatten)(Object(O.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Ae(e){return we(e).length>0}function Me(e){return e.metaBoxes.isSaving}var Be,Ie={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout((function(){var e=Object(h.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)}));var n=Object(h.select)("core/editor").isSavingPost(),o=Object(h.select)("core/editor").isAutosavingPost(),r=Object(h.select)("core/edit-post").hasMetaBoxes();Be&&Be(),Be=Object(h.subscribe)((function(){var e=Object(h.select)("core/editor").isSavingPost(),c=Object(h.select)("core/editor").isAutosavingPost(),i=r&&n&&!e&&!o;n=e,o=c,i&&t.dispatch({type:"REQUEST_META_BOX_UPDATES"})}))},REQUEST_META_BOX_UPDATES:function(e,t){window.tinyMCE&&window.tinyMCE.triggerSave();var n=t.getState(),o=Object(h.select)("core/editor").getCurrentPost(n),r=[!!o.comment_status&&["comment_status",o.comment_status],!!o.ping_status&&["ping_status",o.ping_status],!!o.sticky&&["sticky",o.sticky],!!o.author&&["post_author",o.author]].filter(Boolean),c=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(B.a)(we(n).map((function(e){return new window.FormData(function(e){var t=document.querySelector(".edit-post-meta-boxes-area.is-".concat(e," .metabox-location-").concat(e));return t||document.querySelector("#metaboxes .metabox-location-"+e)}(e))})))),i=Object(O.reduce)(c,(function(e,t){var n=!0,o=!1,r=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done);n=!0){var a=Object(H.a)(c.value,2),l=a[0],s=a[1];e.append(l,s)}}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return e}),new window.FormData);r.forEach((function(e){var t=Object(H.a)(e,2),n=t[0],o=t[1];return i.append(n,o)})),K()({url:window._wpMetaBoxUrl,method:"POST",body:i,parse:!1}).then((function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})}))},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(h.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(E.__)("Visual editor selected"):Object(E.__)("Code editor selected");Object(W.speak)(t,"assertive")}};var De=function(e){var t,n=[U()(Ie)],o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:e.getState,dispatch:function(){return o.apply(void 0,arguments)}};return t=n.map((function(e){return e(r)})),o=O.flowRight.apply(void 0,Object(B.a)(t))(e.dispatch),e.dispatch=o,e};var Le={SELECT:Object(h.createRegistryControl)((function(e){return function(t){var n,o=t.storeName,r=t.selectorName,c=t.args;return(n=e.select(o))[r].apply(n,Object(B.a)(c))}}))},Fe="core/edit-post",Re=Object(h.registerStore)(Fe,{reducer:G,actions:o,selectors:r,controls:Le,persist:["preferences"]});De(Re);var Ge=n(12),Ve=n(11),Ue=n(13),He=n(14),We=n(15),qe=n(44),Ke=n.n(qe),Qe={"t a l e s o f g u t e n b e r g":function(e){(document.activeElement.classList.contains("edit-post-visual-editor")||document.activeElement===document.body)&&(e.preventDefault(),window.wp.data.dispatch("core/block-editor").insertBlock(window.wp.blocks.createBlock("core/paragraph",{content:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},Xe=n(16),ze=n.n(Xe);var Ye=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.postId,o=t.postStatus,r=t.postType,c=this.state.historyId;"trash"!==o?n===e.postId&&n===c||"auto-draft"===o||this.setBrowserURL(n):this.setTrashURL(n,r)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(S.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}},{key:"setBrowserURL",value:function(e){window.history.replaceState({id:e},"Post "+e,function(e){return Object(S.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),t}(c.Component),$e=Object(h.withSelect)((function(e){var t=(0,e("core/editor").getCurrentPost)();return{postId:t.id,postStatus:t.status,postType:t.type}}))(Ye);var Ze=Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPostType,n=e("core/edit-post").isFeatureActive,o=e("core").getPostType;return{isActive:n("fullscreenMode"),postType:o(t())}}))((function(e){var t=e.isActive,n=e.postType;return t&&n?Object(c.createElement)(j.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(c.createElement)(j.IconButton,{icon:"arrow-left-alt2",href:Object(S.addQueryArgs)("edit.php",{post_type:n.slug}),label:Object(O.get)(n,["labels","view_items"],Object(E.__)("Back"))})):null}));var Je=Object(g.compose)([Object(h.withSelect)((function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),showInserter:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled,isTextModeEnabled:"text"===e("core/edit-post").getEditorMode()}})),Object(s.withViewportMatch)({isLargeViewport:"medium"})])((function(e){var t=e.hasFixedToolbar,n=e.isLargeViewport,o=e.showInserter,r=e.isTextModeEnabled,s=t?Object(E.__)("Document and block tools"):Object(E.__)("Document tools");return Object(c.createElement)(i.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":s},Object(c.createElement)("div",null,Object(c.createElement)(i.Inserter,{disabled:!o,position:"bottom right",showInserterHelpPanel:!0}),Object(c.createElement)(l.DotTip,{tipId:"core/editor.inserter"},Object(E.__)("Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks available for all kinds of content: you can insert text, headings, images, lists, and lots more!"))),Object(c.createElement)(a.EditorHistoryUndo,null),Object(c.createElement)(a.EditorHistoryRedo,null),Object(c.createElement)(a.TableOfContents,{hasOutlineItemsDisabled:r}),Object(c.createElement)(i.BlockNavigationDropdown,{isDisabled:r}),t&&n&&Object(c.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(c.createElement)(i.BlockToolbar,null)))})),et={toggleEditorMode:{raw:w.rawShortcut.secondary("m"),display:w.displayShortcut.secondary("m")},toggleSidebar:{raw:w.rawShortcut.primaryShift(","),display:w.displayShortcut.primaryShift(","),ariaLabel:w.shortcutAriaLabel.primaryShift(",")}},tt=[{value:"visual",label:Object(E.__)("Visual Editor")},{value:"text",label:Object(E.__)("Code Editor")}];var nt=Object(g.compose)([Object(h.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e("core/editor").getEditorSettings().codeEditingEnabled,mode:e("core/edit-post").getEditorMode()}})),Object(g.ifCondition)((function(e){var t=e.isRichEditingEnabled,n=e.isCodeEditingEnabled;return t&&n})),Object(h.withDispatch)((function(e){return{onSwitch:function(t){e("core/edit-post").switchEditorMode(t)}}}))])((function(e){var t=e.onSwitch,n=e.mode,o=tt.map((function(e){return e.value!==n?Object(D.a)({},e,{shortcut:et.toggleEditorMode.display}):e}));return Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Editor")},Object(c.createElement)(j.MenuItemsChoice,{choices:o,value:n,onSelect:t}))})),ot=Object(j.createSlotFill)("PluginsMoreMenuGroup"),rt=ot.Fill,ct=ot.Slot;rt.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(ct,{fillProps:t},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(j.MenuGroup,{label:Object(E.__)("Plugins")},e)}))};var it=rt;var at=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/options")}},Object(E.__)("Options"))}));var lt=Object(g.compose)([Object(h.withSelect)((function(e,t){var n=t.feature;return{isActive:e("core/edit-post").isFeatureActive(n)}})),Object(h.withDispatch)((function(e,t){return{onToggle:function(){e("core/edit-post").toggleFeature(t.feature)}}})),j.withSpokenMessages])((function(e){var t=e.onToggle,n=e.isActive,o=e.label,r=e.info,i=e.messageActivated,a=e.messageDeactivated,l=e.speak;return Object(c.createElement)(j.MenuItem,{icon:n&&"yes",isSelected:n,onClick:Object(O.flow)(t,(function(){l(n?a||Object(E.__)("Feature deactivated"):i||Object(E.__)("Feature activated"))})),role:"menuitemcheckbox",info:r},o)}));var st=Object(s.ifViewportMatches)("medium")((function(){return Object(c.createElement)(j.MenuGroup,{label:Object(E._x)("View","noun")},Object(c.createElement)(lt,{feature:"fixedToolbar",label:Object(E.__)("Top Toolbar"),info:Object(E.__)("Access all block and document tools in a single place"),messageActivated:Object(E.__)("Top toolbar activated"),messageDeactivated:Object(E.__)("Top toolbar deactivated")}),Object(c.createElement)(lt,{feature:"focusMode",label:Object(E.__)("Spotlight Mode"),info:Object(E.__)("Focus on one block at a time"),messageActivated:Object(E.__)("Spotlight mode activated"),messageDeactivated:Object(E.__)("Spotlight mode deactivated")}),Object(c.createElement)(lt,{feature:"fullscreenMode",label:Object(E.__)("Fullscreen Mode"),info:Object(E.__)("Work without distraction"),messageActivated:Object(E.__)("Fullscreen mode activated"),messageDeactivated:Object(E.__)("Fullscreen mode deactivated")}))})),ut={className:"edit-post-more-menu__content",position:"bottom left"},dt={labelPosition:"bottom"},bt=function(){return Object(c.createElement)(j.DropdownMenu,{className:"edit-post-more-menu",icon:"ellipsis",label:Object(E.__)("More tools & options"),popoverProps:ut,toggleProps:dt},(function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(st,null),Object(c.createElement)(nt,null),Object(c.createElement)(it.Slot,{fillProps:{onClose:t}}),Object(c.createElement)(A.Slot,{fillProps:{onClose:t}}),Object(c.createElement)(j.MenuGroup,null,Object(c.createElement)(at,null)))}))},pt=Object(j.createSlotFill)("PinnedPlugins"),mt=pt.Fill,Ot=pt.Slot;mt.Slot=function(e){return Object(c.createElement)(Ot,e,(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)("div",{className:"edit-post-pinned-plugins"},e)}))};var ft=mt;var jt=Object(g.compose)(Object(h.withSelect)((function(e){return{hasPublishAction:Object(O.get)(e("core/editor").getCurrentPost(),["_links","wp:action-publish"],!1),isBeingScheduled:e("core/editor").isEditedPostBeingScheduled(),isPending:e("core/editor").isCurrentPostPending(),isPublished:e("core/editor").isCurrentPostPublished(),isPublishSidebarEnabled:e("core/editor").isPublishSidebarEnabled(),isPublishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),isScheduled:e("core/editor").isCurrentPostScheduled()}})),Object(h.withDispatch)((function(e){return{togglePublishSidebar:e("core/edit-post").togglePublishSidebar}})),Object(s.withViewportMatch)({isLessThanMediumViewport:"< medium"}))((function(e){var t,n=e.forceIsDirty,o=e.forceIsSaving,r=e.hasPublishAction,i=e.isBeingScheduled,l=e.isLessThanMediumViewport,s=e.isPending,u=e.isPublished,d=e.isPublishSidebarEnabled,b=e.isPublishSidebarOpened,p=e.isScheduled,m=e.togglePublishSidebar;return t=u||p&&i||s&&!r&&!l?"button":l?"toggle":d?"toggle":"button",Object(c.createElement)(a.PostPublishButton,{forceIsDirty:n,forceIsSaving:o,isOpen:b,isToggle:"toggle"===t,onToggle:m})}));var ht=Object(g.compose)(Object(h.withSelect)((function(e){return{hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isEditorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),isPublishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),isSaving:e("core/edit-post").isSavingMetaBoxes()}})),Object(h.withDispatch)((function(e,t,n){var o=(0,n.select)("core/block-editor").getBlockSelectionStart,r=e("core/edit-post"),c=r.openGeneralSidebar;return{openGeneralSidebar:function(){return c(o()?"edit-post/block":"edit-post/document")},closeGeneralSidebar:r.closeGeneralSidebar}})))((function(e){var t=e.closeGeneralSidebar,n=e.hasActiveMetaboxes,o=e.isEditorSidebarOpened,r=e.isPublishSidebarOpened,i=e.isSaving,s=e.openGeneralSidebar,u=o?t:s;return Object(c.createElement)("div",{role:"region","aria-label":Object(E.__)("Editor top bar"),className:"edit-post-header",tabIndex:"-1"},Object(c.createElement)("div",{className:"edit-post-header__toolbar"},Object(c.createElement)(Ze,null),Object(c.createElement)(Je,null)),Object(c.createElement)("div",{className:"edit-post-header__settings"},!r&&Object(c.createElement)(a.PostSavedState,{forceIsDirty:n,forceIsSaving:i}),Object(c.createElement)(a.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:i?null:void 0}),Object(c.createElement)(jt,{forceIsDirty:n,forceIsSaving:i}),Object(c.createElement)("div",null,Object(c.createElement)(j.IconButton,{icon:"admin-generic",label:Object(E.__)("Settings"),onClick:u,isToggled:o,"aria-expanded":o,shortcut:et.toggleSidebar}),Object(c.createElement)(l.DotTip,{tipId:"core/editor.settings"},Object(E.__)("You’ll find more settings for your page and blocks in the sidebar. Click the cog icon to toggle the sidebar open and closed."))),Object(c.createElement)(ft.Slot,null),Object(c.createElement)(bt,null)))}));var Et=Object(g.compose)(Object(h.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}})),Object(h.withDispatch)((function(e){return{onExit:function(){e("core/edit-post").switchEditorMode("visual")}}})))((function(e){var t=e.onExit,n=e.isRichEditingEnabled;return Object(c.createElement)("div",{className:"edit-post-text-editor"},n&&Object(c.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(c.createElement)("h2",null,Object(E.__)("Editing Code")),Object(c.createElement)(j.IconButton,{onClick:t,icon:"no-alt",shortcut:w.displayShortcut.secondary("m")},Object(E.__)("Exit Code Editor")),Object(c.createElement)(a.TextEditorGlobalKeyboardShortcuts,null)),Object(c.createElement)("div",{className:"edit-post-text-editor__body"},Object(c.createElement)(a.PostTitle,null),Object(c.createElement)(a.PostTextEditor,null)))}));var gt=Object(g.compose)(Object(h.withSelect)((function(e){return{areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}})),Object(h.withDispatch)((function(e){return{openEditorSidebar:function(){return e("core/edit-post").openGeneralSidebar("edit-post/block")},closeSidebar:e("core/edit-post").closeGeneralSidebar}})),j.withSpokenMessages)((function(e){var t=e.areAdvancedSettingsOpened,n=e.closeSidebar,o=e.openEditorSidebar,r=e.onClick,i=void 0===r?O.noop:r,a=e.small,l=void 0!==a&&a,s=e.speak,u=t?Object(E.__)("Hide Block Settings"):Object(E.__)("Show Block Settings");return Object(c.createElement)(j.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(O.flow)(t?n:o,(function(){s(t?Object(E.__)("Block settings closed"):Object(E.__)("Additional settings are now available in the Editor block settings sidebar"))}),i),icon:"admin-generic",shortcut:et.toggleSidebar},!l&&u)})),vt=Object(j.createSlotFill)("PluginBlockSettingsMenuGroup"),_t=vt.Fill,yt=vt.Slot;_t.Slot=Object(h.withSelect)((function(e,t){var n=t.fillProps.clientIds;return{selectedBlocks:e("core/block-editor").getBlocksByClientId(n)}}))((function(e){var t=e.fillProps,n=e.selectedBlocks;return n=Object(O.map)(n,(function(e){return e.name})),Object(c.createElement)(yt,{fillProps:Object(D.a)({},t,{selectedBlocks:n})},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"editor-block-settings-menu__separator block-editor-block-settings-menu__separator"}),e)}))}));var St=_t;var kt=function(){return Object(c.createElement)(i.BlockSelectionClearer,{className:"edit-post-visual-editor editor-styles-wrapper"},Object(c.createElement)(a.VisualEditorGlobalKeyboardShortcuts,null),Object(c.createElement)(i.MultiSelectScrollIntoView,null),Object(c.createElement)(i.Typewriter,null,Object(c.createElement)(i.WritingFlow,null,Object(c.createElement)(i.ObserveTyping,null,Object(c.createElement)(i.CopyHandler,null,Object(c.createElement)(a.PostTitle,null),Object(c.createElement)(i.BlockList,null))))),Object(c.createElement)(i.__experimentalBlockSettingsMenuFirstItem,null,(function(e){var t=e.onClose;return Object(c.createElement)(gt,{onClick:t})})),Object(c.createElement)(i.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var t=e.clientIds,n=e.onClose;return Object(c.createElement)(St.Slot,{fillProps:{clientIds:t,onClose:n}})})))},Pt=n(5),wt=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).toggleMode=e.toggleMode.bind(Object(Pt.a)(e)),e.toggleSidebar=e.toggleSidebar.bind(Object(Pt.a)(e)),e}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"toggleMode",value:function(){var e=this.props,t=e.mode,n=e.switchMode;e.isModeSwitchEnabled&&n("visual"===t?"text":"visual")}},{key:"toggleSidebar",value:function(e){e.preventDefault();var t=this.props,n=t.isEditorSidebarOpen,o=t.closeSidebar,r=t.openSidebar;n?o():r()}},{key:"render",value:function(){var e;return Object(c.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(e={},Object(I.a)(e,et.toggleEditorMode.raw,this.toggleMode),Object(I.a)(e,et.toggleSidebar.raw,this.toggleSidebar),e)})}}]),t}(c.Component),Ct=Object(g.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getEditorSettings(),n=t.richEditingEnabled,o=t.codeEditingEnabled;return{isModeSwitchEnabled:n&&o,mode:e("core/edit-post").getEditorMode(),isEditorSidebarOpen:e("core/edit-post").isEditorSidebarOpened()}})),Object(h.withDispatch)((function(e,t,n){var o=n.select;return{switchMode:function(t){e("core/edit-post").switchEditorMode(t)},openSidebar:function(){var t=(0,o("core/block-editor").getBlockSelectionStart)()?"edit-post/block":"edit-post/document";e("core/edit-post").openGeneralSidebar(t)},closeSidebar:e("core/edit-post").closeGeneralSidebar}}))])(wt),Tt=w.displayShortcutList.primary,xt=w.displayShortcutList.primaryShift,Nt=w.displayShortcutList.primaryAlt,At=w.displayShortcutList.secondary,Mt=w.displayShortcutList.access,Bt=w.displayShortcutList.ctrl,It=w.displayShortcutList.alt,Dt=w.displayShortcutList.ctrlShift,Lt=[{className:"edit-post-keyboard-shortcut-help__main-shortcuts",shortcuts:[{keyCombination:Mt("h"),description:Object(E.__)("Display these keyboard shortcuts.")}]},{title:Object(E.__)("Global shortcuts"),shortcuts:[{keyCombination:Tt("s"),description:Object(E.__)("Save your changes.")},{keyCombination:Tt("z"),description:Object(E.__)("Undo your last changes.")},{keyCombination:xt("z"),description:Object(E.__)("Redo your last undo.")},{keyCombination:xt(","),description:Object(E.__)("Show or hide the settings sidebar."),ariaLabel:w.shortcutAriaLabel.primaryShift(",")},{keyCombination:Mt("o"),description:Object(E.__)("Open the block navigation menu.")},{keyCombination:Bt("`"),description:Object(E.__)("Navigate to the next part of the editor."),ariaLabel:w.shortcutAriaLabel.ctrl("`")},{keyCombination:Dt("`"),description:Object(E.__)("Navigate to the previous part of the editor."),ariaLabel:w.shortcutAriaLabel.ctrlShift("`")},{keyCombination:Mt("n"),description:Object(E.__)("Navigate to the next part of the editor (alternative).")},{keyCombination:Mt("p"),description:Object(E.__)("Navigate to the previous part of the editor (alternative).")},{keyCombination:It("F10"),description:Object(E.__)("Navigate to the nearest toolbar.")},{keyCombination:At("m"),description:Object(E.__)("Switch between Visual Editor and Code Editor.")}]},{title:Object(E.__)("Selection shortcuts"),shortcuts:[{keyCombination:Tt("a"),description:Object(E.__)("Select all text when typing. Press again to select all blocks.")},{keyCombination:"Esc",description:Object(E.__)("Clear selection."),ariaLabel:Object(E.__)("Escape")}]},{title:Object(E.__)("Block shortcuts"),shortcuts:[{keyCombination:xt("d"),description:Object(E.__)("Duplicate the selected block(s).")},{keyCombination:Mt("z"),description:Object(E.__)("Remove the selected block(s).")},{keyCombination:Nt("t"),description:Object(E.__)("Insert a new block before the selected block(s).")},{keyCombination:Nt("y"),description:Object(E.__)("Insert a new block after the selected block(s).")},{keyCombination:"/",description:Object(E.__)("Change the block type after adding a new paragraph."),ariaLabel:Object(E.__)("Forward-slash")}]},{title:Object(E.__)("Text formatting"),shortcuts:[{keyCombination:Tt("b"),description:Object(E.__)("Make the selected text bold.")},{keyCombination:Tt("i"),description:Object(E.__)("Make the selected text italic.")},{keyCombination:Tt("k"),description:Object(E.__)("Convert the selected text into a link.")},{keyCombination:xt("k"),description:Object(E.__)("Remove a link.")},{keyCombination:Tt("u"),description:Object(E.__)("Underline the selected text.")}]}],Ft="edit-post/keyboard-shortcut-help",Rt=function(e){var t=e.shortcuts;return(Object(c.createElement)("ul",{className:"edit-post-keyboard-shortcut-help__shortcut-list",role:"list"},t.map((function(e,t){var n=e.keyCombination,o=e.description,r=e.ariaLabel;return Object(c.createElement)("li",{className:"edit-post-keyboard-shortcut-help__shortcut",key:t},Object(c.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-description"},o),Object(c.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-term"},Object(c.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help__shortcut-key-combination","aria-label":r},function(e){return e.map((function(e,t){return"+"===e?Object(c.createElement)(c.Fragment,{key:t},e):Object(c.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help__shortcut-key"},e)}))}(Object(O.castArray)(n)))))}))))},Gt=function(e){var t=e.title,n=e.shortcuts,o=e.className;return Object(c.createElement)("section",{className:ze()("edit-post-keyboard-shortcut-help__section",o)},!!t&&Object(c.createElement)("h2",{className:"edit-post-keyboard-shortcut-help__section-title"},t),Object(c.createElement)(Rt,{shortcuts:n}))};var Vt=Object(g.compose)([Object(h.withSelect)((function(e){return{isModalActive:e("core/edit-post").isModalActive(Ft)}})),Object(h.withDispatch)((function(e,t){var n=t.isModalActive,o=e("core/edit-post"),r=o.openModal,c=o.closeModal;return{toggleModal:function(){return n?c():r(Ft)}}}))])((function(e){var t=e.isModalActive,n=e.toggleModal;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(I.a)({},w.rawShortcut.access("h"),n)}),t&&Object(c.createElement)(j.Modal,{className:"edit-post-keyboard-shortcut-help",title:Object(E.__)("Keyboard Shortcuts"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Lt.map((function(e,t){return Object(c.createElement)(Gt,Object(p.a)({key:t},e))}))))}));var Ut=function(e){var t=e.blockTypes,n=e.value,o=e.onItemChange;return Object(c.createElement)("ul",{className:"edit-post-manage-blocks-modal__checklist"},t.map((function(e){return Object(c.createElement)("li",{key:e.name,className:"edit-post-manage-blocks-modal__checklist-item"},Object(c.createElement)(j.CheckboxControl,{label:Object(c.createElement)(c.Fragment,null,e.title,Object(c.createElement)(i.BlockIcon,{icon:e.icon})),checked:n.includes(e.name),onChange:Object(O.partial)(o,e.name)}))})))},Ht=Object(c.createContext)({});var Wt=Object(g.compose)([g.withInstanceId,Object(h.withSelect)((function(e){return{hiddenBlockTypes:(0,e("core/edit-post").getPreference)("hiddenBlockTypes")}})),Object(h.withDispatch)((function(e,t){var n=e("core/edit-post"),o=n.showBlockTypes,r=n.hideBlockTypes;return{toggleVisible:function(e,t){t?o(e):r(e)},toggleAllVisible:function(e){var n=Object(O.map)(t.blockTypes,"name");e?o(n):r(n)}}}))])((function(e){var t=e.instanceId,n=e.category,o=e.blockTypes,r=e.hiddenBlockTypes,i=e.toggleVisible,a=e.toggleAllVisible,l=Object(c.useContext)(Ht).allowedBlockTypes,s=Object(c.useMemo)((function(){return!0===l?o:o.filter((function(e){var t=e.name;return Object(O.includes)(l||[],t)}))}),[l,o]);if(!s.length)return null;var u,d=O.without.apply(void 0,[Object(O.map)(s,"name")].concat(Object(B.a)(r))),b="edit-post-manage-blocks-modal__category-title-"+t,p=d.length===s.length;return u=p?"true":d.length>0?"mixed":"false",Object(c.createElement)("div",{role:"group","aria-labelledby":b,className:"edit-post-manage-blocks-modal__category"},Object(c.createElement)(j.CheckboxControl,{checked:p,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":u,label:Object(c.createElement)("span",{id:b},n.title)}),Object(c.createElement)(Ut,{blockTypes:s,value:d,onItemChange:i}))}));var qt=Object(g.compose)([Object(g.withState)({search:""}),Object(h.withSelect)((function(e){var t=e("core/blocks"),n=t.getBlockTypes,o=t.getCategories,r=t.hasBlockSupport,c=t.isMatchingSearchTerm,i=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),a=Object(O.isArray)(i)&&i.length;return{blockTypes:n(),categories:o(),hasBlockSupport:r,isMatchingSearchTerm:c,numberOfHiddenBlocks:a}}))])((function(e){var t=e.search,n=e.setState,o=e.blockTypes,r=e.categories,i=e.hasBlockSupport,a=e.isMatchingSearchTerm,l=e.numberOfHiddenBlocks;return o=o.filter((function(e){return i(e,"inserter",!0)&&(!t||a(e,t))&&!e.parent})),Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(c.createElement)(j.TextControl,{type:"search",label:Object(E.__)("Search for a block"),value:t,onChange:function(e){return n({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!l&&Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(E.sprintf)(Object(E._n)("%1$d block is disabled.","%1$d blocks are disabled.",l),l)),Object(c.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(E.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===o.length&&Object(c.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(E.__)("No blocks found.")),r.map((function(e){return Object(c.createElement)(Wt,{key:e.slug,category:e,blockTypes:Object(O.filter)(o,{category:e.slug})})}))))}));var Kt=Object(g.compose)([Object(h.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(h.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,n=e.closeModal;return t?Object(c.createElement)(j.Modal,{className:"edit-post-manage-blocks-modal",title:Object(E.__)("Block Manager"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Object(c.createElement)(qt,null)):null})),Qt=function(e){var t=e.title,n=e.children;return Object(c.createElement)("section",{className:"edit-post-options-modal__section"},Object(c.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),n)};var Xt=function(e){var t=e.label,n=e.isChecked,o=e.onChange,r=e.children;return Object(c.createElement)("div",{className:"edit-post-options-modal__option"},Object(c.createElement)(j.CheckboxControl,{label:t,checked:n,onChange:o}),r)};function zt(e){var t=e.willEnable,n=Object(c.useState)(!1),o=Object(H.a)(n,2),r=o[0],i=o[1];return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"edit-post-options-modal__custom-fields-confirmation-message"},Object(E.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(c.createElement)(j.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isDefault:!0,isBusy:r,disabled:r,onClick:function(){i(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(E.__)("Enable & Reload"):Object(E.__)("Disable & Reload")))}var Yt=Object(h.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,n=e.areCustomFieldsEnabled,o=Object(c.useState)(n),r=Object(H.a)(o,2),i=r[0],a=r[1];return Object(c.createElement)(Xt,{label:t,isChecked:i,onChange:a},i!==n&&Object(c.createElement)(zt,{willEnable:i}))})),$t=Object(g.compose)(Object(h.withSelect)((function(e,t){var n=t.panelName,o=e("core/edit-post"),r=o.isEditorPanelEnabled;return{isRemoved:(0,o.isEditorPanelRemoved)(n),isChecked:r(n)}})),Object(g.ifCondition)((function(e){return!e.isRemoved})),Object(h.withDispatch)((function(e,t){var n=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(n)}}})))(Xt),Zt=Object(j.createSlotFill)("EnablePluginDocumentSettingPanelOption"),Jt=Zt.Fill,en=Zt.Slot,tn=function(e){var t=e.label,n=e.panelName;return Object(c.createElement)(Jt,null,Object(c.createElement)($t,{label:t,panelName:n}))};tn.Slot=en;var nn=tn,on=Object(g.compose)(Object(h.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.enablePublishSidebar,o=t.disablePublishSidebar;return{onChange:function(e){return e?n():o()}}})),Object(s.ifViewportMatches)("medium"))(Xt),rn=function(e){function t(e){var n,o=e.isChecked;return Object(Ge.a)(this,t),(n=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).state={isChecked:o},n}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"componentWillUnmount",value:function(){this.state.isChecked!==this.props.isChecked&&this.props.onChange(this.state.isChecked)}},{key:"render",value:function(){var e=this;return Object(c.createElement)(Xt,{label:this.props.label,isChecked:this.state.isChecked,onChange:function(t){return e.setState({isChecked:t})}})}}]),t}(c.Component),cn=Object(g.compose)(Object(h.withSelect)((function(e){return{isChecked:e("core/nux").areTipsEnabled()}})),Object(h.withDispatch)((function(e){var t=e("core/nux"),n=t.enableTips,o=t.disableTips;return{onChange:function(e){return e?n():o()}}})))(rn),an=Object(g.compose)(Object(h.withSelect)((function(e,t){var n=t.feature;return{isChecked:e("core/edit-post").isFeatureActive(n)}})),Object(h.withDispatch)((function(e,t){var n=t.feature,o=e("core/edit-post").toggleFeature;return{onChange:function(){o(n)}}})))(Xt);var ln=Object(h.withSelect)((function(e){var t=e("core/editor").getEditorSettings,n=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}}))((function(e){var t=e.areCustomFieldsRegistered,n=e.metaBoxes,o=Object(m.a)(e,["areCustomFieldsRegistered","metaBoxes"]),r=Object(O.filter)(n,(function(e){return"postcustom"!==e.id}));return t||0!==r.length?Object(c.createElement)(Qt,o,t&&Object(c.createElement)(Yt,{label:Object(E.__)("Custom Fields")}),Object(O.map)(r,(function(e){var t=e.id,n=e.title;return Object(c.createElement)($t,{key:t,label:n,panelName:"meta-box-".concat(t)})}))):null}));var sn=Object(g.compose)(Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(O.get)(n,["viewable"],!1)}})),Object(h.withDispatch)((function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}})))((function(e){var t=e.isModalActive,n=e.isViewable,o=e.closeModal;return t?Object(c.createElement)(j.Modal,{className:"edit-post-options-modal",title:Object(E.__)("Options"),closeLabel:Object(E.__)("Close"),onRequestClose:o},Object(c.createElement)(Qt,{title:Object(E.__)("General")},Object(c.createElement)(on,{label:Object(E.__)("Pre-publish Checks")}),Object(c.createElement)(cn,{label:Object(E.__)("Tips")}),Object(c.createElement)(an,{feature:"showInserterHelpPanel",label:Object(E.__)("Inserter Help Panel")})),Object(c.createElement)(Qt,{title:Object(E.__)("Document Panels")},Object(c.createElement)(nn.Slot,null),n&&Object(c.createElement)($t,{label:Object(E.__)("Permalink"),panelName:"post-link"}),Object(c.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)($t,{label:Object(O.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(c.createElement)(a.PostFeaturedImageCheck,null,Object(c.createElement)($t,{label:Object(E.__)("Featured Image"),panelName:"featured-image"})),Object(c.createElement)(a.PostExcerptCheck,null,Object(c.createElement)($t,{label:Object(E.__)("Excerpt"),panelName:"post-excerpt"})),Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)($t,{label:Object(E.__)("Discussion"),panelName:"discussion-panel"})),Object(c.createElement)(a.PageAttributesCheck,null,Object(c.createElement)($t,{label:Object(E.__)("Page Attributes"),panelName:"page-attributes"}))),Object(c.createElement)(ln,{title:Object(E.__)("Advanced Panels")})):null})),un=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(Pt.a)(e)),e}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"componentDidMount",value:function(){this.form=document.querySelector(".metabox-location-"+this.props.location),this.form&&this.container.appendChild(this.form)}},{key:"componentWillUnmount",value:function(){this.form&&document.querySelector("#metaboxes").appendChild(this.form)}},{key:"bindContainerNode",value:function(e){this.container=e}},{key:"render",value:function(){var e=this.props,t=e.location,n=e.isSaving,o=ze()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(c.createElement)("div",{className:o},n&&Object(c.createElement)(j.Spinner,null),Object(c.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(c.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(c.Component),dn=Object(h.withSelect)((function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}}))(un),bn=function(e){function t(){return Object(Ge.a)(this,t),Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"componentDidMount",value:function(){this.updateDOM()}},{key:"componentDidUpdate",value:function(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}},{key:"updateDOM",value:function(){var e=this.props,t=e.id,n=e.isVisible,o=document.getElementById(t);o&&(n?o.classList.remove("is-hidden"):o.classList.add("is-hidden"))}},{key:"render",value:function(){return null}}]),t}(c.Component),pn=Object(h.withSelect)((function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}}))(bn);var mn=Object(h.withSelect)((function(e,t){var n=t.location,o=e("core/edit-post"),r=o.isMetaBoxLocationVisible;return{metaBoxes:(0,o.getMetaBoxesPerLocation)(n),isVisible:r(n)}}))((function(e){var t=e.location,n=e.isVisible,o=e.metaBoxes;return Object(c.createElement)(c.Fragment,null,Object(O.map)(o,(function(e){var t=e.id;return Object(c.createElement)(pn,{key:t,id:t})})),n&&Object(c.createElement)(dn,{location:t}))})),On=Object(j.createSlotFill)("Sidebar"),fn=On.Fill,jn=On.Slot;function hn(e){var t=e.children,n=e.label,o=e.className;return Object(c.createElement)("div",{className:ze()("edit-post-sidebar",o),role:"region","aria-label":n,tabIndex:"-1"},t)}hn=Object(j.withFocusReturn)({onFocusReturn:function(){var e=document.querySelector('.edit-post-header__settings [aria-label="Settings"]');if(e)return e.focus(),!1}})(hn);var En=Object(g.compose)(Object(h.withSelect)((function(e,t){var n=t.name;return{isActive:e("core/edit-post").getActiveGeneralSidebarName()===n}})),Object(g.ifCondition)((function(e){return e.isActive})))((function(e){return Object(c.createElement)(fn,null,Object(c.createElement)(j.Animate,{type:"slide-in",options:{origin:"left"}},(function(){return Object(c.createElement)(hn,e)})))}));En.Slot=jn;var gn=En,vn=Object(g.compose)(Object(h.withSelect)((function(e){return{title:e("core/editor").getEditedPostAttribute("title")}})),Object(h.withDispatch)((function(e){return{closeSidebar:e("core/edit-post").closeGeneralSidebar}})))((function(e){var t=e.children,n=e.className,o=e.closeLabel,r=e.closeSidebar,i=e.title;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"components-panel__header edit-post-sidebar-header__small"},Object(c.createElement)("span",{className:"edit-post-sidebar-header__title"},i||Object(E.__)("(no title)")),Object(c.createElement)(j.IconButton,{onClick:r,icon:"no-alt",label:o})),Object(c.createElement)("div",{className:ze()("components-panel__header edit-post-sidebar-header",n)},t,Object(c.createElement)(j.IconButton,{onClick:r,icon:"no-alt",label:o,shortcut:et.toggleSidebar})))})),_n=Object(h.withDispatch)((function(e){var t=e("core/edit-post").openGeneralSidebar,n=e("core/block-editor").clearSelectedBlock;return{openDocumentSettings:function(){t("edit-post/document"),n()},openBlockSettings:function(){t("edit-post/block")}}}))((function(e){var t=e.openDocumentSettings,n=e.openBlockSettings,o=e.sidebarName,r=Object(E.__)("Block"),i="edit-post/document"===o?[Object(E.__)("Document (selected)"),"is-active"]:[Object(E.__)("Document"),""],a=Object(H.a)(i,2),l=a[0],s=a[1],u="edit-post/block"===o?[Object(E.__)("Block (selected)"),"is-active"]:[Object(E.__)("Block"),""],d=Object(H.a)(u,2),b=d[0],p=d[1];return Object(c.createElement)(vn,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(E.__)("Close settings")},Object(c.createElement)("ul",null,Object(c.createElement)("li",null,Object(c.createElement)("button",{onClick:t,className:"edit-post-sidebar__panel-tab ".concat(s),"aria-label":l,"data-label":Object(E.__)("Document")},Object(E.__)("Document"))),Object(c.createElement)("li",null,Object(c.createElement)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":b,"data-label":r},r))))}));var yn=function(){return Object(c.createElement)(a.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(c.createElement)(j.PanelRow,{className:"edit-post-post-visibility"},Object(c.createElement)("span",null,Object(E.__)("Visibility")),!t&&Object(c.createElement)("span",null,Object(c.createElement)(a.PostVisibilityLabel,null)),t&&Object(c.createElement)(j.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(j.Button,{type:"button","aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(c.createElement)(a.PostVisibilityLabel,null))},renderContent:function(){return Object(c.createElement)(a.PostVisibility,null)}}))}})};function Sn(){return Object(c.createElement)(a.PostTrashCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostTrash,null)))}var kn=function(){return Object(c.createElement)(a.PostScheduleCheck,null,Object(c.createElement)(j.PanelRow,{className:"edit-post-post-schedule"},Object(c.createElement)("span",null,Object(E.__)("Publish")),Object(c.createElement)(j.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.Button,{type:"button",className:"edit-post-post-schedule__toggle",onClick:t,"aria-expanded":n,isLink:!0},Object(c.createElement)(a.PostScheduleLabel,null)))},renderContent:function(){return Object(c.createElement)(a.PostSchedule,null)}})))};var Pn=function(){return Object(c.createElement)(a.PostStickyCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostSticky,null)))};var wn=function(){return Object(c.createElement)(a.PostAuthorCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostAuthor,null)))};var Cn=function(){return Object(c.createElement)(a.PostFormatCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostFormat,null)))};var Tn=function(){return Object(c.createElement)(a.PostPendingStatusCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostPendingStatus,null)))},xn=Object(j.createSlotFill)("PluginPostStatusInfo"),Nn=xn.Fill,An=xn.Slot,Mn=function(e){var t=e.children,n=e.className;return Object(c.createElement)(Nn,null,Object(c.createElement)(j.PanelRow,{className:n},t))};Mn.Slot=An;var Bn=Mn;var In=Object(g.compose)([Object(h.withSelect)((function(e){var t=e("core/edit-post"),n=t.isEditorPanelRemoved,o=t.isEditorPanelOpened;return{isRemoved:n("post-status"),isOpened:o("post-status")}})),Object(g.ifCondition)((function(e){return!e.isRemoved})),Object(h.withDispatch)((function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-status")}}}))])((function(e){var t=e.isOpened,n=e.onTogglePanel;return Object(c.createElement)(j.PanelBody,{className:"edit-post-post-status",title:Object(E.__)("Status & Visibility"),opened:t,onToggle:n},Object(c.createElement)(Bn.Slot,null,(function(e){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(yn,null),Object(c.createElement)(kn,null),Object(c.createElement)(Cn,null),Object(c.createElement)(Pn,null),Object(c.createElement)(Tn,null),Object(c.createElement)(wn,null),e,Object(c.createElement)(Sn,null))})))}));var Dn=function(){return Object(c.createElement)(a.PostLastRevisionCheck,null,Object(c.createElement)(j.PanelBody,{className:"edit-post-last-revision__panel"},Object(c.createElement)(a.PostLastRevision,null)))};var Ln=Object(g.compose)(Object(h.withSelect)((function(e,t){var n=Object(O.get)(t.taxonomy,["slug"]),o=n?"taxonomy-panel-".concat(n):"";return{panelName:o,isEnabled:!!n&&e("core/edit-post").isEditorPanelEnabled(o),isOpened:!!n&&e("core/edit-post").isEditorPanelOpened(o)}})),Object(h.withDispatch)((function(e,t){return{onTogglePanel:function(){e("core/edit-post").toggleEditorPanelOpened(t.panelName)}}})))((function(e){var t=e.isEnabled,n=e.taxonomy,o=e.isOpened,r=e.onTogglePanel,i=e.children;if(!t)return null;var a=Object(O.get)(n,["labels","menu_name"]);return a?Object(c.createElement)(j.PanelBody,{title:a,opened:o,onToggle:r},i):null}));var Fn=function(){return Object(c.createElement)(a.PostTaxonomiesCheck,null,Object(c.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)(Ln,{taxonomy:t},e)}}))};var Rn=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getPostType,o=e("core/edit-post"),r=o.isEditorPanelEnabled,c=o.isEditorPanelOpened;return{postType:n(t("type")),isEnabled:r("featured-image"),isOpened:c("featured-image")}})),Gn=Object(h.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"featured-image")}})),Vn=Object(g.compose)(Rn,Gn)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.postType,r=e.onTogglePanel;return t?Object(c.createElement)(a.PostFeaturedImageCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(O.get)(o,["labels","featured_image"],Object(E.__)("Featured Image")),opened:n,onToggle:r},Object(c.createElement)(a.PostFeaturedImage,null))):null}));var Un=Object(g.compose)([Object(h.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("post-excerpt"),isOpened:e("core/edit-post").isEditorPanelOpened("post-excerpt")}})),Object(h.withDispatch)((function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-excerpt")}}}))])((function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(c.createElement)(a.PostExcerptCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Excerpt"),opened:n,onToggle:o},Object(c.createElement)(a.PostExcerpt,null))):null}));var Hn=Object(g.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,o=t.isPermalinkEditable,r=t.getCurrentPost,c=t.isCurrentPostPublished,i=t.getPermalinkParts,a=t.getEditedPostAttribute,l=e("core/edit-post"),s=l.isEditorPanelEnabled,u=l.isEditorPanelOpened,d=e("core").getPostType,b=r(),p=b.link,m=b.id,f=d(a("type"));return{isNew:n(),postLink:p,isEditable:o(),isPublished:c(),isOpened:u("post-link"),permalinkParts:i(),isEnabled:s("post-link"),isViewable:Object(O.get)(f,["viewable"],!1),postTitle:a("title"),postSlug:a("slug"),postID:m,postTypeLabel:Object(O.get)(f,["labels","view_item"])}})),Object(g.ifCondition)((function(e){var t=e.isEnabled,n=e.isNew,o=e.postLink,r=e.isViewable,c=e.permalinkParts;return t&&!n&&o&&r&&c})),Object(h.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened,n=e("core/editor").editPost;return{onTogglePanel:function(){return t("post-link")},editPermalink:function(e){n({slug:e})}}})),Object(g.withState)({forceEmptyField:!1})])((function(e){var t,n,o,r=e.isOpened,i=e.onTogglePanel,l=e.isEditable,s=e.postLink,u=e.permalinkParts,d=e.editPermalink,b=e.forceEmptyField,p=e.setState,m=e.postTitle,O=e.postSlug,f=e.postID,h=e.postTypeLabel,g=u.prefix,v=u.suffix,_=Object(S.safeDecodeURIComponent)(O)||Object(a.cleanForSlug)(m)||f;return l&&(t=g&&Object(c.createElement)("span",{className:"edit-post-post-link__link-prefix"},g),n=_&&Object(c.createElement)("span",{className:"edit-post-post-link__link-post-name"},_),o=v&&Object(c.createElement)("span",{className:"edit-post-post-link__link-suffix"},v)),Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Permalink"),opened:r,onToggle:i},l&&Object(c.createElement)("div",{className:"editor-post-link"},Object(c.createElement)(j.TextControl,{label:Object(E.__)("URL Slug"),value:b?"":_,onChange:function(e){d(e),e?b&&p({forceEmptyField:!1}):b||p({forceEmptyField:!0})},onBlur:function(e){d(Object(a.cleanForSlug)(e.target.value)),b&&p({forceEmptyField:!1})}}),Object(c.createElement)("p",null,Object(E.__)("The last part of the URL. "),Object(c.createElement)(j.ExternalLink,{href:"https://wordpress.org/support/article/writing-posts/#post-field-descriptions"},Object(E.__)("Read about permalinks")))),Object(c.createElement)("p",{className:"edit-post-post-link__preview-label"},h||Object(E.__)("View Post")),Object(c.createElement)("div",{className:"edit-post-post-link__preview-link-container"},Object(c.createElement)(j.ExternalLink,{className:"edit-post-post-link__link",href:s,target:"_blank"},l?Object(c.createElement)(c.Fragment,null,t,n,o):s)))}));var Wn=Object(g.compose)([Object(h.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("discussion-panel"),isOpened:e("core/edit-post").isEditorPanelOpened("discussion-panel")}})),Object(h.withDispatch)((function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("discussion-panel")}}}))])((function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)(j.PanelBody,{title:Object(E.__)("Discussion"),opened:n,onToggle:o},Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:"comments"},Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostComments,null))),Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostPingbacks,null))))):null}));var qn=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core/edit-post"),o=n.isEditorPanelEnabled,r=n.isEditorPanelOpened,c=e("core").getPostType;return{isEnabled:o("page-attributes"),isOpened:r("page-attributes"),postType:c(t("type"))}})),Kn=Object(h.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"page-attributes")}})),Qn=Object(g.compose)(qn,Kn)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel,r=e.postType;return t&&r?Object(c.createElement)(a.PageAttributesCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(O.get)(r,["labels","attributes"],Object(E.__)("Page Attributes")),opened:n,onToggle:o},Object(c.createElement)(a.PageTemplate,null),Object(c.createElement)(a.PageAttributesParent,null),Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PageAttributesOrder,null)))):null})),Xn=Object(j.createSlotFill)("PluginDocumentSettingPanel"),zn=Xn.Fill,Yn=Xn.Slot,$n=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,panelName:"".concat(e.name,"/").concat(t.name)}})),Object(h.withSelect)((function(e,t){var n=t.panelName;return{opened:e("core/edit-post").isEditorPanelOpened(n),isEnabled:e("core/edit-post").isEditorPanelEnabled(n)}})),Object(h.withDispatch)((function(e,t){var n=t.panelName;return{onToggle:function(){return e("core/edit-post").toggleEditorPanelOpened(n)}}})))((function(e){var t=e.isEnabled,n=e.panelName,o=e.opened,r=e.onToggle,i=e.className,a=e.title,l=e.icon,s=e.children;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(nn,{label:a,panelName:n}),Object(c.createElement)(zn,null,t&&Object(c.createElement)(j.PanelBody,{className:i,title:a,icon:l,opened:o,onToggle:r},s)))}));$n.Slot=Yn;var Zn=$n,Jn=Object(g.compose)(Object(h.withSelect)((function(e){var t=e("core/edit-post"),n=t.getActiveGeneralSidebarName;return{isEditorSidebarOpened:(0,t.isEditorSidebarOpened)(),sidebarName:n()}})),Object(g.ifCondition)((function(e){return e.isEditorSidebarOpened})))((function(e){var t=e.sidebarName;return Object(c.createElement)(gn,{name:t,label:Object(E.__)("Editor settings")},Object(c.createElement)(_n,{sidebarName:t}),Object(c.createElement)(j.Panel,null,"edit-post/document"===t&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(In,null),Object(c.createElement)(Zn.Slot,null),Object(c.createElement)(Dn,null),Object(c.createElement)(Hn,null),Object(c.createElement)(Fn,null),Object(c.createElement)(Vn,null),Object(c.createElement)(Un,null),Object(c.createElement)(Wn,null),Object(c.createElement)(Qn,null),Object(c.createElement)(mn,{location:"side"})),"edit-post/block"===t&&Object(c.createElement)(j.PanelBody,{className:"edit-post-settings-sidebar__panel-block"},Object(c.createElement)(i.BlockInspector,null))))})),eo=Object(j.createSlotFill)("PluginPostPublishPanel"),to=eo.Fill,no=eo.Slot,oo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,i=void 0!==r&&r,a=e.icon;return Object(c.createElement)(to,null,Object(c.createElement)(j.PanelBody,{className:n,initialOpen:i||!o,title:o,icon:a},t))}));oo.Slot=no;var ro=oo,co=Object(j.createSlotFill)("PluginPrePublishPanel"),io=co.Fill,ao=co.Slot,lo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,i=void 0!==r&&r,a=e.icon;return Object(c.createElement)(io,null,Object(c.createElement)(j.PanelBody,{className:n,initialOpen:i||!o,title:o,icon:a},t))}));lo.Slot=ao;var so=lo,uo=function(e){function t(){return Object(Ge.a)(this,t),Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"componentDidMount",value:function(){this.isSticky=!1,this.sync(),document.body.classList.contains("sticky-menu")&&(this.isSticky=!0,document.body.classList.remove("sticky-menu"))}},{key:"componentWillUnmount",value:function(){this.isSticky&&document.body.classList.add("sticky-menu")}},{key:"componentDidUpdate",value:function(e){this.props.isActive!==e.isActive&&this.sync()}},{key:"sync",value:function(){this.props.isActive?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode")}},{key:"render",value:function(){return null}}]),t}(c.Component),bo=Object(h.withSelect)((function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}}))(uo);var po=Object(g.compose)(Object(h.withSelect)((function(e){return{mode:e("core/edit-post").getEditorMode(),editorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),pluginSidebarOpened:e("core/edit-post").isPluginSidebarOpened(),publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}})),Object(h.withDispatch)((function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}})),j.navigateRegions,Object(s.withViewportMatch)({isMobileViewport:"< small"}))((function(e){var t=e.mode,n=e.editorSidebarOpened,o=e.pluginSidebarOpened,r=e.publishSidebarOpened,i=e.hasFixedToolbar,l=e.closePublishSidebar,s=e.togglePublishSidebar,u=e.hasActiveMetaboxes,d=e.isSaving,b=e.isMobileViewport,m=e.isRichEditingEnabled,O=n||o||r,f=ze()("edit-post-layout",{"is-sidebar-opened":O,"has-fixed-toolbar":i,"has-metaboxes":u}),h={role:"region","aria-label":Object(E.__)("Editor publish"),tabIndex:-1};return Object(c.createElement)(j.FocusReturnProvider,{className:f},Object(c.createElement)(bo,null),Object(c.createElement)($e,null),Object(c.createElement)(a.UnsavedChangesWarning,null),Object(c.createElement)(a.AutosaveMonitor,null),Object(c.createElement)(a.LocalAutosaveMonitor,null),Object(c.createElement)(ht,null),Object(c.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(E.__)("Editor content"),tabIndex:"-1"},Object(c.createElement)(a.EditorNotices,null),Object(c.createElement)(Ct,null),Object(c.createElement)(Vt,null),Object(c.createElement)(Kt,null),Object(c.createElement)(sn,null),("text"===t||!m)&&Object(c.createElement)(Et,null),m&&"visual"===t&&Object(c.createElement)(kt,null),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(mn,{location:"normal"})),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(mn,{location:"advanced"}))),r?Object(c.createElement)(a.PostPublishPanel,Object(p.a)({},h,{onClose:l,forceIsDirty:u,forceIsSaving:d,PrePublishExtension:so.Slot,PostPublishExtension:ro.Slot})):Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",Object(p.a)({className:"edit-post-toggle-publish-panel"},h),Object(c.createElement)(j.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:s,"aria-expanded":!1},Object(E.__)("Open publish panel"))),Object(c.createElement)(Jn,null),Object(c.createElement)(gn.Slot,null),b&&O&&Object(c.createElement)(j.ScrollLock,null)),Object(c.createElement)(j.Popover.Slot,null),Object(c.createElement)(y.PluginArea,null))})),mo=function(e){var t=e.postId;!function(e){var t=Object(h.useSelect)((function(e){return{isSmall:e("core/viewport").isViewportMatch("< medium"),sidebarToReOpenOnExpand:e(Fe).getActiveGeneralSidebarName()}}),[e]),n=t.isSmall,o=t.sidebarToReOpenOnExpand,r=Object(h.useDispatch)(Fe),i=r.openGeneralSidebar,a=r.closeGeneralSidebar,l=Object(c.useRef)("");Object(c.useEffect)((function(){n&&o?(l.current=o,a()):!n&&l.current&&(i(l.current),l.current="")}),[n,o])}(t),function(e){var t=Object(h.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(Fe).isEditorSidebarOpened()}}),[e]),n=t.hasBlockSelection,o=t.isEditorSidebarOpened,r=Object(h.useDispatch)(Fe).openGeneralSidebar;Object(c.useEffect)((function(){o&&r(n?"edit-post/block":"edit-post/document")}),[n,o])}(t),function(e){var t=Object(h.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,n=Object(c.useRef)();Object(c.useEffect)((function(){n.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(c.useEffect)((function(){t&&n.current&&n.current.setAttribute("href",t)}),[t])}(t);var n=Object(h.useDispatch)("core/nux").triggerGuide;return Object(c.useEffect)((function(){n(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"])}),[n]),null},Oo=function(e){function t(){var e;return Object(Ge.a)(this,t),(e=Object(Ue.a)(this,Object(He.a)(t).apply(this,arguments))).getEditorSettings=Ke()(e.getEditorSettings,{maxSize:1}),e}return Object(We.a)(t,e),Object(Ve.a)(t,[{key:"getEditorSettings",value:function(e,t,n,o,r,c,i,a,l){if(e=Object(D.a)({},e,{__experimentalPreferredStyleVariations:{value:i,onChange:l},hasFixedToolbar:t,focusMode:o,showInserterHelpPanel:n,__experimentalLocalAutosaveInterval:a}),Object(O.size)(r)>0){var s=!0===e.allowedBlockTypes?Object(O.map)(c,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=O.without.apply(void 0,[s].concat(Object(B.a)(r)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,o=e.focusMode,r=e.post,i=e.postId,l=e.initialEdits,s=e.onError,u=e.hiddenBlockTypes,d=e.blockTypes,b=e.preferredStyleVariations,O=e.__experimentalLocalAutosaveInterval,f=e.showInserterHelpPanel,h=e.updatePreferredStyleVariations,E=Object(m.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!r)return null;var g=this.getEditorSettings(t,n,f,o,u,d,b,O,h);return Object(c.createElement)(c.StrictMode,null,Object(c.createElement)(Ht.Provider,{value:t},Object(c.createElement)(j.SlotFillProvider,null,Object(c.createElement)(j.DropZoneProvider,null,Object(c.createElement)(a.EditorProvider,Object(p.a)({settings:g,post:r,initialEdits:l,useSubRegistry:!1},E),Object(c.createElement)(a.ErrorBoundary,{onError:s},Object(c.createElement)(mo,{postId:i}),Object(c.createElement)(po,null),Object(c.createElement)(j.KeyboardShortcuts,{shortcuts:Qe})),Object(c.createElement)(a.PostLockedModal,null))))))}}]),t}(c.Component),fo=Object(g.compose)([Object(h.withSelect)((function(e,t){var n=t.postId,o=t.postType,r=e("core/edit-post"),c=r.isFeatureActive,i=r.getPreference,a=e("core").getEntityRecord,l=e("core/blocks").getBlockTypes;return{showInserterHelpPanel:c("showInserterHelpPanel"),hasFixedToolbar:c("fixedToolbar"),focusMode:c("focusMode"),post:a("postType",o,n),preferredStyleVariations:i("preferredStyleVariations"),hiddenBlockTypes:i("hiddenBlockTypes"),blockTypes:l(),__experimentalLocalAutosaveInterval:i("localAutosaveInterval")}})),Object(h.withDispatch)((function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}}))])(Oo),jo=function(e,t){return!Array.isArray(t)||(n=e,o=t,0===Object(O.difference)(n,o).length);var n,o},ho=function(e){var t=e.allowedBlocks,n=e.icon,o=e.label,r=e.onClick,i=e.small,a=e.role;return Object(c.createElement)(St,null,(function(e){var l=e.selectedBlocks,s=e.onClose;return jo(l,t)?Object(c.createElement)(j.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(g.compose)(r,s),icon:n||"admin-plugins",label:i?o:void 0,role:a},!i&&o):null}))},Eo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.onClick,n=void 0===t?O.noop:t,o=Object(m.a)(e,["onClick"]);return Object(c.createElement)(it,null,(function(e){return Object(c.createElement)(j.MenuItem,Object(p.a)({},o,{onClick:Object(g.compose)(n,e.onClose)}))}))}));var go=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}})),Object(h.withSelect)((function(e,t){var n=t.sidebarName,o=e("core/edit-post"),r=o.getActiveGeneralSidebarName,c=o.isPluginItemPinned;return{isActive:r()===n,isPinned:c(n)}})),Object(h.withDispatch)((function(e,t){var n=t.isActive,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar,a=r.togglePinnedPluginItem;return{togglePin:function(){a(o)},toggleSidebar:function(){n?c():i(o)}}})))((function(e){var t=e.children,n=e.className,o=e.icon,r=e.isActive,i=e.isPinnable,a=void 0===i||i,l=e.isPinned,s=e.sidebarName,u=e.title,d=e.togglePin,b=e.toggleSidebar;return Object(c.createElement)(c.Fragment,null,a&&Object(c.createElement)(ft,null,l&&Object(c.createElement)(j.IconButton,{icon:o,label:u,onClick:b,isToggled:r,"aria-expanded":r})),Object(c.createElement)(gn,{name:s,label:Object(E.__)("Editor plugins")},Object(c.createElement)(vn,{closeLabel:Object(E.__)("Close plugin")},Object(c.createElement)("strong",null,u),a&&Object(c.createElement)(j.IconButton,{icon:l?"star-filled":"star-empty",label:l?Object(E.__)("Unpin from toolbar"):Object(E.__)("Pin to toolbar"),onClick:d,isToggled:l,"aria-expanded":l})),Object(c.createElement)(j.Panel,{className:n},t)))})),vo=Object(g.compose)(Object(y.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}})),Object(h.withSelect)((function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}})),Object(h.withDispatch)((function(e,t){var n=t.isSelected,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar;return{onClick:n?c:function(){return i(o)}}})))((function(e){var t=e.children,n=e.icon,o=e.isSelected,r=e.onClick;return Object(c.createElement)(Eo,{icon:o?"yes":n,isSelected:o,role:"menuitemcheckbox",onClick:r},t)}));function _o(e,t,n,o,r){Object(c.unmountComponentAtNode)(n);var i=_o.bind(null,e,t,n,o,r);Object(c.render)(Object(c.createElement)(fo,{settings:o,onError:i,postId:t,postType:e,initialEdits:r,recovery:!0}),n)}function yo(e,t,n,o,r){var i=document.getElementById(e),a=_o.bind(null,t,n,i,o,r);Object(u.registerCoreBlocks)(),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening . Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),Object(c.render)(Object(c.createElement)(fo,{settings:o,onError:a,postId:n,postType:t,initialEdits:r}),i)}n.d(t,"reinitializeEditor",(function(){return _o})),n.d(t,"initializeEditor",(function(){return yo})),n.d(t,"PluginBlockSettingsMenuItem",(function(){return ho})),n.d(t,"PluginDocumentSettingPanel",(function(){return Zn})),n.d(t,"PluginMoreMenuItem",(function(){return Eo})),n.d(t,"PluginPostPublishPanel",(function(){return ro})),n.d(t,"PluginPostStatusInfo",(function(){return Bn})),n.d(t,"PluginPrePublishPanel",(function(){return so})),n.d(t,"PluginSidebar",(function(){return go})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return vo}))},32:function(e,t){!function(){e.exports=this.wp.apiFetch}()},36:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:s,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function l(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){l();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:s,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function l(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){l();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},22:function(e,t){!function(){e.exports=this.wp.richText}()},23:function(e,t,n){"use strict";var r=n(38);var o=n(39);function i(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return i}))},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},28:function(e,t){!function(){e.exports=this.React}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},31:function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},32:function(e,t){!function(){e.exports=this.wp.apiFetch}()},33:function(e,t){!function(){e.exports=this.wp.dataControls}()},34:function(e,t,n){e.exports=n(94)()},36:function(e,t,n){"use strict";var r,o;function i(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["optimist"])}}return{optimist:a,innerState:e}}e.exports=function(e){function t(t,n,o){return t.length&&(t=t.concat([{action:o}])),u(n=e(n,o),o),r({optimist:t},n)}return function(n,a){if(a.optimist)switch(a.optimist.type){case o:return function(t,n){var o=l(t),i=o.optimist,c=o.innerState;return i=i.concat([{beforeState:c,action:n}]),u(c=e(c,n),n),r({optimist:i},c)}(n,a);case i:return function(e,n){var r=l(e),o=r.optimist,i=r.innerState,c=[],a=!1,u=!1;return o.forEach((function(e){a?e.beforeState&&s(e.action,n.optimist.id)?(u=!0,c.push({action:e.action})):c.push(e):e.beforeState&&!s(e.action,n.optimist.id)?(a=!0,c.push(e)):e.beforeState&&s(e.action,n.optimist.id)&&(u=!0)})),u||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(o=c,i,n)}(n,a);case c:return function(n,r){var o=l(n),i=o.optimist,c=o.innerState,a=[],d=!1,p=!1,b=c;return i.forEach((function(t){t.beforeState&&s(t.action,r.optimist.id)&&(b=t.beforeState,p=!0),s(t.action,r.optimist.id)||(t.beforeState&&(d=!0),d&&(p&&t.beforeState?a.push({beforeState:b,action:t.action}):a.push(t)),p&&(b=e(b,t.action),u(c,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(i=a,b,r)}(n,a)}var d=l(n),p=d.optimist,b=d.innerState;if(n&&!p.length){var f=e(b,a);return f===b?n:(u(f,a),r({optimist:p},f))}return t(p,b,a)}},e.exports.BEGIN=o,e.exports.COMMIT=i,e.exports.REVERT=c},37:function(e,t){!function(){e.exports=this.wp.deprecated}()},38:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},382:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"getDependencies",(function(){return ce})),n.d(r,"apply",(function(){return ae})),n.d(r,"update",(function(){return se}));var o={};n.r(o),n.d(o,"meta",(function(){return r}));var i={};n.r(i),n.d(i,"setupEditor",(function(){return Se})),n.d(i,"__experimentalTearDownEditor",(function(){return Pe})),n.d(i,"__experimentalSubscribeSources",(function(){return Ce})),n.d(i,"resetPost",(function(){return Te})),n.d(i,"resetAutosave",(function(){return xe})),n.d(i,"__experimentalRequestPostUpdateStart",(function(){return Be})),n.d(i,"__experimentalRequestPostUpdateFinish",(function(){return Ie})),n.d(i,"updatePost",(function(){return Ae})),n.d(i,"setupEditorState",(function(){return Le})),n.d(i,"editPost",(function(){return Re})),n.d(i,"__experimentalOptimisticUpdatePost",(function(){return Ne})),n.d(i,"savePost",(function(){return De})),n.d(i,"refreshPost",(function(){return Ue})),n.d(i,"trashPost",(function(){return Fe})),n.d(i,"autosave",(function(){return Me})),n.d(i,"__experimentalLocalAutosave",(function(){return Ve})),n.d(i,"redo",(function(){return He})),n.d(i,"undo",(function(){return We})),n.d(i,"createUndoLevel",(function(){return ze})),n.d(i,"updatePostLock",(function(){return Ke})),n.d(i,"__experimentalFetchReusableBlocks",(function(){return Ge})),n.d(i,"__experimentalReceiveReusableBlocks",(function(){return qe})),n.d(i,"__experimentalSaveReusableBlock",(function(){return Ye})),n.d(i,"__experimentalDeleteReusableBlock",(function(){return Qe})),n.d(i,"__experimentalUpdateReusableBlock",(function(){return Xe})),n.d(i,"__experimentalConvertBlockToStatic",(function(){return $e})),n.d(i,"__experimentalConvertBlockToReusable",(function(){return Ze})),n.d(i,"enablePublishSidebar",(function(){return Je})),n.d(i,"disablePublishSidebar",(function(){return et})),n.d(i,"lockPostSaving",(function(){return tt})),n.d(i,"unlockPostSaving",(function(){return nt})),n.d(i,"resetEditorBlocks",(function(){return rt})),n.d(i,"updateEditorSettings",(function(){return ot})),n.d(i,"resetBlocks",(function(){return ct})),n.d(i,"receiveBlocks",(function(){return at})),n.d(i,"updateBlock",(function(){return st})),n.d(i,"updateBlockAttributes",(function(){return ut})),n.d(i,"selectBlock",(function(){return lt})),n.d(i,"startMultiSelect",(function(){return dt})),n.d(i,"stopMultiSelect",(function(){return pt})),n.d(i,"multiSelect",(function(){return bt})),n.d(i,"clearSelectedBlock",(function(){return ft})),n.d(i,"toggleSelection",(function(){return ht})),n.d(i,"replaceBlocks",(function(){return mt})),n.d(i,"replaceBlock",(function(){return vt})),n.d(i,"moveBlocksDown",(function(){return Ot})),n.d(i,"moveBlocksUp",(function(){return gt})),n.d(i,"moveBlockToPosition",(function(){return jt})),n.d(i,"insertBlock",(function(){return yt})),n.d(i,"insertBlocks",(function(){return _t})),n.d(i,"showInsertionPoint",(function(){return kt})),n.d(i,"hideInsertionPoint",(function(){return Et})),n.d(i,"setTemplateValidity",(function(){return wt})),n.d(i,"synchronizeTemplate",(function(){return St})),n.d(i,"mergeBlocks",(function(){return Pt})),n.d(i,"removeBlocks",(function(){return Ct})),n.d(i,"removeBlock",(function(){return Tt})),n.d(i,"toggleBlockMode",(function(){return xt})),n.d(i,"startTyping",(function(){return Bt})),n.d(i,"stopTyping",(function(){return It})),n.d(i,"enterFormattedText",(function(){return At})),n.d(i,"exitFormattedText",(function(){return Lt})),n.d(i,"insertDefaultBlock",(function(){return Rt})),n.d(i,"updateBlockListSettings",(function(){return Nt}));var c={};n.r(c),n.d(c,"hasEditorUndo",(function(){return Ht})),n.d(c,"hasEditorRedo",(function(){return Wt})),n.d(c,"isEditedPostNew",(function(){return zt})),n.d(c,"hasChangedContent",(function(){return Kt})),n.d(c,"isEditedPostDirty",(function(){return Gt})),n.d(c,"isCleanNewPost",(function(){return qt})),n.d(c,"getCurrentPost",(function(){return Yt})),n.d(c,"getCurrentPostType",(function(){return Qt})),n.d(c,"getCurrentPostId",(function(){return Xt})),n.d(c,"getCurrentPostRevisionsCount",(function(){return $t})),n.d(c,"getCurrentPostLastRevisionId",(function(){return Zt})),n.d(c,"getPostEdits",(function(){return Jt})),n.d(c,"getCurrentPostAttribute",(function(){return en})),n.d(c,"getEditedPostAttribute",(function(){return nn})),n.d(c,"getAutosaveAttribute",(function(){return rn})),n.d(c,"getEditedPostVisibility",(function(){return on})),n.d(c,"isCurrentPostPending",(function(){return cn})),n.d(c,"isCurrentPostPublished",(function(){return an})),n.d(c,"isCurrentPostScheduled",(function(){return sn})),n.d(c,"isEditedPostPublishable",(function(){return un})),n.d(c,"isEditedPostSaveable",(function(){return ln})),n.d(c,"isEditedPostEmpty",(function(){return dn})),n.d(c,"isEditedPostAutosaveable",(function(){return pn})),n.d(c,"getAutosave",(function(){return bn})),n.d(c,"hasAutosave",(function(){return fn})),n.d(c,"isEditedPostBeingScheduled",(function(){return hn})),n.d(c,"isEditedPostDateFloating",(function(){return mn})),n.d(c,"isSavingPost",(function(){return vn})),n.d(c,"didPostSaveRequestSucceed",(function(){return On})),n.d(c,"didPostSaveRequestFail",(function(){return gn})),n.d(c,"isAutosavingPost",(function(){return jn})),n.d(c,"isPreviewingPost",(function(){return yn})),n.d(c,"getEditedPostPreviewLink",(function(){return _n})),n.d(c,"getSuggestedPostFormat",(function(){return kn})),n.d(c,"getBlocksForSerialization",(function(){return En})),n.d(c,"getEditedPostContent",(function(){return wn})),n.d(c,"__experimentalGetReusableBlock",(function(){return Sn})),n.d(c,"__experimentalIsSavingReusableBlock",(function(){return Pn})),n.d(c,"__experimentalIsFetchingReusableBlock",(function(){return Cn})),n.d(c,"__experimentalGetReusableBlocks",(function(){return Tn})),n.d(c,"getStateBeforeOptimisticTransaction",(function(){return xn})),n.d(c,"isPublishingPost",(function(){return Bn})),n.d(c,"isPermalinkEditable",(function(){return In})),n.d(c,"getPermalink",(function(){return An})),n.d(c,"getPermalinkParts",(function(){return Ln})),n.d(c,"inSomeHistory",(function(){return Rn})),n.d(c,"isPostLocked",(function(){return Nn})),n.d(c,"isPostSavingLocked",(function(){return Dn})),n.d(c,"isPostAutosavingLocked",(function(){return Un})),n.d(c,"isPostLockTakeover",(function(){return Fn})),n.d(c,"getPostLockUser",(function(){return Mn})),n.d(c,"getActivePostLock",(function(){return Vn})),n.d(c,"canUserUseUnfilteredHTML",(function(){return Hn})),n.d(c,"isPublishSidebarEnabled",(function(){return Wn})),n.d(c,"getEditorBlocks",(function(){return zn})),n.d(c,"__unstableIsEditorReady",(function(){return Kn})),n.d(c,"getEditorSettings",(function(){return Gn})),n.d(c,"getBlockName",(function(){return Yn})),n.d(c,"isBlockValid",(function(){return Qn})),n.d(c,"getBlockAttributes",(function(){return Xn})),n.d(c,"getBlock",(function(){return $n})),n.d(c,"getBlocks",(function(){return Zn})),n.d(c,"__unstableGetBlockWithoutInnerBlocks",(function(){return Jn})),n.d(c,"getClientIdsOfDescendants",(function(){return er})),n.d(c,"getClientIdsWithDescendants",(function(){return tr})),n.d(c,"getGlobalBlockCount",(function(){return nr})),n.d(c,"getBlocksByClientId",(function(){return rr})),n.d(c,"getBlockCount",(function(){return or})),n.d(c,"getBlockSelectionStart",(function(){return ir})),n.d(c,"getBlockSelectionEnd",(function(){return cr})),n.d(c,"getSelectedBlockCount",(function(){return ar})),n.d(c,"hasSelectedBlock",(function(){return sr})),n.d(c,"getSelectedBlockClientId",(function(){return ur})),n.d(c,"getSelectedBlock",(function(){return lr})),n.d(c,"getBlockRootClientId",(function(){return dr})),n.d(c,"getBlockHierarchyRootClientId",(function(){return pr})),n.d(c,"getAdjacentBlockClientId",(function(){return br})),n.d(c,"getPreviousBlockClientId",(function(){return fr})),n.d(c,"getNextBlockClientId",(function(){return hr})),n.d(c,"getSelectedBlocksInitialCaretPosition",(function(){return mr})),n.d(c,"getMultiSelectedBlockClientIds",(function(){return vr})),n.d(c,"getMultiSelectedBlocks",(function(){return Or})),n.d(c,"getFirstMultiSelectedBlockClientId",(function(){return gr})),n.d(c,"getLastMultiSelectedBlockClientId",(function(){return jr})),n.d(c,"isFirstMultiSelectedBlock",(function(){return yr})),n.d(c,"isBlockMultiSelected",(function(){return _r})),n.d(c,"isAncestorMultiSelected",(function(){return kr})),n.d(c,"getMultiSelectedBlocksStartClientId",(function(){return Er})),n.d(c,"getMultiSelectedBlocksEndClientId",(function(){return wr})),n.d(c,"getBlockOrder",(function(){return Sr})),n.d(c,"getBlockIndex",(function(){return Pr})),n.d(c,"isBlockSelected",(function(){return Cr})),n.d(c,"hasSelectedInnerBlock",(function(){return Tr})),n.d(c,"isBlockWithinSelection",(function(){return xr})),n.d(c,"hasMultiSelection",(function(){return Br})),n.d(c,"isMultiSelecting",(function(){return Ir})),n.d(c,"isSelectionEnabled",(function(){return Ar})),n.d(c,"getBlockMode",(function(){return Lr})),n.d(c,"isTyping",(function(){return Rr})),n.d(c,"isCaretWithinFormattedText",(function(){return Nr})),n.d(c,"getBlockInsertionPoint",(function(){return Dr})),n.d(c,"isBlockInsertionPointVisible",(function(){return Ur})),n.d(c,"isValidTemplate",(function(){return Fr})),n.d(c,"getTemplate",(function(){return Mr})),n.d(c,"getTemplateLock",(function(){return Vr})),n.d(c,"canInsertBlockType",(function(){return Hr})),n.d(c,"getInserterItems",(function(){return Wr})),n.d(c,"hasInserterItems",(function(){return zr})),n.d(c,"getBlockListSettings",(function(){return Kr}));var a={};n.r(a),n.d(a,"isRequestingDownloadableBlocks",(function(){return Qc})),n.d(a,"getDownloadableBlocks",(function(){return Xc})),n.d(a,"hasInstallBlocksPermission",(function(){return $c})),n.d(a,"getInstalledBlockTypes",(function(){return Zc}));var s={};n.r(s),n.d(s,"fetchDownloadableBlocks",(function(){return sa})),n.d(s,"receiveDownloadableBlocks",(function(){return ua})),n.d(s,"setInstallBlocksPermission",(function(){return la})),n.d(s,"downloadBlock",(function(){return da})),n.d(s,"installBlock",(function(){return pa})),n.d(s,"uninstallBlock",(function(){return ba})),n.d(s,"addInstalledBlockType",(function(){return fa})),n.d(s,"removeInstalledBlockType",(function(){return ha}));var u=n(6),l=n(9),d=(n(97),n(157),n(63)),p=n(22),b=n(43),f=n(7),h=n(4),m=n(33),v=n(10),O=n(31),g=n(90),j=n.n(g),y=n(2),_={insertUsage:{},isPublishSidebarEnabled:!0},k=Object(f.a)({},u.SETTINGS_DEFAULTS,{richEditingEnabled:!0,codeEditingEnabled:!0,enableCustomFields:!1});function E(e){return e&&"object"===Object(O.a)(e)&&"raw"in e?e.raw:e}var w=Object(h.combineReducers)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_REUSABLE_BLOCKS":return Object(f.a)({},e,Object(y.keyBy)(t.results,"id"));case"UPDATE_REUSABLE_BLOCK":var n=t.id,r=t.changes;return Object(f.a)({},e,Object(v.a)({},n,Object(f.a)({},e[n],r)));case"SAVE_REUSABLE_BLOCK_SUCCESS":var o=t.id,i=t.updatedId;if(o===i)return e;var c=e[o];return Object(f.a)({},Object(y.omit)(e,o),Object(v.a)({},i,Object(f.a)({},c,{id:i})));case"REMOVE_REUSABLE_BLOCK":var a=t.id;return Object(y.omit)(e,a)}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_REUSABLE_BLOCKS":var n=t.id;return n?Object(f.a)({},e,Object(v.a)({},n,!0)):e;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=t.id;return Object(y.omit)(e,r)}return e},isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_REUSABLE_BLOCK":return Object(f.a)({},e,Object(v.a)({},t.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=t.id;return Object(y.omit)(e,n)}return e}});var S=j()(Object(h.combineReducers)({postId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.id}return e},postType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.type}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_;switch((arguments.length>1?arguments[1]:void 0).type){case"ENABLE_PUBLISH_SIDEBAR":return Object(f.a)({},e,{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return Object(f.a)({},e,{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},reusableBlocks:w,template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Object(f.a)({},e,{isValid:t.isValid})}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return Object(f.a)({},e,Object(v.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(y.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"SETUP_EDITOR_STATE":return!0;case"TEAR_DOWN_EDITOR":return!1}return e},editorSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return Object(f.a)({},e,t.settings)}return e},postAutosavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_AUTOSAVING":return Object(f.a)({},e,Object(v.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(y.omit)(e,t.lockName)}return e}})),P=n(76),C=n.n(P),T=n(20),x=n.n(T),B=n(44),I=n(32),A=n.n(I),L=n(1),R=n(23),N=n(17),D=n(37),U=n.n(D),F=n(41),M=n.n(F),V=new Set(["meta"]),H="core/editor",W="post-update",z="SAVE_POST_NOTICE_ID",K="TRASH_POST_NOTICE_ID",G=/%(?:postname|pagename)%/,q=6e4,Y=["title","excerpt","content"];function Q(e){var t=e.previousPost,n=e.post,r=e.postType;if(Object(y.get)(e.options,["isAutosave"]))return[];var o,i=["publish","private","future"],c=Object(y.includes)(i,t.status),a=Object(y.includes)(i,n.status),s=Object(y.get)(r,["viewable"],!1);if(c||a?c&&!a?(o=r.labels.item_reverted_to_draft,s=!1):o=!c&&a?{publish:r.labels.item_published,private:r.labels.item_published_privately,future:r.labels.item_scheduled}[n.status]:r.labels.item_updated:o=null,o){var u=[];return s&&u.push({label:r.labels.view_item,url:n.link}),[o,{id:z,type:"snackbar",actions:u}]}return[]}function X(e){var t=e.post,n=e.edits,r=e.error;if(r&&"rest_autosave_no_changes"===r.code)return[];var o=["publish","private","future"],i=-1!==o.indexOf(t.status),c={publish:Object(L.__)("Publishing failed."),private:Object(L.__)("Publishing failed."),future:Object(L.__)("Scheduling failed.")},a=i||-1===o.indexOf(n.status)?Object(L.__)("Updating failed."):c[n.status];return r.message&&!/<\/?[^>]*>/.test(r.message)&&(a=Object(L.sprintf)(Object(L.__)("%1$s Error message: %2$s"),a,r.message)),[a,{id:z}]}var $=n(45),Z=n.n($),J=n(72),ee=Z()((function(e){1===e.length&&Object(l.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(l.serialize)(e);return 1===e.length&&e[0].name===Object(l.getFreeformContentHandlerName)()&&(t=Object(J.removep)(t)),t}),{maxSize:1});function te(e){return"wp-autosave-block-editor-post-".concat(e)}function ne(e){window.sessionStorage.removeItem(te(e))}var re={AWAIT_NEXT_STATE_CHANGE:Object(h.createRegistryControl)((function(e){return function(){return new Promise((function(t){var n=e.subscribe((function(){n(),t()}))}))}})),GET_REGISTRY:Object(h.createRegistryControl)((function(e){return function(){return e}})),LOCAL_AUTOSAVE_SET:function(e){!function(e,t,n,r){window.sessionStorage.setItem(te(e),JSON.stringify({post_title:t,content:n,excerpt:r}))}(e.postId,e.title,e.content,e.excerpt)}},oe=x.a.mark(ce),ie=x.a.mark(se);function ce(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.select)("core/editor","getEditedPostAttribute","meta");case 2:return e.t0=e.sent,e.abrupt("return",{meta:e.t0});case 4:case"end":return e.stop()}}),oe)}function ae(e,t){return t.meta[e.meta]}function se(e,t){return x.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Re({meta:Object(v.a)({},e.meta,t)});case 2:case"end":return n.stop()}}),ie)}var ue=x.a.mark(Ee),le=x.a.mark(we),de=x.a.mark(Se),pe=x.a.mark(Ce),be=x.a.mark(xe),fe=x.a.mark(Re),he=x.a.mark(De),me=x.a.mark(Ue),ve=x.a.mark(Fe),Oe=x.a.mark(Me),ge=x.a.mark(Ve),je=x.a.mark(He),ye=x.a.mark(We),_e=x.a.mark(rt),ke=new WeakMap;function Ee(e){var t,n,r,i,c,a,s,u,l,d,p,b,h,O;return x.a.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,{type:"GET_REGISTRY"};case 2:if(t=g.sent,ke.has(t)){g.next=5;break}return g.abrupt("return",e);case 5:n=ke.get(t),r=e,i=0;case 8:if(!(i0&&void 0!==d[0]?d[0]:Object.values(o)).length){p.next=3;break}return p.abrupt("return");case 3:return p.next=5,{type:"GET_REGISTRY"};case 5:t=p.sent,ke.has(t)||ke.set(t,new WeakMap),n=ke.get(t),r=!0,i=!1,c=void 0,p.prev=11,a=e[Symbol.iterator]();case 13:if(r=(s=a.next()).done){p.next=21;break}return u=s.value,p.delegateYield(u.getDependencies(),"t0",16);case 16:l=p.t0,n.set(u,l);case 18:r=!0,p.next=13;break;case 21:p.next=27;break;case 23:p.prev=23,p.t1=p.catch(11),i=!0,c=p.t1;case 27:p.prev=27,p.prev=28,r||null==a.return||a.return();case 30:if(p.prev=30,!i){p.next=33;break}throw c;case 33:return p.finish(30);case 34:return p.finish(27);case 35:case"end":return p.stop()}}),le,null,[[11,23,27,35],[28,,30,34]])}function Se(e,t,n){var r,o;return x.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=Object(y.has)(t,["content"])?t.content:e.content.raw,o=Object(l.parse)(r),"auto-draft"===e.status&&n&&(o=Object(l.synchronizeBlocksWithTemplate)(o,n)),i.next=6,Te(e);case 6:return i.delegateYield(we(),"t0",7);case 7:return i.next=9,{type:"SETUP_EDITOR",post:e,edits:t,template:n};case 9:return i.next=11,rt(o,{__unstableShouldCreateUndoLevel:!1});case 11:return i.next=13,Le(e);case 13:if(!t||!Object.keys(t).some((function(n){return t[n]!==(Object(y.has)(e,[n,"raw"])?e[n].raw:e[n])}))){i.next=16;break}return i.next=16,Re(t);case 16:return i.delegateYield(Ce(),"t1",17);case 17:case"end":return i.stop()}}),de)}function Pe(){return{type:"TEAR_DOWN_EDITOR"}}function Ce(){var e,t,n,r,i,c,a,s;return x.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=3,{type:"AWAIT_NEXT_STATE_CHANGE"};case 3:return u.next=5,Object(m.select)(H,"__unstableIsEditorReady");case 5:if(u.sent){u.next=8;break}return u.abrupt("break",36);case 8:return u.next=10,{type:"GET_REGISTRY"};case 10:e=u.sent,t=!1,n=0,r=Object.values(o);case 13:if(!(n0&&void 0!==arguments[0]?arguments[0]:{}}}function Ie(){return{type:"REQUEST_POST_UPDATE_FINISH",options:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}function Ae(e){return{type:"UPDATE_POST",edits:e}}function Le(e){return{type:"SETUP_EDITOR_STATE",post:e}}function Re(e,t){var n,r,o;return x.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(m.select)(H,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(m.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),fe)}function Ne(e){return Object(f.a)({},Ae(e),{optimist:{id:W}})}function De(){var e,t,n,r,o,i,c,a=arguments;return x.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},s.next=3,Object(m.select)(H,"isEditedPostSaveable");case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:return s.next=7,Object(m.select)(H,"getEditedPostContent");case 7:if(s.t0=s.sent,t={content:s.t0},e.isAutosave){s.next=12;break}return s.next=12,Object(m.dispatch)(H,"editPost",t,{undoIgnore:!0});case 12:return s.next=14,Be(e);case 14:return s.next=16,Object(m.select)(H,"getCurrentPost");case 16:return n=s.sent,s.t1=f.a,s.t2={id:n.id},s.next=21,Object(m.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 21:return s.t3=s.sent,s.t4=t,t=(0,s.t1)(s.t2,s.t3,s.t4),s.next=26,Object(m.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 26:return s.next=28,Ie(e);case 28:return s.next=30,Object(m.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 30:if(!(r=s.sent)){s.next=38;break}if(!(o=X({post:n,edits:t,error:r})).length){s.next=36;break}return s.next=36,m.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(N.a)(o)));case 36:s.next=53;break;case 38:return s.next=40,Object(m.select)(H,"getCurrentPost");case 40:return i=s.sent,s.t5=Q,s.t6=n,s.t7=i,s.next=46,Object(m.select)("core","getPostType",i.type);case 46:if(s.t8=s.sent,s.t9=e,s.t10={previousPost:s.t6,post:s.t7,postType:s.t8,options:s.t9},!(c=(0,s.t5)(s.t10)).length){s.next=53;break}return s.next=53,m.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(N.a)(c)));case 53:case"end":return s.stop()}}),he)}function Ue(){var e,t,n,r;return x.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(m.select)(H,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(m.select)(H,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(m.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(m.apiFetch)({path:"/wp/v2/".concat(n.rest_base,"/").concat(e.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,Object(m.dispatch)(H,"resetPost",r);case 14:case"end":return o.stop()}}),me)}function Fe(){var e,t,n;return x.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(m.select)(H,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(m.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(m.dispatch)("core/notices","removeNotice",K);case 8:return r.prev=8,r.next=11,Object(m.select)(H,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(m.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(m.dispatch)(H,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,m.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(N.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(L.__)("Trashing failed"),{id:K}])));case 22:case"end":return r.stop()}var o}),ve,null,[[8,18]])}function Me(e){return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(m.dispatch)(H,"savePost",Object(f.a)({isAutosave:!0},e));case 2:case"end":return t.stop()}}),Oe)}function Ve(){var e,t,n,r;return x.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(m.select)(H,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(m.select)(H,"getEditedPostAttribute","title");case 5:return t=o.sent,o.next=8,Object(m.select)(H,"getEditedPostAttribute","content");case 8:return n=o.sent,o.next=11,Object(m.select)(H,"getEditedPostAttribute","excerpt");case 11:return r=o.sent,o.next=14,{type:"LOCAL_AUTOSAVE_SET",postId:e.id,title:t,content:n,excerpt:r};case 14:case"end":return o.stop()}}),ge)}function He(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.dispatch)("core","redo");case 2:case"end":return e.stop()}}),je)}function We(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.dispatch)("core","undo");case 2:case"end":return e.stop()}}),ye)}function ze(){return{type:"CREATE_UNDO_LEVEL"}}function Ke(e){return{type:"UPDATE_POST_LOCK",lock:e}}function Ge(e){return{type:"FETCH_REUSABLE_BLOCKS",id:e}}function qe(e){return{type:"RECEIVE_REUSABLE_BLOCKS",results:e}}function Ye(e){return{type:"SAVE_REUSABLE_BLOCK",id:e}}function Qe(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}function Xe(e,t){return{type:"UPDATE_REUSABLE_BLOCK",id:e,changes:t}}function $e(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function Ze(e){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(y.castArray)(e)}}function Je(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function et(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function tt(e){return{type:"LOCK_POST_SAVING",lockName:e}}function nt(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function rt(e){var t,n,r,i,c,a,s,u,l,d,p,b,f,h,v,O,g,j,y,_,k,E,w=arguments;return x.a.wrap((function(S){for(;;)switch(S.prev=S.next){case 0:return t=w.length>1&&void 0!==w[1]?w[1]:{},S.next=3,Object(m.select)("core/block-editor","__experimentalGetLastBlockAttributeChanges");case 3:if(!(n=S.sent)){S.next=36;break}r=new Set,i=new Set,c=0,a=Object.entries(n);case 8:if(!(c1)return!1;var n=t[0].name;if(n!==Object(l.getDefaultBlockName)()&&n!==Object(l.getFreeformContentHandlerName)())return!1}return!wn(e)}var pn=Object(h.createRegistrySelector)((function(e){return function(t){if(!ln(t))return!1;if(Un(t))return!1;var n=Qt(t),r=Xt(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(y.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!Kt(t)||["title","excerpt"].some((function(e){return E(c[e])!==nn(t,e)}))))}})),bn=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Qt(t),r=Xt(t),o=Object(y.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(y.mapValues)(Object(y.pick)(i,Y),E)}})),fn=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Qt(t),r=Xt(t),o=Object(y.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function hn(e){var t=nn(e,"date"),n=new Date(Number(Object(Ut.getDate)(t))-q);return Object(Ut.isInTheFuture)(n)}function mn(e){var t=nn(e,"date"),n=nn(e,"modified"),r=nn(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&t===n}var vn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return e("core").isSavingEntityRecord("postType",n,r)}})),On=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),gn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function jn(e){return!!vn(e)&&!!Object(y.get)(e.saving,["options","isAutosave"])}function yn(e){return!!vn(e)&&!!e.saving.options.isPreview}function _n(e){if(!e.saving.pending&&!vn(e)){var t=rn(e,"preview_link");t||(t=nn(e,"link"))&&(t=Object(Ft.addQueryArgs)(t,{preview:!0}));var n=nn(e,"featured_media");return t&&n?Object(Ft.addQueryArgs)(t,{_thumbnail_id:n}):t}}function kn(e){var t,n=zn(e);switch(1===n.length&&(t=n[0].name),2===n.length&&"core/paragraph"===n[1].name&&(t=n[0].name),t){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":case"core-embed/youtube":case"core-embed/vimeo":return"video";case"core/audio":case"core-embed/spotify":case"core-embed/soundcloud":return"audio"}return null}function En(e){U()("`core/editor` getBlocksForSerialization selector",{plugin:"Gutenberg",alternative:"getEditorBlocks",hint:"Blocks serialization pre-processing occurs at save time"});var t=e.editor.present.blocks.value;return 1===t.length&&Object(l.isUnmodifiedDefaultBlock)(t[0])?[]:t}var wn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Xt(t),r=Qt(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return ee(o.blocks);if(o.content)return o.content}return""}})),Sn=Object(Dt.a)((function(e,t){var n=e.reusableBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return Object(f.a)({},n,{id:r?t:+t,isTemporary:r})}),(function(e,t){return[e.reusableBlocks.data[t]]}));function Pn(e,t){return e.reusableBlocks.isSaving[t]||!1}function Cn(e,t){return!!e.reusableBlocks.isFetching[t]}var Tn=Object(Dt.a)((function(e){return Object(y.map)(e.reusableBlocks.data,(function(t,n){return Sn(e,n)}))}),(function(e){return[e.reusableBlocks.data]}));function xn(e,t){var n=Object(y.find)(e.optimist,(function(e){return e.beforeState&&Object(y.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function Bn(e){if(!vn(e))return!1;if(!an(e))return!1;var t=xn(e,W);return!!t&&!an(null,t.currentPost)}function In(e){var t=nn(e,"permalink_template");return G.test(t)}function An(e){var t=Ln(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return In(e)?n+r+o:n}function Ln(e){var t=nn(e,"permalink_template");if(!t)return null;var n=nn(e,"slug")||nn(e,"generated_slug"),r=t.split(G),o=Object(R.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Rn(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function Nn(e){return e.postLock.isLocked}function Dn(e){return Object.keys(e.postSavingLock).length>0}function Un(e){return Object.keys(e.postAutosavingLock).length>0}function Fn(e){return e.postLock.isTakeover}function Mn(e){return e.postLock.user}function Vn(e){return e.postLock.activePostLock}function Hn(e){return Object(y.has)(Yt(e),["_links","wp:action-unfiltered-html"])}function Wn(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:_.isPublishSidebarEnabled}function zn(e){return nn(e,"blocks")||Vt}function Kn(e){return e.isReady}function Gn(e){return e.editorSettings}function qn(e){return Object(h.createRegistrySelector)((function(t){return function(n){var r;U()("`wp.data.select( 'core/editor' )."+e+"`",{alternative:"`wp.data.select( 'core/block-editor' )."+e+"`"});for(var o=arguments.length,i=new Array(o>1?o-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentClientId,n=void 0===t?to:t,r=e.getInserterItems,o=void 0===r?no:r,i=e.getSelectedBlockName,c=void 0===i?ro:i;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){oo();var e=c();return o(n()).filter((function(t){return e!==t.name}))},getOptionKeywords:function(e){var t=e.title,n=e.keywords,r=void 0===n?[]:n;return[e.category].concat(Object(N.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(eo.createElement)(u.BlockIcon,{key:"icon",icon:t,showColors:!0}),n]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(l.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),co={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),A()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[Object(eo.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}),Object(eo.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),Object(eo.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},getOptionCompletion:function(e){return"@".concat(e.slug)}},ao=n(12),so=n(11),uo=n(13),lo=n(14),po=n(15),bo=n(8),fo=function(e){function t(){return Object(ao.a)(this,t),Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDirty,r=t.editsReference,o=t.isAutosaveable,i=t.isAutosaving;r!==e.editsReference&&(this.didAutosaveForEditsReference=!1),!i&&e.isAutosaving&&(this.didAutosaveForEditsReference=!0),e.isDirty===n&&e.isAutosaveable===o&&e.editsReference===r||this.toggleTimer(n&&o&&!this.didAutosaveForEditsReference)}},{key:"componentWillUnmount",value:function(){this.toggleTimer(!1)}},{key:"toggleTimer",value:function(e){var t=this,n=this.props,r=n.interval,o=n.shouldThrottle,i=void 0!==o&&o;!i&&this.pendingSave&&(clearTimeout(this.pendingSave),delete this.pendingSave),!e||i&&this.pendingSave||(this.pendingSave=setTimeout((function(){t.props.autosave(),delete t.pendingSave}),1e3*r))}},{key:"render",value:function(){return null}}]),t}(eo.Component),ho=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,a=r.getEditorSettings,s=t.interval,u=void 0===s?a().autosaveInterval:s;return{isDirty:o(),isAutosaveable:i(),editsReference:n(),isAutosaving:c(),interval:u}})),Object(h.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(fo),mo=n(16),vo=n.n(mo),Oo=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.path,i=void 0===o?[]:o,c=e.href,a=e.onSelect;return Object(eo.createElement)("li",{className:vo()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(eo.createElement)("a",{href:c,className:"document-outline__button",onClick:a},Object(eo.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),i.map((function(e,t){var n=e.clientId;return Object(eo.createElement)("strong",{key:t,className:"document-outline__level"},Object(eo.createElement)(u.BlockTitle,{clientId:n}))})),Object(eo.createElement)("strong",{className:"document-outline__level"},r),Object(eo.createElement)("span",{className:"document-outline__item-content"},t)))},go=Object(eo.createElement)("em",null,Object(L.__)("(Empty heading)")),jo=[Object(eo.createElement)("br",{key:"incorrect-break"}),Object(eo.createElement)("em",{key:"incorrect-message"},Object(L.__)("(Incorrect heading level)"))],yo=[Object(eo.createElement)("br",{key:"incorrect-break-h1"}),Object(eo.createElement)("em",{key:"incorrect-message-h1"},Object(L.__)("(Your theme may already use a H1 for the post title)"))],_o=[Object(eo.createElement)("br",{key:"incorrect-break-multiple-h1"}),Object(eo.createElement)("em",{key:"incorrect-message-multiple-h1"},Object(L.__)("(Multiple H1 headings are not recommended)"))],ko=function(e){return!e.attributes.content||0===e.attributes.content.length},Eo=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/block-editor").getBlocks,n=e("core/editor").getEditedPostAttribute,r=(0,e("core").getPostType)(n("type"));return{title:n("title"),blocks:t(),isTitleSupported:Object(y.get)(r,["supports","title"],!1)}})))((function(e){var t=e.blocks,n=void 0===t?[]:t,r=e.title,o=e.onSelect,i=e.isTitleSupported,c=e.hasOutlineItemsDisabled,a=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(y.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Object(f.a)({},t,{path:n,level:t.attributes.level,isEmpty:ko(t)}):e(t.innerBlocks,[].concat(Object(N.a)(n),[t]))}))}(n);if(a.length<1)return null;var s=1,u=document.querySelector(".editor-post-title__input"),l=i&&r&&u,d=Object(y.countBy)(a,"level")[1]>1;return Object(eo.createElement)("div",{className:"document-outline"},Object(eo.createElement)("ul",null,l&&Object(eo.createElement)(Oo,{level:Object(L.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(u.id),isDisabled:c},r),a.map((function(e,t){var n=e.level>s+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(d||l));return s=e.level,Object(eo.createElement)(Oo,{key:t,level:"H".concat(e.level),isValid:r,path:e.path,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?go:Object(p.getTextContent)(Object(p.create)({html:e.attributes.content})),n&&jo,1===e.level&&d&&_o,l&&1===e.level&&!d&&yo)}))))}));var wo=Object(h.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(y.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n})),So=n(5),Po=n(3),Co=n(19);var To=Object(bo.compose)([Object(h.withSelect)((function(e){return{isDirty:(0,e("core/editor").isEditedPostDirty)()}})),Object(h.withDispatch)((function(e,t,n){var r=n.select,o=e("core/editor").savePost;return{onSave:function(){(0,r("core/editor").isEditedPostDirty)()&&o()}}}))])((function(e){var t=e.onSave;return Object(eo.createElement)(Po.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(v.a)({},Co.rawShortcut.primary("s"),(function(e){e.preventDefault(),t()}))})})),xo=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).undoOrRedo=e.undoOrRedo.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"undoOrRedo",value:function(e){var t=this.props,n=t.onRedo,r=t.onUndo;e.shiftKey?n():r(),e.preventDefault()}},{key:"render",value:function(){var e;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(u.BlockEditorKeyboardShortcuts,null),Object(eo.createElement)(Po.KeyboardShortcuts,{shortcuts:(e={},Object(v.a)(e,Co.rawShortcut.primary("z"),this.undoOrRedo),Object(v.a)(e,Co.rawShortcut.primaryShift("z"),this.undoOrRedo),e)}),Object(eo.createElement)(To,null))}}]),t}(eo.Component),Bo=Object(h.withDispatch)((function(e){var t=e("core/editor");return{onRedo:t.redo,onUndo:t.undo}}))(xo),Io=Bo;function Ao(){return U()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(eo.createElement)(Bo,null)}function Lo(){return Object(eo.createElement)(To,null)}var Ro=Object(bo.compose)([Object(h.withSelect)((function(e){return{hasRedo:e("core/editor").hasEditorRedo()}})),Object(h.withDispatch)((function(e){return{redo:e("core/editor").redo}}))])((function(e){var t=e.hasRedo,n=e.redo;return Object(eo.createElement)(Po.IconButton,{icon:"redo",label:Object(L.__)("Redo"),shortcut:Co.displayShortcut.primaryShift("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__redo"})}));var No=Object(bo.compose)([Object(h.withSelect)((function(e){return{hasUndo:e("core/editor").hasEditorUndo()}})),Object(h.withDispatch)((function(e){return{undo:e("core/editor").undo}}))])((function(e){var t=e.hasUndo,n=e.undo;return Object(eo.createElement)(Po.IconButton,{icon:"undo",label:Object(L.__)("Undo"),shortcut:Co.displayShortcut.primary("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__undo"})})),Do=n(21);var Uo=Object(bo.compose)([Object(h.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(h.withDispatch)((function(e){var t=e("core/block-editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}}))])((function(e){var t=e.isValid,n=Object(Do.a)(e,["isValid"]);return t?null:Object(eo.createElement)(Po.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},Object(eo.createElement)("p",null,Object(L.__)("The content of your post doesn’t match the template assigned to your post type.")),Object(eo.createElement)("div",null,Object(eo.createElement)(Po.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(L.__)("Keep it as is")),Object(eo.createElement)(Po.Button,{onClick:function(){window.confirm(Object(L.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(L.__)("Reset the template"))))}));var Fo=Object(bo.compose)([Object(h.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(h.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(y.filter)(t,{isDismissible:!0,type:"default"}),o=Object(y.filter)(t,{isDismissible:!1,type:"default"}),i=Object(y.filter)(t,{type:"snackbar"});return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Po.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(eo.createElement)(Po.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(eo.createElement)(Uo,null)),Object(eo.createElement)(Po.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),Mo=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).reboot=e.reboot.bind(Object(So.a)(e)),e.getContent=e.getContent.bind(Object(So.a)(e)),e.state={error:null},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(h.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(eo.createElement)(u.Warning,{className:"editor-error-boundary",actions:[Object(eo.createElement)(Po.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(L.__)("Attempt Recovery")),Object(eo.createElement)(Po.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(L.__)("Copy Post Text")),Object(eo.createElement)(Po.ClipboardButton,{key:"copy-error",text:e.stack,isLarge:!0},Object(L.__)("Copy Error"))]},Object(L.__)("The editor has encountered an unexpected error.")):this.props.children}}]),t}(eo.Component),Vo=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,Ho=Object(y.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function Wo(){var e=Object(h.useSelect)((function(e){var t=e("core/editor").getCurrentPostId(),n=e("core/editor").getCurrentPostType(),r=e("core").getCurrentUser();return{postId:t,getEditedPostAttribute:e("core/editor").getEditedPostAttribute,remoteAutosave:e("core").getAutosave(n,t,r.id),hasFetchedAutosave:e("core").hasFetchedAutosaves(n,t)&&r.id}})),t=e.postId,n=e.getEditedPostAttribute,r=e.remoteAutosave,o=e.hasFetchedAutosave,i=Object(h.useDispatch)("core/notices"),c=i.createWarningNotice,a=i.removeNotice,s=Object(h.useDispatch)("core/editor"),u=s.editPost,d=s.resetEditorBlocks;Object(eo.useEffect)((function(){if(o){var e=function(e){return window.sessionStorage.getItem(te(e))}(t);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,s={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(s).some((function(e){return s[e]!==n(e)}))){if(!r){var p=Object(y.uniqueId)("wpEditorAutosaveRestore");c(Object(L.__)("The backup of this post in your browser is different from the version below."),{id:p,actions:[{label:Object(L.__)("Restore the backup"),onClick:function(){u(Object(y.omit)(s,["content"])),d(Object(l.parse)(s.content)),a(p)}}]})}}else ne(t)}}}),[t,o])}var zo=Object(bo.ifCondition)(Ho)((function(){var e,t,n,r,o,i,c,a=Object(h.useDispatch)("core/editor").__experimentalLocalAutosave,s=Object(eo.useCallback)((function(){Vo(a)}),[]);Wo(),e=Object(h.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),postType:e("core/editor").getCurrentPostType(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}})),t=e.postId,n=e.isDirty,r=e.isAutosaving,o=e.didError,i=Object(eo.useRef)(n),c=Object(eo.useRef)(r),Object(eo.useEffect)((function(){!c.current||r||o||ne(t),i.current=n,c.current=r}),[n,r,o]);var u=Object(h.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}})).localAutosaveInterval;return Object(eo.createElement)(ho,{interval:u,autosave:s,shouldThrottle:!0})}));var Ko=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(y.get)(n,["supports","page-attributes"],!1)&&Object(y.isEmpty)(t)?null:r}));var Go=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}}))((function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(y.some)(Object(y.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),qo=Object(bo.withState)({orderInput:null})((function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(eo.createElement)(Po.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(L.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(y.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Yo=Object(bo.compose)([Object(h.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(h.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(eo.createElement)(Go,{supportKeys:"page-attributes"},Object(eo.createElement)(qo,e))}));function Qo(e){var t=e.map((function(e){return Object(f.a)({children:[],parent:null},e)})),n=Object(y.groupBy)(t,"parent");if(n.null&&n.null.length)return t;return function e(t){return t.map((function(t){var r=n[t.id];return Object(f.a)({},t,{children:r&&r.length?e(r):[]})}))}(n[0]||[])}var Xo=Object(h.withSelect)((function(e){var t=e("core"),n=t.getPostType,r=t.getEntityRecords,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("type"),s=n(a),u=i(),l=Object(y.get)(s,["hierarchical"],!1),d={per_page:-1,exclude:u,parent_exclude:u,orderby:"menu_order",order:"asc"};return{parent:c("parent"),items:l?r("postType",a,d):[],postType:s}})),$o=Object(h.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateParent:function(e){t({parent:e||0})}}})),Zo=Object(bo.compose)([Xo,$o])((function(e){var t=e.parent,n=e.postType,r=e.items,o=e.onUpdateParent,i=Object(y.get)(n,["hierarchical"],!1),c=Object(y.get)(n,["labels","parent_item_colon"]),a=r||[];if(!i||!c||!a.length)return null;var s=Qo(a.map((function(e){return{id:e.id,parent:e.parent,name:e.title.raw?e.title.raw:"#".concat(e.id," (").concat(Object(L.__)("no title"),")")}})));return Object(eo.createElement)(Po.TreeSelect,{className:"editor-page-attributes__parent",label:c,noOptionLabel:"(".concat(Object(L.__)("no parent"),")"),tree:s,selectedId:t,onChange:o})}));var Jo=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(h.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}})))((function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.onUpdate;return Object(y.isEmpty)(t)?null:Object(eo.createElement)(Po.SelectControl,{label:Object(L.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(y.map)(t,(function(e,t){return{value:t,label:e}}))})})),ei=n(54);var ti=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(y.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getAuthors()}})),bo.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||n.length<2?null:Object(eo.createElement)(Go,{supportKeys:"author"},r)})),ni=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).setAuthorId=e.setAuthorId.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"setAuthorId",value:function(e){var t=this.props.onUpdateAuthor,n=e.target.value;t(Number(n))}},{key:"render",value:function(){var e=this.props,t=e.postAuthor,n=e.instanceId,r=e.authors,o="post-author-selector-"+n;return Object(eo.createElement)(ti,null,Object(eo.createElement)("label",{htmlFor:o},Object(L.__)("Author")),Object(eo.createElement)("select",{id:o,value:t,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map((function(e){return Object(eo.createElement)("option",{key:e.id,value:e.id},Object(ei.decodeEntities)(e.name))}))))}}]),t}(eo.Component),ri=Object(bo.compose)([Object(h.withSelect)((function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}})),Object(h.withDispatch)((function(e){return{onUpdateAuthor:function(t){e("core/editor").editPost({author:t})}}})),bo.withInstanceId])(ni);var oi=Object(bo.compose)([Object(h.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object(Do.a)(e,["commentStatus"]);return Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Allow Comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var ii=Object(bo.compose)([Object(h.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(h.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(eo.createElement)("div",{className:"editor-post-excerpt"},Object(eo.createElement)(Po.TextareaControl,{label:Object(L.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(eo.createElement)(Po.ExternalLink,{href:Object(L.__)("https://codex.wordpress.org/Excerpt")},Object(L.__)("Learn more about manual excerpts")))})),ci=n(18);var ai=function(e){return Object(eo.createElement)(Go,Object(ci.a)({},e,{supportKeys:"excerpt"}))};var si=Object(h.withSelect)((function(e){var t=e("core").getThemeSupports;return{postType:(0,e("core/editor").getEditedPostAttribute)("type"),themeSupports:t()}}))((function(e){var t=e.themeSupports,n=e.children,r=e.postType,o=e.supportKeys;return Object(y.some)(Object(y.castArray)(o),(function(e){var n=Object(y.get)(t,[e],!1);return"post-thumbnails"===e&&Object(y.isArray)(n)?Object(y.includes)(n,r):n}))?n:null}));var ui=function(e){return Object(eo.createElement)(si,{supportKeys:"post-thumbnails"},Object(eo.createElement)(Go,Object(ci.a)({},e,{supportKeys:"thumbnail"})))},li=["image"],di=Object(L.__)("Featured Image"),pi=Object(L.__)("Set Featured Image"),bi=Object(L.__)("Remove Image");var fi=Object(h.withSelect)((function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("featured_media");return{media:a?n(a):null,currentPostId:i(),postType:r(c("type")),featuredImageId:a}})),hi=Object(h.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateImage:function(e){t({featured_media:e.id})},onRemoveImage:function(){t({featured_media:0})}}})),mi=Object(bo.compose)(fi,hi,Object(Po.withFilters)("editor.PostFeaturedImage"))((function(e){var t,n,r,o=e.currentPostId,i=e.featuredImageId,c=e.onUpdateImage,a=e.onRemoveImage,s=e.media,l=e.postType,d=Object(y.get)(l,["labels"],{}),p=Object(eo.createElement)("p",null,Object(L.__)("To edit the featured image, you need permission to upload media."));if(s){var b=Object(Jr.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",s.id,o);Object(y.has)(s,["media_details","sizes",b])?(t=s.media_details.sizes[b].width,n=s.media_details.sizes[b].height,r=s.media_details.sizes[b].source_url):(t=s.media_details.width,n=s.media_details.height,r=s.source_url)}return Object(eo.createElement)(ui,null,Object(eo.createElement)("div",{className:"editor-post-featured-image"},Object(eo.createElement)(u.MediaUploadCheck,{fallback:p},Object(eo.createElement)(u.MediaUpload,{title:d.featured_image||di,onSelect:c,unstableFeaturedImageFlow:!0,allowedTypes:li,modalClass:"editor-post-featured-image__media-modal",render:function(e){var o=e.open;return Object(eo.createElement)(Po.Button,{className:i?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:o,"aria-label":i?Object(L.__)("Edit or update the image"):null},!!i&&s&&Object(eo.createElement)(Po.ResponsiveWrapper,{naturalWidth:t,naturalHeight:n},Object(eo.createElement)("img",{src:r,alt:""})),!!i&&!s&&Object(eo.createElement)(Po.Spinner,null),!i&&(d.set_featured_image||pi))},value:i})),!!i&&s&&!s.isLoading&&Object(eo.createElement)(u.MediaUploadCheck,null,Object(eo.createElement)(u.MediaUpload,{title:d.featured_image||di,onSelect:c,unstableFeaturedImageFlow:!0,allowedTypes:li,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(eo.createElement)(Po.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(L.__)("Replace Image"))}})),!!i&&Object(eo.createElement)(u.MediaUploadCheck,null,Object(eo.createElement)(Po.Button,{onClick:a,isLink:!0,isDestructive:!0},d.remove_featured_image||bi))))}));var vi=Object(h.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object(Do.a)(e,["disablePostFormats"]);return!t&&Object(eo.createElement)(Go,Object(ci.a)({},n,{supportKeys:"post-formats"}))})),Oi=[{id:"aside",caption:Object(L.__)("Aside")},{id:"gallery",caption:Object(L.__)("Gallery")},{id:"link",caption:Object(L.__)("Link")},{id:"image",caption:Object(L.__)("Image")},{id:"quote",caption:Object(L.__)("Quote")},{id:"standard",caption:Object(L.__)("Standard")},{id:"status",caption:Object(L.__)("Status")},{id:"video",caption:Object(L.__)("Video")},{id:"audio",caption:Object(L.__)("Audio")},{id:"chat",caption:Object(L.__)("Chat")}];var gi=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=n("format"),i=e("core").getThemeSupports();return{postFormat:o,supportedFormats:Object(y.union)([o],Object(y.get)(i,["formats"],[])),suggestedFormat:r()}})),Object(h.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),bo.withInstanceId])((function(e){var t=e.onUpdatePostFormat,n=e.postFormat,r=void 0===n?"standard":n,o=e.supportedFormats,i=e.suggestedFormat,c="post-format-selector-"+e.instanceId,a=Oi.filter((function(e){return Object(y.includes)(o,e.id)})),s=Object(y.find)(a,(function(e){return e.id===i}));return Object(eo.createElement)(vi,null,Object(eo.createElement)("div",{className:"editor-post-format"},Object(eo.createElement)("div",{className:"editor-post-format__content"},Object(eo.createElement)("label",{htmlFor:c},Object(L.__)("Post Format")),Object(eo.createElement)(Po.SelectControl,{value:r,onChange:function(e){return t(e)},id:c,options:a.map((function(e){return{label:e.caption,value:e.id}}))})),s&&s.id!==r&&Object(eo.createElement)("div",{className:"editor-post-format__suggestion"},Object(L.__)("Suggestion:")," ",Object(eo.createElement)(Po.Button,{isLink:!0,onClick:function(){return t(s.id)}},s.caption))))}));var ji=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount,r=e.children;return!t||n<2?null:Object(eo.createElement)(Go,{supportKeys:"revisions"},r)}));function yi(e,t){return Object(Ft.addQueryArgs)(e,t)}function _i(e){return e?Object(y.toLower)(Object(y.deburr)(Object(y.trim)(e.replace(/[\s\./_]+/g,"-"),"-"))):""}var ki=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount;return Object(eo.createElement)(ji,null,Object(eo.createElement)(Po.IconButton,{href:yi("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(L.sprintf)(Object(L._n)("%d Revision","%d Revisions",n),n)))}));var Ei=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).openPreviewWindow=e.openPreviewWindow.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props.previewLink;t&&!e.previewLink&&this.setPreviewWindowLink(t)}},{key:"setPreviewWindowLink",value:function(e){var t=this.previewWindow;t&&!t.closed&&(t.location=e)}},{key:"getWindowTarget",value:function(){var e=this.props.postId;return"wp-preview-".concat(e)}},{key:"openPreviewWindow",value:function(e){var t,n;(e.preventDefault(),this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable)?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),t=this.previewWindow.document,n=Object(eo.renderToString)(Object(eo.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(eo.createElement)(Po.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(eo.createElement)(Po.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),Object(eo.createElement)(Po.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})),Object(eo.createElement)("p",null,Object(L.__)("Generating preview…")))),n+='\n\t\t\n\t',n=Object(Jr.applyFilters)("editor.PostPreview.interstitialMarkup",n),t.write(n),t.title=Object(L.__)("Generating preview…"),t.close()):this.setPreviewWindowLink(e.target.href)}},{key:"render",value:function(){var e=this.props,t=e.previewLink,n=e.currentPostLink,r=e.isSaveable,o=t||n;return Object(eo.createElement)(Po.Button,{isLarge:!0,className:"editor-post-preview",href:o,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow},Object(L._x)("Preview","imperative verb"),Object(eo.createElement)("span",{className:"screen-reader-text"},Object(L.__)("(opens in a new tab)")),Object(eo.createElement)(d.DotTip,{tipId:"core/editor.preview"},Object(L.__)("Click “Preview” to load a preview of this page, so you can make sure you’re happy with your blocks.")))}}]),t}(eo.Component),wi=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.forcePreviewLink,r=t.forceIsAutosaveable,o=e("core/editor"),i=o.getCurrentPostId,c=o.getCurrentPostAttribute,a=o.getEditedPostAttribute,s=o.isEditedPostSaveable,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=e("core").getPostType,p=l(),b=d(a("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:s(),isAutosaveable:r||u(),isViewable:Object(y.get)(b,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}})),Object(h.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(bo.ifCondition)((function(e){return e.isViewable}))])(Ei),Si=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).sendPostLock=e.sendPostLock.bind(Object(So.a)(e)),e.receivePostLock=e.receivePostLock.bind(Object(So.a)(e)),e.releasePostLock=e.releasePostLock.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){var e=this.getHookName();Object(Jr.addAction)("heartbeat.send",e,this.sendPostLock),Object(Jr.addAction)("heartbeat.tick",e,this.receivePostLock)}},{key:"componentWillUnmount",value:function(){var e=this.getHookName();Object(Jr.removeAction)("heartbeat.send",e),Object(Jr.removeAction)("heartbeat.tick",e)}},{key:"getHookName",value:function(){return"core/editor/post-locked-modal-"+this.props.instanceId}},{key:"sendPostLock",value:function(e){var t=this.props,n=t.isLocked,r=t.activePostLock,o=t.postId;n||(e["wp-refresh-post-lock"]={lock:r,post_id:o})}},{key:"receivePostLock",value:function(e){if(e["wp-refresh-post-lock"]){var t=this.props,n=t.autosave,r=t.updatePostLock,o=e["wp-refresh-post-lock"];o.lock_error?(n(),r({isLocked:!0,isTakeover:!0,user:{avatar:o.lock_error.avatar_src}})):o.new_lock&&r({isLocked:!1,activePostLock:o.new_lock})}}},{key:"releasePostLock",value:function(){var e=this.props,t=e.isLocked,n=e.activePostLock,r=e.postLockUtils,o=e.postId;if(!t&&n){var i=new window.FormData;if(i.append("action","wp-remove-post-lock"),i.append("_wpnonce",r.unlockNonce),i.append("post_ID",o),i.append("active_post_lock",n),window.navigator.sendBeacon)window.navigator.sendBeacon(r.ajaxUrl,i);else{var c=new window.XMLHttpRequest;c.open("POST",r.ajaxUrl,!1),c.send(i)}}}},{key:"render",value:function(){var e=this.props,t=e.user,n=e.postId,r=e.isLocked,o=e.isTakeover,i=e.postLockUtils,c=e.postType;if(!r)return null;var a=t.name,s=t.avatar,u=Object(Ft.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),l=yi("edit.php",{post_type:Object(y.get)(c,["slug"])}),d=Object(L.__)("Exit the Editor");return Object(eo.createElement)(Po.Modal,{title:o?Object(L.__)("Someone else has taken over this post."):Object(L.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissable:!1,className:"editor-post-locked-modal"},!!s&&Object(eo.createElement)("img",{src:s,alt:Object(L.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(eo.createElement)("div",null,Object(eo.createElement)("div",null,a?Object(L.sprintf)(Object(L.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),a):Object(L.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(eo.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(eo.createElement)(Po.Button,{isPrimary:!0,isLarge:!0,href:l},d))),!o&&Object(eo.createElement)("div",null,Object(eo.createElement)("div",null,a?Object(L.sprintf)(Object(L.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),a):Object(L.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(eo.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(eo.createElement)(Po.Button,{isDefault:!0,isLarge:!0,href:l},d),Object(eo.createElement)(wi,null),Object(eo.createElement)(Po.Button,{isPrimary:!0,isLarge:!0,href:u},Object(L.__)("Take Over")))))}}]),t}(eo.Component),Pi=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isPostLocked,r=t.isPostLockTakeover,o=t.getPostLockUser,i=t.getCurrentPostId,c=t.getActivePostLock,a=t.getEditedPostAttribute,s=t.getEditorSettings,u=e("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:s().postLockUtils,activePostLock:c(),postType:u(a("type"))}})),Object(h.withDispatch)((function(e){var t=e("core/editor");return{autosave:t.autosave,updatePostLock:t.updatePostLock}})),bo.withInstanceId,Object(bo.withGlobalEvents)({beforeunload:"releasePostLock"}))(Si);var Ci=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(y.get)(o(),["_links","wp:action-publish"],!1),isPublished:n(),postType:r()}})))((function(e){var t=e.hasPublishAction,n=e.isPublished,r=e.children;return n||!t?null:r}));var Ti=Object(bo.compose)(Object(h.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(h.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(eo.createElement)(Ci,null,Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Pending Review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var xi=Object(bo.compose)([Object(h.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object(Do.a)(e,["pingStatus"]);return Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Allow Pingbacks & Trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var Bi=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,c=r.isSavingPost,a=r.isPublishingPost,s=r.getCurrentPost,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:a(),hasPublishAction:Object(y.get)(s(),["_links","wp:action-publish"],!1),postType:u(),isAutosaving:l()}}))])((function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction,c=e.isAutosaving;return o?Object(L.__)("Publishing…"):t&&r&&!c?Object(L.__)("Updating…"):n&&r&&!c?Object(L.__)("Scheduling…"):i?t?Object(L.__)("Update"):n?Object(L.__)("Schedule"):Object(L.__)("Publish"):Object(L.__)("Submit for Review")})),Ii=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).call(this,e))).buttonNode=Object(eo.createRef)(),n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"render",value:function(){var e,t=this.props,n=t.forceIsDirty,r=t.forceIsSaving,o=t.hasPublishAction,i=t.isBeingScheduled,c=t.isOpen,a=t.isPostSavingLocked,s=t.isPublishable,u=t.isPublished,l=t.isSaveable,p=t.isSaving,b=t.isToggle,f=t.onSave,h=t.onStatusChange,m=t.onSubmit,v=void 0===m?y.noop:m,O=t.onToggle,g=t.visibility,j=p||r||!l||a||!s&&!n,_=u||p||r||!l||!s&&!n;e=o?i?"future":"private"===g?"private":"publish":"pending";var k={"aria-disabled":j,className:"editor-post-publish-button",isBusy:p&&u,isPrimary:!0,onClick:function(){j||(v(),h(e),f())}},E={"aria-disabled":_,"aria-expanded":c,className:"editor-post-publish-panel__toggle",isBusy:p&&u,isPrimary:!0,onClick:function(){_||O()}},w=i?Object(L.__)("Schedule…"):Object(L.__)("Publish…"),S=Object(eo.createElement)(Bi,{forceIsSaving:r}),P=b?E:k,C=b?w:S;return Object(eo.createElement)("div",null,Object(eo.createElement)(Po.Button,Object(ci.a)({ref:this.buttonNode},P),C),Object(eo.createElement)(d.DotTip,{tipId:"core/editor.publish"},Object(L.__)("Finished writing? That’s great, let’s get this published right now. Just click “Publish” and you’re good to go.")))}}]),t}(eo.Component),Ai=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isEditedPostBeingScheduled,o=t.getEditedPostVisibility,i=t.isCurrentPostPublished,c=t.isEditedPostSaveable,a=t.isEditedPostPublishable,s=t.isPostSavingLocked,u=t.getCurrentPost,l=t.getCurrentPostType;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:c(),isPostSavingLocked:s(),isPublishable:a(),isPublished:i(),hasPublishAction:Object(y.get)(u(),["_links","wp:action-publish"],!1),postType:l()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e},{undoIgnore:!0})},onSave:t.savePost}}))])(Ii),Li=[{value:"public",label:Object(L.__)("Public"),info:Object(L.__)("Visible to everyone.")},{value:"private",label:Object(L.__)("Private"),info:Object(L.__)("Only visible to site admins and editors.")},{value:"password",label:Object(L.__)("Password Protected"),info:Object(L.__)("Protected with a password you choose. Only those with the password can view this post.")}],Ri=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).setPublic=n.setPublic.bind(Object(So.a)(n)),n.setPrivate=n.setPrivate.bind(Object(So.a)(n)),n.setPasswordProtected=n.setPasswordProtected.bind(Object(So.a)(n)),n.updatePassword=n.updatePassword.bind(Object(So.a)(n)),n.state={hasPassword:!!e.password},n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"setPublic",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r),this.setState({hasPassword:!1})}},{key:"setPrivate",value:function(){if(window.confirm(Object(L.__)("Would you like to privately publish this post now?"))){var e=this.props,t=e.onUpdateVisibility,n=e.onSave;t("private"),this.setState({hasPassword:!1}),n()}}},{key:"setPasswordProtected",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r,e.password||""),this.setState({hasPassword:!0})}},{key:"updatePassword",value:function(e){var t=this.props,n=t.status;(0,t.onUpdateVisibility)(n,e.target.value)}},{key:"render",value:function(){var e=this.props,t=e.visibility,n=e.password,r=e.instanceId,o={public:{onSelect:this.setPublic,checked:"public"===t&&!this.state.hasPassword},private:{onSelect:this.setPrivate,checked:"private"===t},password:{onSelect:this.setPasswordProtected,checked:this.state.hasPassword}};return[Object(eo.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(eo.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(L.__)("Post Visibility")),Li.map((function(e){var t=e.value,n=e.label,i=e.info;return Object(eo.createElement)("div",{key:t,className:"editor-post-visibility__choice"},Object(eo.createElement)("input",{type:"radio",name:"editor-post-visibility__setting-".concat(r),value:t,onChange:o[t].onSelect,checked:o[t].checked,id:"editor-post-".concat(t,"-").concat(r),"aria-describedby":"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-radio"}),Object(eo.createElement)("label",{htmlFor:"editor-post-".concat(t,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(eo.createElement)("p",{id:"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))}))),this.state.hasPassword&&Object(eo.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(eo.createElement)("label",{htmlFor:"editor-post-visibility__dialog-password-input-".concat(r),className:"screen-reader-text"},Object(L.__)("Create password")),Object(eo.createElement)("input",{className:"editor-post-visibility__dialog-password-input",id:"editor-post-visibility__dialog-password-input-".concat(r),type:"text",onChange:this.updatePassword,value:n,placeholder:Object(L.__)("Use a secure password")}))]}}]),t}(eo.Component),Ni=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.savePost,r=t.editPost;return{onSave:n,onUpdateVisibility:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";r({status:e,password:t})}}})),bo.withInstanceId])(Ri);var Di=Object(h.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(y.find)(Li,{value:t}).label}));var Ui=Object(bo.compose)([Object(h.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(h.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(Ut.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(eo.createElement)(Po.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:n,is12Hour:o})}));var Fi=Object(h.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}}))((function(e){var t=e.date,n=e.isFloating,r=Object(Ut.__experimentalGetSettings)();return t&&!n?Object(Ut.dateI18n)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(L.__)("Immediately")})),Mi={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},Vi=function(e,t){return e.toLowerCase()===t.toLowerCase()},Hi=function(e){return Object(f.a)({},e,{name:Object(y.unescape)(e.name)})},Wi=function(e){return Object(y.map)(e,Hi)},zi=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(So.a)(e)),e.searchTerms=Object(y.throttle)(e.searchTerms.bind(Object(So.a)(e)),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(Object(So.a)(e)),e.state={loading:!Object(y.isEmpty)(e.props.terms),availableTerms:[],selectedTerms:[]},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){var e=this;Object(y.isEmpty)(this.props.terms)||(this.initRequest=this.fetchTerms({include:this.props.terms.join(","),per_page:-1}),this.initRequest.then((function(){e.setState({loading:!1})}),(function(t){"abort"!==t.statusText&&e.setState({loading:!1})})))}},{key:"componentWillUnmount",value:function(){Object(y.invoke)(this.initRequest,["abort"]),Object(y.invoke)(this.searchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){e.terms!==this.props.terms&&this.updateSelectedTerms(this.props.terms)}},{key:"fetchTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Object(f.a)({},Mi,t),o=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Wi).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(y.find)(e.availableTerms,(function(e){return e.id===t.id}))})))}})),e.updateSelectedTerms(e.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce((function(t,n){var r=Object(y.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(y.escape)(e);return A()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(n.rest_base),Object(f.a)({},Mi,{search:r}))}).then(Wi),t.addRequest.then((function(t){return Object(y.find)(t,(function(t){return Vi(t.name,e)}))}))):Promise.reject(o)})).then(Hi)}},{key:"onChange",value:function(e){var t=this,n=Object(y.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(y.find)(t.state.availableTerms,(function(t){return Vi(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(y.find)(t,(function(t){return Vi(t.name,e)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(y.invoke)(this.searchRequest,["abort"]),this.searchRequest=this.fetchTerms({search:e})}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,a=i.map((function(e){return e.name})),s=Object(y.get)(n,["labels","add_new_item"],"post_tag"===t?Object(L.__)("Add New Tag"):Object(L.__)("Add New Term")),u=Object(y.get)(n,["labels","singular_name"],"post_tag"===t?Object(L.__)("Tag"):Object(L.__)("Term")),l=Object(L.sprintf)(Object(L._x)("%s added","term"),u),d=Object(L.sprintf)(Object(L._x)("%s removed","term"),u),p=Object(L.sprintf)(Object(L._x)("Remove %s","term"),u);return Object(eo.createElement)(Po.FormTokenField,{value:c,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:l,removed:d,remove:p}})}}]),t}(eo.Component),Ki=Object(bo.compose)(Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(y.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(y.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(v.a)({},n,t))}}})),Object(Po.withFilters)("editor.PostTaxonomyType"))(zi),Gi=function(){var e=[Object(L.__)("Suggestion:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(L.__)("Add tags"))];return Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:e},Object(eo.createElement)("p",null,Object(L.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(eo.createElement)(Ki,{slug:"post_tag"}))},qi=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).call(this,e))).state={hadTagsWhenOpeningThePanel:e.hasTags},n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(eo.createElement)(Gi,null)}}]),t}(eo.Component),Yi=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(y.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(bo.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(qi),Qi=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(eo.createElement)(Po.Button,{isLink:!0,onClick:function(){return r(t)}},n)},Xi=function(e,t){var n=Oi.filter((function(t){return Object(y.includes)(e,t.id)}));return Object(y.find)(n,(function(e){return e.id===t}))},$i=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(y.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Xi(o,r())}})),Object(h.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),Object(bo.ifCondition)((function(e){var t=e.suggestion,n=e.currentPostFormat;return t&&t.id!==n})))((function(e){var t=e.suggestion,n=e.onUpdatePostFormat,r=[Object(L.__)("Suggestion:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(L.__)("Use a post format"))];return Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:r},Object(eo.createElement)("p",null,Object(L.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(eo.createElement)("p",null,Object(eo.createElement)(Qi,{onUpdatePostFormat:n,suggestedPostFormat:t.id,suggestionText:Object(L.sprintf)(Object(L.__)('Apply the "%1$s" format.'),t.caption)})))}));var Zi=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(y.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(L.__)("Are you ready to schedule?"),n=Object(L.__)("Your work will be published at the specified date and time.")):(t=Object(L.__)("Are you ready to publish?"),n=Object(L.__)("Double-check your settings before publishing.")):(t=Object(L.__)("Are you ready to submit for review?"),n=Object(L.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(eo.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(eo.createElement)("div",null,Object(eo.createElement)("strong",null,t)),Object(eo.createElement)("p",null,n),r&&Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:[Object(L.__)("Visibility:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(eo.createElement)(Di,null))]},Object(eo.createElement)(Ni,null)),Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:[Object(L.__)("Publish:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(eo.createElement)(Fi,null))]},Object(eo.createElement)(Ui,null))),Object(eo.createElement)($i,null),Object(eo.createElement)(Yi,null),i)})),Ji=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(So.a)(e)),e.onSelectInput=e.onSelectInput.bind(Object(So.a)(e)),e.postLink=Object(eo.createRef)(),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){e.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(y.get)(o,["labels","singular_name"]),c=Object(y.get)(o,["labels","view_item"]),a=n?Object(eo.createElement)(eo.Fragment,null,Object(L.__)("is now scheduled. It will go live on")," ",Object(eo.createElement)(Fi,null),"."):Object(L.__)("is now live.");return Object(eo.createElement)("div",{className:"post-publish-panel__postpublish"},Object(eo.createElement)(Po.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(eo.createElement)("a",{ref:this.postLink,href:r.link},r.title||Object(L.__)("(no title)"))," ",a),Object(eo.createElement)(Po.PanelBody,null,Object(eo.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(eo.createElement)("strong",null,Object(L.__)("What’s next?"))),Object(eo.createElement)(Po.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(L.sprintf)(Object(L.__)("%s address"),i),value:Object(Ft.safeDecodeURIComponent)(r.link),onFocus:this.onSelectInput}),Object(eo.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(eo.createElement)(Po.Button,{isDefault:!0,href:r.link},c),Object(eo.createElement)(Po.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(L.__)("Copied!"):Object(L.__)("Copy Link")))),t)}}]),t}(eo.Component),ec=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))(Ji),tc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onSubmit=e.onSubmit.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,a=e.isSaving,s=e.onClose,u=e.onTogglePublishSidebar,l=e.PostPublishExtension,d=e.PrePublishExtension,p=Object(Do.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(y.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!a,m=f&&!a;return Object(eo.createElement)("div",Object(ci.a)({className:"editor-post-publish-panel"},b),Object(eo.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(eo.createElement)("div",{className:"editor-post-publish-panel__header-published"},c?Object(L.__)("Scheduled"):Object(L.__)("Published")):Object(eo.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(eo.createElement)(Ai,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n}),Object(eo.createElement)("span",{className:"editor-post-publish-panel__spacer"})),Object(eo.createElement)(Po.IconButton,{"aria-expanded":!0,onClick:s,icon:"no-alt",label:Object(L.__)("Close panel")})),Object(eo.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(eo.createElement)(Zi,null,d&&Object(eo.createElement)(d,null)),m&&Object(eo.createElement)(ec,{focusOnMount:!0},l&&Object(eo.createElement)(l,null)),a&&Object(eo.createElement)(Po.Spinner,null)),Object(eo.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),t}(eo.Component),nc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,s=n.isEditedPostDirty,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(y.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(y.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(h.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),Po.withFocusReturn,Po.withConstrainedTabbing])(tc);var rc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}})),Object(b.withViewportMatch)({isMobileViewport:"< small"})])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=e.isMobileViewport;return n||r?Object(eo.createElement)(Po.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(L.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(L.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(L.__)("Draft"):Object(L.__)("Switch to Draft")):null})),oc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={forceSavedMessage:!1},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this;e.isSaving&&!this.props.isSaving&&(this.setState({forceSavedMessage:!0}),this.props.setTimeout((function(){t.setState({forceSavedMessage:!1})}),1e3))}},{key:"render",value:function(){var e=this.props,t=e.post,n=e.isNew,r=e.isScheduled,o=e.isPublished,i=e.isDirty,c=e.isSaving,a=e.isSaveable,s=e.onSave,u=e.isAutosaving,l=e.isPending,d=e.isLargeViewport,p=this.state.forceSavedMessage;if(c){var b=vo()("editor-post-saved-state","is-saving",{"is-autosaving":u});return Object(eo.createElement)(Po.Animate,{type:"loading"},(function(e){var t=e.className;return Object(eo.createElement)("span",{className:vo()(b,t)},Object(eo.createElement)(Po.Dashicon,{icon:"cloud"}),u?Object(L.__)("Autosaving"):Object(L.__)("Saving"))}))}if(o||r)return Object(eo.createElement)(rc,null);if(!a)return null;if(p||!n&&!i)return Object(eo.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(eo.createElement)(Po.Dashicon,{icon:"saved"}),Object(L.__)("Saved"));if(!Object(y.get)(t,["_links","wp:action-publish"],!1)&&l)return null;var f=l?Object(L.__)("Save as Pending"):Object(L.__)("Save Draft");return d?Object(eo.createElement)(Po.Button,{className:"editor-post-save-draft",onClick:function(){return s()},shortcut:Co.displayShortcut.primary("s"),isTertiary:!0},f):Object(eo.createElement)(Po.IconButton,{className:"editor-post-save-draft",label:f,onClick:function(){return s()},shortcut:Co.displayShortcut.primary("s"),icon:"cloud-upload"})}}]),t}(eo.Component),ic=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.forceIsDirty,r=t.forceIsSaving,o=e("core/editor"),i=o.isEditedPostNew,c=o.isCurrentPostPublished,a=o.isCurrentPostScheduled,s=o.isEditedPostDirty,u=o.isSavingPost,l=o.isEditedPostSaveable,d=o.getCurrentPost,p=o.isAutosavingPost,b=o.getEditedPostAttribute;return{post:d(),isNew:i(),isPublished:c(),isScheduled:a(),isDirty:n||s(),isSaving:r||u(),isSaveable:l(),isAutosaving:p(),isPending:"pending"===b("status")}})),Object(h.withDispatch)((function(e){return{onSave:e("core/editor").savePost}})),bo.withSafeTimeout,Object(b.withViewportMatch)({isLargeViewport:"small"})])(oc);var cc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(y.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));var ac=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(y.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}}))])((function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null}));var sc=Object(bo.compose)([Object(h.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(h.withDispatch)((function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}))])((function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(eo.createElement)(ac,null,Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))})),uc={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},lc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).findTerm=e.findTerm.bind(Object(So.a)(e)),e.onChange=e.onChange.bind(Object(So.a)(e)),e.onChangeFormName=e.onChangeFormName.bind(Object(So.a)(e)),e.onChangeFormParent=e.onChangeFormParent.bind(Object(So.a)(e)),e.onAddTerm=e.onAddTerm.bind(Object(So.a)(e)),e.onToggleForm=e.onToggleForm.bind(Object(So.a)(e)),e.setFilterValue=e.setFilterValue.bind(Object(So.a)(e)),e.sortBySelected=e.sortBySelected.bind(Object(So.a)(e)),e.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1,filterValue:"",filteredTermsTree:[]},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"onChange",value:function(e){var t=this.props,n=t.onUpdateTerms,r=t.terms,o=void 0===r?[]:r,i=t.taxonomy;n(-1!==o.indexOf(e)?Object(y.without)(o,e):[].concat(Object(N.a)(o),[e]),i.rest_base)}},{key:"onChangeFormName",value:function(e){var t=""===e.target.value.trim()?"":e.target.value;this.setState({formName:t})}},{key:"onChangeFormParent",value:function(e){this.setState({formParent:e})}},{key:"onToggleForm",value:function(){this.setState((function(e){return{showForm:!e.showForm}}))}},{key:"findTerm",value:function(e,t,n){return Object(y.find)(e,(function(e){return(!e.parent&&!t||parseInt(e.parent)===parseInt(t))&&e.name.toLowerCase()===n.toLowerCase()}))}},{key:"onAddTerm",value:function(e){var t=this;e.preventDefault();var n=this.props,r=n.onUpdateTerms,o=n.taxonomy,i=n.terms,c=n.slug,a=this.state,s=a.formName,u=a.formParent,l=a.adding,d=a.availableTerms;if(""!==s&&!l){var p=this.findTerm(d,u,s);if(p)return Object(y.some)(i,(function(e){return e===p.id}))||r([].concat(Object(N.a)(i),[p.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=A()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:s,parent:u||void 0}}),this.addRequest.catch((function(e){return"term_exists"===e.code?(t.addRequest=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(o.rest_base),Object(f.a)({},uc,{parent:u||0,search:s}))}),t.addRequest.then((function(e){return t.findTerm(e,u,s)}))):Promise.reject(e)})).then((function(e){var n=!!Object(y.find)(t.state.availableTerms,(function(t){return t.id===e.id}))?t.state.availableTerms:[e].concat(Object(N.a)(t.state.availableTerms)),a=Object(L.sprintf)(Object(L._x)("%s added","term"),Object(y.get)(t.props.taxonomy,["labels","singular_name"],"category"===c?Object(L.__)("Category"):Object(L.__)("Term")));t.props.speak(a,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:t.sortBySelected(Qo(n))}),r([].concat(Object(N.a)(i),[e.id]),o.rest_base)}),(function(e){"abort"!==e.statusText&&(t.addRequest=null,t.setState({adding:!1}))}))}}},{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(y.invoke)(this.fetchRequest,["abort"]),Object(y.invoke)(this.addRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){this.props.taxonomy!==e.taxonomy&&this.fetchTerms()}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(t.rest_base),uc)}),this.fetchRequest.then((function(t){var n=e.sortBySelected(Qo(t));e.fetchRequest=null,e.setState({loading:!1,availableTermsTree:n,availableTerms:t})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"sortBySelected",value:function(e){var t=this.props.terms,n=function e(n){return-1!==t.indexOf(n.id)||void 0!==n.children&&!!(n.children.map(e).filter((function(e){return e})).length>0)};return e.sort((function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0})),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter((function(e){return e}));this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter((function(e){return e}))),(-1!==r.name.toLowerCase().indexOf(e.toLowerCase())||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map((function(e){return Object(eo.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(eo.createElement)(Po.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(y.unescape)(e.name)}),!!e.children.length&&Object(eo.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,a=i.availableTerms,s=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(y.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(L.__)("Add new category"),Object(L.__)("Add new term")),m=f("new_item_name",Object(L.__)("Add new category"),Object(L.__)("Add new term")),v=f("parent_item",Object(L.__)("Parent Category"),Object(L.__)("Parent Term")),O="— ".concat(v," —"),g=h,j="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),k=Object(y.get)(this.props.taxonomy,["labels","search_items"],Object(L.__)("Search Terms")),E=Object(y.get)(this.props.taxonomy,["name"],Object(L.__)("Terms")),w=a.length>=8;return[w&&Object(eo.createElement)("label",{key:"filter-label",htmlFor:_},k),w&&Object(eo.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(eo.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":E},this.renderTerms(""!==b?s:c)),!d&&o&&Object(eo.createElement)(Po.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(eo.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(eo.createElement)("label",{htmlFor:j,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(eo.createElement)("input",{type:"text",id:j,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(eo.createElement)(Po.TreeSelect,{label:v,noOptionLabel:O,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(eo.createElement)(Po.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},g))]}}]),t}(eo.Component),dc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(y.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(y.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(v.a)({},n,t))}}})),Po.withSpokenMessages,bo.withInstanceId,Object(Po.withFilters)("editor.PostTaxonomyType")])(lc);var pc=Object(bo.compose)([Object(h.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?y.identity:r,i=Object(y.filter)(n,(function(e){return Object(y.includes)(e.types,t)}));return Object(y.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?dc:Ki;return Object(eo.createElement)(eo.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(eo.createElement)(t,{slug:e.slug}),e))}))}));var bc=Object(bo.compose)([Object(h.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(y.some)(n,(function(e){return Object(y.includes)(e.types,t)}))?r:null})),fc=n(64),hc=n.n(fc),mc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).edit=e.edit.bind(Object(So.a)(e)),e.stopEditing=e.stopEditing.bind(Object(So.a)(e)),e.state={},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"edit",value:function(e){var t=e.target.value;this.props.onChange(t),this.setState({value:t,isDirty:!0})}},{key:"stopEditing",value:function(){this.state.isDirty&&(this.props.onPersist(this.state.value),this.setState({isDirty:!1}))}},{key:"render",value:function(){var e=this.state.value,t=this.props.instanceId;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("label",{htmlFor:"post-content-".concat(t),className:"screen-reader-text"},Object(L.__)("Type text or HTML")),Object(eo.createElement)(hc.a,{autoComplete:"off",dir:"auto",value:e,onChange:this.edit,onBlur:this.stopEditing,className:"editor-post-text-editor",id:"post-content-".concat(t),placeholder:Object(L.__)("Start writing with text or HTML")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.isDirty?null:{value:e.value,isDirty:!1}}}]),t}(eo.Component),vc=Object(bo.compose)([Object(h.withSelect)((function(e){return{value:(0,e("core/editor").getEditedPostContent)()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.resetEditorBlocks;return{onChange:function(e){n({content:e})},onPersist:function(e){var t=Object(l.parse)(e);r(t)}}})),bo.withInstanceId])(mc),Oc=function(e){function t(e){var n,r=e.permalinkParts,o=e.slug;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={editedPostName:o||r.postName},n.onSavePermalink=n.onSavePermalink.bind(Object(So.a)(n)),n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"onSavePermalink",value:function(e){var t=_i(this.state.editedPostName);e.preventDefault(),this.props.onSave(),t!==this.props.postName&&(this.props.editPost({slug:t}),this.setState({editedPostName:t}))}},{key:"render",value:function(){var e=this,t=this.props.permalinkParts,n=t.prefix,r=t.suffix,o=this.state.editedPostName;return Object(eo.createElement)("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},Object(eo.createElement)("span",{className:"editor-post-permalink__editor-container"},Object(eo.createElement)("span",{className:"editor-post-permalink-editor__prefix"},n),Object(eo.createElement)("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(L.__)("Edit post permalink"),value:o,onChange:function(t){return e.setState({editedPostName:t.target.value})},type:"text",autoFocus:!0}),Object(eo.createElement)("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),Object(eo.createElement)(Po.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(L.__)("Save")))}}]),t}(eo.Component),gc=Object(bo.compose)([Object(h.withSelect)((function(e){return{permalinkParts:(0,e("core/editor").getPermalinkParts)()}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])(Oc),jc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).addVisibilityCheck=e.addVisibilityCheck.bind(Object(So.a)(e)),e.onVisibilityChange=e.onVisibilityChange.bind(Object(So.a)(e)),e.state={isCopied:!1,isEditingPermalink:!1},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"addVisibilityCheck",value:function(){window.addEventListener("visibilitychange",this.onVisibilityChange)}},{key:"onVisibilityChange",value:function(){var e=this.props,t=e.isEditable,n=e.refreshPost;t||"visible"!==document.visibilityState||n()}},{key:"componentDidUpdate",value:function(e,t){t.isEditingPermalink&&!this.state.isEditingPermalink&&this.linkElement.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("visibilitychange",this.addVisibilityCheck)}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.isNew,o=t.isPublished,i=t.isViewable,c=t.permalinkParts,a=t.postLink,s=t.postSlug,u=t.postID,l=t.postTitle;if(r||!i||!c||!a)return null;var d=this.state,p=d.isCopied,b=d.isEditingPermalink,f=p?Object(L.__)("Permalink copied"):Object(L.__)("Copy the permalink"),h=c.prefix,m=c.suffix,v=Object(Ft.safeDecodeURIComponent)(s)||_i(l)||u,O=n?h+v+m:h;return Object(eo.createElement)("div",{className:"editor-post-permalink"},Object(eo.createElement)(Po.ClipboardButton,{className:vo()("editor-post-permalink__copy",{"is-copied":p}),text:O,label:f,onCopy:function(){return e.setState({isCopied:!0})},"aria-disabled":p,icon:"admin-links"}),Object(eo.createElement)("span",{className:"editor-post-permalink__label"},Object(L.__)("Permalink:")),!b&&Object(eo.createElement)(Po.ExternalLink,{className:"editor-post-permalink__link",href:o?O:a,target:"_blank",ref:function(t){return e.linkElement=t}},Object(Ft.safeDecodeURI)(O),"‎"),b&&Object(eo.createElement)(gc,{slug:v,onSave:function(){return e.setState({isEditingPermalink:!1})}}),n&&!b&&Object(eo.createElement)(Po.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return e.setState({isEditingPermalink:!0})}},Object(L.__)("Edit")))}}]),t}(eo.Component),yc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.isPermalinkEditable,o=t.getCurrentPost,i=t.getPermalinkParts,c=t.getEditedPostAttribute,a=t.isCurrentPostPublished,s=e("core").getPostType,u=o(),l=u.id,d=u.link,p=s(c("type"));return{isNew:n(),postLink:d,permalinkParts:i(),postSlug:c("slug"),isEditable:r(),isPublished:a(),postTitle:c("title"),postID:l,isViewable:Object(y.get)(p,["viewable"],!1)}})),Object(h.withDispatch)((function(e){return{refreshPost:e("core/editor").refreshPost}}))])(jc),_c=/[\r\n]+/g,kc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(So.a)(e)),e.onSelect=e.onSelect.bind(Object(So.a)(e)),e.onUnselect=e.onUnselect.bind(Object(So.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(So.a)(e)),e.redirectHistory=e.redirectHistory.bind(Object(So.a)(e)),e.state={isSelected:!1},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"handleFocusOutside",value:function(){this.onUnselect()}},{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(e){var t=e.target.value.replace(_c," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===Co.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"redirectHistory",value:function(e){e.shiftKey?this.props.onRedo():this.props.onUndo(),e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.isPostTypeViewable,i=e.instanceId,c=e.placeholder,a=e.title,s=this.state.isSelected,u=vo()("wp-block editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),l=Object(ei.decodeEntities)(c);return Object(eo.createElement)(Go,{supportKeys:"title"},Object(eo.createElement)("div",{className:"editor-post-title"},Object(eo.createElement)("div",{className:u},Object(eo.createElement)(Po.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},Object(eo.createElement)("label",{htmlFor:"post-title-".concat(i),className:"screen-reader-text"},l||Object(L.__)("Add title")),Object(eo.createElement)(hc.a,{id:"post-title-".concat(i),className:"editor-post-title__input",value:a,onChange:this.onChange,placeholder:l||Object(L.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,autoFocus:document.body===document.activeElement&&n})),s&&o&&Object(eo.createElement)(yc,null))))}}]),t}(eo.Component),Ec=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=e("core/block-editor").getSettings,i=(0,e("core").getPostType)(n("type")),c=o(),a=c.titlePlaceholder,s=c.focusMode,u=c.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),isPostTypeViewable:Object(y.get)(i,["viewable"],!1),placeholder:a,isFocusMode:s,hasFixedToolbar:u}})),wc=Object(h.withDispatch)((function(e){var t=e("core/block-editor"),n=t.insertDefaultBlock,r=t.clearSelectedBlock,o=e("core/editor"),i=o.editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onUpdate:function(e){i({title:e})},onUndo:o.undo,onRedo:o.redo,clearSelectedBlock:r}})),Sc=Object(bo.compose)(Ec,wc,bo.withInstanceId,Po.withFocusOutside)(kc);var Pc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(h.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(Do.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(eo.createElement)(Po.Button,{className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)},isDefault:!0,isLarge:!0},Object(L.__)("Move to Trash"))}));var Cc=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId;return{isNew:n(),postId:r()}}))((function(e){var t=e.isNew,n=e.postId,r=e.children;return t||!n?null:r}));var Tc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(y.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),xc=n(104);var Bc=Object(h.withSelect)((function(e){return{content:e("core/editor").getEditedPostAttribute("content")}}))((function(e){var t=e.content,n=Object(L._x)("words","Word count type. Do not translate!");return Object(eo.createElement)("span",{className:"word-count"},Object(xc.count)(t,n))}));var Ic=Object(h.withSelect)((function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}))((function(e){var t=e.headingCount,n=e.paragraphCount,r=e.numberOfBlocks,o=e.hasOutlineItemsDisabled,i=e.onRequestClose;return(Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(L.__)("Document Statistics"),tabIndex:"0"},Object(eo.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Words"),Object(eo.createElement)(Bc,null)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Headings"),Object(eo.createElement)("span",{className:"table-of-contents__number"},t)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Paragraphs"),Object(eo.createElement)("span",{className:"table-of-contents__number"},n)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Blocks"),Object(eo.createElement)("span",{className:"table-of-contents__number"},r)))),t>0&&Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("hr",null),Object(eo.createElement)("h2",{className:"table-of-contents__title"},Object(L.__)("Document Outline")),Object(eo.createElement)(Eo,{onSelect:i,hasOutlineItemsDisabled:o}))))}));var Ac=Object(h.withSelect)((function(e){return{hasBlocks:!!e("core/block-editor").getBlockCount()}}))((function(e){var t=e.hasBlocks,n=e.hasOutlineItemsDisabled;return Object(eo.createElement)(Po.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(eo.createElement)(Po.IconButton,{onClick:t?r:void 0,icon:"info-outline","aria-expanded":n,label:Object(L.__)("Content structure"),labelPosition:"bottom","aria-disabled":!t})},renderContent:function(e){var t=e.onClose;return Object(eo.createElement)(Ic,{onRequestClose:t,hasOutlineItemsDisabled:n})}})})),Lc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).warnIfUnsavedChanges=e.warnIfUnsavedChanges.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"warnIfUnsavedChanges",value:function(e){if(this.props.isDirty)return e.returnValue=Object(L.__)("You have unsaved changes. If you proceed, they will be lost."),e.returnValue}},{key:"render",value:function(){return null}}]),t}(eo.Component),Rc=Object(h.withSelect)((function(e){return{isDirty:e("core/editor").isEditedPostDirty()}}))(Lc),Nc=Object(bo.createHigherOrderComponent)((function(e){return Object(h.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(Do.a)(t,["useSubRegistry","registry"]);if(!r)return Object(eo.createElement)(e,i);var c=Object(eo.useState)(null),a=Object(R.a)(c,2),s=a[0],l=a[1];return Object(eo.useEffect)((function(){var e=Object(h.createRegistry)({"core/block-editor":u.storeConfig},o),t=e.registerStore("core/editor",$r);Xr(t),l(e)}),[o]),s?Object(eo.createElement)(h.RegistryProvider,{value:s},Object(eo.createElement)(e,i)):null}))}),"withRegistryProvider"),Dc=n(106),Uc=function(e){var t=e.additionalData,n=void 0===t?{}:t,r=e.allowedTypes,o=e.filesList,i=e.maxUploadFileSize,c=e.onError,a=void 0===c?y.noop:c,s=e.onFileChange,u=Object(h.select)("core/editor"),l=u.getCurrentPostId,d=u.getEditorSettings,p=d().allowedMimeTypes;i=i||d().maxUploadFileSize,Object(Dc.uploadMedia)({allowedTypes:r,filesList:o,onFileChange:s,additionalData:Object(f.a)({post:l()},n),maxUploadFileSize:i,onError:function(e){var t=e.message;return a(t)},wpAllowedMimeTypes:p})};var Fc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.canInsertBlockType,c=e("core/editor").__experimentalGetReusableBlock,a=e("core").canUser,s=o(n),u=1===s.length&&s[0]&&Object(l.isReusableBlock)(s[0])&&!!c(s[0].attributes.ref);return{isReusable:u,isVisible:u||i("core/block")&&Object(y.every)(s,(function(e){return!!e&&e.isValid&&Object(l.hasBlockSupport)(e.name,"reusable",!0)}))&&!!a("create","blocks")}})),Object(h.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?y.noop:r,i=e("core/editor"),c=i.__experimentalConvertBlockToReusable,a=i.__experimentalConvertBlockToStatic;return{onConvertToStatic:function(){1===n.length&&(a(n[0]),o())},onConvertToReusable:function(){c(n),o()}}}))])((function(e){var t=e.isVisible,n=e.isReusable,r=e.onConvertToStatic,o=e.onConvertToReusable;return t?Object(eo.createElement)(eo.Fragment,null,!n&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:o},Object(L.__)("Add to Reusable Blocks")),n&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:r},Object(L.__)("Convert to Regular Block"))):null}));var Mc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core").canUser,i=e("core/editor").__experimentalGetReusableBlock,c=r(n),a=c&&Object(l.isReusableBlock)(c)?i(c.attributes.ref):null;return{isVisible:!!a&&!!o("delete","blocks",a.id),isDisabled:a&&a.isTemporary}})),Object(h.withDispatch)((function(e,t,n){var r=t.clientId,o=t.onToggle,i=void 0===o?y.noop:o,c=n.select,a=e("core/editor").__experimentalDeleteReusableBlock,s=c("core/block-editor").getBlock;return{onDelete:function(){if(window.confirm(Object(L.__)("Are you sure you want to delete this Reusable Block?\n\nIt will be permanently removed from all posts and pages that use it."))){var e=s(r);a(e.attributes.ref),i()}}}}))])((function(e){var t=e.isVisible,n=e.isDisabled,r=e.onDelete;return t?Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"no",disabled:n,onClick:function(){return r()}},Object(L.__)("Remove from Reusable Blocks")):null}));var Vc=Object(h.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds;return Object(eo.createElement)(u.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var n=e.onClose;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Fc,{clientIds:t,onToggle:n}),1===t.length&&Object(eo.createElement)(Mc,{clientId:t[0],onToggle:n}))}))})),Hc=Object(eo.createElement)(Po.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8 5a1 1 0 0 0-1 1v3H6a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-3h1a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H8zm3 6H7v2h4v-2zM9 9V7h4v2H9z"}),Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M1 3a2 2 0 0 0 1 1.732v10.536A2 2 0 1 0 4.732 18h10.536A2 2 0 1 0 18 15.268V4.732A2 2 0 1 0 15.268 2H4.732A2 2 0 0 0 1 3zm14.268 1H4.732A2.01 2.01 0 0 1 4 4.732v10.536c.304.175.557.428.732.732h10.536a2.01 2.01 0 0 1 .732-.732V4.732A2.01 2.01 0 0 1 15.268 4z"})),Wc=Object(eo.createElement)(Po.Icon,{icon:Hc}),zc=Object(eo.createElement)(Po.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2H15C16.1 2 17 2.9 17 4V7C17 8.1 16.1 9 15 9H9C7.9 9 7 8.1 7 7V4C7 2.9 7.9 2 9 2ZM9 7H15V4H9V7Z"}),Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H11C12.1 11 13 11.9 13 13V16C13 17.1 12.1 18 11 18H5C3.9 18 3 17.1 3 16V13C3 11.9 3.9 11 5 11ZM5 16H11V13H5V16Z"})),Kc=Object(eo.createElement)(Po.Icon,{icon:zc});var Gc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlockRootClientId,i=r.getBlocksByClientId,c=r.canInsertBlockType,a=(0,e("core/blocks").getGroupingBlockName)(),s=c(a,n&&n.length>0?o(n[0]):void 0),u=i(n),l=1===u.length&&u[0]&&u[0].name===a;return{isGroupable:s&&u.length&&!l,isUngroupable:l&&!!u[0].innerBlocks.length,blocksSelection:u,groupingBlockName:a}})),Object(h.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?y.noop:r,i=t.blocksSelection,c=void 0===i?[]:i,a=t.groupingBlockName,s=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){if(c.length){var e=Object(l.switchToBlockType)(c,a);e&&s(n,e),o()}},onConvertFromGroup:function(){if(c.length){var e=c[0].innerBlocks;e.length&&(s(n,e),o())}}}}))])((function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,r=e.isGroupable,o=void 0!==r&&r,i=e.isUngroupable,c=void 0!==i&&i;return Object(eo.createElement)(eo.Fragment,null,o&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:Wc,onClick:t},Object(L._x)("Group","verb")),c&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:Kc,onClick:n},Object(L._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))}));var qc=Object(h.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds;return Object(eo.createElement)(u.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var n=e.onClose;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Gc,{clientIds:t,onToggle:n}))}))})),Yc=Object(h.combineReducers)({downloadableBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{results:{},hasPermission:!0,filterValue:void 0,isRequestingDownloadableBlocks:!0,installedBlockTypes:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return Object(f.a)({},e,{isRequestingDownloadableBlocks:!0});case"RECEIVE_DOWNLOADABLE_BLOCKS":return Object(f.a)({},e,{results:Object.assign({},e.results,Object(v.a)({},t.filterValue,t.downloadableBlocks)),hasPermission:!0,isRequestingDownloadableBlocks:!1});case"SET_INSTALL_BLOCKS_PERMISSION":return Object(f.a)({},e,{items:t.hasPermission?e.items:[],hasPermission:t.hasPermission});case"ADD_INSTALLED_BLOCK_TYPE":return Object(f.a)({},e,{installedBlockTypes:[].concat(Object(N.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return Object(f.a)({},e,{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))})}return e}});function Qc(e){return e.downloadableBlocks.isRequestingDownloadableBlocks}function Xc(e,t){return e.downloadableBlocks.results[t]?e.downloadableBlocks.results[t]:[]}function $c(e){return e.downloadableBlocks.hasPermission}function Zc(e){return Object(y.get)(e,["downloadableBlocks","installedBlockTypes"],[])}var Jc=x.a.mark(ra);function ea(e){return{type:"API_FETCH",request:e}}var ta=function(e,t,n){if(e){var r=document.querySelector('script[src="'.concat(e.src,'"]'));r&&r.parentNode.removeChild(r);var o=document.createElement("script");o.src="string"==typeof e?e:e.src,o.onload=t,o.onerror=n,document.body.appendChild(o)}},na=function(e){if(e){var t=document.createElement("link");t.rel="stylesheet",t.href="string"==typeof e?e:e.src,document.body.appendChild(t)}};function ra(e){return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{type:"LOAD_ASSETS",assets:e});case 1:case"end":return t.stop()}}),Jc)}var oa={SELECT:Object(h.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,i=t.args;return(n=e.select(r))[o].apply(n,Object(N.a)(i))}})),DISPATCH:Object(h.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.dispatcherName,i=t.args;return(n=e.dispatch(r))[o].apply(n,Object(N.a)(i))}})),API_FETCH:function(e){var t=e.request;return A()(Object(f.a)({},t))},LOAD_ASSETS:function(e){var t=e.assets;return new Promise((function(e,n){if(Array.isArray(t)){var r=0;Object(y.forEach)(t,(function(t){null!==t.match(/\.js$/)?(r++,ta(t,(function(){if(0===--r)return e(r)}),n)):na(t)}))}else ta(t.editor_script,(function(){return e(0)}),n),na(t.style)}))}},ia=x.a.mark(da),ca=x.a.mark(pa),aa=x.a.mark(ba);function sa(){return{type:"FETCH_DOWNLOADABLE_BLOCKS"}}function ua(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function la(e){return{type:"SET_INSTALL_BLOCKS_PERMISSION",hasPermission:e}}function da(e,t,n){return x.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,e.assets.length){r.next=3;break}throw new Error("Block has no assets");case 3:return r.next=5,ra(e.assets);case 5:if(!Object(l.getBlockTypes)().length){r.next=10;break}t(e),r.next=11;break;case 10:throw new Error("Unable to get block types");case 11:r.next=17;break;case 13:return r.prev=13,r.t0=r.catch(0),r.next=17,n(r.t0);case 17:case"end":return r.stop()}}),ia,null,[[0,13]])}function pa(e,t,n){var r,o,i;return x.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return r=e.id,o=e.name,c.prev=1,c.next=4,ea({path:"__experimental/block-directory/install",data:{slug:r},method:"POST"});case 4:if(!1!==(i=c.sent).success){c.next=7;break}throw new Error(i.errorMessage);case 7:return c.next=9,fa({id:r,name:o});case 9:t(),c.next=15;break;case 12:c.prev=12,c.t0=c.catch(1),n(c.t0);case 15:case"end":return c.stop()}}),ca,null,[[1,12]])}function ba(e,t,n){var r,o,i;return x.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return r=e.id,o=e.name,c.prev=1,c.next=4,ea({path:"__experimental/block-directory/uninstall",data:{slug:r},method:"DELETE"});case 4:if(!1!==(i=c.sent).success){c.next=7;break}throw new Error(i.errorMessage);case 7:return c.next=9,ha({id:r,name:o});case 9:t(),c.next=15;break;case 12:c.prev=12,c.t0=c.catch(1),n(c.t0);case 15:case"end":return c.stop()}}),aa,null,[[1,12]])}function fa(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function ha(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}var ma={reducer:Yc,selectors:a,actions:s,controls:oa,resolvers:{getDownloadableBlocks:x.a.mark((function e(t){var n,r;return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,{type:"FETCH_DOWNLOADABLE_BLOCKS"};case 5:return e.next=7,ea({path:"__experimental/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(y.mapKeys)(e,(function(e,t){return Object(y.camelCase)(t)}))})),e.next=11,ua(r,t);case 11:e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(2),"rest_user_cannot_view"!==e.t0.code){e.next=18;break}return e.next=18,la(!1);case 18:case"end":return e.stop()}}),e,null,[[2,13]])})),hasInstallBlocksPermission:x.a.mark((function e(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ea({path:"__experimental/block-directory/search?term="});case 3:return e.next=5,la(!0);case 5:e.next=12;break;case 7:if(e.prev=7,e.t0=e.catch(0),"rest_user_cannot_view"!==e.t0.code){e.next=12;break}return e.next=12,la(!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])}))}};Object(h.registerStore)("core/block-directory",ma);var va=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),o=Math.ceil(t-r),i=5-(r+o);return Object(eo.createElement)("div",{"aria-label":Object(L.sprintf)(Object(L.__)("%s out of 5 stars"),n)},Object(y.times)(r,(function(e){return Object(eo.createElement)(Po.Icon,{key:"full_stars_".concat(e),icon:"star-filled",size:16})})),Object(y.times)(o,(function(e){return Object(eo.createElement)(Po.Icon,{key:"half_stars_".concat(e),icon:"star-half",size:16})})),Object(y.times)(i,(function(e){return Object(eo.createElement)(Po.Icon,{key:"empty_stars_".concat(e),icon:"star-empty",size:16})})))},Oa=function(e){var t=e.rating,n=e.ratingCount;return Object(eo.createElement)("div",{className:"block-directory-block-ratings"},Object(eo.createElement)(va,{rating:t}),Object(eo.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(L.sprintf)(Object(L._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var ga=function(e){var t=e.icon,n=e.title,r=e.rating,o=e.ratingCount,i=e.onClick;return Object(eo.createElement)("div",{className:"block-directory-downloadable-block-header__row"},null!==t.match(/\.(jpeg|jpg|gif|png)$/)?Object(eo.createElement)("img",{src:t,alt:"block icon"}):Object(eo.createElement)("span",null,Object(eo.createElement)(u.BlockIcon,{icon:t,showColors:!0})),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(eo.createElement)("span",{role:"heading",className:"block-directory-downloadable-block-header__title"},n),Object(eo.createElement)(Oa,{rating:r,ratingCount:o})),Object(eo.createElement)(Po.Button,{isDefault:!0,onClick:function(e){e.preventDefault(),i()}},Object(L.__)("Add")))};var ja=function(e){var t=e.author,n=e.authorBlockCount,r=e.authorBlockRating;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("span",{className:"block-directory-downloadable-block-author-info__content-author"},Object(L.sprintf)(Object(L.__)("Authored by %s"),t)),Object(eo.createElement)("span",{className:"block-directory-downloadable-block-author-info__content"},Object(L.sprintf)(Object(L._n)("This author has %d block, with an average rating of %d.","This author has %d blocks, with an average rating of %d.",n),n,r)))};var ya=function(e){var t=e.description,n=e.activeInstalls,r=e.humanizedUpdated;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("p",{className:"block-directory-downloadable-block-info__content"},t),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__row"},Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__column"},Object(eo.createElement)(Po.Icon,{icon:"chart-line"}),Object(L.sprintf)(Object(L._n)("%d active installation","%d active installations",n),n)),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__column"},Object(eo.createElement)(Po.Icon,{icon:"update"}),Object(eo.createElement)("span",{"aria-label":Object(L.sprintf)(Object(L.__)("Updated %s"),r)},r))))};var _a=function(e){var t=e.item,n=e.onClick,r=t.icon,o=t.title,i=t.description,c=t.rating,a=t.activeInstalls,s=t.ratingCount,u=t.author,l=t.humanizedUpdated,d=t.authorBlockCount,p=t.authorBlockRating;return Object(eo.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(eo.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(eo.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(eo.createElement)(ga,{icon:r,onClick:n,title:o,rating:c,ratingCount:s})),Object(eo.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(eo.createElement)(ya,{activeInstalls:a,description:i,humanizedUpdated:l})),Object(eo.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(eo.createElement)(ja,{author:u,authorBlockCount:d,authorBlockRating:p}))))};var ka=Object(bo.compose)(Object(h.withDispatch)((function(e,t){var n=e("core/block-directory"),r=n.installBlock,o=n.downloadBlock,i=e("core/notices"),c=i.createErrorNotice,a=i.removeNotice,s=e("core/block-editor").removeBlocks,u=t.onSelect;return{downloadAndInstallBlock:function(e){var t=function(){var t=u(e);r(e,y.noop,(function n(){c(Object(L.__)("Block previews can't install."),{id:"block-install-error",actions:[{label:Object(L.__)("Retry"),onClick:function(){a("block-install-error"),r(e,y.noop,n)}},{label:Object(L.__)("Remove"),onClick:function(){a("block-install-error"),s(t.clientId),Object(l.unregisterBlockType)(e.name)}}]})}))};o(e,t,(function n(){c(Object(L.__)("Block previews can’t load."),{id:"block-download-error",actions:[{label:Object(L.__)("Retry"),onClick:function(){a("block-download-error"),o(e,t,n)}}]})}))}}})))((function(e){var t=e.items,n=e.onHover,r=void 0===n?y.noop:n,o=e.children,i=e.downloadAndInstallBlock;return(Object(eo.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t&&t.map((function(e){return Object(eo.createElement)(_a,{key:e.id,className:Object(l.getBlockMenuDefaultClassName)(e.id),icons:e.icons,onClick:function(){i(e),r(null)},onFocus:function(){return r(e)},onMouseEnter:function(){return r(e)},onMouseLeave:function(){return r(null)},onBlur:function(){return r(null)},item:e})})),o))}));var Ea=Object(bo.compose)([Po.withSpokenMessages,Object(h.withSelect)((function(e,t){var n=t.filterValue,r=e("core/block-directory"),o=r.getDownloadableBlocks,i=r.hasInstallBlocksPermission,c=r.isRequestingDownloadableBlocks,a=i();return{downloadableItems:a?o(n):[],hasPermission:a,isLoading:c()}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,o=e.hasPermission,i=e.isLoading,c=e.isWaiting,a=e.debouncedSpeak;return o?i||c?Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(eo.createElement)(Po.Spinner,null)):t.length?(a(Object(L.sprintf)(Object(L._n)("No blocks found in your library. We did find %d block available for download.","No blocks found in your library. We did find %d blocks available for download.",t.length),t.length)),Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(L.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(eo.createElement)(ka,{items:t,onSelect:n,onHover:r}))):Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(L.__)("No blocks found in your library.")):(a(Object(L.__)("No blocks found in your library. Please contact your site administrator to install new blocks.")),Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(L.__)("No blocks found in your library."),Object(eo.createElement)("br",null),Object(L.__)("Please contact your site administrator to install new blocks.")))}));var wa=function(){var e=Object(eo.useState)(""),t=Object(R.a)(e,2),n=t[0],r=t[1],o=Object(y.debounce)(r,400);return Object(eo.createElement)(u.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,i=e.filterValue;return e.hasItems||!i?null:(n!==i&&o(i),Object(eo.createElement)(Ea,{onSelect:t,onHover:r,filterValue:n,isWaiting:i!==n}))}))},Sa=function(){var e=Object(B.a)(x.a.mark((function e(t){var n;return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A()({path:Object(Ft.addQueryArgs)("/wp/v2/search",{search:t,per_page:20,type:"post"})});case 2:return n=e.sent,e.abrupt("return",Object(y.map)(n,(function(e){return{id:e.id,url:e.url,title:Object(ei.decodeEntities)(e.title)||Object(L.__)("(no title)")}})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Pa=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).getBlockEditorSettings=Z()(n.getBlockEditorSettings,{maxSize:1}),e.recovery?Object(uo.a)(n):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(L.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(L.__)("View the autosave"),url:e.settings.autosave.editLink}]}),n)}return Object(po.a)(t,e),Object(so.a)(t,[{key:"getBlockEditorSettings",value:function(e,t,n,r){return Object(f.a)({},Object(y.pick)(e,["alignWide","allowedBlockTypes","__experimentalPreferredStyleVariations","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","focusMode","fontSizes","hasFixedToolbar","hasPermissionsToManageWidgets","imageSizes","isRTL","maxWidth","styles","template","templateLock","titlePlaceholder","onUpdateDefaultBlockStyles","__experimentalEnableLegacyWidgetBlock","__experimentalEnableMenuBlock","__experimentalBlockDirectory","showInserterHelpPanel"]),{__experimentalReusableBlocks:t,__experimentalMediaUpload:n?Uc:void 0,__experimentalFetchLinkSuggestions:Sa,__experimentalCanUserUseUnfilteredHTML:r})}},{key:"componentDidMount",value:function(){if(this.props.updateEditorSettings(this.props.settings),this.props.settings.styles){var e=Object(u.transformStyles)(this.props.settings.styles,".editor-styles-wrapper");Object(y.map)(e,(function(e){if(e){var t=document.createElement("style");t.innerHTML=e,document.body.appendChild(t)}}))}}},{key:"componentDidUpdate",value:function(e){var t=this;this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings),Object(y.isEqual)(this.props.downloadableBlocksToUninstall,e.downloadableBlocksToUninstall)||this.props.downloadableBlocksToUninstall.forEach((function(e){t.props.uninstallBlock(e,y.noop,(function(){t.props.createWarningNotice(Object(L.__)("Block previews can't uninstall."),{id:"block-uninstall-error"})})),Object(l.unregisterBlockType)(e.name)}))}},{key:"componentWillUnmount",value:function(){this.props.tearDownEditor()}},{key:"render",value:function(){var e=this.props,t=e.canUserUseUnfilteredHTML,n=e.children,r=e.blocks,o=e.resetEditorBlocks,i=e.isReady,c=e.settings,a=e.reusableBlocks,s=e.resetEditorBlocksWithoutUndoLevel,l=e.hasUploadPermissions;if(!i)return null;var d=this.getBlockEditorSettings(c,a,l,t);return Object(eo.createElement)(u.BlockEditorProvider,{value:r,onInput:s,onChange:o,settings:d,useSubRegistry:!1},n,Object(eo.createElement)(Vc,null),Object(eo.createElement)(qc,null),d.__experimentalBlockDirectory&&Object(eo.createElement)(wa,null))}}]),t}(eo.Component),Ca=Object(bo.compose)([Nc,Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.__experimentalGetReusableBlocks,c=e("core").canUser,a=e("core/block-directory").getInstalledBlockTypes,s=e("core/block-editor").getBlocks,u=Object(y.differenceBy)(a(),s(),"name");return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),reusableBlocks:i(),hasUploadPermissions:Object(y.defaultTo)(c("create","media"),!0),downloadableBlocksToUninstall:u}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalTearDownEditor,a=e("core/notices").createWarningNotice,s=e("core/block-directory").uninstallBlock;return{setupEditor:n,updatePostLock:r,createWarningNotice:a,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e){o(e,{__unstableShouldCreateUndoLevel:!1})},tearDownEditor:c,uninstallBlock:s}}))])(Pa),Ta=n(55),xa=n.n(Ta);function Ba(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(eo.forwardRef)((function(n,r){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(eo.createElement)(t,Object(ci.a)({ref:r},n))}));return n.forEach((function(n){r[n]=Ba(e+"."+n,t[n])})),r}function Ia(e,t){return function(){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var Aa=Ba("RichText",u.RichText,["Content"]);Aa.isEmpty=Ia("RichText.isEmpty",u.RichText.isEmpty);var La=Ba("Autocomplete",u.Autocomplete),Ra=Ba("AlignmentToolbar",u.AlignmentToolbar),Na=Ba("BlockAlignmentToolbar",u.BlockAlignmentToolbar),Da=Ba("BlockControls",u.BlockControls,["Slot"]),Ua=Ba("BlockEdit",u.BlockEdit),Fa=Ba("BlockEditorKeyboardShortcuts",u.BlockEditorKeyboardShortcuts),Ma=Ba("BlockFormatControls",u.BlockFormatControls,["Slot"]),Va=Ba("BlockIcon",u.BlockIcon),Ha=Ba("BlockInspector",u.BlockInspector),Wa=Ba("BlockList",u.BlockList),za=Ba("BlockMover",u.BlockMover),Ka=Ba("BlockNavigationDropdown",u.BlockNavigationDropdown),Ga=Ba("BlockSelectionClearer",u.BlockSelectionClearer),qa=Ba("BlockSettingsMenu",u.BlockSettingsMenu),Ya=Ba("BlockTitle",u.BlockTitle),Qa=Ba("BlockToolbar",u.BlockToolbar),Xa=Ba("ColorPalette",u.ColorPalette),$a=Ba("ContrastChecker",u.ContrastChecker),Za=Ba("CopyHandler",u.CopyHandler),Ja=Ba("DefaultBlockAppender",u.DefaultBlockAppender),es=Ba("FontSizePicker",u.FontSizePicker),ts=Ba("Inserter",u.Inserter),ns=Ba("InnerBlocks",u.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),rs=Ba("InspectorAdvancedControls",u.InspectorAdvancedControls,["Slot"]),os=Ba("InspectorControls",u.InspectorControls,["Slot"]),is=Ba("PanelColorSettings",u.PanelColorSettings),cs=Ba("PlainText",u.PlainText),as=Ba("RichTextShortcut",u.RichTextShortcut),ss=Ba("RichTextToolbarButton",u.RichTextToolbarButton),us=Ba("__unstableRichTextInputEvent",u.__unstableRichTextInputEvent),ls=Ba("MediaPlaceholder",u.MediaPlaceholder),ds=Ba("MediaUpload",u.MediaUpload),ps=Ba("MediaUploadCheck",u.MediaUploadCheck),bs=Ba("MultiBlocksSwitcher",u.MultiBlocksSwitcher),fs=Ba("MultiSelectScrollIntoView",u.MultiSelectScrollIntoView),hs=Ba("NavigableToolbar",u.NavigableToolbar),ms=Ba("ObserveTyping",u.ObserveTyping),vs=Ba("PreserveScrollInReorder",u.PreserveScrollInReorder),Os=Ba("SkipToSelectedBlock",u.SkipToSelectedBlock),gs=Ba("URLInput",u.URLInput),js=Ba("URLInputButton",u.URLInputButton),ys=Ba("URLPopover",u.URLPopover),_s=Ba("Warning",u.Warning),ks=Ba("WritingFlow",u.WritingFlow),Es=Ia("createCustomColorsHOC",u.createCustomColorsHOC),ws=Ia("getColorClassName",u.getColorClassName),Ss=Ia("getColorObjectByAttributeValues",u.getColorObjectByAttributeValues),Ps=Ia("getColorObjectByColorValue",u.getColorObjectByColorValue),Cs=Ia("getFontSize",u.getFontSize),Ts=Ia("getFontSizeClass",u.getFontSizeClass),xs=Ia("withColorContext",u.withColorContext),Bs=Ia("withColors",u.withColors),Is=Ia("withFontSizes",u.withFontSizes);Object(Jr.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.push(Object(y.clone)(co)),t===Object(l.getDefaultBlockName)()&&e.push(Object(y.clone)(io)),e})),n.d(t,"AutosaveMonitor",(function(){return ho})),n.d(t,"DocumentOutline",(function(){return Eo})),n.d(t,"DocumentOutlineCheck",(function(){return wo})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return Io})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return Ao})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return Lo})),n.d(t,"EditorHistoryRedo",(function(){return Ro})),n.d(t,"EditorHistoryUndo",(function(){return No})),n.d(t,"EditorNotices",(function(){return Fo})),n.d(t,"ErrorBoundary",(function(){return Mo})),n.d(t,"LocalAutosaveMonitor",(function(){return zo})),n.d(t,"PageAttributesCheck",(function(){return Ko})),n.d(t,"PageAttributesOrder",(function(){return Yo})),n.d(t,"PageAttributesParent",(function(){return Zo})),n.d(t,"PageTemplate",(function(){return Jo})),n.d(t,"PostAuthor",(function(){return ri})),n.d(t,"PostAuthorCheck",(function(){return ti})),n.d(t,"PostComments",(function(){return oi})),n.d(t,"PostExcerpt",(function(){return ii})),n.d(t,"PostExcerptCheck",(function(){return ai})),n.d(t,"PostFeaturedImage",(function(){return mi})),n.d(t,"PostFeaturedImageCheck",(function(){return ui})),n.d(t,"PostFormat",(function(){return gi})),n.d(t,"PostFormatCheck",(function(){return vi})),n.d(t,"PostLastRevision",(function(){return ki})),n.d(t,"PostLastRevisionCheck",(function(){return ji})),n.d(t,"PostLockedModal",(function(){return Pi})),n.d(t,"PostPendingStatus",(function(){return Ti})),n.d(t,"PostPendingStatusCheck",(function(){return Ci})),n.d(t,"PostPingbacks",(function(){return xi})),n.d(t,"PostPreviewButton",(function(){return wi})),n.d(t,"PostPublishButton",(function(){return Ai})),n.d(t,"PostPublishButtonLabel",(function(){return Bi})),n.d(t,"PostPublishPanel",(function(){return nc})),n.d(t,"PostSavedState",(function(){return ic})),n.d(t,"PostSchedule",(function(){return Ui})),n.d(t,"PostScheduleCheck",(function(){return cc})),n.d(t,"PostScheduleLabel",(function(){return Fi})),n.d(t,"PostSticky",(function(){return sc})),n.d(t,"PostStickyCheck",(function(){return ac})),n.d(t,"PostSwitchToDraftButton",(function(){return rc})),n.d(t,"PostTaxonomies",(function(){return pc})),n.d(t,"PostTaxonomiesCheck",(function(){return bc})),n.d(t,"PostTextEditor",(function(){return vc})),n.d(t,"PostTitle",(function(){return Sc})),n.d(t,"PostTrash",(function(){return Pc})),n.d(t,"PostTrashCheck",(function(){return Cc})),n.d(t,"PostTypeSupportCheck",(function(){return Go})),n.d(t,"PostVisibility",(function(){return Ni})),n.d(t,"PostVisibilityLabel",(function(){return Di})),n.d(t,"PostVisibilityCheck",(function(){return Tc})),n.d(t,"TableOfContents",(function(){return Ac})),n.d(t,"UnsavedChangesWarning",(function(){return Rc})),n.d(t,"WordCount",(function(){return Bc})),n.d(t,"EditorProvider",(function(){return Ca})),n.d(t,"blockAutocompleter",(function(){return io})),n.d(t,"userAutocompleter",(function(){return co})),n.d(t,"ServerSideRender",(function(){return xa.a})),n.d(t,"RichText",(function(){return Aa})),n.d(t,"Autocomplete",(function(){return La})),n.d(t,"AlignmentToolbar",(function(){return Ra})),n.d(t,"BlockAlignmentToolbar",(function(){return Na})),n.d(t,"BlockControls",(function(){return Da})),n.d(t,"BlockEdit",(function(){return Ua})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Fa})),n.d(t,"BlockFormatControls",(function(){return Ma})),n.d(t,"BlockIcon",(function(){return Va})),n.d(t,"BlockInspector",(function(){return Ha})),n.d(t,"BlockList",(function(){return Wa})),n.d(t,"BlockMover",(function(){return za})),n.d(t,"BlockNavigationDropdown",(function(){return Ka})),n.d(t,"BlockSelectionClearer",(function(){return Ga})),n.d(t,"BlockSettingsMenu",(function(){return qa})),n.d(t,"BlockTitle",(function(){return Ya})),n.d(t,"BlockToolbar",(function(){return Qa})),n.d(t,"ColorPalette",(function(){return Xa})),n.d(t,"ContrastChecker",(function(){return $a})),n.d(t,"CopyHandler",(function(){return Za})),n.d(t,"DefaultBlockAppender",(function(){return Ja})),n.d(t,"FontSizePicker",(function(){return es})),n.d(t,"Inserter",(function(){return ts})),n.d(t,"InnerBlocks",(function(){return ns})),n.d(t,"InspectorAdvancedControls",(function(){return rs})),n.d(t,"InspectorControls",(function(){return os})),n.d(t,"PanelColorSettings",(function(){return is})),n.d(t,"PlainText",(function(){return cs})),n.d(t,"RichTextShortcut",(function(){return as})),n.d(t,"RichTextToolbarButton",(function(){return ss})),n.d(t,"__unstableRichTextInputEvent",(function(){return us})),n.d(t,"MediaPlaceholder",(function(){return ls})),n.d(t,"MediaUpload",(function(){return ds})),n.d(t,"MediaUploadCheck",(function(){return ps})),n.d(t,"MultiBlocksSwitcher",(function(){return bs})),n.d(t,"MultiSelectScrollIntoView",(function(){return fs})),n.d(t,"NavigableToolbar",(function(){return hs})),n.d(t,"ObserveTyping",(function(){return ms})),n.d(t,"PreserveScrollInReorder",(function(){return vs})),n.d(t,"SkipToSelectedBlock",(function(){return Os})),n.d(t,"URLInput",(function(){return gs})),n.d(t,"URLInputButton",(function(){return js})),n.d(t,"URLPopover",(function(){return ys})),n.d(t,"Warning",(function(){return _s})),n.d(t,"WritingFlow",(function(){return ks})),n.d(t,"createCustomColorsHOC",(function(){return Es})),n.d(t,"getColorClassName",(function(){return ws})),n.d(t,"getColorObjectByAttributeValues",(function(){return Ss})),n.d(t,"getColorObjectByColorValue",(function(){return Ps})),n.d(t,"getFontSize",(function(){return Cs})),n.d(t,"getFontSizeClass",(function(){return Ts})),n.d(t,"withColorContext",(function(){return xs})),n.d(t,"withColors",(function(){return Bs})),n.d(t,"withFontSizes",(function(){return Is})),n.d(t,"mediaUpload",(function(){return Uc})),n.d(t,"cleanForSlug",(function(){return _i})),n.d(t,"storeConfig",(function(){return $r})),n.d(t,"transformStyles",(function(){return u.transformStyles}))},39:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},4:function(e,t){!function(){e.exports=this.wp.data}()},41:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},43:function(e,t){!function(){e.exports=this.wp.viewport}()},44:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var a=e[i](c),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var c=e.apply(t,n);function a(e){r(c,o,i,a,s,"next",e)}function s(e){r(c,o,i,a,s,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},45:function(e,t,n){e.exports=function(e,t){var n,r,o,i=0;function c(){var t,c,a=r,s=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(c=0;c=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var s=r.call(c,"catchLoc"),u=r.call(c,"finallyLoc");if(s&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),f}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},5:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},54:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},55:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},56:function(e,t){!function(){e.exports=this.wp.date}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},63:function(e,t){!function(){e.exports=this.wp.nux}()},64:function(e,t,n){"use strict";t.__esModule=!0;var r=n(132);t.default=r.default},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},22:function(e,t){!function(){e.exports=this.wp.richText}()},23:function(e,t,n){"use strict";var r=n(38);var o=n(39);function i(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return i}))},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},28:function(e,t){!function(){e.exports=this.React}()},294:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["optimist"])}}return{optimist:a,innerState:e}}e.exports=function(e){function t(t,n,o){return t.length&&(t=t.concat([{action:o}])),u(n=e(n,o),o),r({optimist:t},n)}return function(n,a){if(a.optimist)switch(a.optimist.type){case o:return function(t,n){var o=l(t),i=o.optimist,c=o.innerState;return i=i.concat([{beforeState:c,action:n}]),u(c=e(c,n),n),r({optimist:i},c)}(n,a);case i:return function(e,n){var r=l(e),o=r.optimist,i=r.innerState,c=[],a=!1,u=!1;return o.forEach((function(e){a?e.beforeState&&s(e.action,n.optimist.id)?(u=!0,c.push({action:e.action})):c.push(e):e.beforeState&&!s(e.action,n.optimist.id)?(a=!0,c.push(e)):e.beforeState&&s(e.action,n.optimist.id)&&(u=!0)})),u||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(o=c,i,n)}(n,a);case c:return function(n,r){var o=l(n),i=o.optimist,c=o.innerState,a=[],d=!1,p=!1,b=c;return i.forEach((function(t){t.beforeState&&s(t.action,r.optimist.id)&&(b=t.beforeState,p=!0),s(t.action,r.optimist.id)||(t.beforeState&&(d=!0),d&&(p&&t.beforeState?a.push({beforeState:b,action:t.action}):a.push(t)),p&&(b=e(b,t.action),u(c,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(i=a,b,r)}(n,a)}var d=l(n),p=d.optimist,b=d.innerState;if(n&&!p.length){var f=e(b,a);return f===b?n:(u(f,a),r({optimist:p},f))}return t(p,b,a)}},e.exports.BEGIN=o,e.exports.COMMIT=i,e.exports.REVERT=c},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},31:function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},312:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"getDependencies",(function(){return ce})),n.d(r,"apply",(function(){return ae})),n.d(r,"update",(function(){return se}));var o={};n.r(o),n.d(o,"meta",(function(){return r}));var i={};n.r(i),n.d(i,"setupEditor",(function(){return Se})),n.d(i,"__experimentalTearDownEditor",(function(){return Pe})),n.d(i,"__experimentalSubscribeSources",(function(){return Ce})),n.d(i,"resetPost",(function(){return Te})),n.d(i,"resetAutosave",(function(){return xe})),n.d(i,"__experimentalRequestPostUpdateStart",(function(){return Be})),n.d(i,"__experimentalRequestPostUpdateFinish",(function(){return Ie})),n.d(i,"updatePost",(function(){return Ae})),n.d(i,"setupEditorState",(function(){return Le})),n.d(i,"editPost",(function(){return Re})),n.d(i,"__experimentalOptimisticUpdatePost",(function(){return Ne})),n.d(i,"savePost",(function(){return De})),n.d(i,"refreshPost",(function(){return Ue})),n.d(i,"trashPost",(function(){return Fe})),n.d(i,"autosave",(function(){return Me})),n.d(i,"__experimentalLocalAutosave",(function(){return Ve})),n.d(i,"redo",(function(){return He})),n.d(i,"undo",(function(){return We})),n.d(i,"createUndoLevel",(function(){return ze})),n.d(i,"updatePostLock",(function(){return Ke})),n.d(i,"__experimentalFetchReusableBlocks",(function(){return Ge})),n.d(i,"__experimentalReceiveReusableBlocks",(function(){return qe})),n.d(i,"__experimentalSaveReusableBlock",(function(){return Ye})),n.d(i,"__experimentalDeleteReusableBlock",(function(){return Qe})),n.d(i,"__experimentalUpdateReusableBlock",(function(){return Xe})),n.d(i,"__experimentalConvertBlockToStatic",(function(){return $e})),n.d(i,"__experimentalConvertBlockToReusable",(function(){return Ze})),n.d(i,"enablePublishSidebar",(function(){return Je})),n.d(i,"disablePublishSidebar",(function(){return et})),n.d(i,"lockPostSaving",(function(){return tt})),n.d(i,"unlockPostSaving",(function(){return nt})),n.d(i,"resetEditorBlocks",(function(){return rt})),n.d(i,"updateEditorSettings",(function(){return ot})),n.d(i,"resetBlocks",(function(){return ct})),n.d(i,"receiveBlocks",(function(){return at})),n.d(i,"updateBlock",(function(){return st})),n.d(i,"updateBlockAttributes",(function(){return ut})),n.d(i,"selectBlock",(function(){return lt})),n.d(i,"startMultiSelect",(function(){return dt})),n.d(i,"stopMultiSelect",(function(){return pt})),n.d(i,"multiSelect",(function(){return bt})),n.d(i,"clearSelectedBlock",(function(){return ft})),n.d(i,"toggleSelection",(function(){return ht})),n.d(i,"replaceBlocks",(function(){return mt})),n.d(i,"replaceBlock",(function(){return vt})),n.d(i,"moveBlocksDown",(function(){return Ot})),n.d(i,"moveBlocksUp",(function(){return gt})),n.d(i,"moveBlockToPosition",(function(){return jt})),n.d(i,"insertBlock",(function(){return yt})),n.d(i,"insertBlocks",(function(){return _t})),n.d(i,"showInsertionPoint",(function(){return kt})),n.d(i,"hideInsertionPoint",(function(){return Et})),n.d(i,"setTemplateValidity",(function(){return wt})),n.d(i,"synchronizeTemplate",(function(){return St})),n.d(i,"mergeBlocks",(function(){return Pt})),n.d(i,"removeBlocks",(function(){return Ct})),n.d(i,"removeBlock",(function(){return Tt})),n.d(i,"toggleBlockMode",(function(){return xt})),n.d(i,"startTyping",(function(){return Bt})),n.d(i,"stopTyping",(function(){return It})),n.d(i,"enterFormattedText",(function(){return At})),n.d(i,"exitFormattedText",(function(){return Lt})),n.d(i,"insertDefaultBlock",(function(){return Rt})),n.d(i,"updateBlockListSettings",(function(){return Nt}));var c={};n.r(c),n.d(c,"hasEditorUndo",(function(){return Ht})),n.d(c,"hasEditorRedo",(function(){return Wt})),n.d(c,"isEditedPostNew",(function(){return zt})),n.d(c,"hasChangedContent",(function(){return Kt})),n.d(c,"isEditedPostDirty",(function(){return Gt})),n.d(c,"isCleanNewPost",(function(){return qt})),n.d(c,"getCurrentPost",(function(){return Yt})),n.d(c,"getCurrentPostType",(function(){return Qt})),n.d(c,"getCurrentPostId",(function(){return Xt})),n.d(c,"getCurrentPostRevisionsCount",(function(){return $t})),n.d(c,"getCurrentPostLastRevisionId",(function(){return Zt})),n.d(c,"getPostEdits",(function(){return Jt})),n.d(c,"getCurrentPostAttribute",(function(){return en})),n.d(c,"getEditedPostAttribute",(function(){return nn})),n.d(c,"getAutosaveAttribute",(function(){return rn})),n.d(c,"getEditedPostVisibility",(function(){return on})),n.d(c,"isCurrentPostPending",(function(){return cn})),n.d(c,"isCurrentPostPublished",(function(){return an})),n.d(c,"isCurrentPostScheduled",(function(){return sn})),n.d(c,"isEditedPostPublishable",(function(){return un})),n.d(c,"isEditedPostSaveable",(function(){return ln})),n.d(c,"isEditedPostEmpty",(function(){return dn})),n.d(c,"isEditedPostAutosaveable",(function(){return pn})),n.d(c,"getAutosave",(function(){return bn})),n.d(c,"hasAutosave",(function(){return fn})),n.d(c,"isEditedPostBeingScheduled",(function(){return hn})),n.d(c,"isEditedPostDateFloating",(function(){return mn})),n.d(c,"isSavingPost",(function(){return vn})),n.d(c,"didPostSaveRequestSucceed",(function(){return On})),n.d(c,"didPostSaveRequestFail",(function(){return gn})),n.d(c,"isAutosavingPost",(function(){return jn})),n.d(c,"isPreviewingPost",(function(){return yn})),n.d(c,"getEditedPostPreviewLink",(function(){return _n})),n.d(c,"getSuggestedPostFormat",(function(){return kn})),n.d(c,"getBlocksForSerialization",(function(){return En})),n.d(c,"getEditedPostContent",(function(){return wn})),n.d(c,"__experimentalGetReusableBlock",(function(){return Sn})),n.d(c,"__experimentalIsSavingReusableBlock",(function(){return Pn})),n.d(c,"__experimentalIsFetchingReusableBlock",(function(){return Cn})),n.d(c,"__experimentalGetReusableBlocks",(function(){return Tn})),n.d(c,"getStateBeforeOptimisticTransaction",(function(){return xn})),n.d(c,"isPublishingPost",(function(){return Bn})),n.d(c,"isPermalinkEditable",(function(){return In})),n.d(c,"getPermalink",(function(){return An})),n.d(c,"getPermalinkParts",(function(){return Ln})),n.d(c,"inSomeHistory",(function(){return Rn})),n.d(c,"isPostLocked",(function(){return Nn})),n.d(c,"isPostSavingLocked",(function(){return Dn})),n.d(c,"isPostAutosavingLocked",(function(){return Un})),n.d(c,"isPostLockTakeover",(function(){return Fn})),n.d(c,"getPostLockUser",(function(){return Mn})),n.d(c,"getActivePostLock",(function(){return Vn})),n.d(c,"canUserUseUnfilteredHTML",(function(){return Hn})),n.d(c,"isPublishSidebarEnabled",(function(){return Wn})),n.d(c,"getEditorBlocks",(function(){return zn})),n.d(c,"__unstableIsEditorReady",(function(){return Kn})),n.d(c,"getEditorSettings",(function(){return Gn})),n.d(c,"getBlockName",(function(){return Yn})),n.d(c,"isBlockValid",(function(){return Qn})),n.d(c,"getBlockAttributes",(function(){return Xn})),n.d(c,"getBlock",(function(){return $n})),n.d(c,"getBlocks",(function(){return Zn})),n.d(c,"__unstableGetBlockWithoutInnerBlocks",(function(){return Jn})),n.d(c,"getClientIdsOfDescendants",(function(){return er})),n.d(c,"getClientIdsWithDescendants",(function(){return tr})),n.d(c,"getGlobalBlockCount",(function(){return nr})),n.d(c,"getBlocksByClientId",(function(){return rr})),n.d(c,"getBlockCount",(function(){return or})),n.d(c,"getBlockSelectionStart",(function(){return ir})),n.d(c,"getBlockSelectionEnd",(function(){return cr})),n.d(c,"getSelectedBlockCount",(function(){return ar})),n.d(c,"hasSelectedBlock",(function(){return sr})),n.d(c,"getSelectedBlockClientId",(function(){return ur})),n.d(c,"getSelectedBlock",(function(){return lr})),n.d(c,"getBlockRootClientId",(function(){return dr})),n.d(c,"getBlockHierarchyRootClientId",(function(){return pr})),n.d(c,"getAdjacentBlockClientId",(function(){return br})),n.d(c,"getPreviousBlockClientId",(function(){return fr})),n.d(c,"getNextBlockClientId",(function(){return hr})),n.d(c,"getSelectedBlocksInitialCaretPosition",(function(){return mr})),n.d(c,"getMultiSelectedBlockClientIds",(function(){return vr})),n.d(c,"getMultiSelectedBlocks",(function(){return Or})),n.d(c,"getFirstMultiSelectedBlockClientId",(function(){return gr})),n.d(c,"getLastMultiSelectedBlockClientId",(function(){return jr})),n.d(c,"isFirstMultiSelectedBlock",(function(){return yr})),n.d(c,"isBlockMultiSelected",(function(){return _r})),n.d(c,"isAncestorMultiSelected",(function(){return kr})),n.d(c,"getMultiSelectedBlocksStartClientId",(function(){return Er})),n.d(c,"getMultiSelectedBlocksEndClientId",(function(){return wr})),n.d(c,"getBlockOrder",(function(){return Sr})),n.d(c,"getBlockIndex",(function(){return Pr})),n.d(c,"isBlockSelected",(function(){return Cr})),n.d(c,"hasSelectedInnerBlock",(function(){return Tr})),n.d(c,"isBlockWithinSelection",(function(){return xr})),n.d(c,"hasMultiSelection",(function(){return Br})),n.d(c,"isMultiSelecting",(function(){return Ir})),n.d(c,"isSelectionEnabled",(function(){return Ar})),n.d(c,"getBlockMode",(function(){return Lr})),n.d(c,"isTyping",(function(){return Rr})),n.d(c,"isCaretWithinFormattedText",(function(){return Nr})),n.d(c,"getBlockInsertionPoint",(function(){return Dr})),n.d(c,"isBlockInsertionPointVisible",(function(){return Ur})),n.d(c,"isValidTemplate",(function(){return Fr})),n.d(c,"getTemplate",(function(){return Mr})),n.d(c,"getTemplateLock",(function(){return Vr})),n.d(c,"canInsertBlockType",(function(){return Hr})),n.d(c,"getInserterItems",(function(){return Wr})),n.d(c,"hasInserterItems",(function(){return zr})),n.d(c,"getBlockListSettings",(function(){return Kr}));var a={};n.r(a),n.d(a,"isRequestingDownloadableBlocks",(function(){return Qc})),n.d(a,"getDownloadableBlocks",(function(){return Xc})),n.d(a,"hasInstallBlocksPermission",(function(){return $c})),n.d(a,"getInstalledBlockTypes",(function(){return Zc}));var s={};n.r(s),n.d(s,"fetchDownloadableBlocks",(function(){return sa})),n.d(s,"receiveDownloadableBlocks",(function(){return ua})),n.d(s,"setInstallBlocksPermission",(function(){return la})),n.d(s,"downloadBlock",(function(){return da})),n.d(s,"installBlock",(function(){return pa})),n.d(s,"uninstallBlock",(function(){return ba})),n.d(s,"addInstalledBlockType",(function(){return fa})),n.d(s,"removeInstalledBlockType",(function(){return ha}));var u=n(6),l=n(9),d=(n(86),n(134),n(58)),p=n(22),b=n(42),f=n(7),h=n(4),m=n(33),v=n(10),O=n(31),g=n(80),j=n.n(g),y=n(2),_={insertUsage:{},isPublishSidebarEnabled:!0},k=Object(f.a)({},u.SETTINGS_DEFAULTS,{richEditingEnabled:!0,codeEditingEnabled:!0,enableCustomFields:!1});function E(e){return e&&"object"===Object(O.a)(e)&&"raw"in e?e.raw:e}var w=Object(h.combineReducers)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_REUSABLE_BLOCKS":return Object(f.a)({},e,Object(y.keyBy)(t.results,"id"));case"UPDATE_REUSABLE_BLOCK":var n=t.id,r=t.changes;return Object(f.a)({},e,Object(v.a)({},n,Object(f.a)({},e[n],r)));case"SAVE_REUSABLE_BLOCK_SUCCESS":var o=t.id,i=t.updatedId;if(o===i)return e;var c=e[o];return Object(f.a)({},Object(y.omit)(e,o),Object(v.a)({},i,Object(f.a)({},c,{id:i})));case"REMOVE_REUSABLE_BLOCK":var a=t.id;return Object(y.omit)(e,a)}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_REUSABLE_BLOCKS":var n=t.id;return n?Object(f.a)({},e,Object(v.a)({},n,!0)):e;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=t.id;return Object(y.omit)(e,r)}return e},isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_REUSABLE_BLOCK":return Object(f.a)({},e,Object(v.a)({},t.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=t.id;return Object(y.omit)(e,n)}return e}});var S=j()(Object(h.combineReducers)({postId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.id}return e},postType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.type}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_;switch((arguments.length>1?arguments[1]:void 0).type){case"ENABLE_PUBLISH_SIDEBAR":return Object(f.a)({},e,{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return Object(f.a)({},e,{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},reusableBlocks:w,template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Object(f.a)({},e,{isValid:t.isValid})}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return Object(f.a)({},e,Object(v.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(y.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"SETUP_EDITOR_STATE":return!0;case"TEAR_DOWN_EDITOR":return!1}return e},editorSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return Object(f.a)({},e,t.settings)}return e},postAutosavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_AUTOSAVING":return Object(f.a)({},e,Object(v.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(y.omit)(e,t.lockName)}return e}})),P=n(69),C=n.n(P),T=n(20),x=n.n(T),B=n(43),I=n(32),A=n.n(I),L=n(1),R=n(23),N=n(17),D=n(37),U=n.n(D),F=n(40),M=n.n(F),V=new Set(["meta"]),H="core/editor",W="post-update",z="SAVE_POST_NOTICE_ID",K="TRASH_POST_NOTICE_ID",G=/%(?:postname|pagename)%/,q=6e4,Y=["title","excerpt","content"];function Q(e){var t=e.previousPost,n=e.post,r=e.postType;if(Object(y.get)(e.options,["isAutosave"]))return[];var o,i=["publish","private","future"],c=Object(y.includes)(i,t.status),a=Object(y.includes)(i,n.status),s=Object(y.get)(r,["viewable"],!1);if(c||a?c&&!a?(o=r.labels.item_reverted_to_draft,s=!1):o=!c&&a?{publish:r.labels.item_published,private:r.labels.item_published_privately,future:r.labels.item_scheduled}[n.status]:r.labels.item_updated:o=null,o){var u=[];return s&&u.push({label:r.labels.view_item,url:n.link}),[o,{id:z,type:"snackbar",actions:u}]}return[]}function X(e){var t=e.post,n=e.edits,r=e.error;if(r&&"rest_autosave_no_changes"===r.code)return[];var o=["publish","private","future"],i=-1!==o.indexOf(t.status),c={publish:Object(L.__)("Publishing failed."),private:Object(L.__)("Publishing failed."),future:Object(L.__)("Scheduling failed.")},a=i||-1===o.indexOf(n.status)?Object(L.__)("Updating failed."):c[n.status];return r.message&&!/<\/?[^>]*>/.test(r.message)&&(a=Object(L.sprintf)(Object(L.__)("%1$s Error message: %2$s"),a,r.message)),[a,{id:z}]}var $=n(44),Z=n.n($),J=n(66),ee=Z()((function(e){1===e.length&&Object(l.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(l.serialize)(e);return 1===e.length&&e[0].name===Object(l.getFreeformContentHandlerName)()&&(t=Object(J.removep)(t)),t}),{maxSize:1});function te(e){return"wp-autosave-block-editor-post-".concat(e)}function ne(e){window.sessionStorage.removeItem(te(e))}var re={AWAIT_NEXT_STATE_CHANGE:Object(h.createRegistryControl)((function(e){return function(){return new Promise((function(t){var n=e.subscribe((function(){n(),t()}))}))}})),GET_REGISTRY:Object(h.createRegistryControl)((function(e){return function(){return e}})),LOCAL_AUTOSAVE_SET:function(e){!function(e,t,n,r){window.sessionStorage.setItem(te(e),JSON.stringify({post_title:t,content:n,excerpt:r}))}(e.postId,e.title,e.content,e.excerpt)}},oe=x.a.mark(ce),ie=x.a.mark(se);function ce(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.select)("core/editor","getEditedPostAttribute","meta");case 2:return e.t0=e.sent,e.abrupt("return",{meta:e.t0});case 4:case"end":return e.stop()}}),oe)}function ae(e,t){return t.meta[e.meta]}function se(e,t){return x.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Re({meta:Object(v.a)({},e.meta,t)});case 2:case"end":return n.stop()}}),ie)}var ue=x.a.mark(Ee),le=x.a.mark(we),de=x.a.mark(Se),pe=x.a.mark(Ce),be=x.a.mark(xe),fe=x.a.mark(Re),he=x.a.mark(De),me=x.a.mark(Ue),ve=x.a.mark(Fe),Oe=x.a.mark(Me),ge=x.a.mark(Ve),je=x.a.mark(He),ye=x.a.mark(We),_e=x.a.mark(rt),ke=new WeakMap;function Ee(e){var t,n,r,i,c,a,s,u,l,d,p,b,h,O;return x.a.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,{type:"GET_REGISTRY"};case 2:if(t=g.sent,ke.has(t)){g.next=5;break}return g.abrupt("return",e);case 5:n=ke.get(t),r=e,i=0;case 8:if(!(i0&&void 0!==d[0]?d[0]:Object.values(o)).length){p.next=3;break}return p.abrupt("return");case 3:return p.next=5,{type:"GET_REGISTRY"};case 5:t=p.sent,ke.has(t)||ke.set(t,new WeakMap),n=ke.get(t),r=!0,i=!1,c=void 0,p.prev=11,a=e[Symbol.iterator]();case 13:if(r=(s=a.next()).done){p.next=21;break}return u=s.value,p.delegateYield(u.getDependencies(),"t0",16);case 16:l=p.t0,n.set(u,l);case 18:r=!0,p.next=13;break;case 21:p.next=27;break;case 23:p.prev=23,p.t1=p.catch(11),i=!0,c=p.t1;case 27:p.prev=27,p.prev=28,r||null==a.return||a.return();case 30:if(p.prev=30,!i){p.next=33;break}throw c;case 33:return p.finish(30);case 34:return p.finish(27);case 35:case"end":return p.stop()}}),le,null,[[11,23,27,35],[28,,30,34]])}function Se(e,t,n){var r,o;return x.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=Object(y.has)(t,["content"])?t.content:e.content.raw,o=Object(l.parse)(r),"auto-draft"===e.status&&n&&(o=Object(l.synchronizeBlocksWithTemplate)(o,n)),i.next=6,Te(e);case 6:return i.delegateYield(we(),"t0",7);case 7:return i.next=9,{type:"SETUP_EDITOR",post:e,edits:t,template:n};case 9:return i.next=11,rt(o,{__unstableShouldCreateUndoLevel:!1});case 11:return i.next=13,Le(e);case 13:if(!t||!Object.keys(t).some((function(n){return t[n]!==(Object(y.has)(e,[n,"raw"])?e[n].raw:e[n])}))){i.next=16;break}return i.next=16,Re(t);case 16:return i.delegateYield(Ce(),"t1",17);case 17:case"end":return i.stop()}}),de)}function Pe(){return{type:"TEAR_DOWN_EDITOR"}}function Ce(){var e,t,n,r,i,c,a,s;return x.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=3,{type:"AWAIT_NEXT_STATE_CHANGE"};case 3:return u.next=5,Object(m.select)(H,"__unstableIsEditorReady");case 5:if(u.sent){u.next=8;break}return u.abrupt("break",36);case 8:return u.next=10,{type:"GET_REGISTRY"};case 10:e=u.sent,t=!1,n=0,r=Object.values(o);case 13:if(!(n0&&void 0!==arguments[0]?arguments[0]:{}}}function Ie(){return{type:"REQUEST_POST_UPDATE_FINISH",options:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}function Ae(e){return{type:"UPDATE_POST",edits:e}}function Le(e){return{type:"SETUP_EDITOR_STATE",post:e}}function Re(e,t){var n,r,o;return x.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(m.select)(H,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(m.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),fe)}function Ne(e){return Object(f.a)({},Ae(e),{optimist:{id:W}})}function De(){var e,t,n,r,o,i,c,a=arguments;return x.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},s.next=3,Object(m.select)(H,"isEditedPostSaveable");case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:return s.next=7,Object(m.select)(H,"getEditedPostContent");case 7:if(s.t0=s.sent,t={content:s.t0},e.isAutosave){s.next=12;break}return s.next=12,Object(m.dispatch)(H,"editPost",t,{undoIgnore:!0});case 12:return s.next=14,Be(e);case 14:return s.next=16,Object(m.select)(H,"getCurrentPost");case 16:return n=s.sent,s.t1=f.a,s.t2={id:n.id},s.next=21,Object(m.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 21:return s.t3=s.sent,s.t4=t,t=(0,s.t1)(s.t2,s.t3,s.t4),s.next=26,Object(m.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 26:return s.next=28,Ie(e);case 28:return s.next=30,Object(m.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 30:if(!(r=s.sent)){s.next=38;break}if(!(o=X({post:n,edits:t,error:r})).length){s.next=36;break}return s.next=36,m.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(N.a)(o)));case 36:s.next=53;break;case 38:return s.next=40,Object(m.select)(H,"getCurrentPost");case 40:return i=s.sent,s.t5=Q,s.t6=n,s.t7=i,s.next=46,Object(m.select)("core","getPostType",i.type);case 46:if(s.t8=s.sent,s.t9=e,s.t10={previousPost:s.t6,post:s.t7,postType:s.t8,options:s.t9},!(c=(0,s.t5)(s.t10)).length){s.next=53;break}return s.next=53,m.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(N.a)(c)));case 53:case"end":return s.stop()}}),he)}function Ue(){var e,t,n,r;return x.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(m.select)(H,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(m.select)(H,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(m.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(m.apiFetch)({path:"/wp/v2/".concat(n.rest_base,"/").concat(e.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,Object(m.dispatch)(H,"resetPost",r);case 14:case"end":return o.stop()}}),me)}function Fe(){var e,t,n;return x.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(m.select)(H,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(m.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(m.dispatch)("core/notices","removeNotice",K);case 8:return r.prev=8,r.next=11,Object(m.select)(H,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(m.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(m.dispatch)(H,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,m.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(N.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(L.__)("Trashing failed"),{id:K}])));case 22:case"end":return r.stop()}var o}),ve,null,[[8,18]])}function Me(e){return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(m.dispatch)(H,"savePost",Object(f.a)({isAutosave:!0},e));case 2:case"end":return t.stop()}}),Oe)}function Ve(){var e,t,n,r;return x.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(m.select)(H,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(m.select)(H,"getEditedPostAttribute","title");case 5:return t=o.sent,o.next=8,Object(m.select)(H,"getEditedPostAttribute","content");case 8:return n=o.sent,o.next=11,Object(m.select)(H,"getEditedPostAttribute","excerpt");case 11:return r=o.sent,o.next=14,{type:"LOCAL_AUTOSAVE_SET",postId:e.id,title:t,content:n,excerpt:r};case 14:case"end":return o.stop()}}),ge)}function He(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.dispatch)("core","redo");case 2:case"end":return e.stop()}}),je)}function We(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.dispatch)("core","undo");case 2:case"end":return e.stop()}}),ye)}function ze(){return{type:"CREATE_UNDO_LEVEL"}}function Ke(e){return{type:"UPDATE_POST_LOCK",lock:e}}function Ge(e){return{type:"FETCH_REUSABLE_BLOCKS",id:e}}function qe(e){return{type:"RECEIVE_REUSABLE_BLOCKS",results:e}}function Ye(e){return{type:"SAVE_REUSABLE_BLOCK",id:e}}function Qe(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}function Xe(e,t){return{type:"UPDATE_REUSABLE_BLOCK",id:e,changes:t}}function $e(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function Ze(e){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(y.castArray)(e)}}function Je(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function et(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function tt(e){return{type:"LOCK_POST_SAVING",lockName:e}}function nt(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function rt(e){var t,n,r,i,c,a,s,u,l,d,p,b,f,h,v,O,g,j,y,_,k,E,w=arguments;return x.a.wrap((function(S){for(;;)switch(S.prev=S.next){case 0:return t=w.length>1&&void 0!==w[1]?w[1]:{},S.next=3,Object(m.select)("core/block-editor","__experimentalGetLastBlockAttributeChanges");case 3:if(!(n=S.sent)){S.next=36;break}r=new Set,i=new Set,c=0,a=Object.entries(n);case 8:if(!(c1)return!1;var n=t[0].name;if(n!==Object(l.getDefaultBlockName)()&&n!==Object(l.getFreeformContentHandlerName)())return!1}return!wn(e)}var pn=Object(h.createRegistrySelector)((function(e){return function(t){if(!ln(t))return!1;if(Un(t))return!1;var n=Qt(t),r=Xt(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(y.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!Kt(t)||["title","excerpt"].some((function(e){return E(c[e])!==nn(t,e)}))))}})),bn=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Qt(t),r=Xt(t),o=Object(y.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(y.mapValues)(Object(y.pick)(i,Y),E)}})),fn=Object(h.createRegistrySelector)((function(e){return function(t){U()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Qt(t),r=Xt(t),o=Object(y.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function hn(e){var t=nn(e,"date"),n=new Date(Number(Object(Ut.getDate)(t))-q);return Object(Ut.isInTheFuture)(n)}function mn(e){var t=nn(e,"date"),n=nn(e,"modified"),r=nn(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&t===n}var vn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return e("core").isSavingEntityRecord("postType",n,r)}})),On=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),gn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Qt(t),r=Xt(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function jn(e){return!!vn(e)&&!!Object(y.get)(e.saving,["options","isAutosave"])}function yn(e){return!!vn(e)&&!!e.saving.options.isPreview}function _n(e){if(!e.saving.pending&&!vn(e)){var t=rn(e,"preview_link");t||(t=nn(e,"link"))&&(t=Object(Ft.addQueryArgs)(t,{preview:!0}));var n=nn(e,"featured_media");return t&&n?Object(Ft.addQueryArgs)(t,{_thumbnail_id:n}):t}}function kn(e){var t,n=zn(e);switch(1===n.length&&(t=n[0].name),2===n.length&&"core/paragraph"===n[1].name&&(t=n[0].name),t){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":case"core-embed/youtube":case"core-embed/vimeo":return"video";case"core/audio":case"core-embed/spotify":case"core-embed/soundcloud":return"audio"}return null}function En(e){U()("`core/editor` getBlocksForSerialization selector",{plugin:"Gutenberg",alternative:"getEditorBlocks",hint:"Blocks serialization pre-processing occurs at save time"});var t=e.editor.present.blocks.value;return 1===t.length&&Object(l.isUnmodifiedDefaultBlock)(t[0])?[]:t}var wn=Object(h.createRegistrySelector)((function(e){return function(t){var n=Xt(t),r=Qt(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return ee(o.blocks);if(o.content)return o.content}return""}})),Sn=Object(Dt.a)((function(e,t){var n=e.reusableBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return Object(f.a)({},n,{id:r?t:+t,isTemporary:r})}),(function(e,t){return[e.reusableBlocks.data[t]]}));function Pn(e,t){return e.reusableBlocks.isSaving[t]||!1}function Cn(e,t){return!!e.reusableBlocks.isFetching[t]}var Tn=Object(Dt.a)((function(e){return Object(y.map)(e.reusableBlocks.data,(function(t,n){return Sn(e,n)}))}),(function(e){return[e.reusableBlocks.data]}));function xn(e,t){var n=Object(y.find)(e.optimist,(function(e){return e.beforeState&&Object(y.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function Bn(e){if(!vn(e))return!1;if(!an(e))return!1;var t=xn(e,W);return!!t&&!an(null,t.currentPost)}function In(e){var t=nn(e,"permalink_template");return G.test(t)}function An(e){var t=Ln(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return In(e)?n+r+o:n}function Ln(e){var t=nn(e,"permalink_template");if(!t)return null;var n=nn(e,"slug")||nn(e,"generated_slug"),r=t.split(G),o=Object(R.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Rn(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function Nn(e){return e.postLock.isLocked}function Dn(e){return Object.keys(e.postSavingLock).length>0}function Un(e){return Object.keys(e.postAutosavingLock).length>0}function Fn(e){return e.postLock.isTakeover}function Mn(e){return e.postLock.user}function Vn(e){return e.postLock.activePostLock}function Hn(e){return Object(y.has)(Yt(e),["_links","wp:action-unfiltered-html"])}function Wn(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:_.isPublishSidebarEnabled}function zn(e){return nn(e,"blocks")||Vt}function Kn(e){return e.isReady}function Gn(e){return e.editorSettings}function qn(e){return Object(h.createRegistrySelector)((function(t){return function(n){var r;U()("`wp.data.select( 'core/editor' )."+e+"`",{alternative:"`wp.data.select( 'core/block-editor' )."+e+"`"});for(var o=arguments.length,i=new Array(o>1?o-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentClientId,n=void 0===t?to:t,r=e.getInserterItems,o=void 0===r?no:r,i=e.getSelectedBlockName,c=void 0===i?ro:i;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){oo();var e=c();return o(n()).filter((function(t){return e!==t.name}))},getOptionKeywords:function(e){var t=e.title,n=e.keywords,r=void 0===n?[]:n;return[e.category].concat(Object(N.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(eo.createElement)(u.BlockIcon,{key:"icon",icon:t,showColors:!0}),n]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(l.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),co={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),A()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[Object(eo.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}),Object(eo.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),Object(eo.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},getOptionCompletion:function(e){return"@".concat(e.slug)}},ao=n(12),so=n(11),uo=n(13),lo=n(14),po=n(15),bo=n(8),fo=function(e){function t(){return Object(ao.a)(this,t),Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDirty,r=t.editsReference,o=t.isAutosaveable,i=t.isAutosaving;r!==e.editsReference&&(this.didAutosaveForEditsReference=!1),!i&&e.isAutosaving&&(this.didAutosaveForEditsReference=!0),e.isDirty===n&&e.isAutosaveable===o&&e.editsReference===r||this.toggleTimer(n&&o&&!this.didAutosaveForEditsReference)}},{key:"componentWillUnmount",value:function(){this.toggleTimer(!1)}},{key:"toggleTimer",value:function(e){var t=this,n=this.props,r=n.interval,o=n.shouldThrottle,i=void 0!==o&&o;!i&&this.pendingSave&&(clearTimeout(this.pendingSave),delete this.pendingSave),!e||i&&this.pendingSave||(this.pendingSave=setTimeout((function(){t.props.autosave(),delete t.pendingSave}),1e3*r))}},{key:"render",value:function(){return null}}]),t}(eo.Component),ho=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,a=r.getEditorSettings,s=t.interval,u=void 0===s?a().autosaveInterval:s;return{isDirty:o(),isAutosaveable:i(),editsReference:n(),isAutosaving:c(),interval:u}})),Object(h.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(fo),mo=n(16),vo=n.n(mo),Oo=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.path,i=void 0===o?[]:o,c=e.href,a=e.onSelect;return Object(eo.createElement)("li",{className:vo()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(eo.createElement)("a",{href:c,className:"document-outline__button",onClick:a},Object(eo.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),i.map((function(e,t){var n=e.clientId;return Object(eo.createElement)("strong",{key:t,className:"document-outline__level"},Object(eo.createElement)(u.BlockTitle,{clientId:n}))})),Object(eo.createElement)("strong",{className:"document-outline__level"},r),Object(eo.createElement)("span",{className:"document-outline__item-content"},t)))},go=Object(eo.createElement)("em",null,Object(L.__)("(Empty heading)")),jo=[Object(eo.createElement)("br",{key:"incorrect-break"}),Object(eo.createElement)("em",{key:"incorrect-message"},Object(L.__)("(Incorrect heading level)"))],yo=[Object(eo.createElement)("br",{key:"incorrect-break-h1"}),Object(eo.createElement)("em",{key:"incorrect-message-h1"},Object(L.__)("(Your theme may already use a H1 for the post title)"))],_o=[Object(eo.createElement)("br",{key:"incorrect-break-multiple-h1"}),Object(eo.createElement)("em",{key:"incorrect-message-multiple-h1"},Object(L.__)("(Multiple H1 headings are not recommended)"))],ko=function(e){return!e.attributes.content||0===e.attributes.content.length},Eo=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/block-editor").getBlocks,n=e("core/editor").getEditedPostAttribute,r=(0,e("core").getPostType)(n("type"));return{title:n("title"),blocks:t(),isTitleSupported:Object(y.get)(r,["supports","title"],!1)}})))((function(e){var t=e.blocks,n=void 0===t?[]:t,r=e.title,o=e.onSelect,i=e.isTitleSupported,c=e.hasOutlineItemsDisabled,a=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(y.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Object(f.a)({},t,{path:n,level:t.attributes.level,isEmpty:ko(t)}):e(t.innerBlocks,[].concat(Object(N.a)(n),[t]))}))}(n);if(a.length<1)return null;var s=1,u=document.querySelector(".editor-post-title__input"),l=i&&r&&u,d=Object(y.countBy)(a,"level")[1]>1;return Object(eo.createElement)("div",{className:"document-outline"},Object(eo.createElement)("ul",null,l&&Object(eo.createElement)(Oo,{level:Object(L.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(u.id),isDisabled:c},r),a.map((function(e,t){var n=e.level>s+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(d||l));return s=e.level,Object(eo.createElement)(Oo,{key:t,level:"H".concat(e.level),isValid:r,path:e.path,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?go:Object(p.getTextContent)(Object(p.create)({html:e.attributes.content})),n&&jo,1===e.level&&d&&_o,l&&1===e.level&&!d&&yo)}))))}));var wo=Object(h.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(y.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n})),So=n(5),Po=n(3),Co=n(19);var To=Object(bo.compose)([Object(h.withSelect)((function(e){return{isDirty:(0,e("core/editor").isEditedPostDirty)()}})),Object(h.withDispatch)((function(e,t,n){var r=n.select,o=e("core/editor").savePost;return{onSave:function(){(0,r("core/editor").isEditedPostDirty)()&&o()}}}))])((function(e){var t=e.onSave;return Object(eo.createElement)(Po.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(v.a)({},Co.rawShortcut.primary("s"),(function(e){e.preventDefault(),t()}))})})),xo=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).undoOrRedo=e.undoOrRedo.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"undoOrRedo",value:function(e){var t=this.props,n=t.onRedo,r=t.onUndo;e.shiftKey?n():r(),e.preventDefault()}},{key:"render",value:function(){var e;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(u.BlockEditorKeyboardShortcuts,null),Object(eo.createElement)(Po.KeyboardShortcuts,{shortcuts:(e={},Object(v.a)(e,Co.rawShortcut.primary("z"),this.undoOrRedo),Object(v.a)(e,Co.rawShortcut.primaryShift("z"),this.undoOrRedo),e)}),Object(eo.createElement)(To,null))}}]),t}(eo.Component),Bo=Object(h.withDispatch)((function(e){var t=e("core/editor");return{onRedo:t.redo,onUndo:t.undo}}))(xo),Io=Bo;function Ao(){return U()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(eo.createElement)(Bo,null)}function Lo(){return Object(eo.createElement)(To,null)}var Ro=Object(bo.compose)([Object(h.withSelect)((function(e){return{hasRedo:e("core/editor").hasEditorRedo()}})),Object(h.withDispatch)((function(e){return{redo:e("core/editor").redo}}))])((function(e){var t=e.hasRedo,n=e.redo;return Object(eo.createElement)(Po.IconButton,{icon:"redo",label:Object(L.__)("Redo"),shortcut:Co.displayShortcut.primaryShift("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__redo"})}));var No=Object(bo.compose)([Object(h.withSelect)((function(e){return{hasUndo:e("core/editor").hasEditorUndo()}})),Object(h.withDispatch)((function(e){return{undo:e("core/editor").undo}}))])((function(e){var t=e.hasUndo,n=e.undo;return Object(eo.createElement)(Po.IconButton,{icon:"undo",label:Object(L.__)("Undo"),shortcut:Co.displayShortcut.primary("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__undo"})})),Do=n(21);var Uo=Object(bo.compose)([Object(h.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(h.withDispatch)((function(e){var t=e("core/block-editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}}))])((function(e){var t=e.isValid,n=Object(Do.a)(e,["isValid"]);return t?null:Object(eo.createElement)(Po.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},Object(eo.createElement)("p",null,Object(L.__)("The content of your post doesn’t match the template assigned to your post type.")),Object(eo.createElement)("div",null,Object(eo.createElement)(Po.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(L.__)("Keep it as is")),Object(eo.createElement)(Po.Button,{onClick:function(){window.confirm(Object(L.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(L.__)("Reset the template"))))}));var Fo=Object(bo.compose)([Object(h.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(h.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(y.filter)(t,{isDismissible:!0,type:"default"}),o=Object(y.filter)(t,{isDismissible:!1,type:"default"}),i=Object(y.filter)(t,{type:"snackbar"});return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Po.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(eo.createElement)(Po.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(eo.createElement)(Uo,null)),Object(eo.createElement)(Po.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),Mo=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).reboot=e.reboot.bind(Object(So.a)(e)),e.getContent=e.getContent.bind(Object(So.a)(e)),e.state={error:null},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(h.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(eo.createElement)(u.Warning,{className:"editor-error-boundary",actions:[Object(eo.createElement)(Po.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(L.__)("Attempt Recovery")),Object(eo.createElement)(Po.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(L.__)("Copy Post Text")),Object(eo.createElement)(Po.ClipboardButton,{key:"copy-error",text:e.stack,isLarge:!0},Object(L.__)("Copy Error"))]},Object(L.__)("The editor has encountered an unexpected error.")):this.props.children}}]),t}(eo.Component),Vo=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,Ho=Object(y.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function Wo(){var e=Object(h.useSelect)((function(e){var t=e("core/editor").getCurrentPostId(),n=e("core/editor").getCurrentPostType(),r=e("core").getCurrentUser();return{postId:t,getEditedPostAttribute:e("core/editor").getEditedPostAttribute,remoteAutosave:e("core").getAutosave(n,t,r.id),hasFetchedAutosave:e("core").hasFetchedAutosaves(n,t)&&r.id}})),t=e.postId,n=e.getEditedPostAttribute,r=e.remoteAutosave,o=e.hasFetchedAutosave,i=Object(h.useDispatch)("core/notices"),c=i.createWarningNotice,a=i.removeNotice,s=Object(h.useDispatch)("core/editor"),u=s.editPost,d=s.resetEditorBlocks;Object(eo.useEffect)((function(){if(o){var e=function(e){return window.sessionStorage.getItem(te(e))}(t);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,s={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(s).some((function(e){return s[e]!==n(e)}))){if(!r){var p=Object(y.uniqueId)("wpEditorAutosaveRestore");c(Object(L.__)("The backup of this post in your browser is different from the version below."),{id:p,actions:[{label:Object(L.__)("Restore the backup"),onClick:function(){u(Object(y.omit)(s,["content"])),d(Object(l.parse)(s.content)),a(p)}}]})}}else ne(t)}}}),[t,o])}var zo=Object(bo.ifCondition)(Ho)((function(){var e,t,n,r,o,i,c,a=Object(h.useDispatch)("core/editor").__experimentalLocalAutosave,s=Object(eo.useCallback)((function(){Vo(a)}),[]);Wo(),e=Object(h.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),postType:e("core/editor").getCurrentPostType(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}})),t=e.postId,n=e.isDirty,r=e.isAutosaving,o=e.didError,i=Object(eo.useRef)(n),c=Object(eo.useRef)(r),Object(eo.useEffect)((function(){!c.current||r||o||ne(t),i.current=n,c.current=r}),[n,r,o]);var u=Object(h.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}})).localAutosaveInterval;return Object(eo.createElement)(ho,{interval:u,autosave:s,shouldThrottle:!0})}));var Ko=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(y.get)(n,["supports","page-attributes"],!1)&&Object(y.isEmpty)(t)?null:r}));var Go=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}}))((function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(y.some)(Object(y.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),qo=Object(bo.withState)({orderInput:null})((function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(eo.createElement)(Po.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(L.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(y.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Yo=Object(bo.compose)([Object(h.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(h.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(eo.createElement)(Go,{supportKeys:"page-attributes"},Object(eo.createElement)(qo,e))}));function Qo(e){var t=e.map((function(e){return Object(f.a)({children:[],parent:null},e)})),n=Object(y.groupBy)(t,"parent");if(n.null&&n.null.length)return t;return function e(t){return t.map((function(t){var r=n[t.id];return Object(f.a)({},t,{children:r&&r.length?e(r):[]})}))}(n[0]||[])}var Xo=Object(h.withSelect)((function(e){var t=e("core"),n=t.getPostType,r=t.getEntityRecords,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("type"),s=n(a),u=i(),l=Object(y.get)(s,["hierarchical"],!1),d={per_page:-1,exclude:u,parent_exclude:u,orderby:"menu_order",order:"asc"};return{parent:c("parent"),items:l?r("postType",a,d):[],postType:s}})),$o=Object(h.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateParent:function(e){t({parent:e||0})}}})),Zo=Object(bo.compose)([Xo,$o])((function(e){var t=e.parent,n=e.postType,r=e.items,o=e.onUpdateParent,i=Object(y.get)(n,["hierarchical"],!1),c=Object(y.get)(n,["labels","parent_item_colon"]),a=r||[];if(!i||!c||!a.length)return null;var s=Qo(a.map((function(e){return{id:e.id,parent:e.parent,name:e.title.raw?e.title.raw:"#".concat(e.id," (").concat(Object(L.__)("no title"),")")}})));return Object(eo.createElement)(Po.TreeSelect,{className:"editor-page-attributes__parent",label:c,noOptionLabel:"(".concat(Object(L.__)("no parent"),")"),tree:s,selectedId:t,onChange:o})}));var Jo=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(h.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}})))((function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.onUpdate;return Object(y.isEmpty)(t)?null:Object(eo.createElement)(Po.SelectControl,{label:Object(L.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(y.map)(t,(function(e,t){return{value:t,label:e}}))})})),ei=n(52);var ti=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(y.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getAuthors()}})),bo.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||n.length<2?null:Object(eo.createElement)(Go,{supportKeys:"author"},r)})),ni=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).setAuthorId=e.setAuthorId.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"setAuthorId",value:function(e){var t=this.props.onUpdateAuthor,n=e.target.value;t(Number(n))}},{key:"render",value:function(){var e=this.props,t=e.postAuthor,n=e.instanceId,r=e.authors,o="post-author-selector-"+n;return Object(eo.createElement)(ti,null,Object(eo.createElement)("label",{htmlFor:o},Object(L.__)("Author")),Object(eo.createElement)("select",{id:o,value:t,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map((function(e){return Object(eo.createElement)("option",{key:e.id,value:e.id},Object(ei.decodeEntities)(e.name))}))))}}]),t}(eo.Component),ri=Object(bo.compose)([Object(h.withSelect)((function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}})),Object(h.withDispatch)((function(e){return{onUpdateAuthor:function(t){e("core/editor").editPost({author:t})}}})),bo.withInstanceId])(ni);var oi=Object(bo.compose)([Object(h.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object(Do.a)(e,["commentStatus"]);return Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Allow Comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var ii=Object(bo.compose)([Object(h.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(h.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(eo.createElement)("div",{className:"editor-post-excerpt"},Object(eo.createElement)(Po.TextareaControl,{label:Object(L.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(eo.createElement)(Po.ExternalLink,{href:Object(L.__)("https://codex.wordpress.org/Excerpt")},Object(L.__)("Learn more about manual excerpts")))})),ci=n(18);var ai=function(e){return Object(eo.createElement)(Go,Object(ci.a)({},e,{supportKeys:"excerpt"}))};var si=Object(h.withSelect)((function(e){var t=e("core").getThemeSupports;return{postType:(0,e("core/editor").getEditedPostAttribute)("type"),themeSupports:t()}}))((function(e){var t=e.themeSupports,n=e.children,r=e.postType,o=e.supportKeys;return Object(y.some)(Object(y.castArray)(o),(function(e){var n=Object(y.get)(t,[e],!1);return"post-thumbnails"===e&&Object(y.isArray)(n)?Object(y.includes)(n,r):n}))?n:null}));var ui=function(e){return Object(eo.createElement)(si,{supportKeys:"post-thumbnails"},Object(eo.createElement)(Go,Object(ci.a)({},e,{supportKeys:"thumbnail"})))},li=["image"],di=Object(L.__)("Featured Image"),pi=Object(L.__)("Set Featured Image"),bi=Object(L.__)("Remove Image");var fi=Object(h.withSelect)((function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("featured_media");return{media:a?n(a):null,currentPostId:i(),postType:r(c("type")),featuredImageId:a}})),hi=Object(h.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateImage:function(e){t({featured_media:e.id})},onRemoveImage:function(){t({featured_media:0})}}})),mi=Object(bo.compose)(fi,hi,Object(Po.withFilters)("editor.PostFeaturedImage"))((function(e){var t,n,r,o=e.currentPostId,i=e.featuredImageId,c=e.onUpdateImage,a=e.onRemoveImage,s=e.media,l=e.postType,d=Object(y.get)(l,["labels"],{}),p=Object(eo.createElement)("p",null,Object(L.__)("To edit the featured image, you need permission to upload media."));if(s){var b=Object(Jr.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",s.id,o);Object(y.has)(s,["media_details","sizes",b])?(t=s.media_details.sizes[b].width,n=s.media_details.sizes[b].height,r=s.media_details.sizes[b].source_url):(t=s.media_details.width,n=s.media_details.height,r=s.source_url)}return Object(eo.createElement)(ui,null,Object(eo.createElement)("div",{className:"editor-post-featured-image"},Object(eo.createElement)(u.MediaUploadCheck,{fallback:p},Object(eo.createElement)(u.MediaUpload,{title:d.featured_image||di,onSelect:c,unstableFeaturedImageFlow:!0,allowedTypes:li,modalClass:"editor-post-featured-image__media-modal",render:function(e){var o=e.open;return Object(eo.createElement)(Po.Button,{className:i?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:o,"aria-label":i?Object(L.__)("Edit or update the image"):null},!!i&&s&&Object(eo.createElement)(Po.ResponsiveWrapper,{naturalWidth:t,naturalHeight:n},Object(eo.createElement)("img",{src:r,alt:""})),!!i&&!s&&Object(eo.createElement)(Po.Spinner,null),!i&&(d.set_featured_image||pi))},value:i})),!!i&&s&&!s.isLoading&&Object(eo.createElement)(u.MediaUploadCheck,null,Object(eo.createElement)(u.MediaUpload,{title:d.featured_image||di,onSelect:c,unstableFeaturedImageFlow:!0,allowedTypes:li,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(eo.createElement)(Po.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(L.__)("Replace Image"))}})),!!i&&Object(eo.createElement)(u.MediaUploadCheck,null,Object(eo.createElement)(Po.Button,{onClick:a,isLink:!0,isDestructive:!0},d.remove_featured_image||bi))))}));var vi=Object(h.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object(Do.a)(e,["disablePostFormats"]);return!t&&Object(eo.createElement)(Go,Object(ci.a)({},n,{supportKeys:"post-formats"}))})),Oi=[{id:"aside",caption:Object(L.__)("Aside")},{id:"gallery",caption:Object(L.__)("Gallery")},{id:"link",caption:Object(L.__)("Link")},{id:"image",caption:Object(L.__)("Image")},{id:"quote",caption:Object(L.__)("Quote")},{id:"standard",caption:Object(L.__)("Standard")},{id:"status",caption:Object(L.__)("Status")},{id:"video",caption:Object(L.__)("Video")},{id:"audio",caption:Object(L.__)("Audio")},{id:"chat",caption:Object(L.__)("Chat")}];var gi=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=n("format"),i=e("core").getThemeSupports();return{postFormat:o,supportedFormats:Object(y.union)([o],Object(y.get)(i,["formats"],[])),suggestedFormat:r()}})),Object(h.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),bo.withInstanceId])((function(e){var t=e.onUpdatePostFormat,n=e.postFormat,r=void 0===n?"standard":n,o=e.supportedFormats,i=e.suggestedFormat,c="post-format-selector-"+e.instanceId,a=Oi.filter((function(e){return Object(y.includes)(o,e.id)})),s=Object(y.find)(a,(function(e){return e.id===i}));return Object(eo.createElement)(vi,null,Object(eo.createElement)("div",{className:"editor-post-format"},Object(eo.createElement)("div",{className:"editor-post-format__content"},Object(eo.createElement)("label",{htmlFor:c},Object(L.__)("Post Format")),Object(eo.createElement)(Po.SelectControl,{value:r,onChange:function(e){return t(e)},id:c,options:a.map((function(e){return{label:e.caption,value:e.id}}))})),s&&s.id!==r&&Object(eo.createElement)("div",{className:"editor-post-format__suggestion"},Object(L.__)("Suggestion:")," ",Object(eo.createElement)(Po.Button,{isLink:!0,onClick:function(){return t(s.id)}},s.caption))))}));var ji=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount,r=e.children;return!t||n<2?null:Object(eo.createElement)(Go,{supportKeys:"revisions"},r)}));function yi(e,t){return Object(Ft.addQueryArgs)(e,t)}function _i(e){return e?Object(y.toLower)(Object(y.deburr)(Object(y.trim)(e.replace(/[\s\./_]+/g,"-"),"-"))):""}var ki=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount;return Object(eo.createElement)(ji,null,Object(eo.createElement)(Po.IconButton,{href:yi("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(L.sprintf)(Object(L._n)("%d Revision","%d Revisions",n),n)))}));var Ei=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).openPreviewWindow=e.openPreviewWindow.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props.previewLink;t&&!e.previewLink&&this.setPreviewWindowLink(t)}},{key:"setPreviewWindowLink",value:function(e){var t=this.previewWindow;t&&!t.closed&&(t.location=e)}},{key:"getWindowTarget",value:function(){var e=this.props.postId;return"wp-preview-".concat(e)}},{key:"openPreviewWindow",value:function(e){var t,n;(e.preventDefault(),this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable)?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),t=this.previewWindow.document,n=Object(eo.renderToString)(Object(eo.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(eo.createElement)(Po.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(eo.createElement)(Po.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),Object(eo.createElement)(Po.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})),Object(eo.createElement)("p",null,Object(L.__)("Generating preview…")))),n+='\n\t\t\n\t',n=Object(Jr.applyFilters)("editor.PostPreview.interstitialMarkup",n),t.write(n),t.title=Object(L.__)("Generating preview…"),t.close()):this.setPreviewWindowLink(e.target.href)}},{key:"render",value:function(){var e=this.props,t=e.previewLink,n=e.currentPostLink,r=e.isSaveable,o=t||n;return Object(eo.createElement)(Po.Button,{isLarge:!0,className:"editor-post-preview",href:o,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow},Object(L._x)("Preview","imperative verb"),Object(eo.createElement)("span",{className:"screen-reader-text"},Object(L.__)("(opens in a new tab)")),Object(eo.createElement)(d.DotTip,{tipId:"core/editor.preview"},Object(L.__)("Click “Preview” to load a preview of this page, so you can make sure you’re happy with your blocks.")))}}]),t}(eo.Component),wi=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.forcePreviewLink,r=t.forceIsAutosaveable,o=e("core/editor"),i=o.getCurrentPostId,c=o.getCurrentPostAttribute,a=o.getEditedPostAttribute,s=o.isEditedPostSaveable,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=e("core").getPostType,p=l(),b=d(a("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:s(),isAutosaveable:r||u(),isViewable:Object(y.get)(b,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}})),Object(h.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(bo.ifCondition)((function(e){return e.isViewable}))])(Ei),Si=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).sendPostLock=e.sendPostLock.bind(Object(So.a)(e)),e.receivePostLock=e.receivePostLock.bind(Object(So.a)(e)),e.releasePostLock=e.releasePostLock.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){var e=this.getHookName();Object(Jr.addAction)("heartbeat.send",e,this.sendPostLock),Object(Jr.addAction)("heartbeat.tick",e,this.receivePostLock)}},{key:"componentWillUnmount",value:function(){var e=this.getHookName();Object(Jr.removeAction)("heartbeat.send",e),Object(Jr.removeAction)("heartbeat.tick",e)}},{key:"getHookName",value:function(){return"core/editor/post-locked-modal-"+this.props.instanceId}},{key:"sendPostLock",value:function(e){var t=this.props,n=t.isLocked,r=t.activePostLock,o=t.postId;n||(e["wp-refresh-post-lock"]={lock:r,post_id:o})}},{key:"receivePostLock",value:function(e){if(e["wp-refresh-post-lock"]){var t=this.props,n=t.autosave,r=t.updatePostLock,o=e["wp-refresh-post-lock"];o.lock_error?(n(),r({isLocked:!0,isTakeover:!0,user:{avatar:o.lock_error.avatar_src}})):o.new_lock&&r({isLocked:!1,activePostLock:o.new_lock})}}},{key:"releasePostLock",value:function(){var e=this.props,t=e.isLocked,n=e.activePostLock,r=e.postLockUtils,o=e.postId;if(!t&&n){var i=new window.FormData;if(i.append("action","wp-remove-post-lock"),i.append("_wpnonce",r.unlockNonce),i.append("post_ID",o),i.append("active_post_lock",n),window.navigator.sendBeacon)window.navigator.sendBeacon(r.ajaxUrl,i);else{var c=new window.XMLHttpRequest;c.open("POST",r.ajaxUrl,!1),c.send(i)}}}},{key:"render",value:function(){var e=this.props,t=e.user,n=e.postId,r=e.isLocked,o=e.isTakeover,i=e.postLockUtils,c=e.postType;if(!r)return null;var a=t.name,s=t.avatar,u=Object(Ft.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),l=yi("edit.php",{post_type:Object(y.get)(c,["slug"])}),d=Object(L.__)("Exit the Editor");return Object(eo.createElement)(Po.Modal,{title:o?Object(L.__)("Someone else has taken over this post."):Object(L.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissable:!1,className:"editor-post-locked-modal"},!!s&&Object(eo.createElement)("img",{src:s,alt:Object(L.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(eo.createElement)("div",null,Object(eo.createElement)("div",null,a?Object(L.sprintf)(Object(L.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),a):Object(L.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(eo.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(eo.createElement)(Po.Button,{isPrimary:!0,isLarge:!0,href:l},d))),!o&&Object(eo.createElement)("div",null,Object(eo.createElement)("div",null,a?Object(L.sprintf)(Object(L.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),a):Object(L.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(eo.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(eo.createElement)(Po.Button,{isDefault:!0,isLarge:!0,href:l},d),Object(eo.createElement)(wi,null),Object(eo.createElement)(Po.Button,{isPrimary:!0,isLarge:!0,href:u},Object(L.__)("Take Over")))))}}]),t}(eo.Component),Pi=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isPostLocked,r=t.isPostLockTakeover,o=t.getPostLockUser,i=t.getCurrentPostId,c=t.getActivePostLock,a=t.getEditedPostAttribute,s=t.getEditorSettings,u=e("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:s().postLockUtils,activePostLock:c(),postType:u(a("type"))}})),Object(h.withDispatch)((function(e){var t=e("core/editor");return{autosave:t.autosave,updatePostLock:t.updatePostLock}})),bo.withInstanceId,Object(bo.withGlobalEvents)({beforeunload:"releasePostLock"}))(Si);var Ci=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(y.get)(o(),["_links","wp:action-publish"],!1),isPublished:n(),postType:r()}})))((function(e){var t=e.hasPublishAction,n=e.isPublished,r=e.children;return n||!t?null:r}));var Ti=Object(bo.compose)(Object(h.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(h.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(eo.createElement)(Ci,null,Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Pending Review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var xi=Object(bo.compose)([Object(h.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object(Do.a)(e,["pingStatus"]);return Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Allow Pingbacks & Trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var Bi=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,c=r.isSavingPost,a=r.isPublishingPost,s=r.getCurrentPost,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:a(),hasPublishAction:Object(y.get)(s(),["_links","wp:action-publish"],!1),postType:u(),isAutosaving:l()}}))])((function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction,c=e.isAutosaving;return o?Object(L.__)("Publishing…"):t&&r&&!c?Object(L.__)("Updating…"):n&&r&&!c?Object(L.__)("Scheduling…"):i?t?Object(L.__)("Update"):n?Object(L.__)("Schedule"):Object(L.__)("Publish"):Object(L.__)("Submit for Review")})),Ii=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).call(this,e))).buttonNode=Object(eo.createRef)(),n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"render",value:function(){var e,t=this.props,n=t.forceIsDirty,r=t.forceIsSaving,o=t.hasPublishAction,i=t.isBeingScheduled,c=t.isOpen,a=t.isPostSavingLocked,s=t.isPublishable,u=t.isPublished,l=t.isSaveable,p=t.isSaving,b=t.isToggle,f=t.onSave,h=t.onStatusChange,m=t.onSubmit,v=void 0===m?y.noop:m,O=t.onToggle,g=t.visibility,j=p||r||!l||a||!s&&!n,_=u||p||r||!l||!s&&!n;e=o?i?"future":"private"===g?"private":"publish":"pending";var k={"aria-disabled":j,className:"editor-post-publish-button",isBusy:p&&u,isPrimary:!0,onClick:function(){j||(v(),h(e),f())}},E={"aria-disabled":_,"aria-expanded":c,className:"editor-post-publish-panel__toggle",isBusy:p&&u,isPrimary:!0,onClick:function(){_||O()}},w=i?Object(L.__)("Schedule…"):Object(L.__)("Publish…"),S=Object(eo.createElement)(Bi,{forceIsSaving:r}),P=b?E:k,C=b?w:S;return Object(eo.createElement)("div",null,Object(eo.createElement)(Po.Button,Object(ci.a)({ref:this.buttonNode},P),C),Object(eo.createElement)(d.DotTip,{tipId:"core/editor.publish"},Object(L.__)("Finished writing? That’s great, let’s get this published right now. Just click “Publish” and you’re good to go.")))}}]),t}(eo.Component),Ai=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isEditedPostBeingScheduled,o=t.getEditedPostVisibility,i=t.isCurrentPostPublished,c=t.isEditedPostSaveable,a=t.isEditedPostPublishable,s=t.isPostSavingLocked,u=t.getCurrentPost,l=t.getCurrentPostType;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:c(),isPostSavingLocked:s(),isPublishable:a(),isPublished:i(),hasPublishAction:Object(y.get)(u(),["_links","wp:action-publish"],!1),postType:l()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e},{undoIgnore:!0})},onSave:t.savePost}}))])(Ii),Li=[{value:"public",label:Object(L.__)("Public"),info:Object(L.__)("Visible to everyone.")},{value:"private",label:Object(L.__)("Private"),info:Object(L.__)("Only visible to site admins and editors.")},{value:"password",label:Object(L.__)("Password Protected"),info:Object(L.__)("Protected with a password you choose. Only those with the password can view this post.")}],Ri=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).setPublic=n.setPublic.bind(Object(So.a)(n)),n.setPrivate=n.setPrivate.bind(Object(So.a)(n)),n.setPasswordProtected=n.setPasswordProtected.bind(Object(So.a)(n)),n.updatePassword=n.updatePassword.bind(Object(So.a)(n)),n.state={hasPassword:!!e.password},n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"setPublic",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r),this.setState({hasPassword:!1})}},{key:"setPrivate",value:function(){if(window.confirm(Object(L.__)("Would you like to privately publish this post now?"))){var e=this.props,t=e.onUpdateVisibility,n=e.onSave;t("private"),this.setState({hasPassword:!1}),n()}}},{key:"setPasswordProtected",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r,e.password||""),this.setState({hasPassword:!0})}},{key:"updatePassword",value:function(e){var t=this.props,n=t.status;(0,t.onUpdateVisibility)(n,e.target.value)}},{key:"render",value:function(){var e=this.props,t=e.visibility,n=e.password,r=e.instanceId,o={public:{onSelect:this.setPublic,checked:"public"===t&&!this.state.hasPassword},private:{onSelect:this.setPrivate,checked:"private"===t},password:{onSelect:this.setPasswordProtected,checked:this.state.hasPassword}};return[Object(eo.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(eo.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(L.__)("Post Visibility")),Li.map((function(e){var t=e.value,n=e.label,i=e.info;return Object(eo.createElement)("div",{key:t,className:"editor-post-visibility__choice"},Object(eo.createElement)("input",{type:"radio",name:"editor-post-visibility__setting-".concat(r),value:t,onChange:o[t].onSelect,checked:o[t].checked,id:"editor-post-".concat(t,"-").concat(r),"aria-describedby":"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-radio"}),Object(eo.createElement)("label",{htmlFor:"editor-post-".concat(t,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(eo.createElement)("p",{id:"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))}))),this.state.hasPassword&&Object(eo.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(eo.createElement)("label",{htmlFor:"editor-post-visibility__dialog-password-input-".concat(r),className:"screen-reader-text"},Object(L.__)("Create password")),Object(eo.createElement)("input",{className:"editor-post-visibility__dialog-password-input",id:"editor-post-visibility__dialog-password-input-".concat(r),type:"text",onChange:this.updatePassword,value:n,placeholder:Object(L.__)("Use a secure password")}))]}}]),t}(eo.Component),Ni=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.savePost,r=t.editPost;return{onSave:n,onUpdateVisibility:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";r({status:e,password:t})}}})),bo.withInstanceId])(Ri);var Di=Object(h.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(y.find)(Li,{value:t}).label}));var Ui=Object(bo.compose)([Object(h.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(h.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(Ut.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(eo.createElement)(Po.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:n,is12Hour:o})}));var Fi=Object(h.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}}))((function(e){var t=e.date,n=e.isFloating,r=Object(Ut.__experimentalGetSettings)();return t&&!n?Object(Ut.dateI18n)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(L.__)("Immediately")})),Mi={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},Vi=function(e,t){return e.toLowerCase()===t.toLowerCase()},Hi=function(e){return Object(f.a)({},e,{name:Object(y.unescape)(e.name)})},Wi=function(e){return Object(y.map)(e,Hi)},zi=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(So.a)(e)),e.searchTerms=Object(y.throttle)(e.searchTerms.bind(Object(So.a)(e)),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(Object(So.a)(e)),e.state={loading:!Object(y.isEmpty)(e.props.terms),availableTerms:[],selectedTerms:[]},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){var e=this;Object(y.isEmpty)(this.props.terms)||(this.initRequest=this.fetchTerms({include:this.props.terms.join(","),per_page:-1}),this.initRequest.then((function(){e.setState({loading:!1})}),(function(t){"abort"!==t.statusText&&e.setState({loading:!1})})))}},{key:"componentWillUnmount",value:function(){Object(y.invoke)(this.initRequest,["abort"]),Object(y.invoke)(this.searchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){e.terms!==this.props.terms&&this.updateSelectedTerms(this.props.terms)}},{key:"fetchTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Object(f.a)({},Mi,t),o=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Wi).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(y.find)(e.availableTerms,(function(e){return e.id===t.id}))})))}})),e.updateSelectedTerms(e.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce((function(t,n){var r=Object(y.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(y.escape)(e);return A()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(n.rest_base),Object(f.a)({},Mi,{search:r}))}).then(Wi),t.addRequest.then((function(t){return Object(y.find)(t,(function(t){return Vi(t.name,e)}))}))):Promise.reject(o)})).then(Hi)}},{key:"onChange",value:function(e){var t=this,n=Object(y.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(y.find)(t.state.availableTerms,(function(t){return Vi(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(y.find)(t,(function(t){return Vi(t.name,e)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(y.invoke)(this.searchRequest,["abort"]),this.searchRequest=this.fetchTerms({search:e})}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,a=i.map((function(e){return e.name})),s=Object(y.get)(n,["labels","add_new_item"],"post_tag"===t?Object(L.__)("Add New Tag"):Object(L.__)("Add New Term")),u=Object(y.get)(n,["labels","singular_name"],"post_tag"===t?Object(L.__)("Tag"):Object(L.__)("Term")),l=Object(L.sprintf)(Object(L._x)("%s added","term"),u),d=Object(L.sprintf)(Object(L._x)("%s removed","term"),u),p=Object(L.sprintf)(Object(L._x)("Remove %s","term"),u);return Object(eo.createElement)(Po.FormTokenField,{value:c,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:l,removed:d,remove:p}})}}]),t}(eo.Component),Ki=Object(bo.compose)(Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(y.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(y.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(v.a)({},n,t))}}})),Object(Po.withFilters)("editor.PostTaxonomyType"))(zi),Gi=function(){var e=[Object(L.__)("Suggestion:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(L.__)("Add tags"))];return Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:e},Object(eo.createElement)("p",null,Object(L.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(eo.createElement)(Ki,{slug:"post_tag"}))},qi=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).call(this,e))).state={hadTagsWhenOpeningThePanel:e.hasTags},n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(eo.createElement)(Gi,null)}}]),t}(eo.Component),Yi=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(y.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(bo.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(qi),Qi=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(eo.createElement)(Po.Button,{isLink:!0,onClick:function(){return r(t)}},n)},Xi=function(e,t){var n=Oi.filter((function(t){return Object(y.includes)(e,t.id)}));return Object(y.find)(n,(function(e){return e.id===t}))},$i=Object(bo.compose)(Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(y.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Xi(o,r())}})),Object(h.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),Object(bo.ifCondition)((function(e){var t=e.suggestion,n=e.currentPostFormat;return t&&t.id!==n})))((function(e){var t=e.suggestion,n=e.onUpdatePostFormat,r=[Object(L.__)("Suggestion:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(L.__)("Use a post format"))];return Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:r},Object(eo.createElement)("p",null,Object(L.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(eo.createElement)("p",null,Object(eo.createElement)(Qi,{onUpdatePostFormat:n,suggestedPostFormat:t.id,suggestionText:Object(L.sprintf)(Object(L.__)('Apply the "%1$s" format.'),t.caption)})))}));var Zi=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(y.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(L.__)("Are you ready to schedule?"),n=Object(L.__)("Your work will be published at the specified date and time.")):(t=Object(L.__)("Are you ready to publish?"),n=Object(L.__)("Double-check your settings before publishing.")):(t=Object(L.__)("Are you ready to submit for review?"),n=Object(L.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(eo.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(eo.createElement)("div",null,Object(eo.createElement)("strong",null,t)),Object(eo.createElement)("p",null,n),r&&Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:[Object(L.__)("Visibility:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(eo.createElement)(Di,null))]},Object(eo.createElement)(Ni,null)),Object(eo.createElement)(Po.PanelBody,{initialOpen:!1,title:[Object(L.__)("Publish:"),Object(eo.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(eo.createElement)(Fi,null))]},Object(eo.createElement)(Ui,null))),Object(eo.createElement)($i,null),Object(eo.createElement)(Yi,null),i)})),Ji=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(So.a)(e)),e.onSelectInput=e.onSelectInput.bind(Object(So.a)(e)),e.postLink=Object(eo.createRef)(),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){e.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(y.get)(o,["labels","singular_name"]),c=Object(y.get)(o,["labels","view_item"]),a=n?Object(eo.createElement)(eo.Fragment,null,Object(L.__)("is now scheduled. It will go live on")," ",Object(eo.createElement)(Fi,null),"."):Object(L.__)("is now live.");return Object(eo.createElement)("div",{className:"post-publish-panel__postpublish"},Object(eo.createElement)(Po.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(eo.createElement)("a",{ref:this.postLink,href:r.link},r.title||Object(L.__)("(no title)"))," ",a),Object(eo.createElement)(Po.PanelBody,null,Object(eo.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(eo.createElement)("strong",null,Object(L.__)("What’s next?"))),Object(eo.createElement)(Po.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(L.sprintf)(Object(L.__)("%s address"),i),value:Object(Ft.safeDecodeURIComponent)(r.link),onFocus:this.onSelectInput}),Object(eo.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(eo.createElement)(Po.Button,{isDefault:!0,href:r.link},c),Object(eo.createElement)(Po.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(L.__)("Copied!"):Object(L.__)("Copy Link")))),t)}}]),t}(eo.Component),ec=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))(Ji),tc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onSubmit=e.onSubmit.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,a=e.isSaving,s=e.onClose,u=e.onTogglePublishSidebar,l=e.PostPublishExtension,d=e.PrePublishExtension,p=Object(Do.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(y.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!a,m=f&&!a;return Object(eo.createElement)("div",Object(ci.a)({className:"editor-post-publish-panel"},b),Object(eo.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(eo.createElement)("div",{className:"editor-post-publish-panel__header-published"},c?Object(L.__)("Scheduled"):Object(L.__)("Published")):Object(eo.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(eo.createElement)(Ai,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n}),Object(eo.createElement)("span",{className:"editor-post-publish-panel__spacer"})),Object(eo.createElement)(Po.IconButton,{"aria-expanded":!0,onClick:s,icon:"no-alt",label:Object(L.__)("Close panel")})),Object(eo.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(eo.createElement)(Zi,null,d&&Object(eo.createElement)(d,null)),m&&Object(eo.createElement)(ec,{focusOnMount:!0},l&&Object(eo.createElement)(l,null)),a&&Object(eo.createElement)(Po.Spinner,null)),Object(eo.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),t}(eo.Component),nc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,s=n.isEditedPostDirty,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(y.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(y.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(h.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),Po.withFocusReturn,Po.withConstrainedTabbing])(tc);var rc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}})),Object(b.withViewportMatch)({isMobileViewport:"< small"})])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=e.isMobileViewport;return n||r?Object(eo.createElement)(Po.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(L.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(L.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(L.__)("Draft"):Object(L.__)("Switch to Draft")):null})),oc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={forceSavedMessage:!1},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this;e.isSaving&&!this.props.isSaving&&(this.setState({forceSavedMessage:!0}),this.props.setTimeout((function(){t.setState({forceSavedMessage:!1})}),1e3))}},{key:"render",value:function(){var e=this.props,t=e.post,n=e.isNew,r=e.isScheduled,o=e.isPublished,i=e.isDirty,c=e.isSaving,a=e.isSaveable,s=e.onSave,u=e.isAutosaving,l=e.isPending,d=e.isLargeViewport,p=this.state.forceSavedMessage;if(c){var b=vo()("editor-post-saved-state","is-saving",{"is-autosaving":u});return Object(eo.createElement)(Po.Animate,{type:"loading"},(function(e){var t=e.className;return Object(eo.createElement)("span",{className:vo()(b,t)},Object(eo.createElement)(Po.Dashicon,{icon:"cloud"}),u?Object(L.__)("Autosaving"):Object(L.__)("Saving"))}))}if(o||r)return Object(eo.createElement)(rc,null);if(!a)return null;if(p||!n&&!i)return Object(eo.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(eo.createElement)(Po.Dashicon,{icon:"saved"}),Object(L.__)("Saved"));if(!Object(y.get)(t,["_links","wp:action-publish"],!1)&&l)return null;var f=l?Object(L.__)("Save as Pending"):Object(L.__)("Save Draft");return d?Object(eo.createElement)(Po.Button,{className:"editor-post-save-draft",onClick:function(){return s()},shortcut:Co.displayShortcut.primary("s"),isTertiary:!0},f):Object(eo.createElement)(Po.IconButton,{className:"editor-post-save-draft",label:f,onClick:function(){return s()},shortcut:Co.displayShortcut.primary("s"),icon:"cloud-upload"})}}]),t}(eo.Component),ic=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.forceIsDirty,r=t.forceIsSaving,o=e("core/editor"),i=o.isEditedPostNew,c=o.isCurrentPostPublished,a=o.isCurrentPostScheduled,s=o.isEditedPostDirty,u=o.isSavingPost,l=o.isEditedPostSaveable,d=o.getCurrentPost,p=o.isAutosavingPost,b=o.getEditedPostAttribute;return{post:d(),isNew:i(),isPublished:c(),isScheduled:a(),isDirty:n||s(),isSaving:r||u(),isSaveable:l(),isAutosaving:p(),isPending:"pending"===b("status")}})),Object(h.withDispatch)((function(e){return{onSave:e("core/editor").savePost}})),bo.withSafeTimeout,Object(b.withViewportMatch)({isLargeViewport:"small"})])(oc);var cc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(y.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));var ac=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(y.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}}))])((function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null}));var sc=Object(bo.compose)([Object(h.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(h.withDispatch)((function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}))])((function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(eo.createElement)(ac,null,Object(eo.createElement)(Po.CheckboxControl,{label:Object(L.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))})),uc={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},lc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).findTerm=e.findTerm.bind(Object(So.a)(e)),e.onChange=e.onChange.bind(Object(So.a)(e)),e.onChangeFormName=e.onChangeFormName.bind(Object(So.a)(e)),e.onChangeFormParent=e.onChangeFormParent.bind(Object(So.a)(e)),e.onAddTerm=e.onAddTerm.bind(Object(So.a)(e)),e.onToggleForm=e.onToggleForm.bind(Object(So.a)(e)),e.setFilterValue=e.setFilterValue.bind(Object(So.a)(e)),e.sortBySelected=e.sortBySelected.bind(Object(So.a)(e)),e.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1,filterValue:"",filteredTermsTree:[]},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"onChange",value:function(e){var t=this.props,n=t.onUpdateTerms,r=t.terms,o=void 0===r?[]:r,i=t.taxonomy;n(-1!==o.indexOf(e)?Object(y.without)(o,e):[].concat(Object(N.a)(o),[e]),i.rest_base)}},{key:"onChangeFormName",value:function(e){var t=""===e.target.value.trim()?"":e.target.value;this.setState({formName:t})}},{key:"onChangeFormParent",value:function(e){this.setState({formParent:e})}},{key:"onToggleForm",value:function(){this.setState((function(e){return{showForm:!e.showForm}}))}},{key:"findTerm",value:function(e,t,n){return Object(y.find)(e,(function(e){return(!e.parent&&!t||parseInt(e.parent)===parseInt(t))&&e.name.toLowerCase()===n.toLowerCase()}))}},{key:"onAddTerm",value:function(e){var t=this;e.preventDefault();var n=this.props,r=n.onUpdateTerms,o=n.taxonomy,i=n.terms,c=n.slug,a=this.state,s=a.formName,u=a.formParent,l=a.adding,d=a.availableTerms;if(""!==s&&!l){var p=this.findTerm(d,u,s);if(p)return Object(y.some)(i,(function(e){return e===p.id}))||r([].concat(Object(N.a)(i),[p.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=A()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:s,parent:u||void 0}}),this.addRequest.catch((function(e){return"term_exists"===e.code?(t.addRequest=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(o.rest_base),Object(f.a)({},uc,{parent:u||0,search:s}))}),t.addRequest.then((function(e){return t.findTerm(e,u,s)}))):Promise.reject(e)})).then((function(e){var n=!!Object(y.find)(t.state.availableTerms,(function(t){return t.id===e.id}))?t.state.availableTerms:[e].concat(Object(N.a)(t.state.availableTerms)),a=Object(L.sprintf)(Object(L._x)("%s added","term"),Object(y.get)(t.props.taxonomy,["labels","singular_name"],"category"===c?Object(L.__)("Category"):Object(L.__)("Term")));t.props.speak(a,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:t.sortBySelected(Qo(n))}),r([].concat(Object(N.a)(i),[e.id]),o.rest_base)}),(function(e){"abort"!==e.statusText&&(t.addRequest=null,t.setState({adding:!1}))}))}}},{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(y.invoke)(this.fetchRequest,["abort"]),Object(y.invoke)(this.addRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){this.props.taxonomy!==e.taxonomy&&this.fetchTerms()}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=A()({path:Object(Ft.addQueryArgs)("/wp/v2/".concat(t.rest_base),uc)}),this.fetchRequest.then((function(t){var n=e.sortBySelected(Qo(t));e.fetchRequest=null,e.setState({loading:!1,availableTermsTree:n,availableTerms:t})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"sortBySelected",value:function(e){var t=this.props.terms,n=function e(n){return-1!==t.indexOf(n.id)||void 0!==n.children&&!!(n.children.map(e).filter((function(e){return e})).length>0)};return e.sort((function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0})),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter((function(e){return e}));this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter((function(e){return e}))),(-1!==r.name.toLowerCase().indexOf(e.toLowerCase())||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map((function(e){return Object(eo.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(eo.createElement)(Po.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(y.unescape)(e.name)}),!!e.children.length&&Object(eo.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,a=i.availableTerms,s=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(y.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(L.__)("Add new category"),Object(L.__)("Add new term")),m=f("new_item_name",Object(L.__)("Add new category"),Object(L.__)("Add new term")),v=f("parent_item",Object(L.__)("Parent Category"),Object(L.__)("Parent Term")),O="— ".concat(v," —"),g=h,j="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),k=Object(y.get)(this.props.taxonomy,["labels","search_items"],Object(L.__)("Search Terms")),E=Object(y.get)(this.props.taxonomy,["name"],Object(L.__)("Terms")),w=a.length>=8;return[w&&Object(eo.createElement)("label",{key:"filter-label",htmlFor:_},k),w&&Object(eo.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(eo.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":E},this.renderTerms(""!==b?s:c)),!d&&o&&Object(eo.createElement)(Po.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(eo.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(eo.createElement)("label",{htmlFor:j,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(eo.createElement)("input",{type:"text",id:j,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(eo.createElement)(Po.TreeSelect,{label:v,noOptionLabel:O,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(eo.createElement)(Po.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},g))]}}]),t}(eo.Component),dc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(y.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(y.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(h.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(v.a)({},n,t))}}})),Po.withSpokenMessages,bo.withInstanceId,Object(Po.withFilters)("editor.PostTaxonomyType")])(lc);var pc=Object(bo.compose)([Object(h.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?y.identity:r,i=Object(y.filter)(n,(function(e){return Object(y.includes)(e.types,t)}));return Object(y.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?dc:Ki;return Object(eo.createElement)(eo.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(eo.createElement)(t,{slug:e.slug}),e))}))}));var bc=Object(bo.compose)([Object(h.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(y.some)(n,(function(e){return Object(y.includes)(e.types,t)}))?r:null})),fc=n(59),hc=n.n(fc),mc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).edit=e.edit.bind(Object(So.a)(e)),e.stopEditing=e.stopEditing.bind(Object(So.a)(e)),e.state={},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"edit",value:function(e){var t=e.target.value;this.props.onChange(t),this.setState({value:t,isDirty:!0})}},{key:"stopEditing",value:function(){this.state.isDirty&&(this.props.onPersist(this.state.value),this.setState({isDirty:!1}))}},{key:"render",value:function(){var e=this.state.value,t=this.props.instanceId;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("label",{htmlFor:"post-content-".concat(t),className:"screen-reader-text"},Object(L.__)("Type text or HTML")),Object(eo.createElement)(hc.a,{autoComplete:"off",dir:"auto",value:e,onChange:this.edit,onBlur:this.stopEditing,className:"editor-post-text-editor",id:"post-content-".concat(t),placeholder:Object(L.__)("Start writing with text or HTML")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.isDirty?null:{value:e.value,isDirty:!1}}}]),t}(eo.Component),vc=Object(bo.compose)([Object(h.withSelect)((function(e){return{value:(0,e("core/editor").getEditedPostContent)()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.resetEditorBlocks;return{onChange:function(e){n({content:e})},onPersist:function(e){var t=Object(l.parse)(e);r(t)}}})),bo.withInstanceId])(mc),Oc=function(e){function t(e){var n,r=e.permalinkParts,o=e.slug;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={editedPostName:o||r.postName},n.onSavePermalink=n.onSavePermalink.bind(Object(So.a)(n)),n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"onSavePermalink",value:function(e){var t=_i(this.state.editedPostName);e.preventDefault(),this.props.onSave(),t!==this.props.postName&&(this.props.editPost({slug:t}),this.setState({editedPostName:t}))}},{key:"render",value:function(){var e=this,t=this.props.permalinkParts,n=t.prefix,r=t.suffix,o=this.state.editedPostName;return Object(eo.createElement)("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},Object(eo.createElement)("span",{className:"editor-post-permalink__editor-container"},Object(eo.createElement)("span",{className:"editor-post-permalink-editor__prefix"},n),Object(eo.createElement)("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(L.__)("Edit post permalink"),value:o,onChange:function(t){return e.setState({editedPostName:t.target.value})},type:"text",autoFocus:!0}),Object(eo.createElement)("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),Object(eo.createElement)(Po.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(L.__)("Save")))}}]),t}(eo.Component),gc=Object(bo.compose)([Object(h.withSelect)((function(e){return{permalinkParts:(0,e("core/editor").getPermalinkParts)()}})),Object(h.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])(Oc),jc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).addVisibilityCheck=e.addVisibilityCheck.bind(Object(So.a)(e)),e.onVisibilityChange=e.onVisibilityChange.bind(Object(So.a)(e)),e.state={isCopied:!1,isEditingPermalink:!1},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"addVisibilityCheck",value:function(){window.addEventListener("visibilitychange",this.onVisibilityChange)}},{key:"onVisibilityChange",value:function(){var e=this.props,t=e.isEditable,n=e.refreshPost;t||"visible"!==document.visibilityState||n()}},{key:"componentDidUpdate",value:function(e,t){t.isEditingPermalink&&!this.state.isEditingPermalink&&this.linkElement.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("visibilitychange",this.addVisibilityCheck)}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.isNew,o=t.isPublished,i=t.isViewable,c=t.permalinkParts,a=t.postLink,s=t.postSlug,u=t.postID,l=t.postTitle;if(r||!i||!c||!a)return null;var d=this.state,p=d.isCopied,b=d.isEditingPermalink,f=p?Object(L.__)("Permalink copied"):Object(L.__)("Copy the permalink"),h=c.prefix,m=c.suffix,v=Object(Ft.safeDecodeURIComponent)(s)||_i(l)||u,O=n?h+v+m:h;return Object(eo.createElement)("div",{className:"editor-post-permalink"},Object(eo.createElement)(Po.ClipboardButton,{className:vo()("editor-post-permalink__copy",{"is-copied":p}),text:O,label:f,onCopy:function(){return e.setState({isCopied:!0})},"aria-disabled":p,icon:"admin-links"}),Object(eo.createElement)("span",{className:"editor-post-permalink__label"},Object(L.__)("Permalink:")),!b&&Object(eo.createElement)(Po.ExternalLink,{className:"editor-post-permalink__link",href:o?O:a,target:"_blank",ref:function(t){return e.linkElement=t}},Object(Ft.safeDecodeURI)(O),"‎"),b&&Object(eo.createElement)(gc,{slug:v,onSave:function(){return e.setState({isEditingPermalink:!1})}}),n&&!b&&Object(eo.createElement)(Po.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return e.setState({isEditingPermalink:!0})}},Object(L.__)("Edit")))}}]),t}(eo.Component),yc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.isPermalinkEditable,o=t.getCurrentPost,i=t.getPermalinkParts,c=t.getEditedPostAttribute,a=t.isCurrentPostPublished,s=e("core").getPostType,u=o(),l=u.id,d=u.link,p=s(c("type"));return{isNew:n(),postLink:d,permalinkParts:i(),postSlug:c("slug"),isEditable:r(),isPublished:a(),postTitle:c("title"),postID:l,isViewable:Object(y.get)(p,["viewable"],!1)}})),Object(h.withDispatch)((function(e){return{refreshPost:e("core/editor").refreshPost}}))])(jc),_c=/[\r\n]+/g,kc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(So.a)(e)),e.onSelect=e.onSelect.bind(Object(So.a)(e)),e.onUnselect=e.onUnselect.bind(Object(So.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(So.a)(e)),e.redirectHistory=e.redirectHistory.bind(Object(So.a)(e)),e.state={isSelected:!1},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"handleFocusOutside",value:function(){this.onUnselect()}},{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(e){var t=e.target.value.replace(_c," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===Co.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"redirectHistory",value:function(e){e.shiftKey?this.props.onRedo():this.props.onUndo(),e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.isPostTypeViewable,i=e.instanceId,c=e.placeholder,a=e.title,s=this.state.isSelected,u=vo()("wp-block editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),l=Object(ei.decodeEntities)(c);return Object(eo.createElement)(Go,{supportKeys:"title"},Object(eo.createElement)("div",{className:"editor-post-title"},Object(eo.createElement)("div",{className:u},Object(eo.createElement)(Po.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},Object(eo.createElement)("label",{htmlFor:"post-title-".concat(i),className:"screen-reader-text"},l||Object(L.__)("Add title")),Object(eo.createElement)(hc.a,{id:"post-title-".concat(i),className:"editor-post-title__input",value:a,onChange:this.onChange,placeholder:l||Object(L.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,autoFocus:document.body===document.activeElement&&n})),s&&o&&Object(eo.createElement)(yc,null))))}}]),t}(eo.Component),Ec=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=e("core/block-editor").getSettings,i=(0,e("core").getPostType)(n("type")),c=o(),a=c.titlePlaceholder,s=c.focusMode,u=c.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),isPostTypeViewable:Object(y.get)(i,["viewable"],!1),placeholder:a,isFocusMode:s,hasFixedToolbar:u}})),wc=Object(h.withDispatch)((function(e){var t=e("core/block-editor"),n=t.insertDefaultBlock,r=t.clearSelectedBlock,o=e("core/editor"),i=o.editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onUpdate:function(e){i({title:e})},onUndo:o.undo,onRedo:o.redo,clearSelectedBlock:r}})),Sc=Object(bo.compose)(Ec,wc,bo.withInstanceId,Po.withFocusOutside)(kc);var Pc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(h.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(Do.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(eo.createElement)(Po.Button,{className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)},isDefault:!0,isLarge:!0},Object(L.__)("Move to Trash"))}));var Cc=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId;return{isNew:n(),postId:r()}}))((function(e){var t=e.isNew,n=e.postId,r=e.children;return t||!n?null:r}));var Tc=Object(bo.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(y.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),xc=n(93);var Bc=Object(h.withSelect)((function(e){return{content:e("core/editor").getEditedPostAttribute("content")}}))((function(e){var t=e.content,n=Object(L._x)("words","Word count type. Do not translate!");return Object(eo.createElement)("span",{className:"word-count"},Object(xc.count)(t,n))}));var Ic=Object(h.withSelect)((function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}))((function(e){var t=e.headingCount,n=e.paragraphCount,r=e.numberOfBlocks,o=e.hasOutlineItemsDisabled,i=e.onRequestClose;return(Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(L.__)("Document Statistics"),tabIndex:"0"},Object(eo.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Words"),Object(eo.createElement)(Bc,null)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Headings"),Object(eo.createElement)("span",{className:"table-of-contents__number"},t)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Paragraphs"),Object(eo.createElement)("span",{className:"table-of-contents__number"},n)),Object(eo.createElement)("li",{className:"table-of-contents__count"},Object(L.__)("Blocks"),Object(eo.createElement)("span",{className:"table-of-contents__number"},r)))),t>0&&Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("hr",null),Object(eo.createElement)("h2",{className:"table-of-contents__title"},Object(L.__)("Document Outline")),Object(eo.createElement)(Eo,{onSelect:i,hasOutlineItemsDisabled:o}))))}));var Ac=Object(h.withSelect)((function(e){return{hasBlocks:!!e("core/block-editor").getBlockCount()}}))((function(e){var t=e.hasBlocks,n=e.hasOutlineItemsDisabled;return Object(eo.createElement)(Po.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(eo.createElement)(Po.IconButton,{onClick:t?r:void 0,icon:"info-outline","aria-expanded":n,label:Object(L.__)("Content structure"),labelPosition:"bottom","aria-disabled":!t})},renderContent:function(e){var t=e.onClose;return Object(eo.createElement)(Ic,{onRequestClose:t,hasOutlineItemsDisabled:n})}})})),Lc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).warnIfUnsavedChanges=e.warnIfUnsavedChanges.bind(Object(So.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"warnIfUnsavedChanges",value:function(e){if(this.props.isDirty)return e.returnValue=Object(L.__)("You have unsaved changes. If you proceed, they will be lost."),e.returnValue}},{key:"render",value:function(){return null}}]),t}(eo.Component),Rc=Object(h.withSelect)((function(e){return{isDirty:e("core/editor").isEditedPostDirty()}}))(Lc),Nc=Object(bo.createHigherOrderComponent)((function(e){return Object(h.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(Do.a)(t,["useSubRegistry","registry"]);if(!r)return Object(eo.createElement)(e,i);var c=Object(eo.useState)(null),a=Object(R.a)(c,2),s=a[0],l=a[1];return Object(eo.useEffect)((function(){var e=Object(h.createRegistry)({"core/block-editor":u.storeConfig},o),t=e.registerStore("core/editor",$r);Xr(t),l(e)}),[o]),s?Object(eo.createElement)(h.RegistryProvider,{value:s},Object(eo.createElement)(e,i)):null}))}),"withRegistryProvider"),Dc=n(95),Uc=function(e){var t=e.additionalData,n=void 0===t?{}:t,r=e.allowedTypes,o=e.filesList,i=e.maxUploadFileSize,c=e.onError,a=void 0===c?y.noop:c,s=e.onFileChange,u=Object(h.select)("core/editor"),l=u.getCurrentPostId,d=u.getEditorSettings,p=d().allowedMimeTypes;i=i||d().maxUploadFileSize,Object(Dc.uploadMedia)({allowedTypes:r,filesList:o,onFileChange:s,additionalData:Object(f.a)({post:l()},n),maxUploadFileSize:i,onError:function(e){var t=e.message;return a(t)},wpAllowedMimeTypes:p})};var Fc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.canInsertBlockType,c=e("core/editor").__experimentalGetReusableBlock,a=e("core").canUser,s=o(n),u=1===s.length&&s[0]&&Object(l.isReusableBlock)(s[0])&&!!c(s[0].attributes.ref);return{isReusable:u,isVisible:u||i("core/block")&&Object(y.every)(s,(function(e){return!!e&&e.isValid&&Object(l.hasBlockSupport)(e.name,"reusable",!0)}))&&!!a("create","blocks")}})),Object(h.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?y.noop:r,i=e("core/editor"),c=i.__experimentalConvertBlockToReusable,a=i.__experimentalConvertBlockToStatic;return{onConvertToStatic:function(){1===n.length&&(a(n[0]),o())},onConvertToReusable:function(){c(n),o()}}}))])((function(e){var t=e.isVisible,n=e.isReusable,r=e.onConvertToStatic,o=e.onConvertToReusable;return t?Object(eo.createElement)(eo.Fragment,null,!n&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:o},Object(L.__)("Add to Reusable Blocks")),n&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:r},Object(L.__)("Convert to Regular Block"))):null}));var Mc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core").canUser,i=e("core/editor").__experimentalGetReusableBlock,c=r(n),a=c&&Object(l.isReusableBlock)(c)?i(c.attributes.ref):null;return{isVisible:!!a&&!!o("delete","blocks",a.id),isDisabled:a&&a.isTemporary}})),Object(h.withDispatch)((function(e,t,n){var r=t.clientId,o=t.onToggle,i=void 0===o?y.noop:o,c=n.select,a=e("core/editor").__experimentalDeleteReusableBlock,s=c("core/block-editor").getBlock;return{onDelete:function(){if(window.confirm(Object(L.__)("Are you sure you want to delete this Reusable Block?\n\nIt will be permanently removed from all posts and pages that use it."))){var e=s(r);a(e.attributes.ref),i()}}}}))])((function(e){var t=e.isVisible,n=e.isDisabled,r=e.onDelete;return t?Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"no",disabled:n,onClick:function(){return r()}},Object(L.__)("Remove from Reusable Blocks")):null}));var Vc=Object(h.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds;return Object(eo.createElement)(u.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var n=e.onClose;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Fc,{clientIds:t,onToggle:n}),1===t.length&&Object(eo.createElement)(Mc,{clientId:t[0],onToggle:n}))}))})),Hc=Object(eo.createElement)(Po.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8 5a1 1 0 0 0-1 1v3H6a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-3h1a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H8zm3 6H7v2h4v-2zM9 9V7h4v2H9z"}),Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M1 3a2 2 0 0 0 1 1.732v10.536A2 2 0 1 0 4.732 18h10.536A2 2 0 1 0 18 15.268V4.732A2 2 0 1 0 15.268 2H4.732A2 2 0 0 0 1 3zm14.268 1H4.732A2.01 2.01 0 0 1 4 4.732v10.536c.304.175.557.428.732.732h10.536a2.01 2.01 0 0 1 .732-.732V4.732A2.01 2.01 0 0 1 15.268 4z"})),Wc=Object(eo.createElement)(Po.Icon,{icon:Hc}),zc=Object(eo.createElement)(Po.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2H15C16.1 2 17 2.9 17 4V7C17 8.1 16.1 9 15 9H9C7.9 9 7 8.1 7 7V4C7 2.9 7.9 2 9 2ZM9 7H15V4H9V7Z"}),Object(eo.createElement)(Po.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H11C12.1 11 13 11.9 13 13V16C13 17.1 12.1 18 11 18H5C3.9 18 3 17.1 3 16V13C3 11.9 3.9 11 5 11ZM5 16H11V13H5V16Z"})),Kc=Object(eo.createElement)(Po.Icon,{icon:zc});var Gc=Object(bo.compose)([Object(h.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlockRootClientId,i=r.getBlocksByClientId,c=r.canInsertBlockType,a=(0,e("core/blocks").getGroupingBlockName)(),s=c(a,n&&n.length>0?o(n[0]):void 0),u=i(n),l=1===u.length&&u[0]&&u[0].name===a;return{isGroupable:s&&u.length&&!l,isUngroupable:l&&!!u[0].innerBlocks.length,blocksSelection:u,groupingBlockName:a}})),Object(h.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?y.noop:r,i=t.blocksSelection,c=void 0===i?[]:i,a=t.groupingBlockName,s=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){if(c.length){var e=Object(l.switchToBlockType)(c,a);e&&s(n,e),o()}},onConvertFromGroup:function(){if(c.length){var e=c[0].innerBlocks;e.length&&(s(n,e),o())}}}}))])((function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,r=e.isGroupable,o=void 0!==r&&r,i=e.isUngroupable,c=void 0!==i&&i;return Object(eo.createElement)(eo.Fragment,null,o&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:Wc,onClick:t},Object(L._x)("Group","verb")),c&&Object(eo.createElement)(Po.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:Kc,onClick:n},Object(L._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))}));var qc=Object(h.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds;return Object(eo.createElement)(u.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var n=e.onClose;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)(Gc,{clientIds:t,onToggle:n}))}))})),Yc=Object(h.combineReducers)({downloadableBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{results:{},hasPermission:!0,filterValue:void 0,isRequestingDownloadableBlocks:!0,installedBlockTypes:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return Object(f.a)({},e,{isRequestingDownloadableBlocks:!0});case"RECEIVE_DOWNLOADABLE_BLOCKS":return Object(f.a)({},e,{results:Object.assign({},e.results,Object(v.a)({},t.filterValue,t.downloadableBlocks)),hasPermission:!0,isRequestingDownloadableBlocks:!1});case"SET_INSTALL_BLOCKS_PERMISSION":return Object(f.a)({},e,{items:t.hasPermission?e.items:[],hasPermission:t.hasPermission});case"ADD_INSTALLED_BLOCK_TYPE":return Object(f.a)({},e,{installedBlockTypes:[].concat(Object(N.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return Object(f.a)({},e,{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))})}return e}});function Qc(e){return e.downloadableBlocks.isRequestingDownloadableBlocks}function Xc(e,t){return e.downloadableBlocks.results[t]?e.downloadableBlocks.results[t]:[]}function $c(e){return e.downloadableBlocks.hasPermission}function Zc(e){return Object(y.get)(e,["downloadableBlocks","installedBlockTypes"],[])}var Jc=x.a.mark(ra);function ea(e){return{type:"API_FETCH",request:e}}var ta=function(e,t,n){if(e){var r=document.querySelector('script[src="'.concat(e.src,'"]'));r&&r.parentNode.removeChild(r);var o=document.createElement("script");o.src="string"==typeof e?e:e.src,o.onload=t,o.onerror=n,document.body.appendChild(o)}},na=function(e){if(e){var t=document.createElement("link");t.rel="stylesheet",t.href="string"==typeof e?e:e.src,document.body.appendChild(t)}};function ra(e){return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{type:"LOAD_ASSETS",assets:e});case 1:case"end":return t.stop()}}),Jc)}var oa={SELECT:Object(h.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,i=t.args;return(n=e.select(r))[o].apply(n,Object(N.a)(i))}})),DISPATCH:Object(h.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.dispatcherName,i=t.args;return(n=e.dispatch(r))[o].apply(n,Object(N.a)(i))}})),API_FETCH:function(e){var t=e.request;return A()(Object(f.a)({},t))},LOAD_ASSETS:function(e){var t=e.assets;return new Promise((function(e,n){if(Array.isArray(t)){var r=0;Object(y.forEach)(t,(function(t){null!==t.match(/\.js$/)?(r++,ta(t,(function(){if(0===--r)return e(r)}),n)):na(t)}))}else ta(t.editor_script,(function(){return e(0)}),n),na(t.style)}))}},ia=x.a.mark(da),ca=x.a.mark(pa),aa=x.a.mark(ba);function sa(){return{type:"FETCH_DOWNLOADABLE_BLOCKS"}}function ua(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function la(e){return{type:"SET_INSTALL_BLOCKS_PERMISSION",hasPermission:e}}function da(e,t,n){return x.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,e.assets.length){r.next=3;break}throw new Error("Block has no assets");case 3:return r.next=5,ra(e.assets);case 5:if(!Object(l.getBlockTypes)().length){r.next=10;break}t(e),r.next=11;break;case 10:throw new Error("Unable to get block types");case 11:r.next=17;break;case 13:return r.prev=13,r.t0=r.catch(0),r.next=17,n(r.t0);case 17:case"end":return r.stop()}}),ia,null,[[0,13]])}function pa(e,t,n){var r,o,i;return x.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return r=e.id,o=e.name,c.prev=1,c.next=4,ea({path:"__experimental/block-directory/install",data:{slug:r},method:"POST"});case 4:if(!1!==(i=c.sent).success){c.next=7;break}throw new Error(i.errorMessage);case 7:return c.next=9,fa({id:r,name:o});case 9:t(),c.next=15;break;case 12:c.prev=12,c.t0=c.catch(1),n(c.t0);case 15:case"end":return c.stop()}}),ca,null,[[1,12]])}function ba(e,t,n){var r,o,i;return x.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return r=e.id,o=e.name,c.prev=1,c.next=4,ea({path:"__experimental/block-directory/uninstall",data:{slug:r},method:"DELETE"});case 4:if(!1!==(i=c.sent).success){c.next=7;break}throw new Error(i.errorMessage);case 7:return c.next=9,ha({id:r,name:o});case 9:t(),c.next=15;break;case 12:c.prev=12,c.t0=c.catch(1),n(c.t0);case 15:case"end":return c.stop()}}),aa,null,[[1,12]])}function fa(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function ha(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}var ma={reducer:Yc,selectors:a,actions:s,controls:oa,resolvers:{getDownloadableBlocks:x.a.mark((function e(t){var n,r;return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,{type:"FETCH_DOWNLOADABLE_BLOCKS"};case 5:return e.next=7,ea({path:"__experimental/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(y.mapKeys)(e,(function(e,t){return Object(y.camelCase)(t)}))})),e.next=11,ua(r,t);case 11:e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(2),"rest_user_cannot_view"!==e.t0.code){e.next=18;break}return e.next=18,la(!1);case 18:case"end":return e.stop()}}),e,null,[[2,13]])})),hasInstallBlocksPermission:x.a.mark((function e(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ea({path:"__experimental/block-directory/search?term="});case 3:return e.next=5,la(!0);case 5:e.next=12;break;case 7:if(e.prev=7,e.t0=e.catch(0),"rest_user_cannot_view"!==e.t0.code){e.next=12;break}return e.next=12,la(!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])}))}};Object(h.registerStore)("core/block-directory",ma);var va=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),o=Math.ceil(t-r),i=5-(r+o);return Object(eo.createElement)("div",{"aria-label":Object(L.sprintf)(Object(L.__)("%s out of 5 stars"),n)},Object(y.times)(r,(function(e){return Object(eo.createElement)(Po.Icon,{key:"full_stars_".concat(e),icon:"star-filled",size:16})})),Object(y.times)(o,(function(e){return Object(eo.createElement)(Po.Icon,{key:"half_stars_".concat(e),icon:"star-half",size:16})})),Object(y.times)(i,(function(e){return Object(eo.createElement)(Po.Icon,{key:"empty_stars_".concat(e),icon:"star-empty",size:16})})))},Oa=function(e){var t=e.rating,n=e.ratingCount;return Object(eo.createElement)("div",{className:"block-directory-block-ratings"},Object(eo.createElement)(va,{rating:t}),Object(eo.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(L.sprintf)(Object(L._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var ga=function(e){var t=e.icon,n=e.title,r=e.rating,o=e.ratingCount,i=e.onClick;return Object(eo.createElement)("div",{className:"block-directory-downloadable-block-header__row"},null!==t.match(/\.(jpeg|jpg|gif|png)$/)?Object(eo.createElement)("img",{src:t,alt:"block icon"}):Object(eo.createElement)("span",null,Object(eo.createElement)(u.BlockIcon,{icon:t,showColors:!0})),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(eo.createElement)("span",{role:"heading",className:"block-directory-downloadable-block-header__title"},n),Object(eo.createElement)(Oa,{rating:r,ratingCount:o})),Object(eo.createElement)(Po.Button,{isDefault:!0,onClick:function(e){e.preventDefault(),i()}},Object(L.__)("Add")))};var ja=function(e){var t=e.author,n=e.authorBlockCount,r=e.authorBlockRating;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("span",{className:"block-directory-downloadable-block-author-info__content-author"},Object(L.sprintf)(Object(L.__)("Authored by %s"),t)),Object(eo.createElement)("span",{className:"block-directory-downloadable-block-author-info__content"},Object(L.sprintf)(Object(L._n)("This author has %d block, with an average rating of %d.","This author has %d blocks, with an average rating of %d.",n),n,r)))};var ya=function(e){var t=e.description,n=e.activeInstalls,r=e.humanizedUpdated;return Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("p",{className:"block-directory-downloadable-block-info__content"},t),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__row"},Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__column"},Object(eo.createElement)(Po.Icon,{icon:"chart-line"}),Object(L.sprintf)(Object(L._n)("%d active installation","%d active installations",n),n)),Object(eo.createElement)("div",{className:"block-directory-downloadable-block-info__column"},Object(eo.createElement)(Po.Icon,{icon:"update"}),Object(eo.createElement)("span",{"aria-label":Object(L.sprintf)(Object(L.__)("Updated %s"),r)},r))))};var _a=function(e){var t=e.item,n=e.onClick,r=t.icon,o=t.title,i=t.description,c=t.rating,a=t.activeInstalls,s=t.ratingCount,u=t.author,l=t.humanizedUpdated,d=t.authorBlockCount,p=t.authorBlockRating;return Object(eo.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(eo.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(eo.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(eo.createElement)(ga,{icon:r,onClick:n,title:o,rating:c,ratingCount:s})),Object(eo.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(eo.createElement)(ya,{activeInstalls:a,description:i,humanizedUpdated:l})),Object(eo.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(eo.createElement)(ja,{author:u,authorBlockCount:d,authorBlockRating:p}))))};var ka=Object(bo.compose)(Object(h.withDispatch)((function(e,t){var n=e("core/block-directory"),r=n.installBlock,o=n.downloadBlock,i=e("core/notices"),c=i.createErrorNotice,a=i.removeNotice,s=e("core/block-editor").removeBlocks,u=t.onSelect;return{downloadAndInstallBlock:function(e){var t=function(){var t=u(e);r(e,y.noop,(function n(){c(Object(L.__)("Block previews can't install."),{id:"block-install-error",actions:[{label:Object(L.__)("Retry"),onClick:function(){a("block-install-error"),r(e,y.noop,n)}},{label:Object(L.__)("Remove"),onClick:function(){a("block-install-error"),s(t.clientId),Object(l.unregisterBlockType)(e.name)}}]})}))};o(e,t,(function n(){c(Object(L.__)("Block previews can’t load."),{id:"block-download-error",actions:[{label:Object(L.__)("Retry"),onClick:function(){a("block-download-error"),o(e,t,n)}}]})}))}}})))((function(e){var t=e.items,n=e.onHover,r=void 0===n?y.noop:n,o=e.children,i=e.downloadAndInstallBlock;return(Object(eo.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t&&t.map((function(e){return Object(eo.createElement)(_a,{key:e.id,className:Object(l.getBlockMenuDefaultClassName)(e.id),icons:e.icons,onClick:function(){i(e),r(null)},onFocus:function(){return r(e)},onMouseEnter:function(){return r(e)},onMouseLeave:function(){return r(null)},onBlur:function(){return r(null)},item:e})})),o))}));var Ea=Object(bo.compose)([Po.withSpokenMessages,Object(h.withSelect)((function(e,t){var n=t.filterValue,r=e("core/block-directory"),o=r.getDownloadableBlocks,i=r.hasInstallBlocksPermission,c=r.isRequestingDownloadableBlocks,a=i();return{downloadableItems:a?o(n):[],hasPermission:a,isLoading:c()}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,o=e.hasPermission,i=e.isLoading,c=e.isWaiting,a=e.debouncedSpeak;return o?i||c?Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(eo.createElement)(Po.Spinner,null)):t.length?(a(Object(L.sprintf)(Object(L._n)("No blocks found in your library. We did find %d block available for download.","No blocks found in your library. We did find %d blocks available for download.",t.length),t.length)),Object(eo.createElement)(eo.Fragment,null,Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(L.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(eo.createElement)(ka,{items:t,onSelect:n,onHover:r}))):Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(L.__)("No blocks found in your library.")):(a(Object(L.__)("No blocks found in your library. Please contact your site administrator to install new blocks.")),Object(eo.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(L.__)("No blocks found in your library."),Object(eo.createElement)("br",null),Object(L.__)("Please contact your site administrator to install new blocks.")))}));var wa=function(){var e=Object(eo.useState)(""),t=Object(R.a)(e,2),n=t[0],r=t[1],o=Object(y.debounce)(r,400);return Object(eo.createElement)(u.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,i=e.filterValue;return e.hasItems||!i?null:(n!==i&&o(i),Object(eo.createElement)(Ea,{onSelect:t,onHover:r,filterValue:n,isWaiting:i!==n}))}))},Sa=function(){var e=Object(B.a)(x.a.mark((function e(t){var n;return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A()({path:Object(Ft.addQueryArgs)("/wp/v2/search",{search:t,per_page:20,type:"post"})});case 2:return n=e.sent,e.abrupt("return",Object(y.map)(n,(function(e){return{id:e.id,url:e.url,title:Object(ei.decodeEntities)(e.title)||Object(L.__)("(no title)")}})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Pa=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).getBlockEditorSettings=Z()(n.getBlockEditorSettings,{maxSize:1}),e.recovery?Object(uo.a)(n):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(L.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(L.__)("View the autosave"),url:e.settings.autosave.editLink}]}),n)}return Object(po.a)(t,e),Object(so.a)(t,[{key:"getBlockEditorSettings",value:function(e,t,n,r){return Object(f.a)({},Object(y.pick)(e,["alignWide","allowedBlockTypes","__experimentalPreferredStyleVariations","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","focusMode","fontSizes","hasFixedToolbar","hasPermissionsToManageWidgets","imageSizes","isRTL","maxWidth","styles","template","templateLock","titlePlaceholder","onUpdateDefaultBlockStyles","__experimentalEnableLegacyWidgetBlock","__experimentalEnableMenuBlock","__experimentalBlockDirectory","showInserterHelpPanel"]),{__experimentalReusableBlocks:t,__experimentalMediaUpload:n?Uc:void 0,__experimentalFetchLinkSuggestions:Sa,__experimentalCanUserUseUnfilteredHTML:r})}},{key:"componentDidMount",value:function(){if(this.props.updateEditorSettings(this.props.settings),this.props.settings.styles){var e=Object(u.transformStyles)(this.props.settings.styles,".editor-styles-wrapper");Object(y.map)(e,(function(e){if(e){var t=document.createElement("style");t.innerHTML=e,document.body.appendChild(t)}}))}}},{key:"componentDidUpdate",value:function(e){var t=this;this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings),Object(y.isEqual)(this.props.downloadableBlocksToUninstall,e.downloadableBlocksToUninstall)||this.props.downloadableBlocksToUninstall.forEach((function(e){t.props.uninstallBlock(e,y.noop,(function(){t.props.createWarningNotice(Object(L.__)("Block previews can't uninstall."),{id:"block-uninstall-error"})})),Object(l.unregisterBlockType)(e.name)}))}},{key:"componentWillUnmount",value:function(){this.props.tearDownEditor()}},{key:"render",value:function(){var e=this.props,t=e.canUserUseUnfilteredHTML,n=e.children,r=e.blocks,o=e.resetEditorBlocks,i=e.isReady,c=e.settings,a=e.reusableBlocks,s=e.resetEditorBlocksWithoutUndoLevel,l=e.hasUploadPermissions;if(!i)return null;var d=this.getBlockEditorSettings(c,a,l,t);return Object(eo.createElement)(u.BlockEditorProvider,{value:r,onInput:s,onChange:o,settings:d,useSubRegistry:!1},n,Object(eo.createElement)(Vc,null),Object(eo.createElement)(qc,null),d.__experimentalBlockDirectory&&Object(eo.createElement)(wa,null))}}]),t}(eo.Component),Ca=Object(bo.compose)([Nc,Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.__experimentalGetReusableBlocks,c=e("core").canUser,a=e("core/block-directory").getInstalledBlockTypes,s=e("core/block-editor").getBlocks,u=Object(y.differenceBy)(a(),s(),"name");return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),reusableBlocks:i(),hasUploadPermissions:Object(y.defaultTo)(c("create","media"),!0),downloadableBlocksToUninstall:u}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalTearDownEditor,a=e("core/notices").createWarningNotice,s=e("core/block-directory").uninstallBlock;return{setupEditor:n,updatePostLock:r,createWarningNotice:a,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e){o(e,{__unstableShouldCreateUndoLevel:!1})},tearDownEditor:c,uninstallBlock:s}}))])(Pa),Ta=n(53),xa=n.n(Ta);function Ba(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(eo.forwardRef)((function(n,r){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(eo.createElement)(t,Object(ci.a)({ref:r},n))}));return n.forEach((function(n){r[n]=Ba(e+"."+n,t[n])})),r}function Ia(e,t){return function(){return U()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var Aa=Ba("RichText",u.RichText,["Content"]);Aa.isEmpty=Ia("RichText.isEmpty",u.RichText.isEmpty);var La=Ba("Autocomplete",u.Autocomplete),Ra=Ba("AlignmentToolbar",u.AlignmentToolbar),Na=Ba("BlockAlignmentToolbar",u.BlockAlignmentToolbar),Da=Ba("BlockControls",u.BlockControls,["Slot"]),Ua=Ba("BlockEdit",u.BlockEdit),Fa=Ba("BlockEditorKeyboardShortcuts",u.BlockEditorKeyboardShortcuts),Ma=Ba("BlockFormatControls",u.BlockFormatControls,["Slot"]),Va=Ba("BlockIcon",u.BlockIcon),Ha=Ba("BlockInspector",u.BlockInspector),Wa=Ba("BlockList",u.BlockList),za=Ba("BlockMover",u.BlockMover),Ka=Ba("BlockNavigationDropdown",u.BlockNavigationDropdown),Ga=Ba("BlockSelectionClearer",u.BlockSelectionClearer),qa=Ba("BlockSettingsMenu",u.BlockSettingsMenu),Ya=Ba("BlockTitle",u.BlockTitle),Qa=Ba("BlockToolbar",u.BlockToolbar),Xa=Ba("ColorPalette",u.ColorPalette),$a=Ba("ContrastChecker",u.ContrastChecker),Za=Ba("CopyHandler",u.CopyHandler),Ja=Ba("DefaultBlockAppender",u.DefaultBlockAppender),es=Ba("FontSizePicker",u.FontSizePicker),ts=Ba("Inserter",u.Inserter),ns=Ba("InnerBlocks",u.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),rs=Ba("InspectorAdvancedControls",u.InspectorAdvancedControls,["Slot"]),os=Ba("InspectorControls",u.InspectorControls,["Slot"]),is=Ba("PanelColorSettings",u.PanelColorSettings),cs=Ba("PlainText",u.PlainText),as=Ba("RichTextShortcut",u.RichTextShortcut),ss=Ba("RichTextToolbarButton",u.RichTextToolbarButton),us=Ba("__unstableRichTextInputEvent",u.__unstableRichTextInputEvent),ls=Ba("MediaPlaceholder",u.MediaPlaceholder),ds=Ba("MediaUpload",u.MediaUpload),ps=Ba("MediaUploadCheck",u.MediaUploadCheck),bs=Ba("MultiBlocksSwitcher",u.MultiBlocksSwitcher),fs=Ba("MultiSelectScrollIntoView",u.MultiSelectScrollIntoView),hs=Ba("NavigableToolbar",u.NavigableToolbar),ms=Ba("ObserveTyping",u.ObserveTyping),vs=Ba("PreserveScrollInReorder",u.PreserveScrollInReorder),Os=Ba("SkipToSelectedBlock",u.SkipToSelectedBlock),gs=Ba("URLInput",u.URLInput),js=Ba("URLInputButton",u.URLInputButton),ys=Ba("URLPopover",u.URLPopover),_s=Ba("Warning",u.Warning),ks=Ba("WritingFlow",u.WritingFlow),Es=Ia("createCustomColorsHOC",u.createCustomColorsHOC),ws=Ia("getColorClassName",u.getColorClassName),Ss=Ia("getColorObjectByAttributeValues",u.getColorObjectByAttributeValues),Ps=Ia("getColorObjectByColorValue",u.getColorObjectByColorValue),Cs=Ia("getFontSize",u.getFontSize),Ts=Ia("getFontSizeClass",u.getFontSizeClass),xs=Ia("withColorContext",u.withColorContext),Bs=Ia("withColors",u.withColors),Is=Ia("withFontSizes",u.withFontSizes);Object(Jr.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.push(Object(y.clone)(co)),t===Object(l.getDefaultBlockName)()&&e.push(Object(y.clone)(io)),e})),n.d(t,"AutosaveMonitor",(function(){return ho})),n.d(t,"DocumentOutline",(function(){return Eo})),n.d(t,"DocumentOutlineCheck",(function(){return wo})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return Io})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return Ao})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return Lo})),n.d(t,"EditorHistoryRedo",(function(){return Ro})),n.d(t,"EditorHistoryUndo",(function(){return No})),n.d(t,"EditorNotices",(function(){return Fo})),n.d(t,"ErrorBoundary",(function(){return Mo})),n.d(t,"LocalAutosaveMonitor",(function(){return zo})),n.d(t,"PageAttributesCheck",(function(){return Ko})),n.d(t,"PageAttributesOrder",(function(){return Yo})),n.d(t,"PageAttributesParent",(function(){return Zo})),n.d(t,"PageTemplate",(function(){return Jo})),n.d(t,"PostAuthor",(function(){return ri})),n.d(t,"PostAuthorCheck",(function(){return ti})),n.d(t,"PostComments",(function(){return oi})),n.d(t,"PostExcerpt",(function(){return ii})),n.d(t,"PostExcerptCheck",(function(){return ai})),n.d(t,"PostFeaturedImage",(function(){return mi})),n.d(t,"PostFeaturedImageCheck",(function(){return ui})),n.d(t,"PostFormat",(function(){return gi})),n.d(t,"PostFormatCheck",(function(){return vi})),n.d(t,"PostLastRevision",(function(){return ki})),n.d(t,"PostLastRevisionCheck",(function(){return ji})),n.d(t,"PostLockedModal",(function(){return Pi})),n.d(t,"PostPendingStatus",(function(){return Ti})),n.d(t,"PostPendingStatusCheck",(function(){return Ci})),n.d(t,"PostPingbacks",(function(){return xi})),n.d(t,"PostPreviewButton",(function(){return wi})),n.d(t,"PostPublishButton",(function(){return Ai})),n.d(t,"PostPublishButtonLabel",(function(){return Bi})),n.d(t,"PostPublishPanel",(function(){return nc})),n.d(t,"PostSavedState",(function(){return ic})),n.d(t,"PostSchedule",(function(){return Ui})),n.d(t,"PostScheduleCheck",(function(){return cc})),n.d(t,"PostScheduleLabel",(function(){return Fi})),n.d(t,"PostSticky",(function(){return sc})),n.d(t,"PostStickyCheck",(function(){return ac})),n.d(t,"PostSwitchToDraftButton",(function(){return rc})),n.d(t,"PostTaxonomies",(function(){return pc})),n.d(t,"PostTaxonomiesCheck",(function(){return bc})),n.d(t,"PostTextEditor",(function(){return vc})),n.d(t,"PostTitle",(function(){return Sc})),n.d(t,"PostTrash",(function(){return Pc})),n.d(t,"PostTrashCheck",(function(){return Cc})),n.d(t,"PostTypeSupportCheck",(function(){return Go})),n.d(t,"PostVisibility",(function(){return Ni})),n.d(t,"PostVisibilityLabel",(function(){return Di})),n.d(t,"PostVisibilityCheck",(function(){return Tc})),n.d(t,"TableOfContents",(function(){return Ac})),n.d(t,"UnsavedChangesWarning",(function(){return Rc})),n.d(t,"WordCount",(function(){return Bc})),n.d(t,"EditorProvider",(function(){return Ca})),n.d(t,"blockAutocompleter",(function(){return io})),n.d(t,"userAutocompleter",(function(){return co})),n.d(t,"ServerSideRender",(function(){return xa.a})),n.d(t,"RichText",(function(){return Aa})),n.d(t,"Autocomplete",(function(){return La})),n.d(t,"AlignmentToolbar",(function(){return Ra})),n.d(t,"BlockAlignmentToolbar",(function(){return Na})),n.d(t,"BlockControls",(function(){return Da})),n.d(t,"BlockEdit",(function(){return Ua})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Fa})),n.d(t,"BlockFormatControls",(function(){return Ma})),n.d(t,"BlockIcon",(function(){return Va})),n.d(t,"BlockInspector",(function(){return Ha})),n.d(t,"BlockList",(function(){return Wa})),n.d(t,"BlockMover",(function(){return za})),n.d(t,"BlockNavigationDropdown",(function(){return Ka})),n.d(t,"BlockSelectionClearer",(function(){return Ga})),n.d(t,"BlockSettingsMenu",(function(){return qa})),n.d(t,"BlockTitle",(function(){return Ya})),n.d(t,"BlockToolbar",(function(){return Qa})),n.d(t,"ColorPalette",(function(){return Xa})),n.d(t,"ContrastChecker",(function(){return $a})),n.d(t,"CopyHandler",(function(){return Za})),n.d(t,"DefaultBlockAppender",(function(){return Ja})),n.d(t,"FontSizePicker",(function(){return es})),n.d(t,"Inserter",(function(){return ts})),n.d(t,"InnerBlocks",(function(){return ns})),n.d(t,"InspectorAdvancedControls",(function(){return rs})),n.d(t,"InspectorControls",(function(){return os})),n.d(t,"PanelColorSettings",(function(){return is})),n.d(t,"PlainText",(function(){return cs})),n.d(t,"RichTextShortcut",(function(){return as})),n.d(t,"RichTextToolbarButton",(function(){return ss})),n.d(t,"__unstableRichTextInputEvent",(function(){return us})),n.d(t,"MediaPlaceholder",(function(){return ls})),n.d(t,"MediaUpload",(function(){return ds})),n.d(t,"MediaUploadCheck",(function(){return ps})),n.d(t,"MultiBlocksSwitcher",(function(){return bs})),n.d(t,"MultiSelectScrollIntoView",(function(){return fs})),n.d(t,"NavigableToolbar",(function(){return hs})),n.d(t,"ObserveTyping",(function(){return ms})),n.d(t,"PreserveScrollInReorder",(function(){return vs})),n.d(t,"SkipToSelectedBlock",(function(){return Os})),n.d(t,"URLInput",(function(){return gs})),n.d(t,"URLInputButton",(function(){return js})),n.d(t,"URLPopover",(function(){return ys})),n.d(t,"Warning",(function(){return _s})),n.d(t,"WritingFlow",(function(){return ks})),n.d(t,"createCustomColorsHOC",(function(){return Es})),n.d(t,"getColorClassName",(function(){return ws})),n.d(t,"getColorObjectByAttributeValues",(function(){return Ss})),n.d(t,"getColorObjectByColorValue",(function(){return Ps})),n.d(t,"getFontSize",(function(){return Cs})),n.d(t,"getFontSizeClass",(function(){return Ts})),n.d(t,"withColorContext",(function(){return xs})),n.d(t,"withColors",(function(){return Bs})),n.d(t,"withFontSizes",(function(){return Is})),n.d(t,"mediaUpload",(function(){return Uc})),n.d(t,"cleanForSlug",(function(){return _i})),n.d(t,"storeConfig",(function(){return $r})),n.d(t,"transformStyles",(function(){return u.transformStyles}))},32:function(e,t){!function(){e.exports=this.wp.apiFetch}()},33:function(e,t){!function(){e.exports=this.wp.dataControls}()},34:function(e,t,n){e.exports=n(84)()},36:function(e,t,n){"use strict";var r,o;function i(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var s=r.call(c,"catchLoc"),u=r.call(c,"finallyLoc");if(s&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),f}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},5:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},52:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},53:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},54:function(e,t){!function(){e.exports=this.wp.date}()},58:function(e,t){!function(){e.exports=this.wp.nux}()},59:function(e,t,n){"use strict";t.__esModule=!0;var r=n(109);t.default=r.default},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},66:function(e,t){!function(){e.exports=this.wp.autop}()},69:function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},28:function(e,t){!function(){e.exports=this.React}()},31:function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},400:function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(21),u=n(28),i=n(2);function c(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return I(e,t,n);switch(Object(s.a)(e)){case"string":return Object(d.escapeHTML)(e);case"number":return e.toString()}var c=e.type,a=e.props;switch(c){case u.StrictMode:case u.Fragment:return I(a.children,t,n);case p:var f=a.children,l=Object(o.a)(a,["children"]);return _(Object(i.isEmpty)(l)?null:"div",Object(r.a)({},l,{dangerouslySetInnerHTML:{__html:f}}),t,n)}switch(Object(s.a)(c)){case"string":return _(c,a,t,n);case"function":return c.prototype&&"function"==typeof c.prototype.render?function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new e(t,r);"function"==typeof o.getChildContext&&Object.assign(r,o.getChildContext());return P(o.render(),n,r)}(c,a,t,n):P(c(a,n),t,n)}switch(c&&c.$$typeof){case b.$$typeof:return I(a.children,a.value,n);case y.$$typeof:return P(a.children(t||c._currentValue),t,n);case h.$$typeof:return P(c.render(a),t,n)}return""}function _(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=I(t.value,n,r),t=Object(i.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=I(t.children,n,r)),!e)return o;var u=function(e){var t="";for(var n in e){var r=k(n);if(Object(d.isValidAttributeName)(r)){var o=x(n,e[n]);if(O.has(Object(s.a)(o))&&!C(n)){var u=v.has(r);if(!u||!1!==o){var i=u||w(n,["data-","aria-"])||j.has(r);("boolean"!=typeof o||i)&&(t+=" "+r,u||("string"==typeof o&&(o=Object(d.escapeAttribute)(o)),t+='="'+o+'"'))}}}}return t}(t);return g.has(e)?"<"+e+u+"/>":"<"+e+u+">"+o+""}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";e=Object(i.castArray)(e);for(var o=0;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},28:function(e,t){!function(){e.exports=this.React}()},31:function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},328:function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(21),u=n(28),i=n(2);function c(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return I(e,t,n);switch(Object(s.a)(e)){case"string":return Object(d.escapeHTML)(e);case"number":return e.toString()}var c=e.type,a=e.props;switch(c){case u.StrictMode:case u.Fragment:return I(a.children,t,n);case p:var f=a.children,l=Object(o.a)(a,["children"]);return _(Object(i.isEmpty)(l)?null:"div",Object(r.a)({},l,{dangerouslySetInnerHTML:{__html:f}}),t,n)}switch(Object(s.a)(c)){case"string":return _(c,a,t,n);case"function":return c.prototype&&"function"==typeof c.prototype.render?function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new e(t,r);"function"==typeof o.getChildContext&&Object.assign(r,o.getChildContext());return P(o.render(),n,r)}(c,a,t,n):P(c(a,n),t,n)}switch(c&&c.$$typeof){case b.$$typeof:return I(a.children,a.value,n);case y.$$typeof:return P(a.children(t||c._currentValue),t,n);case h.$$typeof:return P(c.render(a),t,n)}return""}function _(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=I(t.value,n,r),t=Object(i.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=I(t.children,n,r)),!e)return o;var u=function(e){var t="";for(var n in e){var r=k(n);if(Object(d.isValidAttributeName)(r)){var o=x(n,e[n]);if(O.has(Object(s.a)(o))&&!C(n)){var u=v.has(r);if(!u||!1!==o){var i=u||w(n,["data-","aria-"])||j.has(r);("boolean"!=typeof o||i)&&(t+=" "+r,u||("string"==typeof o&&(o=Object(d.escapeAttribute)(o)),t+='="'+o+'"'))}}}}return t}(t);return g.has(e)?"<"+e+u+"/>":"<"+e+u+">"+o+""}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";e=Object(i.castArray)(e);for(var o=0;o/="\uFDD0-\uFDEF]/;function u(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function o(e){return e.replace(/"/g,""")}function i(e){return e.replace(//g,">")}(o(u(e)))}function f(e){return i(u(e))}function a(e){return!r.test(e)}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.escapeHtml=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.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 u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));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=336)}({336:function(e,t,n){"use strict";n.r(t),n.d(t,"escapeAmpersand",(function(){return u})),n.d(t,"escapeQuotationMark",(function(){return o})),n.d(t,"escapeLessThan",(function(){return i})),n.d(t,"escapeAttribute",(function(){return c})),n.d(t,"escapeHTML",(function(){return f})),n.d(t,"isValidAttributeName",(function(){return a}));var r=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function u(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function o(e){return e.replace(/"/g,""")}function i(e){return e.replace(//g,">")}(o(u(e)))}function f(e){return i(u(e))}function a(e){return!r.test(e)}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/format-library.js b/wp-includes/js/dist/format-library.js index b3f1d4d67f..826ca07608 100644 --- a/wp-includes/js/dist/format-library.js +++ b/wp-includes/js/dist/format-library.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["formatLibrary"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 390); +/******/ return __webpack_require__(__webpack_require__.s = 321); /******/ }) /************************************************************************/ /******/ ({ @@ -360,7 +360,7 @@ function _typeof(obj) { /***/ }), -/***/ 390: +/***/ 321: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -799,7 +799,7 @@ var italic = { var external_this_wp_url_ = __webpack_require__(26); // EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} -var external_this_wp_htmlEntities_ = __webpack_require__(54); +var external_this_wp_htmlEntities_ = __webpack_require__(52); // EXTERNAL MODULE: external "lodash" var external_lodash_ = __webpack_require__(2); @@ -1505,7 +1505,7 @@ function _assertThisInitialized(self) { /***/ }), -/***/ 54: +/***/ 52: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["htmlEntities"]; }()); diff --git a/wp-includes/js/dist/format-library.min.js b/wp-includes/js/dist/format-library.min.js index 56d9291763..d7f91dffe6 100644 --- a/wp-includes/js/dist/format-library.min.js +++ b/wp-includes/js/dist/format-library.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.formatLibrary=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=390)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},10:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},11:function(t,e,n){"use strict";function r(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}n.d(e,"a",(function(){return r}))},22:function(t,e){!function(){t.exports=this.wp.richText}()},25:function(t,e){!function(){t.exports=this.wp.dom}()},26:function(t,e){!function(){t.exports=this.wp.url}()},3:function(t,e){!function(){t.exports=this.wp.components}()},31:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return(i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}n.d(e,"a",(function(){return i}))},390:function(t,e,n){"use strict";n.r(e);var r=n(21),i=n(22),o=n(0),a=n(1),c=n(6),u=Object(a.__)("Bold"),l={name:"core/bold",title:u,tagName:"strong",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,a=function(){return r(Object(i.toggleFormat)(n,{type:"core/bold"}))};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.RichTextShortcut,{type:"primary",character:"b",onUse:a}),Object(o.createElement)(c.RichTextToolbarButton,{name:"bold",icon:"editor-bold",title:u,onClick:a,isActive:e,shortcutType:"primary",shortcutCharacter:"b"}),Object(o.createElement)(c.__unstableRichTextInputEvent,{inputType:"formatBold",onInput:a}))}},s=Object(a.__)("Inline Code"),b={name:"core/code",title:s,tagName:"code",className:null,__unstableInputRule:function(t){var e=t,n=e.start,r=e.text;if("`"!==r.slice(n-1,n))return t;var o=r.slice(0,n-1).lastIndexOf("`");if(-1===o)return t;var a=o,c=n-2;return a===c?t:(t=Object(i.remove)(t,a,a+1),t=Object(i.remove)(t,c,c+1),t=Object(i.applyFormat)(t,{type:"core/code"},a,c))},edit:function(t){var e=t.value,n=t.onChange,r=t.isActive;return Object(o.createElement)(c.RichTextToolbarButton,{icon:"editor-code",title:s,onClick:function(){return n(Object(i.toggleFormat)(e,{type:"core/code"}))},isActive:r})}},p=n(7),f=n(12),d=n(11),m=n(13),h=n(14),O=n(5),v=n(15),j=n(18),y=n(3),g=n(19),k=n(25),w=["image"],_=Object(a.__)("Inline image"),E=function(t){return t.stopPropagation()},C=function(t){var e=t.dependencies,n=Object(r.a)(t,["dependencies"]);return Object(o.createElement)(y.Popover,Object(j.a)({position:"bottom center",focusOnMount:!1,anchorRect:Object(o.useMemo)((function(){return Object(k.computeCaretRect)()}),e)},n))},S={name:"core/image",title:_,keywords:[Object(a.__)("photo"),Object(a.__)("media")],object:!0,tagName:"img",className:null,attributes:{className:"class",style:"style",url:"src",alt:"alt"},edit:function(t){function e(){var t;return Object(f.a)(this,e),(t=Object(m.a)(this,Object(h.a)(e).apply(this,arguments))).onChange=t.onChange.bind(Object(O.a)(t)),t.onKeyDown=t.onKeyDown.bind(Object(O.a)(t)),t.openModal=t.openModal.bind(Object(O.a)(t)),t.closeModal=t.closeModal.bind(Object(O.a)(t)),t.state={modal:!1},t}return Object(v.a)(e,t),Object(d.a)(e,[{key:"onChange",value:function(t){this.setState({width:t})}},{key:"onKeyDown",value:function(t){[g.LEFT,g.DOWN,g.RIGHT,g.UP,g.BACKSPACE,g.ENTER].indexOf(t.keyCode)>-1&&t.stopPropagation()}},{key:"openModal",value:function(){this.setState({modal:!0})}},{key:"closeModal",value:function(){this.setState({modal:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.value,r=e.onChange,u=e.isObjectActive,l=e.activeObjectAttributes,s=l.style;return Object(o.createElement)(c.MediaUploadCheck,null,Object(o.createElement)(c.RichTextToolbarButton,{icon:Object(o.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(y.Path,{d:"M4 16h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2zM4 5h10v9H4V5zm14 9v2h4v-2h-4zM2 20h20v-2H2v2zm6.4-8.8L7 9.4 5 12h8l-2.6-3.4-2 2.6z"})),title:_,onClick:this.openModal,isActive:u}),this.state.modal&&Object(o.createElement)(c.MediaUpload,{allowedTypes:w,onSelect:function(e){var o=e.id,a=e.url,c=e.alt,u=e.width;t.closeModal(),r(Object(i.insertObject)(n,{type:"core/image",attributes:{className:"wp-image-".concat(o),style:"width: ".concat(Math.min(u,150),"px;"),url:a,alt:c}}))},onClose:this.closeModal,render:function(t){return(0,t.open)(),null}}),u&&Object(o.createElement)(C,{dependencies:[s,n.start]},Object(o.createElement)("form",{className:"editor-format-toolbar__image-container-content block-editor-format-toolbar__image-container-content",onKeyPress:E,onKeyDown:this.onKeyDown,onSubmit:function(e){var i=n.replacements.slice();i[n.start]={type:"core/image",attributes:Object(p.a)({},l,{style:"width: ".concat(t.state.width,"px;")})},r(Object(p.a)({},n,{replacements:i})),e.preventDefault()}},Object(o.createElement)(y.TextControl,{className:"editor-format-toolbar__image-container-value block-editor-format-toolbar__image-container-value",type:"number",label:Object(a.__)("Width"),value:this.state.width,min:1,onChange:this.onChange}),Object(o.createElement)(y.IconButton,{icon:"editor-break",label:Object(a.__)("Apply"),type:"submit"}))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeObjectAttributes.style;return n===e.previousStyle?null:n?{width:n.replace(/\D/g,""),previousStyle:n}:{width:void 0,previousStyle:n}}}]),e}(o.Component)},T=Object(a.__)("Italic"),x={name:"core/italic",title:T,tagName:"em",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,a=function(){return r(Object(i.toggleFormat)(n,{type:"core/italic"}))};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.RichTextShortcut,{type:"primary",character:"i",onUse:a}),Object(o.createElement)(c.RichTextToolbarButton,{name:"italic",icon:"editor-italic",title:T,onClick:a,isActive:e,shortcutType:"primary",shortcutCharacter:"i"}),Object(o.createElement)(c.__unstableRichTextInputEvent,{inputType:"formatItalic",onInput:a}))}},L=n(26),R=n(54),P=n(2);function A(t){if(!t)return!1;var e=t.trim();if(!e)return!1;if(/^\S+:/.test(e)){var n=Object(L.getProtocol)(e);if(!Object(L.isValidProtocol)(n))return!1;if(Object(P.startsWith)(n,"http")&&!/^https?:\/\/[^\/\s]/i.test(e))return!1;var r=Object(L.getAuthority)(e);if(!Object(L.isValidAuthority)(r))return!1;var i=Object(L.getPath)(e);if(i&&!Object(L.isValidPath)(i))return!1;var o=Object(L.getQueryString)(e);if(o&&!Object(L.isValidQueryString)(o))return!1;var a=Object(L.getFragment)(e);if(a&&!Object(L.isValidFragment)(a))return!1}return!(Object(P.startsWith)(e,"#")&&!Object(L.isValidFragment)(e))}function N(t){var e=t.url,n=t.opensInNewWindow,r=t.text,i={type:"core/link",attributes:{url:e}};if(n){var o=Object(a.sprintf)(Object(a.__)("%s (opens in a new tab)"),r);i.attributes.target="_blank",i.attributes.rel="noreferrer noopener",i.attributes["aria-label"]=o}return i}var F=function(t){return t.stopPropagation()};function I(t,e){return t.addingLink||e.editLink}var M=function(t){var e=t.isActive,n=t.addingLink,i=t.value,a=Object(r.a)(t,["isActive","addingLink","value"]),u=Object(o.useMemo)((function(){var t=window.getSelection(),e=t.rangeCount>0?t.getRangeAt(0):null;if(e){if(n)return Object(k.getRectangleFromRange)(e);var r=e.startContainer;for(r=r.nextElementSibling||r;r.nodeType!==window.Node.ELEMENT_NODE;)r=r.parentNode;var i=r.closest("a");return i?i.getBoundingClientRect():void 0}}),[e,n,i.start,i.end]);return u?Object(o.createElement)(c.URLPopover,Object(j.a)({anchorRect:u},a)):null},V=function(t){function e(){var t;return Object(f.a)(this,e),(t=Object(m.a)(this,Object(h.a)(e).apply(this,arguments))).editLink=t.editLink.bind(Object(O.a)(t)),t.submitLink=t.submitLink.bind(Object(O.a)(t)),t.onKeyDown=t.onKeyDown.bind(Object(O.a)(t)),t.onChangeInputValue=t.onChangeInputValue.bind(Object(O.a)(t)),t.setLinkTarget=t.setLinkTarget.bind(Object(O.a)(t)),t.onFocusOutside=t.onFocusOutside.bind(Object(O.a)(t)),t.resetState=t.resetState.bind(Object(O.a)(t)),t.autocompleteRef=Object(o.createRef)(),t.state={opensInNewWindow:!1,inputValue:""},t}return Object(v.a)(e,t),Object(d.a)(e,[{key:"onKeyDown",value:function(t){[g.LEFT,g.DOWN,g.RIGHT,g.UP,g.BACKSPACE,g.ENTER].indexOf(t.keyCode)>-1&&t.stopPropagation()}},{key:"onChangeInputValue",value:function(t){this.setState({inputValue:t})}},{key:"setLinkTarget",value:function(t){var e=this.props,n=e.activeAttributes.url,r=void 0===n?"":n,o=e.value,a=e.onChange;if(this.setState({opensInNewWindow:t}),!I(this.props,this.state)){var c=Object(i.getTextContent)(Object(i.slice)(o));a(Object(i.applyFormat)(o,N({url:r,opensInNewWindow:t,text:c})))}}},{key:"editLink",value:function(t){this.setState({editLink:!0}),t.preventDefault()}},{key:"submitLink",value:function(t){var e=this.props,n=e.isActive,r=e.value,o=e.onChange,c=e.speak,u=this.state,l=u.inputValue,s=u.opensInNewWindow,b=Object(L.prependHTTP)(l),p=N({url:b,opensInNewWindow:s,text:Object(i.getTextContent)(Object(i.slice)(r))});if(t.preventDefault(),Object(i.isCollapsed)(r)&&!n){var f=Object(i.applyFormat)(Object(i.create)({text:b}),p,0,b.length);o(Object(i.insert)(r,f))}else o(Object(i.applyFormat)(r,p));this.resetState(),A(b)?c(n?Object(a.__)("Link edited."):Object(a.__)("Link inserted."),"assertive"):c(Object(a.__)("Warning: the link has been inserted but may have errors. Please test it."),"assertive")}},{key:"onFocusOutside",value:function(){var t=this.autocompleteRef.current;t&&t.contains(document.activeElement)||this.resetState()}},{key:"resetState",value:function(){this.props.stopAddingLink(),this.setState({editLink:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.isActive,r=e.activeAttributes.url,i=e.addingLink,u=e.value;if(!n&&!i)return null;var l=this.state,s=l.inputValue,b=l.opensInNewWindow,p=I(this.props,this.state);return Object(o.createElement)(M,{value:u,isActive:n,addingLink:i,onFocusOutside:this.onFocusOutside,onClose:this.resetState,focusOnMount:!!p&&"firstElement",renderSettings:function(){return Object(o.createElement)(y.ToggleControl,{label:Object(a.__)("Open in New Tab"),checked:b,onChange:t.setLinkTarget})}},p?Object(o.createElement)(c.URLPopover.LinkEditor,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",value:s,onChangeInputValue:this.onChangeInputValue,onKeyDown:this.onKeyDown,onKeyPress:F,onSubmit:this.submitLink,autocompleteRef:this.autocompleteRef}):Object(o.createElement)(c.URLPopover.LinkViewer,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:F,url:r,onEditLinkClick:this.editLink,linkClassName:A(Object(L.prependHTTP)(r))?void 0:"has-invalid-link"}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeAttributes,r=n.url,i="_blank"===n.target;if(!I(t,e)){if(r!==e.inputValue)return{inputValue:r};if(i!==e.opensInNewWindow)return{opensInNewWindow:i}}return null}}]),e}(o.Component),D=Object(y.withSpokenMessages)(V),U=Object(a.__)("Link"),K={name:"core/link",title:U,tagName:"a",className:null,attributes:{url:"href",target:"target"},__unstablePasteRule:function(t,e){var n=e.html,r=e.plainText;if(Object(i.isCollapsed)(t))return t;var o=(n||r).replace(/<[^>]+>/g,"").trim();return Object(L.isURL)(o)?(window.console.log("Created link:\n\n",o),Object(i.applyFormat)(t,{type:"core/link",attributes:{url:Object(R.decodeEntities)(o)}})):t},edit:Object(y.withSpokenMessages)(function(t){function e(){var t;return Object(f.a)(this,e),(t=Object(m.a)(this,Object(h.a)(e).apply(this,arguments))).addLink=t.addLink.bind(Object(O.a)(t)),t.stopAddingLink=t.stopAddingLink.bind(Object(O.a)(t)),t.onRemoveFormat=t.onRemoveFormat.bind(Object(O.a)(t)),t.state={addingLink:!1},t}return Object(v.a)(e,t),Object(d.a)(e,[{key:"addLink",value:function(){var t=this.props,e=t.value,n=t.onChange,r=Object(i.getTextContent)(Object(i.slice)(e));r&&Object(L.isURL)(r)?n(Object(i.applyFormat)(e,{type:"core/link",attributes:{url:r}})):r&&Object(L.isEmail)(r)?n(Object(i.applyFormat)(e,{type:"core/link",attributes:{url:"mailto:".concat(r)}})):this.setState({addingLink:!0})}},{key:"stopAddingLink",value:function(){this.setState({addingLink:!1})}},{key:"onRemoveFormat",value:function(){var t=this.props,e=t.value,n=t.onChange,r=t.speak;n(Object(i.removeFormat)(e,"core/link")),r(Object(a.__)("Link removed."),"assertive")}},{key:"render",value:function(){var t=this.props,e=t.isActive,n=t.activeAttributes,r=t.value,i=t.onChange;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.RichTextShortcut,{type:"primary",character:"k",onUse:this.addLink}),Object(o.createElement)(c.RichTextShortcut,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),e&&Object(o.createElement)(c.RichTextToolbarButton,{name:"link",icon:"editor-unlink",title:Object(a.__)("Unlink"),onClick:this.onRemoveFormat,isActive:e,shortcutType:"primaryShift",shortcutCharacter:"k"}),!e&&Object(o.createElement)(c.RichTextToolbarButton,{name:"link",icon:"admin-links",title:U,onClick:this.addLink,isActive:e,shortcutType:"primary",shortcutCharacter:"k"}),Object(o.createElement)(D,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:e,activeAttributes:n,value:r,onChange:i}))}}]),e}(o.Component))},W=Object(a.__)("Strikethrough");[l,b,S,x,K,{name:"core/strikethrough",title:W,tagName:"s",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange;return Object(o.createElement)(c.RichTextToolbarButton,{icon:"editor-strikethrough",title:W,onClick:function(){return r(Object(i.toggleFormat)(n,{type:"core/strikethrough"}))},isActive:e})}},{name:"core/underline",title:Object(a.__)("Underline"),tagName:"span",className:null,attributes:{style:"style"},edit:function(t){var e=t.value,n=t.onChange,r=function(){n(Object(i.toggleFormat)(e,{type:"core/underline",attributes:{style:"text-decoration: underline;"}}))};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.RichTextShortcut,{type:"primary",character:"u",onUse:r}),Object(o.createElement)(c.__unstableRichTextInputEvent,{inputType:"formatUnderline",onInput:r}))}}].forEach((function(t){var e=t.name,n=Object(r.a)(t,["name"]);return Object(i.registerFormatType)(e,n)}))},5:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},54:function(t,e){!function(){t.exports=this.wp.htmlEntities}()},6:function(t,e){!function(){t.exports=this.wp.blockEditor}()},7:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}n.d(e,"a",(function(){return r}))},22:function(t,e){!function(){t.exports=this.wp.richText}()},25:function(t,e){!function(){t.exports=this.wp.dom}()},26:function(t,e){!function(){t.exports=this.wp.url}()},3:function(t,e){!function(){t.exports=this.wp.components}()},31:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return(i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}n.d(e,"a",(function(){return i}))},321:function(t,e,n){"use strict";n.r(e);var r=n(21),i=n(22),o=n(0),a=n(1),c=n(6),u=Object(a.__)("Bold"),l={name:"core/bold",title:u,tagName:"strong",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,a=function(){return r(Object(i.toggleFormat)(n,{type:"core/bold"}))};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.RichTextShortcut,{type:"primary",character:"b",onUse:a}),Object(o.createElement)(c.RichTextToolbarButton,{name:"bold",icon:"editor-bold",title:u,onClick:a,isActive:e,shortcutType:"primary",shortcutCharacter:"b"}),Object(o.createElement)(c.__unstableRichTextInputEvent,{inputType:"formatBold",onInput:a}))}},s=Object(a.__)("Inline Code"),b={name:"core/code",title:s,tagName:"code",className:null,__unstableInputRule:function(t){var e=t,n=e.start,r=e.text;if("`"!==r.slice(n-1,n))return t;var o=r.slice(0,n-1).lastIndexOf("`");if(-1===o)return t;var a=o,c=n-2;return a===c?t:(t=Object(i.remove)(t,a,a+1),t=Object(i.remove)(t,c,c+1),t=Object(i.applyFormat)(t,{type:"core/code"},a,c))},edit:function(t){var e=t.value,n=t.onChange,r=t.isActive;return Object(o.createElement)(c.RichTextToolbarButton,{icon:"editor-code",title:s,onClick:function(){return n(Object(i.toggleFormat)(e,{type:"core/code"}))},isActive:r})}},p=n(7),f=n(12),d=n(11),m=n(13),h=n(14),O=n(5),v=n(15),j=n(18),y=n(3),g=n(19),k=n(25),w=["image"],_=Object(a.__)("Inline image"),E=function(t){return t.stopPropagation()},C=function(t){var e=t.dependencies,n=Object(r.a)(t,["dependencies"]);return Object(o.createElement)(y.Popover,Object(j.a)({position:"bottom center",focusOnMount:!1,anchorRect:Object(o.useMemo)((function(){return Object(k.computeCaretRect)()}),e)},n))},S={name:"core/image",title:_,keywords:[Object(a.__)("photo"),Object(a.__)("media")],object:!0,tagName:"img",className:null,attributes:{className:"class",style:"style",url:"src",alt:"alt"},edit:function(t){function e(){var t;return Object(f.a)(this,e),(t=Object(m.a)(this,Object(h.a)(e).apply(this,arguments))).onChange=t.onChange.bind(Object(O.a)(t)),t.onKeyDown=t.onKeyDown.bind(Object(O.a)(t)),t.openModal=t.openModal.bind(Object(O.a)(t)),t.closeModal=t.closeModal.bind(Object(O.a)(t)),t.state={modal:!1},t}return Object(v.a)(e,t),Object(d.a)(e,[{key:"onChange",value:function(t){this.setState({width:t})}},{key:"onKeyDown",value:function(t){[g.LEFT,g.DOWN,g.RIGHT,g.UP,g.BACKSPACE,g.ENTER].indexOf(t.keyCode)>-1&&t.stopPropagation()}},{key:"openModal",value:function(){this.setState({modal:!0})}},{key:"closeModal",value:function(){this.setState({modal:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.value,r=e.onChange,u=e.isObjectActive,l=e.activeObjectAttributes,s=l.style;return Object(o.createElement)(c.MediaUploadCheck,null,Object(o.createElement)(c.RichTextToolbarButton,{icon:Object(o.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(y.Path,{d:"M4 16h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2zM4 5h10v9H4V5zm14 9v2h4v-2h-4zM2 20h20v-2H2v2zm6.4-8.8L7 9.4 5 12h8l-2.6-3.4-2 2.6z"})),title:_,onClick:this.openModal,isActive:u}),this.state.modal&&Object(o.createElement)(c.MediaUpload,{allowedTypes:w,onSelect:function(e){var o=e.id,a=e.url,c=e.alt,u=e.width;t.closeModal(),r(Object(i.insertObject)(n,{type:"core/image",attributes:{className:"wp-image-".concat(o),style:"width: ".concat(Math.min(u,150),"px;"),url:a,alt:c}}))},onClose:this.closeModal,render:function(t){return(0,t.open)(),null}}),u&&Object(o.createElement)(C,{dependencies:[s,n.start]},Object(o.createElement)("form",{className:"editor-format-toolbar__image-container-content block-editor-format-toolbar__image-container-content",onKeyPress:E,onKeyDown:this.onKeyDown,onSubmit:function(e){var i=n.replacements.slice();i[n.start]={type:"core/image",attributes:Object(p.a)({},l,{style:"width: ".concat(t.state.width,"px;")})},r(Object(p.a)({},n,{replacements:i})),e.preventDefault()}},Object(o.createElement)(y.TextControl,{className:"editor-format-toolbar__image-container-value block-editor-format-toolbar__image-container-value",type:"number",label:Object(a.__)("Width"),value:this.state.width,min:1,onChange:this.onChange}),Object(o.createElement)(y.IconButton,{icon:"editor-break",label:Object(a.__)("Apply"),type:"submit"}))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeObjectAttributes.style;return n===e.previousStyle?null:n?{width:n.replace(/\D/g,""),previousStyle:n}:{width:void 0,previousStyle:n}}}]),e}(o.Component)},T=Object(a.__)("Italic"),x={name:"core/italic",title:T,tagName:"em",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,a=function(){return r(Object(i.toggleFormat)(n,{type:"core/italic"}))};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.RichTextShortcut,{type:"primary",character:"i",onUse:a}),Object(o.createElement)(c.RichTextToolbarButton,{name:"italic",icon:"editor-italic",title:T,onClick:a,isActive:e,shortcutType:"primary",shortcutCharacter:"i"}),Object(o.createElement)(c.__unstableRichTextInputEvent,{inputType:"formatItalic",onInput:a}))}},L=n(26),R=n(52),P=n(2);function A(t){if(!t)return!1;var e=t.trim();if(!e)return!1;if(/^\S+:/.test(e)){var n=Object(L.getProtocol)(e);if(!Object(L.isValidProtocol)(n))return!1;if(Object(P.startsWith)(n,"http")&&!/^https?:\/\/[^\/\s]/i.test(e))return!1;var r=Object(L.getAuthority)(e);if(!Object(L.isValidAuthority)(r))return!1;var i=Object(L.getPath)(e);if(i&&!Object(L.isValidPath)(i))return!1;var o=Object(L.getQueryString)(e);if(o&&!Object(L.isValidQueryString)(o))return!1;var a=Object(L.getFragment)(e);if(a&&!Object(L.isValidFragment)(a))return!1}return!(Object(P.startsWith)(e,"#")&&!Object(L.isValidFragment)(e))}function N(t){var e=t.url,n=t.opensInNewWindow,r=t.text,i={type:"core/link",attributes:{url:e}};if(n){var o=Object(a.sprintf)(Object(a.__)("%s (opens in a new tab)"),r);i.attributes.target="_blank",i.attributes.rel="noreferrer noopener",i.attributes["aria-label"]=o}return i}var F=function(t){return t.stopPropagation()};function I(t,e){return t.addingLink||e.editLink}var M=function(t){var e=t.isActive,n=t.addingLink,i=t.value,a=Object(r.a)(t,["isActive","addingLink","value"]),u=Object(o.useMemo)((function(){var t=window.getSelection(),e=t.rangeCount>0?t.getRangeAt(0):null;if(e){if(n)return Object(k.getRectangleFromRange)(e);var r=e.startContainer;for(r=r.nextElementSibling||r;r.nodeType!==window.Node.ELEMENT_NODE;)r=r.parentNode;var i=r.closest("a");return i?i.getBoundingClientRect():void 0}}),[e,n,i.start,i.end]);return u?Object(o.createElement)(c.URLPopover,Object(j.a)({anchorRect:u},a)):null},V=function(t){function e(){var t;return Object(f.a)(this,e),(t=Object(m.a)(this,Object(h.a)(e).apply(this,arguments))).editLink=t.editLink.bind(Object(O.a)(t)),t.submitLink=t.submitLink.bind(Object(O.a)(t)),t.onKeyDown=t.onKeyDown.bind(Object(O.a)(t)),t.onChangeInputValue=t.onChangeInputValue.bind(Object(O.a)(t)),t.setLinkTarget=t.setLinkTarget.bind(Object(O.a)(t)),t.onFocusOutside=t.onFocusOutside.bind(Object(O.a)(t)),t.resetState=t.resetState.bind(Object(O.a)(t)),t.autocompleteRef=Object(o.createRef)(),t.state={opensInNewWindow:!1,inputValue:""},t}return Object(v.a)(e,t),Object(d.a)(e,[{key:"onKeyDown",value:function(t){[g.LEFT,g.DOWN,g.RIGHT,g.UP,g.BACKSPACE,g.ENTER].indexOf(t.keyCode)>-1&&t.stopPropagation()}},{key:"onChangeInputValue",value:function(t){this.setState({inputValue:t})}},{key:"setLinkTarget",value:function(t){var e=this.props,n=e.activeAttributes.url,r=void 0===n?"":n,o=e.value,a=e.onChange;if(this.setState({opensInNewWindow:t}),!I(this.props,this.state)){var c=Object(i.getTextContent)(Object(i.slice)(o));a(Object(i.applyFormat)(o,N({url:r,opensInNewWindow:t,text:c})))}}},{key:"editLink",value:function(t){this.setState({editLink:!0}),t.preventDefault()}},{key:"submitLink",value:function(t){var e=this.props,n=e.isActive,r=e.value,o=e.onChange,c=e.speak,u=this.state,l=u.inputValue,s=u.opensInNewWindow,b=Object(L.prependHTTP)(l),p=N({url:b,opensInNewWindow:s,text:Object(i.getTextContent)(Object(i.slice)(r))});if(t.preventDefault(),Object(i.isCollapsed)(r)&&!n){var f=Object(i.applyFormat)(Object(i.create)({text:b}),p,0,b.length);o(Object(i.insert)(r,f))}else o(Object(i.applyFormat)(r,p));this.resetState(),A(b)?c(n?Object(a.__)("Link edited."):Object(a.__)("Link inserted."),"assertive"):c(Object(a.__)("Warning: the link has been inserted but may have errors. Please test it."),"assertive")}},{key:"onFocusOutside",value:function(){var t=this.autocompleteRef.current;t&&t.contains(document.activeElement)||this.resetState()}},{key:"resetState",value:function(){this.props.stopAddingLink(),this.setState({editLink:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.isActive,r=e.activeAttributes.url,i=e.addingLink,u=e.value;if(!n&&!i)return null;var l=this.state,s=l.inputValue,b=l.opensInNewWindow,p=I(this.props,this.state);return Object(o.createElement)(M,{value:u,isActive:n,addingLink:i,onFocusOutside:this.onFocusOutside,onClose:this.resetState,focusOnMount:!!p&&"firstElement",renderSettings:function(){return Object(o.createElement)(y.ToggleControl,{label:Object(a.__)("Open in New Tab"),checked:b,onChange:t.setLinkTarget})}},p?Object(o.createElement)(c.URLPopover.LinkEditor,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",value:s,onChangeInputValue:this.onChangeInputValue,onKeyDown:this.onKeyDown,onKeyPress:F,onSubmit:this.submitLink,autocompleteRef:this.autocompleteRef}):Object(o.createElement)(c.URLPopover.LinkViewer,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:F,url:r,onEditLinkClick:this.editLink,linkClassName:A(Object(L.prependHTTP)(r))?void 0:"has-invalid-link"}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeAttributes,r=n.url,i="_blank"===n.target;if(!I(t,e)){if(r!==e.inputValue)return{inputValue:r};if(i!==e.opensInNewWindow)return{opensInNewWindow:i}}return null}}]),e}(o.Component),D=Object(y.withSpokenMessages)(V),U=Object(a.__)("Link"),K={name:"core/link",title:U,tagName:"a",className:null,attributes:{url:"href",target:"target"},__unstablePasteRule:function(t,e){var n=e.html,r=e.plainText;if(Object(i.isCollapsed)(t))return t;var o=(n||r).replace(/<[^>]+>/g,"").trim();return Object(L.isURL)(o)?(window.console.log("Created link:\n\n",o),Object(i.applyFormat)(t,{type:"core/link",attributes:{url:Object(R.decodeEntities)(o)}})):t},edit:Object(y.withSpokenMessages)(function(t){function e(){var t;return Object(f.a)(this,e),(t=Object(m.a)(this,Object(h.a)(e).apply(this,arguments))).addLink=t.addLink.bind(Object(O.a)(t)),t.stopAddingLink=t.stopAddingLink.bind(Object(O.a)(t)),t.onRemoveFormat=t.onRemoveFormat.bind(Object(O.a)(t)),t.state={addingLink:!1},t}return Object(v.a)(e,t),Object(d.a)(e,[{key:"addLink",value:function(){var t=this.props,e=t.value,n=t.onChange,r=Object(i.getTextContent)(Object(i.slice)(e));r&&Object(L.isURL)(r)?n(Object(i.applyFormat)(e,{type:"core/link",attributes:{url:r}})):r&&Object(L.isEmail)(r)?n(Object(i.applyFormat)(e,{type:"core/link",attributes:{url:"mailto:".concat(r)}})):this.setState({addingLink:!0})}},{key:"stopAddingLink",value:function(){this.setState({addingLink:!1})}},{key:"onRemoveFormat",value:function(){var t=this.props,e=t.value,n=t.onChange,r=t.speak;n(Object(i.removeFormat)(e,"core/link")),r(Object(a.__)("Link removed."),"assertive")}},{key:"render",value:function(){var t=this.props,e=t.isActive,n=t.activeAttributes,r=t.value,i=t.onChange;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.RichTextShortcut,{type:"primary",character:"k",onUse:this.addLink}),Object(o.createElement)(c.RichTextShortcut,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),e&&Object(o.createElement)(c.RichTextToolbarButton,{name:"link",icon:"editor-unlink",title:Object(a.__)("Unlink"),onClick:this.onRemoveFormat,isActive:e,shortcutType:"primaryShift",shortcutCharacter:"k"}),!e&&Object(o.createElement)(c.RichTextToolbarButton,{name:"link",icon:"admin-links",title:U,onClick:this.addLink,isActive:e,shortcutType:"primary",shortcutCharacter:"k"}),Object(o.createElement)(D,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:e,activeAttributes:n,value:r,onChange:i}))}}]),e}(o.Component))},W=Object(a.__)("Strikethrough");[l,b,S,x,K,{name:"core/strikethrough",title:W,tagName:"s",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange;return Object(o.createElement)(c.RichTextToolbarButton,{icon:"editor-strikethrough",title:W,onClick:function(){return r(Object(i.toggleFormat)(n,{type:"core/strikethrough"}))},isActive:e})}},{name:"core/underline",title:Object(a.__)("Underline"),tagName:"span",className:null,attributes:{style:"style"},edit:function(t){var e=t.value,n=t.onChange,r=function(){n(Object(i.toggleFormat)(e,{type:"core/underline",attributes:{style:"text-decoration: underline;"}}))};return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.RichTextShortcut,{type:"primary",character:"u",onUse:r}),Object(o.createElement)(c.__unstableRichTextInputEvent,{inputType:"formatUnderline",onInput:r}))}}].forEach((function(t){var e=t.name,n=Object(r.a)(t,["name"]);return Object(i.registerFormatType)(e,n)}))},5:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},52:function(t,e){!function(){t.exports=this.wp.htmlEntities}()},6:function(t,e){!function(){t.exports=this.wp.blockEditor}()},7:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:10;if(o(r)&&t(e))if("function"==typeof i)if("number"==typeof u){var c={callback:i,priority:u,namespace:e};if(n[r]){var a,l=n[r].handlers;for(a=l.length;a>0&&!(u>=l[a-1].priority);a--);a===l.length?l[a]=c:l.splice(a,0,c),(n.__current||[]).forEach((function(n){n.name===r&&n.currentIndex>=a&&n.currentIndex++}))}else n[r]={handlers:[c],runs:0};"hookAdded"!==r&&F("hookAdded",r,e,i,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var u=function(n,r){return function(e,i){if(o(e)&&(r||t(i))){if(!n[e])return 0;var u=0;if(r)u=n[e].handlers.length,n[e]={runs:n[e].runs,handlers:[]};else for(var c=n[e].handlers,a=function(r){c[r].namespace===i&&(c.splice(r,1),u++,(n.__current||[]).forEach((function(n){n.name===e&&n.currentIndex>=r&&n.currentIndex--})))},l=c.length-1;l>=0;l--)a(l);return"hookRemoved"!==e&&F("hookRemoved",e,i),u}}};var c=function(n){return function(r,e){return void 0!==e?r in n&&n[r].handlers.some((function(n){return n.namespace===e})):r in n}};e(17);var a=function(n,r){return function(e){n[e]||(n[e]={handlers:[],runs:0}),n[e].runs++;var t=n[e].handlers;for(var o=arguments.length,i=new Array(o>1?o-1:0),u=1;u3&&void 0!==arguments[3]?arguments[3]:10;if(o(r)&&t(e))if("function"==typeof i)if("number"==typeof u){var c={callback:i,priority:u,namespace:e};if(n[r]){var a,l=n[r].handlers;for(a=l.length;a>0&&!(u>=l[a-1].priority);a--);a===l.length?l[a]=c:l.splice(a,0,c),(n.__current||[]).forEach((function(n){n.name===r&&n.currentIndex>=a&&n.currentIndex++}))}else n[r]={handlers:[c],runs:0};"hookAdded"!==r&&F("hookAdded",r,e,i,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var u=function(n,r){return function(e,i){if(o(e)&&(r||t(i))){if(!n[e])return 0;var u=0;if(r)u=n[e].handlers.length,n[e]={runs:n[e].runs,handlers:[]};else for(var c=n[e].handlers,a=function(r){c[r].namespace===i&&(c.splice(r,1),u++,(n.__current||[]).forEach((function(n){n.name===e&&n.currentIndex>=r&&n.currentIndex--})))},l=c.length-1;l>=0;l--)a(l);return"hookRemoved"!==e&&F("hookRemoved",e,i),u}}};var c=function(n){return function(r,e){return void 0!==e?r in n&&n[r].handlers.some((function(n){return n.namespace===e})):r in n}};e(17);var a=function(n,r){return function(e){n[e]||(n[e]={handlers:[],runs:0}),n[e].runs++;var t=n[e].handlers;for(var o=arguments.length,i=new Array(o>1?o-1:0),u=1;u=0),a.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,a.width?parseInt(a.width):0);break;case"e":e=a.precision?parseFloat(e).toExponential(a.precision):parseFloat(e).toExponential();break;case"f":e=a.precision?parseFloat(e).toFixed(a.precision):parseFloat(e);break;case"g":e=a.precision?String(Number(e.toPrecision(a.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=a.precision?e.substring(0,a.precision):e;break;case"t":e=String(!!e),e=a.precision?e.substring(0,a.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=a.precision?e.substring(0,a.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=a.precision?e.substring(0,a.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?g+=e:(!i.number.test(a.type)||l&&!a.sign?f="":(f=l?"+":"-",e=e.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",p=a.width-(f+e).length,s=a.width&&p>0?c.repeat(p):"",g+=a.align?f+e+s:"0"===c?f+s+e:s+f+e)}return g}(function(n){if(a[n])return a[n];var t,e=n,r=[],o=0;for(;e;){if(null!==(t=i.text.exec(e)))r.push(t[0]);else if(null!==(t=i.modulo.exec(e)))r.push("%");else{if(null===(t=i.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var u=[],s=t[2],c=[];if(null===(c=i.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(u.push(c[1]);""!==(s=s.substring(c[0].length));)if(null!==(c=i.key_access.exec(s)))u.push(c[1]);else{if(null===(c=i.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");u.push(c[1])}t[2]=u}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}e=e.substring(t[0].length)}return a[n]=r}(n),arguments)}function u(n,t){return o.apply(null,[n].concat(t||[]))}var a=Object.create(null);t.sprintf=o,t.vsprintf=u,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=u,void 0===(r=function(){return{sprintf:o,vsprintf:u}}.call(t,e,t,n))||(n.exports=r))}()},398:function(n,t,e){"use strict";e.r(t);var r,i,o,u,a=e(7);r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},i=["(","?"],o={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var s={"!":function(n){return!n},"*":function(n,t){return n*t},"/":function(n,t){return n/t},"%":function(n,t){return n%t},"+":function(n,t){return n+t},"-":function(n,t){return n-t},"<":function(n,t){return n":function(n,t){return n>t},">=":function(n,t){return n>=t},"==":function(n,t){return n===t},"!=":function(n,t){return n!==t},"&&":function(n,t){return n&&t},"||":function(n,t){return n||t},"?:":function(n,t,e){if(n)throw t;return e}};function c(n){var t=function(n){for(var t,e,a,s,c=[],p=[];t=n.match(u);){for(e=t[0],(a=n.substr(0,t.index).trim())&&c.push(a);s=p.pop();){if(o[e]){if(o[e][0]===s){e=o[e][1]||e;break}}else if(i.indexOf(s)>=0||r[s]1&&void 0!==arguments[1]?arguments[1]:"default";b.data[t]=Object(a.a)({},y,b.data[t],n),b.data[t][""]=Object(a.a)({},y[""],b.data[t][""])}function m(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return b.data[n]||x(void 0,n),b.dcnpgettext(n,t,e,r,i)}function w(n,t){return m(t,void 0,n)}function _(n,t,e){return m(e,t,n)}function k(n,t,e,r){return m(r,void 0,n,t,e)}function j(n,t,e,r,i){return m(i,r,n,t,e)}function O(n){try{for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r=0),a.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,a.width?parseInt(a.width):0);break;case"e":e=a.precision?parseFloat(e).toExponential(a.precision):parseFloat(e).toExponential();break;case"f":e=a.precision?parseFloat(e).toFixed(a.precision):parseFloat(e);break;case"g":e=a.precision?String(Number(e.toPrecision(a.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=a.precision?e.substring(0,a.precision):e;break;case"t":e=String(!!e),e=a.precision?e.substring(0,a.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=a.precision?e.substring(0,a.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=a.precision?e.substring(0,a.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?g+=e:(!i.number.test(a.type)||l&&!a.sign?f="":(f=l?"+":"-",e=e.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",p=a.width-(f+e).length,s=a.width&&p>0?c.repeat(p):"",g+=a.align?f+e+s:"0"===c?f+s+e:s+f+e)}return g}(function(n){if(a[n])return a[n];var t,e=n,r=[],o=0;for(;e;){if(null!==(t=i.text.exec(e)))r.push(t[0]);else if(null!==(t=i.modulo.exec(e)))r.push("%");else{if(null===(t=i.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var u=[],s=t[2],c=[];if(null===(c=i.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(u.push(c[1]);""!==(s=s.substring(c[0].length));)if(null!==(c=i.key_access.exec(s)))u.push(c[1]);else{if(null===(c=i.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");u.push(c[1])}t[2]=u}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}e=e.substring(t[0].length)}return a[n]=r}(n),arguments)}function u(n,t){return o.apply(null,[n].concat(t||[]))}var a=Object.create(null);t.sprintf=o,t.vsprintf=u,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=u,void 0===(r=function(){return{sprintf:o,vsprintf:u}}.call(t,e,t,n))||(n.exports=r))}()},329:function(n,t,e){"use strict";e.r(t);var r,i,o,u,a=e(7);r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},i=["(","?"],o={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var s={"!":function(n){return!n},"*":function(n,t){return n*t},"/":function(n,t){return n/t},"%":function(n,t){return n%t},"+":function(n,t){return n+t},"-":function(n,t){return n-t},"<":function(n,t){return n":function(n,t){return n>t},">=":function(n,t){return n>=t},"==":function(n,t){return n===t},"!=":function(n,t){return n!==t},"&&":function(n,t){return n&&t},"||":function(n,t){return n||t},"?:":function(n,t,e){if(n)throw t;return e}};function c(n){var t=function(n){for(var t,e,a,s,c=[],p=[];t=n.match(u);){for(e=t[0],(a=n.substr(0,t.index).trim())&&c.push(a);s=p.pop();){if(o[e]){if(o[e][0]===s){e=o[e][1]||e;break}}else if(i.indexOf(s)>=0||r[s]1&&void 0!==arguments[1]?arguments[1]:"default";b.data[t]=Object(a.a)({},y,b.data[t],n),b.data[t][""]=Object(a.a)({},y[""],b.data[t][""])}function m(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return b.data[n]||x(void 0,n),b.dcnpgettext(n,t,e,r,i)}function w(n,t){return m(t,void 0,n)}function _(n,t,e){return m(e,t,n)}function k(n,t,e,r){return m(r,void 0,n,t,e)}function j(n,t,e,r,i){return m(i,r,n,t,e)}function O(n){try{for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:window).navigator.platform;return-1!==t.indexOf("Mac")||Object(o.includes)(["iPad","iPhone"],t)}r.d(n,"BACKSPACE",(function(){return a})),r.d(n,"TAB",(function(){return f})),r.d(n,"ENTER",(function(){return l})),r.d(n,"ESCAPE",(function(){return d})),r.d(n,"SPACE",(function(){return b})),r.d(n,"LEFT",(function(){return s})),r.d(n,"UP",(function(){return j})),r.d(n,"RIGHT",(function(){return O})),r.d(n,"DOWN",(function(){return p})),r.d(n,"DELETE",(function(){return y})),r.d(n,"F10",(function(){return v})),r.d(n,"ALT",(function(){return h})),r.d(n,"CTRL",(function(){return m})),r.d(n,"COMMAND",(function(){return g})),r.d(n,"SHIFT",(function(){return S})),r.d(n,"modifiers",(function(){return A})),r.d(n,"rawShortcut",(function(){return w})),r.d(n,"displayShortcutList",(function(){return C})),r.d(n,"displayShortcut",(function(){return P})),r.d(n,"shortcutAriaLabel",(function(){return E})),r.d(n,"isKeyboardEvent",(function(){return _}));var a=8,f=9,l=13,d=27,b=32,s=37,j=38,O=39,p=40,y=46,v=121,h="alt",m="ctrl",g="meta",S="shift",A={primary:function(t){return t()?[g]:[m]},primaryShift:function(t){return t()?[S,g]:[m,S]},primaryAlt:function(t){return t()?[h,g]:[m,h]},secondary:function(t){return t()?[S,h,g]:[m,S,h]},access:function(t){return t()?[m,h]:[S,h]},ctrl:function(){return[m]},alt:function(){return[h]},ctrlShift:function(){return[m,S]},shift:function(){return[S]},shiftAlt:function(){return[S,h]}},w=Object(o.mapValues)(A,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return[].concat(Object(u.a)(t(r)),[n.toLowerCase()]).join("+")}})),C=Object(o.mapValues)(A,(function(t){return function(n){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=c(),f=(r={},Object(e.a)(r,h,a?"⌥":"Alt"),Object(e.a)(r,m,a?"^":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(c).reduce((function(t,n){var r=Object(o.get)(f,n,n);return[].concat(Object(u.a)(t),a?[r]:[r,"+"])}),[]),d=Object(o.capitalize)(n);return[].concat(Object(u.a)(l),[d])}})),P=Object(o.mapValues)(C,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}})),E=Object(o.mapValues)(A,(function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,m,"Control"),Object(e.a)(r,h,f?"Option":"Alt"),Object(e.a)(r,",",Object(c.__)("Comma")),Object(e.a)(r,".",Object(c.__)("Period")),Object(e.a)(r,"`",Object(c.__)("Backtick")),r);return[].concat(Object(u.a)(t(a)),[n]).map((function(t){return Object(o.capitalize)(Object(o.get)(l,t,t))})).join(f?" ":" + ")}})),_=Object(o.mapValues)(A,(function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e);return!!u.every((function(t){return n["".concat(t,"Key")]}))&&(r?n.key===r:Object(o.includes)(u,n.key.toLowerCase()))}}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.keycodes=function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=337)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},10:function(t,n,r){"use strict";function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,"a",(function(){return e}))},17:function(t,n,r){"use strict";var e=r(30);function u(t){return function(t){if(Array.isArray(t)){for(var n=0,r=new Array(t.length);n0&&void 0!==arguments[0]?arguments[0]:window).navigator.platform;return-1!==t.indexOf("Mac")||Object(o.includes)(["iPad","iPhone"],t)}r.d(n,"BACKSPACE",(function(){return a})),r.d(n,"TAB",(function(){return f})),r.d(n,"ENTER",(function(){return l})),r.d(n,"ESCAPE",(function(){return d})),r.d(n,"SPACE",(function(){return b})),r.d(n,"LEFT",(function(){return s})),r.d(n,"UP",(function(){return j})),r.d(n,"RIGHT",(function(){return O})),r.d(n,"DOWN",(function(){return p})),r.d(n,"DELETE",(function(){return y})),r.d(n,"F10",(function(){return v})),r.d(n,"ALT",(function(){return h})),r.d(n,"CTRL",(function(){return m})),r.d(n,"COMMAND",(function(){return g})),r.d(n,"SHIFT",(function(){return S})),r.d(n,"modifiers",(function(){return A})),r.d(n,"rawShortcut",(function(){return w})),r.d(n,"displayShortcutList",(function(){return C})),r.d(n,"displayShortcut",(function(){return P})),r.d(n,"shortcutAriaLabel",(function(){return E})),r.d(n,"isKeyboardEvent",(function(){return _}));var a=8,f=9,l=13,d=27,b=32,s=37,j=38,O=39,p=40,y=46,v=121,h="alt",m="ctrl",g="meta",S="shift",A={primary:function(t){return t()?[g]:[m]},primaryShift:function(t){return t()?[S,g]:[m,S]},primaryAlt:function(t){return t()?[h,g]:[m,h]},secondary:function(t){return t()?[S,h,g]:[m,S,h]},access:function(t){return t()?[m,h]:[S,h]},ctrl:function(){return[m]},alt:function(){return[h]},ctrlShift:function(){return[m,S]},shift:function(){return[S]},shiftAlt:function(){return[S,h]}},w=Object(o.mapValues)(A,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return[].concat(Object(u.a)(t(r)),[n.toLowerCase()]).join("+")}})),C=Object(o.mapValues)(A,(function(t){return function(n){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=c(),f=(r={},Object(e.a)(r,h,a?"⌥":"Alt"),Object(e.a)(r,m,a?"^":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(c).reduce((function(t,n){var r=Object(o.get)(f,n,n);return[].concat(Object(u.a)(t),a?[r]:[r,"+"])}),[]),d=Object(o.capitalize)(n);return[].concat(Object(u.a)(l),[d])}})),P=Object(o.mapValues)(C,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}})),E=Object(o.mapValues)(A,(function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,m,"Control"),Object(e.a)(r,h,f?"Option":"Alt"),Object(e.a)(r,",",Object(c.__)("Comma")),Object(e.a)(r,".",Object(c.__)("Period")),Object(e.a)(r,"`",Object(c.__)("Backtick")),r);return[].concat(Object(u.a)(t(a)),[n]).map((function(t){return Object(o.capitalize)(Object(o.get)(l,t,t))})).join(f?" ":" + ")}})),_=Object(o.mapValues)(A,(function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e);return!!u.every((function(t){return n["".concat(t,"Key")]}))&&(r?n.key===r:Object(o.includes)(u,n.key.toLowerCase()))}}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/list-reusable-blocks.js b/wp-includes/js/dist/list-reusable-blocks.js index 7ac6bd46f5..9514979f25 100644 --- a/wp-includes/js/dist/list-reusable-blocks.js +++ b/wp-includes/js/dist/list-reusable-blocks.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["listReusableBlocks"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 397); +/******/ return __webpack_require__(__webpack_require__.s = 327); /******/ }) /************************************************************************/ /******/ ({ @@ -214,7 +214,7 @@ function _inherits(subClass, superClass) { /***/ 20: /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(48); +module.exports = __webpack_require__(47); /***/ }), @@ -256,7 +256,7 @@ function _typeof(obj) { /***/ }), -/***/ 397: +/***/ 327: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -273,7 +273,7 @@ var regenerator = __webpack_require__(20); var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(44); +var asyncToGenerator = __webpack_require__(43); // EXTERNAL MODULE: external "lodash" var external_lodash_ = __webpack_require__(2); @@ -763,7 +763,7 @@ document.addEventListener('DOMContentLoaded', function () { /***/ }), -/***/ 44: +/***/ 43: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -806,7 +806,7 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 48: +/***/ 47: /***/ (function(module, exports, __webpack_require__) { /** diff --git a/wp-includes/js/dist/list-reusable-blocks.min.js b/wp-includes/js/dist/list-reusable-blocks.min.js index 1d95a7136f..649fb9be90 100644 --- a/wp-includes/js/dist/list-reusable-blocks.min.js +++ b/wp-includes/js/dist/list-reusable-blocks.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.listReusableBlocks=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));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=397)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},11:function(t,e,n){"use strict";function r(t,e){for(var n=0;n");var e=document.querySelector(".wp-header-end");e&&e.parentNode.insertBefore(t,e)}}),e)}}))},44:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}}n.d(e,"a",(function(){return o}))},48:function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return N()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=s(t,e,n);if("normal"===u.type){if(r=n.done?h:f,u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",f="suspendedYield",p="executing",h="completed",d={};function y(){}function b(){}function m(){}var v={};v[i]=function(){return this};var w=Object.getPrototypeOf,g=w&&w(w(L([])));g&&g!==n&&r.call(g,i)&&(v=g);var O=m.prototype=y.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function j(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var c=s(t[n],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(l).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function x(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function L(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},5:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},8:function(t,e){!function(){t.exports=this.wp.compose}()}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.listReusableBlocks=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));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=327)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},11:function(t,e,n){"use strict";function r(t,e){for(var n=0;n");var e=document.querySelector(".wp-header-end");e&&e.parentNode.insertBefore(t,e)}}),e)}}))},43:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}}n.d(e,"a",(function(){return o}))},47:function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return N()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=s(t,e,n);if("normal"===u.type){if(r=n.done?h:f,u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",f="suspendedYield",p="executing",h="completed",d={};function y(){}function b(){}function m(){}var v={};v[i]=function(){return this};var w=Object.getPrototypeOf,g=w&&w(w(L([])));g&&g!==n&&r.call(g,i)&&(v=g);var O=m.prototype=y.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function j(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var c=s(t[n],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(l).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function x(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function L(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},5:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},8:function(t,e){!function(){t.exports=this.wp.compose}()}}); \ No newline at end of file diff --git a/wp-includes/js/dist/media-utils.js b/wp-includes/js/dist/media-utils.js index e24d5bd42a..82f114b623 100644 --- a/wp-includes/js/dist/media-utils.js +++ b/wp-includes/js/dist/media-utils.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["mediaUtils"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 402); +/******/ return __webpack_require__(__webpack_require__.s = 331); /******/ }) /************************************************************************/ /******/ ({ @@ -269,7 +269,7 @@ function _toConsumableArray(arr) { /***/ 20: /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(48); +module.exports = __webpack_require__(47); /***/ }), @@ -363,36 +363,7 @@ function _typeof(obj) { /***/ }), -/***/ 35: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blob"]; }()); - -/***/ }), - -/***/ 38: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -/***/ }), - -/***/ 39: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); -} - -/***/ }), - -/***/ 402: +/***/ 331: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -783,7 +754,7 @@ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator); var objectSpread = __webpack_require__(7); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(44); +var asyncToGenerator = __webpack_require__(43); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules var toConsumableArray = __webpack_require__(17); @@ -1127,7 +1098,36 @@ function createMediaFromFile(file, additionalData) { /***/ }), -/***/ 44: +/***/ 35: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blob"]; }()); + +/***/ }), + +/***/ 38: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + +/***/ }), + +/***/ 39: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); +} + +/***/ }), + +/***/ 43: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1170,7 +1170,7 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 48: +/***/ 47: /***/ (function(module, exports, __webpack_require__) { /** diff --git a/wp-includes/js/dist/media-utils.min.js b/wp-includes/js/dist/media-utils.min.js index 283c822711..1e9fde9122 100644 --- a/wp-includes/js/dist/media-utils.min.js +++ b/wp-includes/js/dist/media-utils.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.mediaUtils=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=402)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},10:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))},11:function(t,e,r){"use strict";function n(t,e){for(var r=0;r0&&this.buildAndSetGalleryFrame(),this.frame.open()}},{key:"render",value:function(){return this.props.render({open:this.openModal})}}]),e}(s.Component),m=r(20),b=r.n(m),v=r(7),g=r(44),w=r(17),O=r(23),j=r(32),_=r.n(j),x=r(35);function S(t){return E.apply(this,arguments)}function E(){return(E=Object(g.a)(b.a.mark((function t(e){var r,n,o,i,a,c,u,p,h,d,y,m,g,j,_,S,E,k,T,P,F,M,A,G,I,N,C,U,R;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.allowedTypes,n=e.additionalData,o=void 0===n?{}:n,i=e.filesList,a=e.maxUploadFileSize,c=e.onError,u=void 0===c?l.noop:c,p=e.onFileChange,h=e.wpAllowedMimeTypes,d=void 0===h?null:h,y=Object(w.a)(i),m=[],g=function(t,e){Object(x.revokeBlobURL)(Object(l.get)(m,[t,"url"])),m[t]=e,p(Object(l.compact)(m))},j=function(t){return!r||Object(l.some)(r,(function(e){return Object(l.includes)(e,"/")?e===t:Object(l.startsWith)(t,"".concat(e,"/"))}))},_=(b=d)?Object(l.flatMap)(b,(function(t,e){var r=t.split("/"),n=Object(O.a)(r,1)[0],o=e.split("|");return[t].concat(Object(w.a)(Object(l.map)(o,(function(t){return"".concat(n,"/").concat(t)}))))})):b,S=function(t){return Object(l.includes)(_,t)},E=function(t){t.message=[Object(s.createElement)("strong",{key:"filename"},t.file.name),": ",t.message],u(t)},k=[],T=!0,P=!1,F=void 0,t.prev=12,M=y[Symbol.iterator]();case 14:if(T=(A=M.next()).done){t.next=34;break}if(G=A.value,!_||S(G.type)){t.next=19;break}return E({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:Object(f.__)("Sorry, this file type is not permitted for security reasons."),file:G}),t.abrupt("continue",31);case 19:if(j(G.type)){t.next=22;break}return E({code:"MIME_TYPE_NOT_SUPPORTED",message:Object(f.__)("Sorry, this file type is not supported here."),file:G}),t.abrupt("continue",31);case 22:if(!(a&&G.size>a)){t.next=25;break}return E({code:"SIZE_ABOVE_LIMIT",message:Object(f.__)("This file exceeds the maximum upload size for this site."),file:G}),t.abrupt("continue",31);case 25:if(!(G.size<=0)){t.next=28;break}return E({code:"EMPTY_FILE",message:Object(f.__)("This file is empty."),file:G}),t.abrupt("continue",31);case 28:k.push(G),m.push({url:Object(x.createBlobURL)(G)}),p(m);case 31:T=!0,t.next=14;break;case 34:t.next=40;break;case 36:t.prev=36,t.t0=t.catch(12),P=!0,F=t.t0;case 40:t.prev=40,t.prev=41,T||null==M.return||M.return();case 43:if(t.prev=43,!P){t.next=46;break}throw F;case 46:return t.finish(43);case 47:return t.finish(40);case 48:I=0;case 49:if(!(I=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},5:function(t,e,r){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}r.d(e,"a",(function(){return n}))},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(10);function o(t){for(var e=1;e0&&this.buildAndSetGalleryFrame(),this.frame.open()}},{key:"render",value:function(){return this.props.render({open:this.openModal})}}]),e}(s.Component),m=r(20),b=r.n(m),v=r(7),g=r(43),w=r(17),O=r(23),j=r(32),_=r.n(j),x=r(35);function S(t){return E.apply(this,arguments)}function E(){return(E=Object(g.a)(b.a.mark((function t(e){var r,n,o,i,a,c,u,p,h,d,y,m,g,j,_,S,E,k,T,P,F,M,A,G,I,N,C,U,R;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.allowedTypes,n=e.additionalData,o=void 0===n?{}:n,i=e.filesList,a=e.maxUploadFileSize,c=e.onError,u=void 0===c?l.noop:c,p=e.onFileChange,h=e.wpAllowedMimeTypes,d=void 0===h?null:h,y=Object(w.a)(i),m=[],g=function(t,e){Object(x.revokeBlobURL)(Object(l.get)(m,[t,"url"])),m[t]=e,p(Object(l.compact)(m))},j=function(t){return!r||Object(l.some)(r,(function(e){return Object(l.includes)(e,"/")?e===t:Object(l.startsWith)(t,"".concat(e,"/"))}))},_=(b=d)?Object(l.flatMap)(b,(function(t,e){var r=t.split("/"),n=Object(O.a)(r,1)[0],o=e.split("|");return[t].concat(Object(w.a)(Object(l.map)(o,(function(t){return"".concat(n,"/").concat(t)}))))})):b,S=function(t){return Object(l.includes)(_,t)},E=function(t){t.message=[Object(s.createElement)("strong",{key:"filename"},t.file.name),": ",t.message],u(t)},k=[],T=!0,P=!1,F=void 0,t.prev=12,M=y[Symbol.iterator]();case 14:if(T=(A=M.next()).done){t.next=34;break}if(G=A.value,!_||S(G.type)){t.next=19;break}return E({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:Object(f.__)("Sorry, this file type is not permitted for security reasons."),file:G}),t.abrupt("continue",31);case 19:if(j(G.type)){t.next=22;break}return E({code:"MIME_TYPE_NOT_SUPPORTED",message:Object(f.__)("Sorry, this file type is not supported here."),file:G}),t.abrupt("continue",31);case 22:if(!(a&&G.size>a)){t.next=25;break}return E({code:"SIZE_ABOVE_LIMIT",message:Object(f.__)("This file exceeds the maximum upload size for this site."),file:G}),t.abrupt("continue",31);case 25:if(!(G.size<=0)){t.next=28;break}return E({code:"EMPTY_FILE",message:Object(f.__)("This file is empty."),file:G}),t.abrupt("continue",31);case 28:k.push(G),m.push({url:Object(x.createBlobURL)(G)}),p(m);case 31:T=!0,t.next=14;break;case 34:t.next=40;break;case 36:t.prev=36,t.t0=t.catch(12),P=!0,F=t.t0;case 40:t.prev=40,t.prev=41,T||null==M.return||M.return();case 43:if(t.prev=43,!P){t.next=46;break}throw F;case 46:return t.finish(43);case 47:return t.finish(40);case 48:I=0;case 49:if(!(I=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},5:function(t,e,r){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}r.d(e,"a",(function(){return n}))},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(10);function o(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[t];if(void 0===o)return e;var i=r(e[o],n);return i===e[o]?e:Object(f.a)({},e,Object(u.a)({},o,i))}}}("context")((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"CREATE_NOTICE":return[].concat(Object(c.a)(Object(a.reject)(t,{id:r.notice.id})),[r.notice]);case"REMOVE_NOTICE":return Object(a.reject)(t,{id:r.id})}return t})),l=e(20),h=e.n(l),p="global",d="info",v=h.a.mark(y);function y(){var t,r,e,n,o,i,c,u,f,s,l,y,g,m,b,w,O=arguments;return h.a.wrap((function(h){for(;;)switch(h.prev=h.next){case 0:if(t=O.length>0&&void 0!==O[0]?O[0]:d,r=O.length>1?O[1]:void 0,e=O.length>2&&void 0!==O[2]?O[2]:{},n=e.speak,o=void 0===n||n,i=e.isDismissible,c=void 0===i||i,u=e.context,f=void 0===u?p:u,s=e.id,l=void 0===s?Object(a.uniqueId)(f):s,y=e.actions,g=void 0===y?[]:y,m=e.type,b=void 0===m?"default":m,w=e.__unstableHTML,r=String(r),!o){h.next=8;break}return h.next=8,{type:"SPEAK",message:r,ariaLive:"snackbar"===b?"polite":"assertive"};case 8:return h.next=10,{type:"CREATE_NOTICE",context:f,notice:{id:l,status:t,content:r,__unstableHTML:w,isDismissible:c,actions:g,type:b}};case 10:case"end":return h.stop()}}),v)}function g(t,r){return y("success",t,r)}function m(t,r){return y("info",t,r)}function b(t,r){return y("error",t,r)}function w(t,r){return y("warning",t,r)}function O(t){return{type:"REMOVE_NOTICE",id:t,context:arguments.length>1&&void 0!==arguments[1]?arguments[1]:p}}var x=[];function E(t){return t[arguments.length>1&&void 0!==arguments[1]?arguments[1]:p]||x}var j=e(46),L={SPEAK:function(t){Object(j.speak)(t.message,t.ariaLive||"assertive")}};Object(i.registerStore)("core/notices",{reducer:s,actions:n,selectors:o,controls:L})},4:function(t,r){!function(){t.exports=this.wp.data}()},46:function(t,r){!function(){t.exports=this.wp.a11y}()},48:function(t,r,e){var n=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,r,e,n){var o=r&&r.prototype instanceof v?r:v,i=Object.create(o.prototype),c=new S(n||[]);return i._invoke=function(t,r,e){var n=s;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return P()}for(e.method=o,e.arg=i;;){var c=e.delegate;if(c){var a=j(c,e);if(a){if(a===d)continue;return a}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===s)throw n=p,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=h;var u=f(t,r,e);if("normal"===u.type){if(n=e.done?p:l,u.arg===d)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=p,e.method="throw",e.arg=u.arg)}}}(t,e,c),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var s="suspendedStart",l="suspendedYield",h="executing",p="completed",d={};function v(){}function y(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==e&&n.call(w,i)&&(m=w);var O=g.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(r){t[r]=function(t){return this._invoke(r,t)}}))}function E(t){var r;this._invoke=function(e,o){function i(){return new Promise((function(r,i){!function r(e,o,i,c){var a=f(t[e],t,o);if("throw"!==a.type){var u=a.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?Promise.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):Promise.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(a.arg)}(e,o,r,i)}))}return r=r?r.then(i,i):i()}}function j(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,j(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function L(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function _(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function e(){for(;++o=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),f=n.call(c,"finallyLoc");if(u&&f){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),_(e),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;_(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},7:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(10);function o(t){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[t];if(void 0===o)return e;var i=r(e[o],n);return i===e[o]?e:Object(f.a)({},e,Object(u.a)({},o,i))}}}("context")((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"CREATE_NOTICE":return[].concat(Object(c.a)(Object(a.reject)(t,{id:r.notice.id})),[r.notice]);case"REMOVE_NOTICE":return Object(a.reject)(t,{id:r.id})}return t})),l=e(20),h=e.n(l),p="global",d="info",v=h.a.mark(y);function y(){var t,r,e,n,o,i,c,u,f,s,l,y,g,m,b,w,O=arguments;return h.a.wrap((function(h){for(;;)switch(h.prev=h.next){case 0:if(t=O.length>0&&void 0!==O[0]?O[0]:d,r=O.length>1?O[1]:void 0,e=O.length>2&&void 0!==O[2]?O[2]:{},n=e.speak,o=void 0===n||n,i=e.isDismissible,c=void 0===i||i,u=e.context,f=void 0===u?p:u,s=e.id,l=void 0===s?Object(a.uniqueId)(f):s,y=e.actions,g=void 0===y?[]:y,m=e.type,b=void 0===m?"default":m,w=e.__unstableHTML,r=String(r),!o){h.next=8;break}return h.next=8,{type:"SPEAK",message:r,ariaLive:"snackbar"===b?"polite":"assertive"};case 8:return h.next=10,{type:"CREATE_NOTICE",context:f,notice:{id:l,status:t,content:r,__unstableHTML:w,isDismissible:c,actions:g,type:b}};case 10:case"end":return h.stop()}}),v)}function g(t,r){return y("success",t,r)}function m(t,r){return y("info",t,r)}function b(t,r){return y("error",t,r)}function w(t,r){return y("warning",t,r)}function O(t){return{type:"REMOVE_NOTICE",id:t,context:arguments.length>1&&void 0!==arguments[1]?arguments[1]:p}}var x=[];function E(t){return t[arguments.length>1&&void 0!==arguments[1]?arguments[1]:p]||x}var j=e(45),L={SPEAK:function(t){Object(j.speak)(t.message,t.ariaLive||"assertive")}};Object(i.registerStore)("core/notices",{reducer:s,actions:n,selectors:o,controls:L})},4:function(t,r){!function(){t.exports=this.wp.data}()},45:function(t,r){!function(){t.exports=this.wp.a11y}()},47:function(t,r,e){var n=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,r,e,n){var o=r&&r.prototype instanceof v?r:v,i=Object.create(o.prototype),c=new S(n||[]);return i._invoke=function(t,r,e){var n=s;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return P()}for(e.method=o,e.arg=i;;){var c=e.delegate;if(c){var a=j(c,e);if(a){if(a===d)continue;return a}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===s)throw n=p,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=h;var u=f(t,r,e);if("normal"===u.type){if(n=e.done?p:l,u.arg===d)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=p,e.method="throw",e.arg=u.arg)}}}(t,e,c),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var s="suspendedStart",l="suspendedYield",h="executing",p="completed",d={};function v(){}function y(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==e&&n.call(w,i)&&(m=w);var O=g.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(r){t[r]=function(t){return this._invoke(r,t)}}))}function E(t){var r;this._invoke=function(e,o){function i(){return new Promise((function(r,i){!function r(e,o,i,c){var a=f(t[e],t,o);if("throw"!==a.type){var u=a.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?Promise.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):Promise.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(a.arg)}(e,o,r,i)}))}return r=r?r.then(i,i):i()}}function j(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,j(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function L(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function _(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function e(){for(;++o=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),f=n.call(c,"finallyLoc");if(u&&f){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),_(e),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;_(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},7:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(10);function o(t){for(var r=1;r0&&void 0!==arguments[0])||arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISMISS_TIP":return Object(c.a)({},e,Object(o.a)({},t.id,!0));case"ENABLE_TIPS":return{}}return e}}),l=Object(u.combineReducers)({guides:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TRIGGER_GUIDE":return[].concat(Object(a.a)(e),[t.tipIds])}return e},preferences:s});function f(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function p(e){return{type:"DISMISS_TIP",id:e}}function d(){return{type:"DISABLE_TIPS"}}function b(){return{type:"ENABLE_TIPS"}}var v=n(23),h=n(36),y=n(2),g=Object(h.a)((function(e,t){var n=!0,r=!1,i=void 0;try{for(var u,o=e.guides[Symbol.iterator]();!(n=(u=o.next()).done);n=!0){var c=u.value;if(Object(y.includes)(c,t)){var a=Object(y.difference)(c,Object(y.keys)(e.preferences.dismissedTips)),s=Object(v.a)(a,2),l=s[0],f=void 0===l?null:l,p=s[1];return{tipIds:c,currentTipId:f,nextTipId:void 0===p?null:p}}}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return null}),(function(e){return[e.guides,e.preferences.dismissedTips]}));function O(e,t){if(!e.preferences.areTipsEnabled)return!1;if(Object(y.has)(e.preferences.dismissedTips,[t]))return!1;var n=g(e,t);return!n||n.currentTipId===t}function j(e){return e.preferences.areTipsEnabled}Object(u.registerStore)("core/nux",{reducer:l,actions:r,selectors:i,persist:["preferences"]});var m=n(0),T=n(8),x=n(3),w=n(1);function I(e){return e.parentNode.getBoundingClientRect()}function S(e){e.stopPropagation()}var E=Object(T.compose)(Object(u.withSelect)((function(e,t){var n=t.tipId,r=e("core/nux"),i=r.isTipVisible,u=(0,r.getAssociatedGuide)(n);return{isVisible:i(n),hasNextTip:!(!u||!u.nextTipId)}})),Object(u.withDispatch)((function(e,t){var n=t.tipId,r=e("core/nux"),i=r.dismissTip,u=r.disableTips;return{onDismiss:function(){i(n)},onDisable:function(){u()}}})))((function(e){var t=e.position,n=void 0===t?"middle right":t,r=e.children,i=e.isVisible,u=e.hasNextTip,o=e.onDismiss,c=e.onDisable;return i?Object(m.createElement)(x.Popover,{className:"nux-dot-tip",position:n,noArrow:!0,focusOnMount:"container",getAnchorRect:I,role:"dialog","aria-label":Object(w.__)("Editor tips"),onClick:S},Object(m.createElement)("p",null,r),Object(m.createElement)("p",null,Object(m.createElement)(x.Button,{isLink:!0,onClick:o},u?Object(w.__)("See next tip"):Object(w.__)("Got it"))),Object(m.createElement)(x.IconButton,{className:"nux-dot-tip__disable",icon:"no-alt",label:Object(w.__)("Disable tips"),onClick:c})):null}));n.d(t,"DotTip",(function(){return E}))},4:function(e,t){!function(){e.exports=this.wp.data}()},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(10);function i(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISMISS_TIP":return Object(c.a)({},e,Object(o.a)({},t.id,!0));case"ENABLE_TIPS":return{}}return e}}),l=Object(u.combineReducers)({guides:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TRIGGER_GUIDE":return[].concat(Object(a.a)(e),[t.tipIds])}return e},preferences:s});function f(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function p(e){return{type:"DISMISS_TIP",id:e}}function d(){return{type:"DISABLE_TIPS"}}function b(){return{type:"ENABLE_TIPS"}}var v=n(23),h=n(36),y=n(2),g=Object(h.a)((function(e,t){var n=!0,r=!1,i=void 0;try{for(var u,o=e.guides[Symbol.iterator]();!(n=(u=o.next()).done);n=!0){var c=u.value;if(Object(y.includes)(c,t)){var a=Object(y.difference)(c,Object(y.keys)(e.preferences.dismissedTips)),s=Object(v.a)(a,2),l=s[0],f=void 0===l?null:l,p=s[1];return{tipIds:c,currentTipId:f,nextTipId:void 0===p?null:p}}}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return null}),(function(e){return[e.guides,e.preferences.dismissedTips]}));function O(e,t){if(!e.preferences.areTipsEnabled)return!1;if(Object(y.has)(e.preferences.dismissedTips,[t]))return!1;var n=g(e,t);return!n||n.currentTipId===t}function j(e){return e.preferences.areTipsEnabled}Object(u.registerStore)("core/nux",{reducer:l,actions:r,selectors:i,persist:["preferences"]});var m=n(0),T=n(8),x=n(3),w=n(1);function I(e){return e.parentNode.getBoundingClientRect()}function S(e){e.stopPropagation()}var E=Object(T.compose)(Object(u.withSelect)((function(e,t){var n=t.tipId,r=e("core/nux"),i=r.isTipVisible,u=(0,r.getAssociatedGuide)(n);return{isVisible:i(n),hasNextTip:!(!u||!u.nextTipId)}})),Object(u.withDispatch)((function(e,t){var n=t.tipId,r=e("core/nux"),i=r.dismissTip,u=r.disableTips;return{onDismiss:function(){i(n)},onDisable:function(){u()}}})))((function(e){var t=e.position,n=void 0===t?"middle right":t,r=e.children,i=e.isVisible,u=e.hasNextTip,o=e.onDismiss,c=e.onDisable;return i?Object(m.createElement)(x.Popover,{className:"nux-dot-tip",position:n,noArrow:!0,focusOnMount:"container",getAnchorRect:I,role:"dialog","aria-label":Object(w.__)("Editor tips"),onClick:S},Object(m.createElement)("p",null,r),Object(m.createElement)("p",null,Object(m.createElement)(x.Button,{isLink:!0,onClick:o},u?Object(w.__)("See next tip"):Object(w.__)("Got it"))),Object(m.createElement)(x.IconButton,{className:"nux-dot-tip__disable",icon:"no-alt",label:Object(w.__)("Disable tips"),onClick:c})):null}));n.d(t,"DotTip",(function(){return E}))},36:function(e,t,n){"use strict";var r,i;function u(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function c(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r0);r(u)};return{add:function(i,o){t.has(i)||e.push(i),t.set(i,o),n||(n=!0,r(u))},flush:function(n){if(!t.has(n))return!1;t.delete(n);var r=e.indexOf(n);return e.splice(r,1),!0}}}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.priorityQueue=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.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 u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));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=299)}({299:function(e,t,n){"use strict";n.r(t),n.d(t,"createQueue",(function(){return u}));var r=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,u=function(){var e=[],t=new WeakMap,n=!1,u=function u(i){do{if(0===e.length)return void(n=!1);var o=e.shift();t.get(o)(),t.delete(o)}while(i&&i.timeRemaining&&i.timeRemaining()>0);r(u)};return{add:function(i,o){t.has(i)||e.push(i),t.set(i,o),n||(n=!0,r(u))},flush:function(n){if(!t.has(n))return!1;t.delete(n);var r=e.indexOf(n);return e.splice(r,1),!0}}}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/redux-routine.js b/wp-includes/js/dist/redux-routine.js index 74fa5cb6eb..40e765de24 100644 --- a/wp-includes/js/dist/redux-routine.js +++ b/wp-includes/js/dist/redux-routine.js @@ -82,24 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["reduxRoutine"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 403); +/******/ return __webpack_require__(__webpack_require__.s = 335); /******/ }) /************************************************************************/ /******/ ({ -/***/ 105: -/***/ (function(module, exports) { - -module.exports = isPromise; - -function isPromise(obj) { - return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; -} - - -/***/ }), - -/***/ 114: +/***/ 103: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -111,7 +99,7 @@ Object.defineProperty(exports, "__esModule", { var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; -var _keys = __webpack_require__(221); +var _keys = __webpack_require__(190); var _keys2 = _interopRequireDefault(_keys); @@ -164,14 +152,7 @@ exports.default = is; /***/ }), -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 220: +/***/ 189: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -182,7 +163,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.createChannel = exports.subscribe = exports.cps = exports.apply = exports.call = exports.invoke = exports.delay = exports.race = exports.join = exports.fork = exports.error = exports.all = undefined; -var _keys = __webpack_require__(221); +var _keys = __webpack_require__(190); var _keys2 = _interopRequireDefault(_keys); @@ -312,7 +293,7 @@ var createChannel = exports.createChannel = function createChannel(callback) { /***/ }), -/***/ 221: +/***/ 190: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -336,7 +317,14 @@ exports.default = keys; /***/ }), -/***/ 239: +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); + +/***/ }), + +/***/ 209: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -347,7 +335,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.wrapControls = exports.asyncControls = exports.create = undefined; -var _helpers = __webpack_require__(220); +var _helpers = __webpack_require__(189); Object.keys(_helpers).forEach(function (key) { if (key === "default") return; @@ -359,15 +347,15 @@ Object.keys(_helpers).forEach(function (key) { }); }); -var _create = __webpack_require__(371); +var _create = __webpack_require__(300); var _create2 = _interopRequireDefault(_create); -var _async = __webpack_require__(373); +var _async = __webpack_require__(302); var _async2 = _interopRequireDefault(_async); -var _wrap = __webpack_require__(375); +var _wrap = __webpack_require__(304); var _wrap2 = _interopRequireDefault(_wrap); @@ -379,7 +367,7 @@ exports.wrapControls = _wrap2.default; /***/ }), -/***/ 371: +/***/ 300: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -389,11 +377,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _builtin = __webpack_require__(372); +var _builtin = __webpack_require__(301); var _builtin2 = _interopRequireDefault(_builtin); -var _is = __webpack_require__(114); +var _is = __webpack_require__(103); var _is2 = _interopRequireDefault(_is); @@ -465,7 +453,7 @@ exports.default = create; /***/ }), -/***/ 372: +/***/ 301: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -476,7 +464,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.iterator = exports.array = exports.object = exports.error = exports.any = undefined; -var _is = __webpack_require__(114); +var _is = __webpack_require__(103); var _is2 = _interopRequireDefault(_is); @@ -566,7 +554,7 @@ exports.default = [error, iterator, array, object, any]; /***/ }), -/***/ 373: +/***/ 302: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -577,13 +565,13 @@ Object.defineProperty(exports, "__esModule", { }); exports.race = exports.join = exports.fork = exports.promise = undefined; -var _is = __webpack_require__(114); +var _is = __webpack_require__(103); var _is2 = _interopRequireDefault(_is); -var _helpers = __webpack_require__(220); +var _helpers = __webpack_require__(189); -var _dispatcher = __webpack_require__(374); +var _dispatcher = __webpack_require__(303); var _dispatcher2 = _interopRequireDefault(_dispatcher); @@ -688,7 +676,7 @@ exports.default = [promise, fork, join, race, subscribe]; /***/ }), -/***/ 374: +/***/ 303: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -721,7 +709,7 @@ exports.default = createDispatcher; /***/ }), -/***/ 375: +/***/ 304: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -732,7 +720,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.cps = exports.call = undefined; -var _is = __webpack_require__(114); +var _is = __webpack_require__(103); var _is2 = _interopRequireDefault(_is); @@ -764,7 +752,7 @@ exports.default = [call, cps]; /***/ }), -/***/ 403: +/***/ 335: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -785,13 +773,13 @@ function isGenerator(object) { } // EXTERNAL MODULE: ./node_modules/rungen/dist/index.js -var dist = __webpack_require__(239); +var dist = __webpack_require__(209); // EXTERNAL MODULE: external "lodash" var external_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: ./node_modules/is-promise/index.js -var is_promise = __webpack_require__(105); +var is_promise = __webpack_require__(94); var is_promise_default = /*#__PURE__*/__webpack_require__.n(is_promise); // CONCATENATED MODULE: ./node_modules/@wordpress/redux-routine/build-module/is-action.js @@ -929,6 +917,18 @@ function createMiddleware() { } +/***/ }), + +/***/ 94: +/***/ (function(module, exports) { + +module.exports = isPromise; + +function isPromise(obj) { + return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; +} + + /***/ }) /******/ })["default"]; \ No newline at end of file diff --git a/wp-includes/js/dist/redux-routine.min.js b/wp-includes/js/dist/redux-routine.min.js index 33ee89f8ea..3482ff732a 100644 --- a/wp-includes/js/dist/redux-routine.min.js +++ b/wp-includes/js/dist/redux-routine.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.reduxRoutine=function(t){var r={};function e(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)e.d(n,u,function(r){return t[r]}.bind(null,u));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=403)}({105:function(t,r){t.exports=function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}},114:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=e(221),c=(n=o)&&n.__esModule?n:{default:n};var f={obj:function(t){return"object"===(void 0===t?"undefined":u(t))&&!!t},all:function(t){return f.obj(t)&&t.type===c.default.all},error:function(t){return f.obj(t)&&t.type===c.default.error},array:Array.isArray,func:function(t){return"function"==typeof t},promise:function(t){return t&&f.func(t.then)},iterator:function(t){return t&&f.func(t.next)&&f.func(t.throw)},fork:function(t){return f.obj(t)&&t.type===c.default.fork},join:function(t){return f.obj(t)&&t.type===c.default.join},race:function(t){return f.obj(t)&&t.type===c.default.race},call:function(t){return f.obj(t)&&t.type===c.default.call},cps:function(t){return f.obj(t)&&t.type===c.default.cps},subscribe:function(t){return f.obj(t)&&t.type===c.default.subscribe},channel:function(t){return f.obj(t)&&f.func(t.subscribe)}};r.default=f},2:function(t,r){!function(){t.exports=this.lodash}()},220:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createChannel=r.subscribe=r.cps=r.apply=r.call=r.invoke=r.delay=r.race=r.join=r.fork=r.error=r.all=void 0;var n,u=e(221),o=(n=u)&&n.__esModule?n:{default:n};r.all=function(t){return{type:o.default.all,value:t}},r.error=function(t){return{type:o.default.error,error:t}},r.fork=function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n2?e-2:0),u=2;u1?r-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=Object(u.map)(t,(function(t,r){return function(e,n,u,o,i){if(l=r,!f(a=e)||a.type!==l)return!1;var a,l,s=t(e);return c()(s)?s.then(o,i):o(s),!0}}));e.push((function(t,e){return!!f(t)&&(r(t),e(),!0)}));var o=Object(n.create)(e);return function(t){return new Promise((function(e,n){return o(t,(function(t){f(t)&&r(t),e(t)}),n)}))}}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var e=i(t,r.dispatch);return function(t){return function(r){return(n=r)&&"Generator"===n[Symbol.toStringTag]?e(r):t(r);var n}}}}e.d(r,"default",(function(){return a}))}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.reduxRoutine=function(t){var r={};function e(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)e.d(n,u,function(r){return t[r]}.bind(null,u));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=335)}({103:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=e(190),c=(n=o)&&n.__esModule?n:{default:n};var f={obj:function(t){return"object"===(void 0===t?"undefined":u(t))&&!!t},all:function(t){return f.obj(t)&&t.type===c.default.all},error:function(t){return f.obj(t)&&t.type===c.default.error},array:Array.isArray,func:function(t){return"function"==typeof t},promise:function(t){return t&&f.func(t.then)},iterator:function(t){return t&&f.func(t.next)&&f.func(t.throw)},fork:function(t){return f.obj(t)&&t.type===c.default.fork},join:function(t){return f.obj(t)&&t.type===c.default.join},race:function(t){return f.obj(t)&&t.type===c.default.race},call:function(t){return f.obj(t)&&t.type===c.default.call},cps:function(t){return f.obj(t)&&t.type===c.default.cps},subscribe:function(t){return f.obj(t)&&t.type===c.default.subscribe},channel:function(t){return f.obj(t)&&f.func(t.subscribe)}};r.default=f},189:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createChannel=r.subscribe=r.cps=r.apply=r.call=r.invoke=r.delay=r.race=r.join=r.fork=r.error=r.all=void 0;var n,u=e(190),o=(n=u)&&n.__esModule?n:{default:n};r.all=function(t){return{type:o.default.all,value:t}},r.error=function(t){return{type:o.default.error,error:t}},r.fork=function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n2?e-2:0),u=2;u1?r-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=Object(u.map)(t,(function(t,r){return function(e,n,u,o,i){if(l=r,!f(a=e)||a.type!==l)return!1;var a,l,s=t(e);return c()(s)?s.then(o,i):o(s),!0}}));e.push((function(t,e){return!!f(t)&&(r(t),e(),!0)}));var o=Object(n.create)(e);return function(t){return new Promise((function(e,n){return o(t,(function(t){f(t)&&r(t),e(t)}),n)}))}}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var e=i(t,r.dispatch);return function(t){return function(r){return(n=r)&&"Generator"===n[Symbol.toStringTag]?e(r):t(r);var n}}}}e.d(r,"default",(function(){return a}))},94:function(t,r){t.exports=function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/rich-text.js b/wp-includes/js/dist/rich-text.js index 8bef3ae40a..6b94812033 100644 --- a/wp-includes/js/dist/rich-text.js +++ b/wp-includes/js/dist/rich-text.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["richText"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 384); +/******/ return __webpack_require__(__webpack_require__.s = 315); /******/ }) /************************************************************************/ /******/ ({ @@ -434,296 +434,7 @@ function _typeof(obj) { /***/ }), -/***/ 36: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - - -var LEAF_KEY, hasWeakMap; - -/** - * Arbitrary value used as key for referencing cache object in WeakMap tree. - * - * @type {Object} - */ -LEAF_KEY = {}; - -/** - * Whether environment supports WeakMap. - * - * @type {boolean} - */ -hasWeakMap = typeof WeakMap !== 'undefined'; - -/** - * Returns the first argument as the sole entry in an array. - * - * @param {*} value Value to return. - * - * @return {Array} Value returned as entry in array. - */ -function arrayOf( value ) { - return [ value ]; -} - -/** - * Returns true if the value passed is object-like, or false otherwise. A value - * is object-like if it can support property assignment, e.g. object or array. - * - * @param {*} value Value to test. - * - * @return {boolean} Whether value is object-like. - */ -function isObjectLike( value ) { - return !! value && 'object' === typeof value; -} - -/** - * Creates and returns a new cache object. - * - * @return {Object} Cache object. - */ -function createCache() { - var cache = { - clear: function() { - cache.head = null; - }, - }; - - return cache; -} - -/** - * Returns true if entries within the two arrays are strictly equal by - * reference from a starting index. - * - * @param {Array} a First array. - * @param {Array} b Second array. - * @param {number} fromIndex Index from which to start comparison. - * - * @return {boolean} Whether arrays are shallowly equal. - */ -function isShallowEqual( a, b, fromIndex ) { - var i; - - if ( a.length !== b.length ) { - return false; - } - - for ( i = fromIndex; i < a.length; i++ ) { - if ( a[ i ] !== b[ i ] ) { - return false; - } - } - - return true; -} - -/** - * Returns a memoized selector function. The getDependants function argument is - * called before the memoized selector and is expected to return an immutable - * reference or array of references on which the selector depends for computing - * its own return value. The memoize cache is preserved only as long as those - * dependant references remain the same. If getDependants returns a different - * reference(s), the cache is cleared and the selector value regenerated. - * - * @param {Function} selector Selector function. - * @param {Function} getDependants Dependant getter returning an immutable - * reference or array of reference used in - * cache bust consideration. - * - * @return {Function} Memoized selector. - */ -/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { - var rootCache, getCache; - - // Use object source as dependant if getter not provided - if ( ! getDependants ) { - getDependants = arrayOf; - } - - /** - * Returns the root cache. If WeakMap is supported, this is assigned to the - * root WeakMap cache set, otherwise it is a shared instance of the default - * cache object. - * - * @return {(WeakMap|Object)} Root cache object. - */ - function getRootCache() { - return rootCache; - } - - /** - * Returns the cache for a given dependants array. When possible, a WeakMap - * will be used to create a unique cache for each set of dependants. This - * is feasible due to the nature of WeakMap in allowing garbage collection - * to occur on entries where the key object is no longer referenced. Since - * WeakMap requires the key to be an object, this is only possible when the - * dependant is object-like. The root cache is created as a hierarchy where - * each top-level key is the first entry in a dependants set, the value a - * WeakMap where each key is the next dependant, and so on. This continues - * so long as the dependants are object-like. If no dependants are object- - * like, then the cache is shared across all invocations. - * - * @see isObjectLike - * - * @param {Array} dependants Selector dependants. - * - * @return {Object} Cache object. - */ - function getWeakMapCache( dependants ) { - var caches = rootCache, - isUniqueByDependants = true, - i, dependant, map, cache; - - for ( i = 0; i < dependants.length; i++ ) { - dependant = dependants[ i ]; - - // Can only compose WeakMap from object-like key. - if ( ! isObjectLike( dependant ) ) { - isUniqueByDependants = false; - break; - } - - // Does current segment of cache already have a WeakMap? - if ( caches.has( dependant ) ) { - // Traverse into nested WeakMap. - caches = caches.get( dependant ); - } else { - // Create, set, and traverse into a new one. - map = new WeakMap(); - caches.set( dependant, map ); - caches = map; - } - } - - // We use an arbitrary (but consistent) object as key for the last item - // in the WeakMap to serve as our running cache. - if ( ! caches.has( LEAF_KEY ) ) { - cache = createCache(); - cache.isUniqueByDependants = isUniqueByDependants; - caches.set( LEAF_KEY, cache ); - } - - return caches.get( LEAF_KEY ); - } - - // Assign cache handler by availability of WeakMap - getCache = hasWeakMap ? getWeakMapCache : getRootCache; - - /** - * Resets root memoization cache. - */ - function clear() { - rootCache = hasWeakMap ? new WeakMap() : createCache(); - } - - // eslint-disable-next-line jsdoc/check-param-names - /** - * The augmented selector call, considering first whether dependants have - * changed before passing it to underlying memoize function. - * - * @param {Object} source Source object for derivation. - * @param {...*} extraArgs Additional arguments to pass to selector. - * - * @return {*} Selector result. - */ - function callSelector( /* source, ...extraArgs */ ) { - var len = arguments.length, - cache, node, i, args, dependants; - - // Create copy of arguments (avoid leaking deoptimization). - args = new Array( len ); - for ( i = 0; i < len; i++ ) { - args[ i ] = arguments[ i ]; - } - - dependants = getDependants.apply( null, args ); - cache = getCache( dependants ); - - // If not guaranteed uniqueness by dependants (primitive type or lack - // of WeakMap support), shallow compare against last dependants and, if - // references have changed, destroy cache to recalculate result. - if ( ! cache.isUniqueByDependants ) { - if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { - cache.clear(); - } - - cache.lastDependants = dependants; - } - - node = cache.head; - while ( node ) { - // Check whether node arguments match arguments - if ( ! isShallowEqual( node.args, args, 1 ) ) { - node = node.next; - continue; - } - - // At this point we can assume we've found a match - - // Surface matched node to head if not already - if ( node !== cache.head ) { - // Adjust siblings to point to each other. - node.prev.next = node.next; - if ( node.next ) { - node.next.prev = node.prev; - } - - node.next = cache.head; - node.prev = null; - cache.head.prev = node; - cache.head = node; - } - - // Return immediately - return node.val; - } - - // No cached value found. Continue to insertion phase: - - node = { - // Generate the result from original function - val: selector.apply( null, args ), - }; - - // Avoid including the source object in the cache. - args[ 0 ] = null; - node.args = args; - - // Don't need to check whether node is already head, since it would - // have been returned above already if it was - - // Shift existing head down list - if ( cache.head ) { - cache.head.prev = node; - node.next = cache.head; - } - - cache.head = node; - - return node.val; - } - - callSelector.getDependants = getDependants; - callSelector.clear = clear; - clear(); - - return callSelector; -}); - - -/***/ }), - -/***/ 37: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["deprecated"]; }()); - -/***/ }), - -/***/ 384: +/***/ 315: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3245,7 +2956,7 @@ function applySelection(_ref7, current) { } // EXTERNAL MODULE: external {"this":["wp","escapeHtml"]} -var external_this_wp_escapeHtml_ = __webpack_require__(74); +var external_this_wp_escapeHtml_ = __webpack_require__(68); // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/to-html-string.js /** @@ -3740,7 +3451,7 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); var external_this_wp_keycodes_ = __webpack_require__(19); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(41); +var external_this_wp_isShallowEqual_ = __webpack_require__(40); var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); // EXTERNAL MODULE: external {"this":["wp","deprecated"]} @@ -5204,6 +4915,295 @@ component_RichText.defaultProps = { + +/***/ }), + +/***/ 36: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + + +var LEAF_KEY, hasWeakMap; + +/** + * Arbitrary value used as key for referencing cache object in WeakMap tree. + * + * @type {Object} + */ +LEAF_KEY = {}; + +/** + * Whether environment supports WeakMap. + * + * @type {boolean} + */ +hasWeakMap = typeof WeakMap !== 'undefined'; + +/** + * Returns the first argument as the sole entry in an array. + * + * @param {*} value Value to return. + * + * @return {Array} Value returned as entry in array. + */ +function arrayOf( value ) { + return [ value ]; +} + +/** + * Returns true if the value passed is object-like, or false otherwise. A value + * is object-like if it can support property assignment, e.g. object or array. + * + * @param {*} value Value to test. + * + * @return {boolean} Whether value is object-like. + */ +function isObjectLike( value ) { + return !! value && 'object' === typeof value; +} + +/** + * Creates and returns a new cache object. + * + * @return {Object} Cache object. + */ +function createCache() { + var cache = { + clear: function() { + cache.head = null; + }, + }; + + return cache; +} + +/** + * Returns true if entries within the two arrays are strictly equal by + * reference from a starting index. + * + * @param {Array} a First array. + * @param {Array} b Second array. + * @param {number} fromIndex Index from which to start comparison. + * + * @return {boolean} Whether arrays are shallowly equal. + */ +function isShallowEqual( a, b, fromIndex ) { + var i; + + if ( a.length !== b.length ) { + return false; + } + + for ( i = fromIndex; i < a.length; i++ ) { + if ( a[ i ] !== b[ i ] ) { + return false; + } + } + + return true; +} + +/** + * Returns a memoized selector function. The getDependants function argument is + * called before the memoized selector and is expected to return an immutable + * reference or array of references on which the selector depends for computing + * its own return value. The memoize cache is preserved only as long as those + * dependant references remain the same. If getDependants returns a different + * reference(s), the cache is cleared and the selector value regenerated. + * + * @param {Function} selector Selector function. + * @param {Function} getDependants Dependant getter returning an immutable + * reference or array of reference used in + * cache bust consideration. + * + * @return {Function} Memoized selector. + */ +/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { + var rootCache, getCache; + + // Use object source as dependant if getter not provided + if ( ! getDependants ) { + getDependants = arrayOf; + } + + /** + * Returns the root cache. If WeakMap is supported, this is assigned to the + * root WeakMap cache set, otherwise it is a shared instance of the default + * cache object. + * + * @return {(WeakMap|Object)} Root cache object. + */ + function getRootCache() { + return rootCache; + } + + /** + * Returns the cache for a given dependants array. When possible, a WeakMap + * will be used to create a unique cache for each set of dependants. This + * is feasible due to the nature of WeakMap in allowing garbage collection + * to occur on entries where the key object is no longer referenced. Since + * WeakMap requires the key to be an object, this is only possible when the + * dependant is object-like. The root cache is created as a hierarchy where + * each top-level key is the first entry in a dependants set, the value a + * WeakMap where each key is the next dependant, and so on. This continues + * so long as the dependants are object-like. If no dependants are object- + * like, then the cache is shared across all invocations. + * + * @see isObjectLike + * + * @param {Array} dependants Selector dependants. + * + * @return {Object} Cache object. + */ + function getWeakMapCache( dependants ) { + var caches = rootCache, + isUniqueByDependants = true, + i, dependant, map, cache; + + for ( i = 0; i < dependants.length; i++ ) { + dependant = dependants[ i ]; + + // Can only compose WeakMap from object-like key. + if ( ! isObjectLike( dependant ) ) { + isUniqueByDependants = false; + break; + } + + // Does current segment of cache already have a WeakMap? + if ( caches.has( dependant ) ) { + // Traverse into nested WeakMap. + caches = caches.get( dependant ); + } else { + // Create, set, and traverse into a new one. + map = new WeakMap(); + caches.set( dependant, map ); + caches = map; + } + } + + // We use an arbitrary (but consistent) object as key for the last item + // in the WeakMap to serve as our running cache. + if ( ! caches.has( LEAF_KEY ) ) { + cache = createCache(); + cache.isUniqueByDependants = isUniqueByDependants; + caches.set( LEAF_KEY, cache ); + } + + return caches.get( LEAF_KEY ); + } + + // Assign cache handler by availability of WeakMap + getCache = hasWeakMap ? getWeakMapCache : getRootCache; + + /** + * Resets root memoization cache. + */ + function clear() { + rootCache = hasWeakMap ? new WeakMap() : createCache(); + } + + // eslint-disable-next-line jsdoc/check-param-names + /** + * The augmented selector call, considering first whether dependants have + * changed before passing it to underlying memoize function. + * + * @param {Object} source Source object for derivation. + * @param {...*} extraArgs Additional arguments to pass to selector. + * + * @return {*} Selector result. + */ + function callSelector( /* source, ...extraArgs */ ) { + var len = arguments.length, + cache, node, i, args, dependants; + + // Create copy of arguments (avoid leaking deoptimization). + args = new Array( len ); + for ( i = 0; i < len; i++ ) { + args[ i ] = arguments[ i ]; + } + + dependants = getDependants.apply( null, args ); + cache = getCache( dependants ); + + // If not guaranteed uniqueness by dependants (primitive type or lack + // of WeakMap support), shallow compare against last dependants and, if + // references have changed, destroy cache to recalculate result. + if ( ! cache.isUniqueByDependants ) { + if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { + cache.clear(); + } + + cache.lastDependants = dependants; + } + + node = cache.head; + while ( node ) { + // Check whether node arguments match arguments + if ( ! isShallowEqual( node.args, args, 1 ) ) { + node = node.next; + continue; + } + + // At this point we can assume we've found a match + + // Surface matched node to head if not already + if ( node !== cache.head ) { + // Adjust siblings to point to each other. + node.prev.next = node.next; + if ( node.next ) { + node.next.prev = node.prev; + } + + node.next = cache.head; + node.prev = null; + cache.head.prev = node; + cache.head = node; + } + + // Return immediately + return node.val; + } + + // No cached value found. Continue to insertion phase: + + node = { + // Generate the result from original function + val: selector.apply( null, args ), + }; + + // Avoid including the source object in the cache. + args[ 0 ] = null; + node.args = args; + + // Don't need to check whether node is already head, since it would + // have been returned above already if it was + + // Shift existing head down list + if ( cache.head ) { + cache.head.prev = node; + node.next = cache.head; + } + + cache.head = node; + + return node.val; + } + + callSelector.getDependants = getDependants; + callSelector.clear = clear; + clear(); + + return callSelector; +}); + + +/***/ }), + +/***/ 37: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["deprecated"]; }()); /***/ }), @@ -5214,7 +5214,7 @@ component_RichText.defaultProps = { /***/ }), -/***/ 41: +/***/ 40: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["isShallowEqual"]; }()); @@ -5236,6 +5236,13 @@ function _assertThisInitialized(self) { /***/ }), +/***/ 68: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["escapeHtml"]; }()); + +/***/ }), + /***/ 7: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -5264,13 +5271,6 @@ function _objectSpread(target) { /***/ }), -/***/ 74: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["escapeHtml"]; }()); - -/***/ }), - /***/ 8: /***/ (function(module, exports) { diff --git a/wp-includes/js/dist/rich-text.min.js b/wp-includes/js/dist/rich-text.min.js index 795d1d48ca..93870ebb28 100644 --- a/wp-includes/js/dist/rich-text.min.js +++ b/wp-includes/js/dist/rich-text.min.js @@ -1,6 +1,6 @@ -this.wp=this.wp||{},this.wp.richText=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.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 a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));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=384)}({0:function(e,t){!function(){e.exports=this.wp.element}()},10:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},11:function(e,t,n){"use strict";function r(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}n.d(t,"a",(function(){return r}))},27:function(e,t){!function(){e.exports=this.wp.hooks}()},30:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},31:function(e,t,n){"use strict";function r(e){return(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})(e)}function a(e){return(a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return a}))},36:function(e,t,n){"use strict";var r,a;function o(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function c(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_FORMAT_TYPES":return Object(i.a)({},e,Object(c.keyBy)(t.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(c.omit)(e,t.names)}return e}}),l=n(36),u=Object(l.a)((function(e){return Object.values(e.formatTypes)}),(function(e){return[e.formatTypes]}));function f(e,t){return e.formatTypes[t]}function d(e,t){return Object(c.find)(u(e),(function(e){var n=e.className,r=e.tagName;return null===n&&t===r}))}function p(e,t){return Object(c.find)(u(e),(function(e){var n=e.className;return null!==n&&" ".concat(t," ").indexOf(" ".concat(n," "))>=0}))}function h(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(c.castArray)(e)}}function m(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(c.castArray)(e)}}Object(o.registerStore)("core/rich-text",{reducer:s,selectors:r,actions:a});var v=n(17);function b(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;var n=e.attributes,r=t.attributes;if(n===r)return!0;if(!n||!r)return!1;var a=Object.keys(n),o=Object.keys(r);if(a.length!==o.length)return!1;for(var i=a.length,c=0;c2&&void 0!==arguments[2]?arguments[2]:e.start,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,s=a.slice();if(n===r){var l=Object(c.find)(s[n],{type:t.type});if(l){for(var u=s[n].indexOf(l);s[n]&&s[n][u]===l;)s[n]=y(s[n],u,t),n--;for(r++;s[r]&&s[r][u]===l;)s[r]=y(s[r],u,t),r++}}else{for(var f=1/0,d=n;d0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,n=e.text,r=e.html,a=e.range,o=e.multilineTag,i=e.multilineWrapperTags,c=e.__unstableIsEditableTree;return"string"==typeof n&&n.length>0?{formats:Array(n.length),replacements:Array(n.length),text:n}:("string"==typeof r&&r.length>0&&(t=j(document,r)),"object"!==Object(T.a)(t)?{formats:[],replacements:[],text:""}:o?D({element:t,range:a,multilineTag:o,multilineWrapperTags:i,isEditableTree:c}):P({element:t,range:a,isEditableTree:c}))}function A(e,t,n,r){if(n){var a=t.parentNode,o=n.startContainer,i=n.startOffset,c=n.endContainer,s=n.endOffset,l=e.text.length;void 0!==r.start?e.start=l+r.start:t===o&&t.nodeType===w?e.start=l+i:a===o&&t===o.childNodes[i]?e.start=l:a===o&&t===o.childNodes[i-1]?e.start=l+r.text.length:t===o&&(e.start=l),void 0!==r.end?e.end=l+r.end:t===c&&t.nodeType===w?e.end=l+s:a===c&&t===c.childNodes[s-1]?e.end=l+r.text.length:a===c&&t===c.childNodes[s]?e.end=l:t===c&&(e.end=l+s)}}var k=new RegExp(E,"g");function R(e){return e.replace(/[\n\r\t]+/g," ").replace(k,"")}function P(e){var t=e.element,n=e.range,r=e.multilineTag,a=e.multilineWrapperTags,c=e.currentWrapperTags,s=void 0===c?[]:c,l=e.isEditableTree,u={formats:[],replacements:[],text:""};if(!t)return u;if(!t.hasChildNodes())return A(u,t,n,{formats:[],replacements:[],text:""}),u;for(var f=t.childNodes.length,d=function(e){var c=t.childNodes[e],f=c.nodeName.toLowerCase();if(c.nodeType===w){var d=R(c.nodeValue);return n=function(e,t,n){if(t){var r=t.startContainer,a=t.endContainer,o=t.startOffset,i=t.endOffset;return e===r&&(o=n(e.nodeValue.slice(0,o)).length),e===a&&(i=n(e.nodeValue.slice(0,i)).length),{startContainer:r,startOffset:o,endContainer:a,endOffset:i}}}(c,n,R),A(u,c,n,{text:d}),u.formats.length+=d.length,u.replacements.length+=d.length,u.text+=d,"continue"}if(c.nodeType!==F)return"continue";if(l&&(c.getAttribute("data-rich-text-placeholder")||"br"===f&&!c.getAttribute("data-rich-text-line-break")))return A(u,c,n,{formats:[],replacements:[],text:""}),"continue";if("br"===f)return A(u,c,n,{formats:[],replacements:[],text:""}),L(u,S({text:"\n"})),"continue";var p=u.formats[u.formats.length-1],h=p&&p[p.length-1],m=function(e){var t,n=e.type,r=e.attributes;if(r&&r.class&&(t=Object(o.select)("core/rich-text").getFormatTypeForClassName(r.class))&&(r.class=" ".concat(r.class," ").replace(" ".concat(t.className," ")," ").trim(),r.class||delete r.class),t||(t=Object(o.select)("core/rich-text").getFormatTypeForBareElement(n)),!t)return r?{type:n,attributes:r}:{type:n};if(t.__experimentalCreatePrepareEditableTree&&!t.__experimentalCreateOnChangeEditableValue)return null;if(!r)return{type:t.name};var a={},i={};for(var c in r){var s=N(t.attributes,c);s?a[s]=r[c]:i[c]=r[c]}return{type:t.name,attributes:a,unregisteredAttributes:i}}({type:f,attributes:I({element:c})}),g=b(m,h)?h:m;if(a&&-1!==a.indexOf(f)){var y=D({element:c,range:n,multilineTag:r,multilineWrapperTags:a,currentWrapperTags:[].concat(Object(v.a)(s),[g]),isEditableTree:l});return A(u,c,n,y),L(u,y),"continue"}var O=P({element:c,range:n,multilineTag:r,multilineWrapperTags:a,isEditableTree:l});A(u,c,n,O),g?0===O.text.length?g.attributes&&L(u,{formats:[,],replacements:[g],text:_}):L(u,Object(i.a)({},O,{formats:Array.from(O.formats,(function(e){return e?[g].concat(Object(v.a)(e)):[g]}))})):L(u,O)},p=0;p0)&&L(s,{formats:[,],replacements:i.length>0?[i]:[,],text:x}),A(s,f,n,d),L(s,d)}}return s}function I(e){var t=e.element;if(t.hasAttributes()){for(var n,r=t.attributes.length,a=0;a1&&void 0!==arguments[1]?arguments[1]:t;r--;)if(n[r]===x)return r}function U(e){var t=e.replacements[V(e,e.start)];return!t||t.length<1}function z(e,t,n){var r=e.replacements[V(e,e.start)];return r&&0!==r.length?r[r.length-1].type===t:t===n}function q(e){var t=e.start,n=e.end;if(void 0!==t&&void 0!==n)return t===n}function G(e){return 0===e.text.length}function Y(e){var t=e.text,n=e.start,r=e.end;return n===r&&(0===t.length||(0===n&&t.slice(0,1)===x||(n===t.length&&t.slice(-1)===x||t.slice(n-1,r+1)==="".concat(x).concat(x))))}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof t&&(t=S({text:t})),g(e.reduce((function(e,n){var r=n.formats,a=n.replacements,o=n.text;return{formats:e.formats.concat(t.formats,r),replacements:e.replacements.concat(t.replacements,a),text:e.text+t.text+o}})))}var X=n(0),Z=n(27),J=n(8);function Q(e,t){if("string"==typeof(t=Object(i.a)({name:e},t)).name)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(t.name))if(Object(o.select)("core/rich-text").getFormatType(t.name))window.console.error('Format "'+t.name+'" is already registered.');else if("string"==typeof t.tagName&&""!==t.tagName)if("string"==typeof t.className&&""!==t.className||null===t.className)if(/^[_a-zA-Z]+[a-zA-Z0-9-]*$/.test(t.className)){if(null===t.className){var n=Object(o.select)("core/rich-text").getFormatTypeForBareElement(t.tagName);if(n)return void window.console.error('Format "'.concat(n.name,'" is already registered to handle bare tag name "').concat(t.tagName,'".'))}else{var r=Object(o.select)("core/rich-text").getFormatTypeForClassName(t.className);if(r)return void window.console.error('Format "'.concat(r.name,'" is already registered to handle class name "').concat(t.className,'".'))}if("title"in t&&""!==t.title)if("keywords"in t&&t.keywords.length>3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title)return Object(o.dispatch)("core/rich-text").addFormatTypes(t),t.__experimentalCreatePrepareEditableTree&&Object(Z.addFilter)("experimentalRichText",e,(function(n){var r="format_prepare_props_(".concat(e,")_"),a="format_on_change_props_(".concat(e,")_"),s=function(o){var c=Object(i.a)({},o),s=Object.keys(o).reduce((function(e,t){return t.startsWith(r)&&(e[t.slice(r.length)]=o[t]),t.startsWith(a)&&(e[t.slice(a.length)]=o[t]),e}),{}),l={richTextIdentifier:o.identifier,blockClientId:o.clientId};return t.__experimentalCreateOnChangeEditableValue?(c["format_value_functions_(".concat(e,")")]=t.__experimentalCreatePrepareEditableTree(s,l),c["format_on_change_functions_(".concat(e,")")]=t.__experimentalCreateOnChangeEditableValue(s,l)):c["format_prepare_functions_(".concat(e,")")]=t.__experimentalCreatePrepareEditableTree(s,l),Object(X.createElement)(n,c)},l=[];return t.__experimentalGetPropsForEditableTreePreparation&&l.push(Object(o.withSelect)((function(e,n){var a=n.clientId,o=n.identifier;return Object(c.mapKeys)(t.__experimentalGetPropsForEditableTreePreparation(e,{richTextIdentifier:o,blockClientId:a}),(function(e,t){return r+t}))}))),t.__experimentalGetPropsForEditableTreeChangeHandler&&l.push(Object(o.withDispatch)((function(e,n){var r=n.clientId,o=n.identifier;return Object(c.mapKeys)(t.__experimentalGetPropsForEditableTreeChangeHandler(e,{richTextIdentifier:o,blockClientId:r}),(function(e,t){return a+t}))}))),l.length?Object(J.compose)(l)(s):s})),t;window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.start,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,s=a.slice();if(n===r){var l=Object(c.find)(s[n],{type:t});if(l){for(;Object(c.find)(s[n],l);)te(s,n,t),n--;for(r++;Object(c.find)(s[r],l);)te(s,r,t),r++}}else for(var u=n;u2&&void 0!==arguments[2]?arguments[2]:e.start,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.replacements,i=e.text;"string"==typeof t&&(t=S({text:t}));var c=n+t.text.length;return g({formats:a.slice(0,n).concat(t.formats,a.slice(r)),replacements:o.slice(0,n).concat(t.replacements,o.slice(r)),text:i.slice(0,n)+t.text+i.slice(r),start:c,end:c})}function re(e,t,n){return ne(e,S(),t,n)}function ae(e,t,n){var r=e.formats,a=e.replacements,o=e.text,i=e.start,c=e.end;return o=o.replace(t,(function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:e.start,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,r=B(e).slice(0,t).lastIndexOf(x),a=e.replacements[r],o=[,];return a&&(o=[a]),ne(e,{formats:[,],replacements:o,text:x},t,n)}function ie(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.replacements,r=e.text,a=e.start,o=e.end,c=q(e),s=a-1,l=c?a-1:a,u=o;if(t||(s=o,l=a,u=c?o+1:o),r[s]===x){var f;if(c&&n[s]&&n[s].length){var d=n.slice();d[s]=n[s].slice(0,-1),f=Object(i.a)({},e,{replacements:d})}else f=re(e,l,u);return f}}var ce="";function se(e,t,n,r){return ne(e,{formats:[,],replacements:[t],text:ce},n,r)}function le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.start,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,r=e.formats,a=e.replacements,o=e.text;return void 0===t||void 0===n?Object(i.a)({},e):{formats:r.slice(t,n),replacements:a.slice(t,n),text:o.slice(t,n)}}function ue(e,t){var n=e.formats,r=e.replacements,a=e.text,o=e.start,i=e.end;if("string"!=typeof t)return fe.apply(void 0,arguments);var c=0;return a.split(t).map((function(e){var a=c,s={formats:n.slice(a,a+e.length),replacements:r.slice(a,a+e.length),text:e};return c+=t.length+e.length,void 0!==o&&void 0!==i&&(o>=a&&oa&&(s.start=0),i>=a&&ic&&(s.end=e.length)),s}))}function fe(e){var t=e.formats,n=e.replacements,r=e.text,a=e.start,o=e.end,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s={formats:t.slice(0,i),replacements:n.slice(0,i),text:r.slice(0,i)},l={formats:t.slice(c),replacements:n.slice(c),text:r.slice(c),start:0,end:0};return[ae(s,/\u2028+$/,""),ae(l,/^\u2028+/,"")]}function de(e){var t=e.type,n=e.attributes,r=e.unregisteredAttributes,a=e.object,c=e.boundaryClass,s=function(e){return Object(o.select)("core/rich-text").getFormatType(e)}(t),l={};if(c&&(l["data-rich-text-format-boundary"]="true"),!s)return n&&(l=Object(i.a)({},n,l)),{type:t,attributes:l,object:a};for(var u in l=Object(i.a)({},r,l),n){var f=!!s.attributes&&s.attributes[u];f?l[f]=n[u]:l[u]=n[u]}return s.className&&(l.class?l.class="".concat(s.className," ").concat(l.class):l.class=s.className),{type:s.tagName,object:s.object,attributes:l}}function pe(e){var t,n,r,a=e.value,o=e.multilineTag,c=e.createEmpty,s=e.append,l=e.getLastChild,u=e.getParent,f=e.isText,d=e.getText,p=e.remove,h=e.appendText,m=e.onStartIndex,b=e.onEndIndex,g=e.isEditableTree,y=e.placeholder,O=a.formats,T=a.replacements,j=a.text,C=a.start,w=a.end,F=O.length+1,N=c(),S={type:o},A=H(a),k=A[A.length-1];o?(s(s(N,{type:o}),""),n=t=[S]):s(N,"");for(var R=function(e){var a=j.charAt(e),c=g&&(!r||r===x||"\n"===r),F=O[e];o&&(F=a===x?t=(T[e]||[]).reduce((function(e,t){return e.push(t,S),e}),[S]):[].concat(Object(v.a)(t),Object(v.a)(F||[])));var A=l(N);if(c&&a===x){for(var R=A;!f(R);)R=l(R);s(u(R),E)}if(r===x){for(var P=A;!f(P);)P=l(P);m&&C===e&&m(N,P),b&&w===e&&b(N,P)}if(F&&F.forEach((function(e,t){if(!A||!n||e!==n[t]||a===x&&F.length-1===t){var r=e.type,o=e.attributes,i=e.unregisteredAttributes,c=g&&a!==x&&e===k,h=u(A),m=s(h,de({type:r,attributes:o,unregisteredAttributes:i,boundaryClass:c}));f(A)&&0===d(A).length&&p(A),A=s(m,"")}else A=l(A)})),a===x)return n=F,r=a,"continue";0===e&&(m&&0===C&&m(N,A),b&&0===w&&b(N,A)),a===_?(A=s(u(A),de(Object(i.a)({},T[e],{object:!0}))),A=s(u(A),"")):"\n"===a?(A=s(u(A),{type:"br",attributes:g?{"data-rich-text-line-break":"true"}:void 0,object:!0}),A=s(u(A),"")):f(A)?h(A,a):A=s(u(A),a),m&&C===e+1&&m(N,A),b&&w===e+1&&b(N,A),c&&e===j.length&&(s(u(A),E),y&&0===j.length&&s(u(A),{type:"span",attributes:{"data-rich-text-placeholder":y,contenteditable:"false"}})),n=F,r=a},P=0;P1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}var be=function(){return j(document,"")};function ge(e,t){"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));var n=t,r=n.type,a=n.attributes;if(r)for(var o in t=e.ownerDocument.createElement(r),a)t.setAttribute(o,a[o]);return e.appendChild(t)}function ye(e,t){e.appendData(t)}function Oe(e){return e.lastChild}function Te(e){return e.parentNode}function je(e){return e.nodeType===he}function xe(e){return e.nodeValue}function _e(e){return e.parentNode.removeChild(e)}function Ee(e){var t=e.value,n=e.multilineTag,r=e.prepareEditableTree,a=e.isEditableTree,o=void 0===a||a,c=e.placeholder,s=[],l=[];return r&&(t=Object(i.a)({},t,{formats:r(t)})),{body:pe({value:t,multilineTag:n,createEmpty:be,append:ge,getLastChild:Oe,getParent:Te,isText:je,getText:xe,remove:_e,appendText:ye,onStartIndex:function(e,t){s=me(t,e,[t.nodeValue.length])},onEndIndex:function(e,t){l=me(t,e,[t.nodeValue.length])},isEditableTree:o,placeholder:c}),selection:{startPath:s,endPath:l}}}function Ce(e){var t=e.value,n=e.current,r=e.multilineTag,a=e.prepareEditableTree,o=e.__unstableDomOnly,i=Ee({value:t,multilineTag:r,prepareEditableTree:a,placeholder:e.placeholder}),c=i.body,s=i.selection;!function e(t,n){var r=0;var a;for(;a=t.firstChild;){var o=n.childNodes[r];if(o)if(o.isEqualNode(a))t.removeChild(a);else if(o.nodeName!==a.nodeName||o.nodeType===he&&o.data!==a.data)n.replaceChild(a,o);else{var i=o.attributes,c=a.attributes;if(i)for(var s=i.length;s--;){var l=i[s].name;a.getAttribute(l)||o.removeAttribute(l)}if(c)for(var u=0;u0){if(p=d,h=u.getRangeAt(0),p.startContainer===h.startContainer&&p.startOffset===h.startOffset&&p.endContainer===h.endContainer&&p.endOffset===h.endOffset)return;u.removeAllRanges()}var p,h;u.addRange(d)}(s,n)}var we=n(74);function Fe(e){return Le(pe({value:e.value,multilineTag:e.multilineTag,createEmpty:Ne,append:Ae,getLastChild:Se,getParent:Re,isText:Pe,getText:De,remove:Ie,appendText:ke}).children)}function Ne(){return{}}function Se(e){var t=e.children;return t&&t[t.length-1]}function Ae(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function ke(e,t){e.text+=t}function Re(e){return e.parent}function Pe(e){return"string"==typeof e.text}function De(e){return e.text}function Ie(e){var t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function Le(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return void 0===e.text?function(e){var t=e.type,n=e.attributes,r=e.object,a=e.children,o="";for(var i in n)Object(we.isValidAttributeName)(i)&&(o+=" ".concat(i,'="').concat(Object(we.escapeAttribute)(n[i]),'"'));return r?"<".concat(t).concat(o,">"):"<".concat(t).concat(o,">").concat(Le(a),"")}(e):Object(we.escapeHTML)(e.text)})).join("")}function Me(e,t){return W(e,t.type)?ee(e,t.type):O(e,t)}function He(e){var t=Object(o.select)("core/rich-text").getFormatType(e);if(t)return t.__experimentalCreatePrepareEditableTree&&Object(Z.removeFilter)("experimentalRichText",e),Object(o.dispatch)("core/rich-text").removeFormatTypes(e),t;window.console.error("Format ".concat(e," is not registered."))}function We(e,t){var n=V(e);if(void 0===n)return e;var r=e.text,a=e.replacements,o=e.end,c=V(e,n),s=a[n]||[],l=a[c]||[];if(s.length>l.length)return e;for(var u=a.slice(),f=function(e,t){for(var n=e.text,r=e.replacements,a=r[t]||[],o=t;o-- >=0;)if(n[o]===x){var i=r[o]||[];if(i.length===a.length+1)return o;if(i.length<=a.length)return}}(e,n),d=n;d=0;){if(n[o]===x)if((r[o]||[]).length===a.length-1)return o}}function Be(e){var t=e.text,n=e.replacements,r=e.start,a=e.end,o=V(e,r);if(void 0===n[o])return e;for(var c=n.slice(0),s=n[Ke(e,o)]||[],l=function(e,t){for(var n=e.text,r=e.replacements,a=r[t]||[],o=t,i=t||0;i=a.length))return o;o=i}return o}(e,V(e,a)),u=o;u<=l;u++)if(t[u]===x){var f=c[u]||[];c[u]=s.concat(f.slice(s.length+1)),0===c[u].length&&delete c[u]}return Object(i.a)({},e,{replacements:c})}function Ve(e,t){for(var n,r=e.text,a=e.replacements,o=e.start,c=e.end,s=V(e,o),l=a[s]||[],u=a[V(e,c)]||[],f=Ke(e,s),d=a.slice(),p=l.length-1,h=u.length-1,m=f+1||0;mh?e:t})))}return n?Object(i.a)({},e,{replacements:d}):e}var Ue=n(18),ze=n(12),qe=n(11),Ge=n(13),Ye=n(14),$e=n(5),Xe=n(15),Ze=n(16),Je=n.n(Ze),Qe=n(19),et=n(41),tt=n.n(et),nt=n(37),rt=n.n(nt),at=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]),ot=Object(o.withSelect)((function(e){return{formatTypes:e("core/rich-text").getFormatTypes()}}))((function(e){var t=e.formatTypes,n=e.onChange,r=e.value,a=e.allowedFormats,o=e.withoutInteractiveFormatting;return t.map((function(e){var t=e.name,i=e.edit,c=e.tagName;if(!i)return null;if(a&&-1===a.indexOf(t))return null;if(o&&at.has(c))return null;var s=W(r,t),l=void 0!==s,u=K(r),f=void 0!==u;return Object(X.createElement)(i,{key:t,isActive:l,activeAttributes:l&&s.attributes||{},isObjectActive:f,activeObjectAttributes:f&&u.attributes||{},value:r,onChange:n})}))})),it=n(21),ct=function(e){return Object(c.pickBy)(e,(function(e,t){return n=t,Object(c.startsWith)(n,"aria-")&&!Object(c.isNil)(e);var n}))},st=function(e){function t(){var e;return Object(ze.a)(this,t),(e=Object(Ge.a)(this,Object(Ye.a)(t).call(this))).bindEditorNode=e.bindEditorNode.bind(Object($e.a)(e)),e}return Object(Xe.a)(t,e),Object(qe.a)(t,[{key:"shouldComponentUpdate",value:function(e){var t=this;Object(c.isEqual)(this.props.style,e.style)||(this.editorNode.setAttribute("style",""),Object.assign(this.editorNode.style,Object(i.a)({},e.style||{},{whiteSpace:"pre-wrap"}))),Object(c.isEqual)(this.props.className,e.className)||(this.editorNode.className=e.className),this.props.start!==e.start&&this.editorNode.setAttribute("start",e.start),this.props.reversed!==e.reversed&&(this.editorNode.reversed=e.reversed);var n=function(e,t){var n=Object(c.keys)(ct(e)),r=Object(c.keys)(ct(t));return{removedKeys:Object(c.difference)(n,r),updatedKeys:r.filter((function(n){return!Object(c.isEqual)(e[n],t[n])}))}}(this.props,e),r=n.removedKeys,a=n.updatedKeys;return r.forEach((function(e){return t.editorNode.removeAttribute(e)})),a.forEach((function(n){return t.editorNode.setAttribute(n,e[n])})),!1}},{key:"bindEditorNode",value:function(e){this.editorNode=e,this.props.setRef(e)}},{key:"render",value:function(){var e=this.props,t=e.tagName,n=void 0===t?"div":t,r=e.style,a=void 0===r?{}:r,o=e.record,c=e.valueToEditableHTML,s=e.className,l=Object(it.a)(e,["tagName","style","record","valueToEditableHTML","className"]);delete l.setRef;return Object(X.createElement)(n,Object(i.a)({role:"textbox","aria-multiline":!0,className:s,contentEditable:!0,ref:this.bindEditorNode,style:Object(i.a)({},a,{whiteSpace:"pre-wrap"}),suppressContentEditableWarning:!0,dangerouslySetInnerHTML:{__html:c(o)}},l))}}]),t}(X.Component);function lt(e){var t=e.value,n=e.start,r=e.end,a=e.formats,o=t.formats[n-1]||[],i=t.formats[r]||[];for(t.activeFormats=a.map((function(e,t){if(o[t]){if(b(e,o[t]))return o[t]}else if(i[t]&&b(e,i[t]))return i[t];return e}));--r>=n;)t.activeFormats.length>0?t.formats[r]=t.activeFormats:delete t.formats[r];return t}var ut=window,ft=ut.getSelection,dt=ut.getComputedStyle,pt=new Set(["insertParagraph","insertOrderedList","insertUnorderedList","insertHorizontalRule","insertLink"]),ht=document.createElement("style");function mt(e,t){var n=Object.keys(e).reduce((function(n,r){return r.startsWith(t)&&n.push(e[r]),n}),[]);return function(e){return n.reduce((function(t,n){return n(t,e.text)}),e.formats)}}document.head.appendChild(ht);var vt=function(e){function t(e){var n,r=e.value,a=e.selectionStart,o=e.selectionEnd;return Object(ze.a)(this,t),(n=Object(Ge.a)(this,Object(Ye.a)(t).apply(this,arguments))).onFocus=n.onFocus.bind(Object($e.a)(n)),n.onBlur=n.onBlur.bind(Object($e.a)(n)),n.onChange=n.onChange.bind(Object($e.a)(n)),n.handleDelete=n.handleDelete.bind(Object($e.a)(n)),n.handleEnter=n.handleEnter.bind(Object($e.a)(n)),n.handleSpace=n.handleSpace.bind(Object($e.a)(n)),n.handleHorizontalNavigation=n.handleHorizontalNavigation.bind(Object($e.a)(n)),n.onPaste=n.onPaste.bind(Object($e.a)(n)),n.onCreateUndoLevel=n.onCreateUndoLevel.bind(Object($e.a)(n)),n.onInput=n.onInput.bind(Object($e.a)(n)),n.onCompositionEnd=n.onCompositionEnd.bind(Object($e.a)(n)),n.onSelectionChange=n.onSelectionChange.bind(Object($e.a)(n)),n.createRecord=n.createRecord.bind(Object($e.a)(n)),n.applyRecord=n.applyRecord.bind(Object($e.a)(n)),n.valueToFormat=n.valueToFormat.bind(Object($e.a)(n)),n.setRef=n.setRef.bind(Object($e.a)(n)),n.valueToEditableHTML=n.valueToEditableHTML.bind(Object($e.a)(n)),n.onPointerDown=n.onPointerDown.bind(Object($e.a)(n)),n.formatToValue=n.formatToValue.bind(Object($e.a)(n)),n.Editable=n.Editable.bind(Object($e.a)(n)),n.onKeyDown=function(e){e.defaultPrevented||(n.handleDelete(e),n.handleEnter(e),n.handleSpace(e),n.handleHorizontalNavigation(e))},n.state={},n.lastHistoryValue=r,n.value=r,n.record=n.formatToValue(r),n.record.start=a,n.record.end=o,n}return Object(Xe.a)(t,e),Object(qe.a)(t,[{key:"componentWillUnmount",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange),window.cancelAnimationFrame(this.rafId)}},{key:"setRef",value:function(e){e?this.editableRef=e:delete this.editableRef}},{key:"createRecord",value:function(){var e=this.props.__unstableMultilineTag,t=ft(),n=t.rangeCount>0?t.getRangeAt(0):null;return S({element:this.editableRef,range:n,multilineTag:e,multilineWrapperTags:"li"===e?["ul","ol"]:void 0,__unstableIsEditableTree:!0})}},{key:"applyRecord",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.domOnly,r=this.props.__unstableMultilineTag;Ce({value:e,current:this.editableRef,multilineTag:r,multilineWrapperTags:"li"===r?["ul","ol"]:void 0,prepareEditableTree:mt(this.props,"format_prepare_functions"),__unstableDomOnly:n,placeholder:this.props.placeholder})}},{key:"onPaste",value:function(e){var t=this.props,n=t.formatTypes,r=t.onPaste,a=e.clipboardData,o=a.items,i=a.files;o=Object(c.isNil)(o)?[]:o,i=Object(c.isNil)(i)?[]:i;var s="",l="";try{s=a.getData("text/plain"),l=a.getData("text/html")}catch(e){try{l=a.getData("Text")}catch(e){return}}e.preventDefault(),window.console.log("Received HTML:\n\n",l),window.console.log("Received plain text:\n\n",s);var u=this.record,f=n.reduce((function(e,t){var n=t.__unstablePasteRule;return n&&e===u&&(e=n(u,{html:l,plainText:s})),e}),u);if(f===u){if(r){var d=Object(c.find)([].concat(Object(v.a)(o),Object(v.a)(i)),(function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}));r({value:this.removeEditorOnlyFormats(u),onChange:this.onChange,html:l,plainText:s,image:d})}}else this.onChange(f)}},{key:"onFocus",value:function(){var e=this.props.unstableOnFocus;e&&e(),this.recalculateBoundaryStyle();this.record=Object(i.a)({},this.record,{start:void 0,end:void 0,activeFormats:void 0}),this.props.onSelectionChange(void 0,void 0),this.setState({activeFormats:void 0}),this.rafId=window.requestAnimationFrame(this.onSelectionChange),document.addEventListener("selectionchange",this.onSelectionChange),this.props.setFocusedElement&&(rt()("wp.blockEditor.RichText setFocusedElement prop",{alternative:"selection state from the block editor store."}),this.props.setFocusedElement(this.props.instanceId))}},{key:"onBlur",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"onInput",value:function(e){var t;if(e&&e.nativeEvent&&e.nativeEvent.isComposing)document.removeEventListener("selectionchange",this.onSelectionChange);else if(e&&(t=e.inputType),t||(t=e.nativeEvent.inputType),!t||0!==t.indexOf("format")&&!pt.has(t)){var n=this.createRecord(),r=this.record,a=r.start,o=r.activeFormats,c=void 0===o?[]:o,s=lt({value:n,start:a,end:n.start,formats:c});this.onChange(s,{withoutHistory:!0});var l=this.props,u=l.__unstableInputRule,f=l.__unstableMarkAutomaticChange,d=l.formatTypes,p=l.setTimeout;if((0,l.clearTimeout)(this.onInput.timeout),this.onInput.timeout=p(this.onCreateUndoLevel,1e3),"insertText"===t){u&&u(s,this.valueToFormat);var h=d.reduce((function(e,t){var n=t.__unstableInputRule;return n&&(e=n(e)),e}),s);h!==s&&(this.onCreateUndoLevel(),this.onChange(Object(i.a)({},h,{activeFormats:c})),f())}}else this.applyRecord(this.record)}},{key:"onCompositionEnd",value:function(){this.onInput({inputType:"insertText"}),document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"onSelectionChange",value:function(e){if(("selectionchange"===e.type||this.props.__unstableIsSelected)&&(!e.nativeEvent||!e.nativeEvent.isComposing)){var t=this.createRecord(),n=t.start,r=t.end,a=t.text,o=this.record;if(a===o.text)if(n!==o.start||r!==o.end){var c=this.props,s=c.__unstableIsCaretWithinFormattedText,l=c.__unstableOnEnterFormattedText,u=c.__unstableOnExitFormattedText,f=Object(i.a)({},o,{start:n,end:r,activeFormats:void 0}),d=H(f);f.activeFormats=d,!s&&d.length?l():s&&!d.length&&u(),this.record=f,this.applyRecord(f,{domOnly:!0}),this.props.onSelectionChange(n,r),this.setState({activeFormats:d}),d.length>0&&this.recalculateBoundaryStyle()}else 0===o.text.length&&0===n&&this.applyRecord(o);else this.onInput()}}},{key:"recalculateBoundaryStyle",value:function(){var e=this.editableRef.querySelector("*[data-rich-text-format-boundary]");if(e){var t=dt(e).color.replace(")",", 0.2)").replace("rgb","rgba"),n=".rich-text:focus ".concat("*[data-rich-text-format-boundary]"),r="background-color: ".concat(t);ht.innerHTML="".concat(n," {").concat(r,"}")}}},{key:"onChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.withoutHistory;this.applyRecord(e);var r=e.start,a=e.end,o=e.activeFormats,i=void 0===o?[]:o,s=Object(c.pickBy)(this.props,(function(e,t){return t.startsWith("format_on_change_functions_")}));Object.values(s).forEach((function(t){t(e.formats,e.text)})),this.value=this.valueToFormat(e),this.record=e,this.props.onChange(this.value),this.props.onSelectionChange(r,a),this.setState({activeFormats:i}),n||this.onCreateUndoLevel()}},{key:"onCreateUndoLevel",value:function(){this.lastHistoryValue!==this.value&&(this.props.__unstableOnCreateUndoLevel(),this.lastHistoryValue=this.value)}},{key:"handleDelete",value:function(e){var t=e.keyCode;if(t===Qe.DELETE||t===Qe.BACKSPACE||t===Qe.ESCAPE){if(this.props.__unstableDidAutomaticChange)return e.preventDefault(),void this.props.__unstableUndo();if(t!==Qe.ESCAPE){var n=this.props,r=n.onDelete,a=n.__unstableMultilineTag,o=this.state.activeFormats,i=void 0===o?[]:o,c=this.createRecord(),s=c.start,l=c.end,u=c.text,f=t===Qe.BACKSPACE;if(a){var d=ie(c,f);d&&(this.onChange(d),e.preventDefault())}if(0===s&&0!==l&&l===u.length)return this.onChange(re(c)),void e.preventDefault();!r||!q(c)||i.length||f&&0!==s||!f&&l!==u.length||(r({isReverse:f,value:c}),e.preventDefault())}}}},{key:"handleEnter",value:function(e){if(e.keyCode===Qe.ENTER){e.preventDefault();var t=this.props.onEnter;t&&t({value:this.removeEditorOnlyFormats(this.createRecord()),onChange:this.onChange,shiftKey:e.shiftKey})}}},{key:"handleSpace",value:function(e){var t=e.keyCode,n=e.shiftKey,r=e.altKey,a=e.metaKey,o=e.ctrlKey,i=this.props,c=i.tagName,s=i.__unstableMultilineTag;if(!(n||r||a||o||t!==Qe.SPACE||"li"!==s)){var l=this.createRecord();if(q(l)){var u=l.text[l.start-1];u&&u!==x||(this.onChange(We(l,{type:c})),e.preventDefault())}}}},{key:"handleHorizontalNavigation",value:function(e){var t=this,n=e.keyCode,r=e.shiftKey,a=e.altKey,o=e.metaKey,c=e.ctrlKey;if(!(r||a||o||c||n!==Qe.LEFT&&n!==Qe.RIGHT)){var s=this.record,l=s.text,u=s.formats,f=s.start,d=s.end,p=s.activeFormats,h=void 0===p?[]:p,m=q(s),v="rtl"===dt(this.editableRef).direction?Qe.RIGHT:Qe.LEFT,b=e.keyCode===v;if(m&&0===h.length){if(0===f&&b)return;if(d===l.length&&!b)return}if(m){e.preventDefault();var g=u[f-1]||[],y=u[f]||[],O=h.length,T=y;if(g.length>y.length&&(T=g),g.lengthg.length&&O--):g.length>y.length&&(!b&&h.length>y.length&&O--,b&&h.length=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}n.d(t,"a",(function(){return r}))},27:function(e,t){!function(){e.exports=this.wp.hooks}()},30:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},31:function(e,t,n){"use strict";function r(e){return(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})(e)}function a(e){return(a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return a}))},315:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"getFormatTypes",(function(){return u})),n.d(r,"getFormatType",(function(){return f})),n.d(r,"getFormatTypeForBareElement",(function(){return d})),n.d(r,"getFormatTypeForClassName",(function(){return p}));var a={};n.r(a),n.d(a,"addFormatTypes",(function(){return h})),n.d(a,"removeFormatTypes",(function(){return m}));var o=n(4),i=n(7),c=n(2);var s=Object(o.combineReducers)({formatTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_FORMAT_TYPES":return Object(i.a)({},e,Object(c.keyBy)(t.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(c.omit)(e,t.names)}return e}}),l=n(36),u=Object(l.a)((function(e){return Object.values(e.formatTypes)}),(function(e){return[e.formatTypes]}));function f(e,t){return e.formatTypes[t]}function d(e,t){return Object(c.find)(u(e),(function(e){var n=e.className,r=e.tagName;return null===n&&t===r}))}function p(e,t){return Object(c.find)(u(e),(function(e){var n=e.className;return null!==n&&" ".concat(t," ").indexOf(" ".concat(n," "))>=0}))}function h(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(c.castArray)(e)}}function m(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(c.castArray)(e)}}Object(o.registerStore)("core/rich-text",{reducer:s,selectors:r,actions:a});var v=n(17);function b(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;var n=e.attributes,r=t.attributes;if(n===r)return!0;if(!n||!r)return!1;var a=Object.keys(n),o=Object.keys(r);if(a.length!==o.length)return!1;for(var i=a.length,c=0;c2&&void 0!==arguments[2]?arguments[2]:e.start,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,s=a.slice();if(n===r){var l=Object(c.find)(s[n],{type:t.type});if(l){for(var u=s[n].indexOf(l);s[n]&&s[n][u]===l;)s[n]=y(s[n],u,t),n--;for(r++;s[r]&&s[r][u]===l;)s[r]=y(s[r],u,t),r++}}else{for(var f=1/0,d=n;d0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,n=e.text,r=e.html,a=e.range,o=e.multilineTag,i=e.multilineWrapperTags,c=e.__unstableIsEditableTree;return"string"==typeof n&&n.length>0?{formats:Array(n.length),replacements:Array(n.length),text:n}:("string"==typeof r&&r.length>0&&(t=j(document,r)),"object"!==Object(T.a)(t)?{formats:[],replacements:[],text:""}:o?D({element:t,range:a,multilineTag:o,multilineWrapperTags:i,isEditableTree:c}):P({element:t,range:a,isEditableTree:c}))}function A(e,t,n,r){if(n){var a=t.parentNode,o=n.startContainer,i=n.startOffset,c=n.endContainer,s=n.endOffset,l=e.text.length;void 0!==r.start?e.start=l+r.start:t===o&&t.nodeType===w?e.start=l+i:a===o&&t===o.childNodes[i]?e.start=l:a===o&&t===o.childNodes[i-1]?e.start=l+r.text.length:t===o&&(e.start=l),void 0!==r.end?e.end=l+r.end:t===c&&t.nodeType===w?e.end=l+s:a===c&&t===c.childNodes[s-1]?e.end=l+r.text.length:a===c&&t===c.childNodes[s]?e.end=l:t===c&&(e.end=l+s)}}var k=new RegExp(E,"g");function R(e){return e.replace(/[\n\r\t]+/g," ").replace(k,"")}function P(e){var t=e.element,n=e.range,r=e.multilineTag,a=e.multilineWrapperTags,c=e.currentWrapperTags,s=void 0===c?[]:c,l=e.isEditableTree,u={formats:[],replacements:[],text:""};if(!t)return u;if(!t.hasChildNodes())return A(u,t,n,{formats:[],replacements:[],text:""}),u;for(var f=t.childNodes.length,d=function(e){var c=t.childNodes[e],f=c.nodeName.toLowerCase();if(c.nodeType===w){var d=R(c.nodeValue);return n=function(e,t,n){if(t){var r=t.startContainer,a=t.endContainer,o=t.startOffset,i=t.endOffset;return e===r&&(o=n(e.nodeValue.slice(0,o)).length),e===a&&(i=n(e.nodeValue.slice(0,i)).length),{startContainer:r,startOffset:o,endContainer:a,endOffset:i}}}(c,n,R),A(u,c,n,{text:d}),u.formats.length+=d.length,u.replacements.length+=d.length,u.text+=d,"continue"}if(c.nodeType!==F)return"continue";if(l&&(c.getAttribute("data-rich-text-placeholder")||"br"===f&&!c.getAttribute("data-rich-text-line-break")))return A(u,c,n,{formats:[],replacements:[],text:""}),"continue";if("br"===f)return A(u,c,n,{formats:[],replacements:[],text:""}),L(u,S({text:"\n"})),"continue";var p=u.formats[u.formats.length-1],h=p&&p[p.length-1],m=function(e){var t,n=e.type,r=e.attributes;if(r&&r.class&&(t=Object(o.select)("core/rich-text").getFormatTypeForClassName(r.class))&&(r.class=" ".concat(r.class," ").replace(" ".concat(t.className," ")," ").trim(),r.class||delete r.class),t||(t=Object(o.select)("core/rich-text").getFormatTypeForBareElement(n)),!t)return r?{type:n,attributes:r}:{type:n};if(t.__experimentalCreatePrepareEditableTree&&!t.__experimentalCreateOnChangeEditableValue)return null;if(!r)return{type:t.name};var a={},i={};for(var c in r){var s=N(t.attributes,c);s?a[s]=r[c]:i[c]=r[c]}return{type:t.name,attributes:a,unregisteredAttributes:i}}({type:f,attributes:I({element:c})}),g=b(m,h)?h:m;if(a&&-1!==a.indexOf(f)){var y=D({element:c,range:n,multilineTag:r,multilineWrapperTags:a,currentWrapperTags:[].concat(Object(v.a)(s),[g]),isEditableTree:l});return A(u,c,n,y),L(u,y),"continue"}var O=P({element:c,range:n,multilineTag:r,multilineWrapperTags:a,isEditableTree:l});A(u,c,n,O),g?0===O.text.length?g.attributes&&L(u,{formats:[,],replacements:[g],text:_}):L(u,Object(i.a)({},O,{formats:Array.from(O.formats,(function(e){return e?[g].concat(Object(v.a)(e)):[g]}))})):L(u,O)},p=0;p0)&&L(s,{formats:[,],replacements:i.length>0?[i]:[,],text:x}),A(s,f,n,d),L(s,d)}}return s}function I(e){var t=e.element;if(t.hasAttributes()){for(var n,r=t.attributes.length,a=0;a1&&void 0!==arguments[1]?arguments[1]:t;r--;)if(n[r]===x)return r}function U(e){var t=e.replacements[V(e,e.start)];return!t||t.length<1}function z(e,t,n){var r=e.replacements[V(e,e.start)];return r&&0!==r.length?r[r.length-1].type===t:t===n}function q(e){var t=e.start,n=e.end;if(void 0!==t&&void 0!==n)return t===n}function G(e){return 0===e.text.length}function Y(e){var t=e.text,n=e.start,r=e.end;return n===r&&(0===t.length||(0===n&&t.slice(0,1)===x||(n===t.length&&t.slice(-1)===x||t.slice(n-1,r+1)==="".concat(x).concat(x))))}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof t&&(t=S({text:t})),g(e.reduce((function(e,n){var r=n.formats,a=n.replacements,o=n.text;return{formats:e.formats.concat(t.formats,r),replacements:e.replacements.concat(t.replacements,a),text:e.text+t.text+o}})))}var X=n(0),Z=n(27),J=n(8);function Q(e,t){if("string"==typeof(t=Object(i.a)({name:e},t)).name)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(t.name))if(Object(o.select)("core/rich-text").getFormatType(t.name))window.console.error('Format "'+t.name+'" is already registered.');else if("string"==typeof t.tagName&&""!==t.tagName)if("string"==typeof t.className&&""!==t.className||null===t.className)if(/^[_a-zA-Z]+[a-zA-Z0-9-]*$/.test(t.className)){if(null===t.className){var n=Object(o.select)("core/rich-text").getFormatTypeForBareElement(t.tagName);if(n)return void window.console.error('Format "'.concat(n.name,'" is already registered to handle bare tag name "').concat(t.tagName,'".'))}else{var r=Object(o.select)("core/rich-text").getFormatTypeForClassName(t.className);if(r)return void window.console.error('Format "'.concat(r.name,'" is already registered to handle class name "').concat(t.className,'".'))}if("title"in t&&""!==t.title)if("keywords"in t&&t.keywords.length>3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title)return Object(o.dispatch)("core/rich-text").addFormatTypes(t),t.__experimentalCreatePrepareEditableTree&&Object(Z.addFilter)("experimentalRichText",e,(function(n){var r="format_prepare_props_(".concat(e,")_"),a="format_on_change_props_(".concat(e,")_"),s=function(o){var c=Object(i.a)({},o),s=Object.keys(o).reduce((function(e,t){return t.startsWith(r)&&(e[t.slice(r.length)]=o[t]),t.startsWith(a)&&(e[t.slice(a.length)]=o[t]),e}),{}),l={richTextIdentifier:o.identifier,blockClientId:o.clientId};return t.__experimentalCreateOnChangeEditableValue?(c["format_value_functions_(".concat(e,")")]=t.__experimentalCreatePrepareEditableTree(s,l),c["format_on_change_functions_(".concat(e,")")]=t.__experimentalCreateOnChangeEditableValue(s,l)):c["format_prepare_functions_(".concat(e,")")]=t.__experimentalCreatePrepareEditableTree(s,l),Object(X.createElement)(n,c)},l=[];return t.__experimentalGetPropsForEditableTreePreparation&&l.push(Object(o.withSelect)((function(e,n){var a=n.clientId,o=n.identifier;return Object(c.mapKeys)(t.__experimentalGetPropsForEditableTreePreparation(e,{richTextIdentifier:o,blockClientId:a}),(function(e,t){return r+t}))}))),t.__experimentalGetPropsForEditableTreeChangeHandler&&l.push(Object(o.withDispatch)((function(e,n){var r=n.clientId,o=n.identifier;return Object(c.mapKeys)(t.__experimentalGetPropsForEditableTreeChangeHandler(e,{richTextIdentifier:o,blockClientId:r}),(function(e,t){return a+t}))}))),l.length?Object(J.compose)(l)(s):s})),t;window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.start,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,s=a.slice();if(n===r){var l=Object(c.find)(s[n],{type:t});if(l){for(;Object(c.find)(s[n],l);)te(s,n,t),n--;for(r++;Object(c.find)(s[r],l);)te(s,r,t),r++}}else for(var u=n;u2&&void 0!==arguments[2]?arguments[2]:e.start,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.replacements,i=e.text;"string"==typeof t&&(t=S({text:t}));var c=n+t.text.length;return g({formats:a.slice(0,n).concat(t.formats,a.slice(r)),replacements:o.slice(0,n).concat(t.replacements,o.slice(r)),text:i.slice(0,n)+t.text+i.slice(r),start:c,end:c})}function re(e,t,n){return ne(e,S(),t,n)}function ae(e,t,n){var r=e.formats,a=e.replacements,o=e.text,i=e.start,c=e.end;return o=o.replace(t,(function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:e.start,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,r=B(e).slice(0,t).lastIndexOf(x),a=e.replacements[r],o=[,];return a&&(o=[a]),ne(e,{formats:[,],replacements:o,text:x},t,n)}function ie(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.replacements,r=e.text,a=e.start,o=e.end,c=q(e),s=a-1,l=c?a-1:a,u=o;if(t||(s=o,l=a,u=c?o+1:o),r[s]===x){var f;if(c&&n[s]&&n[s].length){var d=n.slice();d[s]=n[s].slice(0,-1),f=Object(i.a)({},e,{replacements:d})}else f=re(e,l,u);return f}}var ce="";function se(e,t,n,r){return ne(e,{formats:[,],replacements:[t],text:ce},n,r)}function le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.start,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,r=e.formats,a=e.replacements,o=e.text;return void 0===t||void 0===n?Object(i.a)({},e):{formats:r.slice(t,n),replacements:a.slice(t,n),text:o.slice(t,n)}}function ue(e,t){var n=e.formats,r=e.replacements,a=e.text,o=e.start,i=e.end;if("string"!=typeof t)return fe.apply(void 0,arguments);var c=0;return a.split(t).map((function(e){var a=c,s={formats:n.slice(a,a+e.length),replacements:r.slice(a,a+e.length),text:e};return c+=t.length+e.length,void 0!==o&&void 0!==i&&(o>=a&&oa&&(s.start=0),i>=a&&ic&&(s.end=e.length)),s}))}function fe(e){var t=e.formats,n=e.replacements,r=e.text,a=e.start,o=e.end,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s={formats:t.slice(0,i),replacements:n.slice(0,i),text:r.slice(0,i)},l={formats:t.slice(c),replacements:n.slice(c),text:r.slice(c),start:0,end:0};return[ae(s,/\u2028+$/,""),ae(l,/^\u2028+/,"")]}function de(e){var t=e.type,n=e.attributes,r=e.unregisteredAttributes,a=e.object,c=e.boundaryClass,s=function(e){return Object(o.select)("core/rich-text").getFormatType(e)}(t),l={};if(c&&(l["data-rich-text-format-boundary"]="true"),!s)return n&&(l=Object(i.a)({},n,l)),{type:t,attributes:l,object:a};for(var u in l=Object(i.a)({},r,l),n){var f=!!s.attributes&&s.attributes[u];f?l[f]=n[u]:l[u]=n[u]}return s.className&&(l.class?l.class="".concat(s.className," ").concat(l.class):l.class=s.className),{type:s.tagName,object:s.object,attributes:l}}function pe(e){var t,n,r,a=e.value,o=e.multilineTag,c=e.createEmpty,s=e.append,l=e.getLastChild,u=e.getParent,f=e.isText,d=e.getText,p=e.remove,h=e.appendText,m=e.onStartIndex,b=e.onEndIndex,g=e.isEditableTree,y=e.placeholder,O=a.formats,T=a.replacements,j=a.text,C=a.start,w=a.end,F=O.length+1,N=c(),S={type:o},A=H(a),k=A[A.length-1];o?(s(s(N,{type:o}),""),n=t=[S]):s(N,"");for(var R=function(e){var a=j.charAt(e),c=g&&(!r||r===x||"\n"===r),F=O[e];o&&(F=a===x?t=(T[e]||[]).reduce((function(e,t){return e.push(t,S),e}),[S]):[].concat(Object(v.a)(t),Object(v.a)(F||[])));var A=l(N);if(c&&a===x){for(var R=A;!f(R);)R=l(R);s(u(R),E)}if(r===x){for(var P=A;!f(P);)P=l(P);m&&C===e&&m(N,P),b&&w===e&&b(N,P)}if(F&&F.forEach((function(e,t){if(!A||!n||e!==n[t]||a===x&&F.length-1===t){var r=e.type,o=e.attributes,i=e.unregisteredAttributes,c=g&&a!==x&&e===k,h=u(A),m=s(h,de({type:r,attributes:o,unregisteredAttributes:i,boundaryClass:c}));f(A)&&0===d(A).length&&p(A),A=s(m,"")}else A=l(A)})),a===x)return n=F,r=a,"continue";0===e&&(m&&0===C&&m(N,A),b&&0===w&&b(N,A)),a===_?(A=s(u(A),de(Object(i.a)({},T[e],{object:!0}))),A=s(u(A),"")):"\n"===a?(A=s(u(A),{type:"br",attributes:g?{"data-rich-text-line-break":"true"}:void 0,object:!0}),A=s(u(A),"")):f(A)?h(A,a):A=s(u(A),a),m&&C===e+1&&m(N,A),b&&w===e+1&&b(N,A),c&&e===j.length&&(s(u(A),E),y&&0===j.length&&s(u(A),{type:"span",attributes:{"data-rich-text-placeholder":y,contenteditable:"false"}})),n=F,r=a},P=0;P1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}var be=function(){return j(document,"")};function ge(e,t){"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));var n=t,r=n.type,a=n.attributes;if(r)for(var o in t=e.ownerDocument.createElement(r),a)t.setAttribute(o,a[o]);return e.appendChild(t)}function ye(e,t){e.appendData(t)}function Oe(e){return e.lastChild}function Te(e){return e.parentNode}function je(e){return e.nodeType===he}function xe(e){return e.nodeValue}function _e(e){return e.parentNode.removeChild(e)}function Ee(e){var t=e.value,n=e.multilineTag,r=e.prepareEditableTree,a=e.isEditableTree,o=void 0===a||a,c=e.placeholder,s=[],l=[];return r&&(t=Object(i.a)({},t,{formats:r(t)})),{body:pe({value:t,multilineTag:n,createEmpty:be,append:ge,getLastChild:Oe,getParent:Te,isText:je,getText:xe,remove:_e,appendText:ye,onStartIndex:function(e,t){s=me(t,e,[t.nodeValue.length])},onEndIndex:function(e,t){l=me(t,e,[t.nodeValue.length])},isEditableTree:o,placeholder:c}),selection:{startPath:s,endPath:l}}}function Ce(e){var t=e.value,n=e.current,r=e.multilineTag,a=e.prepareEditableTree,o=e.__unstableDomOnly,i=Ee({value:t,multilineTag:r,prepareEditableTree:a,placeholder:e.placeholder}),c=i.body,s=i.selection;!function e(t,n){var r=0;var a;for(;a=t.firstChild;){var o=n.childNodes[r];if(o)if(o.isEqualNode(a))t.removeChild(a);else if(o.nodeName!==a.nodeName||o.nodeType===he&&o.data!==a.data)n.replaceChild(a,o);else{var i=o.attributes,c=a.attributes;if(i)for(var s=i.length;s--;){var l=i[s].name;a.getAttribute(l)||o.removeAttribute(l)}if(c)for(var u=0;u0){if(p=d,h=u.getRangeAt(0),p.startContainer===h.startContainer&&p.startOffset===h.startOffset&&p.endContainer===h.endContainer&&p.endOffset===h.endOffset)return;u.removeAllRanges()}var p,h;u.addRange(d)}(s,n)}var we=n(68);function Fe(e){return Le(pe({value:e.value,multilineTag:e.multilineTag,createEmpty:Ne,append:Ae,getLastChild:Se,getParent:Re,isText:Pe,getText:De,remove:Ie,appendText:ke}).children)}function Ne(){return{}}function Se(e){var t=e.children;return t&&t[t.length-1]}function Ae(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function ke(e,t){e.text+=t}function Re(e){return e.parent}function Pe(e){return"string"==typeof e.text}function De(e){return e.text}function Ie(e){var t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function Le(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return void 0===e.text?function(e){var t=e.type,n=e.attributes,r=e.object,a=e.children,o="";for(var i in n)Object(we.isValidAttributeName)(i)&&(o+=" ".concat(i,'="').concat(Object(we.escapeAttribute)(n[i]),'"'));return r?"<".concat(t).concat(o,">"):"<".concat(t).concat(o,">").concat(Le(a),"")}(e):Object(we.escapeHTML)(e.text)})).join("")}function Me(e,t){return W(e,t.type)?ee(e,t.type):O(e,t)}function He(e){var t=Object(o.select)("core/rich-text").getFormatType(e);if(t)return t.__experimentalCreatePrepareEditableTree&&Object(Z.removeFilter)("experimentalRichText",e),Object(o.dispatch)("core/rich-text").removeFormatTypes(e),t;window.console.error("Format ".concat(e," is not registered."))}function We(e,t){var n=V(e);if(void 0===n)return e;var r=e.text,a=e.replacements,o=e.end,c=V(e,n),s=a[n]||[],l=a[c]||[];if(s.length>l.length)return e;for(var u=a.slice(),f=function(e,t){for(var n=e.text,r=e.replacements,a=r[t]||[],o=t;o-- >=0;)if(n[o]===x){var i=r[o]||[];if(i.length===a.length+1)return o;if(i.length<=a.length)return}}(e,n),d=n;d=0;){if(n[o]===x)if((r[o]||[]).length===a.length-1)return o}}function Be(e){var t=e.text,n=e.replacements,r=e.start,a=e.end,o=V(e,r);if(void 0===n[o])return e;for(var c=n.slice(0),s=n[Ke(e,o)]||[],l=function(e,t){for(var n=e.text,r=e.replacements,a=r[t]||[],o=t,i=t||0;i=a.length))return o;o=i}return o}(e,V(e,a)),u=o;u<=l;u++)if(t[u]===x){var f=c[u]||[];c[u]=s.concat(f.slice(s.length+1)),0===c[u].length&&delete c[u]}return Object(i.a)({},e,{replacements:c})}function Ve(e,t){for(var n,r=e.text,a=e.replacements,o=e.start,c=e.end,s=V(e,o),l=a[s]||[],u=a[V(e,c)]||[],f=Ke(e,s),d=a.slice(),p=l.length-1,h=u.length-1,m=f+1||0;mh?e:t})))}return n?Object(i.a)({},e,{replacements:d}):e}var Ue=n(18),ze=n(12),qe=n(11),Ge=n(13),Ye=n(14),$e=n(5),Xe=n(15),Ze=n(16),Je=n.n(Ze),Qe=n(19),et=n(40),tt=n.n(et),nt=n(37),rt=n.n(nt),at=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]),ot=Object(o.withSelect)((function(e){return{formatTypes:e("core/rich-text").getFormatTypes()}}))((function(e){var t=e.formatTypes,n=e.onChange,r=e.value,a=e.allowedFormats,o=e.withoutInteractiveFormatting;return t.map((function(e){var t=e.name,i=e.edit,c=e.tagName;if(!i)return null;if(a&&-1===a.indexOf(t))return null;if(o&&at.has(c))return null;var s=W(r,t),l=void 0!==s,u=K(r),f=void 0!==u;return Object(X.createElement)(i,{key:t,isActive:l,activeAttributes:l&&s.attributes||{},isObjectActive:f,activeObjectAttributes:f&&u.attributes||{},value:r,onChange:n})}))})),it=n(21),ct=function(e){return Object(c.pickBy)(e,(function(e,t){return n=t,Object(c.startsWith)(n,"aria-")&&!Object(c.isNil)(e);var n}))},st=function(e){function t(){var e;return Object(ze.a)(this,t),(e=Object(Ge.a)(this,Object(Ye.a)(t).call(this))).bindEditorNode=e.bindEditorNode.bind(Object($e.a)(e)),e}return Object(Xe.a)(t,e),Object(qe.a)(t,[{key:"shouldComponentUpdate",value:function(e){var t=this;Object(c.isEqual)(this.props.style,e.style)||(this.editorNode.setAttribute("style",""),Object.assign(this.editorNode.style,Object(i.a)({},e.style||{},{whiteSpace:"pre-wrap"}))),Object(c.isEqual)(this.props.className,e.className)||(this.editorNode.className=e.className),this.props.start!==e.start&&this.editorNode.setAttribute("start",e.start),this.props.reversed!==e.reversed&&(this.editorNode.reversed=e.reversed);var n=function(e,t){var n=Object(c.keys)(ct(e)),r=Object(c.keys)(ct(t));return{removedKeys:Object(c.difference)(n,r),updatedKeys:r.filter((function(n){return!Object(c.isEqual)(e[n],t[n])}))}}(this.props,e),r=n.removedKeys,a=n.updatedKeys;return r.forEach((function(e){return t.editorNode.removeAttribute(e)})),a.forEach((function(n){return t.editorNode.setAttribute(n,e[n])})),!1}},{key:"bindEditorNode",value:function(e){this.editorNode=e,this.props.setRef(e)}},{key:"render",value:function(){var e=this.props,t=e.tagName,n=void 0===t?"div":t,r=e.style,a=void 0===r?{}:r,o=e.record,c=e.valueToEditableHTML,s=e.className,l=Object(it.a)(e,["tagName","style","record","valueToEditableHTML","className"]);delete l.setRef;return Object(X.createElement)(n,Object(i.a)({role:"textbox","aria-multiline":!0,className:s,contentEditable:!0,ref:this.bindEditorNode,style:Object(i.a)({},a,{whiteSpace:"pre-wrap"}),suppressContentEditableWarning:!0,dangerouslySetInnerHTML:{__html:c(o)}},l))}}]),t}(X.Component);function lt(e){var t=e.value,n=e.start,r=e.end,a=e.formats,o=t.formats[n-1]||[],i=t.formats[r]||[];for(t.activeFormats=a.map((function(e,t){if(o[t]){if(b(e,o[t]))return o[t]}else if(i[t]&&b(e,i[t]))return i[t];return e}));--r>=n;)t.activeFormats.length>0?t.formats[r]=t.activeFormats:delete t.formats[r];return t}var ut=window,ft=ut.getSelection,dt=ut.getComputedStyle,pt=new Set(["insertParagraph","insertOrderedList","insertUnorderedList","insertHorizontalRule","insertLink"]),ht=document.createElement("style");function mt(e,t){var n=Object.keys(e).reduce((function(n,r){return r.startsWith(t)&&n.push(e[r]),n}),[]);return function(e){return n.reduce((function(t,n){return n(t,e.text)}),e.formats)}}document.head.appendChild(ht);var vt=function(e){function t(e){var n,r=e.value,a=e.selectionStart,o=e.selectionEnd;return Object(ze.a)(this,t),(n=Object(Ge.a)(this,Object(Ye.a)(t).apply(this,arguments))).onFocus=n.onFocus.bind(Object($e.a)(n)),n.onBlur=n.onBlur.bind(Object($e.a)(n)),n.onChange=n.onChange.bind(Object($e.a)(n)),n.handleDelete=n.handleDelete.bind(Object($e.a)(n)),n.handleEnter=n.handleEnter.bind(Object($e.a)(n)),n.handleSpace=n.handleSpace.bind(Object($e.a)(n)),n.handleHorizontalNavigation=n.handleHorizontalNavigation.bind(Object($e.a)(n)),n.onPaste=n.onPaste.bind(Object($e.a)(n)),n.onCreateUndoLevel=n.onCreateUndoLevel.bind(Object($e.a)(n)),n.onInput=n.onInput.bind(Object($e.a)(n)),n.onCompositionEnd=n.onCompositionEnd.bind(Object($e.a)(n)),n.onSelectionChange=n.onSelectionChange.bind(Object($e.a)(n)),n.createRecord=n.createRecord.bind(Object($e.a)(n)),n.applyRecord=n.applyRecord.bind(Object($e.a)(n)),n.valueToFormat=n.valueToFormat.bind(Object($e.a)(n)),n.setRef=n.setRef.bind(Object($e.a)(n)),n.valueToEditableHTML=n.valueToEditableHTML.bind(Object($e.a)(n)),n.onPointerDown=n.onPointerDown.bind(Object($e.a)(n)),n.formatToValue=n.formatToValue.bind(Object($e.a)(n)),n.Editable=n.Editable.bind(Object($e.a)(n)),n.onKeyDown=function(e){e.defaultPrevented||(n.handleDelete(e),n.handleEnter(e),n.handleSpace(e),n.handleHorizontalNavigation(e))},n.state={},n.lastHistoryValue=r,n.value=r,n.record=n.formatToValue(r),n.record.start=a,n.record.end=o,n}return Object(Xe.a)(t,e),Object(qe.a)(t,[{key:"componentWillUnmount",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange),window.cancelAnimationFrame(this.rafId)}},{key:"setRef",value:function(e){e?this.editableRef=e:delete this.editableRef}},{key:"createRecord",value:function(){var e=this.props.__unstableMultilineTag,t=ft(),n=t.rangeCount>0?t.getRangeAt(0):null;return S({element:this.editableRef,range:n,multilineTag:e,multilineWrapperTags:"li"===e?["ul","ol"]:void 0,__unstableIsEditableTree:!0})}},{key:"applyRecord",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.domOnly,r=this.props.__unstableMultilineTag;Ce({value:e,current:this.editableRef,multilineTag:r,multilineWrapperTags:"li"===r?["ul","ol"]:void 0,prepareEditableTree:mt(this.props,"format_prepare_functions"),__unstableDomOnly:n,placeholder:this.props.placeholder})}},{key:"onPaste",value:function(e){var t=this.props,n=t.formatTypes,r=t.onPaste,a=e.clipboardData,o=a.items,i=a.files;o=Object(c.isNil)(o)?[]:o,i=Object(c.isNil)(i)?[]:i;var s="",l="";try{s=a.getData("text/plain"),l=a.getData("text/html")}catch(e){try{l=a.getData("Text")}catch(e){return}}e.preventDefault(),window.console.log("Received HTML:\n\n",l),window.console.log("Received plain text:\n\n",s);var u=this.record,f=n.reduce((function(e,t){var n=t.__unstablePasteRule;return n&&e===u&&(e=n(u,{html:l,plainText:s})),e}),u);if(f===u){if(r){var d=Object(c.find)([].concat(Object(v.a)(o),Object(v.a)(i)),(function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}));r({value:this.removeEditorOnlyFormats(u),onChange:this.onChange,html:l,plainText:s,image:d})}}else this.onChange(f)}},{key:"onFocus",value:function(){var e=this.props.unstableOnFocus;e&&e(),this.recalculateBoundaryStyle();this.record=Object(i.a)({},this.record,{start:void 0,end:void 0,activeFormats:void 0}),this.props.onSelectionChange(void 0,void 0),this.setState({activeFormats:void 0}),this.rafId=window.requestAnimationFrame(this.onSelectionChange),document.addEventListener("selectionchange",this.onSelectionChange),this.props.setFocusedElement&&(rt()("wp.blockEditor.RichText setFocusedElement prop",{alternative:"selection state from the block editor store."}),this.props.setFocusedElement(this.props.instanceId))}},{key:"onBlur",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"onInput",value:function(e){var t;if(e&&e.nativeEvent&&e.nativeEvent.isComposing)document.removeEventListener("selectionchange",this.onSelectionChange);else if(e&&(t=e.inputType),t||(t=e.nativeEvent.inputType),!t||0!==t.indexOf("format")&&!pt.has(t)){var n=this.createRecord(),r=this.record,a=r.start,o=r.activeFormats,c=void 0===o?[]:o,s=lt({value:n,start:a,end:n.start,formats:c});this.onChange(s,{withoutHistory:!0});var l=this.props,u=l.__unstableInputRule,f=l.__unstableMarkAutomaticChange,d=l.formatTypes,p=l.setTimeout;if((0,l.clearTimeout)(this.onInput.timeout),this.onInput.timeout=p(this.onCreateUndoLevel,1e3),"insertText"===t){u&&u(s,this.valueToFormat);var h=d.reduce((function(e,t){var n=t.__unstableInputRule;return n&&(e=n(e)),e}),s);h!==s&&(this.onCreateUndoLevel(),this.onChange(Object(i.a)({},h,{activeFormats:c})),f())}}else this.applyRecord(this.record)}},{key:"onCompositionEnd",value:function(){this.onInput({inputType:"insertText"}),document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"onSelectionChange",value:function(e){if(("selectionchange"===e.type||this.props.__unstableIsSelected)&&(!e.nativeEvent||!e.nativeEvent.isComposing)){var t=this.createRecord(),n=t.start,r=t.end,a=t.text,o=this.record;if(a===o.text)if(n!==o.start||r!==o.end){var c=this.props,s=c.__unstableIsCaretWithinFormattedText,l=c.__unstableOnEnterFormattedText,u=c.__unstableOnExitFormattedText,f=Object(i.a)({},o,{start:n,end:r,activeFormats:void 0}),d=H(f);f.activeFormats=d,!s&&d.length?l():s&&!d.length&&u(),this.record=f,this.applyRecord(f,{domOnly:!0}),this.props.onSelectionChange(n,r),this.setState({activeFormats:d}),d.length>0&&this.recalculateBoundaryStyle()}else 0===o.text.length&&0===n&&this.applyRecord(o);else this.onInput()}}},{key:"recalculateBoundaryStyle",value:function(){var e=this.editableRef.querySelector("*[data-rich-text-format-boundary]");if(e){var t=dt(e).color.replace(")",", 0.2)").replace("rgb","rgba"),n=".rich-text:focus ".concat("*[data-rich-text-format-boundary]"),r="background-color: ".concat(t);ht.innerHTML="".concat(n," {").concat(r,"}")}}},{key:"onChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.withoutHistory;this.applyRecord(e);var r=e.start,a=e.end,o=e.activeFormats,i=void 0===o?[]:o,s=Object(c.pickBy)(this.props,(function(e,t){return t.startsWith("format_on_change_functions_")}));Object.values(s).forEach((function(t){t(e.formats,e.text)})),this.value=this.valueToFormat(e),this.record=e,this.props.onChange(this.value),this.props.onSelectionChange(r,a),this.setState({activeFormats:i}),n||this.onCreateUndoLevel()}},{key:"onCreateUndoLevel",value:function(){this.lastHistoryValue!==this.value&&(this.props.__unstableOnCreateUndoLevel(),this.lastHistoryValue=this.value)}},{key:"handleDelete",value:function(e){var t=e.keyCode;if(t===Qe.DELETE||t===Qe.BACKSPACE||t===Qe.ESCAPE){if(this.props.__unstableDidAutomaticChange)return e.preventDefault(),void this.props.__unstableUndo();if(t!==Qe.ESCAPE){var n=this.props,r=n.onDelete,a=n.__unstableMultilineTag,o=this.state.activeFormats,i=void 0===o?[]:o,c=this.createRecord(),s=c.start,l=c.end,u=c.text,f=t===Qe.BACKSPACE;if(a){var d=ie(c,f);d&&(this.onChange(d),e.preventDefault())}if(0===s&&0!==l&&l===u.length)return this.onChange(re(c)),void e.preventDefault();!r||!q(c)||i.length||f&&0!==s||!f&&l!==u.length||(r({isReverse:f,value:c}),e.preventDefault())}}}},{key:"handleEnter",value:function(e){if(e.keyCode===Qe.ENTER){e.preventDefault();var t=this.props.onEnter;t&&t({value:this.removeEditorOnlyFormats(this.createRecord()),onChange:this.onChange,shiftKey:e.shiftKey})}}},{key:"handleSpace",value:function(e){var t=e.keyCode,n=e.shiftKey,r=e.altKey,a=e.metaKey,o=e.ctrlKey,i=this.props,c=i.tagName,s=i.__unstableMultilineTag;if(!(n||r||a||o||t!==Qe.SPACE||"li"!==s)){var l=this.createRecord();if(q(l)){var u=l.text[l.start-1];u&&u!==x||(this.onChange(We(l,{type:c})),e.preventDefault())}}}},{key:"handleHorizontalNavigation",value:function(e){var t=this,n=e.keyCode,r=e.shiftKey,a=e.altKey,o=e.metaKey,c=e.ctrlKey;if(!(r||a||o||c||n!==Qe.LEFT&&n!==Qe.RIGHT)){var s=this.record,l=s.text,u=s.formats,f=s.start,d=s.end,p=s.activeFormats,h=void 0===p?[]:p,m=q(s),v="rtl"===dt(this.editableRef).direction?Qe.RIGHT:Qe.LEFT,b=e.keyCode===v;if(m&&0===h.length){if(0===f&&b)return;if(d===l.length&&!b)return}if(m){e.preventDefault();var g=u[f-1]||[],y=u[f]||[],O=h.length,T=y;if(g.length>y.length&&(T=g),g.lengthg.length&&O--):g.length>y.length&&(!b&&h.length>y.length&&O--,b&&h.length=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},26:function(e,t){!function(){e.exports=this.wp.url}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},32:function(e,t){!function(){e.exports=this.wp.apiFetch}()},37:function(e,t){!function(){e.exports=this.wp.deprecated}()},4:function(e,t){!function(){e.exports=this.wp.data}()},409:function(e,t,n){"use strict";n.r(t);var r=n(18),o=n(7),c=n(21),u=n(0),i=n(4),s=n(37),a=n.n(s),l=n(12),f=n(11),p=n(13),b=n(14),d=n(15),y=n(2),h=n(1),O=n(32),m=n.n(O),j=n(26),v=n(3);var w=function(e){function t(e){var n;return Object(l.a)(this,t),(n=Object(p.a)(this,Object(b.a)(t).call(this,e))).state={response:null},n}return Object(d.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=Object(y.debounce)(this.fetch,500)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"componentDidUpdate",value:function(e){Object(y.isEqual)(e,this.props)||this.fetch(this.props)}},{key:"fetch",value:function(e){var t=this;if(this.isStillMounted){null!==this.state.response&&this.setState({response:null});var n=e.block,r=e.attributes,c=void 0===r?null:r,u=e.urlQueryArgs,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(j.addQueryArgs)("/wp/v2/block-renderer/".concat(e),Object(o.a)({context:"edit"},null!==t?{attributes:t}:{},n))}(n,c,void 0===u?{}:u),s=this.currentFetchRequest=m()({path:i}).then((function(e){t.isStillMounted&&s===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&s===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return s}}},{key:"render",value:function(){var e=this.state.response,t=this.props,n=t.className,o=t.EmptyResponsePlaceholder,c=t.ErrorResponsePlaceholder,i=t.LoadingResponsePlaceholder;return""===e?Object(u.createElement)(o,Object(r.a)({response:e},this.props)):e?e.error?Object(u.createElement)(c,Object(r.a)({response:e},this.props)):Object(u.createElement)(u.RawHTML,{key:"html",className:n},e):Object(u.createElement)(i,Object(r.a)({response:e},this.props))}}]),t}(u.Component);w.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(v.Placeholder,{className:t},Object(h.__)("Block rendered as empty.")+t)},ErrorResponsePlaceholder:function(e){var t=e.response,n=e.className,r=Object(h.sprintf)(Object(h.__)("Error loading block: %s"),t.errorMsg);return Object(u.createElement)(v.Placeholder,{className:n},r)},LoadingResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(v.Placeholder,{className:t},Object(u.createElement)(v.Spinner,null))}};var g=w,S={},P=Object(i.withSelect)((function(e){var t=e("core/editor");if(t){var n=t.getCurrentPostId();if(n)return{currentPostId:n}}return S}))((function(e){var t=e.urlQueryArgs,n=void 0===t?S:t,i=e.currentPostId,s=Object(c.a)(e,["urlQueryArgs","currentPostId"]),a=Object(u.useMemo)((function(){return i?Object(o.a)({post_id:i},n):n}),[i,n]);return Object(u.createElement)(g,Object(r.a)({urlQueryArgs:a},s))}));window&&window.wp&&window.wp.components&&(window.wp.components.ServerSideRender=Object(u.forwardRef)((function(e,t){return a()("wp.components.ServerSideRender",{alternative:"wp.serverSideRender"}),Object(u.createElement)(P,Object(r.a)({},e,{ref:t}))})));t.default=P},5:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},26:function(e,t){!function(){e.exports=this.wp.url}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},32:function(e,t){!function(){e.exports=this.wp.apiFetch}()},338:function(e,t,n){"use strict";n.r(t);var r=n(18),o=n(7),c=n(21),u=n(0),i=n(4),s=n(37),a=n.n(s),l=n(12),f=n(11),p=n(13),b=n(14),d=n(15),y=n(2),h=n(1),O=n(32),m=n.n(O),j=n(26),v=n(3);var w=function(e){function t(e){var n;return Object(l.a)(this,t),(n=Object(p.a)(this,Object(b.a)(t).call(this,e))).state={response:null},n}return Object(d.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=Object(y.debounce)(this.fetch,500)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"componentDidUpdate",value:function(e){Object(y.isEqual)(e,this.props)||this.fetch(this.props)}},{key:"fetch",value:function(e){var t=this;if(this.isStillMounted){null!==this.state.response&&this.setState({response:null});var n=e.block,r=e.attributes,c=void 0===r?null:r,u=e.urlQueryArgs,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(j.addQueryArgs)("/wp/v2/block-renderer/".concat(e),Object(o.a)({context:"edit"},null!==t?{attributes:t}:{},n))}(n,c,void 0===u?{}:u),s=this.currentFetchRequest=m()({path:i}).then((function(e){t.isStillMounted&&s===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&s===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return s}}},{key:"render",value:function(){var e=this.state.response,t=this.props,n=t.className,o=t.EmptyResponsePlaceholder,c=t.ErrorResponsePlaceholder,i=t.LoadingResponsePlaceholder;return""===e?Object(u.createElement)(o,Object(r.a)({response:e},this.props)):e?e.error?Object(u.createElement)(c,Object(r.a)({response:e},this.props)):Object(u.createElement)(u.RawHTML,{key:"html",className:n},e):Object(u.createElement)(i,Object(r.a)({response:e},this.props))}}]),t}(u.Component);w.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(v.Placeholder,{className:t},Object(h.__)("Block rendered as empty.")+t)},ErrorResponsePlaceholder:function(e){var t=e.response,n=e.className,r=Object(h.sprintf)(Object(h.__)("Error loading block: %s"),t.errorMsg);return Object(u.createElement)(v.Placeholder,{className:n},r)},LoadingResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(v.Placeholder,{className:t},Object(u.createElement)(v.Spinner,null))}};var g=w,S={},P=Object(i.withSelect)((function(e){var t=e("core/editor");if(t){var n=t.getCurrentPostId();if(n)return{currentPostId:n}}return S}))((function(e){var t=e.urlQueryArgs,n=void 0===t?S:t,i=e.currentPostId,s=Object(c.a)(e,["urlQueryArgs","currentPostId"]),a=Object(u.useMemo)((function(){return i?Object(o.a)({post_id:i},n):n}),[i,n]);return Object(u.createElement)(g,Object(r.a)({urlQueryArgs:a},s))}));window&&window.wp&&window.wp.components&&(window.wp.components.ServerSideRender=Object(u.forwardRef)((function(e,t){return a()("wp.components.ServerSideRender",{alternative:"wp.serverSideRender"}),Object(u.createElement)(P,Object(r.a)({},e,{ref:t}))})));t.default=P},37:function(e,t){!function(){e.exports=this.wp.deprecated}()},4:function(e,t){!function(){e.exports=this.wp.data}()},5:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){return e.replace(s(t),(function(t,e,r,i,u,o,c,s){if("["===e&&"]"===s)return t;var a=n(f(arguments));return a?e+a+s:t}))}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()((function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}}));function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)((function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,(function(t,n){e.set(n,t)})))}),{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,(function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e})),Object(r.forEach)(this.attrs.named,(function(e,n){t+=" "+n+'="'+e+'"'})),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},45:function(t,e,n){t.exports=function(t,e){var n,r,i,u=0;function o(){var e,o,c=r,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){return e.replace(s(t),(function(t,e,r,i,u,o,c,s){if("["===e&&"]"===s)return t;var a=n(f(arguments));return a?e+a+s:t}))}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()((function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}}));function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)((function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,(function(t,n){e.set(n,t)})))}),{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,(function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e})),Object(r.forEach)(this.attrs.named,(function(e,n){t+=" "+n+'="'+e+'"'})),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},44:function(t,e,n){t.exports=function(t,e){var n,r,i,u=0;function o(){var e,o,c=r,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o0&&void 0!==arguments[0]?arguments[0]:"";Object(i.a)(this,t),this.value=e,["entries","forEach","keys","values"].forEach((function(t){r[t]=function(){var r;return(r=this._valueAsArray)[t].apply(r,arguments)}.bind(r)}))}return Object(a.a)(t,[{key:"toString",value:function(){return this.value}},{key:Symbol.iterator,value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._valueAsArray,"t0",1);case 1:return t.abrupt("return",t.t0);case 2:case"end":return t.stop()}}),t,this)}))},{key:"item",value:function(t){return this._valueAsArray[t]}},{key:"contains",value:function(t){return-1!==this._valueAsArray.indexOf(t)}},{key:"add",value:function(){for(var t=arguments.length,r=new Array(t),e=0;e=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),O(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;O(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.tokenList=function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)e.d(n,o,function(r){return t[r]}.bind(null,o));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=306)}({11:function(t,r,e){"use strict";function n(t,r){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:"";Object(i.a)(this,t),this.value=e,["entries","forEach","keys","values"].forEach((function(t){r[t]=function(){var r;return(r=this._valueAsArray)[t].apply(r,arguments)}.bind(r)}))}return Object(a.a)(t,[{key:"toString",value:function(){return this.value}},{key:Symbol.iterator,value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._valueAsArray,"t0",1);case 1:return t.abrupt("return",t.t0);case 2:case"end":return t.stop()}}),t,this)}))},{key:"item",value:function(t){return this._valueAsArray[t]}},{key:"contains",value:function(t){return-1!==this._valueAsArray.indexOf(t)}},{key:"add",value:function(){for(var t=arguments.length,r=new Array(t),e=0;e=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),O(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;O(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/url.js b/wp-includes/js/dist/url.js index 80d97d792c..de81a20aaa 100644 --- a/wp-includes/js/dist/url.js +++ b/wp-includes/js/dist/url.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["url"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 378); +/******/ return __webpack_require__(__webpack_require__.s = 307); /******/ }) /************************************************************************/ /******/ ({ -/***/ 222: +/***/ 191: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -325,7 +325,7 @@ module.exports = { /***/ }), -/***/ 223: +/***/ 192: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -351,7 +351,7 @@ module.exports = { /***/ }), -/***/ 378: +/***/ 307: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -376,7 +376,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "safeDecodeURI", function() { return safeDecodeURI; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterURLForDisplay", function() { return filterURLForDisplay; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "safeDecodeURIComponent", function() { return safeDecodeURIComponent; }); -/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91); +/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81); /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__); /** * External dependencies @@ -824,14 +824,14 @@ function safeDecodeURIComponent(uriComponent) { /***/ }), -/***/ 379: +/***/ 308: /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(222); -var formats = __webpack_require__(223); +var utils = __webpack_require__(191); +var formats = __webpack_require__(192); var has = Object.prototype.hasOwnProperty; var arrayPrefixGenerators = { @@ -1101,13 +1101,13 @@ module.exports = function (object, opts) { /***/ }), -/***/ 380: +/***/ 309: /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(222); +var utils = __webpack_require__(191); var has = Object.prototype.hasOwnProperty; @@ -1351,15 +1351,15 @@ module.exports = function (str, opts) { /***/ }), -/***/ 91: +/***/ 81: /***/ (function(module, exports, __webpack_require__) { "use strict"; -var stringify = __webpack_require__(379); -var parse = __webpack_require__(380); -var formats = __webpack_require__(223); +var stringify = __webpack_require__(308); +var parse = __webpack_require__(309); +var formats = __webpack_require__(192); module.exports = { formats: formats, diff --git a/wp-includes/js/dist/url.min.js b/wp-includes/js/dist/url.min.js index b97f7adf65..7815367495 100644 --- a/wp-includes/js/dist/url.min.js +++ b/wp-includes/js/dist/url.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.url=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=378)}({222:function(e,t,r){"use strict";var n=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}(),c=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(c):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(c+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(c)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=c(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var c=t[o];c&&"object"==typeof c&&r&&"object"==typeof r?t[o]=e(c,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var c=r[o];return n.call(t,o)?t[o]=e(t[o],c,i):t[o]=c,t}),a)}}},223:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},378:function(e,t,r){"use strict";r.r(t),r.d(t,"isURL",(function(){return a})),r.d(t,"isEmail",(function(){return u})),r.d(t,"getProtocol",(function(){return l})),r.d(t,"isValidProtocol",(function(){return s})),r.d(t,"getAuthority",(function(){return f})),r.d(t,"isValidAuthority",(function(){return p})),r.d(t,"getPath",(function(){return d})),r.d(t,"isValidPath",(function(){return y})),r.d(t,"getQueryString",(function(){return h})),r.d(t,"isValidQueryString",(function(){return m})),r.d(t,"getFragment",(function(){return b})),r.d(t,"isValidFragment",(function(){return g})),r.d(t,"addQueryArgs",(function(){return v})),r.d(t,"getQueryArg",(function(){return O})),r.d(t,"hasQueryArg",(function(){return j})),r.d(t,"removeQueryArgs",(function(){return w})),r.d(t,"prependHTTP",(function(){return x})),r.d(t,"safeDecodeURI",(function(){return S})),r.d(t,"filterURLForDisplay",(function(){return P})),r.d(t,"safeDecodeURIComponent",(function(){return N}));var n=r(91),o=/^(?:https?:)?\/\/\S+$/i,i=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i,c=/^(?:[a-z]+:|#|\?|\.|\/)/i;function a(e){return o.test(e)}function u(e){return i.test(e)}function l(e){var t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}function s(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}function f(e){var t=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function p(e){return!!e&&/^[^\s#?]+$/.test(e)}function d(e){var t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function y(e){return!!e&&/^[^\s#?]+$/.test(e)}function h(e){var t=/^\S+?\?([^\s#]+)/.exec(e);if(t)return t[1]}function m(e){return!!e&&/^[^\s#?\/]+$/.test(e)}function b(e){var t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}function g(e){return!!e&&/^#[^\s#?\/]*$/.test(e)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var r=e,o=e.indexOf("?");return-1!==o&&(t=Object.assign(Object(n.parse)(e.substr(o+1)),t),r=r.substr(0,o)),r+"?"+Object(n.stringify)(t)}function O(e,t){var r=e.indexOf("?");return(-1!==r?Object(n.parse)(e.substr(r+1)):{})[t]}function j(e,t){return void 0!==O(e,t)}function w(e){for(var t=e.indexOf("?"),r=-1!==t?Object(n.parse)(e.substr(t+1)):{},o=-1!==t?e.substr(0,t):e,i=arguments.length,c=new Array(i>1?i-1:0),a=1;a0?g+b:""}},380:function(e,t,r){"use strict";var n=r(222),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},a=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,c=/(\[[^[\]]*])/.exec(n),a=c?n.slice(0,c.index):n,u=[];if(a){if(!r.plainObjects&&o.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var l=0;null!==(c=i.exec(n))&&l=0;--o){var i,c=e[o];if("[]"===c&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var a="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(a,10);r.parseArrays||""!==a?!isNaN(u)&&c!==a&&String(u)===a&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[])[u]=n:i[a]=n:i={0:n}}n=i}return n}(u,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return i;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 Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,a={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,s=u.split(t.delimiter,l),f=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(y=y.split(",")),o.call(a,d)?a[d]=n.combine(a[d],y):a[d]=y}return a}(e,r):e,l=r.plainObjects?Object.create(null):{},s=Object.keys(u),f=0;f1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(c):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(c+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(c)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=c(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var c=t[o];c&&"object"==typeof c&&r&&"object"==typeof r?t[o]=e(c,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var c=r[o];return n.call(t,o)?t[o]=e(t[o],c,i):t[o]=c,t}),a)}}},192:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},307:function(e,t,r){"use strict";r.r(t),r.d(t,"isURL",(function(){return a})),r.d(t,"isEmail",(function(){return u})),r.d(t,"getProtocol",(function(){return l})),r.d(t,"isValidProtocol",(function(){return s})),r.d(t,"getAuthority",(function(){return f})),r.d(t,"isValidAuthority",(function(){return p})),r.d(t,"getPath",(function(){return d})),r.d(t,"isValidPath",(function(){return y})),r.d(t,"getQueryString",(function(){return h})),r.d(t,"isValidQueryString",(function(){return m})),r.d(t,"getFragment",(function(){return b})),r.d(t,"isValidFragment",(function(){return g})),r.d(t,"addQueryArgs",(function(){return v})),r.d(t,"getQueryArg",(function(){return O})),r.d(t,"hasQueryArg",(function(){return j})),r.d(t,"removeQueryArgs",(function(){return w})),r.d(t,"prependHTTP",(function(){return x})),r.d(t,"safeDecodeURI",(function(){return S})),r.d(t,"filterURLForDisplay",(function(){return P})),r.d(t,"safeDecodeURIComponent",(function(){return N}));var n=r(81),o=/^(?:https?:)?\/\/\S+$/i,i=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i,c=/^(?:[a-z]+:|#|\?|\.|\/)/i;function a(e){return o.test(e)}function u(e){return i.test(e)}function l(e){var t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}function s(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}function f(e){var t=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function p(e){return!!e&&/^[^\s#?]+$/.test(e)}function d(e){var t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function y(e){return!!e&&/^[^\s#?]+$/.test(e)}function h(e){var t=/^\S+?\?([^\s#]+)/.exec(e);if(t)return t[1]}function m(e){return!!e&&/^[^\s#?\/]+$/.test(e)}function b(e){var t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}function g(e){return!!e&&/^#[^\s#?\/]*$/.test(e)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var r=e,o=e.indexOf("?");return-1!==o&&(t=Object.assign(Object(n.parse)(e.substr(o+1)),t),r=r.substr(0,o)),r+"?"+Object(n.stringify)(t)}function O(e,t){var r=e.indexOf("?");return(-1!==r?Object(n.parse)(e.substr(r+1)):{})[t]}function j(e,t){return void 0!==O(e,t)}function w(e){for(var t=e.indexOf("?"),r=-1!==t?Object(n.parse)(e.substr(t+1)):{},o=-1!==t?e.substr(0,t):e,i=arguments.length,c=new Array(i>1?i-1:0),a=1;a0?g+b:""}},309:function(e,t,r){"use strict";var n=r(191),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},a=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,c=/(\[[^[\]]*])/.exec(n),a=c?n.slice(0,c.index):n,u=[];if(a){if(!r.plainObjects&&o.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var l=0;null!==(c=i.exec(n))&&l=0;--o){var i,c=e[o];if("[]"===c&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var a="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(a,10);r.parseArrays||""!==a?!isNaN(u)&&c!==a&&String(u)===a&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[])[u]=n:i[a]=n:i={0:n}}n=i}return n}(u,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return i;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 Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,a={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,s=u.split(t.delimiter,l),f=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(y=y.split(",")),o.call(a,d)?a[d]=n.combine(a[d],y):a[d]=y}return a}(e,r):e,l=r.plainObjects?Object.create(null):{},s=Object.keys(u),f=0;f0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function a(t){return{type:"SET_IS_MATCHING",values:t}}function f(t,e){return-1===e.indexOf(" ")&&(e=">= "+e),!!t[e]}Object(c.registerStore)("core/viewport",{reducer:u,actions:r,selectors:i});var s=n(8),p=function(t){return Object(s.createHigherOrderComponent)(Object(c.withSelect)((function(e){return Object(o.mapValues)(t,(function(t){return e("core/viewport").isViewportMatch(t)}))})),"withViewportMatch")},d=function(t){return Object(s.createHigherOrderComponent)(Object(s.compose)([p({isViewportMatch:t}),Object(s.ifCondition)((function(t){return t.isViewportMatch}))]),"ifViewportMatches")};n.d(e,"ifViewportMatches",(function(){return d})),n.d(e,"withViewportMatch",(function(){return p}));var l={"<":"max-width",">=":"min-width"},h=Object(o.debounce)((function(){var t=Object(o.mapValues)(w,(function(t){return t.matches}));Object(c.dispatch)("core/viewport").setIsMatching(t)}),{leading:!0}),w=Object(o.reduce)({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},(function(t,e,n){return Object(o.forEach)(l,(function(r,i){var o=window.matchMedia("(".concat(r,": ").concat(e,"px)"));o.addListener(h);var c=[i,n].join(" ");t[c]=o})),t}),{});window.addEventListener("orientationchange",h),h(),h.flush()},4:function(t,e){!function(){t.exports=this.wp.data}()},8:function(t,e){!function(){t.exports=this.wp.compose}()}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.viewport=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=326)}({2:function(t,e){!function(){t.exports=this.lodash}()},326:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"setIsMatching",(function(){return a}));var i={};n.r(i),n.d(i,"isViewportMatch",(function(){return f}));var o=n(2),c=n(4);var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function a(t){return{type:"SET_IS_MATCHING",values:t}}function f(t,e){return-1===e.indexOf(" ")&&(e=">= "+e),!!t[e]}Object(c.registerStore)("core/viewport",{reducer:u,actions:r,selectors:i});var s=n(8),p=function(t){return Object(s.createHigherOrderComponent)(Object(c.withSelect)((function(e){return Object(o.mapValues)(t,(function(t){return e("core/viewport").isViewportMatch(t)}))})),"withViewportMatch")},d=function(t){return Object(s.createHigherOrderComponent)(Object(s.compose)([p({isViewportMatch:t}),Object(s.ifCondition)((function(t){return t.isViewportMatch}))]),"ifViewportMatches")};n.d(e,"ifViewportMatches",(function(){return d})),n.d(e,"withViewportMatch",(function(){return p}));var l={"<":"max-width",">=":"min-width"},h=Object(o.debounce)((function(){var t=Object(o.mapValues)(w,(function(t){return t.matches}));Object(c.dispatch)("core/viewport").setIsMatching(t)}),{leading:!0}),w=Object(o.reduce)({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},(function(t,e,n){return Object(o.forEach)(l,(function(r,i){var o=window.matchMedia("(".concat(r,": ").concat(e,"px)"));o.addListener(h);var c=[i,n].join(" ");t[c]=o})),t}),{});window.addEventListener("orientationchange",h),h(),h.flush()},4:function(t,e){!function(){t.exports=this.wp.data}()},8:function(t,e){!function(){t.exports=this.wp.compose}()}}); \ No newline at end of file diff --git a/wp-includes/js/dist/wordcount.js b/wp-includes/js/dist/wordcount.js index 3b61964c67..15b74d3113 100644 --- a/wp-includes/js/dist/wordcount.js +++ b/wp-includes/js/dist/wordcount.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["wordcount"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 389); +/******/ return __webpack_require__(__webpack_require__.s = 319); /******/ }) /************************************************************************/ /******/ ({ @@ -94,7 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["wordcount"] = /***/ }), -/***/ 389: +/***/ 319: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/wordcount.min.js b/wp-includes/js/dist/wordcount.min.js index 6bd2a2b156..fb89e37640 100644 --- a/wp-includes/js/dist/wordcount.min.js +++ b/wp-includes/js/dist/wordcount.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.wordcount=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=389)}({2:function(e,t){!function(){e.exports=this.lodash}()},389:function(e,t,n){"use strict";n.r(t);var r=n(2),o={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp://g,spaceRegExp:/ | /gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}},i=function(e,t){if(e.HTMLRegExp)return t.replace(e.HTMLRegExp,"\n")},c=function(e,t){return e.astralRegExp?t.replace(e.astralRegExp,"a"):t},u=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,""):t},p=function(e,t){return e.connectorRegExp?t.replace(e.connectorRegExp," "):t},s=function(e,t){return e.removeRegExp?t.replace(e.removeRegExp,""):t},a=function(e,t){return e.HTMLcommentRegExp?t.replace(e.HTMLcommentRegExp,""):t},g=function(e,t){return e.shortcodesRegExp?t.replace(e.shortcodesRegExp,"\n"):t},d=function(e,t){if(e.spaceRegExp)return t.replace(e.spaceRegExp," ")},f=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,"a"):t};function l(e,t,n){if(""===e)return 0;if(e){var l=function(e,t){var n=Object(r.extend)(o,t);return n.shortcodes=n.l10n.shortcodes||{},n.shortcodes&&n.shortcodes.length&&(n.shortcodesRegExp=new RegExp("\\[\\/?(?:"+n.shortcodes.join("|")+")[^\\]]*?\\]","g")),n.type=e||n.l10n.type,"characters_excluding_spaces"!==n.type&&"characters_including_spaces"!==n.type&&(n.type="words"),n}(t,n),x=l[t+"RegExp"],E="words"===l.type?function(e,t,n){return e=Object(r.flow)(i.bind(this,n),a.bind(this,n),g.bind(this,n),d.bind(this,n),u.bind(this,n),p.bind(this,n),s.bind(this,n))(e),(e+="\n").match(t)}(e,x,l):function(e,t,n){return e=Object(r.flow)(i.bind(this,n),a.bind(this,n),g.bind(this,n),d.bind(this,n),c.bind(this,n),f.bind(this,n))(e),(e+="\n").match(t)}(e,x,l);return E?E.length:0}}n.d(t,"count",(function(){return l}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.wordcount=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=319)}({2:function(e,t){!function(){e.exports=this.lodash}()},319:function(e,t,n){"use strict";n.r(t);var r=n(2),o={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp://g,spaceRegExp:/ | /gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}},i=function(e,t){if(e.HTMLRegExp)return t.replace(e.HTMLRegExp,"\n")},c=function(e,t){return e.astralRegExp?t.replace(e.astralRegExp,"a"):t},u=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,""):t},p=function(e,t){return e.connectorRegExp?t.replace(e.connectorRegExp," "):t},s=function(e,t){return e.removeRegExp?t.replace(e.removeRegExp,""):t},a=function(e,t){return e.HTMLcommentRegExp?t.replace(e.HTMLcommentRegExp,""):t},g=function(e,t){return e.shortcodesRegExp?t.replace(e.shortcodesRegExp,"\n"):t},d=function(e,t){if(e.spaceRegExp)return t.replace(e.spaceRegExp," ")},f=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,"a"):t};function l(e,t,n){if(""===e)return 0;if(e){var l=function(e,t){var n=Object(r.extend)(o,t);return n.shortcodes=n.l10n.shortcodes||{},n.shortcodes&&n.shortcodes.length&&(n.shortcodesRegExp=new RegExp("\\[\\/?(?:"+n.shortcodes.join("|")+")[^\\]]*?\\]","g")),n.type=e||n.l10n.type,"characters_excluding_spaces"!==n.type&&"characters_including_spaces"!==n.type&&(n.type="words"),n}(t,n),x=l[t+"RegExp"],E="words"===l.type?function(e,t,n){return e=Object(r.flow)(i.bind(this,n),a.bind(this,n),g.bind(this,n),d.bind(this,n),u.bind(this,n),p.bind(this,n),s.bind(this,n))(e),(e+="\n").match(t)}(e,x,l):function(e,t,n){return e=Object(r.flow)(i.bind(this,n),a.bind(this,n),g.bind(this,n),d.bind(this,n),c.bind(this,n),f.bind(this,n))(e),(e+="\n").match(t)}(e,x,l);return E?E.length:0}}n.d(t,"count",(function(){return l}))}}); \ No newline at end of file diff --git a/wp-includes/version.php b/wp-includes/version.php index f61de62b75..7b7994f31c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-beta3-46542'; +$wp_version = '5.3-beta3-46543'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-settings.php b/wp-settings.php index 8f345a7704..a4d9a78316 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -269,7 +269,6 @@ require( ABSPATH . WPINC . '/blocks/latest-posts.php' ); require( ABSPATH . WPINC . '/blocks/rss.php' ); require( ABSPATH . WPINC . '/blocks/search.php' ); require( ABSPATH . WPINC . '/blocks/shortcode.php' ); -require( ABSPATH . WPINC . '/blocks/social-link.php' ); require( ABSPATH . WPINC . '/blocks/tag-cloud.php' ); $GLOBALS['wp_embed'] = new WP_Embed();